GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71746
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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.


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 *group, const char *sub_group, const char *file_name)
 Write signtures to signature file. More...

Function Documentation

void I_iclass_add_signature ( struct Signature sigs,
IClass_statistics statistics 
int I_iclass_init_signatures ( struct Signature sigs,
struct Ref refer 

Initialize signatures.

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

Definition at line 47 of file iclass_signatures.c.

References G_debug(), I_init_signatures(), and Ref::nfiles.

int I_iclass_write_signatures ( struct Signature sigs,
const char *  group,
const char *  sub_group,
const char *  file_name 

Write signtures to signature file.

sigspointer to signatures
groupimage group
sub_groupimage subgroup
file_namename of signature file
1 on success
0 on failure

Definition at line 109 of file iclass_signatures.c.

References _, fclose(), G_debug(), G_warning(), I_fopen_signature_file_new(), and I_write_signatures().