OpenCL image compression alghoritm for a parallel computing college course.
module load CUDA
gcc -o gpu gpu.c -fopenmp -O2 -lm -lOpenCL -Wl,-rpath,./ -L./ -l:libfreeimage.so.3
./gpu input_image.png
input_image [output_image] [-K clusters] [-I iterations] [-d device_index] [-s]
- K - number of clusters used, number of colors in the output image (64 by default)
- I - number of iterations (50 by default)
- d - selected device (GPU) (0 by default)
- s - show available devices
The input image should be in PNG format.
K = 64K = 32
K = 16