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 );
   174 #endif  // __TERRALIB_RP_INTERNAL_CLASSIFIERADAPTORS_H void setFeature(const unsigned int &elementIndex, const unsigned int &featureIndex, const DataType &value)
Set one feature value. 
 
MatrixOutputAdaptor(te::rp::Matrix< DataType > &matrix)
 
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. 
 
void setFeature(const unsigned int &elementIndex, const unsigned int &featureIndex, const DataType &value)
Set one feature value. 
 
unsigned int getElementsCount() const
Returns the total elements number. 
 
Classifiers matrix output data adaptor. 
 
unsigned int getFeaturesCount() const
Returns the total features per element number. 
 
An abstract class for raster data strucutures. 
 
Classifiers output data adaptor. 
 
virtual std::size_t getNumberOfBands() const =0
Returns the number of bands (dimension of cells attribute values) in the raster. 
 
Configuration flags for the Raster Processing module of TerraLib. 
 
Classifiers raster output data adaptor. 
 
RasterOutputAdaptor(te::rst::Raster &raster)
 
unsigned int getElementsCount() const
Returns the total elements number. 
 
unsigned int getFeaturesCount() const
Returns the total features per element number. 
 
te::rst::Raster & m_raster
 
te::rp::Matrix< DataType > & m_matrix
 
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.