code for get image in new axes from previuos axes

조회 수: 2 (최근 30일)
reema
reema 2014년 6월 1일
댓글: Image Analyst 2014년 6월 1일
how to get image in new axes from previous axes for applying any operation (face detection) what is code for this?

답변 (1개)

Image Analyst
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
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 CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by