opencv cuda连通域分析

下面是opencv官方的connected components的开源算法,里面用了cuda函数,__device__代表在cpu上面执行,__global__代表在gpu上面执行。计算连通区域在gpu上面,函数声明如下:
computeConnectivity<<>>(static_cast(image), edges, inInt);

官方的代码执行如下:

https://github.com/opencv/opencv_contrib/blob/9735ec666c92f7853fd7f20468e7ac701d3a2df0/modules/cudalegacy/src/cuda/ccomponetns.cu

你可能感兴趣的:(image,processing)