Bytes
Morphology and opencv 21:15:18 read 63 comments 0 font size: LargeMediumSmall subscription
Enable binary images (7*7)
Gray Scale Image opening (9*9 elliptical structure)
Function: lhmorpopen
(Morphological Open Operation)
Parameters:
SRC input image
DST output image
Se structure element pointer
Number of expansion and corrosion times in iterations
Source code:
Void lhmorpopen (const iplimage * SRC, iplimage * DST, iplconvkernel * Se = NULL, int iterations = 1)
{
Cverode (SRC, DST, Se, iterations );
// Note: Use the ing of structural elements to expand !!!
Iplconvkernel * semap = lhstructuringelementmap (SE );
Cvdilate (DST, DST, semap, iterations );
Cvreleasestructuringelement (& semap );
}
Closed Operation-lhmorpclose
Morphology and opencv 21:20:49 read 25 comments 0 font size: LargeMediumSmall subscription
Closed binary image (7*7)
Grayscale image closure (9*9)
Function: lhmorpclose
Description: Morphological close operation
Parameters:
SRC input image
DST output image
Se structure element pointer
Number of expansion and corrosion times in iterations closed operation
Source code:
Void lhmorpclose (const iplimage * SRC, iplimage * DST, iplconvkernel * Se = NULL, int iterations = 1)
{
Cvdilate (SRC, DST, Se, iterations );
// Note: The ing of structural elements is used for corrosion.
Iplconvkernel * semap = lhstructuringelementmap (SE );
Cverode (DST, DST, semap, iterations );
Cvreleasestructuringelement (& semap );
}