Problem with loading a fig file containing IMROI's (and ancestor handles?)
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello Everyone,
I created a GUI that which saves its setting by saving as a .fig file (hgsave or savefig). However Im noticing a weird error where if the figure in the GUI contains any IMROI objects (such as imellipse) then after reloading the figure (hgload or loadfig) then I can no longer use any Imroi functions in that figure (I cant create/delete imroi objects or use their functions). The error that I get is 'Error using hittest Invalid object handle'. I have done some digging around and found that there is a crucial line in ellipseSymbol: h_fig = iptancestor(h_axes,'figure'); Where (Im guessing)it gets an invalid handle of the 'original' figure that created it (before reloading). If I change this line to h_fig = gcf; then it works just fine.
I cannot find any documentation on this iptancestor property and therefore am at a loss how to fix this.
Can anybody help me along with this? Is there maybe a way to 'reset' this ancestor property? Any help is appreciated
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!