| TerraLib 4.1

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

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

Public Member Functions
TePDIRegion Class Reference

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

`#include <TePDIRegion.hpp>`

List of all members.

## Public Member Functions

| TePDIRegion (long id_region)
| ~TePDIRegion ()
bool | Init (int n, long a, vector< double > m, TeMatrix c)
void | SetId (long id_region)
long | GetId ()
int | GetNban ()
void | SetClass (int clas)
int | GetClass ()
double | Mean (int ind)
vector< double > | GetMean ()
double | Covar (int i, int j)
TeMatrix | GetCovar ()
void | SetArea (long a)
long | GetArea ()

## Detailed Description

This is the class for dealing with image regions.

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

## Constructor & Destructor Documentation

TePDIRegion::TePDIRegion | ( | long | id_region | ) | `[inline]`

Default Constructor.

Parameters:

  id_region | The ID of the region

TePDIRegion::~TePDIRegion | ( |  | ) |

Default Destructor.

## Member Function Documentation

double TePDIRegion::Covar | ( | int | i,
|  | int | j
| ) |  |

Returns the covariance value at position (i, j)

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

Returns the area of the region

int TePDIRegion::GetClass | ( |  | ) | `[inline]`

Get the class.

TeMatrix TePDIRegion::GetCovar | ( |  | ) | `[inline]`

Returns the covariance matrix

long TePDIRegion::GetId | ( |  | ) | `[inline]`

Gets the ID

vector< double > TePDIRegion::GetMean | ( |  | ) |

Returns all the means

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

Get the number of bands.

bool TePDIRegion::Init | ( | int | n,
|  | long | a,
|  | vector< double > | m,
|  | TeMatrix | c
| ) |  |

Initializes Region

Parameters:

  n | number of bands
  a | the area
  m | mean vector
  c | covariance matrix

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

Returns the mean value

Parameters:

  ind | The mean of band 'ind'

void TePDIRegion::SetArea | ( | long | a | ) | `[inline]`

Sets the area of the region

Parameters:

  a | The new area

void TePDIRegion::SetClass | ( | int | clas | ) | `[inline]`

Set the class.

Parameters:

  clas | The class of the Region

void TePDIRegion::SetId | ( | long | id_region | ) | `[inline]`

Sets the region idtity.

Parameters:

  id_region | The ID of the region

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines