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

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

[Octave-bug-tracker] [bug #46160] image package: normxcorr2 returns comp


From: Hartmut
Subject: [Octave-bug-tracker] [bug #46160] image package: normxcorr2 returns complex values sometimes
Date: Wed, 21 Oct 2015 18:34:48 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0

Follow-up Comment #3, bug #46160 (project octave):

I made up my mind, since Matlab probably needs to do the same here. What do
you think about a small patch like this:


b(find(b < 0)) = 0;


or even only


b(b < 0) = 0;


(@Avoniam: I think checking for b>-10*eps is unnecessary, since b should never
be negative normally, the only way it can get negative is machine precision.)

We should do this right after the line that does the difference (currently
after line 64). I don't know which version is faster, or wich one better
supports Nd images. But I would support to include one ore the other version
into normxcorr2.m  to fix this issue.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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