3D roataion of image (jpg image)
显示 更早的评论
Dear All,
How can I rotate in 3D the jpg image in Matlab. The imrotate does it only in 2D? I found the rotate function and 3D rotate, but I don't know could I use these 2 functions for this problem! Thank You in advance!
Laslo
采纳的回答
更多回答(2 个)
Chandra Kurniawan
2012-1-25
Hi, I have read your message to my email.
I see your problem.
Imrotate cannot rotate an image in z - direction.
Please try imtransform instead.
Maybe this helps.
Eq:
I = imread('football.jpg');
Dorig = [0 0; 1 0; 1 1; 0 1];
Dtrans = [-4 2; -8 -3; -3 -5; 6 3];
tform = maketform('projective',Dorig,Dtrans);
B = imtransform(I,tform,'udata',[0 1],'vdata',[0 1],'size',size(I));
imshow(B);

Walter Roberson
2012-6-16
编辑:John Kelly
2015-3-12
0 个投票
If you want to be able to rotate an image dynamically, then you need to create it as a texture map.
类别
在 帮助中心 和 File Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!