25 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERADAPTORS_H 26 #define __TERRALIB_RP_INTERNAL_CLASSIFIERADAPTORS_H 29 #include "../classification/Adaptors.h" 30 #include "../raster/Raster.h" 43 template<
typename DataType>
50 m_nCols( raster.getNumberOfColumns() )
56 void getFeature(
const unsigned int& elementIndex,
const unsigned int& featureIndex,
57 DataType& featureValue )
const 86 template<
typename DataType>
93 m_nCols( raster.getNumberOfColumns() )
100 const unsigned int& featureIndex,
const DataType& value )
129 #endif // __TERRALIB_RP_INTERNAL_CLASSIFIERADAPTORS_H void setFeature(const unsigned int &elementIndex, const unsigned int &featureIndex, const DataType &value)
Set one feature value.
unsigned int getFeaturesCount() const
Returns the total features per element number.
unsigned int getElementsCount() const
Returns the total elements number.
An abstract class for raster data strucutures.
virtual std::size_t getNumberOfBands() const =0
Returns the number of bands (dimension of cells attribute values) in the raster.
Classifiers output data adaptor.
virtual void getValue(unsigned int c, unsigned int r, double &value, std::size_t b=0) const
Returns the attribute value of a band of a cell.
Configuration flags for the Raster Processing module of TerraLib.
Classifiers raster output data adaptor.
RasterOutputAdaptor(te::rst::Raster &raster)
te::rst::Raster & m_raster
virtual void setValue(unsigned int c, unsigned int r, const double value, std::size_t b=0)
Sets the attribute value in a band of a cell.