te::rp::GroupColor Class Reference

Defines a classification context. More...

#include <PaletteRaster.h>

Public Member Functions

size_t GetNCubeColors ()
 Returns the number of CubeColors in this GroupColor. More...
 
 GroupColor (int ident)
 Constructor. More...
 
void InsertCubeColor (CubeColor *cc)
 Inserts a CubeColor in the List. More...
 
double MaxVar ()
 Returns the biggest variance. More...
 
double Mean (int i)
 Return Mean[i] of GroupColor. More...
 
CubeColorRemoveCubeColor ()
 Removes the current item from the list. More...
 
GroupColorSplit (int newgcid)
 Splits the GroupColor in two ones. The new GroupColor will have its id given by newgcid. The list of ColorCubes in the original GroupColor will be divided with the new GroupColor. More...
 
 ~GroupColor ()
 Destructor. More...
 

Private Attributes

std::list< CubeColor * > m_CClist
 List of pointers to CubeColors. More...
 
double m_Ex [3]
 Expectation of means of CubeColors belonging to this GroupColor. More...
 
double m_Ex2 [3]
 Expectation of squared means of CubeColors belonging to this GroupColor. More...
 
int m_id
 Id of GroupColor. More...
 
std::list< CubeColor * >::iterator m_itCC
 iterator to CubeColors list More...
 
double m_pop
 population of group color More...
 
double m_var [3]
 Variance in each dimension of CubeColors belonging to this GroupColor. More...
 
double m_varmax
 Biggest variance. More...
 

Detailed Description

Defines a classification context.

The class GroupColor is a container of CubeColor objects allowing the generation of statistics ( mean value and standard deviation ) of the colors in the group. from Spring code

Definition at line 142 of file PaletteRaster.h.

Constructor & Destructor Documentation

◆ GroupColor()

te::rp::GroupColor::GroupColor ( int  ident)

Constructor.

Parameters
identgroup color identifier

◆ ~GroupColor()

te::rp::GroupColor::~GroupColor ( )

Destructor.

Member Function Documentation

◆ GetNCubeColors()

size_t te::rp::GroupColor::GetNCubeColors ( )
inline

Returns the number of CubeColors in this GroupColor.

Returns
TRUE: successs or FALSE: failure

Definition at line 172 of file PaletteRaster.h.

◆ InsertCubeColor()

void te::rp::GroupColor::InsertCubeColor ( CubeColor cc)

Inserts a CubeColor in the List.

Parameters
cca CubeColor object

◆ MaxVar()

double te::rp::GroupColor::MaxVar ( )
inline

Returns the biggest variance.

Definition at line 192 of file PaletteRaster.h.

◆ Mean()

double te::rp::GroupColor::Mean ( int  i)
inline

Return Mean[i] of GroupColor.

Parameters
icolor component ( 0 = red, 1 = green, 2 = blue )

Definition at line 187 of file PaletteRaster.h.

◆ RemoveCubeColor()

CubeColor* te::rp::GroupColor::RemoveCubeColor ( )

Removes the current item from the list.

◆ Split()

GroupColor* te::rp::GroupColor::Split ( int  newgcid)

Splits the GroupColor in two ones. The new GroupColor will have its id given by newgcid. The list of ColorCubes in the original GroupColor will be divided with the new GroupColor.

Parameters
newgcidnew group color identifier
Returns
pointer to CubeColor (NULL if empty)

Member Data Documentation

◆ m_CClist

std::list<CubeColor*> te::rp::GroupColor::m_CClist
private

List of pointers to CubeColors.

Definition at line 201 of file PaletteRaster.h.

◆ m_Ex

double te::rp::GroupColor::m_Ex[3]
private

Expectation of means of CubeColors belonging to this GroupColor.

Definition at line 196 of file PaletteRaster.h.

◆ m_Ex2

double te::rp::GroupColor::m_Ex2[3]
private

Expectation of squared means of CubeColors belonging to this GroupColor.

Definition at line 197 of file PaletteRaster.h.

◆ m_id

int te::rp::GroupColor::m_id
private

Id of GroupColor.

Definition at line 195 of file PaletteRaster.h.

◆ m_itCC

std::list<CubeColor*>::iterator te::rp::GroupColor::m_itCC
private

iterator to CubeColors list

Definition at line 202 of file PaletteRaster.h.

◆ m_pop

double te::rp::GroupColor::m_pop
private

population of group color

Definition at line 200 of file PaletteRaster.h.

◆ m_var

double te::rp::GroupColor::m_var[3]
private

Variance in each dimension of CubeColors belonging to this GroupColor.

Definition at line 198 of file PaletteRaster.h.

◆ m_varmax

double te::rp::GroupColor::m_varmax
private

Biggest variance.

Definition at line 199 of file PaletteRaster.h.


The documentation for this class was generated from the following file: