On both version 2.4.10 and 2.4.11.
Following codes are tested in Jython on Win7 64-bit> screen = Highgui.imread( "screen.png", Highgui.IMREAD_GRAYSCALE); target = Highgui.imread( "target.png", Highgui.IMREAD_GRAYSCALE); res = Mat();
Imgproc.matchTemplate(screen, target, res, Imgproc.TM_CCOEFF_NORMED);
print(res.get(0, 0)); The result is > array('d', [1.0]) Attached files: [C:\fakepath\screen.png](/upfiles/14510447028507963.png) [C:\fakepath\target.png](/upfiles/14510447224295072.png) A similar problem is posted in DevZone
http://code.opencv.org/issues/798
It said the bug is solved.
But my codes still showed the bug.
Following codes are tested in Jython on Win7 64-bit> screen = Highgui.imread( "screen.png", Highgui.IMREAD_GRAYSCALE); target = Highgui.imread( "target.png", Highgui.IMREAD_GRAYSCALE); res = Mat();
Imgproc.matchTemplate(screen, target, res, Imgproc.TM_CCOEFF_NORMED);
print(res.get(0, 0)); The result is > array('d', [1.0]) Attached files: [C:\fakepath\screen.png](/upfiles/14510447028507963.png) [C:\fakepath\target.png](/upfiles/14510447224295072.png) A similar problem is posted in DevZone
http://code.opencv.org/issues/798
It said the bug is solved.
But my codes still showed the bug.