[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41480] image package :normxcorr2 yields diffe
From: |
Carnë Draug |
Subject: |
[Octave-bug-tracker] [bug #41480] image package :normxcorr2 yields different result from matlab |
Date: |
Mon, 17 Mar 2014 23:21:41 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20140207 Firefox/24.0 Iceweasel/24.3.0 |
Update of bug #41480 (project octave):
Status: None => Fixed
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #7:
I have pushed that change to the image package:
https://sourceforge.net/p/octave/image/ci/e9c18bff13be86a0d067969c2a3dcfc405edb0b2/
I have signed that commit with your name and email. As per the emails we
changed in private, I then made some further modifications to make it work
with N dimensional images and follow Octave coding guidelines, expanded
documentation a bit, and added tests.
https://sourceforge.net/p/octave/image/ci/0ed283edee13a5c562b51521a457d5d996fcf022/
For future reference, there's some machine precision error that creeps in, so
even if the template is within the image, the normalized cross correlation may
not have any 1.
total = 0;
for i=1:100
a = rand (10);
c = normxcorr2 (a(5:7,5:7), a);
if (c(7,7) == 1)
total++;
endif
endfor
The condition there will fail around half of the times. However, I asked
someone to test this in Matlab and they're not doing any better than us here.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41480>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/