25 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERADAPTORS_H
26 #define __TERRALIB_RP_INTERNAL_CLASSIFIERADAPTORS_H
30 #include "../classification/Adaptors.h"
31 #include "../raster/Raster.h"
44 template<
typename DataType>
51 m_nCols( raster.getNumberOfColumns() )
57 void getFeature(
const unsigned int& elementIndex,
const unsigned int& featureIndex,
58 DataType& featureValue )
const
87 template<
typename DataType>
94 m_nCols( raster.getNumberOfColumns() )
101 const unsigned int& featureIndex,
const DataType& value )
132 template<
typename DataType>
139 m_nCols( matrix.getColumnsNumber() )
146 const unsigned int& featureIndex,
const DataType& value )
148 assert( featureIndex == 0 );
176 template<
typename DataType>
183 m_nCols( raster.getNumberOfColumns() )
189 void getFeature(
const unsigned int& elementIndex,
const unsigned int& featureIndex,
190 DataType& featureValue )
const
196 featureValue = (DataType)
m_value;
201 const unsigned int& featureIndex,
const DataType& value )
Classifiers output data adaptor.
Classifiers matrix output data adaptor.
unsigned int getElementsCount() const
Returns the total elements number.
unsigned int getFeaturesCount() const
Returns the total features per element number.
MatrixOutputAdaptor(te::rp::Matrix< DataType > &matrix)
te::rp::Matrix< DataType > & m_matrix
void setFeature(const unsigned int &elementIndex, const unsigned int &featureIndex, const DataType &value)
Set one feature value.
Classifiers raster output data adaptor.
te::rst::Raster & m_raster
unsigned int getElementsCount() const
Returns the total elements number.
void setFeature(const unsigned int &elementIndex, const unsigned int &featureIndex, const DataType &value)
Set one feature value.
RasterOutputAdaptor(te::rst::Raster &raster)
unsigned int getFeaturesCount() const
Returns the total features per element number.
An abstract class for raster data strucutures.
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.
virtual std::size_t getNumberOfBands() const =0
Returns the number of bands (dimension of cells attribute values) in the raster.
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.
Proxy configuration file for TerraView (see terraview_config.h).