26#ifndef __TERRALIB_MAPTOOLS_INTERNAL_RASTERTRANSFORM_H
27#define __TERRALIB_MAPTOOLS_INTERNAL_RASTERTRANSFORM_H
255 void setTransfParameters(
double rmin,
double rmax,
double gain,
double offset1,
double offset2,
int band);
284 void apply(
double icol,
double ilin,
double ocol,
double olin) {(this->*
m_transfFuncPtr)(icol,ilin,ocol,olin); }
295 const std::vector< double >& contrastOffsets1,
296 const std::vector< double >& contrastOffsets2 );
323 const int height,
void* buffer,
352 const unsigned int r,
double& value )
const
359 unsigned char* buffer =
static_cast<unsigned char*
>(
m_buffer);
366 const unsigned int c,
const unsigned int r,
double& value )
const;
383 const unsigned int r,
double& value)
const
390 const unsigned int r,
double& value)
const
397 const unsigned int r,
double& value)
const
494 void setRecode(
double icol,
double ilin,
double ocol,
double olin);
503 inline void applyLinearContrast(
const unsigned int& bandIdx,
const double& inputValue,
double& outputValue)
const
511 inline void applySquareContrast(
const unsigned int& bandIdx,
const double& inputValue,
double& outputValue)
const
525 inline void applyLogContrast(
const unsigned int& bandIdx,
const double& inputValue,
double& outputValue)
const
528 outputValue = std::log10( inputValue +
m_transformBandInfo[bandIdx]->m_contrastOffset1 + 1.0 ) *
533 inline void fixValue(
double& value,
short& band)
const
573 std::complex<double> cValue;
575 value = cValue.imag();
581 std::complex<double> cValue;
583 value = std::sqrt( ( cValue.real() * cValue.real() )
584 + ( cValue.imag() * cValue.imag() ) ) ;
A helper class for 24-bit RGBA (Red-Green-Blue-Alpha channel) color.
#define TE_TR(message)
It marks a string in order to get translated.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.
An abstract class for raster data strucutures.
The RasterSymbolizer describes how to render raster/matrix-coverage data (e.g., satellite photos,...
The concept of color bar.
Namespace for the Map Tools module of TerraLib.
Namespace for the Raster module of TerraLib.
void(* SetBufferValueFPtr)(int index, void *buffer, const double *value)
The type of function used to extract data from a buffer.
void(* GetBufferValueFPtr)(int index, void *buffer, double *value)
The type of function used to extract data from a buffer.
TERASTEREXPORT void SetBlockFunctions(GetBufferValueFPtr *gb, GetBufferValueFPtr *gbi, SetBufferValueFPtr *sb, SetBufferValueFPtr *sbi, int type)
Sets the pointers to functions that helps to extract a double or complex value from a specific buffer...
Namespace for the Symbology Encoding module of TerraLib.
Base exception class for plugin module.