The preceding code assumes we have the triangle vertices packed in the srcTri array
and the destination one packed in the dstTri array. The 2 x 3 warp_mat matrix is
used to get the affine transformation from the source triangles to the destination ones.
More information can be quoted from OpenCV's cvGetAffineTransform documentation: