homography

How to check if obtained homography matrix is good?

不打扰是莪最后的温柔 提交于 2019-11-26 15:38:26
问题 This question was already asked, but I still don't get it. I obtain a homography matrix by calling cv::findHomography from a set of points. I need to check whether it's relevant or not. The proposed method is to calculate maximum reprojection error for inliers and compare it with a threshold. But after such filtration I keep getting insane transformations with object bounding box transforming to almost a straight line or some strange non-convex quadrangle, with self-intersections etc. What

Computing camera pose with homography matrix based on 4 coplanar points

怎甘沉沦 提交于 2019-11-26 11:40:28
I have 4 coplanar points in a video (or image) representing a quad (not necessarily a square or rectangle) and I would like to be able to display a virtual cube on top of them where the corners of the cube stand exactly on the corners of the video quad. Since the points are coplanar I can compute the homography between the corners of a unit square (i.e. [0,0] [0,1] [1,0] [1,1]) and the video coordinates of the quad. From this homography I should be able to compute a correct camera pose, i.e. [R|t] where R is a 3x3 rotation matrix and t is a 3x1 translation vector so that the virtual cube lies

Opencv virtually camera rotating/translating for bird's eye view

偶尔善良 提交于 2019-11-26 06:06:58
问题 I\'ve a calibrated camera where I exactly know the intrinsic and extrinsic data. Also the height of the camera is known. Now I want to virtually rotate the camera for getting a Bird\'s eye view, such that I can build the Homography matrix with the three rotation angles and the translation. I know that 2 points can be transformed from one image to another via Homography as x=K*(R-t*n/d)K^-1 * x\' there are a few things I\'d like to know now: if I want to bring back the image coordinate in ccs,

Computing camera pose with homography matrix based on 4 coplanar points

二次信任 提交于 2019-11-26 02:50:45
问题 I have 4 coplanar points in a video (or image) representing a quad (not necessarily a square or rectangle) and I would like to be able to display a virtual cube on top of them where the corners of the cube stand exactly on the corners of the video quad. Since the points are coplanar I can compute the homography between the corners of a unit square (i.e. [0,0] [0,1] [1,0] [1,1]) and the video coordinates of the quad. From this homography I should be able to compute a correct camera pose, i.e.