jpg image capture using webcam in matlab gui

1 vue (au cours des 30 derniers jours)
Prateek
Prateek le 6 Juin 2012
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

Réponse acceptée

Walter Roberson
Walter Roberson le 6 Juin 2012
Use imwrite() or saveas() or print()
  1 commentaire
Prateek
Prateek le 6 Juin 2012
thanks for the quick reply...

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Printing and Saving dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by