Hi guys, i try to filter binarized image using closing and opening operation in morphological filtering. But, why the image completely damage ?
as an information, i use 3 x 3 disk structuring element
1 | initial version |
Hi guys, i try to filter binarized image using closing and opening operation in morphological filtering. But, why the image completely damage ?
as an information, i use 3 x 3 disk structuring element
2 | No.2 Revision |
Hi guys, i try to filter binarized image using closing and opening operation in morphological filtering. But, why the image completely damage ?
as an information, i use 3 x 3 disk structuring element
here is my opencv code :
Mat k = getStructuringElement(MORPH_ELLIPSE,Size(3,3));
morphologyEx( thresholdImg, openingImg, 3, k );
morphologyEx( openingImg, finalMorph, 2, k );
3 | No.3 Revision |
Hi guys, i try to filter binarized image using closing and opening operation in morphological filtering. But, why the image completely damage ?? (note: i have tried to invert the image). Is my kernel / structure element wrong ? Thanks.
invert the image :
Result
as an information, i use 3 x 3 disk structuring element
Mat k = getStructuringElement(MORPH_ELLIPSE,Size(3,3));
here is my opencv code :
Mat k = getStructuringElement(MORPH_ELLIPSE,Size(3,3));
morphologyEx( thresholdImg, openingImg, 3, k );
morphologyEx( openingImg, finalMorph, 2, k );