converting array to image??
4 ビュー (過去 30 日間)
古いコメントを表示
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..
0 件のコメント
回答 (2 件)
Image Analyst
2013 年 7 月 4 日
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?
Walter Roberson
2013 年 7 月 4 日
h = image(uint16(YourArray));
fetched = get(h, 'CData');
%now see how much they differ
max(YourArray(:) - fetched(:))
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!