the test is re-using the example of https://learnopencv.com/image-alignment-ecc-in-opencv-c-python/.
It sequentially run:
- the first run is the original example.
- The second run set a mask around the template image (red band), so the template image has less feature than the input image. Result is degraded
- Last run use modifications of the proposed push to use a mask around the template image within the optimization of findTransformECC. Results are then comparable to the original run.