0

How can I remove the black horizontal shades from the picture:

rayryeng
  • 102,964
  • 22
  • 184
  • 193
frezel
  • 21
  • 3

1 Answers1

1

Perform thresholding to binarize the image into black and white. Should remove the gray areas. It seems that a global threshold should work, but if not, try using a localized thresholding algorithm.

This is the result when doing:

imshow(~(I<95))

Output image

Photon
  • 3,182
  • 1
  • 15
  • 16