added connectivityMask calculation function

This commit is contained in:
marina.kolpakova
2012-08-06 18:10:06 +04:00
parent a9764dd910
commit 0bf10c9a47
4 changed files with 155 additions and 24 deletions

View File

@@ -70,7 +70,9 @@ TEST_P(Labeling, ConnectedComponents)
cv::gpu::GpuMat components;
components.create(image.rows, image.cols, CV_32SC1);
cv::gpu::labelComponents(cv::gpu::GpuMat(image), mask, components, cv::Scalar::all(0), cv::Scalar::all(2));
cv::gpu::connectivityMask(cv::gpu::GpuMat(image), mask, cv::Scalar::all(0), cv::Scalar::all(2));
cv::gpu::labelComponents(mask, components);
// std::cout << cv::Mat(components) << std::endl;
// cv::imshow("test", image);