The goal of image alignment is to align a template image T to an input image I. This demo contains four classical image alignment algorithms. We implemented these algorithms in C++ language using OpenCV library in version 3.1.0. With the aim of algorithm verification, we did not take the efficiency seriously, so the code can be achieve in some more efficient ways.
If you have not installed the OpenCV 3.1.0 , please set you OpenCV build path to the OpenCV_DIR
in CMakeLists.txt.
Such as:
%your directory%/opencv/build
In the root directory of the image alignment demo, run the following comments:
$ mkdir build && cd build
$ cmake ..
$ make
After building, there will be an executable files in /bin
, that we can just run as follows. The algorithm_name
can be FAIA
, FCIA
, IAIA
or ICIA
.
../bin/test_imageAlign algorithm_name