GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 ClassData * I_AllocClassData (struct SigSet *S, struct ClassSig *C, int npixels)
 
int I_InitSigSet (struct SigSet *S)
 
int I_SigSetNBands (struct SigSet *S, int nbands)
 
struct ClassSig * I_NewClassSig (struct SigSet *S)
 
struct SubSig * I_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 
)

Definition at line 43 of file sigset.c.

const char* I_GetClassTitle ( const struct ClassSig *  C)

Definition at line 293 of file sigset.c.

Referenced by I_WriteSigSet().

const char* I_GetSigTitle ( const struct SigSet *  S)

Definition at line 274 of file sigset.c.

Referenced by I_WriteSigSet().

int I_InitSigSet ( struct SigSet *  S)

Definition at line 56 of file sigset.c.

References NULL.

Referenced by I_ReadSigSet().

struct ClassSig* I_NewClassSig ( struct SigSet *  S)

Definition at line 73 of file sigset.c.

References NULL.

struct SubSig* I_NewSubSig ( struct SigSet *  S,
struct ClassSig *  C 
)

Definition at line 93 of file sigset.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(), and NULL.

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

Definition at line 263 of file sigset.c.

References free(), G_store(), and NULL.

int I_SigSetNBands ( struct SigSet *  S,
int  nbands 
)

Definition at line 66 of file sigset.c.

int I_SigSetNClasses ( struct SigSet *  S)

Definition at line 31 of file sigset.c.

References count.

int I_WriteSigSet ( FILE *  fd,
const struct SigSet *  S 
)

Definition at line 301 of file sigset.c.

References I_GetClassTitle(), and I_GetSigTitle().