How do i save .avi file imported through a GUI into a variable so it can be played?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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);
0 Commenti
Risposte (1)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!