MorphOps.C File Reference

#include "Image/MorphOps.H"
#include "Image/Image.H"
#include "rutz/trace.h"
#include "inst/Image/MorphOps.I"
Include dependency graph for MorphOps.C:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<class T >
Image< T > dilateImg (const Image< T > &img, const Image< T > &se, Point2D< int > origin)
 Dilate the img with structuring element se with a given origin.
template<class T >
Image< T > erodeImg (const Image< T > &img, const Image< T > &se, Point2D< int > origin)
 Erode the img with structuring element se with a given origin.
template<class T >
Image< T > openImg (const Image< T > &img, const Image< T > &se, Point2D< int > origin)
 Open (erode and the close) img with struct element se with a given origin.
template<class T >
Image< T > closeImg (const Image< T > &img, const Image< T > &se, Point2D< int > origin)
 Close (dilate and erode) img with struct element se with a given origin.

Detailed Description

functions for binary morphology (dilate, erode, open, close)

Definition in file MorphOps.C.


Function Documentation

template<class T >
Image<T> closeImg ( const Image< T > &  img,
const Image< T > &  se,
Point2D< int >  origin = Point2D< int >(-1,-1) 
) [inline]

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

Parameters:
origin is the origin of the structuring element. This parameter is optional - the default is the center of the SE

Definition at line 212 of file MorphOps.C.

References dilateImg(), and erodeImg().

template<class T >
Image<T> dilateImg ( const Image< T > &  img,
const Image< T > &  se,
Point2D< int >  origin = Point2D< int >(-1,-1) 
) [inline]

Dilate the img with structuring element se with a given origin.

Parameters:
origin is the origin of the structuring element. This parameter is optional - the default is the center of the SE

Definition at line 48 of file MorphOps.C.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::getHeight(), Image< T >::getWidth(), Point2D< T >::i, Image< T >::initialized(), max(), and ZEROS.

Referenced by closeImg(), and openImg().

template<class T >
Image<T> erodeImg ( const Image< T > &  img,
const Image< T > &  se,
Point2D< int >  origin = Point2D< int >(-1,-1) 
) [inline]

Erode the img with structuring element se with a given origin.

Parameters:
origin is the origin of the structuring element. This parameter is optional - the default is the center of the SE

Definition at line 120 of file MorphOps.C.

References ASSERT, Image< T >::begin(), Image< T >::beginw(), Image< T >::getHeight(), Image< T >::getVal(), Image< T >::getWidth(), Point2D< T >::i, Image< T >::initialized(), max(), and ZEROS.

Referenced by closeImg(), and openImg().

template<class T >
Image<T> openImg ( const Image< T > &  img,
const Image< T > &  se,
Point2D< int >  origin = Point2D< int >(-1,-1) 
) [inline]

Open (erode and the close) img with struct element se with a given origin.

Parameters:
origin is the origin of the structuring element. This parameter is optional - the default is the center of the SE

Definition at line 205 of file MorphOps.C.

References dilateImg(), and erodeImg().

Generated on Sun May 8 08:12:51 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3