| 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
TePDIBDFilter Class Reference
Filtering algorithms.

This is the class for border detection filter. More...

`#include <TePDIBDFilter.hpp>`

Inheritance diagram for TePDIBDFilter:

List of all members.

## Public Types

enum | TePDIBDType { TePDISobel = 1, TePDIRoberts = 2 }
| Edge detection types. More...

## Public Member Functions

| TePDIBDFilter ()
| Default Constructor.
| ~TePDIBDFilter ()
| 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.
void | ResetState (const TePDIParameters &params)
| Reset the internal state to the initial state.
bool | RunSobel ()
| Runs the Sobel algorithm implementation.
bool | RunRoberts ()
| Runs the Roberts algorithm implementation.

## Detailed Description

This is the class for border detection filter.

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

Note:
  The general required parameters are:

Parameters:

  filter_type | ( TePDIBDType ) - Edge detection type.
  input_image | (TePDITypes::TePDIRasterPtrType) - Input image.
  output_image | (TePDITypes::TePDIRasterPtrType) - Output image.
  channels | (std::vector<int>) - Band(s) to process. For
  iterations | (int) - Iterations number.

Examples:

  TePDIBDFilter_test.cpp.

## Member Enumeration Documentation

enum TePDIBDFilter::TePDIBDType

Edge detection types.

Enumerator:

  TePDISobel | Sobel edge detector
  TePDIRoberts | Roberts edge detector

## Constructor & Destructor Documentation

TePDIBDFilter::TePDIBDFilter | ( |  | ) |

Default Constructor.

TePDIBDFilter::~TePDIBDFilter | ( |  | ) |

Default Destructor.

## Member Function Documentation

bool TePDIBDFilter::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 TePDIBDFilter::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 TePDIBDFilter::RunImplementation | ( |  | ) | `[protected, virtual]`

Runs the current algorithm implementation.

Returns:
  true if OK. false on error.

Implements TePDIAlgorithm.

bool TePDIBDFilter::RunRoberts | ( |  | ) | `[protected]`

Runs the Roberts algorithm implementation.

Returns:
  true if OK. false on error.

bool TePDIBDFilter::RunSobel | ( |  | ) | `[protected]`

Runs the Sobel algorithm implementation.

Returns:
  true if OK. false on error.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines