te::rp::Codifima Class Reference

Defines a Codifima class. More...

#include <PaletteRaster.h>

Public Member Functions

bool Apply ()
 Aplies the method. More...
 
 Codifima (const te::rst::Raster &inputRaster, te::map::RasterTransform &rasterTransform, te::rst::Raster &outRasterPtr, int palettesize=256)
 Codifies a rgb raster to a paletta raster. More...
 
std::vector< te::rst::BandProperty::ColorEntrygetPalette ()
 Gets the generated palette. More...
 
 ~Codifima ()
 Normal destructor. More...
 

Protected Member Functions

bool AllocateHist ()
 
bool AllocateMatclass ()
 
void Clear ()
 
int color_generation ()
 
void DeallocateHist ()
 
void DeallocateMatclass ()
 
bool histogram_3d ()
 
bool image_codifying ()
 
bool k_means ()
 

Protected Attributes

CubeColor **** hist
 histogram of CubeColors More...
 
short m_blockb [256]
 blue grouping block More...
 
short m_blockg [256]
 green grouping block More...
 
short m_blockr [256]
 red grouping block More...
 
std::list< CubeColor * > m_CClist
 list of CubeColors present in the Image More...
 
int m_finalcolors
 final number of colors found More...
 
int m_firstvb
 fisrt valid blue value More...
 
int m_firstvg
 fisrt valid green value More...
 
int m_firstvr
 fisrt valid red value More...
 
GroupColor ** m_GC
 array of GroupColors More...
 
const te::rst::Rasterm_inputRaster
 input rgb raster More...
 
int m_lastvb
 last valid blue value More...
 
int m_lastvg
 last valid green value More...
 
int m_lastvr
 last valid red value More...
 
double ** m_lut
 lut - values ​​found for each channel (R,G,B) More...
 
int m_ngc
 number of GroupColors More...
 
te::rst::Bandm_outBand
 output band More...
 
unsigned int m_outNCols
 output columns number More...
 
unsigned int m_outNRows
 output rows number More...
 
te::rst::Rasterm_outputRaster
 output palette raster More...
 
std::vector< te::rst::BandProperty::ColorEntrym_palette
 generated palette More...
 
te::map::RasterTransformm_rasterTransform
 Raster Transformation from input raster. More...
 
int *** matclass
 classification matrix More...
 

Detailed Description

Defines a Codifima class.

The class Codifima describing the images in use (attribute images, classified images, segmented images) and training data set as well. from Spring code

Definition at line 215 of file PaletteRaster.h.

Constructor & Destructor Documentation

◆ Codifima()

te::rp::Codifima::Codifima ( const te::rst::Raster inputRaster,
te::map::RasterTransform rasterTransform,
te::rst::Raster outRasterPtr,
int  palettesize = 256 
)

Codifies a rgb raster to a paletta raster.

Parameters
inputRasterinput rgb raster
rasterTransformRasterTransformation of input raster
outRasterPtroutput platter raster palettesize number of colors of palette( default = 256)

◆ ~Codifima()

te::rp::Codifima::~Codifima ( )
inline

Normal destructor.

Definition at line 245 of file PaletteRaster.h.

References te::map::Clear.

Member Function Documentation

◆ AllocateHist()

bool te::rp::Codifima::AllocateHist ( )
protected

◆ AllocateMatclass()

bool te::rp::Codifima::AllocateMatclass ( )
protected

◆ Apply()

bool te::rp::Codifima::Apply ( )

Aplies the method.

Returns
true or false

◆ Clear()

void te::rp::Codifima::Clear ( )
protected

◆ color_generation()

int te::rp::Codifima::color_generation ( )
protected

◆ DeallocateHist()

void te::rp::Codifima::DeallocateHist ( )
protected

◆ DeallocateMatclass()

void te::rp::Codifima::DeallocateMatclass ( )
protected

◆ getPalette()

std::vector< te::rst::BandProperty::ColorEntry > te::rp::Codifima::getPalette ( )
inline

Gets the generated palette.

Definition at line 256 of file PaletteRaster.h.

◆ histogram_3d()

bool te::rp::Codifima::histogram_3d ( )
protected

◆ image_codifying()

bool te::rp::Codifima::image_codifying ( )
protected

◆ k_means()

bool te::rp::Codifima::k_means ( )
protected

Member Data Documentation

◆ hist

CubeColor**** te::rp::Codifima::hist
protected

histogram of CubeColors

Definition at line 284 of file PaletteRaster.h.

◆ m_blockb

short te::rp::Codifima::m_blockb[256]
protected

blue grouping block

Definition at line 277 of file PaletteRaster.h.

◆ m_blockg

short te::rp::Codifima::m_blockg[256]
protected

green grouping block

Definition at line 277 of file PaletteRaster.h.

◆ m_blockr

short te::rp::Codifima::m_blockr[256]
protected

red grouping block

Definition at line 277 of file PaletteRaster.h.

◆ m_CClist

std::list<CubeColor*> te::rp::Codifima::m_CClist
protected

list of CubeColors present in the Image

Definition at line 283 of file PaletteRaster.h.

◆ m_finalcolors

int te::rp::Codifima::m_finalcolors
protected

final number of colors found

Definition at line 281 of file PaletteRaster.h.

◆ m_firstvb

int te::rp::Codifima::m_firstvb
protected

fisrt valid blue value

Definition at line 270 of file PaletteRaster.h.

◆ m_firstvg

int te::rp::Codifima::m_firstvg
protected

fisrt valid green value

Definition at line 270 of file PaletteRaster.h.

◆ m_firstvr

int te::rp::Codifima::m_firstvr
protected

fisrt valid red value

Definition at line 270 of file PaletteRaster.h.

◆ m_GC

GroupColor** te::rp::Codifima::m_GC
protected

array of GroupColors

Definition at line 282 of file PaletteRaster.h.

◆ m_inputRaster

const te::rst::Raster* te::rp::Codifima::m_inputRaster
protected

input rgb raster

Definition at line 259 of file PaletteRaster.h.

◆ m_lastvb

int te::rp::Codifima::m_lastvb
protected

last valid blue value

Definition at line 270 of file PaletteRaster.h.

◆ m_lastvg

int te::rp::Codifima::m_lastvg
protected

last valid green value

Definition at line 270 of file PaletteRaster.h.

◆ m_lastvr

int te::rp::Codifima::m_lastvr
protected

last valid red value

Definition at line 270 of file PaletteRaster.h.

◆ m_lut

double** te::rp::Codifima::m_lut
protected

lut - values ​​found for each channel (R,G,B)

Definition at line 280 of file PaletteRaster.h.

◆ m_ngc

int te::rp::Codifima::m_ngc
protected

number of GroupColors

Definition at line 269 of file PaletteRaster.h.

◆ m_outBand

te::rst::Band* te::rp::Codifima::m_outBand
protected

output band

Definition at line 264 of file PaletteRaster.h.

◆ m_outNCols

unsigned int te::rp::Codifima::m_outNCols
protected

output columns number

Definition at line 266 of file PaletteRaster.h.

◆ m_outNRows

unsigned int te::rp::Codifima::m_outNRows
protected

output rows number

Definition at line 267 of file PaletteRaster.h.

◆ m_outputRaster

te::rst::Raster* te::rp::Codifima::m_outputRaster
protected

output palette raster

Definition at line 261 of file PaletteRaster.h.

◆ m_palette

std::vector< te::rst::BandProperty::ColorEntry > te::rp::Codifima::m_palette
protected

generated palette

Definition at line 262 of file PaletteRaster.h.

◆ m_rasterTransform

te::map::RasterTransform* te::rp::Codifima::m_rasterTransform
protected

Raster Transformation from input raster.

Definition at line 260 of file PaletteRaster.h.

◆ matclass

int*** te::rp::Codifima::matclass
protected

classification matrix

Definition at line 285 of file PaletteRaster.h.


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