如何使用GUIDE - MatLab将imtool3D合并到个人GUI的轴上

时间:2015-09-23 09:32:15

标签: user-interface matlab-guide

我正在尝试将imtool3D功能合并到我的个人GUI中。但是,如果我点击按钮,下面有这个代码:

axes(handles.axes1);

imtool3D([],[],handles.axes1);

MatLab发出错误:

Error using uipanel
While setting the 'Parent' property of Panel:
Axes cannot be a parent.

Error in imtool3D (line 251)
            tool.handles.Panels.Large   =   uipanel(tool.handles.fig,'Position',position,'Title','','Tag','imtool3D');
            set(tool.handles.Panels.Large,'Units','Pixels'); pos=get(tool.handles.Panels.Large,'Position');
            set(tool.handles.Panels.Large,'Units','normalized');

Error in image_registration>pushbutton3_Callback (line 106)
imtool3D([],[],handles.axes1);

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in image_registration (line 42)
    gui_mainfcn(gui_State, varargin{:});

Error in @(hObject,eventdata)image_registration('pushbutton3_Callback',hObject,eventdata,guidata(hObject))


Error while evaluating UIControl Callback

1 个答案:

答案 0 :(得分:0)

imtool3D需要放入面板或图中。它不能放入轴。