#include <threshold.h>
Inheritance diagram for iptk::Threshold:
The threshold has to be set using the setParams member function. The registered image is modified after a call to this function.
Public Member Functions | |
Threshold (void) | |
Default Constructor. | |
Threshold (const iptk::Image &im) | |
Image registering constructor. | |
Threshold (const Threshold &t) | |
Copy constructor Though this constructor does not look like a reference copier, the image data is shared between the passed object(i.e the parameter to the copy constructor) and the new object. | |
virtual | ~Threshold () |
Destructor. | |
virtual void | process (void) |
The function which actually performs the thresholding operation. | |
virtual void | setParams (double params[]) |
Set the threshold value by calling this function. | |
virtual iptk::Image | getResult (void) |
Returns the result of the thresholding operation. |
|
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. |
|
Destructor. Does nothing. |
|
Returns the result of the thresholding operation. The returned image and the thresholded image share the same space in memory. Reimplemented from iptk::IP_Function. |
|
The function which actually performs the thresholding operation. Call this function after the threshold is set by a call to setParams member functions. If the threshold is not set explicitly by the setParams function, then a default value of zero will be used for the threshold. Note that the registered image is modified after a call to this function. Implements iptk::IP_Function. |
|
Set the threshold value by calling this function. The first element of the array params should have the threshold value. Reimplemented from iptk::IP_Function. |