HOW TO CONVERT MATRIX INTO IMAGE

i'm having 8x8x96 matrix convert into images or if any other way to apply the value in images...

5 件のコメント

KSSV
KSSV 2017 年 3 月 28 日
@Vasantha You have asked this question already. We had a discussion on this and Walter also suggested you on this.
vasantha malairamar
vasantha malairamar 2017 年 3 月 28 日
i'm trying but not work...
KSSV
KSSV 2017 年 3 月 28 日
Copy the code which you have tried with error here..
vasantha malairamar
vasantha malairamar 2017 年 3 月 28 日
編集済み: KSSV 2017 年 3 月 28 日
md=1/qc;
sj=newcolor-tme;
te=md.*sj;
invcolor=te.*me;
save('inversecolor.mat','invcolor');
for de=1:96
for kw=1:8
for ks=1:8
filename=sprintf('file%d',ks)
imwrite(invcolor,filename)
end
end
end
Error using imwrite (line 426) Unable to determine the file format from the file name.
KSSV
KSSV 2017 年 3 月 28 日
Error is with filename, what is the filename you have given? Also it is tough to check with out knowing dimensions/ data of the variables.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2017 年 3 月 28 日

0 投票

filename=sprintf('file%d.bmp',ks)
However, you cannot imwrite() a matrix with 96 color channels. You need to follow up on https://www.mathworks.com/matlabcentral/answers/329919-we-have-8-8-96-matrix-and-we-want-to-convert-this-matrix-into-an-image-how-to-convert-it to explain there what you are doing.

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

タグ

質問済み:

2017 年 3 月 28 日

回答済み:

2017 年 3 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by