Created private method Image::ResizeMatrix() to resize internal Eigen matrices upon Image dimention change.

Signed-off-by: Vinicius Dias de Oliveira Gardelli <gardelli123@gmail.com>
Changed struct Rectangle into a complete class and improved its definition.

Signed-off-by: Vinicius Dias de Oliveira Gardelli <gardelli123@gmail.com>
Changed SubImage's output to a parameter to avoid data copy and added a second signature defining a region via a rectangle.
Changed method TemplateMatch to return its correlation map into an option Image parameter and made it return the correlation value for the best match instead of the correlation map.

Signed-off-by: Vinicius Dias de Oliveira Gardelli <gardelli123@gmail.com>
Organizing CartesianCoordinate code definition.

Signed-off-by: Vinicius Dias de Oliveira Gardelli <gardelli123@gmail.com>
Added "const" and "&" modifiers to all suitable parameters and return value inside Image class.

Signed-off-by: Vinicius Dias de Oliveira Gardelli <gardelli123@gmail.com>
Created a function inside main.cpp to execute template matching and print the results on screen. Output correlation maps are printed to a PGM file.

Signed-off-by: Vinicius Dias de Oliveira Gardelli <gardelli123@gmail.com>