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

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

[Octave-bug-tracker] [bug #46570] Image package: wrong result with edge


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #46570] Image package: wrong result with edge
Date: Sun, 31 Jul 2016 17:27:30 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #11, bug #46570 (project octave):

So after this change, there's no difference between the sobel, prewitt, and
kirsch methods?  Or am I missing something?

A small performance fix. In place operators reduce memory usage, so instead
of:


  h1 = h1 ./ sum (sum (abs (h1)))


use:


  h1 ./= sum (sum (abs (h1)))


Also, use `sum (abs (x(:)))` (unless you really are coding for ND and want to
normalize each plane by the sum of that plane, and on which case specify the
dimension number as part of the call to sum).

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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