GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
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

◆ eq

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

Definition at line 122 of file sigset.c.

Function Documentation

◆ I_AllocClassData()

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

Definition at line 43 of file sigset.c.

◆ I_GetClassTitle()

const char* I_GetClassTitle ( const struct ClassSig C)

Definition at line 311 of file sigset.c.

References ClassSig::title.

Referenced by I_WriteSigSet().

◆ I_GetSigTitle()

const char* I_GetSigTitle ( const struct SigSet S)

Definition at line 292 of file sigset.c.

References SigSet::title.

Referenced by I_WriteSigSet().

◆ I_InitSigSet()

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

◆ I_NewClassSig()

◆ I_NewSubSig()

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

◆ I_ReadSigSet()

int I_ReadSigSet ( FILE *  fd,
struct SigSet S 
)

Definition at line 124 of file sigset.c.

References I_InitSigSet().

◆ I_SetClassTitle()

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

Definition at line 300 of file sigset.c.

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

◆ I_SetSigTitle()

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

Definition at line 281 of file sigset.c.

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

◆ I_SigSetNBands()

int I_SigSetNBands ( struct SigSet S,
int  nbands 
)

Definition at line 66 of file sigset.c.

References SigSet::nbands.

◆ I_SigSetNClasses()

int I_SigSetNClasses ( struct SigSet S)

Definition at line 31 of file sigset.c.

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

◆ I_WriteSigSet()