|
SMIL 1.1.2
|
In Mathematical morphology, a Residue is the symetrical difference between an image and some transformation or between two transformations.
Collaboration diagram for Morphological Residues:Functions | |
| template<class T > | |
| RES_T | gradient (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE) |
| gradient() - Morphological gradient | |
| template<class T > | |
| RES_T | gradient (const Image< T > &imIn, Image< T > &imOut, const StrElt &dilSe, const StrElt &eroSe) |
| gradient() - Morphological gradient | |
| template<class T > | |
| RES_T | topHat (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE) |
| topHat() - Top-Hat | |
| template<class T > | |
| RES_T | dualTopHat (const Image< T > &imIn, Image< T > &imOut, const StrElt &se=DEFAULT_SE) |
| dualTopHat() - Dual Top-Hat | |
| RES_T gradient | ( | const Image< T > & | imIn, |
| Image< T > & | imOut, | ||
| const StrElt & | se = DEFAULT_SE |
||
| ) |
gradient() - Morphological gradient
: The morphological gradient of an image is defined as the difference between its dilation and its erosion :
![\[ gradient(im) = \epsilon(im) - \delta(im) \]](form_43.png)
| [in] | imIn | : input image |
| [out] | imOut | : output image |
| [in] | se | : structuring element |
| RES_T gradient | ( | const Image< T > & | imIn, |
| Image< T > & | imOut, | ||
| const StrElt & | dilSe, | ||
| const StrElt & | eroSe | ||
| ) |
gradient() - Morphological gradient
: The morphological gradient of an image is defined as the difference between its dilation and its erosion :
![\[ gradient(im) = \epsilon(im) - \delta(im) \]](form_43.png)
This function allows the use of different structuring elements for the dilation and erosion.
| [in] | imIn | : input image |
| [out] | imOut | : output image |
| [in] | dilSe | : dilation structuring element |
| [in] | eroSe | : erosion structuring element |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| RES_T dualTopHat | ( | const Image< T > & | imIn, |
| Image< T > & | imOut, | ||
| const StrElt & | se = DEFAULT_SE |
||
| ) |
dualTopHat() - Dual Top-Hat
Dual Top-Hat or Close top-hat or Black top-hat is defined as the difference between the closing of the image and itself :
![\[ BTH(im) = \phi(im) - im \]](form_45.png)
| [in] | imIn | : input image |
| [out] | imOut | : output image |
| [in] | se | : structuring element |