Rotating a 3D CT Reconstruction Cube About an Axis

I have a cube (170x170x182) of a reconstructed CT (double). I am trying to rotate the volume about it's z axis a few degrees (it is a cylinder). Everything I've looked up (imrotate, rotate, making rotation transformation matrices, etc.) and tried hasn't worked for various reasons and I'm not sure this should be such a complicated process? Any help much appreciated!
edit: when using rotate, which seems the best option, I receive error: H must contain axes children only

Answers (2)

If you are displaying the 3D-reconstruction in a 3-D axes, like you would with slice, then you can simply change to rotation of the display with the view function:
view(12,23) % ETC
If you want to rotate the actual reconstruction, I'd go with interp3, or interpn.
HTH
Everything I've looked up (imrotate, rotate, making rotation transformation matrices, etc.) and tried hasn't worked for various reasons and I'm not sure this should be such a complicated process?
It shouldn't be. imrotate() is exactly the thing to use.

Products

Release

R2020a

Asked:

on 29 Jan 2021

Answered:

on 30 Jan 2021

Community Treasure Hunt

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

Start Hunting!