GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73577
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sigset.c File Reference
#include <string.h>
#include <stdlib.h>
#include <grass/imagery.h>
#include <grass/gis.h>
Include dependency graph for sigset.c:

Go to the source code of this file.

Macros

#define eq(a, b)   strcmp(a,b)==0
 

Functions

int I_SigSetNClasses (struct SigSet *S)
 
struct ClassDataI_AllocClassData (struct SigSet *S, struct ClassSig *C, int npixels)
 
int I_InitSigSet (struct SigSet *S)
 
int I_SigSetNBands (struct SigSet *S, int nbands)
 
struct ClassSigI_NewClassSig (struct SigSet *S)
 
struct SubSigI_NewSubSig (struct SigSet *S, struct ClassSig *C)
 
int I_ReadSigSet (FILE *fd, struct SigSet *S)
 
int I_SetSigTitle (struct SigSet *S, const char *title)
 
const char * I_GetSigTitle (const struct SigSet *S)
 
int I_SetClassTitle (struct ClassSig *C, const char *title)
 
const char * I_GetClassTitle (const struct ClassSig *C)
 
int I_WriteSigSet (FILE *fd, const struct SigSet *S)
 

Macro Definition Documentation

#define eq (   a,
  b 
)    strcmp(a,b)==0

Definition at line 122 of file sigset.c.

Referenced by I_ReadSigSet().

Function Documentation

struct ClassData* I_AllocClassData ( struct SigSet S,
struct ClassSig C,
int  npixels 
)
const char* I_GetClassTitle ( const struct ClassSig C)

Definition at line 293 of file sigset.c.

References ClassSig::title.

Referenced by I_WriteSigSet().

const char* I_GetSigTitle ( const struct SigSet S)

Definition at line 274 of file sigset.c.

References SigSet::title.

Referenced by I_WriteSigSet().

int I_InitSigSet ( struct SigSet S)

Definition at line 56 of file sigset.c.

References SigSet::ClassSig, SigSet::nbands, SigSet::nclasses, NULL, and SigSet::title.

Referenced by I_ReadSigSet().

struct SubSig* I_NewSubSig ( struct SigSet S,
struct ClassSig C 
)
int I_ReadSigSet ( FILE *  fd,
struct SigSet S 
)

Definition at line 124 of file sigset.c.

References eq, and I_InitSigSet().

int I_SetClassTitle ( struct ClassSig C,
const char *  title 
)

Definition at line 282 of file sigset.c.

References free(), G_store(), NULL, and ClassSig::title.

int I_SetSigTitle ( struct SigSet S,
const char *  title 
)

Definition at line 263 of file sigset.c.

References free(), G_store(), NULL, and SigSet::title.

int I_SigSetNBands ( struct SigSet S,
int  nbands 
)

Definition at line 66 of file sigset.c.

References SigSet::nbands.

int I_SigSetNClasses ( struct SigSet S)

Definition at line 31 of file sigset.c.

References SigSet::ClassSig, count, SigSet::nclasses, and ClassSig::used.