The first argument is the image file name.
The second argument is the template.
You may be doing this because you're (1) studying image processing, (2) have a desire to manipulate images, or (3) are practicing with C++.
If (1) then I'd recommend you take the time to become more of a learned person WRT programming, because image processing algorithms are things which programming is well built to assist.
If (2) you wish to manipulate one or more images and were pointed to this utility, and now all you have to do is get it working, then once successfully compiled, the program should have a name and you call the program and give it two arguments, separated by spaces.
Code:
./program_name argument_1 argument_2
.
If (3) then I'd recommend some easier, more fundamental code examples.
It you're able to offer the path which led you to this point and what the final intentions here are, then that would make it easier for me or someone else to offer the most helpful advice.