[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41480] image package :normxcorr2 yields diffe
[Octave-bug-tracker] [bug #41480] image package :normxcorr2 yields different result from matlab
Thu, 06 Feb 2014 15:59:13 +0000
Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 Iceweasel/26.0
Follow-up Comment #2, bug #41480 (project octave):
Originally, I thought, that xcorr2 was wrong, because it calculates (upcoming
abuse of mathematical notation) <ab> and not (<ab> - <a><b>) as I expected.
However, as Matlab does the same, it turns out I was mistaken. (So you
actually understood me correctly and I was wrong then.)
normxcorr2 in Matlab calculates
(<ab> - <a><b>) / sqrt( (<a^2> - <a>^2)(<b^2> - <b>^2) ).
xcorr2(.,.,"coeff") in Octave currently calculates
<ab> / sqrt( <a^2><b^2> ).
(Again, mind the abuse of notation.)
Reply to this item at:
Nachricht gesendet von/durch Savannah