#include <membershipFilter.h>
Inheritance diagram for iptk::MembershipFilter:
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. |
|
Default Constructor. An object created using the default constructor should set the image by using the setImage member function. |
|
Image registering constructor. The image is autmatically registered at the construction stage. |
|
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 Implements iptk::MorphologicalOperationUsingStrel. |
|
Sets the two parameters required for proper execution of this operation.
Reimplemented from iptk::MorphologicalOperationUsingStrel. |