Giter Club home page Giter Club logo

img-processing-cuda's Introduction

Image Processing with CUDA C++

Objective

The objective of this project is to implement from scratch in CUDA C++ various image processing algorithms. A Cpu and a Gpu version of the following algorithms is implemented and commented:

  • Canny Edge Detection
  • Non Local-Means De-Noising
  • K-Nearest Neighbors De-Noising
  • Convolution Blurring
  • Pixelize

We benchmarked the Gpu and Cpu version.

Setup:

Make sure you have a CUDA capable GPU and install cudatoolkit for your OS. Then run:

    cd src/gpu
    mkdir build && cd build
    cmake ..
    make

Algorithms :

Canny Edge Detection

nlm
Detects the edges of an image.

Usage:

    ./main <image_path> edge_detect

Non Local-Means De-noising

nlm
Removes the grain of an image.
Benchmark:

  • Cpu:

  • Gpu:

Usage:

    ./main <image_path> nlm <conv_size> <hyper_param>

K-Nearest Neighbors De-noising

nlm
Removes the noise of an image using the KNN algorithm.
Benchmark:

  • Cpu:

  • Gpu:

Usage:

    ./main <image_path> nlm <conv_size> <block_radius> <weight_decay>

Convolution Blurring

conv_res
Blurs an image using the convolution operator.
Usage:

    ./main <image_path> conv <conv_size>
    ./main <image_path> shared_conv <conv_size>

Use shared_conv for an optimized version using shared memory.

Pixelize

conv_res
Pixelizes an image.
Usage

    ./main <image_path> pixelize <conv_size>

img-processing-cuda's People

Contributors

consciousml avatar senhaji-rhazi-hamza avatar

Stargazers

 avatar Kermit Griffeth avatar Shashipal avatar Dizzle avatar Gia Huy avatar BaofengZan avatar Micka avatar

Watchers

 avatar  avatar

Forkers

shashipal95

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.