CvInvokeGetPerspectiveTransform Method (PointF, PointF) |
http://www.emgu.com
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: 3.0.0.2161 (3.0.0.2161)
Syntaxpublic static Mat GetPerspectiveTransform(
PointF[] src,
PointF[] dest
)
Public Shared Function GetPerspectiveTransform (
src As PointF(),
dest As PointF()
) As Mat
public:
static Mat^ GetPerspectiveTransform(
array<PointF>^ src,
array<PointF>^ dest
)
static member GetPerspectiveTransform :
src : PointF[] *
dest : PointF[] -> Mat
Parameters
- src
- Type: System.DrawingPointF
Coordinates of 4 quadrangle vertices in the source image - dest
- Type: System.DrawingPointF
Coordinates of the 4 corresponding quadrangle vertices in the destination image
Return Value
Type:
MatThe 3x3 Homography matrix
See Also