|
|
@ -1657,14 +1657,14 @@ TEST(Imgproc_Warp, multichannel) |
|
|
|
TEST(Imgproc_GetAffineTransform, singularity) |
|
|
|
TEST(Imgproc_GetAffineTransform, singularity) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Point2f A_sample[3]; |
|
|
|
Point2f A_sample[3]; |
|
|
|
A_sample[0] = cv::Point2f(8, 9); |
|
|
|
A_sample[0] = Point2f(8.f, 9.f); |
|
|
|
A_sample[1] = cv::Point2f(40, 41); |
|
|
|
A_sample[1] = Point2f(40.f, 41.f); |
|
|
|
A_sample[2] = cv::Point2f(47, 48); |
|
|
|
A_sample[2] = Point2f(47.f, 48.f); |
|
|
|
Point2f B_sample[3]; |
|
|
|
Point2f B_sample[3]; |
|
|
|
B_sample[0] = cv::Point2f(7.37465, 11.8295); |
|
|
|
B_sample[0] = Point2f(7.37465f, 11.8295f); |
|
|
|
B_sample[1] = cv::Point2f(15.0113, 12.8994); |
|
|
|
B_sample[1] = Point2f(15.0113f, 12.8994f); |
|
|
|
B_sample[2] = cv::Point2f(38.9943, 9.56297); |
|
|
|
B_sample[2] = Point2f(38.9943f, 9.56297f); |
|
|
|
Mat trans = cv::getAffineTransform(A_sample, B_sample); |
|
|
|
Mat trans = getAffineTransform(A_sample, B_sample); |
|
|
|
ASSERT_EQ(0.0, norm(trans, NORM_INF)); |
|
|
|
ASSERT_EQ(0.0, norm(trans, NORM_INF)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|