converting array to image??

I have a array say like 64414 23345 .... . can i save the array as image on my desktop and again when i read back in matlab get 64414 23345...(original array)?? if so could u plz let me know how to do
I tried by displaying the array and saving the image displayed but the values in it are changing when i read back..

回答 (2 件)

Image Analyst
Image Analyst 2013 年 7 月 4 日

0 投票

It already is an image. Any 2D array, or 3D for that matter, can be considered as an image. Why do you think your 2D array is not?

1 件のコメント

nayana
nayana 2013 年 7 月 8 日
i meant, when i save 2d array in matlab ,as an image onto desktop and again read it back, my values are changing.
I would like to know if i can save the array to an image without the, numbers above some particular value being converted to that particular value...Thanks in advance

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

Walter Roberson
Walter Roberson 2013 年 7 月 4 日

0 投票

h = image(uint16(YourArray));
fetched = get(h, 'CData');
%now see how much they differ
max(YourArray(:) - fetched(:))

カテゴリ

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

質問済み:

2013 年 7 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by