removing small blob from image?
I'm working on a java image processing program(based on OpenCV libraryJava). I need to remove the small regions from the image to get a clean image that contain only the large circle ?
have you tried to switch erode and dilate? What is the input image?
You can also print blobs filtering by Size, you'll remove all the blobs standing alone
Yes I try Erode and Dilate But it does not work well ...
U mean I need to use Filter by size to get rid of all small blobs ?! Could u please tell me the name of filter that can I use for this purpose ?
Check this example, you can set parameters of the BlobDetector to filter smaller blobs. Maybe also the circularity could be usefull in your case, I can't tell without the original image