Raster Processing functions. More...
#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 "../geometry/Point.h"
#include "Exception.h"
#include "Functions.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/random.hpp>
#include <boost/random/uniform_int_distribution.hpp>
#include <boost/lexical_cast.hpp>
#include <cstring>
#include <string>
#include <limits>
#include <map>
#include <memory>
Go to the source code of this file.
Namespaces | |
te | |
URI C++ Library. | |
te::rp | |
Namespace for Raster Processing module of TerraLib. | |
Macros | |
#define | M_PI 3.14159265358979323846 |
Functions | |
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::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 | 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::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... | |
std::vector< std::string > | te::rp::GetBandNames () |
Returns a vector os with band's names. More... | |
void | 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... | |
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... | |
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. 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::NormalizeRaster (te::rst::Raster &inputRaster, double nmin=0.0, double nmax=255.0) |
Normalizes one raster in a given interval. More... | |
Raster Processing functions.
Definition in file Functions.cpp.
#define M_PI 3.14159265358979323846 |
Definition at line 60 of file Functions.cpp.
Referenced by te::rp::ConvertIHS2RGB(), and te::rp::ConvertRBG2IHS().