#include <watershed.h>
Inheritance diagram for iptk::Watershed:
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::Region > | getRegionList (void) |
Returns the List of Regions identfied. |
|
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. |
|
Destructors. Does nothing. |
|
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. |
|
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. |
|
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. |
|
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. |
|
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. |