MorphologicalFilter Class Reference

Morphological filter interface. More...

#include <filters/morphology/morphologicalfilter.h>

Inheritance diagram for MorphologicalFilter:

List of all members.


Public Member Functions

 MorphologicalFilter (const char *name, unsigned int max_num_buffers=1)
 Constructor.
virtual ~MorphologicalFilter ()
 Destructor.
virtual void set_structuring_element (unsigned char *se, unsigned int se_width, unsigned int se_height, unsigned int se_anchor_x, unsigned int se_anchor_y)
 Set the structuring element for successive filter runs.

Protected Attributes

unsigned char * se
 Structuring element.
unsigned int se_width
 Width of structuring element.
unsigned int se_height
 Height of structuring element.
unsigned int se_anchor_x
 Anchor point x offset of structuring element.
unsigned int se_anchor_y
 Anchor point y offset of structuring element.

Detailed Description

Morphological filter interface.

This interface defines specific API details for morphological filters.

Author:
Tim Niemueller

Definition at line 33 of file morphologicalfilter.h.


Constructor & Destructor Documentation

MorphologicalFilter::MorphologicalFilter ( const char *  name,
unsigned int  max_num_buffers = 1 
)

Constructor.

Parameters:
name filter name
max_num_buffers maximum number of source buffers.

Definition at line 39 of file morphologicalfilter.cpp.

References se, se_anchor_x, se_anchor_y, se_height, and se_width.

MorphologicalFilter::~MorphologicalFilter (  )  [virtual]

Destructor.

Definition at line 48 of file morphologicalfilter.cpp.


Member Function Documentation

void MorphologicalFilter::set_structuring_element ( unsigned char *  se,
unsigned int  se_width,
unsigned int  se_height,
unsigned int  se_anchor_x,
unsigned int  se_anchor_y 
) [virtual]

Set the structuring element for successive filter runs.

Parameters:
se structuring element buffer. This is just a line-wise concatenated array of values. A value of zero means ignore, any other value means to consider this value.
se_width width of structuring element
se_height height of structuring element
se_anchor_x x coordinate of anchor in structuring element
se_anchor_y y coordinate of anchor in structuring element

Reimplemented in FilterClosing, and FilterOpening.

Definition at line 63 of file morphologicalfilter.cpp.

Referenced by FilterGeodesicDilation::FilterGeodesicDilation(), FilterGeodesicErosion::FilterGeodesicErosion(), FilterOpening::set_structuring_element(), and FilterClosing::set_structuring_element().


Member Data Documentation

unsigned char* MorphologicalFilter::se [protected]

Structuring element.

Definition at line 45 of file morphologicalfilter.h.

Referenced by FilterTophatClosing::apply(), FilterErosion::apply(), FilterDilation::apply(), and MorphologicalFilter().

unsigned int MorphologicalFilter::se_anchor_x [protected]

Anchor point x offset of structuring element.

Definition at line 51 of file morphologicalfilter.h.

Referenced by FilterTophatClosing::apply(), FilterErosion::apply(), FilterDilation::apply(), and MorphologicalFilter().

unsigned int MorphologicalFilter::se_anchor_y [protected]

Anchor point y offset of structuring element.

Definition at line 53 of file morphologicalfilter.h.

Referenced by FilterTophatClosing::apply(), FilterErosion::apply(), FilterDilation::apply(), and MorphologicalFilter().

unsigned int MorphologicalFilter::se_height [protected]

Height of structuring element.

Definition at line 49 of file morphologicalfilter.h.

Referenced by FilterTophatClosing::apply(), FilterErosion::apply(), FilterDilation::apply(), and MorphologicalFilter().

unsigned int MorphologicalFilter::se_width [protected]

Width of structuring element.

Definition at line 47 of file morphologicalfilter.h.

Referenced by FilterTophatClosing::apply(), FilterErosion::apply(), FilterDilation::apply(), and MorphologicalFilter().


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