void Near(double threshold, bool relative) { if (relative) OCL_EXPECT_MATS_NEAR_RELATIVE(dst, threshold); else OCL_EXPECT_MATS_NEAR(dst, threshold); }
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); }