use Levenberg-marquist method to affine homography