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

iptk::MorphologicalOperationUsingStrel Class Reference

#include <morphologicalOperationUsingStrel.h>

Inheritance diagram for iptk::MorphologicalOperationUsingStrel:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

An abstract base class for morphological operations which use a structure element.

The morphological operations shall be performed on a binary image. The binary image should be a iptk::GRAY_SCALE image having intensity values of 0 or 255 only. The regions with intensity value of 255 will be considered as the arifacts in the image.


Public Member Functions

 MorphologicalOperationUsingStrel (void)
 Default Constructor.

 MorphologicalOperationUsingStrel (const iptk::Image &im)
 Image registering constructor.

 MorphologicalOperationUsingStrel (const MorphologicalOperationUsingStrel &mos)
 Copy constructor.

virtual ~MorphologicalOperationUsingStrel ()
 Destructor.

virtual void process (void)=0
 A pure virtual function.

virtual void setParams (double params[])
 Sets the parameters neccessary for the morphological operation.

virtual iptk::Image getResult (void)
 Returns the resulting image.


Protected Attributes

int STREL_SIZE
 The protected member storing the Strel size.

iptk::Image RESULT
 The protected member storing the result of the operation.


Constructor & Destructor Documentation

iptk::MorphologicalOperationUsingStrel::MorphologicalOperationUsingStrel void   ) 
 

Default Constructor.


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

iptk::MorphologicalOperationUsingStrel::MorphologicalOperationUsingStrel const iptk::Image im  ) 
 

Image registering constructor.

The image is autmatically registered at the construction stage.


Member Function Documentation

virtual iptk::Image iptk::MorphologicalOperationUsingStrel::getResult void   )  [virtual]
 

Returns the resulting image.


The returned image will be meaningful only after a call to the process member function. The derived classes need not overide this function.

Reimplemented from iptk::IP_Function.

virtual void iptk::MorphologicalOperationUsingStrel::process void   )  [pure virtual]
 

A pure virtual function.


The derived classes should overide this function. This function should be the actual function which does the corresponding morphological operation.

Implements iptk::IP_Function.

Implemented in iptk::Dilate, iptk::Erode, iptk::Close, iptk::MembershipFilter, and iptk::Open.

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

Sets the parameters neccessary for the morphological operation.


The array params should contain one element giving the size of a square structure element which will be used for the morphological operation. The derived classes need not overide this function.

Reimplemented from iptk::IP_Function.

Reimplemented in iptk::MembershipFilter.


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