Public Member Functions | Protected Attributes

firevision::MorphologicalFilter Class Reference

Morphological filter interface. More...

#include <>>

Inheritance diagram for firevision::MorphologicalFilter:
Inheritance graph
[legend]

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 38 of file morphologicalfilter.h.


Constructor & Destructor Documentation

firevision::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 44 of file morphologicalfilter.cpp.

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

firevision::MorphologicalFilter::~MorphologicalFilter (  )  [virtual]

Destructor.

Definition at line 53 of file morphologicalfilter.cpp.


Member Function Documentation

void firevision::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 firevision::FilterClosing, and firevision::FilterOpening.

Definition at line 68 of file morphologicalfilter.cpp.

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


Member Data Documentation

unsigned char* firevision::MorphologicalFilter::se [protected]

Anchor point x offset of structuring element.

Definition at line 56 of file morphologicalfilter.h.

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

Anchor point y offset of structuring element.

Definition at line 58 of file morphologicalfilter.h.

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


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