| TerraLib 4.1

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

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

Public Types | Public Member Functions | Protected Member Functions
TePDIEMClas Class Reference
Classification algorithms.

EM classification algorithm. More...

`#include <TePDIEMClas.hpp>`

Inheritance diagram for TePDIEMClas:

List of all members.

## Public Types

typedef TeSharedPtr< TePDIEMClas > | pointer
typedef const TeSharedPtr < TePDIEMClas > | const_pointer

## Public Member Functions

| TePDIEMClas ()
| ~TePDIEMClas ()
bool | CheckParameters (const TePDIParameters &parameters) const

## Protected Member Functions

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

## Detailed Description

EM classification algorithm.

Author:
  Thales Sehn Korting <tkorting@dpi.inpe.br>
  Emiliano F. Castejon <castejon@dpi.inpe.br>

Note:
  The required parameters are:

Parameters:

  input_rasters | (TePDITypes::TePDIRasterVectorType) - Input rasters
  bands | (vector<int>) - Input bands from each raster.
  classes_to_find | (int) - The number of classes to find.
  output_raster | (TePDITypes::TePDIRasterPtrType) - Output raster.

Note:
  The optional parameters are:

Parameters:

  sx | (int) - Sampling Rate X (default: 1).
  sy | (int) - Sampling Rate Y (default: 1).
  max_iterations | (int) - The maximum number of iterations (default: 3).
  epsilon | (double) - stop criteria (default: 15).
  shift_threshold | (double) - minimum distance between clusters means (default: 40).
  input_means | (TeMatrix) - initial Matrix of means for each cluster [bands x clusters]

Examples:

  TePDIClassification_test.cpp.

## Member Typedef Documentation

typedef const TeSharedPtr< TePDIEMClas > TePDIEMClas::const_pointer

Type definition for a const algorithm instance pointer.

Reimplemented from TePDIAlgorithm.

typedef TeSharedPtr< TePDIEMClas > TePDIEMClas::pointer

Type definition for an algorithm instance pointer.

Reimplemented from TePDIAlgorithm.

## Constructor & Destructor Documentation

TePDIEMClas::TePDIEMClas | ( |  | ) |

Default constructor

Parameters:

  factoryName | Factory name.

TePDIEMClas::~TePDIEMClas | ( |  | ) |

Default Destructor

## Member Function Documentation

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

Checks if the supplied parameters fits the requirements of each PDI strategy.

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 TePDIEMClas::ResetState | ( | const TePDIParameters & |  | ) | `[protected, virtual]`

Reset the internal state to the initial state.

Parameters:

  params | The new parameters referent at initial state.

Implements TePDIAlgorithm.

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

Runs the algorithm implementation.

Returns:
  true if OK. false on errors.

Implements TePDIAlgorithm.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines