Is there a way to input direction in matlab UI

1 visualización (últimos 30 días)
xiaojuezi el 10 de Ag. de 2020
Comentada: Walter Roberson el 11 de Ag. de 2020
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 comentarios
Walter Roberson
Walter Roberson el 11 de Ag. de 2020
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.

Iniciar sesión para comentar.

Respuestas (0)


Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.


Community Treasure Hunt

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

Start Hunting!

Translated by