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

iptk::Watershed Class Reference

#include <watershed.h>

Inheritance diagram for iptk::Watershed:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

A class to extract morhological watersheds of gray scale images.

The different watershed regions are extracted and a List of objects of class Region is created. Also a RegionMap of these regions is created. The final result of this process will have the original image superposed with the watershed boundaries. The algorithm extracting the wateshed regions assumes that the registered image has intensity values only in the range [0, 255].


Public Member Functions

 Watershed (void)
 Default constructor.

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

 Watershed (const Watershed &w)
 Copy constructor.

virtual ~Watershed ()
 Destructors.

virtual void setParams (double params[])
 Sets the parameters required to extract the watershed regions.

virtual void process (void)
 The main function which does the morhological watershed extraction.

virtual iptk::Image getResult (void)
 Get the image resulting from the watershed extraction.

iptk::RegionMap getRegionMap (void)
 Returns the region map of the different watersheds identified.

tutk::List< gutk::RegiongetRegionList (void)
 Returns the List of Regions identfied.


Constructor & Destructor Documentation

iptk::Watershed::Watershed void   ) 
 

Default constructor.

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

iptk::Watershed::Watershed const iptk::Image im  ) 
 

Image registering constructor.

The image is autmatically registered at the construction stage.

iptk::Watershed::Watershed const Watershed w  ) 
 

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.

virtual iptk::Watershed::~Watershed  )  [virtual]
 

Destructors.

Does nothing.


Member Function Documentation

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

Returns the List of Regions identfied.

The returned result will be meaningfull only after a call to the process member function which in-turn should be called only after all the parameters are properly set.

iptk::RegionMap iptk::Watershed::getRegionMap void   ) 
 

Returns the region map of the different watersheds identified.

The returned result will be meaningfull only after a call to the process member function which in-turn be called only after all the parameters are properly set.

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

Get the image resulting from the watershed extraction.

The returned image will be the original image superimposed with the waterdhed boundaries. This image and the original image have different memory space allocated.

Reimplemented from iptk::IP_Function.

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

The main function which does the morhological watershed extraction.

Call this function only after registering the image and set the different parameters. A call otherwise produces meaningless results.

Implements iptk::IP_Function.

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

Sets the parameters required to extract the watershed regions.

The first the element of the array should hold the sparness measure. Sparseness sets the density with which the minima should be identified before the extraction of watershed regions.

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