Turn a 2D Image into a rotating 3D image on Matlab

10 views (last 30 days)
Hi everybody,
I would like to know how to rotate a 2D image along its Z-axis using Matlab R2016b and to obtain an image after performing this procedure.
For example, let's take this 2D image:
Now, I rotate it of 45° roughly:
And now, of 90°:
Do you know if it is possible to perform the same operation in Matlab R2016b, please ?
Thank you very much for your help
Images Source: https://www.youtube.com/watch?v=m89mVexWQZ4

Accepted Answer

Walter Roberson
Walter Roberson on 9 Jan 2017
Texture map your image onto a flat plane. Then rotate the plane.
For example you could put the plane into a hgtransform; see http://blogs.mathworks.com/graphics/2014/10/28/makingthingsmove/
  3 Comments
Walter Roberson
Walter Roberson on 9 Jan 2017
It is tempting to just parent image() or imshow() to a hgtransform and rotate. That will not work, however: image() creates 2D objects that vanish when viewed at even modest angles.

Sign in to comment.

More Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!