[−][src]Function opencv::calib3d::compute_correspond_epilines
pub fn compute_correspond_epilines(
points: &dyn ToInputArray,
which_image: i32,
f: &dyn ToInputArray,
lines: &mut dyn ToOutputArray
) -> Result<()>
For points in an image of a stereo pair, computes the corresponding epilines in the other image.
Parameters
- points: Input points. or matrix of type CV_32FC2 or vector<Point2f> .
- whichImage: Index of the image (1 or 2) that contains the points .
- F: Fundamental matrix that can be estimated using findFundamentalMat or stereoRectify .
- lines: Output vector of the epipolar lines corresponding to the points in the other image. Each line is encoded by 3 numbers .
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 findFundamentalMat ), line in the second image for the point in the first image (when whichImage=1 ) is computed as:
And vice versa, when whichImage=2, is computed from as:
Line coefficients are defined up to a scale. They are normalized so that .