#include <term.h>
Inheritance diagram for iptk::TERM:
TERM is for Thresholding and Extraction of Region Map. A given gray-scale image, when thresholded, results in a binary image consisting of regions which are either white or black. Most times a thresholding operation is performed on the image for a simple first level segmentation to extract regions having pixels of intensity values less than a particular value or greater than a particular value. This class performs such a thresholding operation, simultaneously extracting the different segmented regions. The original image registered with this class is overwritten with the thresholded image. The extracted regions are also mapped on to a RegionMap at the same time. Either the dark regions or the bright regions, as per the user's choice, are extracted.
Public Member Functions | |
TERM (void) | |
Default constructor. | |
TERM (const iptk::Image &im) | |
Image registering constructor. | |
TERM (const TERM &t) | |
Copy constructor This constructor is only a reference copier. | |
virtual | ~TERM () |
Destructor. | |
virtual void | process (void) |
A virtual function to process the image. | |
virtual iptk::Image | getResult (void) |
A virtual function to access the result of the process. | |
virtual void | setParams (double params[]) |
A virtual function to set the parameters aiding the process. | |
iptk::RegionMap | getRegionMap (void) |
Returns the pointer to the calculated region map. | |
tutk::List< gutk::Region > | getRegionList (void) |
Returns the extracted list of regions. |
|
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. |
|
Copy constructor This constructor is only a reference copier. i.e., the image data is shared between the passed object(i.e the parameter to the copy constructor) and the new object. |
|
Returns the extracted list of regions. Returns a meaningfull result only after a call to the process member function. |
|
Returns the pointer to the calculated region map. Returns a meaningfull result only after a call to the process member function. |
|
A virtual function to access the result of the process. Will only return a valid result after a call to the process member function. The returned image is the modified original image. Reimplemented from iptk::IP_Function. |
|
A virtual function to process the image. This is the main processing function. The processing occurs only at a call to this function. The result is meaningfull only if this function is called after an image is registered. Implements iptk::IP_Function. |
|
A virtual function to set the parameters aiding the process. The first element of the array should be the required threshold value. The second element of the array should be either 0 or 1. 0 indicates that the region map should be generated for regions below the threshold value. 1 indicates the contrary. Infact any non-zero number can indicate that the region map should consider white regions. The third parameter will should hold the minimum size of the regions to identified. Only region of size greater than or equal to this size will be extracted. Reimplemented from iptk::IP_Function. |