My button's callback func. is called "identifyImageReferences_Callback" and my gui script is called "mainGUI".
Error using matlab.graphics.primitive.Line/set
Invalid or deleted object.
Error in wingedRect/setModeInvariantObjVisible (line 170)
set(h_wing_line,'Visible',onOff);
Error in wingedRect/setVisible (line 150)
setModeInvariantObjVisible('on');
Error in imrect>imrectAPI/placeRect (line 360)
draw_api.setVisible(true);
Error in manageInteractivePlacement/buttonDownPlaceObject
(line 211)
completed = placementFcn(x_init,y_init);
Error in iptaddcallback/callbackProcessor (line 149)
fun(varargin{:});
Error using uiwait (line 81)
Error while evaluating Figure WindowButtonDownFcn.
Index exceeds array bounds.
Error in wingedRect/updateView (line 189)
x_side_markers = [position(1),
position(1)+position(3)/2,...
Error in imrect>imrectAPI/updateView (line 444)
draw_api.updateView(pos);
Error in imrect>imrectAPI (line 312)
updateView(position);
Error in imrect (line 82)
[h_group,draw_api] = imrectAPI(varargin{:});
Error in iptui.imcropRect (line 32)
obj =
obj@imrect(parent,position,'positionConstraintFcn',snapToPixelsFcn);
Error in imcrop>interactiveCrop (line 356)
h_rect = iptui.imcropRect(hAx,[],h_image);
Error in imcrop>parseInputs (line 236)
[spatial_rect,h_image,placement_cancelled] =
interactiveCrop(gcf);
Error in imcrop (line 93)
[x,y,a,cm,spatial_rect,h_image,placement_cancelled] =
parseInputs(varargin{:});
Error in identifyImageReferences (line 14)
[~,nerveCrop] =
imcrop(handles.figure1.UserData.AdjustedImage);
Error in mainGUI>button_IdentifyImageReferences_Callback (line
374)
identifyImageReferences(handles);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in mainGUI (line 41)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)main
GUI('button_IdentifyImageReferences_Callback',hObject,eventdata,guidat
a(hObject))
Error while evaluating UIControl Callback.