Raster processing auxiliary functions. More...
Enumerations | |
| enum | te::rp::WaveletAtrousFilterType { te::rp::InvalidWAFilter, te::rp::B3SplineWAFilter, te::rp::TriangleWAFilter } | 
| Wavelet Atrous Filter types.  More... | |
Functions | |
| bool | te::rp::ComposeBands (te::rp::FeederConstRaster &feeder, const std::vector< unsigned int > &inputRasterBands, const te::rst::Interpolator::Method &interpMethod, const std::map< std::string, std::string > &outputRasterInfo, const std::string &outputDataSourceType, std::auto_ptr< te::rst::Raster > &outputRasterPtr) | 
| Compose a set of bands into one multi-band raster.  More... | |
| void | te::rp::Convert2DoublesVector (void *inputVector, const int inputVectorDataType, unsigned int inputVectorSize, double *outputVector) | 
| Convert vector elements.  More... | |
| void | te::rp::ConvertDoublesVector (double *inputVector, unsigned int inputVectorSize, const int outputVectorDataType, void *outputVector) | 
| Convert a doubles vector.  More... | |
| bool | te::rp::ConvertIHS2RGB (const te::rst::Raster &inputIHSRaster, const unsigned int intensityBandIdx, const unsigned int hueBandIdx, const unsigned int saturationBandIdx, const double rgbRangeMin, const double rgbRangeMax, te::rst::Raster &outputRGBRaster) | 
| IHS to RGB conversion.  More... | |
| bool | te::rp::ConvertRGB2IHS (const te::rst::Raster &inputRGBRaster, const unsigned int redBandIdx, const unsigned int greenBandIdx, const unsigned int blueBandIdx, const double rgbRangeMin, const double rgbRangeMax, te::rst::Raster &outputIHSRaster) | 
| RGB to IHS conversion.  More... | |
| bool TERPEXPORT | te::rp::Copy2DiskRaster (const te::rst::Raster &inputRaster, const std::string &fileName) | 
| Create a new raster into a GDAL datasource.  More... | |
| bool | te::rp::CreateNewGdalRaster (const te::rst::Grid &rasterGrid, std::vector< te::rst::BandProperty * > bandsProperties, const std::string &fileName, RasterHandler &outRasterHandler) | 
| Create a new raster into a GDAL datasource.  More... | |
| bool | te::rp::CreateNewGdalRaster (const te::rst::Grid &rasterGrid, std::vector< te::rst::BandProperty * > bandsProperties, const std::string &fileName, std::auto_ptr< te::rst::Raster > &outRasterPtr) | 
| Create a new raster into a GDAL datasource.  More... | |
| bool | te::rp::CreateNewMemRaster (const te::rst::Grid &rasterGrid, std::vector< te::rst::BandProperty * > bandsProperties, RasterHandler &outRasterHandler) | 
| Create a new raster into a new memory datasource.  More... | |
| bool | te::rp::CreateNewRaster (const te::rst::Grid &rasterGrid, const std::vector< te::rst::BandProperty * > &bandsProperties, const std::string &outDataSetName, const std::string &dataSourceType, RasterHandler &outRasterHandler) | 
| Create a new raster into the givem data source.  More... | |
| bool | te::rp::CreateNewRaster (const te::rst::Grid &rasterGrid, const std::vector< te::rst::BandProperty * > &bandsProperties, const std::string &outDataSetName, te::da::DataSource &outDataSource, RasterHandler &outRasterHandler) | 
| Create a new raster into the givem data source.  More... | |
| template<typename MatrixElementT > | |
| bool | te::rp::CreateRasterFileFromMatrix (const te::rp::Matrix< MatrixElementT > &matrix, const bool normalize, const std::string &fileName) | 
| Create a tiff file from a matrix.  More... | |
| boost::numeric::ublas::matrix < double >  | te::rp::CreateWaveletAtrousFilter (const WaveletAtrousFilterType &filterType) | 
| Create a Wavele Atrous Filter.  More... | |
| bool | te::rp::DecomposeBands (const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, const std::vector< std::map< std::string, std::string > > &outputRastersInfos, const std::string &outputDataSourceType, std::vector< boost::shared_ptr< te::rst::Raster > > &outputRastersPtrs) | 
| Decompose a multi-band raster into a set of one-band rasters.  More... | |
| bool | te::rp::DirectPrincipalComponents (const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, boost::numeric::ublas::matrix< double > &pcaMatrix, te::rst::Raster &pcaRaster, const std::vector< unsigned int > &pcaRasterBands, const unsigned int maxThreads) | 
| Generate all principal components from the given input raster.  More... | |
| bool | te::rp::DirectWaveletAtrous (const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, te::rst::Raster &waveletRaster, const unsigned int levelsNumber, const boost::numeric::ublas::matrix< double > &filter) | 
| Generate all wavelet planes from the given input raster.  More... | |
| std::vector< std::string > | te::rp::GetBandNames () | 
| Returns a vector os with band's names.  More... | |
| bool | te::rp::GetCovarianceValue (const te::rst::Band &band1, const te::rst::Band &band2, const unsigned int maxThreads, double const *const mean1ValuePtr, double const *const mean2ValuePtr, double &covarianceValue) | 
| Get the covariance of band pixel values.  More... | |
| void TERPEXPORT | te::rp::GetDataTypeRange (const int dataType, double &min, double &max) | 
| Returns the real data type range (all values that can be represented by the given data type).  More... | |
| bool | te::rp::GetDetailedExtent (const te::rst::Grid &grid, te::gm::LinearRing &detailedExtent) | 
| Create a datailed extent from the given grid.  More... | |
| std::pair< double, double > | te::rp::GetDigitalNumberBandInfo (std::string bandName) | 
| Returns the maximun and minimum digital numbers of a given sensor/band.  More... | |
| double | te::rp::GetDigitalNumberBandMax (std::string bandName) | 
| Returns the maximum digital number of a given sensor/band.  More... | |
| bool | te::rp::GetIndexedDetailedExtent (const te::rst::Grid &grid, te::gm::LinearRing &indexedDetailedExtent) | 
| Create a indexed (lines,columns) datailed extent from the given grid.  More... | |
| bool | te::rp::GetMeanValue (const te::rst::Band &band, const unsigned int maxThreads, double &meanValue) | 
| Get the mean of band pixel values.  More... | |
| TERASTEREXPORT std::vector < te::gm::Point * >  | te::rst::GetRandomPointsInRaster (const te::rst::Raster &inputRaster, unsigned int numberOfPoints=1000) | 
| Creates a vector of random positions (points) inside the raster.  More... | |
| std::pair< double, double > | te::rp::GetSpectralBandInfo (std::string bandName) | 
| Returns the maximun and minimum reflectance values of a given sensor/band.  More... | |
| double | te::rp::GetSpectralBandMax (std::string bandName) | 
| Returns the maximum reflectance value of a given sensor/band.  More... | |
| double | te::rp::GetSpectralBandMin (std::string bandName) | 
| Returns the minimum reflectance value of a given sensor/band.  More... | |
| bool | te::rp::GetStdDevValue (const te::rst::Band &band, const unsigned int maxThreads, double const *const meanValuePtr, double &stdDevValue) | 
| Get the standard deviation of band pixel values.  More... | |
| bool | te::rp::InversePrincipalComponents (const te::rst::Raster &pcaRaster, const boost::numeric::ublas::matrix< double > &pcaMatrix, te::rst::Raster &outputRaster, const std::vector< unsigned int > &outputRasterBands, const unsigned int maxThreads) | 
| Regenerate the original raster from its principal components.  More... | |
| bool | te::rp::InverseWaveletAtrous (const te::rst::Raster &waveletRaster, const unsigned int levelsNumber, te::rst::Raster &outputRaster, const std::vector< unsigned int > &outputRasterBands) | 
| Regenerate the original raster from its wavelets planes.  More... | |
| bool | te::rp::NormalizeRaster (te::rst::Raster &inputRaster, double nmin=0.0, double nmax=255.0) | 
| Normalizes one raster in a given interval.  More... | |
| bool | te::rp::RemapValues (const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, const boost::numeric::ublas::matrix< double > &remapMatrix, te::rst::Raster &outputRaster, const std::vector< unsigned int > &outputRasterBands, const unsigned int maxThreads) | 
| Remap pixel values using a remap function matrix.  More... | |
Raster processing auxiliary functions.
Wavelet Atrous Filter types.
| Enumerator | |
|---|---|
| InvalidWAFilter | 
 Invalid filter type.  | 
| B3SplineWAFilter | 
 Spline filter type.  | 
| TriangleWAFilter | 
 Triangle filter type.  | 
Definition at line 74 of file Functions.h.
| TERPEXPORT bool te::rp::ComposeBands | ( | te::rp::FeederConstRaster & | feeder, | 
| const std::vector< unsigned int > & | inputRasterBands, | ||
| const te::rst::Interpolator::Method & | interpMethod, | ||
| const std::map< std::string, std::string > & | outputRasterInfo, | ||
| const std::string & | outputDataSourceType, | ||
| std::auto_ptr< te::rst::Raster > & | outputRasterPtr | ||
| ) | 
Compose a set of bands into one multi-band raster.
| feeder | Input rasters feeder. | 
| inputRasterBands | Input raster bands (one band for each input raster). | 
| interpMethod | The interpolator method to use. | 
| outputRasterInfo | Output raster connection info. | 
| outputDataSourceType | Output raster datasource type. | 
| outputRasterPtr | A pointer to the generated output raster. | 
Definition at line 2128 of file Functions.cpp.
References te::rst::Grid::geoToGrid(), te::rst::Raster::getBand(), te::rp::FeederConstRaster::getCurrentObj(), te::rp::FeederConstRaster::getCurrentOffset(), te::rst::Raster::getGrid(), te::rst::Raster::getNumberOfBands(), te::rp::FeederConstRaster::getObjsCount(), te::rst::Raster::getSRID(), te::rst::Interpolator::getValue(), te::rst::Grid::gridToGeo(), te::rst::RasterFactory::make(), te::rp::FeederConstRaster::moveNext(), te::rp::FeederConstRaster::reset(), and te::rst::Band::setValue().
Referenced by te::qt::widgets::ComposeBandsWizard::executeCompose().
| void TERPEXPORT te::rp::Convert2DoublesVector | ( | void * | inputVector, | 
| const int | inputVectorDataType, | ||
| unsigned int | inputVectorSize, | ||
| double * | outputVector | ||
| ) | 
Convert vector elements.
| inputVector | Input vector. | 
| inputVectorDataType | Input vector data type. | 
| inputVectorSize | The numer of input vector elements. | 
| outputVector | A pré-allocated output vector. | 
Definition at line 331 of file Functions.cpp.
References te::dt::BIT_TYPE, te::dt::CDOUBLE_TYPE, te::dt::CFLOAT_TYPE, te::dt::CHAR_TYPE, te::dt::CINT16_TYPE, te::dt::CINT32_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.
Referenced by te::rp::GetCovarianceValueThread(), te::rp::GetMeanValueThread(), te::rp::GetStdDevValueThread(), te::rp::Contrast::remapBandLevels(), and te::rp::RemapValuesThread().
| void TERPEXPORT te::rp::ConvertDoublesVector | ( | double * | inputVector, | 
| unsigned int | inputVectorSize, | ||
| const int | outputVectorDataType, | ||
| void * | outputVector | ||
| ) | 
Convert a doubles vector.
| inputVector | Input vector. | 
| inputVectorSize | The numer of input vector elements. | 
| inputVectorDataType | Input vector data type. | 
| outputVector | A pré-allocated output vector. | 
Definition at line 443 of file Functions.cpp.
References te::dt::BIT_TYPE, te::dt::CDOUBLE_TYPE, te::dt::CFLOAT_TYPE, te::dt::CHAR_TYPE, te::dt::CINT16_TYPE, te::dt::CINT32_TYPE, te::dt::DOUBLE_TYPE, te::dt::FLOAT_TYPE, te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::dt::UCHAR_TYPE, te::dt::UINT16_TYPE, te::dt::UINT32_TYPE, and te::dt::UINT64_TYPE.
Referenced by te::rp::Contrast::remapBandLevels(), and te::rp::RemapValuesThread().
| TERPEXPORT bool te::rp::ConvertIHS2RGB | ( | const te::rst::Raster & | inputIHSRaster, | 
| const unsigned int | intensityBandIdx, | ||
| const unsigned int | hueBandIdx, | ||
| const unsigned int | saturationBandIdx, | ||
| const double | rgbRangeMin, | ||
| const double | rgbRangeMax, | ||
| te::rst::Raster & | outputRGBRaster | ||
| ) | 
IHS to RGB conversion.
| inputIHSRaster | The input raster. | 
| intensityBandIdx | The intensity band index. | 
| hueBandIdx | The hue band index. | 
| saturationBandIdx | The saturation band index. | 
| rgbRangeMin | The minimum RGB value. | 
| rgbRangeMax | The maximum RGB value. | 
| outputRGBRaster | An output pré-initiated raster (with the same dimensions of inputIHSRaster) where the RGB data will be written. | 
Definition at line 873 of file Functions.cpp.
References te::rst::Raster::getAccessPolicy(), te::rst::Raster::getBand(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getProperty(), te::rst::Band::getValue(), te::rst::BandProperty::m_noDataValue, M_PI, MAX, MIN, te::common::RAccess, te::rst::Band::setValue(), and te::common::WAccess.
Referenced by te::qt::widgets::ColorTransformWizard::executeIHS2RGB().
| TERPEXPORT bool te::rp::ConvertRGB2IHS | ( | const te::rst::Raster & | inputRGBRaster, | 
| const unsigned int | redBandIdx, | ||
| const unsigned int | greenBandIdx, | ||
| const unsigned int | blueBandIdx, | ||
| const double | rgbRangeMin, | ||
| const double | rgbRangeMax, | ||
| te::rst::Raster & | outputIHSRaster | ||
| ) | 
RGB to IHS conversion.
| inputRGBRaster | The input raster. | 
| redBandIdx | The red band index. | 
| greenBandIdx | The red band index. | 
| blueBandIdx | The red band index. | 
| rgbRangeMin | The minimum RGB value. | 
| rgbRangeMax | The maximum RGB value. | 
| outputIHSRaster | An output pré-initiated raster (with the same dimensions of inputRGBRaster) where the IHS data will be written (double or float as the data type). | 
Definition at line 745 of file Functions.cpp.
References te::rst::Raster::getAccessPolicy(), te::rst::Raster::getBand(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getProperty(), te::rst::Band::getValue(), te::rst::BandProperty::m_noDataValue, M_PI, te::common::RAccess, te::rst::Raster::setValue(), and te::common::WAccess.
Referenced by te::qt::widgets::ColorTransformWizard::executeRGB2IHS().
| bool TERPEXPORT te::rp::Copy2DiskRaster | ( | const te::rst::Raster & | inputRaster, | 
| const std::string & | fileName | ||
| ) | 
Create a new raster into a GDAL datasource.
| rasterGrid | The template grid used to create the output raster. | 
| bandsProperties | The template band properties used to create the output raster. | 
| fileName | The output tif file name. | 
| outRasterHandler | The created raster handler. | 
Definition at line 281 of file Functions.cpp.
References te::rp::CreateNewGdalRaster(), te::rst::Raster::getAccessPolicy(), te::rst::Raster::getBand(), te::rst::Raster::getGrid(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getProperty(), te::rp::RasterHandler::getRasterPtr(), te::rst::Band::getValue(), te::common::RAccess, and te::rst::Band::setValue().
| bool TERPEXPORT te::rp::CreateNewGdalRaster | ( | const te::rst::Grid & | rasterGrid, | 
| std::vector< te::rst::BandProperty * > | bandsProperties, | ||
| const std::string & | fileName, | ||
| RasterHandler & | outRasterHandler | ||
| ) | 
Create a new raster into a GDAL datasource.
| rasterGrid | The template grid used to create the output raster. | 
| bandsProperties | The template band properties used to create the output raster. | 
| fileName | The output tif file name. | 
| outRasterHandler | The created raster handler. | 
Definition at line 235 of file Functions.cpp.
References te::rp::RasterHandler::reset().
Referenced by te::rp::Copy2DiskRaster().
| bool TERPEXPORT te::rp::CreateNewGdalRaster | ( | const te::rst::Grid & | rasterGrid, | 
| std::vector< te::rst::BandProperty * > | bandsProperties, | ||
| const std::string & | fileName, | ||
| std::auto_ptr< te::rst::Raster > & | outRasterPtr | ||
| ) | 
Create a new raster into a GDAL datasource.
| rasterGrid | The template grid used to create the output raster. | 
| bandsProperties | The template band properties used to create the output raster. | 
| fileName | The output tif file name. | 
| outRasterPtr | The created raster pointer. | 
Definition at line 253 of file Functions.cpp.
References te::rst::RasterFactory::make().
| bool TERPEXPORT te::rp::CreateNewMemRaster | ( | const te::rst::Grid & | rasterGrid, | 
| std::vector< te::rst::BandProperty * > | bandsProperties, | ||
| RasterHandler & | outRasterHandler | ||
| ) | 
Create a new raster into a new memory datasource.
| rasterGrid | The template grid used to create the output raster. | 
| bandsProperties | The template band properties used to create the output raster. | 
| outRasterHandler | The created raster handler. | 
Definition at line 224 of file Functions.cpp.
References te::rp::CreateNewRaster().
| bool TERPEXPORT te::rp::CreateNewRaster | ( | const te::rst::Grid & | rasterGrid, | 
| const std::vector< te::rst::BandProperty * > & | bandsProperties, | ||
| const std::string & | outDataSetName, | ||
| const std::string & | dataSourceType, | ||
| RasterHandler & | outRasterHandler | ||
| ) | 
Create a new raster into the givem data source.
| rasterGrid | The template grid used to create the output raster. | 
| bandsProperties | The template band properties used to create the output raster. | 
| outDataSetName | The data set name to give to the created data set. | 
| dataSourceType | The data source type string (i.e. GDAL, MEM.). | 
| outRasterHandler | The created raster handler. | 
Definition at line 119 of file Functions.cpp.
References te::da::DataSourceFactory::make(), te::rp::RasterHandler::release(), and te::rp::RasterHandler::reset().
Referenced by te::rp::CreateNewMemRaster(), and te::rp::SequenceMosaic::createRasterDataSet().
| bool TERPEXPORT te::rp::CreateNewRaster | ( | const te::rst::Grid & | rasterGrid, | 
| const std::vector< te::rst::BandProperty * > & | bandsProperties, | ||
| const std::string & | outDataSetName, | ||
| te::da::DataSource & | outDataSource, | ||
| RasterHandler & | outRasterHandler | ||
| ) | 
Create a new raster into the givem data source.
| rasterGrid | The template grid used to create the output raster. | 
| bandsProperties | The template band properties used to create the output raster. | 
| outDataSetName | The data set name to give to the created data set. | 
| outDataSource | The data source to use when creating the output data set. | 
| outRasterHandler | The created raster handler. | 
Definition at line 155 of file Functions.cpp.
References te::common::FORWARDONLY, te::da::DataSource::getTransactor(), te::rp::RasterHandler::reset(), and te::common::RWAccess.
| bool te::rp::CreateRasterFileFromMatrix | ( | const te::rp::Matrix< MatrixElementT > & | matrix, | 
| const bool | normalize, | ||
| const std::string & | fileName | ||
| ) | 
Create a tiff file from a matrix.
| matrix | The matrix. | 
| normalize | Enable/disable pixel normalization (8bit); | 
| tifFileName | Tif file name. | 
| return | true if OK, false on errors. | 
Definition at line 219 of file Functions.h.
References te::dt::DOUBLE_TYPE, te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rst::GrayIdxCInt, te::sa::Grid, te::rst::RasterFactory::make(), TERP_TRUE_OR_RETURN_FALSE, and te::dt::UCHAR_TYPE.
| TERPEXPORT boost::numeric::ublas::matrix< double > te::rp::CreateWaveletAtrousFilter | ( | const WaveletAtrousFilterType & | filterType | ) | 
Create a Wavele Atrous Filter.
| filterType | The filter type. | 
Definition at line 2349 of file Functions.cpp.
References te::rp::B3SplineWAFilter, and te::rp::TriangleWAFilter.
Referenced by te::rp::WisperFusion::execute().
| TERPEXPORT bool te::rp::DecomposeBands | ( | const te::rst::Raster & | inputRaster, | 
| const std::vector< unsigned int > & | inputRasterBands, | ||
| const std::vector< std::map< std::string, std::string > > & | outputRastersInfos, | ||
| const std::string & | outputDataSourceType, | ||
| std::vector< boost::shared_ptr< te::rst::Raster > > & | outputRastersPtrs | ||
| ) | 
Decompose a multi-band raster into a set of one-band rasters.
| inputRaster | Input raster. | 
| inputRasterBands | Input raster bands. | 
| outputRastersInfos | Output rasters connections infos. (one info for each decomposed band). | 
| outputDataSourceType | Output raster datasource type. | 
| outputRastersPtrs | Pointers to the generated outputs rasters. | 
Definition at line 2062 of file Functions.cpp.
References te::rst::Raster::getAccessPolicy(), te::rst::Raster::getBand(), te::rst::Raster::getGrid(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getProperty(), te::rst::Band::getValue(), te::rst::RasterFactory::make(), te::common::RAccess, and te::rst::Band::setValue().
Referenced by te::qt::widgets::ComposeBandsWizard::executeDecompose().
| TERPEXPORT bool te::rp::DirectPrincipalComponents | ( | const te::rst::Raster & | inputRaster, | 
| const std::vector< unsigned int > & | inputRasterBands, | ||
| boost::numeric::ublas::matrix< double > & | pcaMatrix, | ||
| te::rst::Raster & | pcaRaster, | ||
| const std::vector< unsigned int > & | pcaRasterBands, | ||
| const unsigned int | maxThreads | ||
| ) | 
Generate all principal components from the given input raster.
| inputRaster | Input raster. | 
| inputRasterBands | Input raster bands. | 
| pcaMatrix | The matrix generated over the principal components process. | 
| pcaRaster | The pré-initiated output PCA raster (with the same dimensions of inputRaster) and double as the data type. | 
| pcaRasterBands | Output raster bands. | 
| maxThreads | The maximum number of threads to use (0-auto, 1-single thread used). | 
Definition at line 1504 of file Functions.cpp.
References te::common::EigenVectors(), te::rst::Raster::getAccessPolicy(), te::rst::Raster::getBand(), te::rp::GetCovarianceValue(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::common::RAccess, te::rp::RemapValues(), and te::common::WAccess.
Referenced by te::rp::Contrast::execDecorrelationEnhancement(), and te::rp::PCAFusion::execute().
| TERPEXPORT bool te::rp::DirectWaveletAtrous | ( | const te::rst::Raster & | inputRaster, | 
| const std::vector< unsigned int > & | inputRasterBands, | ||
| te::rst::Raster & | waveletRaster, | ||
| const unsigned int | levelsNumber, | ||
| const boost::numeric::ublas::matrix< double > & | filter | ||
| ) | 
Generate all wavelet planes from the given input raster.
| inputRaster | Input raster. | 
| inputRasterBands | Input raster bands. | 
| waveletRaster | The pré-initiated output wavelet raster (with the same dimensions of inputRaster) and double as the data type. | 
| levelsNumber | The number of decomposed wavelet levels to generate for each input raster band; | 
| filter | The square filter to use. | 
Definition at line 2394 of file Functions.cpp.
References te::rst::Raster::getAccessPolicy(), te::rst::Raster::getBand(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getValue(), te::common::RAccess, te::rst::Band::setValue(), and te::common::WAccess.
Referenced by te::rp::WisperFusion::execute().
| TERPEXPORT std::vector< std::string > te::rp::GetBandNames | ( | ) | 
Returns a vector os with band's names.
Definition at line 556 of file Functions.cpp.
Referenced by te::qt::widgets::MixtureModelWizardPage::listBands(), and te::qt::widgets::MixtureModelDialog::MixtureModelDialog().
| TERPEXPORT bool te::rp::GetCovarianceValue | ( | const te::rst::Band & | band1, | 
| const te::rst::Band & | band2, | ||
| const unsigned int | maxThreads, | ||
| double const *const | mean1ValuePtr, | ||
| double const *const | mean2ValuePtr, | ||
| double & | covarianceValue | ||
| ) | 
Get the covariance of band pixel values.
| band1 | The input band 1. | 
| band2 | The input band 2. | 
| maxThreads | The maximum number of threads to use (0-auto, 1-single thread used). | 
| mean1ValuePtr | A pointer to a pre-calculated band1 mean value or zero if it does not exist. | 
| mean2ValuePtr | A pointer to a pre-calculated band2 mean value or zero if it does not exist. | 
| covarianceValue | The calculated covariance value. | 
Definition at line 1357 of file Functions.cpp.
References te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::GetCovarianceValueThread(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rp::GetMeanValue(), te::common::GetPhysProcNumber(), te::rst::Band::getProperty(), te::rst::Band::getValue(), te::rst::BandProperty::m_blkh, te::rst::BandProperty::m_blkw, te::rp::GetCovarianceValueThreadParams::m_covarianceValuePtr, te::rp::GetCovarianceValueThreadParams::m_inputBand1Ptr, te::rp::GetCovarianceValueThreadParams::m_inputBand2Ptr, te::rp::GetCovarianceValueThreadParams::m_mean1Value, te::rp::GetCovarianceValueThreadParams::m_mean2Value, te::rp::GetCovarianceValueThreadParams::m_mutexPtr, te::rst::BandProperty::m_nblocksx, te::rst::BandProperty::m_nblocksy, te::rst::BandProperty::m_noDataValue, te::rp::GetCovarianceValueThreadParams::m_pixelsNumberValuePtr, te::rp::GetCovarianceValueThreadParams::m_rasterBlocksStatusPtr, te::rp::GetCovarianceValueThreadParams::m_returnStatus, and te::rp::Matrix< TemplateElementType >::reset().
Referenced by te::rp::DirectPrincipalComponents().
      
  | 
  inline | 
Returns the real data type range (all values that can be represented by the given data type).
| dataType | The data type. | 
| min | The minimum value. | 
| max | The maximum value. | 
Definition at line 180 of file Functions.h.
References te::rst::GetDataTypeRanges().
Referenced by te::rp::Filter::DilationFilter(), te::rp::Filter::ErosionFilter(), te::rp::Contrast::execHistogramEqualizationContrast(), te::rp::Contrast::execLinearContrast(), te::rp::Contrast::execLogContrast(), te::rp::Contrast::execSetMeanAndStdContrast(), te::rp::Contrast::execSquareContrast(), te::rp::Contrast::execSquareRootContrast(), te::rp::ArithmeticOperations::execute(), te::rp::WisperFusion::execute(), te::rp::Filter::MeanFilter(), te::rp::Filter::MedianFilter(), te::rp::Filter::ModeFilter(), te::rp::RasterResample(), te::rp::Contrast::remapBandLevels(), te::rp::Filter::RobertsFilter(), te::rp::Filter::SobelFilter(), te::rp::PCAFusion::swapBandByHighResRaster(), and te::rp::Filter::UserDefinedFilter().
| TERPEXPORT bool te::rp::GetDetailedExtent | ( | const te::rst::Grid & | grid, | 
| te::gm::LinearRing & | detailedExtent | ||
| ) | 
Create a datailed extent from the given grid.
| grid | Input grid. | 
| detailedExtent | The created detailed extent. | 
Definition at line 2244 of file Functions.cpp.
References te::rst::Grid::getExtent(), te::gm::Envelope::getLowerLeftX(), te::gm::Envelope::getLowerLeftY(), te::rst::Grid::getNumberOfColumns(), te::rst::Grid::getNumberOfRows(), te::rst::Grid::getResolutionX(), te::rst::Grid::getResolutionY(), te::rst::Grid::getSRID(), te::gm::Envelope::getUpperRightX(), te::gm::Envelope::getUpperRightY(), and te::gm::LineStringType.
Referenced by te::rp::GeoMosaic::execute().
| TERPEXPORT std::pair< double, double > te::rp::GetDigitalNumberBandInfo | ( | std::string | bandName | ) | 
Returns the maximun and minimum digital numbers of a given sensor/band.
Definition at line 651 of file Functions.cpp.
Referenced by te::rp::GetDigitalNumberBandMax().
| TERPEXPORT double te::rp::GetDigitalNumberBandMax | ( | std::string | bandName | ) | 
Returns the maximum digital number of a given sensor/band.
Definition at line 696 of file Functions.cpp.
References te::rp::GetDigitalNumberBandInfo().
Referenced by te::rp::MixtureModelLinearStrategy::execute(), and te::rp::MixtureModelPCAStrategy::execute().
| TERPEXPORT bool te::rp::GetIndexedDetailedExtent | ( | const te::rst::Grid & | grid, | 
| te::gm::LinearRing & | indexedDetailedExtent | ||
| ) | 
Create a indexed (lines,columns) datailed extent from the given grid.
| grid | Input grid. | 
| indexedDetailedExtent | The created detailed extent. | 
Definition at line 2298 of file Functions.cpp.
References te::rst::Grid::getNumberOfColumns(), te::rst::Grid::getNumberOfRows(), te::gm::LineStringType, and te::gm::LineString::setPoint().
Referenced by te::rp::Register::execute(), te::rp::TiePointsMosaic::execute(), and te::rp::SequenceMosaic::execute().
| TERPEXPORT bool te::rp::GetMeanValue | ( | const te::rst::Band & | band, | 
| const unsigned int | maxThreads, | ||
| double & | meanValue | ||
| ) | 
Get the mean of band pixel values.
| band | The input raster band. | 
| maxThreads | The maximum number of threads to use (0-auto, 1-single thread used). | 
| meanValue | The calculated mean value. | 
Definition at line 1086 of file Functions.cpp.
References te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rp::GetMeanValueThread(), te::common::GetPhysProcNumber(), te::rst::Band::getProperty(), te::rp::GetMeanValueThreadParams::m_inputBandPtr, te::rp::GetMeanValueThreadParams::m_meanValuePtr, te::rp::GetMeanValueThreadParams::m_mutexPtr, te::rst::BandProperty::m_nblocksx, te::rst::BandProperty::m_nblocksy, te::rp::GetMeanValueThreadParams::m_pixelsNumberValuePtr, te::rp::GetMeanValueThreadParams::m_rasterBlocksStatusPtr, te::rp::GetMeanValueThreadParams::m_returnStatus, and te::rp::Matrix< TemplateElementType >::reset().
Referenced by te::rp::Contrast::execDecorrelationEnhancement(), te::rp::GetCovarianceValue(), te::rp::GetStdDevValue(), and te::rp::PCAFusion::swapBandByHighResRaster().
| std::vector< te::gm::Point * > te::rst::GetRandomPointsInRaster | ( | const te::rst::Raster & | inputRaster, | 
| unsigned int | numberOfPoints = 1000  | 
        ||
| ) | 
Creates a vector of random positions (points) inside the raster.
| inputRaster | The given raster. | 
| numberOfPoints | The number of random positions to be created (default = 1000). | 
Definition at line 485 of file Utils.cpp.
References te::rst::Raster::getGrid(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Raster::getSRID(), and te::rst::Grid::gridToGeo().
Referenced by te::qt::widgets::createScatter(), te::rp::ClassifierKMeansStrategy::execute(), te::rp::ClassifierEMStrategy::execute(), te::rst::Band::getMaxValue(), and te::rst::Band::getMinValue().
| TERPEXPORT std::pair< double, double > te::rp::GetSpectralBandInfo | ( | std::string | bandName | ) | 
Returns the maximun and minimum reflectance values of a given sensor/band.
Definition at line 596 of file Functions.cpp.
Referenced by te::rp::GetSpectralBandMax(), and te::rp::GetSpectralBandMin().
| TERPEXPORT double te::rp::GetSpectralBandMax | ( | std::string | bandName | ) | 
Returns the maximum reflectance value of a given sensor/band.
Definition at line 646 of file Functions.cpp.
References te::rp::GetSpectralBandInfo().
| TERPEXPORT double te::rp::GetSpectralBandMin | ( | std::string | bandName | ) | 
Returns the minimum reflectance value of a given sensor/band.
Definition at line 641 of file Functions.cpp.
References te::rp::GetSpectralBandInfo().
| TERPEXPORT bool te::rp::GetStdDevValue | ( | const te::rst::Band & | band, | 
| const unsigned int | maxThreads, | ||
| double const *const | meanValuePtr, | ||
| double & | stdDevValue | ||
| ) | 
Get the standard deviation of band pixel values.
| band | The input raster band. | 
| maxThreads | The maximum number of threads to use (0-auto, 1-single thread used). | 
| meanValuePtr | A pointer to a pre-calculated band mean value or zero if it does not exist. | 
| stdDevValue | The calculated standard deviation value. | 
Definition at line 1211 of file Functions.cpp.
References te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rp::GetMeanValue(), te::common::GetPhysProcNumber(), te::rst::Band::getProperty(), te::rp::GetStdDevValueThread(), te::rp::GetStdDevValueThreadParams::m_inputBandPtr, te::rp::GetStdDevValueThreadParams::m_meanValue, te::rp::GetStdDevValueThreadParams::m_mutexPtr, te::rst::BandProperty::m_nblocksx, te::rst::BandProperty::m_nblocksy, te::rp::GetStdDevValueThreadParams::m_pixelsNumberValuePtr, te::rp::GetStdDevValueThreadParams::m_rasterBlocksStatusPtr, te::rp::GetStdDevValueThreadParams::m_returnStatus, te::rp::GetStdDevValueThreadParams::m_stdDevValuePtr, and te::rp::Matrix< TemplateElementType >::reset().
Referenced by te::rp::Contrast::execDecorrelationEnhancement(), and te::rp::PCAFusion::swapBandByHighResRaster().
| TERPEXPORT bool te::rp::InversePrincipalComponents | ( | const te::rst::Raster & | pcaRaster, | 
| const boost::numeric::ublas::matrix< double > & | pcaMatrix, | ||
| te::rst::Raster & | outputRaster, | ||
| const std::vector< unsigned int > & | outputRasterBands, | ||
| const unsigned int | maxThreads | ||
| ) | 
Regenerate the original raster from its principal components.
| pcaRaster | The principal components raster (with the same dimensions of outputRaster). | 
| pcaMatrix | The matrix generated by the direct principal components process. | 
| outputRaster | The regenerated output raster (with the same dimentions. | 
| outputRasterBands | Output raster bands. | 
| maxThreads | The maximum number of threads to use (0-auto, 1-single thread used). | 
Definition at line 1594 of file Functions.cpp.
References te::common::GetInverseMatrix(), te::rst::Raster::getNumberOfBands(), and te::rp::RemapValues().
Referenced by te::rp::Contrast::execDecorrelationEnhancement(), and te::rp::PCAFusion::execute().
| TERPEXPORT bool te::rp::InverseWaveletAtrous | ( | const te::rst::Raster & | waveletRaster, | 
| const unsigned int | levelsNumber, | ||
| te::rst::Raster & | outputRaster, | ||
| const std::vector< unsigned int > & | outputRasterBands | ||
| ) | 
Regenerate the original raster from its wavelets planes.
| waveletRaster | The input wavelet raster (with the same dimensions of outputRaster). | 
| levelsNumber | The number of decomposed wavelet levels present inside the wavelet raster. | 
| outputRaster | The regenerated output raster. | 
| outputRasterBands | Output raster bands. | 
Definition at line 2523 of file Functions.cpp.
References te::rst::Raster::getAccessPolicy(), te::rst::Raster::getBand(), te::rst::GetDataTypeRanges(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::rst::Band::getProperty(), te::rst::Raster::getValue(), te::rst::BandProperty::m_type, te::common::RAccess, te::rst::Raster::setValue(), and te::common::WAccess.
| TERPEXPORT bool te::rp::NormalizeRaster | ( | te::rst::Raster & | inputRaster, | 
| double | nmin = 0.0,  | 
        ||
| double | nmax = 255.0  | 
        ||
| ) | 
Normalizes one raster in a given interval.
| inputRaster | The given raster. | 
| nmin | The new minimum value (default = 0.0). | 
| nmax | The new maximum value (default = 255.0). | 
Definition at line 701 of file Functions.cpp.
References te::rst::RasterIterator< T >::begin(), te::rst::RasterIterator< T >::end(), te::rst::Raster::getBand(), te::rst::RasterIterator< T >::getColumn(), te::rst::Band::getMaxValue(), te::rst::Band::getMinValue(), te::rst::Raster::getNumberOfBands(), te::rst::RasterIterator< T >::getRow(), and te::rst::Raster::setValue().
Referenced by te::rp::MixtureModel::execute().
| TERPEXPORT bool te::rp::RemapValues | ( | const te::rst::Raster & | inputRaster, | 
| const std::vector< unsigned int > & | inputRasterBands, | ||
| const boost::numeric::ublas::matrix< double > & | remapMatrix, | ||
| te::rst::Raster & | outputRaster, | ||
| const std::vector< unsigned int > & | outputRasterBands, | ||
| const unsigned int | maxThreads | ||
| ) | 
Remap pixel values using a remap function matrix.
| inputRaster | Input raster. | 
| inputRasterBands | Input raster bands. | 
| remapMatrix | The remap function matrix. | 
| outputRaster | The pré-initiated output raster (with the same dimentions of inputRaster). | 
| outputRasterBands | Output raster bands. | 
| maxThreads | The maximum number of threads to use (0-auto, 1-single thread used). | 
Definition at line 1788 of file Functions.cpp.
References te::rst::Raster::getAccessPolicy(), te::rst::Raster::getBand(), te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rst::GetDataTypeRanges(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rst::Raster::getNumberOfBands(), te::rst::Raster::getNumberOfColumns(), te::rst::Raster::getNumberOfRows(), te::common::GetPhysProcNumber(), te::rst::Band::getProperty(), te::rst::BandProperty::getType(), te::rst::Raster::getValue(), te::rst::BandProperty::m_blkh, te::rst::BandProperty::m_blkw, te::rp::RemapValuesThreadParams::m_inputRasterBandsPtr, te::rp::RemapValuesThreadParams::m_inputRasterPtr, te::rp::RemapValuesThreadParams::m_mutexPtr, te::rst::BandProperty::m_nblocksx, te::rst::BandProperty::m_nblocksy, te::rst::BandProperty::m_noDataValue, te::rp::RemapValuesThreadParams::m_outputRasterBandsPtr, te::rp::RemapValuesThreadParams::m_outputRasterPtr, te::rp::RemapValuesThreadParams::m_rasterBlocksStatusPtr, te::rp::RemapValuesThreadParams::m_remapMatrixPtr, te::rp::RemapValuesThreadParams::m_returnStatus, te::common::RAccess, te::rp::RemapValuesThread(), te::rp::Matrix< TemplateElementType >::reset(), te::rst::Raster::setValue(), and te::common::WAccess.
Referenced by te::rp::DirectPrincipalComponents(), and te::rp::InversePrincipalComponents().