示例#1
0
 void Near(double threshold, bool relative)
 {
     if (relative)
         OCL_EXPECT_MATS_NEAR_RELATIVE(dst, threshold);
     else
         OCL_EXPECT_MATS_NEAR(dst, threshold);
 }
示例#2
0
 void Near(double threshold = 0.0)
 {
     if (depth < CV_32F)
         EXPECT_MAT_N_DIFF(dst_roi, udst_roi, cvRound(dst_roi.total()*threshold));
     else
         OCL_EXPECT_MATS_NEAR_RELATIVE(dst, threshold);
 }