fixed perfomance test for CCL

This commit is contained in:
marina.kolpakova 2012-08-10 15:01:03 +04:00
parent 19313923cc
commit 575078502f
2 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ GPU_PERF_TEST(ConnectedComponents, cv::gpu::DeviceInfo, cv::Size)
cv::Mat image = readImage("gpu/labeling/aloe-disp.png", cv::IMREAD_GRAYSCALE);
cv::threshold(image, image, 150, 255, CV_THRESH_BINARY);
// cv::threshold(image, image, 150, 255, CV_THRESH_BINARY);
cv::gpu::GpuMat mask;
mask.create(image.rows, image.cols, CV_8UC1);

View File

@ -78,6 +78,7 @@ namespace {
void operator() (cv::Mat labels) const
{
labels.setTo(cv::Scalar::all(-1));
InInterval inInt(0, 2);
int cc = -1;