How to rotate 3D Image/ 3D Matrix respect to its y-axis by 35 degree?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello,
my problem is this:
I have an 3D-Image (an 176x176x200 matrix)
this matrix has to be rotated around the y-axis by an ~35° angle. Could anyone please let me know how it can be done without using image processing toolbox?
Would the following code work?
theta= 35
ry= [ cos(theta) 0 sin(theta); 0 1 0; -sin(theta) 0 cos(theta)];
for i= 0:176
newimg= ry.* img(:,i,:)
end
3 件のコメント
Matt J
2018 年 11 月 19 日
This FEX submission claims to be able to do volume transformations without the image processing toolbox.
Matt J
2018 年 11 月 20 日
harrynecek's comment moved here:
Hello JB B. I assume you are analyzing hyperspectral data? I would like to do similar thing to my data - rotate and crop it. I have a nice script for cropping it but i have no idea how to rotate it.
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!