The returned transformation matrix represents the transformation from the coordinate system of the unaligned image into the coordinate system of the model (template) image. The origin of each of the coordinate systems is the top left corner of the image.
Inverting the TransformationTo get a matrix representing the mapping from the coordinate system of the model image to the coordinate system of the filled image, you must compute the inverse of the transformation matrix. To compute the inverse of this transformation, use the System.Drawing.Drawing2D.Matrix.Inverse() method. This will modify the transformation matrix so that it represents the transformation from the coordinate system of the template image to the coordinate system of the unaligned image.
Using the Transformation to Compute Field Locations in the Filled ImageTo compute the location of a field (as defined by a set of four points) in the unaligned image, first compute the inverse of the affine transformation matrix. Then use the System.Drawing.Drawing2D.Matrix.TransformPoints(Point[] points) method to apply the transform to an array of points.