From b7ebedc23e9f7c804b9a1b08f553343e221724ce Mon Sep 17 00:00:00 2001 From: yao Date: Sat, 23 Feb 2013 17:43:10 +0800 Subject: [PATCH] fix mismatch of WarpAffine --- modules/ocl/test/test_imgproc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ocl/test/test_imgproc.cpp b/modules/ocl/test/test_imgproc.cpp index 5bf08c80e..9cc6c1c89 100644 --- a/modules/ocl/test/test_imgproc.cpp +++ b/modules/ocl/test/test_imgproc.cpp @@ -791,8 +791,8 @@ TEST_P(WarpAffine, Mat) { static const double coeffs[2][3] = { - {cos(3.14 / 6), -sin(3.14 / 6), 100.0}, - {sin(3.14 / 6), cos(3.14 / 6), -100.0} + {cos(CV_PI / 6), -sin(CV_PI / 6), 100.0}, + {sin(CV_PI / 6), cos(CV_PI / 6), -100.0} }; Mat M(2, 3, CV_64F, (void *)coeffs);