Rotating a 3D CT Reconstruction Cube About an Axis
Show older comments
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)
Bjorn Gustavsson
on 30 Jan 2021
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
Matt J
on 30 Jan 2021
0 votes
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.
Categories
Find more on Surface and Mesh Plots 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!