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

3 ビュー (過去 30 日間)
Yashlin Naidoo
Yashlin Naidoo 2015 年 5 月 22 日
回答済み: Azzi Abdelmalek 2015 年 5 月 22 日
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 Center および File ExchangeImages についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by