# CUDA_CCL **Repository Path**: ishyj/CUDA_CCL ## Basic Information - **Project Name**: CUDA_CCL - **Description**: A Connected Component Labelling algorithm implemented in CUDA - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-08-07 - **Last Updated**: 2024-08-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CUDA 8-way Connected Component Labelling An 8-way implementation of the Playne-equvalence algorithm for connected component labelling on CUDA. Based on the illustrative example by Daniel Playne: as originally described in: D. P. Playne and K. Hawick, "A New Algorithm for Parallel Connected-Component Labelling on GPUs," in IEEE Transactions on Parallel and Distributed Systems, vol. 29, no. 6, pp. 1217-1230, 1 June 2018. * URL: This was one part of a pipeline implemented for a GPU blob detection algorithm during my master's thesis for a degree in Master's of Science in engineering: Engineering Physics. ## Prerequisites * `OpenCV` is used to load and display images, it is assumed that it has been installed correctly. * `CUDA-toolkit`, This has been tested on an Nvidia Jetson TX2 running CUDA 9.0. Any newer version of the CUDA toolkit should be usable and many of the older ones as well. It does use managed memory, so your graphics card needs to be compatible with that. Per Nvidia the requirements are: * "a GPU with SM architecture 3.0 or higher (Kepler class or newer)" * "a 64-bit host application and non-embedded operating system (Linux, Windows, macOS)" # CUDA计算连通域使用方法 ## 编译 * makefile中修改 `CUDAFLAGS = -arch=sm 62`为你自己显卡的算力,具体可在这里查看(填入算力值不要小数点): . * 终端执行`make` ## 使用 `$ ./
` # OpenCV计算连通域使用方法 ## 编译 执行编译`g++ -o opencv_test opencv_test.cpp `pkg-config --cflags --libs opencv4``其中opencv4可在`/usr/local/include`查询到文件夹 ## 使用 `$ ./ `