34 #include "iclass_local_proto.h"
47 G_debug(3,
"I_iclass_init_signatures()");
50 for (
unsigned int i = refer->
nfiles; i--;) {
73 G_debug(3,
"I_iclass_add_signature()");
87 sigs->
sig[sn - 1].
r =
r;
88 sigs->
sig[sn - 1].
g =
g;
89 sigs->
sig[sn - 1].
b =
b;
91 for (b1 = 0; b1 < sigs->
nbands; b1++) {
93 for (b2 = 0; b2 <= b1; b2++) {
112 G_debug(3,
"I_write_signatures(): file_name=%s", file_name);
115 G_warning(
_(
"Unable to open output signature file '%s'"), file_name);
int G_str_to_color(const char *, int *, int *, int *)
Parse color string and set red,green,blue.
void G_warning(const char *,...) __attribute__((format(printf
int G_debug(int, const char *,...) __attribute__((format(printf
int I_write_signatures(FILE *, struct Signature *)
Write signatures to file.
int I_new_signature(struct Signature *)
int I_init_signatures(struct Signature *, int)
Initialize struct Signature before use.
FILE * I_fopen_signature_file_new(const char *)
Create signature file.
char * Rast_get_semantic_label_or_name(const char *, const char *)
Get a raster map semantic label or fall back to its name.
int I_iclass_write_signatures(struct Signature *sigs, const char *file_name)
Write signtures to signature file.
void I_iclass_add_signature(struct Signature *sigs, IClass_statistics *statistics)
Add one signature.
int I_iclass_init_signatures(struct Signature *sigs, struct Ref *refer)
Initialize signatures.
float var_signature(IClass_statistics *statistics, int band1, int band2)
Helper function for computing variance for signature file.