All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::rp Namespace Reference

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  ArithmeticOperations
 Performs arithmetic operation over raster data. 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  GeometricRefining
 Geometric (and positioning) correction/refining of a already geo-referenced raster using a set of small reference rasters. More...
 
class  GeoMosaic
 Create a mosaic from a set of geo-referenced rasters. More...
 
struct  GetCovarianceValueThreadParams
 
struct  GetMeanValueThreadParams
 
struct  GetStdDevValueThreadParams
 
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
 
class  MixtureModelLinearStrategyFactory
 Raster linear mixture model strategy factory. More...
 
class  MixtureModelPCAStrategy
 
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  PCAFusion
 Fusion of a low-resolution multi-band image with a high resolution image using the PCA (Principal components analysis) method. 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...
 
struct  RemapValuesThreadParams
 
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...
 
struct  SegmenterRegionGrowingSegment
 Region Growing segment. More...
 
class  SegmenterRegionGrowingSegmentsPool
 Segments pool. More...
 
class  SegmenterRegionGrowingStrategy
 Raster region growing segmenter strategy. More...
 
class  SegmenterRegionGrowingStrategyFactory
 Raster region growing segmenter strategy factory. More...
 
class  SegmenterSegmentsBlock
 Segmenter segments block description class. 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 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 Copy2DiskRaster (const te::rst::Raster &inputRaster, const std::string &fileName)
 Create a new raster into a GDAL datasource. 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...
 
bool DirectPrincipalComponents (const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, boost::numeric::ublas::matrix< double > &pcaMatrix, te::rst::Raster &pcaRaster, const unsigned int maxThreads)
 Generate all principal components from the given input raster. More...
 
std::vector< std::string > GetBandNames ()
 Returns a vector os with band's names. More...
 
bool 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 GetCovarianceValueThread (GetCovarianceValueThreadParams *paramsPtr)
 
void TERPEXPORT 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...
 
bool GetMeanValue (const te::rst::Band &band, const unsigned int maxThreads, double &meanValue)
 Get the mean of band pixel values. More...
 
void GetMeanValueThread (GetMeanValueThreadParams *paramsPtr)
 
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 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 GetStdDevValueThread (GetStdDevValueThreadParams *paramsPtr)
 
bool InversePrincipalComponents (const te::rst::Raster &pcaRaster, const boost::numeric::ublas::matrix< double > &pcaMatrix, te::rst::Raster &outputRaster, const unsigned int maxThreads)
 Regenerate the original raster from its principal components. More...
 
bool NormalizeRaster (te::rst::Raster &inputRaster, double nmin=0.0, double nmax=255.0)
 Normalizes one raster in a given interval. More...
 
bool RemapValues (const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, const boost::numeric::ublas::matrix< double > &remapMatrix, te::rst::Raster &outputRaster, const unsigned int maxThreads)
 Remap pixel values using a remap function matrix. More...
 
void RemapValuesThread (RemapValuesThreadParams *paramsPtr)
 

Detailed Description

Namespace for Raster Processing module of TerraLib.

Function Documentation

TERPEXPORT bool te::rp::GetMeanValue ( const te::rst::Band band,
const unsigned int  maxThreads,
double &  meanValue 
)
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.

Parameters
bandThe input raster band.
maxThreadsThe maximum number of threads to use (0-auto, 1-single thread used).
meanValuePtrA pointer to a pre-calculated band mean value or zero if it does not exist.
stdDevValueThe calculated standard deviation value.
Returns
true if OK, false on errors.
Note
Optimized for rasters where the used bands have the same blocking scheme.

Definition at line 1231 of file Functions.cpp.

References te::rp::Matrix< TemplateElementType >::getColumnsNumber(), te::rp::Matrix< TemplateElementType >::getLinesNumber(), GetMeanValue(), te::common::GetPhysProcNumber(), te::rst::Band::getProperty(), 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::PCAFusion::swapBandByHighResRaster().