cosmetic changes to fix this warning. real bugs not found
Tests of the mask are also included. This is useful for registering a non-square image against a non-square template. This also needs to relax a sanity check as per https://github.com/Itseez/opencv/pull/3851
Evangelidis, G.D. and Psarakis E.Z. "Parametric Image Alignment using Enhanced Correlation Coefficient Maximization", IEEE Transactions on PAMI, vol. 32, no. 10, 2008