[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave 4.0.3: normxcorr2 producing unexpected result
From: |
oli |
Subject: |
Re: Octave 4.0.3: normxcorr2 producing unexpected result |
Date: |
Thu, 23 Mar 2017 13:04:51 -0700 (PDT) |
I'm having the same issue. The expected values for the correlation are:
<http://octave.1599824.n4.nabble.com/file/n4682595/Screen_Shot_2017-03-23_at_13.png>
But I am getting this as well:
Columns 1 through 8:
1.00000 -0.50000 -0.50000 -1.00000 -0.50000 Inf 1.00000
0.86603
Columns 9 through 16:
0.50000 -1.00000 -0.86603 0.50000 0.50000 1.00000 -0.50000
-0.50000
I used the workaround mentioned here
<https://discussions.udacity.com/t/problem-in-solution-quiz-find-template-1d-quiz/201134/6?u=olalonde>
to replace Inf by 0.
Columns 1 through 8:
1.00000 -0.50000 -0.50000 -1.00000 -0.50000 0.00000 1.00000
0.86603
Columns 9 through 16:
0.50000 -1.00000 -0.86603 0.50000 0.50000 1.00000 -0.50000
-0.50000
According to this output, we can see there are maximums at indexes 1, 7 and
14. Strangely, `[val index] = max(c)` returns index 7 instead of 1 or 14.
I really feel there is a bug somewhere....
--
View this message in context:
http://octave.1599824.n4.nabble.com/Octave-4-0-3-normxcorr2-producing-unexpected-result-tp4681543p4682595.html
Sent from the Octave - General mailing list archive at Nabble.com.
- Re: Octave 4.0.3: normxcorr2 producing unexpected result,
oli <=