필터 지우기
필터 지우기

help with impoly error

조회 수: 1 (최근 30일)
Jim O'Doherty
Jim O'Doherty 2013년 1월 22일
댓글: Peyman Obeidy 2017년 3월 30일
Hello,
I've recently been developing a GUI, which worked fine until Matlab crashed while running an unrelated code. A section of my code which allows a user to draw a ROI no longer works and reports an error with my impoly call (worked perfectly before Matlab crashed):
function cb(src,evt)
handles = guidata(src); %# import the data from the object
images=handles.images;
start = handles.view_slice;
last = handles.slices;
imshow(images(:,:,start),[])
h=impoly;
position = getPosition(h);
The error I now get is:
Error using hittest
Invalid object handle
Error in imshared.ipthittest (line 33)
h = hittest(hFigure, currentPoint);
Error in findLowestManagedObject (line 14)
hit_obj =
imshared.ipthittest(hFigure,buttonMotionEvent.currentPoint);
Error in iptPointerManager>createPointerManager/updatePointer
(line 334)
overMe =
findLowestManagedObject(hFigure,mouseMotionEvent);
Error in
iptPointerManager>createPointerManager/enablePointerManager (line
259)
updatePointer(figHandle, evt);
Error in iptPointerManager (line 72)
pointerManager.API.enable();
Error in manageInteractivePlacement (line 76)
iptPointerManager(h_fig,'Enable');
Error in impoly>impolyAPI (line 245)
placement_aborted =
manageInteractivePlacement(h_axes,h_group,@placePolygon,@buttonUpPlacement);
Error in impoly (line 97)
[h_group,draw_api] = impolyAPI(varargin{:});
Error in volume_scan>cb (line 288)
h=impoly;
Error while evaluating uitoggletool OnCallback
Apart from this not working, there is other weirdness including text stuck in a table on GUIDE (which I cannot remove) and a checkbox text which keeps defaulting to the 3rd option
Anybody got any ideas? Is there a crash file somewhere that needs to be reset/removed? I'm using 2012b.
Thanks, Jim
  댓글 수: 1
Peyman Obeidy
Peyman Obeidy 2017년 3월 30일
I have the same problem with 2017a

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by