code for get image in new axes from previuos axes
조회 수: 2 (최근 30일)
이전 댓글 표시
how to get image in new axes from previous axes for applying any operation (face detection) what is code for this?
댓글 수: 0
답변 (1개)
Image Analyst
2014년 6월 1일
I assume you want to do this in a function where you don't have the image array, otherwise it's a simple matter of calling axes() and imshow(), or use imshow() with the 'Parent' option. So see this first: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F to make sure you have the image array in the function you need it. Then call imshow(theImage, 'Parent', handles.newAxes).
댓글 수: 1
Image Analyst
2014년 6월 1일
You can also do something like
theImage = get(handles.oldAxes, 'CData');
axes(handles.newAxes);
imshow(theImage);
all in one function. Or try using getframe().
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!