Clear Filters
Clear Filters

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

9 views (last 30 days)
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,[]) ;

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 22 May 2015
you can use im2bw function

Categories

Find more on Images in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!