Emgu.CV.CameraCalibration.GetAffineTransform C# (CSharp) Метод

GetAffineTransform() публичный статический Метод

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.
public static GetAffineTransform ( PointF src, PointF dest ) : RotationMatrix2D
src System.Drawing.PointF Coordinates of 3 triangle vertices in the source image. If the array contains more than 3 points, only the first 3 will be used
dest System.Drawing.PointF Coordinates of the 3 corresponding triangle vertices in the destination image. If the array contains more than 3 points, only the first 3 will be used
Результат RotationMatrix2D
        public static RotationMatrix2D<double> GetAffineTransform(PointF[] src, PointF[] dest)
        {
            Debug.Assert(src.Length >= 3, "The source should contain at least 3 points");
             Debug.Assert(dest.Length >= 3, "The destination should contain at least 3 points");

             RotationMatrix2D<double> rot = new RotationMatrix2D<double>();
             CvInvoke.cvGetAffineTransform(src, dest, rot);
             return rot;
        }