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

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

[Octave-bug-tracker] [bug #37410] image.m has a wrong check for linearly


From: Francesco Potortì
Subject: [Octave-bug-tracker] [bug #37410] image.m has a wrong check for linearly-spaced x and y
Date: Thu, 20 Sep 2012 13:29:15 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.7) Gecko/20100101 Firefox/10.0.7 Iceweasel/10.0.7

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

Yes.  This is the code as I am currently using it:

  dx = diff (x);
  dy = diff (y);
  dx = std (dx) / mean (abs (dx));
  dy = std (dy) / mean (abs (dy));
  tol = 100*eps;
  if (any (dx > length(x)*tol) || any (dy > length(y)*tol))
    warning ("Image does not map to non-linearly spaced coordinates")
  endif

The only change is in the 'if' condition.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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