How to i get binary number from image ?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how to get binary number from image? what tools or function in matlab? this is example image :
0 commentaires
Réponses (1)
Adam
le 16 Fév 2017
If the image is greyscale and only has values of 0 or 'non-zero' then it is just trivially
binaryVals - logical( myImage );
If it is in true RGB and you still just want effectively black and 'non-black' (which in this case looks like it is all just white) then
binaryVals = logical( sum( myImage, 3 ) );
should work.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!