Giter Site home page Giter Site logo

cuda_ccl's Introduction

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: https://github.com/DanielPlayne/playne-equivalence-algorithm 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.

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)"

Compiling

  • Clone this repo onto your computer

  • Edit the line CUDAFLAGS = -arch=sm 62 in the makefile to whichever compute capability your graphics card uses. The info should be able to be found here: https://developer.nvidia.com/cuda-gpus.

  • Run make

Usage

$ ./<main> <image-file>

License

The source code is provided under The MIT license

cuda_ccl's People

Contributors

folkev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.