Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Isn't there a OpenCV Cuda function similar to findContours?

There are several OpenCV CPU functions which have a direct CUDA counterpart like cv::cvtColor & cv::cuda::cvtColor.

But I found no direct or indirect (GPU) Cuda counterpart for cv::findContours CPU.

Isn't there a OpenCV Cuda function similar to findContours? Or does findContours work on both cv::Mat and cv::cuda::GpuMat?

like image 373
muglikar Avatar asked Oct 30 '22 10:10

muglikar


1 Answers

Unfortunately, not. Not even in the latest OpenCV 3.2.0 version. But they have this update, as shown here: https://github.com/opencv/opencv/wiki/ChangeLog

findContours can now find contours on a 32-bit integer image of labels (not only on a black-and-white 8-bit image). This is a step towards more convenient connected component analysis.

like image 117
muglikar Avatar answered Nov 15 '22 06:11

muglikar