octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41480] image package :normxcorr2 yields diffe


From: anonymous
Subject: [Octave-bug-tracker] [bug #41480] image package :normxcorr2 yields different result from matlab
Date: Thu, 06 Feb 2014 15:59:13 +0000
User-agent: 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:

  <http://savannah.gnu.org/bugs/?41480>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]