필터 지우기
필터 지우기

Is there a way to input direction in matlab UI

조회 수: 2 (최근 30일)
xiaojuezi
xiaojuezi 2020년 8월 10일
댓글: Walter Roberson 2020년 8월 11일
Hi, I would like to let users to click on an image and input the normal vector of the pixel. Is there a way to let the users input the direction elegantly? For example a sphere for users to rotate or something like that?
Thank you very much.
  댓글 수: 6
Rik
Rik 2020년 8월 11일
Those two are the inverse of eachother, so if you have a separate axes with the arrow, you can rotate that view until it is correct and translate the camera postition back to the rotation you would need to apply to the arrow.
Walter Roberson
Walter Roberson 2020년 8월 11일
When you put up an axes (possibly in a separate figure) with just an arrow, then adjusting the view is the same thing as adjusting the arrow angle. Eventually you read off the view() of that axes and use it as the data you wanted about the normal vector of pixel.
I would not say that this is a great way, but it has the advantage of being intuitive to anyone who has used the existing rotate3d tool, and should be easy to code.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by