jpg image capture using webcam in matlab gui

1 回表示 (過去 30 日間)
Prateek
Prateek 2012 年 6 月 6 日
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

採用された回答

Walter Roberson
Walter Roberson 2012 年 6 月 6 日
Use imwrite() or saveas() or print()
  1 件のコメント
Prateek
Prateek 2012 年 6 月 6 日
thanks for the quick reply...

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by