You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like the way how to get Fundamental Matrix from this paper is very similar with the method from " 9.2.2 Algebraic derivation from the book, Multiple View Geometry(2nd edition)" or the method from "https://sourishghosh.com/2016/fundamental-matrix-from-camera-matrices/".
According to the source code from the blog, I tried to compute Fundamental Matrix, but the result is different from the value of 'pairs_with_gt.txt'.
I use relative rotation, translation on R and t. And in the case of 'KITTI dataset', because all the camera intrinsic is same, so K1 and K2 are same.
Below is the octave code from the blog:
function ret = computeF(K1, K2, R, t) A = K1 * R' * t C = [0 -A(3) A(2); A(3) 0 -A(1); -A(2) A(1) 0] ret = (inverse(K2))' * R * K1' * C endfunction
For example, In the first line of pairs_with_gt.txt in KITTI dataset, Image matching pair is '0' and '5'.
So, my rotation and translation values for left camera are from the 0th line of poses.txt,
and the values for right camera are from the 5th line of poses.txt.
And I compute relative pose like below:
Relative Rotation : (R_left)inv * R_right
Relative Translation : (R_left) * (T_right - T_left)
or
Relative Pose : (Pose_left)inv * Pose_right then get Relative Rotation and Relative Translation from that Relative Pose matrix.
After that, I just put proper value on (inverse(K2))' * R * K1' * C. But the result is different from Ground Truth.
Ground truth (In KITTI, between image 0 and image 5) :
[-1.04297e+04, 2.98104e+06, -4.91357e+08, -2.98109e+06, -1.06854e+04, 1.77879e+09, 5.02479e+08, -1.76782e+09, -4.45117e+09]
Computed Value(In KITTI, between image 0 and image 5) :
[2.08603942e-02, -5.96233429e+00, 9.82758593e+02, 5.96244302e+00, 2.13717526e-02, -3.55774622e+03, -1.00499811e+03, 3.53580415e+03, 8.90074768e+03]
Is there any problem on my code implementation?
The text was updated successfully, but these errors were encountered:
It seems like the way how to get Fundamental Matrix from this paper is very similar with the method from " 9.2.2 Algebraic derivation from the book, Multiple View Geometry(2nd edition)" or the method from "https://sourishghosh.com/2016/fundamental-matrix-from-camera-matrices/".
According to the source code from the blog, I tried to compute Fundamental Matrix, but the result is different from the value of 'pairs_with_gt.txt'.
I use relative rotation, translation on R and t. And in the case of 'KITTI dataset', because all the camera intrinsic is same, so K1 and K2 are same.
Below is the octave code from the blog:
function ret = computeF(K1, K2, R, t) A = K1 * R' * t C = [0 -A(3) A(2); A(3) 0 -A(1); -A(2) A(1) 0] ret = (inverse(K2))' * R * K1' * C endfunction
For example, In the first line of pairs_with_gt.txt in KITTI dataset, Image matching pair is '0' and '5'.
So, my rotation and translation values for left camera are from the 0th line of poses.txt,
and the values for right camera are from the 5th line of poses.txt.
And I compute relative pose like below:
Relative Rotation : (R_left)inv * R_right
Relative Translation : (R_left) * (T_right - T_left)
or
Relative Pose : (Pose_left)inv * Pose_right then get Relative Rotation and Relative Translation from that Relative Pose matrix.
After that, I just put proper value on (inverse(K2))' * R * K1' * C. But the result is different from Ground Truth.
Ground truth (In KITTI, between image 0 and image 5) :
[-1.04297e+04, 2.98104e+06, -4.91357e+08, -2.98109e+06, -1.06854e+04, 1.77879e+09, 5.02479e+08, -1.76782e+09, -4.45117e+09]
Computed Value(In KITTI, between image 0 and image 5) :
[2.08603942e-02, -5.96233429e+00, 9.82758593e+02, 5.96244302e+00, 2.13717526e-02, -3.55774622e+03, -1.00499811e+03, 3.53580415e+03, 8.90074768e+03]
Is there any problem on my code implementation?
The text was updated successfully, but these errors were encountered: