SMIL 1.1.2
|
Morphological Filters
Morphological filters are morphological image transformations which are both increasing and idempotent, i.e.,
Functions | |
template<class T > | |
RES_T | close (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE) |
close() - Morphological grayscale closing | |
template<class T > | |
RES_T | close (const Image< T > &imIn, Image< T > &imOut, UINT seSize) |
close() - Morphological grayscale closing using the default structuring element but being able to set its size | |
template<class T > | |
RES_T | open (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE) |
open() - Morphological grayscale opening | |
template<class T > | |
RES_T | open (const Image< T > &imIn, Image< T > &imOut, UINT seSize) |
open() - Morphological grayscale opening using the default structuring element but being able to set its size | |
template<class T > | |
RES_T | asfClose (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE) |
Alternate Sequential Filter beginning by a closing. | |
template<class T > | |
RES_T | asfOpen (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE) |
Alternate Sequential Filter beginning by an opening. | |
template<class T > | |
RES_T | mean (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE) |
Mean filter. | |
template<class T > | |
RES_T | median (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE) |
Median filter. | |
template<class T > | |
RES_T | rank (const Image< T > &imIn, Image< T > &imOut, double percentile, const StrElt &se=DEFAULT_SE) |
Rank filter. | |
RES_T close | ( | const Image< T > & | imIn, |
Image< T > & | imOut, | ||
const StrElt & | se = DEFAULT_SE |
||
) |
close() - Morphological grayscale closing
A closing filter is defined as a dilation followed by an erosion.
[in] | imIn | : input image |
[out] | imOut | : output image |
[in] | se | : structuring element |
close() - Morphological grayscale closing using the default structuring element but being able to set its size
A closing filter is defined as a dilation followed by an erosion.
[in] | imIn | : input image |
[out] | imOut | : output image |
[in] | seSize | : size of structuring element |
RES_T open | ( | const Image< T > & | imIn, |
Image< T > & | imOut, | ||
const StrElt & | se = DEFAULT_SE |
||
) |
open() - Morphological grayscale opening
A opening filter is defined as an erosion followed by a dilation.
[in] | imIn | : input image |
[out] | imOut | : output image |
[in] | se | : structuring element |
open() - Morphological grayscale opening using the default structuring element but being able to set its size
A opening filter is defined as an erosion followed by a dilation.
[in] | imIn | : input image |
[out] | imOut | : output image |
[in] | seSize | : size of structuring element |
RES_T asfClose | ( | const Image< T > & | imIn, |
Image< T > & | imOut, | ||
const StrElt & | se = DEFAULT_SE |
||
) |
Alternate Sequential Filter beginning by a closing.
Sequence of closings and openings with increasing size 1, 2, ..., max_size. The max_size is given by the size of the structuring element (for example 3 for SE(3)).
[in] | imIn | : input image |
[out] | imOut | : output image |
[in] | se | : structuring element with the maximum size of the filter |
Example
RES_T asfOpen | ( | const Image< T > & | imIn, |
Image< T > & | imOut, | ||
const StrElt & | se = DEFAULT_SE |
||
) |
Alternate Sequential Filter beginning by an opening.
Sequence of openings and closings with increasing size 1, 2, ..., max_size. The max_size is given by the size of the structuring element (for example 3 for SE(3)).
[in] | imIn | : input image |
[out] | imOut | : output image |
[in] | se | : structuring element with the maximum size of the filter |
RES_T mean | ( | const Image< T > & | imIn, |
Image< T > & | imOut, | ||
const StrElt & | se = DEFAULT_SE |
||
) |
Mean filter.
[in] | imIn | : input image |
[out] | imOut | : output image |
[in] | se | : structuring element |
RES_T median | ( | const Image< T > & | imIn, |
Image< T > & | imOut, | ||
const StrElt & | se = DEFAULT_SE |
||
) |
Median filter.
[in] | imIn | : input image |
[out] | imOut | : output image |
[in] | se | : structuring element |