Commit 57507850 authored by marina.kolpakova's avatar marina.kolpakova

fixed perfomance test for CCL

parent 19313923
...@@ -50,7 +50,7 @@ GPU_PERF_TEST(ConnectedComponents, cv::gpu::DeviceInfo, cv::Size) ...@@ -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::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; cv::gpu::GpuMat mask;
mask.create(image.rows, image.cols, CV_8UC1); mask.create(image.rows, image.cols, CV_8UC1);
......
...@@ -78,6 +78,7 @@ namespace { ...@@ -78,6 +78,7 @@ namespace {
void operator() (cv::Mat labels) const void operator() (cv::Mat labels) const
{ {
labels.setTo(cv::Scalar::all(-1));
InInterval inInt(0, 2); InInterval inInt(0, 2);
int cc = -1; int cc = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment