|
| From: | Avinoam Kalma |
| Subject: | [Octave-bug-tracker] [bug #46160] image package: normxcorr2 returns complex values sometimes |
| Date: | Fri, 09 Oct 2015 06:51:32 +0000 |
| User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36 |
Follow-up Comment #1, bug #46160 (project octave):
In this examples, after line 64 b(77) = -4*eps, and than
in line 66 sqrt(a*b) is computed, so it become complex.
What about inserting something like
b(find(b > -10*eps & b < 0)) = 0;
after line 64. It will zero negative small terms of b.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46160>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |