From double 2 binary
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Felix
am 1 Okt. 2013
Kommentiert: Walter Roberson
am 1 Okt. 2013
Hello, I have an image from type double and i want to convert it to binary format with my threshold. Then I try this code:
for i=1:426
for j=1:640
if IM(i,j)>100
bw(i,j)=250
elseif IM(i,j)<100
bw(i,j) =1
end
end
end
it doesn't work.
another way: bw= IM > 100; also doesn't work/ can u help me? thnx
P.S. I can't use this ways only then i work in type - double
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150240/image.jpeg)
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!