Namespace for the Raster module of TerraLib. More...
Classes | |
class | AbstractBandIterator |
This class implements an abstract iterator to "navigate" over a single band. More... | |
class | AbstractPositionIterator |
This class is the base for implementing ways to navigate over the band with spatial restriction, e.g. through a line, inside a bounding box or polygon, etc. More... | |
class | Band |
A raster band description. More... | |
class | BandIterator |
This class implements an iterator to "navigate" over a single band. More... | |
class | BandIteratorWindow |
It implements and iterator to "navigate" over a single band, optimized by a window structure (e.g. 3x3, 5x5, etc). Examples include filters, moving windows, morphology, etc. More... | |
class | BandIteratorWithMask |
This class implements an iterator to "navigate" over a single band, with a spatial restriction given by a mask. More... | |
class | BandProperty |
A raster band description. More... | |
struct | BandSummary |
A summary of a raster band (most statistics). More... | |
class | BoundaryExtract |
It implements the Boundary Extract (vectorizer specialization - extract only one pixel value) More... | |
class | ConstBandIterator |
This class implements an iterator to "navigate" over a single band (const). More... | |
class | Grid |
A rectified grid is the spatial support for raster data. More... | |
class | Interpolator |
It interpolates one pixel based on a selected algorithm. Methods currently available are Nearest Neighbor, Bilinear, and Bicubic. More... | |
class | LineIterator |
This class implements the strategy to iterate with spatial restriction, the iteration occurs inside a line. More... | |
class | PointSetIterator |
This class implements the strategy to iterate with spatial restriction, the iteration occurs inside a vector of points. More... | |
class | PolygonIterator |
This class implements the strategy to iterate with spatial restriction, the iteration occurs inside a polygon. More... | |
class | ProxyRaster |
A proxy class for bands of several rasters over the same region. More... | |
class | Raster |
An abstract class for raster data strucutures. More... | |
class | RasterFactory |
This is the abstract factory for Rasters. More... | |
class | RasterIterator |
This class implements and iterator to "navigate" over a raster, with a predefined number of bands. More... | |
class | RasterProperty |
Raster property. More... | |
class | RasterSummaryManager |
A singleton for keeping raster summaries (most statistics). It stores an internal map of raster conn info str and their respective summaries. More... | |
class | RasterSynchronizer |
An access synchronizer to be used in SynchronizedRaster raster instances. More... | |
class | SynchronizedBand |
Syncrhonized raster band. More... | |
class | SynchronizedBandBlocksManager |
Synchronized raster raster band blocks manager. More... | |
class | SynchronizedRaster |
An adapter class to allow concurrent access to raster data by multiple threads. More... | |
class | TileIndexer |
Polygon tile indexing class for optmized geometrical relational tests. More... | |
class | Vectorizer |
It implements the vectorizer, based on TerraLib 4 algorithm. More... | |
class | VectorizerPolygonStructure |
A polygon container node class. More... | |
Typedefs | |
typedef boost::shared_ptr< BandProperty > | BandPropertyPtr |
typedef void(* | GetBufferValueFPtr) (int index, void *buffer, double *value) |
The type of function used to extract data from a buffer. More... | |
typedef boost::shared_ptr< Grid > | GridPtr |
typedef boost::shared_ptr< ProxyRaster > | ProxyRasterPtr |
typedef boost::shared_ptr< Raster > | RasterPtr |
typedef boost::ptr_vector< BandSummary > | RasterSummary |
RasterSummary is just a typedef of a boost::ptr_vector. More... | |
typedef void(* | SetBufferValueFPtr) (int index, void *buffer, const double *value) |
The type of function used to extract data from a buffer. More... | |
Enumerations | |
enum | ColorInterp { UndefCInt , GrayIdxCInt , PaletteIdxCInt , RedCInt , GreenCInt , BlueCInt , AlphaCInt , HueCInt , SatCInt , LigCInt , CyanCInt , MagentaCInt , YellowCInt , KeyCInt , YCInt , CbCInt , CrCInt } |
Color model component use. More... | |
enum | InterpolationMethod { UndefInterpMethod = 0 , NearestNeighbor = 1 , Bilinear = 2 , Bicubic = 3 , MeanInterpolation = 4 , MinInterpolation = 5 , MaxInterpolation = 6 , ModeInterpolation = 7 , MedianInterpolation = 8 } |
Allowed interpolation methods. More... | |
enum | PaletteInterpretation { UndefPalInt , GrayPalInt , RGBPalInt , CMYKPalInt , HSLPalInt } |
Palette interpratation types. More... | |
enum | SummaryTypes { SUMMARY_MIN = 1 , SUMMARY_MAX = 2 , SUMMARY_STD = 4 , SUMMARY_MEAN = 8 , SUMMARY_R_HISTOGRAM = 16 , SUMMARY_I_HISTOGRAM = 32 , SUMMARY_ALL = 63 } |
Types for the BandSummary. More... | |
Functions | |
TERASTEREXPORT std::string | ConvertColorInterpTypeToString (const te::rst::ColorInterp &ci) |
Function used to convert from a Color Interp Enum to a string. More... | |
TERASTEREXPORT std::string | ConvertPalleteInterpTypeToString (const te::rst::PaletteInterpretation &pi) |
Function used to convert from a Pallete Interp Enum to a string. More... | |
TERASTEREXPORT void | Copy (const Band &bin, Band &bout) |
Copies the pixel values from one band to another. More... | |
TERASTEREXPORT void | Copy (const Raster &rin, Raster &rout) |
Copies the pixel values from one raster to another. More... | |
TERASTEREXPORT void | Copy (unsigned int drow, unsigned int dcolumn, unsigned int height, unsigned int width, const Raster &rin, Raster &rout) |
Copy a subset of the raster, given a box. More... | |
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. More... | |
TERASTEREXPORT std::unique_ptr< te::rst::Raster > | CropRaster (const te::rst::Raster &rin, const std::vector< te::gm::Geometry const * > geometries, const std::map< std::string, std::string > &rinfo, const std::string &rType) |
Creates a raster crop using a polygon delimiter. More... | |
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. More... | |
TERASTEREXPORT void | DummyGetValue (int index, void *buffer, double *value) |
TERASTEREXPORT void | DummySetValue (int index, void *buffer, const double *value) |
TERASTEREXPORT void | FillBand (te::rst::Band *bin, const std::complex< double > &value) |
Fill a Raster Band with provided value. More... | |
TERASTEREXPORT void | fillHistogramGaps (const std::map< double, unsigned > &inputHistogram, std::map< double, unsigned > &outputHistogram) |
Create a a new histogram with all missing integer values filled with zero frequencies. More... | |
TERASTEREXPORT void | FillRaster (te::rst::Raster *rin, const std::complex< double > &value) |
Fill a Raster with provided value (all bands). More... | |
TERASTEREXPORT void | Get1bit (int index, void *buffer, double *value) |
TERASTEREXPORT void | Get2bits (int index, void *buffer, double *value) |
TERASTEREXPORT void | Get4bits (int index, void *buffer, double *value) |
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. More... | |
TERASTEREXPORT void | GetChar (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetCIDouble (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetCIFloat (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetCIInt16 (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetCIInt32 (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetCRDouble (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetCRFloat (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetCRInt16 (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetCRInt32 (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetDataTypeRanges (const int &dataType, double &min, double &max) |
Return the values range of a given data type. More... | |
TERASTEREXPORT void | GetDouble (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetFloat (int index, void *buffer, double *value) |
TERASTEREXPORT Grid * | GetGrid (const std::map< std::string, std::string > &rinfo) |
Returns a grid based on a given raster info. More... | |
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. More... | |
TERASTEREXPORT void | getHistogramStats (const std::map< double, unsigned > &histogram, double &min, double &max, double &mean, double &stdDev) |
Compute statiscts from the given histogram. More... | |
TERASTEREXPORT void | GetInt16 (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetInt32 (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetInt64 (int index, void *buffer, double *value) |
TERASTEREXPORT void | getInterpMethods (std::vector< std::pair< te::rst::InterpolationMethod, std::string > > &interpMethods) |
Get the avaliable interpolation methods. More... | |
TERASTEREXPORT int | GetPixelSize (int datatype) |
Returns the byte size of a given datatype. More... | |
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. More... | |
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. More... | |
TERASTEREXPORT void | GetUChar (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetUInt16 (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetUInt32 (int index, void *buffer, double *value) |
TERASTEREXPORT void | GetUInt64 (int index, void *buffer, double *value) |
TERASTEREXPORT bool | interpolateHistogram (const std::map< double, unsigned > &inputHistogram, std::map< double, unsigned > &outputHistogram, const unsigned int outputBinsNumber, const double outputMinValue, const double outputMaxValue) |
Create a interpolated histogram from the input histogram with the new bins number. More... | |
TERASTEREXPORT bool | rasterResample (const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, const te::rst::Interpolator::Method interpMethod, const unsigned int interpWindowRadius, 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 unsigned int maxThreads, const std::map< std::string, std::string > &rinfo, const std::string &dataSourceType, std::unique_ptr< te::rst::Raster > &resampledRasterPtr) |
Resample a subset of the raster, given a box. More... | |
TERASTEREXPORT bool | Reproject (int newSRID, const te::rst::Raster &inputRaster, const std::vector< unsigned int > &inputRasterBands, const te::rst::Interpolator::Method interpMethod, const unsigned int interpWindowRadius, 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 unsigned int maxThreads, const std::map< std::string, std::string > &rinfo, const std::string &dataSourceType, std::unique_ptr< te::rst::Raster > &outputRasterPtr) |
Reprojects, clip and resample a subset of the raster. More... | |
TERASTEREXPORT te::rst::Raster * | Reproject (te::rst::Raster const *const rin, int srid, const std::map< std::string, std::string > &routinfo, int m=te::rst::NearestNeighbor) |
Reprojects a raster to another SRS. More... | |
TERASTEREXPORT te::rst::Raster * | Reproject (te::rst::Raster const *const rin, int srid, double llx, double lly, double urx, double ury, const std::map< std::string, std::string > &routinfo, int m=te::rst::NearestNeighbor) |
Reprojects a portion of a raster to another SRS. More... | |
TERASTEREXPORT te::rst::Raster * | Reproject (te::rst::Raster const *const rin, int srid, double llx, double lly, double urx, double ury, double resx, double resy, const std::map< std::string, std::string > &routinfo, int m=te::rst::NearestNeighbor) |
Reprojects a portion of a raster to another SRS and maintaining a given resolution. More... | |
TERASTEREXPORT int | Round (double val) |
Round a double value to a integer value. More... | |
TERASTEREXPORT void | Set1bit (int index, void *buffer, const double *value) |
TERASTEREXPORT void | Set2bits (int index, void *buffer, const double *value) |
TERASTEREXPORT void | Set4bits (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetBlockFunctions (GetBufferValueFPtr *gb, GetBufferValueFPtr *gbi, SetBufferValueFPtr *sb, SetBufferValueFPtr *sbi, int type) |
Sets the pointers to functions that helps to extract a double or complex value from a specific buffer data type. More... | |
TERASTEREXPORT void | SetChar (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetCIDouble (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetCIFloat (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetCIInt16 (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetCIInt32 (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetCRDouble (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetCRFloat (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetCRInt16 (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetCRInt32 (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetDouble (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetFloat (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetInt16 (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetInt32 (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetInt64 (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetUChar (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetUInt16 (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetUInt32 (int index, void *buffer, const double *value) |
TERASTEREXPORT void | SetUInt64 (int index, void *buffer, const double *value) |
bool | StdSortPointPointerComparison (te::gm::Point *p1, te::gm::Point *p2) |
typedef boost::shared_ptr<BandProperty> te::rst::BandPropertyPtr |
Definition at line 157 of file BandProperty.h.
typedef void(* te::rst::GetBufferValueFPtr) (int index, void *buffer, double *value) |
The type of function used to extract data from a buffer.
Definition at line 37 of file BlockUtils.h.
typedef boost::shared_ptr<Grid> te::rst::GridPtr |
typedef boost::shared_ptr<ProxyRaster> te::rst::ProxyRasterPtr |
Definition at line 140 of file ProxyRaster.h.
typedef boost::shared_ptr<Raster> te::rst::RasterPtr |
typedef boost::ptr_vector<BandSummary> te::rst::RasterSummary |
RasterSummary is just a typedef of a boost::ptr_vector.
It is a vector of BandSummary, one summary for each band in a raster.
Definition at line 44 of file RasterSummary.h.
typedef void(* te::rst::SetBufferValueFPtr) (int index, void *buffer, const double *value) |
The type of function used to extract data from a buffer.
Definition at line 40 of file BlockUtils.h.
enum te::rst::ColorInterp |
Color model component use.
Enumerator | |
---|---|
UndefCInt | No color interpretation is associated with the band. |
GrayIdxCInt | Index into a lookup table. |
PaletteIdxCInt | Palette indexes color interpretation. |
RedCInt | Red channel color interpretation. |
GreenCInt | Green channel color interpretation. |
BlueCInt | Blue channel color interpretation. |
AlphaCInt | Alpha channel color interpretation. |
HueCInt | Hue channel color interpretation. |
SatCInt | Saturation color interpretation. |
LigCInt | Lightness color interpretation. |
CyanCInt | Cyan color interpretation. |
MagentaCInt | Magenta color interpretation. |
YellowCInt | Yellow color interpretation. |
KeyCInt | Key (black) color interpretation. |
YCInt | YCbCr Y Band color interpretation. |
CbCInt | YCbCr Cb Band color interpretation. |
CrCInt | YCbCr Cr Band color interpretation. |
Allowed interpolation methods.
Types for the BandSummary.
TERASTEREXPORT std::string te::rst::ConvertColorInterpTypeToString | ( | const te::rst::ColorInterp & | ci | ) |
Function used to convert from a Color Interp Enum to a string.
ci | The color interpretation enum |
TERASTEREXPORT std::string te::rst::ConvertPalleteInterpTypeToString | ( | const te::rst::PaletteInterpretation & | pi | ) |
Function used to convert from a Pallete Interp Enum to a string.
pi | The pallete interpretation enum |
TERASTEREXPORT void te::rst::Copy | ( | const Band & | bin, |
Band & | bout | ||
) |
Copies the pixel values from one band to another.
bin | The input band. |
bout | The output band. |
TERASTEREXPORT void te::rst::Copy | ( | const Raster & | rin, |
Raster & | rout | ||
) |
Copies the pixel values from one raster to another.
rin | The input raster. |
rout | The output raster. |
TERASTEREXPORT void te::rst::Copy | ( | unsigned int | drow, |
unsigned int | dcolumn, | ||
unsigned int | height, | ||
unsigned int | width, | ||
const Raster & | rin, | ||
Raster & | rout | ||
) |
Copy a subset of the raster, given a box.
method | The method of interpolation. |
drow | The starting row to make a subset of the image. |
dcolumn | The starting column to make a subset of the image. |
height | The height of the subset. |
width | The width of the subset. |
rin | Pointer to valid output raster. |
rout | Pointer to valid output raster. |
TERASTEREXPORT te::rst::RasterPtr te::rst::CreateCopy | ( | const te::rst::Raster & | rin, |
const std::string & | uri, | ||
const std::string & | rType = std::string("GDAL") |
||
) |
Create a new raster from existing one.
rin | The input raster. |
uri | The output raster URI. |
rType | The name of the specific driver to create the raster. |
TERASTEREXPORT std::unique_ptr< te::rst::Raster > te::rst::CropRaster | ( | const te::rst::Raster & | rin, |
const std::vector< te::gm::Geometry const * > | geometries, | ||
const std::map< std::string, std::string > & | rinfo, | ||
const std::string & | rType | ||
) |
Creates a raster crop using a polygon delimiter.
rin | The input raster. |
geometries | A vector of pointers to valid geometries. |
rinfo | The map of raster informations. |
rType | The name of the specific driver to create the raster. |
TERASTEREXPORT te::rst::RasterPtr te::rst::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.
rin | The input raster. |
pin | The input polygon, to be used as a delimiter. |
rinfo | The map of raster informations. |
rType | The name of the specific driver to create the raster. |
TERASTEREXPORT void te::rst::DummyGetValue | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::DummySetValue | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::FillBand | ( | te::rst::Band * | bin, |
const std::complex< double > & | value | ||
) |
TERASTEREXPORT void te::rst::fillHistogramGaps | ( | const std::map< double, unsigned > & | inputHistogram, |
std::map< double, unsigned > & | outputHistogram | ||
) |
Create a a new histogram with all missing integer values filled with zero frequencies.
inputHistogram | Input histogram. |
outputHistogram | Output histogram. |
TERASTEREXPORT void te::rst::FillRaster | ( | te::rst::Raster * | rin, |
const std::complex< double > & | value | ||
) |
TERASTEREXPORT void te::rst::Get1bit | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::Get2bits | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::Get4bits | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT std::vector< BandProperty * > te::rst::GetBandProperties | ( | const std::map< std::string, std::string > & | rinfo | ) |
Returns a vector of band properties, based on a given raster info.
rinfo | The map of raster informations. |
TERASTEREXPORT void te::rst::GetChar | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetCIDouble | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetCIFloat | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetCIInt16 | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetCIInt32 | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetCRDouble | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetCRFloat | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetCRInt16 | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetCRInt32 | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetDataTypeRanges | ( | const int & | dataType, |
double & | min, | ||
double & | max | ||
) |
Return the values range of a given data type.
dataType | The given data type. |
min | The mininmum value allowed for the given data type. |
min | The maximum value allowed for the given data type. |
Referenced by te::rp::GetDataTypeRange().
TERASTEREXPORT void te::rst::GetDouble | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetFloat | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT Grid * te::rst::GetGrid | ( | const std::map< std::string, std::string > & | rinfo | ) |
Returns a grid based on a given raster info.
rinfo | The map of raster informations. |
TERASTEREXPORT bool te::rst::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.
raster | Input raster. |
bandIndex | Band index. |
rowStart | The starting row. |
colStart | The starting column. |
finalRow | The final row. |
finalCol | The final column. |
histoBins | The number of bins (intervals from minimum pixel to maximum). When b = 0, the histogram will be divided according to all pixel values. |
sampleStep | The row/column step used when reading pixels (to read all pixels sampleStep=1, to read half of pixels use sampleStep=2 ); |
maxThreads | Maximum number of used threads to use (0-Automatic, 1-No threads used). |
rHistogram | The generated histogram (real). |
iHistogram | The generated histogram (imaginary). |
TERASTEREXPORT void te::rst::getHistogramStats | ( | const std::map< double, unsigned > & | histogram, |
double & | min, | ||
double & | max, | ||
double & | mean, | ||
double & | stdDev | ||
) |
Compute statiscts from the given histogram.
histogram | Input histogram. |
min | Histogram minimun value. |
max | Histogram maximum value. |
mean | Histogram mean value. |
stdDev | Histogram standard deviation value. |
TERASTEREXPORT void te::rst::GetInt16 | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetInt32 | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetInt64 | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::getInterpMethods | ( | std::vector< std::pair< te::rst::InterpolationMethod, std::string > > & | interpMethods | ) |
Get the avaliable interpolation methods.
interpMethodsStrings | Avaliable interpolation methods pairs [method code,method string]. |
TERASTEREXPORT int te::rst::GetPixelSize | ( | int | datatype | ) |
Returns the byte size of a given datatype.
TERASTEREXPORT bool te::rst::getRealHistogram | ( | const te::rst::Raster & | raster, |
const unsigned int | bandIndex, | ||
std::map< double, unsigned > & | rHistogram | ||
) |
Compute and return the real histogram of the band.
raster | Input raster. |
bandIndex | Band index. |
rHistogram | The generated histogram (real). |
TERASTEREXPORT void te::rst::GetUChar | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetUInt16 | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetUInt32 | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT void te::rst::GetUInt64 | ( | int | index, |
void * | buffer, | ||
double * | value | ||
) |
TERASTEREXPORT bool te::rst::interpolateHistogram | ( | const std::map< double, unsigned > & | inputHistogram, |
std::map< double, unsigned > & | outputHistogram, | ||
const unsigned int | outputBinsNumber, | ||
const double | outputMinValue, | ||
const double | outputMaxValue | ||
) |
Create a interpolated histogram from the input histogram with the new bins number.
inputHistogram | Input histogram. |
outputHistogram | Output histogram. |
outputBinsNumber | Output Histogram bins number. |
outputMinValue | Output histogram minimum value. |
outputMaxValue | Output histogram maximum value. |
TERASTEREXPORT bool te::rst::rasterResample | ( | const te::rst::Raster & | inputRaster, |
const std::vector< unsigned int > & | inputRasterBands, | ||
const te::rst::Interpolator::Method | interpMethod, | ||
const unsigned int | interpWindowRadius, | ||
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 unsigned int | maxThreads, | ||
const std::map< std::string, std::string > & | rinfo, | ||
const std::string & | dataSourceType, | ||
std::unique_ptr< te::rst::Raster > & | resampledRasterPtr | ||
) |
Resample a subset of the raster, given a box.
inputRaster | Input raster. |
inputRasterBands | Input raster bands to process. |
interpMethod | The method of interpolation. |
interpWindowRadius | Interpolator windows radius around the target pixel (when applicable). |
firstRow | The starting row to make a subset of the image. |
firstColumn | The starting column to make a subset of the image. |
height | The height of the subset. |
width | The width of the subset. |
newheight | The resampled height of the new raster. |
newwidth | The resampled width of the new raster. |
maxThreads | Maximum number of used threads to use (0-Automatic, 1-No threads used). |
rinfo | The parameters needed to build the output raster (see RasterFactory documentation). |
dataSourceType | Data source type (raster type. I.E. GDAL) or an empty string for de default driver. |
resampledRasterPtr | The resampled raster pointer. |
TERASTEREXPORT bool te::rst::Reproject | ( | int | newSRID, |
const te::rst::Raster & | inputRaster, | ||
const std::vector< unsigned int > & | inputRasterBands, | ||
const te::rst::Interpolator::Method | interpMethod, | ||
const unsigned int | interpWindowRadius, | ||
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 unsigned int | maxThreads, | ||
const std::map< std::string, std::string > & | rinfo, | ||
const std::string & | dataSourceType, | ||
std::unique_ptr< te::rst::Raster > & | outputRasterPtr | ||
) |
Reprojects, clip and resample a subset of the raster.
newSRID | The new output SRID |
inputRaster | Input raster. |
inputRasterBands | Input raster bands to process. |
interpMethod | The method of interpolation. |
interpWindowRadius | Interpolator windows radius around the target pixel (when applicable). |
firstRow | The starting row to make a subset of the image. |
firstColumn | The starting column to make a subset of the image. |
height | The height of the subset. |
width | The width of the subset. |
newheight | The resampled height of the new raster. |
newwidth | The resampled width of the new raster. |
maxThreads | Maximum number of used threads to use (0-Automatic, 1-No threads used). |
rinfo | The parameters needed to build the output raster (see RasterFactory documentation). |
dataSourceType | Data source type (raster type. I.E. GDAL) or an empty string for de default driver. |
outputRasterPtr | The output raster pointer. |
TERASTEREXPORT te::rst::Raster * te::rst::Reproject | ( | te::rst::Raster const *const | rin, |
int | srid, | ||
const std::map< std::string, std::string > & | routinfo, | ||
int | m = te::rst::NearestNeighbor |
||
) |
Reprojects a raster to another SRS.
rin | The input raster file. Do not pass a null pointer. |
srid | The target SRID for the reprojection. |
routinfo | The basic parameters necessary to create the reprojected raster. |
m | The method of interpolation to apply. |
TERASTEREXPORT te::rst::Raster * te::rst::Reproject | ( | te::rst::Raster const *const | rin, |
int | srid, | ||
double | llx, | ||
double | lly, | ||
double | urx, | ||
double | ury, | ||
const std::map< std::string, std::string > & | routinfo, | ||
int | m = te::rst::NearestNeighbor |
||
) |
Reprojects a portion of a raster to another SRS.
rin | The input raster file. Do not pass a null pointer. |
srid | The target SRID for the reprojection. |
llx | Lower-left X-coordinate of the portion to be reprojected (in the original SRS). |
lly | Lower-left Y-coordinate of the portion to be reprojected (in the original SRS). |
urx | Upper-Right X-coordinate of the portion to be reprojected (in the original SRS). |
ury | Upper-Right Y-coordinate of the portion to be reprojected (in the original SRS). |
routinfo | The basic parameters necessary to create the reprojected raster. |
m | The method of interpolation to apply. |
TERASTEREXPORT te::rst::Raster * te::rst::Reproject | ( | te::rst::Raster const *const | rin, |
int | srid, | ||
double | llx, | ||
double | lly, | ||
double | urx, | ||
double | ury, | ||
double | resx, | ||
double | resy, | ||
const std::map< std::string, std::string > & | routinfo, | ||
int | m = te::rst::NearestNeighbor |
||
) |
Reprojects a portion of a raster to another SRS and maintaining a given resolution.
rin | The input raster file. Do not pass a null pointer. |
srid | The target SRID for the reprojection. |
llx | Lower-left X-coordinate of the portion to be reprojected (in the original SRS). |
lly | Lower-left Y-coordinate of the portion to be reprojected (in the original SRS). |
urx | Upper-Right X-coordinate of the portion to be reprojected (in the original SRS). |
ury | Upper-Right Y-coordinate of the portion to be reprojected (in the original SRS). |
resx | The output x resolution (in units of the target SRS - if resx=0 the number of columns will be kept the same). |
resy | The output y resolution (in units of the target SRS - if resy=0 the number of rows will be kept the same). |
routinfo | The basic parameters necessary to create the reprojected raster. |
m | The method of interpolation to apply. |
|
inline |
TERASTEREXPORT void te::rst::Set1bit | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::Set2bits | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::Set4bits | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetBlockFunctions | ( | GetBufferValueFPtr * | gb, |
GetBufferValueFPtr * | gbi, | ||
SetBufferValueFPtr * | sb, | ||
SetBufferValueFPtr * | sbi, | ||
int | type | ||
) |
Sets the pointers to functions that helps to extract a double or complex value from a specific buffer data type.
gb | The get buffer of real values function. |
gbi | The get buffer of imaginary values function. |
sb | The set buffer of real values function. |
sbi | The set buffer of imaginary values function. |
type | The block data type. |
Referenced by te::rst::AbstractBandIterator< T >::AbstractBandIterator(), te::map::RasterTransform::BandBufferInfo::BandBufferInfo(), and te::rst::BandIteratorWindow< T >::BandIteratorWindow().
TERASTEREXPORT void te::rst::SetChar | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetCIDouble | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetCIFloat | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetCIInt16 | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetCIInt32 | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetCRDouble | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetCRFloat | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetCRInt16 | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetCRInt32 | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetDouble | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetFloat | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetInt16 | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetInt32 | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetInt64 | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetUChar | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetUInt16 | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetUInt32 | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
TERASTEREXPORT void te::rst::SetUInt64 | ( | int | index, |
void * | buffer, | ||
const double * | value | ||
) |
|
inline |
Definition at line 52 of file PositionIterator.h.
Referenced by te::rst::PolygonIterator< T >::getScanLineIntersectionRanges().