Go to the documentation of this file.
   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 )
 
  233 #endif  // __TERRALIB_RP_INTERNAL_CLASSIFIERADAPTORS_H 
  
 
MatrixOutputAdaptor(te::rp::Matrix< DataType > &matrix)
 
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.
 
RasterOutputAdaptor(te::rst::Raster &raster)
 
unsigned int getFeaturesCount() const
Returns the total features per element number.
 
te::rst::Raster & m_raster
 
Classifiers output data adaptor.
 
void setFeature(const unsigned int &elementIndex, const unsigned int &featureIndex, const DataType &value)
Set one feature value.
 
te::rp::Matrix< DataType > & m_matrix
 
unsigned int getFeaturesCount() const
Returns the total features per element number.
 
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.
 
Classifiers matrix output data adaptor.
 
virtual std::size_t getNumberOfBands() const =0
Returns the number of bands (dimension of cells attribute values) in the raster.
 
Classifiers raster output data adaptor.
 
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.
 
unsigned int getElementsCount() const
Returns the total elements number.
 
Proxy configuration file for TerraView (see terraview_config.h).