Info

此问题已关闭。 请重新打开它进行编辑或回答。

image write

1 次查看(过去 30 天)
Sivakumaran Chandrasekaran
关闭: MATLAB Answer Bot 2021-8-20
how to write(save) the output image

回答(3 个)

Thomas
Thomas 2012-5-30
If you want to save your plots you could use the print command
doc print
Eg.
h=figure
plot(1:4)
print(h,'-dbmp','-noui','myFig') % this saves myFig.bmp in current directory
To save an image you can use imwrite
doc imwrite
  4 个评论
Thomas
Thomas 2012-5-30
this page has some tricks you might want to try..
http://groups.google.com/group/comp.soft-sys.matlab/browse_thread/thread/826736766cc3f3b3
Sivakumaran Chandrasekaran
Thanks.., The link helped me to find the right solution

Image Analyst
Image Analyst 2012-5-30
You need to describe this better. I've never heard of imsave(). Of course I've heard of imwrite() and it works fine - you just need to supply it the proper numerical array and filename. Why are you not able to supply those, or else what is going wrong when you do?

Walter Roberson
Walter Roberson 2012-5-30

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by