image write

how to write(save) the output image

Antworten (3)

Thomas
Thomas am 30 Mai 2012

0 Stimmen

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 Kommentare

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 am 30 Mai 2012
so you want to save a live video feed from a webcam?
Thomas
Thomas am 30 Mai 2012
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 am 30 Mai 2012

0 Stimmen

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?

Diese Frage ist geschlossen.

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by