how to display the images from m-file into GUI axes
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, i had a GUI with few buttons. I wish to display the sequences of images that i processed in my m-file function(myfunct.m) and show in one axes in gui.
For now, i able to process my images under a pushbutton by calling myfunct.m .. so i wish the images can display on gui's axes...thanks ..
% code
end% --- Executes on button press in START.
function START_Callback(hObject, eventdata, handles)
% hObject handle to START (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
myfunct();
imshow(img,'Parent',handles.axes1)------what should i do for this line???
댓글 수: 0
답변 (1개)
Image Analyst
2013년 3월 17일
That should work as long as you have some image stored in your "img" variable, like you got it from imread() or somewhere.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!