How to convert a grey-scale image into a reverse binary image
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hardit Singh
am 13 Dez. 2019
Beantwortet: Image Analyst
am 15 Dez. 2019
![cup.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254401/cup.jpeg)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 13 Dez. 2019
Rbin = YourImage <= 42;
2 Kommentare
Walter Roberson
am 15 Dez. 2019
I assure you that it does work, with the exception of TIFF images that use IEEE floating point representation (these exist but are rare)
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.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Import, Export, and Conversion finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!