フィルターのクリア

How to plot 2 different images in two dfifferent axes.. with separate push buttons...

1 回表示 (過去 30 日間)
Subha
Subha 2013 年 12 月 24 日
コメント済み: Subha 2013 年 12 月 24 日
This my code where "fea_extract__openhouse" is my pgm... when i push the button i should load the image... but.. when i execute the pgm both images are displaying in the same axes... i dono whre i done the mistake...
if true
% % --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
fea_extract__openhouse
colormap(hsv(256))
handles.output = hObject;
handles.img=img;
handles.current_data = handles.img
image(handles.current_data)
% Update handles structure
guidata(hObject,handles)
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
support_3 % my pgm
colormap(hsv(256))
handles.axes2 = hObject;
handles.img6=img6;
handles.current_data = handles.img6
image(handles.current_data)
% Update handles structure
guidata(hObject, handles)
need help thank in advance

採用された回答

Image Analyst
Image Analyst 2013 年 12 月 24 日
Get rid of most of that stuff and simply have
axes(handles.axes1); % or axes2 - wherever you want it to appear.
imshow(img); % You must get img or img6 somehow, which you are not.
colormap(hsv(256));

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by