| 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 | Protected Attributes
TePDIMorfFilter Class Reference
Filtering algorithms.

This is the class for morfological filter. More...

`#include <TePDIMorfFilter.hpp>`

Inheritance diagram for TePDIMorfFilter:

List of all members.

## Public Types

enum | TePDIMorfType { TePDIMDilationType = 1, TePDIMErosionType = 2, TePDIMMedianType = 3, TePDIMModeType = 4 }

## Public Member Functions

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

## Protected Member Functions

bool | RunImplementation ()
| Runs the current algorithm implementation.
bool | RunDilation ()
| Runs the dilation algorithm implementation.
bool | RunErosion ()
| Runs the erosion algorithm implementation.
bool | RunMedian ()
| Runs the median algorithm implementation.
bool | RunMode ()
| Runs the mode algorithm implementation.
void | ResetState (const TePDIParameters &params)
| Reset the internal state to the initial state.

## Protected Attributes

double * | double_buffer_
| A buffer to store temporary double values.

## Detailed Description

This is the class for morfological filter.

Author:
  Emiliano F. Castejon <castejon@dpi.inpe.br>

Note:
  The general required parameters are:

Parameters:

  filter_type | ( TePDIMorfType ),
  input_image | (TePDITypes::TePDIRasterPtrType),
  output_image | (TePDITypes::TePDIRasterPtrType),
  channels | (std::vector<int>) - input_image Band(s) to process.
  iterations | (int) - Iterations number.
  filter_mask | ( TePDIFilterMask::pointer ) Morfological filter mask.

Examples:

  TePDIMorfFilter_test.cpp.

## Member Enumeration Documentation

enum TePDIMorfFilter::TePDIMorfType

Enumerator:

  TePDIMDilationType | Dilation.
  TePDIMErosionType | Erosion.
  TePDIMMedianType | Median.
  TePDIMModeType | Mode.

## Constructor & Destructor Documentation

TePDIMorfFilter::TePDIMorfFilter | ( |  | ) |

Default Constructor.

TePDIMorfFilter::~TePDIMorfFilter | ( |  | ) |

Default Destructor.

## Member Function Documentation

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

Reset the internal state to the initial state.

Parameters:

  params | The new parameters referente at initial state.

Reimplemented from TePDIBufferedFilter.

bool TePDIMorfFilter::RunDilation | ( |  | ) | `[protected]`

Runs the dilation algorithm implementation.

Returns:
  true if OK. false on error.

bool TePDIMorfFilter::RunErosion | ( |  | ) | `[protected]`

Runs the erosion algorithm implementation.

Returns:
  true if OK. false on error.

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

Runs the current algorithm implementation.

Returns:
  true if OK. false on error.

Implements TePDIAlgorithm.

bool TePDIMorfFilter::RunMedian | ( |  | ) | `[protected]`

Runs the median algorithm implementation.

Returns:
  true if OK. false on error.

bool TePDIMorfFilter::RunMode | ( |  | ) | `[protected]`

Runs the mode algorithm implementation.

Returns:
  true if OK. false on error.

## Member Data Documentation

double* TePDIMorfFilter::double_buffer_`[protected]`

A buffer to store temporary double values.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines