﻿CvInvoke.cvGetAffineTransform Method (PointF[], PointF[], IntPtr)
http://www.emgu.com
Calculates the matrix of an affine transform such that: (x'_i,y'_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..2.

Namespace: Emgu.CV
Assembly: Emgu.CV (in Emgu.CV.dll) Version: 2.4.10.1935 (2.4.10.1935)

Syntax

C#
```public static IntPtr cvGetAffineTransform(
PointF[] src,
PointF[] dst,
IntPtr mapMatrix
)```
Visual Basic
```Public Shared Function cvGetAffineTransform (
src As PointF(),
dst As PointF(),
mapMatrix As IntPtr
) As IntPtr```
Visual C++
```public:
static IntPtr cvGetAffineTransform(
array<PointF>^ src,
array<PointF>^ dst,
IntPtr mapMatrix
)```
F#
```static member cvGetAffineTransform :
src : PointF[] *
dst : PointF[] *
mapMatrix : IntPtr -> IntPtr
```

Parameters

src
Type: array<System.Drawing..::..PointF>[]()[][]
Coordinates of 3 triangle vertices in the source image.
dst
Type: array<System.Drawing..::..PointF>[]()[][]
Coordinates of the 3 corresponding triangle vertices in the destination image
mapMatrix
Type: System..::..IntPtr
Pointer to the destination 2x3 matrix

Return Value

Type: IntPtr
Pointer to the destination 2x3 matrix