How can I remove the black horizontal shades from the picture:
Asked
Active
Viewed 65 times
0
-
please show some sample pictures when asking these kind of questions! – Balaji R Oct 11 '15 at 04:59
-
Try using an adaptive threshold algorithm. Check out the post I linked to you above for code and some sample uses. – rayryeng Oct 12 '15 at 06:30
1 Answers
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))

Photon
- 3,182
- 1
- 15
- 16
-
-
I added an example 1 line in matlab. Obviously, more elaborate algorithms can produce better results. – Photon Oct 11 '15 at 05:39