Home | History | Annotate | Download | only in test

Lines Matching full:roi

1284         const Mat& P, Size imgsize, Rect roi );
1330 const Mat& P, Size imgsize, Rect roi )
1352 // step 2. check that all the points inside ROI belong to the original source image
1358 if(roi.x < 0 || roi.y < 0 || roi.x + roi.width > imgsize.width || roi.y + roi.height > imgsize.height)
1360 ts->printf(cvtest::TS::LOG, "Test #%d. The ROI=(%d, %d, %d, %d) is outside of the imge rectangle\n",
1361 test_case_idx, roi.x, roi.y, roi.width, roi.height);
1364 double s = sum(utemp(roi))[0];
1365 if( s > roi.area() || roi.area() - s > roi.area()*(1-eps) )
1367 ts->printf(cvtest::TS::LOG, "Test #%d. The ratio of black pixels inside the valid ROI (~%g%%) is too large\n",
1368 test_case_idx, s*100./roi.area());