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

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

[Octave-bug-tracker] [bug #57528] imread always fails when Octave was st


From: Rik
Subject: [Octave-bug-tracker] [bug #57528] imread always fails when Octave was started with the "--traditional" option
Date: Fri, 3 Jan 2020 17:58:20 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #4, bug #57528 (project octave):

Thanks for the hint.  The code in question is at line 149 of
__magick_read__.cc


// We need this in case one of the sides of the image being read has
// width 1.  In those cases, the type will come as scalar instead of range
// since that's the behavior of the colon operator (1:1:1 will be a scalar,
// not a range).
static Range
get_region_range (const octave_value& region)
{
  Range output;
  if (region.is_range ())
    output = region.range_value ();
  else if (region.is_scalar_type ())
    {
      double value = region.scalar_value ();
      output = Range (value, value);
    }
  else
    error ("__magick_read__: unknown datatype for Region option");

  return output;
}





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57528>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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