image write

how to write(save) the output image

답변 (3개)

Thomas
Thomas 2012년 5월 30일

0 개 추천

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

Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 5월 30일
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
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 6월 8일
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?

이 질문은 마감되었습니다.

질문:

2012년 5월 30일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by