#include "Image/MorphOps.H"
#include "Image/Image.H"
#include "rutz/trace.h"
#include "inst/Image/MorphOps.I"
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. |
functions for binary morphology (dilate, erode, open, close)
Definition in file MorphOps.C.
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.
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().
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.
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().
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.
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().
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.
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().