How to convert a grey-scale image into a reverse binary image
Ältere Kommentare anzeigen
I have images like the one shown above and I want to convert the image to a binary image where the black parts are white and the rest of the image is black. How would I approach solving this problem? Akzeptierte Antwort
Weitere Antworten (1)
Image Analyst
am 15 Dez. 2019
Try this:
grayImage = 255 - grayImage; % Assuming your image is uint8. Use 65535 if it's uint16.
Kategorien
Mehr zu Image Quality finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!