EnoxSoftware / OpenCVForUnity

OpenCV for Unity (Untiy Asset Plugin)
https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088
550 stars 172 forks source link

How to remove noise from images #159

Open yogimelayu12 opened 1 year ago

yogimelayu12 commented 1 year ago

I employ OpenCV in my teaching. thresholding during image processing. Although I used thresholding, there is still noise. how to get rid of the noise like removing color if size > 100.

Untitled

RafaDdS commented 1 year ago

Look into morphological filters. It's probably the best option on a binary image such as your example. A closing would be able to remove the noise inside the interest object while an opening would remove true pixels/regions in the outside.