How do I get a cursor location in a pcshow figure?
2 次查看(过去 30 天)
显示 更早的评论
Here is what I'm trying to do:
pcshow(PC);
set(gcf, 'WindowButtonDownFcn', {@getclicklocation, PC});
However, I end up with the error "Warning: Setting the "WindowButtonDownFcn" property is not permitted while this mode is active."
Does the pcshow function not allow for interaction?
0 个评论
采纳的回答
J Philps
2017-5-31
The reason for this warning is that, by default, the pcshow plot turns the 'Rotate3D' setting on (so that you can view the point cloud easily). You can turn this setting off, and you will no longer receive that warning. Your new code could look like this:
pcshow(PC);
rotate3d off;
set(gcf, 'WindowButtonDownFcn', {@getclicklocation, PC});
3 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Point Cloud Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!