EMCSS-CUDA-Imgrep
CUDA template matching project of 2022 EMCSS
Methods
- TBD
Dependency
- CUDA >= 11.0.0
Build
cd path/to/imgrep
# Adjuest the CUDA_ARCH parameter to your target hardware in the makefile
vim Makefile
# Build the whole project
make
Execute
./build/imgrep [-c] [-m matcher] [-b block_size] [-t thread_size] <src_img> <tmpl_img>
Arguments
-c : Use pure CPU to calculate. (block_size is ignored)
-m matcher : Matcher to calculate similarity. (PCC/SSD)
-b block_size=1 : How many blockss will be launch.
-t thread_size=1 : (In CUDA mode) How many threads per block.
(In CPU mode) How many threads will be launch.
src_img : The path to the source image. (Only accept BMP format)
tmpl_img : The path to the template image. (Only accept BMP format)
Author
Yung-Hsiung Hu @2022