I found the methods in opencv that can do this. I have not used it but it is described with examples here: https://docs.opencv.org/master/d9/dab/tutorial_homography.html and can used with matlab like described here: https://kyamagu.github.io/mexopencv/matlab/decomposeHomographyMat.html
Extract rotations about all three axes from 2d projective transformation
1 次查看(过去 30 天)
显示 更早的评论
Hi
I have estimated a 2-D projective transformation matrix https://se.mathworks.com/help/images/ref/projective2d.html using https://se.mathworks.com/help/images/ref/fitgeotrans.html:
tform = fitgeotrans(imagePoints1,worldPoints,'projective');
Where imagePoints1 (u,v) and worldPoints (x,y) are two sets of points that are related by:
The matrix tform
[x y 1] = [u v 1] * tform
where tform has the form:
[a b c;...
d e f;...
g h i];
the points (u, v) comes from detecting corners of a (plane) checkerboard in an image I have aquireded. The points (x,y) are the points location in coordinates lying in the checkerboard plane. I would like to estimate the orientation of the camera relative to the checkerboard (rotations about the x, y, and z axes). Can this be done using tform and can someone suggest how to do this?
Best regards,
Brian
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Point Cloud Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!