필터 지우기
필터 지우기

Question on 2D projective transformation

조회 수: 2 (최근 30일)
Michael
Michael 2021년 2월 5일
댓글: Michael 2021년 9월 21일
The help page on Matrix Representation of geometric tranformations, under 2D projective transformations states that in the transformation matrix
[1 0 E; 0 1 F; 0 0 1]
That E and F influence the vanishing point. These seem to emulate rotating the image around the x or y axis if this were a 3D object being rotated. So if I take an image of a dot grid, e.g.
And I perform the following
t = [1 0 .002; 0 1 0; 0 0 1]
tform = projective2d(t);
outImg = imwarp(im,tform);
I get this image as a result
So if my x axis were left/right and y axis up/down this seems to rotate around the y axis. I would like to control the angle of rotation, what exactly does .002 represent here? What I'd like to do is simulate rotating this image, say 3 degrees around the y axis.
  댓글 수: 2
Meriem Chetmi
Meriem Chetmi 2021년 9월 21일
Hello,
did you maybe find the relation between the rotation angles and these E , F parameters? I'm facing the same problem
Thank you
Michael
Michael 2021년 9월 21일
Hi, I did not look into this any further. My goal was to create images while simulating rotation around the x,y,z axis. I ended up doing this with the OpenCV function WarpPerspective.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile 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!

Translated by