MATLAB: Image Processing – How to remove big pixel object

bwareaopenimage processingMATLAB

I have remove small unwanted object however there are still some big pixel object I can't remove it.
How can I remove it?? (If I increase the 'bwareaopen', the whole image will become black)

Best Answer

I have no idea. If you remove both the small objects and large objects, what do you expect to remain? Are there medium sized objects that you hope to retain? Upload your binary image to tinypic.com so I can see it and tell me which objects you want to remove or keep.