Apparent bug when images.ROI is placed within an hggroup
1 次查看(过去 30 天)
显示 更早的评论
I need to place an ROI within a Graphic Group:
clf
axis([0 10 0 10])
g = hggroup(gca);
images.roi.Circle(g,'Center',[4 5],'Radius',3)
The ROI appears fine on the figure. It can also be dragged just fine.
However, upon trying to resize the ROI with the mouse, I am getting:
Warning: Error occurred while executing the listener callback for event WindowMouseMotion
defined for class matlab.ui.Figure:
Unrecognized method, property, or field 'XDir' for class 'matlab.graphics.primitive.Group'.
Error in images.roi.Circle/setPointerEnterFcn
Error in images.roi.internal.IPTROIPointerManager/motionCallback
Error in images.roi.internal.IPTROIPointerManager>@(src,evt)self.motionCallback(src,evt)
This seems like a bug.
Any thoughts for a work around that will allow placing ROIs within graphic groups?
0 个评论
采纳的回答
Vimal Rathod
2020-2-4
编辑:Vimal Rathod
2020-2-4
I have heard that this issue is known to the concerned developers and the issue will be resolved in 2020a release. As a work around for your usecase or for any generic ROI grouping cases, you could parent the ROIs directly to the axes and "group" them by using the ROI's "Tag" property. You can then find the grouped ROIs by using findobj with that specific tag.
Refer the following link to know more about how to use findobj function.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!