GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
#include <string.h>
#include <stdio.h>
#include <grass/imagery.h>
#include <grass/glocale.h>
#include <grass/colors.h>
#include "iclass_local_proto.h"
Go to the source code of this file.
Functions | |
int | I_iclass_init_signatures (struct Signature *sigs, struct Ref *refer) |
Initialize signatures. More... | |
void | I_iclass_add_signature (struct Signature *sigs, IClass_statistics *statistics) |
Add one signature. More... | |
int | I_iclass_write_signatures (struct Signature *sigs, const char *file_name) |
Write signtures to signature file. More... | |
void I_iclass_add_signature | ( | struct Signature * | sigs, |
IClass_statistics * | statistics | ||
) |
Add one signature.
[out] | sigs | pointer to signatures |
statistics | pointer to statistics structure |
Definition at line 65 of file iclass_signatures.c.
References b, One_Sig::b, IClass_statistics::band_mean, IClass_statistics::color, One_Sig::desc, g, One_Sig::g, G_debug(), G_str_to_color(), One_Sig::have_color, I_new_signature(), One_Sig::mean, IClass_statistics::name, Signature::nbands, IClass_statistics::ncells, One_Sig::npoints, Signature::nsigs, r, One_Sig::r, Signature::sig, One_Sig::status, One_Sig::var, and var_signature().
Initialize signatures.
[out] | sigs | pointer to signatures |
refer | pointer to band files structure |
Definition at line 47 of file iclass_signatures.c.
References Ref::file, G_debug(), I_init_signatures(), Ref_Files::mapset, Ref_Files::name, Ref::nfiles, Rast_get_semantic_label_or_name(), and Signature::semantic_labels.
int I_iclass_write_signatures | ( | struct Signature * | sigs, |
const char * | file_name | ||
) |
Write signtures to signature file.
sigs | pointer to signatures |
file_name | name of signature file |
Definition at line 109 of file iclass_signatures.c.