mimas::binmorph_tool Class Reference

Morphology tool for binary images. More...

#include <binmorph_tool.h>

Collaboration diagram for mimas::binmorph_tool:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 binmorph_tool (void)
 constructor
 ~binmorph_tool (void)
 destructor
void setSizeStructElement (int size)
 redefine the size of structuring element (default is a 3x3 square)
void greyToBinaryOtsu (image< int > &imagein, image< int > &imageout)
 convert imagein to binary form based on Otsu's optimal method and store in imageout
void greyToBinary (image< int > &imagein, image< int > &imageout, int threslevel)
 convert imagein to binary form based on user defined threshold level and store in imageout
void greyToBinary (image< int > &imagein, int threslevel)
 convert imagein to binary form based on user defined threshold level
void binaryToGrey (image< int > &imagein)
 normalise binary image to the range 0..255
void normaliseToGrey (image< int > &imagein)
 normalise imagein to the range 0..255
void normaliseToColour (image< int > &imagein, image< rgba< int > > &imageout)
 normalise imagein to colour in the range 0..255*255*255. Useful for displaying connected components
void negate (image< int > &imagein)
 negate image so component appears as 1 and background as 0
image< intimage_and (image< int > &image1, image< int > &image2)
 pixelwise and of the two images.
void erosion (image< int > &imagein, image< int > &imageout)
 erode binary image
void dilation (image< int > &imagein, image< int > &imageout)
 dilate binary image
void closing (image< int > &imagein, image< int > &imageout)
 closing operation on binary image
void opening (image< int > &imagein, image< int > &imageout)
 opening operation on binary image
void difference (image< int > &imagein1, image< int > &imagein2, image< int > &imageout)
 set of binary points that belong to imagein1 but not on imagein2 *Note that this is not image subtraction!
void boundaryExtract (image< int > &imagein, image< int > &imageout)
 set of points on the boundary of set imagein
void connectedComponents (image< int > &imagein, image< int > &imageout)
 perform connected components analysis on imagein and store labels into imageout. Use normaliseToGrey to before displaying imageout.
void distanceTransform (image< int > &imagein, image< int > &imageout)
 find the distance transform of imagein and store it in imageout. Ref: David Eberly NNTP message id <2vkc27$mjs@trochlea.cs.unc.edu>
void floodFill (image< int > &imagein, int x, int y, int newval, int oldval)

Detailed Description

Morphology tool for binary images.

Author:
Bala Amavasai (bala@amavasai.org)
Date:
Tue Feb 18 16:27:41 GMT 2003
Header
/cvs/mimas2/include/binmorph_tool.h,v 1.1.1.1 2005/08/09 15:37:45 engmb Exp

Definition at line 26 of file binmorph_tool.h.


Constructor & Destructor Documentation

mimas::binmorph_tool::binmorph_tool ( void   ) 

constructor

mimas::binmorph_tool::~binmorph_tool ( void   ) 

destructor


Member Function Documentation

void mimas::binmorph_tool::setSizeStructElement ( int  size  ) 

redefine the size of structuring element (default is a 3x3 square)

void mimas::binmorph_tool::greyToBinaryOtsu ( image< int > &  imagein,
image< int > &  imageout 
)

convert imagein to binary form based on Otsu's optimal method and store in imageout

void mimas::binmorph_tool::greyToBinary ( image< int > &  imagein,
image< int > &  imageout,
int  threslevel 
)

convert imagein to binary form based on user defined threshold level and store in imageout

void mimas::binmorph_tool::greyToBinary ( image< int > &  imagein,
int  threslevel 
)

convert imagein to binary form based on user defined threshold level

void mimas::binmorph_tool::binaryToGrey ( image< int > &  imagein  ) 

normalise binary image to the range 0..255

void mimas::binmorph_tool::normaliseToGrey ( image< int > &  imagein  ) 

normalise imagein to the range 0..255

void mimas::binmorph_tool::normaliseToColour ( image< int > &  imagein,
image< rgba< int > > &  imageout 
)

normalise imagein to colour in the range 0..255*255*255. Useful for displaying connected components

void mimas::binmorph_tool::negate ( image< int > &  imagein  ) 

negate image so component appears as 1 and background as 0

image<int> mimas::binmorph_tool::image_and ( image< int > &  image1,
image< int > &  image2 
)

pixelwise and of the two images.

void mimas::binmorph_tool::erosion ( image< int > &  imagein,
image< int > &  imageout 
)

erode binary image

void mimas::binmorph_tool::dilation ( image< int > &  imagein,
image< int > &  imageout 
)

dilate binary image

void mimas::binmorph_tool::closing ( image< int > &  imagein,
image< int > &  imageout 
)

closing operation on binary image

void mimas::binmorph_tool::opening ( image< int > &  imagein,
image< int > &  imageout 
)

opening operation on binary image

void mimas::binmorph_tool::difference ( image< int > &  imagein1,
image< int > &  imagein2,
image< int > &  imageout 
)

set of binary points that belong to imagein1 but not on imagein2 *Note that this is not image subtraction!

void mimas::binmorph_tool::boundaryExtract ( image< int > &  imagein,
image< int > &  imageout 
)

set of points on the boundary of set imagein

void mimas::binmorph_tool::connectedComponents ( image< int > &  imagein,
image< int > &  imageout 
)

perform connected components analysis on imagein and store labels into imageout. Use normaliseToGrey to before displaying imageout.

void mimas::binmorph_tool::distanceTransform ( image< int > &  imagein,
image< int > &  imageout 
)

find the distance transform of imagein and store it in imageout. Ref: David Eberly NNTP message id <2vkc27$mjs@trochlea.cs.unc.edu>

void mimas::binmorph_tool::floodFill ( image< int > &  imagein,
int  x,
int  y,
int  newval,
int  oldval 
)


The documentation for this class was generated from the following file:
[GNU/Linux] [Qt] [Mesa] [STL] [Lapack] [Boost] [Magick++] [Xalan-C and Xerces-C] [doxygen] [graphviz] [FFTW] [popt] [xine] [Gnuplot] [gnu-arch] [gcc] [gstreamer] [autoconf/automake/make] [freshmeat.net] [opensource.org] [sourceforge.net] [MMVL]
mimas 2.1 - Copyright Mon Oct 30 11:31:25 2006, Bala Amavasai, Stuart Meikle, Arul Selvan, Fabio Caparrelli, Jan Wedekind, Manuel Boissenin, ...