Loading...
Given a fundamental matrix F and a point x1=[x,y,1]T in image 1, compute the corresponding epipolar line l2 in image 2.
The epipolar line is computed as:
l2=F⋅x1
where l2=[a,b,c]T represents the line ax+by+c=0 in image 2.
Normalization: The line coefficients should be normalized so that:
a2+b2=1
This ensures the coefficients represent a proper line equation where c gives the signed distance from the origin to the line.
Epipolar lines are fundamental in stereo vision -- they constrain where a corresponding point can appear in the second image, reducing the search from 2D to 1D.
Round each coefficient to 4 decimal places.
F = [[0, 0, 0],
[0, 0, -1],
[0, 1, 0]]
x1 = [10, 20, 1][0.0, -1.0, 20.0]