All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

void add (Pattern *p)
 Add a region inside a cluster. More...
 
double getDistance (Pattern *p)
 Returns the Mahalanobis distance between two patterns. More...
 
bool operator= (Pattern &rhs)
 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 (Pattern &rhs)
 Copy constructor. 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...
 
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...
 

Detailed Description

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

Definition at line 88 of file ClassifierISOSegStrategy.h.

Constructor & Destructor Documentation

te::rp::ClassifierISOSegStrategy::Pattern::Pattern ( )

Definition at line 87 of file ClassifierISOSegStrategy.cpp.

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 96 of file ClassifierISOSegStrategy.cpp.

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

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

Copy constructor.

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

Definition at line 108 of file ClassifierISOSegStrategy.cpp.

References m_covarianceInversion, m_covarianceMatrix, and m_meanVector.

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

Definition at line 120 of file ClassifierISOSegStrategy.cpp.

Member Function Documentation

void te::rp::ClassifierISOSegStrategy::Pattern::add ( Pattern p)

Add a region inside a cluster.

Parameters
pThe region to be added.

Definition at line 135 of file ClassifierISOSegStrategy.cpp.

References m_area, m_covarianceInversion, m_covarianceMatrix, m_meanVector, and m_myCluster.

double te::rp::ClassifierISOSegStrategy::Pattern::getDistance ( Pattern p)

Returns the Mahalanobis distance between two patterns.

Definition at line 161 of file ClassifierISOSegStrategy.cpp.

References m_meanVector.

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

Return true if two clusters are equal.

Definition at line 186 of file ClassifierISOSegStrategy.cpp.

References m_id, and m_myCluster.

Member Data Documentation

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

The area of all regions inside a pattern.

Definition at line 128 of file ClassifierISOSegStrategy.h.

Referenced by add(), and te::rp::ClassifierISOSegStrategy::execute().

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

The inversion of covariance matrix between bands.

Definition at line 131 of file ClassifierISOSegStrategy.h.

Referenced by add(), and Pattern().

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

The covariance matrix between bands.

Definition at line 130 of file ClassifierISOSegStrategy.h.

Referenced by add(), and Pattern().

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

The id of the region of the pattern.

Definition at line 126 of file ClassifierISOSegStrategy.h.

Referenced by operator=().

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

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

Definition at line 129 of file ClassifierISOSegStrategy.h.

Referenced by add(), getDistance(), and Pattern().

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

The associated cluster of this pattern (optional).

Definition at line 127 of file ClassifierISOSegStrategy.h.

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


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