How to save the matrix value of bmp image ?

27 ビュー (過去 30 日間)
navanit dubey
navanit dubey 2021 年 3 月 24 日
コメント済み: navanit dubey 2021 年 3 月 24 日
Hey,
I have an image which is in bmp format and i coverted it in 0 and 1 using the below code
m1=im2bw(imread('m1.bmp'))
imshow(m1)
now in the command promt I am getting large value of 0 and 1 and as I tried to copy it they have many values not there.
Is there any way where I can get all the values of 0 and 1.
Thankyou

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 3 月 24 日
編集済み: KALYAN ACHARJYA 2021 年 3 月 24 日
Once you load the image,Matlab itself save it as a Matrix with assigned variable name. In the above mentioned example m1 is the variable, where the matrices data is saved.
More, you may save the matrices data in excel also, please refer writematrix function.
  1 件のコメント
navanit dubey
navanit dubey 2021 年 3 月 24 日
Thankyou for the advice sir.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Find more on Denoising and Compression in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by