how can change pixcle value to binary in matlab and write its bit in what variable?
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
I want to change my pixel values to binary . and i want to keep its binary value in a variable how can change it to binary and how can put it in a variable can i put it in an array with 8 index
Risposte (2)
Walter Roberson
il 29 Dic 2013
See dec2bin(), which converts to string. If you want numeric form,
dec2bin(Value,8) - '0'
1 Commento
sama h
il 29 Dic 2013
Image Analyst
il 29 Dic 2013
Perhaps you mean
thresholdValue = 128; % or whatever value you want/need.
binaryImage = grayScaleImage > thresholdValue;
Why don't you just attach your image and tell us what you want to measure or do to it?
Questa domanda è chiusa.
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!