matlab 3d投影图像

时间:2014-09-10 15:22:58

标签: image matlab projection

我正在进行图像3D投影,但是当我使用iwarp函数时,结果是一个多维矩阵,我正在使用:

color1 = imread('color1.jpg') % 480x640x3 image RBG

%4X4 projection matrix
Mx = makehgtform('xrotate',-0.01970);
My = makehgtform('yrotate',0.01729);
Mz = makehgtform('zrotate',-0.00717);
M = Mx*My*Mz;
M(1,4) = -28.54007;
M(2,4) = -2.00470;
M(3,4) = 4.37353;
T = affine3d(M);
%Do transform
Color_Rectified = imwarp(color1,T); %485X644x24 

最后,Color_Rectified大小为485X644x24,想法是在X,Y,Z和RGB中旋转/翻译图像,怎么做?

0 个答案:

没有答案