void MainWindow::Test_WarpPolar_P91_C3_39()
{
Mat img = imread("dial.png");
if(!img.data)
{
cout << "Fail to open image!" << endl;
return;
}
Mat img1, img2;
Point2f center = Point2f(img.cols / 2, img.rows / 2);
warpPolar(img, img1, Size(300, 600), center, center.x, INTER_LINEAR + WARP_POLAR_LINEAR);
warpPolar(img1, img2, Size(img.rows, img.cols), center, center.x, INTER_LINEAR + WARP_POLAR_LINEAR +WARP_INVERSE_MAP);
//displayMat(img);
displayMat(img1);
//displayMat(img2);
//imshow("original image", img);
//imshow("image1", img1);
//imshow("image2", img2);
return;
}