Skip to content

A sample code of image processing (more specifically, histogram equalization) with GPU acceleration

Notifications You must be signed in to change notification settings

Ayke/GPU-Acceleration

Repository files navigation

GPU-Acceleration

This project shows a sample code of processing images with GPU acceleration, more specifically, histogram equlization.

Before compile

Set correct compile configruation

Edit CMakeLists.txt, and check this line set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-O3 -gencode arch=compute_35,code=sm_35) , the configuration sm_35 matches graphics card GT 720. Please use this link to check and find a suitable compute capability configurations.

Compile & run

To compile, use the following script

mkdir build && cd build
cmake ..
make

Example of running this project

cp ~/the/path/of/a/image.ppm in.ppm
./5kk70-assignment-gpu

This project only accepts ppm or pgm file, and input name must be in.ppm or in.pgm.

About

A sample code of image processing (more specifically, histogram equalization) with GPU acceleration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published