26 #ifndef __TERRALIB_RASTER_INTERNAL_UTILS_H 27 #define __TERRALIB_RASTER_INTERNAL_UTILS_H 35 #include "../common/MathUtils.h" 107 TERASTEREXPORT void Copy(
unsigned int drow,
unsigned int dcolumn,
unsigned int height,
unsigned int width,
const Raster& rin, Raster& rout);
129 const std::string& rType = std::string(
"GDAL"));
169 const std::map<std::string, std::string>& rinfo,
170 const std::string& rType = std::string(
"GDAL"));
185 const std::vector< te::gm::Geometry const *> geometries,
186 const std::map<std::string, std::string>& rinfo,
187 const std::string& rType );
230 const unsigned int bandIndex,
231 std::map<double, unsigned>& rHistogram );
253 const unsigned int bandIndex,
254 const unsigned int rowStart,
255 const unsigned int colStart,
256 const unsigned int finalRow,
257 const unsigned int finalCol,
258 const unsigned int histoBins,
259 const unsigned int sampleStep,
260 const unsigned int maxThreads,
261 std::map<double, unsigned>& rHistogram,
262 std::map<double, unsigned>& iHistogram );
274 const std::map<double, unsigned>& histogram,
283 #endif // __TERRALIB_RASTER_INTERNAL_UTILS_H #define TERASTEREXPORT
You can use this macro in order to export/import classes and functions from this module.
TERASTEREXPORT std::string ConvertColorInterpTypeToString(const te::rst::ColorInterp &ci)
Function used to convert from a Color Interp Enum to a string.
It describes one band (or dimension) of a raster.
ColorInterp
Color model component use.
TERASTEREXPORT std::vector< BandProperty * > GetBandProperties(const std::map< std::string, std::string > &rinfo)
Returns a vector of band properties, based on a given raster info.
TERASTEREXPORT void FillBand(te::rst::Band *bin, const std::complex< double > &value)
Fill a Raster Band with provided value.
TERASTEREXPORT void GetDataTypeRanges(const int &dataType, double &min, double &max)
Return the values range of a given data type.
TERASTEREXPORT Grid * GetGrid(const std::map< std::string, std::string > &rinfo)
Returns a grid based on a given raster info.
TERASTEREXPORT std::string ConvertPalleteInterpTypeToString(const te::rst::PaletteInterpretation &pi)
Function used to convert from a Pallete Interp Enum to a string.
TERASTEREXPORT int GetPixelSize(int datatype)
Returns the byte size of a given datatype.
TERASTEREXPORT bool getRealHistogram(const te::rst::Raster &raster, const unsigned int bandIndex, std::map< double, unsigned > &rHistogram)
Compute and return the real histogram of the band.
TERASTEREXPORT te::rst::RasterPtr CropRaster(const te::rst::Raster &rin, const te::gm::Polygon &pin, const std::map< std::string, std::string > &rinfo, const std::string &rType=std::string("GDAL"))
Creates a raster crop using a polygon delimiter.
boost::shared_ptr< Raster > RasterPtr
TERASTEREXPORT std::vector< te::gm::Point * > GetRandomPointsInRaster(const te::rst::Raster &inputRaster, unsigned int numberOfPoints=1000, bool ignoreNoDataValues=false)
Creates a vector of random positions (points) inside the raster.
An abstract class for raster data strucutures.
An abstract class for raster data strucutures.
TERASTEREXPORT int Round(double val)
Round a double value to a integer value.
It gives access to values in one band (dimension) of a raster.
A raster band description.
TERASTEREXPORT bool getHistograms(const te::rst::Raster &raster, const unsigned int bandIndex, const unsigned int rowStart, const unsigned int colStart, const unsigned int finalRow, const unsigned int finalCol, const unsigned int histoBins, const unsigned int sampleStep, const unsigned int maxThreads, std::map< double, unsigned > &rHistogram, std::map< double, unsigned > &iHistogram)
Compute and return the histogram soccurring values (real and imaginary) in a window of the band...
Polygon is a subclass of CurvePolygon whose rings are defined by linear rings.
TERASTEREXPORT void FillRaster(te::rst::Raster *rin, const std::complex< double > &value)
Fill a Raster with provided value (all bands).
A rectified grid is the spatial support for raster data.
TERASTEREXPORT void getHistogramStats(const std::map< double, unsigned > &histogram, double &min, double &max, double &mean, double &stdDev)
Compute statiscts from the given histogram.
Configuration flags for the Raster module of TerraLib.
PaletteInterpretation
Palette interpratation types.
TERASTEREXPORT te::rst::RasterPtr CreateCopy(const te::rst::Raster &rin, const std::string &uri, const std::string &rType=std::string("GDAL"))
Create a new raster from existing one.
TERASTEREXPORT void Copy(const Raster &rin, Raster &rout)
Copies the pixel values from one raster to another.