Skip to content

KhosroBahrami/ImageFiltering_OpenCL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Filtering using OpenCL

This is the implementation of 4 image filters, including Box Filter, Gaussian Filter, Laplacian Filter and Sharpenning Filter using OpenCL on GPU. I also implemented these filters using C++ and OpenCV to measure the speed up that can be achieved using GPU over CPU. The following table shows the results. It can be seen from the results that on average we can get 3.3 faster processing on GPU. The experiments have been done on GTX970.

Filtering Method Speed on CPU (ms) Speen on GPU (ms) Image Resolution
Box Filter 3.26 0.93 800*600
Gaussian Filter 3.17 0.95 800*600
Laplacian Filter 3.55 0.92 800*600
Sharpening Filter 3.18 0.92 800*600

These are example of the input image and resulted image after filtering:

Original image:

alt text

Filtered image by Box filtering:

alt text

Filtered image by Gaussian filtering:

alt text

Filtered image by Laplacian filtering:

alt text

Filtered image by Sharpening filtering:

alt text

About

Image Filtering using OpenCL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors