Skip to content

Implementation of GPU accelerated Median Filter and Bilateral Filter for Stereo Vision using CUDA and OpenCV for CIS601 - Special Topics in Computer Architecture : GPGPU Programming

Notifications You must be signed in to change notification settings

arrfou90/cuda-image-filters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CUDA Image Filters on NVIDIA TX-2 & NVIDIA GTX1070

Implementation of GPU accelerated Median Filter and Bilateral Filter for Stereo Vision using CUDA and OpenCV for CIS601 - Special Topics in Computer Architecture : GPGPU Programming

To use this repository, make sure you have the following components installed:

  • OpenCV 2.4
  • CUDA 8.0

Clone the repository;

Once inside the repository launch the Makefile with the "make" command;

This repository already contains some test data in the "/data" folder; If you wish to use your own images, add a link to your desired image in main.cpp located in the "/src" folder;

Performance is measured over 10 attempts, and the first warm-up kernel launch is omitted in each case. You can change this by modifying the attempts variable in main.cpp;

To run this code:

$ cd /path/to/repository/cuda-image-filters

$ make

$ ./build/filters_gpu

Results

Window Size for both filters is 9

Sigma1 for Bilateral filter is 50px

Sigma2 for Bilateral filter is 50px

Median Filter

Original Image:

Original Image

CUDA Implementation:

CUDA Image

OpenCV Implementation:

OpenCV Image

Bilateral Filter

Original Image:

Original Image

CUDA Implementation:

CUDA Image

OpenCV Implementation:

OpenCV Image

Performance

All performance times are measured in milliseconds (Y-Axis). Image resolution during performance analysis was (480 x 1200).

Median Filter

Naive Implementation Median Filter Naive

Shared Memory Implementation Median Filter SM

Bilateral Filter

Bilateral Filter

If you have any questions or find any mistakes in this repository please raise an issue or contact me.

About

Implementation of GPU accelerated Median Filter and Bilateral Filter for Stereo Vision using CUDA and OpenCV for CIS601 - Special Topics in Computer Architecture : GPGPU Programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published