From version 4.1.x there's the opportunity the compute the enhanced correlation coefficient between two images. It seems to me that it's not working correctly. My two images are very similar and I get an ECC=0.474. Just to test the functionality I also tried to run:
retval = cv2.computeECC(templateImage=reference, inputImage=reference)
and it returns me 0.475, while I was expecting 1.00.
Does anybody know how to solve this? Thank you for your help.