我意识到应用程序设计器不支持交互式图形操作,但我想知道是否可以打开一个单独的图形窗口(不是 UI 窗口)并在其上显示我的图形,以便我仍然可以获得鼠标点击的位置。目前,下面的代码在我的 GUI 上显示该图,然后打开另一个记录我的鼠标点击的空白图。这很好,但我还需要在新窗口中显示该图形,并且在这样做时遇到了麻烦。
first frame = vid(:,:,:,1);
imshow(firstframe,'Parent',app.UIAxes);
[centers_X centers_Y]=getpts;