Tilt a 2D image within a 3D space?

6 次查看(过去 30 天)
nadine
nadine 2012-12-12
Hello, The images i have need to be "tiltable", which means, Id like to display them and then via mouse reposition the camera/ Viewpoint. I do not want to rotate the image, but only change its elevation (?I guess?). Im thinking of using the view function.. if that is correct, would somebody be able to give me an example of how to do this? Greetings,nad
  4 个评论
Jürgen
Jürgen 2012-12-13
So, no I am not German, :-) rather Belgian, close but no cigar :-) => Does the fucntion that Matt proposed do what you need?
nadine
nadine 2012-12-21
Hi no, it doesnt help so far. I guess I need to plot somewhat of an horizontal axis in the middle of the image. Then get the image to rotate around that. Is it clear what i am asking for though? The image should stay 2d, it has a reason, its supposed to be an effect later on. Since this is for medical imaging... maybe another idea? Thanks so far!

请先登录,再进行评论。

回答(2 个)

Matt J
Matt J 2012-12-12
  1 个评论
nadine
nadine 2012-12-12
Thank you for the link, have problems opening it... but will keep on trying

请先登录,再进行评论。


Bjorn Gustavsson
Bjorn Gustavsson 2012-12-21
This file exchange submission should let you wrap an image to any flat surface: http://www.mathworks.se/matlabcentral/fileexchange/3777-tcolor-a-fast-pcolor-that-likes-rgb-images
Then you can use the regular zoom and rotate functionalities of the ordinary matlab figure window. Further, you should have no problems modifying this function to also include a vertical component of the surface you want to wrap the image onto.
HTH

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for USB Webcams 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by