[][src]Function opencv::imgproc::get_affine_transform_slice

pub fn get_affine_transform_slice(
    src: &[Point2f],
    dst: &[Point2f]
) -> Result<Mat>

Calculates an affine transform from three pairs of the corresponding points.

The function calculates the inline formula matrix of an affine transform so that:

block formula

where

block formula

Parameters

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

See also

warpAffine, transform