34 #include "iclass_local_proto.h" 49 G_debug(3,
"I_iclass_init_signatures()");
72 G_debug(3,
"I_iclass_add_signature()");
86 sigs->
sig[sn - 1].
r =
r;
87 sigs->
sig[sn - 1].
g =
g;
88 sigs->
sig[sn - 1].
b =
b;
90 for (b1 = 0; b1 < sigs->
nbands; b1++) {
92 for (b2 = 0; b2 <= b1; b2++) {
110 const char *sub_group,
const char *file_name)
114 G_debug(3,
"I_write_signatures(): group=%s, file_name=%s", group,
120 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.
int I_iclass_write_signatures(struct Signature *sigs, const char *group, const char *sub_group, const char *file_name)
Write signtures to signature file.
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.
FILE * I_fopen_signature_file_new(const char *, const char *, const char *)
Create signature file.
void G_warning(const char *,...) __attribute__((format(printf
int I_new_signature(struct Signature *)
void I_iclass_add_signature(struct Signature *sigs, IClass_statistics *statistics)
Add one signature.
int G_debug(int, const char *,...) __attribute__((format(printf
int I_init_signatures(struct Signature *, int)
int I_write_signatures(FILE *, struct Signature *)