How do i display the binary matrix of an image in the command window?

8 次查看(过去 30 天)
I need to display the binary matrix of a binary image in the command window. My code is below;
input_file='untitled.bmp' ;
img_wk=imread(input_file) ;
figure(1),imshow(img_wk,[]) ;

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2015-5-22
you can use im2bw function

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by