第一次通过傅里叶变换极坐标比对拿到旋转角与缩放
第二次通过直角坐标系比对得到平移量
RotatedRect LogPolarFFTTemplateMatch(Mat& im0, Mat& im1, double canny_threshold1, double canny_threshold2)
{
// Accept 1 or 3 channel CV_8U, CV_32F or CV_64F images.
CV_Assert((im0.type() == CV_8UC1) || (im0.type() == CV_8UC3) ||
(im0.type() == CV_32FC1) || (im0.type() == CV_32FC3) ||
(im0.type() == CV_64FC1) || (im0.type() == CV_64FC3));
//CV_Assert(im0.rows == im1.rows && im0.cols == im1.cols);
CV_Assert(im0.channels() == 1 || im0.channels() == 3 || im0.channels() == 4);
CV_Assert(im1.channels() == 1 || im1.channels() =&#