【发布时间】:2017-09-09 07:54:08
【问题描述】:
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)
f=imread('/Users/MoChutima/Desktop/WORK1:2560/ImageProcess/dip/dip/baboon.jpg');
Tscale = [handles.sx 0 0; 0 handles.sy 0; 0 0 1];
Trotation = [cos(handles.theta) sin(handles.theta) 0; -sin(handles.theta) cos(handles.theta) 0; 0 0 1];
Tshear = [1 handles.shx 0; handles.shy 1 0; 0 0 1];
T=Tscale*Trotation*Tshear;
tform=maketform('affine',T);
g=imtransform(f,tform,'bilinear');
imshow(g);
我有错误
Error in Workex63>pushbutton1_Callback (line 82)
Tscale = [handles.Sx 0 0; 0 handles.Sy 0; 0 0 1];
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in Workex63 (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)Workex63('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
评估 UIControl 回调时出错
我在 GUI 中做几何,我想创建滑块并编辑文本以填充剪切 X、Y 缩放 X、Y 的数量,但现在我无法加载图片进行处理。
谢谢
【问题讨论】:
-
您好,欢迎来到 SO!我们在这里帮助您编写更好的代码。正如目前所说,我们几乎不可能重现您的问题,因此您可能不会收到很多回复。此外,它看起来更像是直接复制粘贴您的代码+输出,而不应用标准调试技术,这通常不是我们在这里所做的。请阅读有关如何编写minimal working example 和what kinds of questions you can ask here 的常见问题解答。
标签: matlab matlab-guide