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::ColorEntry > | getPalette () |
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::Raster * | m_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::Band * | m_outBand |
output band More... | |
unsigned int | m_outNCols |
output columns number More... | |
unsigned int | m_outNRows |
output rows number More... | |
te::rst::Raster * | m_outputRaster |
output palette raster More... | |
std::vector< te::rst::BandProperty::ColorEntry > | m_palette |
generated palette More... | |
te::map::RasterTransform * | m_rasterTransform |
Raster Transformation from input raster. More... | |
int *** | matclass |
classification matrix More... | |
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.
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.
inputRaster | input rgb raster |
rasterTransform | RasterTransformation of input raster |
outRasterPtr | output platter raster \paeam palettesize number of colors of palette( default = 256) |
|
inline |
Normal destructor.
Definition at line 245 of file PaletteRaster.h.
|
protected |
|
protected |
bool te::rp::Codifima::Apply | ( | ) |
Aplies the method.
|
protected |
|
protected |
|
protected |
|
protected |
|
inline |
Gets the generated palette.
Definition at line 256 of file PaletteRaster.h.
|
protected |
|
protected |
|
protected |
|
protected |
histogram of CubeColors
Definition at line 284 of file PaletteRaster.h.
|
protected |
blue grouping block
Definition at line 279 of file PaletteRaster.h.
|
protected |
green grouping block
Definition at line 278 of file PaletteRaster.h.
|
protected |
red grouping block
Definition at line 277 of file PaletteRaster.h.
|
protected |
list of CubeColors present in the Image
Definition at line 283 of file PaletteRaster.h.
|
protected |
final number of colors found
Definition at line 281 of file PaletteRaster.h.
|
protected |
fisrt valid blue value
Definition at line 274 of file PaletteRaster.h.
|
protected |
fisrt valid green value
Definition at line 272 of file PaletteRaster.h.
|
protected |
fisrt valid red value
Definition at line 270 of file PaletteRaster.h.
|
protected |
array of GroupColors
Definition at line 282 of file PaletteRaster.h.
|
protected |
input rgb raster
Definition at line 259 of file PaletteRaster.h.
|
protected |
last valid blue value
Definition at line 275 of file PaletteRaster.h.
|
protected |
last valid green value
Definition at line 273 of file PaletteRaster.h.
|
protected |
last valid red value
Definition at line 271 of file PaletteRaster.h.
|
protected |
lut - values found for each channel (R,G,B)
Definition at line 280 of file PaletteRaster.h.
|
protected |
number of GroupColors
Definition at line 269 of file PaletteRaster.h.
|
protected |
output band
Definition at line 264 of file PaletteRaster.h.
|
protected |
output columns number
Definition at line 266 of file PaletteRaster.h.
|
protected |
output rows number
Definition at line 267 of file PaletteRaster.h.
|
protected |
output palette raster
Definition at line 261 of file PaletteRaster.h.
|
protected |
generated palette
Definition at line 262 of file PaletteRaster.h.
|
protected |
Raster Transformation from input raster.
Definition at line 260 of file PaletteRaster.h.
|
protected |
classification matrix
Definition at line 285 of file PaletteRaster.h.