calculate a affine transformation matrix from two set of landmarks

calculateAffineMatrixFromLandmarks(source_df, target_df)

Arguments

source_df

source landmarks, two columns, first column represent x coordinate and second column represent y coordinate.

target_df

target landmarks, two columns, first column represent x coordinate and second column represent y coordinate.

Value

a 3 by 3 matrix with the third row close to (0,0,1)