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

iptk::TERM Class Reference

#include <term.h>

Inheritance diagram for iptk::TERM:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Class TERM to perform a Thresholding and Extraction of Region Map.

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::RegiongetRegionList (void)
 Returns the extracted list of regions.


Constructor & Destructor Documentation

iptk::TERM::TERM void   ) 
 

Default constructor.

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

iptk::TERM::TERM const iptk::Image im  ) 
 

Image registering constructor.

The image is autmatically registered at the construction stage.

iptk::TERM::TERM const TERM t  ) 
 

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.


Member Function Documentation

tutk::List< gutk::Region > iptk::TERM::getRegionList void   ) 
 

Returns the extracted list of regions.

Returns a meaningfull result only after a call to the process member function.

iptk::RegionMap iptk::TERM::getRegionMap void   ) 
 

Returns the pointer to the calculated region map.

Returns a meaningfull result only after a call to the process member function.

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

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.

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

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.

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

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.


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