フィルターのクリア

How do i save .avi file imported through a GUI into a variable so it can be played?

1 回表示 (過去 30 日間)
Franchesca
Franchesca 2014 年 5 月 13 日
回答済み: Franchesca 2014 年 5 月 13 日
i have created a GUI and have opened the .avi file into this, however it doesn't right the .avi file to a variable when its opened, how would i do this.
this is the code so far:
% --- Executes on button press in pushbutton6.import video function pushbutton6_Callback(hObject, eventdata, handles) % hObject handle to pushbutton6 (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
[nm,pth]=uigetfile({'*.avi'},'Load Matlab File'); mmObj=mmreader([pth,nm]); handles.pth=pth; handles.nm=nm; handles.Video=mmObj; image1=read(mmObj,1); axes(handles.axes1); imshow(image1); guidata(hObject,handles);

回答 (1 件)

Franchesca
Franchesca 2014 年 5 月 13 日
Can anybody help???

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by