https://github.com/arsfiqball/image-sharpen-cpp
Implementation of Image Sharpening algorithm in C++ & CUDA
https://github.com/arsfiqball/image-sharpen-cpp
cuda gpu image-processing image-sharpening-algorithm
Last synced: 2 months ago
JSON representation
Implementation of Image Sharpening algorithm in C++ & CUDA
- Host: GitHub
- URL: https://github.com/arsfiqball/image-sharpen-cpp
- Owner: Arsfiqball
- Created: 2020-05-15T02:01:25.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T06:19:56.000Z (about 6 years ago)
- Last Synced: 2025-05-04T21:17:04.713Z (about 1 year ago)
- Topics: cuda, gpu, image-processing, image-sharpening-algorithm
- Language: C++
- Homepage: https://youtu.be/zU4FYQO8TJ0
- Size: 161 KB
- Stars: 3
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Implementation of Image Sharpening algorithm in C++ & CUDA.
The algorithm is based on this tutorial (with few changes)
https://lodev.org/cgtutor/filtering.html#Sharpen
> NOTE!
This only works with **24-bit based uncompressed Bitmap** format.
Use this tool to convert your image into compatible format:
https://online-converting.com/image/convert2bmp/
also, don't forget to choose **Color** option to **24 Bit (True Color)**.
I made this program as simple as possible, and didn't rely on third party library to run.
The goal is to demonstrate how image sharpening algorithm implemented in standard CPU and GPU (CUDA) computation.
The main focus is matrix calculation of the image and how to proceed it into sharpen image.
Sample image included (filename: image_source.bmp), but you can replace it with your own.
## Compile and Run
CPU:
```sh
g++ main_cpu.cpp -o main_cpu
./main_cpu
```
GPU:
```sh
nvcc --run main_gpu.cu
```
## Maintainer
[Arsfiqball](https://github.com/Arsfiqball) | iqballmags@gmail.com