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

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

[Octave-bug-tracker] [bug #41240] image class is not preserved in cdata


From: Rik
Subject: [Octave-bug-tracker] [bug #41240] image class is not preserved in cdata field of graphics handle
Date: Sat, 26 Apr 2014 23:46:16 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

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

I added support in C++ for integer formats with this changeset
(http://hg.savannah.gnu.org/hgweb/octave/rev/44f0d1a53ead).  Octave can will
now store cdata in the same datatype (uint8, single, etc.) as the original
input format to image().

At this point, this bug should be easy to fix.  In imshow.m there is this
line:
  

  ## This is for compatibility.
  if (! (indexed || (true_color && isinteger (im))) || islogical (im))
    im = double (im);
  endif


This line was coded a long time ago and is probably no longer accurate. 
Someone with access to Matlab should verify how imshow behaves and possibly
this line can be deleted.  Actually, the whole of imshow looks like it could
be cleaned up to just call image or imagesc for the backend.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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