Loading...
Searching...
No Matches
te::rp::ca::RasterInputAdaptor< DataType > Class Template Reference

Classifiers raster input data adaptor. More...

#include <ClassifierAdaptors.h>

Inheritance diagram for te::rp::ca::RasterInputAdaptor< DataType >:
te::cl::InputAdaptor< DataType >

Public Member Functions

unsigned int getElementsCount () const
 Returns the total elements number.
 
void getFeature (const unsigned int &elementIndex, const unsigned int &featureIndex, DataType &featureValue) const
 Returns one feature value.
 
unsigned int getFeaturesCount () const
 Returns the total features per element number.
 
 RasterInputAdaptor (const te::rst::Raster &raster)
 
 ~RasterInputAdaptor ()
 

Protected Attributes

unsigned int m_nCols
 
unsigned int m_nRows
 
const te::rst::Rasterm_raster
 

Detailed Description

template<typename DataType>
class te::rp::ca::RasterInputAdaptor< DataType >

Classifiers raster input data adaptor.

Definition at line 45 of file ClassifierAdaptors.h.

Constructor & Destructor Documentation

◆ RasterInputAdaptor()

template<typename DataType>
te::rp::ca::RasterInputAdaptor< DataType >::RasterInputAdaptor ( const te::rst::Raster & raster)
inline

Definition at line 49 of file ClassifierAdaptors.h.

References m_nCols, m_nRows, and m_raster.

◆ ~RasterInputAdaptor()

template<typename DataType>
te::rp::ca::RasterInputAdaptor< DataType >::~RasterInputAdaptor ( )
inline

Definition at line 54 of file ClassifierAdaptors.h.

Member Function Documentation

◆ getElementsCount()

template<typename DataType>
unsigned int te::rp::ca::RasterInputAdaptor< DataType >::getElementsCount ( ) const
inlinevirtual

Returns the total elements number.

Implements te::cl::InputAdaptor< DataType >.

Definition at line 64 of file ClassifierAdaptors.h.

References m_nCols, and m_nRows.

◆ getFeature()

template<typename DataType>
void te::rp::ca::RasterInputAdaptor< DataType >::getFeature ( const unsigned int & elementIndex,
const unsigned int & featureIndex,
DataType & featureValue ) const
inlinevirtual

Returns one feature value.

Parameters
elementIndexElement index..
featureIndexFeature index.
featureValueThe returned feature value.

Implements te::cl::InputAdaptor< DataType >.

Definition at line 57 of file ClassifierAdaptors.h.

References m_nCols, and m_raster.

◆ getFeaturesCount()

template<typename DataType>
unsigned int te::rp::ca::RasterInputAdaptor< DataType >::getFeaturesCount ( ) const
inlinevirtual

Returns the total features per element number.

Implements te::cl::InputAdaptor< DataType >.

Definition at line 70 of file ClassifierAdaptors.h.

References m_raster.

Member Data Documentation

◆ m_nCols

template<typename DataType>
unsigned int te::rp::ca::RasterInputAdaptor< DataType >::m_nCols
protected

Definition at line 79 of file ClassifierAdaptors.h.

Referenced by getElementsCount(), getFeature(), and RasterInputAdaptor().

◆ m_nRows

template<typename DataType>
unsigned int te::rp::ca::RasterInputAdaptor< DataType >::m_nRows
protected

Definition at line 78 of file ClassifierAdaptors.h.

Referenced by getElementsCount(), and RasterInputAdaptor().

◆ m_raster

template<typename DataType>
const te::rst::Raster& te::rp::ca::RasterInputAdaptor< DataType >::m_raster
protected

Definition at line 77 of file ClassifierAdaptors.h.

Referenced by getFeature(), getFeaturesCount(), and RasterInputAdaptor().


The documentation for this class was generated from the following file: