calculates matrix of perspective transform such that:
(t_i x'_i,t_i y'_i,t_i)^T=map_matrix (x_i,y_i,1)^T
where dst(i)=(x'_i,y'_i), src(i)=(x_i,y_i), i=0..3.
Namespace:
Emgu.CVAssembly: Emgu.CV (in Emgu.CV.dll) Version: 2.1.0.649 (2.1.0.649)
Syntax
C# | Visual Basic | Visual C++ |
public static HomographyMatrix GetPerspectiveTransform( PointF[] src, PointF[] dest )
Public Shared Function GetPerspectiveTransform ( _ src As PointF(), _ dest As PointF() _ ) As HomographyMatrix
public: static HomographyMatrix^ GetPerspectiveTransform( array<PointF>^ src, array<PointF>^ dest )
Parameters
- src
- array<
PointF
>[]()[]
Coordinates of 4 quadrangle vertices in the source image
- dest
- array<
PointF
>[]()[]
Coordinates of the 4 corresponding quadrangle vertices in the destination image