Raster Processing functions. More...
#include "Functions.h"#include "../dataaccess/dataset/DataSetType.h"#include "../dataaccess/datasource/DataSourceFactory.h"#include "../dataaccess/utils/Utils.h"#include "../datatype/Enums.h"#include "../raster/BandProperty.h"#include "../raster/Grid.h"#include "../raster/RasterFactory.h"#include "../raster/RasterProperty.h"#include "../raster/RasterIterator.h"#include "../raster/Utils.h"#include "../geometry/Point.h"#include "../common/MatrixUtils.h"#include "Exception.h"#include "Macros.h"#include "RasterHandler.h"#include <boost/filesystem.hpp>#include <boost/numeric/ublas/io.hpp>#include <boost/numeric/ublas/matrix.hpp>#include <boost/shared_ptr.hpp>#include <boost/shared_array.hpp>#include <boost/lexical_cast.hpp>#include <boost/thread.hpp>#include <boost/numeric/ublas/lu.hpp>#include <cstring>#include <string>#include <limits>#include <map>#include <memory>Go to the source code of this file.
Classes | |
| struct | te::rp::GetCovarianceValueThreadParams |
| struct | te::rp::GetMeanValueThreadParams |
| struct | te::rp::GetStdDevValueThreadParams |
| struct | te::rp::RemapValuesThreadParams |
Namespaces | |
| te | |
| URI C++ Library. | |
| te::rp | |
| Namespace for Raster Processing module of TerraLib. | |
Macros | |
| #define | M_PI 3.14159265358979323846 |
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... | |
| 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 | te::rp::GetCovarianceValueThread (GetCovarianceValueThreadParams *paramsPtr) |
| 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... | |
| void | te::rp::GetMeanValueThread (GetMeanValueThreadParams *paramsPtr) |
| 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... | |
| void | te::rp::GetStdDevValueThread (GetStdDevValueThreadParams *paramsPtr) |
| 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::RasterResample (const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, const te::rst::Interpolator::Method interpMethod, const unsigned int firstRow, const unsigned int firstColumn, const unsigned int height, const unsigned int width, const unsigned int newheight, const unsigned int newwidth, const std::map< std::string, std::string > &rinfo, const std::string &dataSourceType, std::auto_ptr< te::rst::Raster > &resampledRasterPtr) |
| Resample a subset of the raster, given a box. 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... | |
| void | te::rp::RemapValuesThread (RemapValuesThreadParams *paramsPtr) |
Raster Processing functions.
Definition in file Functions.cpp.
| #define M_PI 3.14159265358979323846 |
Definition at line 66 of file Functions.cpp.
Referenced by te::rp::ConvertIHS2RGB(), and te::rp::ConvertRGB2IHS().