| TerraLib 4.1

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

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

Public Member Functions | Protected Member Functions
TePDIBaatz Class Reference
Segmentation algorithms.

Region Growing Segmentation, Baatz implementation. More...

`#include <TePDIBaatz.hpp>`

Inheritance diagram for TePDIBaatz:

List of all members.

## Public Member Functions

| TePDIBaatz ()
| Default Constructor.
| ~TePDIBaatz ()
| Default Destructor.
bool | CheckParameters (const TePDIParameters &parameters) const
| Checks if the supplied parameters fits the requirements of each PDI algorithm implementation.

## Protected Member Functions

void | ResetState (const TePDIParameters &)
| Reset the internal state to the initial state.
bool | RunImplementation ()
| Runs the current algorithm implementation.

## Detailed Description

Region Growing Segmentation, Baatz implementation.

Author:
  Thales Sehn Korting <tkorting@dpi.inpe.br>
  Gilson Costa <gilson@ele.puc-rio.br>

Note:
  Reference: Baatz, M.; Schape, A. Multiresolution segmentation: an optimization approach for high quality multi-scale image segmentation. In: XII Angewandte Geographische Informationsverarbeitung, Wichmann-Verlag, Heidelberg, 2000.
  The general required parameters :

Parameters:

  input_image | (TePDITypes::TePDIRasterPtrType)
  input_weights | (vector<float>) one weight for each input image channel
  input_channels | (vector<unsigned>) used channels for input image
  scale | (float) Parameter scale is > 0 (Has direct influence over the generated segments size).
  compactness | (float) Parameter compactness is > 0 and <= 1 ( compactness = perimeter / sqrt( area ) ).
  color | (float) Parameter color is > 0 and <= 1 (the relative ratio between spacial components and spectral components).
  output_image | (TePDITypes::TePDIRasterPtrType) - Output raster pointer.

Note:
  The optional parameters (will be used only if present):

Parameters:

  output_polsets | (TePDITypes::TePDIPolSetMapPtrType) - A pointer to the output polygon sets map.

Examples:

  TePDISegmentation_test.cpp.

## Constructor & Destructor Documentation

TePDIBaatz::TePDIBaatz | ( |  | ) |

Default Constructor.

TePDIBaatz::~TePDIBaatz | ( |  | ) | `[inline]`

Default Destructor.

## Member Function Documentation

bool TePDIBaatz::CheckParameters | ( | const TePDIParameters & | parameters | ) | const`[virtual]`

Checks if the supplied parameters fits the requirements of each PDI algorithm implementation.

Note:
  Error log messages must be generated. No exceptions generated.

Parameters:

  parameters | The parameters to be checked.

Returns:
  true if the parameters are OK. false if not.

Implements TePDIAlgorithm.

void TePDIBaatz::ResetState | ( | const TePDIParameters & |  | ) | `[protected, virtual]`

Reset the internal state to the initial state.

Parameters:

  params | The new parameters referente at initial state.

Implements TePDIAlgorithm.

bool TePDIBaatz::RunImplementation | ( |  | ) | `[protected, virtual]`

Runs the current algorithm implementation.

Returns:
  true if OK. false on error.

Implements TePDIAlgorithm.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines