How to convert a grey-scale image into a reverse binary image
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hardit Singh
il 13 Dic 2019
Risposto: Image Analyst
il 15 Dic 2019
![cup.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/254401/cup.jpeg)
0 Commenti
Risposta accettata
Walter Roberson
il 13 Dic 2019
Rbin = YourImage <= 42;
2 Commenti
Walter Roberson
il 15 Dic 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)
Più risposte (1)
Image Analyst
il 15 Dic 2019
Try this:
grayImage = 255 - grayImage; % Assuming your image is uint8. Use 65535 if it's uint16.
0 Commenti
Vedere anche
Categorie
Scopri di più su Import, Export, and Conversion in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!