0
$\begingroup$

I have a binary image that maintains some unwanted region (small white dot) and hole regions (in figure 1). My idea is that to fill the object after I will remove the unwanted region but I don't now exactly wich method can help me

the original image

wanted image

$\endgroup$
1
  • $\begingroup$ this image is taken after applying median filter $\endgroup$
    – Bmz Kari
    Commented Oct 13, 2016 at 9:43

2 Answers 2

1
$\begingroup$

For this image in particular? I believe it should be sufficient to threshold (to get a binary image with only the visible particles present), then perform area opening (remove all objects with an area smaller than a certain value). Then, depending on how the remaining object looks, perform morphological operations such as thickening (simply enlarge the object) and closing (to fill in holes).

$\endgroup$
0
$\begingroup$

there are many ways to achieve it.

1) use Morphological Transformations + Thresholding.

2) Aditionally you can use Contour-detection, so the largest contour-area is the object you want to fill.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.