Very basic version of the code is shared, for advanced version which uses alpha parameter, shared memory, Snapdragon version etc contact p[dot]anushri25[at]gmail[dot]com
Steps in the code
- Extract patches from images
- Build dictionaries from patches
- Build a balanced hierarchical shallow tree using the dictionaries (matlab-files)
- Use the Shallow tree for searching on CPU-GPU platform (snapdragon)
inorder to establish mex integration between matlab codes and OpenCL codes
make using: (use corresponding folder)
mpicxx -L/opt/intel/opencl-1.2-4.4.0.117/lib64 -L/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64 main.cpp -o main -lOpenCL -I/usr/include/CL -lmat -lmx -lmex -I/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/extern/include -Wl,-rpath,/opt/intel/opencl-1.2-4.4.0.117/lib64,-rpath,/usr/local/MATLAB/MATLAB_Compiler_Runtime/v83/bin/glnxa64 -fpermissive -g
execute using:
LD_PRELOAD=/opt/intel/opencl-1.2-4.4.0.117/lib64/libtbb.so.2 ./main