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

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

[Octave-bug-tracker] [bug #49140] png RGB image incorrectly read as logi


From: Francesco Potortì
Subject: [Octave-bug-tracker] [bug #49140] png RGB image incorrectly read as logical.rather than double
Date: Tue, 20 Sep 2016 16:33:34 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0

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

A simple workaround for my case is:


img = imread(legendfile);
if (size(img,3) == 3 && islogical(img))
  img = double(img);
endif


If there are no other cases of 3-D logical matrices, maybe this can be a good
solution.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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