jpg image capture using webcam in matlab gui

I built a gui wherein i can view a runtime video and capture image using data on http://www.mathworks.in/support/solutions/en/data/1-1CBPW/
using the code on the link image is saved in .mat format whereas I require it in .jpg format.
I tried replacing 'testframe.mat' by 'testframe.jpg' in the captureImage_Callback(hObject, eventdata, handles) function but it doesnt work,although file "testframe.jpg" is saved in the workspace it doesnt open
how can I save the frame in jpg format

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 6 Jun. 2012

1 Stimme

Use imwrite() or saveas() or print()

Weitere Antworten (0)

Kategorien

Mehr zu Holidays / Seasons finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by