Cv2EstimateRigidTransform Method
|
Estimates the best-fit Euqcidean, similarity, affine or perspective transformation
that maps one 2D point set to another or one image to another.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static Mat EstimateRigidTransform(
InputArray src,
InputArray dst,
bool fullAffine
)
Public Shared Function EstimateRigidTransform (
src As InputArray,
dst As InputArray,
fullAffine As Boolean
) As Mat
public:
static Mat^ EstimateRigidTransform(
InputArray^ src,
InputArray^ dst,
bool fullAffine
)
static member EstimateRigidTransform :
src : InputArray *
dst : InputArray *
fullAffine : bool -> Mat
OpenCvSharp.Cv2.EstimateRigidTransform = function(src, dst, fullAffine);
Parameters
- src
- Type: OpenCvSharpInputArray
First input 2D point set stored in std::vector or Mat, or an image stored in Mat. - dst
- Type: OpenCvSharpInputArray
Second input 2D point set of the same size and the same type as A, or another image. - fullAffine
- Type: SystemBoolean
If true, the function finds an optimal affine transformation with no additional restrictions (6 degrees of freedom).
Otherwise, the class of transformations to choose from is limited to combinations of translation, rotation, and uniform scaling (5 degrees of freedom).
Return Value
Type:
Mat
See Also