MATLAB File Help: cv.computeCorrespondEpilines Index
cv.computeCorrespondEpilines

For points in an image of a stereo pair, computes the corresponding epilines in the other image

lines = cv.computeCorrespondEpilines(points, F)
[...] = cv.computeCorrespondEpilines(..., 'OptionName', optionValue, ...)

Input

Output

Options

For every point in one of the two images of a stereo pair, the function finds the equation of the corresponding epipolar line in the other image.

From the fundamental matrix definition (see cv.findFundamentalMat), line l_i^(2) in the second image for the point p_i^(1) in the first image (when WhichImage=1) is computed as:

l_i^(2) = F * p_i^(1)

And vice versa, when WhichImage=2, l_i^(1) is computed from p_i^(2) as:

l_i^(1) = F^T * p_i^(2)

Line coefficients are defined up to a scale. They are normalized so that a_i^2 + b_i^2 = 1.

See also