Question (via private message):
As I am new to ITK software, I want to know how image registration is done in ITK as I want to do overlapping of 2 images. So please kindly tell me the procedure or steps to do the respective whether it be in command prompt or by using CMake.
Here is how to build a CMake-based project.
There are many examples of how to do registration using ITK. Here is a list of built-in ones. Here is a stand-alone example. Here is one from the wiki, which also includes CMakeLists.txt.
Also useful are the step by step guide for Configuring and Building ITK and a Hello World Example along with more details on registration from the ITK Software Guide.