]> rtime.felk.cvut.cz Git - opencv.git/commitdiff
matrix-transform test fixed (required accuracy level in 32s case 0->8)
authorvp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Wed, 28 Jun 2006 13:03:26 +0000 (13:03 +0000)
committervp153 <vp153@73c94f0f-984f-4a5f-82bc-2d8db8d8ee08>
Wed, 28 Jun 2006 13:03:26 +0000 (13:03 +0000)
git-svn-id: https://code.ros.org/svn/opencv/trunk@571 73c94f0f-984f-4a5f-82bc-2d8db8d8ee08

opencv/tests/cxcore/src/amath.cpp

index 964a43a41e5a81815aec579e0d77b1a51beac080..9a034eba2b9585d28824952996e66aaec2192ec5 100644 (file)
@@ -1643,7 +1643,7 @@ void CxCore_TransformTest::print_timing_params( int test_case_idx, char* ptr, in
 double CxCore_TransformTest::get_success_error_level( int test_case_idx, int i, int j )
 {
     int depth = CV_MAT_DEPTH(test_mat[INPUT][0].type);
-    return depth == CV_8U ? 1 : depth == CV_16S || depth == CV_16U ? 8 :
+    return depth <= CV_8S ? 1 : depth <= CV_32S ? 8 :
         CxCore_MatrixTest::get_success_error_level( test_case_idx, i, j );
 }