GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
iclass_signatures.c File Reference
#include <string.h>
#include <stdio.h>
#include <grass/imagery.h>
#include <grass/glocale.h>
#include <grass/colors.h>
#include "iclass_local_proto.h"
Include dependency graph for iclass_signatures.c:

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...
 

Function Documentation

◆ I_iclass_add_signature()

void I_iclass_add_signature ( struct Signature sigs,
IClass_statistics statistics 
)

◆ I_iclass_init_signatures()

int I_iclass_init_signatures ( struct Signature sigs,
struct Ref refer 
)

Initialize signatures.

Parameters
[out]sigspointer to signatures
referpointer to band files structure
Returns
1 on success
0 on failure

Definition at line 45 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.

◆ I_iclass_write_signatures()

int I_iclass_write_signatures ( struct Signature sigs,
const char *  file_name 
)

Write signtures to signature file.

Parameters
sigspointer to signatures
file_namename of signature file
Returns
1 on success
0 on failure

Definition at line 108 of file iclass_signatures.c.