[][src]Function opencv::imgproc::get_perspective_transform

pub fn get_perspective_transform(
    src: &dyn ToInputArray,
    dst: &dyn ToInputArray
) -> Result<Mat>

Calculates a perspective transform from four pairs of the corresponding points.

The function calculates the inline formula matrix of a perspective transform so that:

block formula

where

block formula

Parameters

  • src: Coordinates of quadrangle vertices in the source image.
  • dst: Coordinates of the corresponding quadrangle vertices in the destination image.

See also

findHomography, warpPerspective, perspectiveTransform