26 #ifndef __TERRALIB_RP_INTERNAL_PALETTERASTER_H    27 #define __TERRALIB_RP_INTERNAL_PALETTERASTER_H    33 #include "../raster/Band.h"    34 #include "../raster/Grid.h"    35 #include "../raster/Raster.h"    36 #include "../maptools/RasterTransform.h"    81       void InsertTripleRGB(
int r, 
int g, 
int b);
   106       double Mean(
int i) { 
return (i < 3 && i >= 0) ? (m_mean[i]) : (0); }
   112       double Pop() { 
return m_pop; }
   187       double Mean(
int i) { 
return (i < 3 && i >= 0 && m_pop != 0) ? ((double)m_Ex[i] / m_pop) : ((double)0); }
   219       bool    AllocateMatclass();
   221       void    DeallocateMatclass();
   222       void    DeallocateHist();
   224       int color_generation();
   225       bool  image_codifying();
   240         int palettesize = 256);
   256       std::vector< te::rst::BandProperty::ColorEntry > 
getPalette() { 
return m_palette; }
   262         std::vector< te::rst::BandProperty::ColorEntry > 
m_palette; 
 std::list< CubeColor * > m_CClist
list of CubeColors present in the Image 
 
double MaxVar()
Returns the biggest variance. 
 
int *** matclass
classification matrix 
 
double ** m_lut
lut - values found for each channel (R,G,B) 
 
void SetGroupColorIndex(int index)
Sets group color index. 
 
int IndexR()
Get red component of cube center. 
 
te::rst::Band * m_outBand
output band 
 
double m_pop
population of group color 
 
int m_igc
Index of GroupColor associated with CubeColor. 
 
double Pop()
Get number of Image rgb triples in the CubeColor. 
 
Defines a cubic volume in the RGB color space. 
 
An abstract class for raster data strucutures. 
 
std::vector< te::rst::BandProperty::ColorEntry > m_palette
generated palette 
 
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module. 
 
double Mean(int i)
Return Mean[i] of GroupColor. 
 
size_t GetNCubeColors()
Returns the number of CubeColors in this GroupColor. 
 
CubeColor **** hist
histogram of CubeColors 
 
double m_pop
Number of Image rgb triples in the CubeColor. 
 
int m_ngc
number of GroupColors 
 
A raster band description. 
 
te::rst::Raster * m_outputRaster
output palette raster 
 
GroupColor ** m_GC
array of GroupColors 
 
int IndexB()
Get blue component of cube center. 
 
const te::rst::Raster * m_inputRaster
input rgb raster 
 
~Codifima()
Normal destructor. 
 
int m_id
Id of GroupColor. 
 
int m_ibr
Index of color red in the color cube space. 
 
Configuration flags for the Raster Processing module of TerraLib. 
 
int m_lastvr
last valid red value 
 
Defines a Codifima class. 
 
unsigned int m_outNRows
output rows number 
 
int IndexG()
Get green component of cube center. 
 
int GroupColorIndex()
Get the index of GroupColor associated with CubeColor. 
 
double m_varmax
Biggest variance. 
 
int m_finalcolors
final number of colors found 
 
unsigned int m_outNCols
output columns number 
 
Defines a classification context. 
 
std::list< CubeColor * > m_CClist
List of pointers to CubeColors. 
 
te::map::RasterTransform * m_rasterTransform
Raster Transformation from input raster. 
 
std::vector< te::rst::BandProperty::ColorEntry > getPalette()
Gets the generated palette. 
 
std::list< CubeColor * >::iterator m_itCC
iterator to CubeColors list 
 
double Mean(int i)
Get i-th mean color component value.