Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

iptk::MembershipFilter Class Reference

#include <membershipFilter.h>

Inheritance diagram for iptk::MembershipFilter:

Inheritance graph
[legend]
Collaboration diagram for iptk::MembershipFilter:

Collaboration graph
[legend]
List of all members.

Detailed Description

A class which implements the concept of membership filter.

The algorithm is as follows. The Strel is placed with its center aligning with every pixel of the image. Wherever the intensity value of the pixel is 255, there, the number of pixels under the Strel having an intensity value of 255 is calculated. If this value (called the membership strength) is less than a certain number, then the intensity value of this pixel is set to 0 in the result. Else it is left at 255.


Public Member Functions

 MembershipFilter (void)
 Default Constructor.

 MembershipFilter (const Image &im)
 Image registering constructor.

 MembershipFilter (const MembershipFilter &mf)
 Copy Constructor.

virtual ~MembershipFilter ()
 Destructor.

virtual void setParams (double params[])
 Sets the two parameters required for proper execution of this operation.

virtual void process (void)
 The function which does the actual membership filtering.


Constructor & Destructor Documentation

iptk::MembershipFilter::MembershipFilter void   ) 
 

Default Constructor.

An object created using the default constructor should set the image by using the setImage member function.

iptk::MembershipFilter::MembershipFilter const Image im  ) 
 

Image registering constructor.

The image is autmatically registered at the construction stage.


Member Function Documentation

virtual void iptk::MembershipFilter::process void   )  [virtual]
 

The function which does the actual membership filtering.

The result of the operation is meaningful only after an image is registered with the object of this class. The result of this process is meaningful only after a call to the setParams() member function.

Implements iptk::MorphologicalOperationUsingStrel.

virtual void iptk::MembershipFilter::setParams double  params[]  )  [virtual]
 

Sets the two parameters required for proper execution of this operation.

params should be a two element array with the first element giving the size of the Strel to be used and the second element the membership strength.

Reimplemented from iptk::MorphologicalOperationUsingStrel.


The documentation for this class was generated from the following file:
Generated on Mon Nov 22 11:12:42 2004 for ImprolaLib by doxygen 1.3.7