How can I rotate a volshow image programatically?
18 次查看(过去 30 天)
显示 更早的评论
Hi!
I have a volshow image of a brain and I want to rotate it programatically (and then use getframe to write a video with writeVideo).
I tried using CameraPosition and CameraDirection of the Viewer3D parent object, but I have no clue how these work (and whether I need to move LightPosition with the camera). It seems highly complicated to move the camera around the brain like this. Is there an easier way to do that? Can I rotate the volume instead of the camera?
2 个评论
Image Analyst
2024-5-23
Did you want to just rotate the data and axes together, like with view, or did you (for some reason) want to rotate the volume within the fixed axes (keep axes and viewing angle fixed)?
采纳的回答
Matt J
2024-5-23
Can I rotate the volume instead of the camera?
I tried using CameraPosition and CameraDirection of the Viewer3D parent object, but I have no clue how these work
They don't work. You don't have camera properties in a volume rendering such as what you have in a 3D plot.
2 个评论
Matt J
2024-5-23
You're quite welcome, but please Accept-click the answer to indicate that it addressed your problem.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Basic Display 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!