Transform

Function Usage

Calculates the affine transformation matrix.

Prototype

1
cv::Mat SimilarityTransform::Transform(const std::vector<cv::Point2f> &srcPoint, const std::vector<cv::Point2f> &dstPoint) const

Parameters

Parameter

Input/Output

Description

srcPoint

Input

Array before conversion. The number of points in the vector cannot exceed 10000, and the coordinate range is [0, 8192].

dstPoint

Input

Array after conversion.

The length must be the same as that of srcPoint. The number of points in the vector cannot exceed 10000, and the coordinate range is [0, 8192].

Response Parameters

Data Structure

Description

cv::Mat

Returned affine transformation matrix.