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

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

[Octave-bug-tracker] [bug #49456] imcrop width height are off by one


From: anonymous
Subject: [Octave-bug-tracker] [bug #49456] imcrop width height are off by one
Date: Thu, 27 Oct 2016 14:01:03 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #2, bug #49456 (project octave):

After lines 179-180 of imcrop.m


  i_ini = round ([rect(1) rect(2)]);
  i_end = round ([rect(1)+rect(3) rect(2)+rect(4)]);


there should be something like:


  i_ini = max(i_ini, [1 1]);
  i_end = min(i_end, [size(img, 1) size(img, 2)];




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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