image write

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 个评论

Hi Thomas,
I want to save the output image.
I can able to save an image as output when i write the following code:
im = imread('football.jpg'); % Load a jpeg image
imwrite(im,'news.jpeg');
My project is to acquire a live image using webcam and convert it to frames and store.. I used imsave. But, it is making us to store manually. I need the output to be saved automatically.
Is it possible
Thomas
Thomas 2012-5-30
so you want to save a live video feed from a webcam?
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
Thanks.., The link helped me to find the right solution
Image Analyst
Image Analyst 2012-5-30

0 个投票

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?

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by