필터 지우기
필터 지우기

How do I get a cursor location in a pcshow figure?

조회 수: 1 (최근 30일)
Sean Walsh
Sean Walsh 2017년 5월 26일
편집: Sean Walsh 2017년 6월 2일
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?

채택된 답변

J Philps
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
Walter Roberson
Walter Roberson 2017년 6월 1일
The space before the |(| can cause problems for the parser.
Sean Walsh
Sean Walsh 2017년 6월 2일
ah that was my mistake when writing it out I was testing without the space before the (

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Point Cloud Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by