| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
TePDICluster Class Reference
Image processing auxiliary classes/methods.

This is the class for dealing with image clusters. More...

`#include <TePDICluster.hpp>`

List of all members.

## Public Member Functions

| TePDICluster ()
| TePDICluster (int nBands)
| ~TePDICluster ()
const TePDICluster & | operator= (const TePDICluster &clu)
bool | operator== (TePDICluster clu)
bool | Init (int ident, TePDIRegion reg)
bool | AddRegion (TePDIRegion reg)
double | Distance (TePDIRegion reg)
double | Distance (TePDICluster clu)
void | SetId (int newid)
int | GetId ()
double | Mean (int ind)
TeMatrix | GetCovariance ()
long | GetArea ()
int | GetNban ()
double | GetLnDet ()
void | Merge (TePDICluster clu)
bool | GetInitialized ()
void | add (vector< double > pixValue)
double | dist (vector< double > pixValue) const
double | getVariance (int ind) const
double | maxVar () const
int | maxVarBand () const
void | resetCount ()
void | updateStatistics ()
TePDICluster | splitLeft () const
TePDICluster | splitRight () const
void | clear ()

## Detailed Description

This is the class for dealing with image clusters.

Author:
  Thales Sehn Korting <tkorting@dpi.inpe.br>

## Constructor & Destructor Documentation

TePDICluster::TePDICluster | ( |  | ) | `[inline]`

Default constructor

TePDICluster::TePDICluster | ( | int | nBands | ) |

Alternative constructor.

Parameters:

  nBands | The bands number.

TePDICluster::~TePDICluster | ( |  | ) |

Default Destructor

## Member Function Documentation

void TePDICluster::add | ( | vector< double > | pixValue | ) |

Insert a new pixel value in cluster

bool TePDICluster::AddRegion | ( | TePDIRegion | reg | ) |

Add a region statistics to the cluster.

Parameters:

  reg | The Region to be added

void TePDICluster::clear | ( |  | ) |

Clear cluster

double TePDICluster::dist | ( | vector< double > | pixValue | ) | const

Calculate a distance over pixel value

double TePDICluster::Distance | ( | TePDIRegion | reg | ) |

Compute the Mahalanobis distance between the center of a region and the current cluster

Parameters:

  reg | The region to be computed the distance

double TePDICluster::Distance | ( | TePDICluster | clu | ) |

Compute the Mahalanobis distance between the center of a cluster and the current cluster

Parameters:

  clu | The cluster to be computed the distance

long TePDICluster::GetArea | ( |  | ) | `[inline]`

Get cluster size in pixels.

TeMatrix TePDICluster::GetCovariance | ( |  | ) | `[inline]`

Return cluster covariance matrix.

int TePDICluster::GetId | ( |  | ) | `[inline]`

Return cluster identification

bool TePDICluster::GetInitialized | ( |  | ) | `[inline]`

Get if the cluster was initialized

double TePDICluster::GetLnDet | ( |  | ) | `[inline]`

Gets the Ln of Det

int TePDICluster::GetNban | ( |  | ) | `[inline]`

Get number o bands

double TePDICluster::getVariance | ( | int | ind | ) | const

Get variance value vector

Parameters:

  ind | The cluster ID to get the variance

bool TePDICluster::Init | ( | int | ident,
|  | TePDIRegion | reg
| ) |  |

Initialize cluster with its identifier and with statistics

Parameters:

  ident | The id of the cluster
  reg | The First Region to be inserted in the Cluster

double TePDICluster::maxVar | ( |  | ) | const

Get the value of major variance

int TePDICluster::maxVarBand | ( |  | ) | const

Get the band value of major variance

double TePDICluster::Mean | ( | int | ind | ) |

Get mean value vector

Parameters:

  ind | The cluster ID to get the mean

void TePDICluster::Merge | ( | TePDICluster | clu | ) |

Merges two clusters

Parameters:

  clu | The cluster to be merged

const TePDICluster & TePDICluster::operator= | ( | const TePDICluster & | clu | ) |

Assignment operator

bool TePDICluster::operator== | ( | TePDICluster | clu | ) |

Equal operator

void TePDICluster::resetCount | ( |  | ) |

reset values used to get the variance

void TePDICluster::SetId | ( | int | newid | ) | `[inline]`

Set new identification to cluster

Parameters:

  newid | The new ID

TePDICluster TePDICluster::splitLeft | ( |  | ) | const

split the cluster

TePDICluster TePDICluster::splitRight | ( |  | ) | const

split the cluster

void TePDICluster::updateStatistics | ( |  | ) |

update the information about mean and variance

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDICluster.hpp
- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDICluster.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines