フィルターのクリア

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 Center および File ExchangeSubplots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by