Namespace for Raster Processing module of TerraLib. More...
Classes | |
class | AbstractFeeder |
Abstract objects feeder. More... | |
class | Algorithm |
Raster Processing algorithm base interface. More... | |
class | AlgorithmInputParameters |
Raster Processing algorithm input parameters base interface. More... | |
class | AlgorithmOutputParameters |
Raster Processing algorithm output parameters base interface. More... | |
class | Blender |
Blended pixel value calculation for two overlaped rasters. More... | |
class | Classifier |
Raster classification. More... | |
class | ClassifierDummyStrategy |
Dummy strategy (just for testing purposes). More... | |
class | ClassifierDummyStrategyFactory |
Raster dummy Classifier strategy factory. More... | |
class | ClassifierEMStrategy |
EM strategy for pixel-based classification. This is an unsupervised and pixel-based classification algorithm. Expectation-Maximization (EM) works iteratively by applying two steps: the E-step (Expectation) and the M-step (Maximization). The method aims to approximate the parameter estimates to real data distribution, along the iterations: More... | |
class | ClassifierEMStrategyFactory |
Raster EM Classifier strategy factory. More... | |
class | ClassifierISOSegStrategy |
ISOSeg strategy for OBIA classification. The algorithm orders regions by area (larger first), and classify the largest region as Cluster 1. All regions similar to this cluster are inserted in Cluster 1, otherwise new Clusters are created. After all regions belong to a cluster, the algorithm merges similar clusters. The acceptance threshold is the only parameter given by the user, and it indicates the maximum distance between two regions to be clustered togheter. More... | |
class | ClassifierISOSegStrategyFactory |
Raster ISOSeg Classifier strategy factory. More... | |
class | ClassifierKMeansStrategy |
KMeans strategy for image classification. Step-by-step: More... | |
class | ClassifierKMeansStrategyFactory |
Raster KMeans Classifier strategy factory. More... | |
class | ClassifierMAPStrategy |
Maximum a posteriori probability strategy. More... | |
class | ClassifierMAPStrategyFactory |
Maximum a posteriori probability strategy factory. More... | |
class | ClassifierSAMStrategy |
Spectral Angle Mapper classification strategy. More... | |
class | ClassifierSAMStrategyFactory |
Spectral Angle Mapper strategy factory. More... | |
class | ClassifierStrategy |
Raster classifier strategy base class. More... | |
class | ClassifierStrategyFactory |
Raster classifier strategy factory base class. More... | |
class | Contrast |
Contrast enhancement. More... | |
class | FeederConstRaster |
Feeder from a input rasters. More... | |
class | FeederConstRasterDirectory |
A feeder from an input directory name. More... | |
class | FeederConstRasterInfo |
class | FeederConstRasterVector |
A feeder from a input rasters vector;. More... | |
class | Filter |
A series of well-known filtering algorithms for images, linear and non-linear.. More... | |
class | GeoMosaic |
Create a mosaic from a set of geo-referenced rasters. More... | |
class | IHSFusion |
Fusion of a low-resolution multi-band image with a high resolution image using the IHS method. More... | |
class | Matrix |
A generic template matrix. More... | |
class | MixtureModel |
Raster decomposition using mixture model. More... | |
class | MixtureModelLinearStrategy |
... More... | |
class | MixtureModelLinearStrategyFactory |
Raster linear mixture model strategy factory. More... | |
class | MixtureModelPCAStrategy |
... More... | |
class | MixtureModelPCAStrategyFactory |
Raster PCA mixture model strategy factory. More... | |
class | MixtureModelStrategy |
Raster mixture model strategy base class. More... | |
class | MixtureModelStrategyFactory |
Raster Mixture model strategy factory base class. More... | |
class | Module |
This singleton defines the TerraLib Raster Processing module entry. More... | |
class | RasterAttributes |
Extraction of attributes from Raster, Bands, and Polygons. More... | |
class | RasterHandler |
RasterHandler. More... | |
class | Register |
Performs raster data registering into a SRS using a set of tie points. More... | |
class | Segmenter |
Raster segmentation. More... | |
class | SegmenterDummyStrategy |
Dummy strategy (just for testing purposes). More... | |
class | SegmenterDummyStrategyFactory |
Raster dummy segmenter strategy factory. More... | |
class | SegmenterIdsManager |
Segmenter segments IDs manager. More... | |
class | SegmenterRegionGrowingStrategy |
Raster region growing segmenter strategy. More... | |
class | SegmenterRegionGrowingStrategyFactory |
Raster region growing segmenter strategy factory. More... | |
class | SegmenterSegment |
Segmenter segment base class. More... | |
class | SegmenterSegmentsBlock |
Segmenter segments block description class. More... | |
class | SegmenterSegmentsPool |
Segments pool. More... | |
class | SegmenterStrategy |
Raster segmenter strategy base class. More... | |
class | SegmenterStrategyFactory |
Raster segmenter strategy factory base class. More... | |
class | SegmenterStrategyParameters |
Segmenter Strategy Parameters. More... | |
class | SequenceMosaic |
Create mosaics from a sequence of overlapped rasters using an automatic tie-points detection method. More... | |
class | Skeleton |
Creation of skeleton images. More... | |
class | StrategyParameters |
Raster strategy parameters base class. More... | |
class | TiePointsLocator |
Tie points locator. More... | |
class | TiePointsMosaic |
Create a mosaic from a set of rasters using tie-points. More... | |
Functions | |
void | Convert2DoublesVector (void *inputVector, const int inputVectorDataType, unsigned int inputVectorSize, double *outputVector) |
Convert vector elements. More... | |
void | ConvertDoublesVector (double *inputVector, unsigned int inputVectorSize, const int outputVectorDataType, void *outputVector) |
Convert a doubles vector. More... | |
bool | 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 | ConvertRBG2IHS (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 | 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 | 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 | 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 | 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 | CreateRasterFileFromMatrix (const te::rp::Matrix< MatrixElementT > &matrix, const bool normalize, const std::string &fileName) |
Create a tiff file from a matrix. More... | |
std::vector< std::string > | GetBandNames () |
Returns a vector os with band's names. More... | |
void | 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... | |
std::pair< double, double > | GetDigitalNumberBandInfo (std::string bandName) |
Returns the maximun and minimum digital numbers of a given sensor/band. More... | |
double | GetDigitalNumberBandMax (std::string bandName) |
Returns the maximum digital number of a given sensor/band. More... | |
std::vector< te::gm::Point * > | 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 > | GetSpectralBandInfo (std::string bandName) |
Returns the maximun and minimum reflectance values of a given sensor/band. More... | |
double | GetSpectralBandMax (std::string bandName) |
Returns the maximum reflectance value of a given sensor/band. More... | |
double | GetSpectralBandMin (std::string bandName) |
Returns the minimum reflectance value of a given sensor/band. More... | |
bool | NormalizeRaster (te::rst::Raster &inputRaster, double nmin=0.0, double nmax=255.0) |
Normalizes one raster in a given interval. More... | |
Namespace for Raster Processing module of TerraLib.
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 286 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().
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 398 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().
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 | The output RGB raster. |
Definition at line 847 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.
TERPEXPORT bool te::rp::ConvertRBG2IHS | ( | 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 | The output IHS raster. |
Definition at line 719 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.
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 183 of file Functions.cpp.
References CreateNewRaster(), te::da::DataSourceFactory::make(), te::rp::RasterHandler::release(), and te::rp::RasterHandler::reset().
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 172 of file Functions.cpp.
References 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 67 of file Functions.cpp.
References te::da::DataSourceFactory::make(), te::rp::RasterHandler::release(), and te::rp::RasterHandler::reset().
Referenced by CreateNewGdalRaster(), 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 103 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 161 of file Functions.h.
References te::dt::DOUBLE_TYPE, te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), te::rst::GrayIdxCInt, te::rst::RasterFactory::make(), TERP_TRUE_OR_RETURN_FALSE, and te::dt::UCHAR_TYPE.
TERPEXPORT std::vector< std::string > te::rp::GetBandNames | ( | ) |
Returns a vector os with band's names.
Definition at line 511 of file Functions.cpp.
Referenced by te::qt::widgets::MixtureModelWizardPage::listBands(), and te::qt::widgets::MixtureModelDialog::MixtureModelDialog().
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).
dataType | The data type. |
min | The minimum value. |
max | The maximum value. |
Definition at line 228 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::Filter::DilationFilter(), te::rp::Filter::ErosionFilter(), te::rp::Contrast::execHistogramEqualizationContrast(), te::rp::Contrast::execLinearContrast(), te::rp::Contrast::execSetMeanAndStdContrast(), te::rp::Filter::MeanFilter(), te::rp::Filter::MedianFilter(), te::rp::Filter::ModeFilter(), te::rp::Contrast::remapBandLevels(), te::rp::Filter::RobertsFilter(), te::rp::Filter::SobelFilter(), and te::rp::Filter::UserDefinedFilter().
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 606 of file Functions.cpp.
Referenced by GetDigitalNumberBandMax().
TERPEXPORT double te::rp::GetDigitalNumberBandMax | ( | std::string | bandName | ) |
Returns the maximum digital number of a given sensor/band.
Definition at line 651 of file Functions.cpp.
References GetDigitalNumberBandInfo().
Referenced by te::rp::MixtureModelLinearStrategy::execute(), and te::rp::MixtureModelPCAStrategy::execute().
TERPEXPORT std::vector< te::gm::Point * > te::rp::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 700 of file Functions.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::rp::ClassifierKMeansStrategy::execute(), and te::rp::ClassifierEMStrategy::execute().
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 551 of file Functions.cpp.
Referenced by GetSpectralBandMax(), and GetSpectralBandMin().
TERPEXPORT double te::rp::GetSpectralBandMax | ( | std::string | bandName | ) |
Returns the maximum reflectance value of a given sensor/band.
Definition at line 601 of file Functions.cpp.
References GetSpectralBandInfo().
TERPEXPORT double te::rp::GetSpectralBandMin | ( | std::string | bandName | ) |
Returns the minimum reflectance value of a given sensor/band.
Definition at line 596 of file Functions.cpp.
References GetSpectralBandInfo().
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 656 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().