iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Morphology Operations

These methods perform morphological filtering on binary Images by applying a 'structuring element' to them. These operations are useful to clean up boundaries (erode), fill in holes (dilate), etc.

See Also
Image Filtering

Functions

template<class PixType >
Image< PixType > nrt::dilate (Image< PixType > const &img, Image< PixType > const &se, Point2D< int > origin=Point2D< int >(-1,-1))
 Dilate the img with a custom structuring element. More...
 
template<class PixType >
Image< PixType > nrt::dilate (Image< PixType > const &img, int seSize=3, Point2D< int > origin=Point2D< int >(-1,-1))
 Dilate the img with a square structuring element. More...
 
template<class PixType >
Image< PixType > nrt::erode (Image< PixType > const &img, Image< PixType > const &se, Point2D< int > origin=Point2D< int >(-1,-1))
 Erode the img with a custom structuring element. More...
 
template<class PixType >
Image< PixType > nrt::erode (Image< PixType > const &img, int seSize=3, Point2D< int > origin=Point2D< int >(-1,-1))
 Erode the img with a square structuring element. More...
 
template<class PixType >
Image< PixType > nrt::open (Image< PixType > const &img, Image< PixType > const &se, Point2D< int > origin=Point2D< int >(-1,-1))
 Open (erode and then dilate) img with a custom structuring element. More...
 
template<class PixType >
Image< PixType > nrt::open (Image< PixType > const &img, int seSize=3, Point2D< int > origin=Point2D< int >(-1,-1))
 Open (erode and then dilate) img with a square structuring element. More...
 
template<class PixType >
Image< PixType > nrt::close (Image< PixType > const &img, Image< PixType > const &se, Point2D< int > origin=Point2D< int >(-1,-1))
 Close (dilate and then erode) img with struct element se with a given origin. More...
 
template<class PixType >
Image< PixType > nrt::close (Image< PixType > const &img, int seSize=3, Point2D< int > origin=Point2D< int >(-1,-1))
 Close (dilate and then erode) img with a square structuring element. More...
 

Function Documentation

template<class PixType >
Image<PixType> nrt::dilate ( Image< PixType > const &  img,
Image< PixType > const &  se,
Point2D< int >  origin = Point2D< int >(-1,-1) 
)

Dilate the img with a custom structuring element.

Parameters
imgThe (binary) source image
seThe structuring element to use. Most users will want to generate one using the morphologyKernel method.
originThe origin of the structuring element. The default is the center of the structuring element.
template<class PixType >
Image< PixType > nrt::dilate ( Image< PixType > const &  img,
int  seSize = 3,
Point2D< int >  origin = Point2D< int >(-1,-1) 
)

Dilate the img with a square structuring element.

Parameters
imgThe (binary) source image
seSizeThe x/y size of the square morphology structuring element.
originThe origin of the structuring element. The default is the center of the structuring element.

Definition at line 112 of file MorphologyImpl.H.

References nrt::morphologyKernel().

template<class PixType >
Image<PixType> nrt::erode ( Image< PixType > const &  img,
Image< PixType > const &  se,
Point2D< int >  origin = Point2D< int >(-1,-1) 
)

Erode the img with a custom structuring element.

Parameters
imgThe (binary) source image
seThe structuring element to use. Most users will want to generate one using the morphologyKernel method.
originThe origin of the structuring element. The default is the center of the structuring element.
template<class PixType >
Image< PixType > nrt::erode ( Image< PixType > const &  img,
int  seSize = 3,
Point2D< int >  origin = Point2D< int >(-1,-1) 
)

Erode the img with a square structuring element.

Parameters
imgThe (binary) source image
seSizeThe x/y size of the square morphology structuring element.
originThe origin of the structuring element. The default is the center of the structuring element.

Definition at line 199 of file MorphologyImpl.H.

References nrt::morphologyKernel().

template<class PixType >
Image<PixType> nrt::open ( Image< PixType > const &  img,
Image< PixType > const &  se,
Point2D< int >  origin = Point2D< int >(-1,-1) 
)

Open (erode and then dilate) img with a custom structuring element.

Parameters
imgThe (binary) source image
seThe structuring element to use. Most users will want to generate one using the morphologyKernel method.
originThe origin of the structuring element. The default is the center of the structuring element.
template<class PixType >
Image< PixType > nrt::open ( Image< PixType > const &  img,
int  seSize = 3,
Point2D< int >  origin = Point2D< int >(-1,-1) 
)

Open (erode and then dilate) img with a square structuring element.

Parameters
imgThe (binary) source image
seSizeThe x/y size of the square morphology structuring element.
originThe origin of the structuring element. The default is the center of the structuring element.

Definition at line 213 of file MorphologyImpl.H.

References nrt::morphologyKernel().

template<class PixType >
Image<PixType> nrt::close ( Image< PixType > const &  img,
Image< PixType > const &  se,
Point2D< int >  origin = Point2D< int >(-1,-1) 
)

Close (dilate and then erode) img with struct element se with a given origin.

Parameters
imgThe (binary) source image
seThe structuring element to use. Most users will want to generate one using the morphologyKernel method.
originThe origin of the structuring element. The default is the center of the structuring element.
template<class PixType >
Image< PixType > nrt::close ( Image< PixType > const &  img,
int  seSize = 3,
Point2D< int >  origin = Point2D< int >(-1,-1) 
)

Close (dilate and then erode) img with a square structuring element.

Parameters
imgThe (binary) source image
seSizeThe x/y size of the square morphology structuring element.
originThe origin of the structuring element. The default is the center of the structuring element.

Definition at line 227 of file MorphologyImpl.H.

References nrt::morphologyKernel().