| TerraLib 4.1

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

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

Public Member Functions | Public Attributes
CloserCells Class Reference

Keep a number (given by MAXCLOSECELLS) of closest neighbour cells of a cell. Its an ordered array of closest neighbour cells of a cell. The contents of array are sorted in ascending order by the euclidian distance between the cell and its neighbour cell. More...

`#include <TePDIRegGrowSeg.hpp>`

List of all members.

## Public Member Functions

| CloserCells ()
| Defalt constructor.
void | Insert (TePDIRGSCell *cell, float dist)
| New cell insertion.
void | Update (TePDIRGSCell *cell, float dist)
| Cell update.
TePDIRGSCell * | Minimum (float &dist)
| Undocumented.
void | Adjust ()
| Undocumented.
void | Reset ()
| Undocumented.

## Public Attributes

TePDIRGSCell * | cmin [MAXCLOSECELLS]
| Array of closest cells.
float | dmin [MAXCLOSECELLS]
| Array of euclidian distances between the cell containing this object (CloserCells) and cmin[i].

## Detailed Description

Keep a number (given by MAXCLOSECELLS) of closest neighbour cells of a cell. Its an ordered array of closest neighbour cells of a cell. The contents of array are sorted in ascending order by the euclidian distance between the cell and its neighbour cell.

The class cell hold some of the closest neighbour cells in this class. Every time the cell wants to the closest neighbour cell it calls methods of this class to retrieve closest neighbour.

## Constructor & Destructor Documentation

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

Defalt constructor.

## Member Function Documentation

void CloserCells::Adjust | ( |  | ) | `[inline]`

Undocumented.

void CloserCells::Insert | ( | TePDIRGSCell * | cell,
|  | float | dist
| ) |  | `[inline]`

New cell insertion.

Parameters:

  cell | Cell pointer.
  dist | Distance.

TePDIRGSCell* CloserCells::Minimum | ( | float & | dist | ) | `[inline]`

Undocumented.

Parameters:

  dist | Distance.

Returns:
  Cell pointer.

void CloserCells::Reset | ( |  | ) | `[inline]`

Undocumented.

void CloserCells::Update | ( | TePDIRGSCell * | cell,
|  | float | dist
| ) |  | `[inline]`

Cell update.

Parameters:

  cell | Cell pointer.
  dist | Distance.

## Member Data Documentation

TePDIRGSCell* CloserCells::cmin[MAXCLOSECELLS]

Array of closest cells.

float CloserCells::dmin[MAXCLOSECELLS]

Array of euclidian distances between the cell containing this object (CloserCells) and cmin[i].

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

- E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/image_processing/TePDIRegGrowSeg.hpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines