How have Image file form Surf or Surface function?

I want to have Image file though ;h = surface(u,v,zeros(h,w),I);
h =
Surface with properties:
EdgeColor: 'none'
LineStyle: '-'
FaceColor: 'interp'
FaceLighting: 'flat'
FaceAlpha: 1
XData: [800×1067 double]
YData: [800×1067 double]
ZData: [800×1067 double]
CData: [800×1067×3 uint8]
I used saveas(gif,’test.png’); but it dropped the quality of the image ( as I want to use it for text extraction), it is not acceptable. imshow, also has same problem. Thus, I use the surface. It makes good quality. But I cannot have image file. Is there any solution, for instance, use the h (output of surface) to make a image file.

4 件のコメント

KALYAN ACHARJYA
KALYAN ACHARJYA 2018 年 5 月 28 日
Are you want to save the "displayed image" file in good quality?
marya anderson
marya anderson 2018 年 5 月 31 日
Yes, Exactly. I want to save for following process of my code and future work.
KSSV
KSSV 2018 年 5 月 31 日
marya anderson
marya anderson 2018 年 6 月 3 日
I think the best current way is export_fig Accepted Answer to keep the quality safe as possible. Thank you KSSV. please, leave it in answer box, thus, I can active accepted answer.

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

 採用された回答

その他の回答 (0 件)

カテゴリ

製品

リリース

R2017b

質問済み:

2018 年 5 月 28 日

回答済み:

2018 年 6 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by