Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

CMorpho Class Reference

Morphological operation on images (base class). More...

#include <Morpho.h>

Inheritance diagram for CMorpho

Inheritance graph

[legend]
Collaboration diagram for CMorpho:

Collaboration graph

[legend]
List of all members.

Public Methods

 CMorpho ()
virtual ~CMorpho ()
CImageGreydilate (CImageGrey *in, int size)
 Size n dilation.

CImageGreyerode (CImageGrey *in, int size)
 Size n erosion.

CImageGreyclose (CImageGrey *in, int size)
 Size n closing.

CImageGreyopen (CImageGrey *in, int size)
 Size n opening.

virtual CImageGreychamfer (CImageGrey *in, short mode = 0) = 0
 Succesive erosion - distance to complementary.

virtual CImageGreygeodesicErosion (CImageGrey *mark, CImageGrey *ref, int border) = 0
 Geodesic Erosion.

virtual CImageGreygeodesicDilation (CImageGrey *mark, CImageGrey *ref, int border) = 0
 Geodesic Dilation.

CImageGreyregionalMaximum (CImageGrey *in)
 Regional maximum.

CImageGreyregionalMinimum (CImageGrey *in)
 Regional minimum.

CImageGreylocalMaximum (CImageGrey *in)
 Local maximum.

CImageGreylocalMinimum (CImageGrey *in)
 Local minimum.

virtual CImageGreywatershed (CImageGrey *in) = 0
 Watershed - Vincent-Soile's algorithm. More...

virtual CImageGreyskeleton_anchor (CImageGrey *in, CImageGrey *anchor) = 0
 Skeleton with anchor points - Vincent algorithm. More...

virtual CImageGreyskeletonTalbotVincent (CImageGrey *in, CImageGrey *anchor) = 0
 Skeleton Talbot-Vincent algorithm. More...

CImageGreyskeletonMinimal (CImageGrey *in)
 Minimal Skeleton. More...

CImageGreyskeleton (CImageGrey *in)
 Skeleton. More...

virtual CImageGreyconnectedComponents (CImageGrey *in) = 0
 Connected component labeling.


Private Methods

virtual CImageGreydilate (CImageGrey *in, CImageGrey *out) = 0
 Size 1 dilation, private function.

virtual CImageGreyerode (CImageGrey *in, CImageGrey *out) = 0
 Size 1 erosion, private function.


Detailed Description

Morphological operation on images (base class).

Author(s):
Laurent Najman
Date:
7/10/00
Keywords:
Image Processing
Version:
Id: Morpho.h,v 1.4 2001/08/28 22:04:25 laurentnajman Exp
Content:
This class is a base class for morphological operators. It contains only the high-level operators that do not depend on connectivity. For instance, the dilation of size 1 is not implemented here, but the dilation of size n is.

Warning:
This paragraphe has to be enhanced !!!


Member Function Documentation

CImageGrey * CMorpho::skeleton ( CImageGrey * in )
 

Skeleton.

Computes the skeleton by extracting local maxima of the distance function, and then by applying the Talbot-Vincent skeleton algorithm.

Parameters:
in   an image of an object on which to compute the skeleton, every pixels with value 1 belonging to the object
Returns:
the skeleton, in an image with skeleton pixel values at 1.

CImageGrey * CMorpho::skeletonMinimal ( CImageGrey * in )
 

Minimal Skeleton.

Computes the minimal skeleton by extracting regional maxima of the distance function, and then by applying the Talbot-Vincent skeleton algorithm.

Parameters:
in   an image of an object on which to compute the skeleton, every pixels with value 1 belonging to the object
Returns:
the skeleton, in an image with skeleton pixel values at 1.

CImageGrey * CMorpho::skeletonTalbotVincent ( CImageGrey * in,
CImageGrey * anchor ) [pure virtual]
 

Skeleton Talbot-Vincent algorithm.

Parameters:
in   a distance image
anchor   an image of anchor points (points which will be in the resulting skeleton).
Returns:
a skeleton image with all the skeletal pixels at 1

Reimplemented in CMorpho4c, CMorpho6c, and CMorpho8c.

CImageGrey * CMorpho::skeleton_anchor ( CImageGrey * in,
CImageGrey * anchor ) [pure virtual]
 

Skeleton with anchor points - Vincent algorithm.

Parameters:
in   a image of objects, with object pixels at 1.
anchor   an image of anchor points (points which will be in the resulting skeleton).
Returns:
a skeleton image with all the skeletal pixels at 1

Reimplemented in CMorpho4c, CMorpho6c, and CMorpho8c.

CImageGrey * CMorpho::watershed ( CImageGrey * in ) [pure virtual]
 

Watershed - Vincent-Soile's algorithm.

Computes the watershed on an image based on Vincent-Soille algorithm

Parameters:
in   the image on which to compute the watershed, generally a gradient image
Returns:
an image of the labeled catchment basins. To obtain the watershed contour, you should apply a threshold between 0 and 1 on this resulting image.

Reimplemented in CMorpho4c, CMorpho6c, and CMorpho8c.


The documentation for this class was generated from the following files:
Generated at Sun May 12 19:04:27 2002 for OpenMorpho by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000