te::rp::ClassifierISOSegStrategy::Pattern Class Reference

Describes a region or a cluster (group of regions with similar properties) to be used by ISOSeg method. More...

#include <ClassifierISOSegStrategy.h>

Public Member Functions

double getBhattacharyyaDistance (Pattern const *const p) const
 Returns the Bhattacharyya distance between two patterns. More...
 
double getMahalanobisDistance (Pattern const *const p) const
 Returns the Mahalanobis distance between two patterns. More...
 
bool operator< (const Pattern &rhs) const
 
Patternoperator= (const Pattern &rhs)
 
bool operator== (const Pattern &rhs) const
 Return true if two clusters are equal. More...
 
 Pattern ()
 
 Pattern (int i, double a, std::vector< double > mv, boost::numeric::ublas::matrix< double > cm)
 Constructor. More...
 
 Pattern (const Pattern &rhs)
 Copy constructor. More...
 
void reset ()
 Reset to initial state. More...
 
 ~Pattern ()
 

Public Attributes

double m_area
 The area of all regions inside a pattern. More...
 
boost::numeric::ublas::matrix< double > m_covarianceInversion
 The inversion of covariance matrix between bands. More...
 
boost::numeric::ublas::matrix< double > m_covarianceMatrix
 The covariance matrix between bands. More...
 
double m_covarianceMatrixDet
 The covariance matrix determinant. More...
 
int m_id
 The id of the region of the pattern. More...
 
std::vector< double > m_meanVector
 The vector of mean values, 1 value per band;. More...
 
Patternm_myCluster
 The associated cluster of this pattern (optional). More...
 

Protected Attributes

unsigned int m_getBhattacharyyaDistance_bandIdx
 
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_covsMege
 
double m_getBhattacharyyaDistance_covsMegeDet
 
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_covsMegeInv
 
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_distanceTerm1
 
double m_getBhattacharyyaDistance_distanceValue
 
boost::numeric::ublas::matrix< double > m_getBhattacharyyaDistance_meansDif
 
unsigned int m_getBhattacharyyaDistance_nBands
 

Detailed Description

Describes a region or a cluster (group of regions with similar properties) to be used by ISOSeg method.

Definition at line 116 of file ClassifierISOSegStrategy.h.

Constructor & Destructor Documentation

te::rp::ClassifierISOSegStrategy::Pattern::Pattern ( )
te::rp::ClassifierISOSegStrategy::Pattern::Pattern ( int  i,
double  a,
std::vector< double >  mv,
boost::numeric::ublas::matrix< double >  cm 
)

Constructor.

Parameters
iThe id of the initial region.
aThe area of the region.
mvThe vector of mean values, 1 value per band.
cmThe covariance matrix between bands.

Definition at line 114 of file ClassifierISOSegStrategy.cpp.

References te::common::GetDeterminant(), te::common::GetInverseMatrix(), m_covarianceInversion, m_covarianceMatrix, and m_covarianceMatrixDet.

te::rp::ClassifierISOSegStrategy::Pattern::Pattern ( const Pattern rhs)

Copy constructor.

Parameters
rhsThe right-hand-side copy that would be used to copy from.

Definition at line 131 of file ClassifierISOSegStrategy.cpp.

References operator=(), and ~Pattern().

te::rp::ClassifierISOSegStrategy::Pattern::~Pattern ( )
default

Referenced by Pattern().

Member Function Documentation

double te::rp::ClassifierISOSegStrategy::Pattern::getMahalanobisDistance ( Pattern const *const  p) const

Returns the Mahalanobis distance between two patterns.

Definition at line 138 of file ClassifierISOSegStrategy.cpp.

References m_covarianceInversion, and m_meanVector.

bool te::rp::ClassifierISOSegStrategy::Pattern::operator< ( const Pattern rhs) const

Definition at line 256 of file ClassifierISOSegStrategy.cpp.

References m_area.

te::rp::ClassifierISOSegStrategy::Pattern & te::rp::ClassifierISOSegStrategy::Pattern::operator= ( const Pattern rhs)
bool te::rp::ClassifierISOSegStrategy::Pattern::operator== ( const Pattern rhs) const

Return true if two clusters are equal.

Definition at line 235 of file ClassifierISOSegStrategy.cpp.

References m_id, and m_myCluster.

void te::rp::ClassifierISOSegStrategy::Pattern::reset ( )

Member Data Documentation

double te::rp::ClassifierISOSegStrategy::Pattern::m_area

The area of all regions inside a pattern.

Definition at line 166 of file ClassifierISOSegStrategy.h.

Referenced by operator<(), operator=(), and reset().

boost::numeric::ublas::matrix<double> te::rp::ClassifierISOSegStrategy::Pattern::m_covarianceInversion

The inversion of covariance matrix between bands.

Definition at line 170 of file ClassifierISOSegStrategy.h.

Referenced by getMahalanobisDistance(), operator=(), Pattern(), and reset().

boost::numeric::ublas::matrix<double> te::rp::ClassifierISOSegStrategy::Pattern::m_covarianceMatrix

The covariance matrix between bands.

Definition at line 169 of file ClassifierISOSegStrategy.h.

Referenced by getBhattacharyyaDistance(), operator=(), Pattern(), and reset().

double te::rp::ClassifierISOSegStrategy::Pattern::m_covarianceMatrixDet

The covariance matrix determinant.

Definition at line 167 of file ClassifierISOSegStrategy.h.

Referenced by getBhattacharyyaDistance(), operator=(), Pattern(), and reset().

unsigned int te::rp::ClassifierISOSegStrategy::Pattern::m_getBhattacharyyaDistance_bandIdx
mutableprotected

Definition at line 176 of file ClassifierISOSegStrategy.h.

Referenced by getBhattacharyyaDistance().

boost::numeric::ublas::matrix<double> te::rp::ClassifierISOSegStrategy::Pattern::m_getBhattacharyyaDistance_covsMege
mutableprotected

Definition at line 180 of file ClassifierISOSegStrategy.h.

Referenced by getBhattacharyyaDistance().

double te::rp::ClassifierISOSegStrategy::Pattern::m_getBhattacharyyaDistance_covsMegeDet
mutableprotected

Definition at line 177 of file ClassifierISOSegStrategy.h.

Referenced by getBhattacharyyaDistance().

boost::numeric::ublas::matrix<double> te::rp::ClassifierISOSegStrategy::Pattern::m_getBhattacharyyaDistance_covsMegeInv
mutableprotected

Definition at line 181 of file ClassifierISOSegStrategy.h.

Referenced by getBhattacharyyaDistance().

boost::numeric::ublas::matrix<double> te::rp::ClassifierISOSegStrategy::Pattern::m_getBhattacharyyaDistance_distanceTerm1
mutableprotected

Definition at line 182 of file ClassifierISOSegStrategy.h.

Referenced by getBhattacharyyaDistance().

double te::rp::ClassifierISOSegStrategy::Pattern::m_getBhattacharyyaDistance_distanceValue
mutableprotected

Definition at line 178 of file ClassifierISOSegStrategy.h.

Referenced by getBhattacharyyaDistance().

boost::numeric::ublas::matrix<double> te::rp::ClassifierISOSegStrategy::Pattern::m_getBhattacharyyaDistance_meansDif
mutableprotected

Definition at line 179 of file ClassifierISOSegStrategy.h.

Referenced by getBhattacharyyaDistance().

unsigned int te::rp::ClassifierISOSegStrategy::Pattern::m_getBhattacharyyaDistance_nBands
mutableprotected

Definition at line 175 of file ClassifierISOSegStrategy.h.

Referenced by getBhattacharyyaDistance().

int te::rp::ClassifierISOSegStrategy::Pattern::m_id

The id of the region of the pattern.

Definition at line 164 of file ClassifierISOSegStrategy.h.

Referenced by operator=(), operator==(), and reset().

std::vector<double> te::rp::ClassifierISOSegStrategy::Pattern::m_meanVector

The vector of mean values, 1 value per band;.

Definition at line 168 of file ClassifierISOSegStrategy.h.

Referenced by getBhattacharyyaDistance(), getMahalanobisDistance(), operator=(), and reset().

Pattern* te::rp::ClassifierISOSegStrategy::Pattern::m_myCluster

The associated cluster of this pattern (optional).

Definition at line 165 of file ClassifierISOSegStrategy.h.

Referenced by te::rp::ClassifierISOSegStrategy::execute(), operator=(), operator==(), and reset().


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