0

How should I threshold (denoise) the image that has multiple regions with white regions. I have make make the white religions all 1s, but I want only the regions that is at least 10 pixels (or I think some number of pixels connected ) as 1s, and make those regions that is less than 10 pixels all 0s.

For example, in figure 1, the top regions is about 20 pixels large, and the bottom is about 5 pixels. How should I do an automatic way to make all the pixels in the bottom region 0s.

enter image description here

March2020
  • 13
  • 4

0 Answers0