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: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #41240] image class is not preserved in cdata field of graphics handle
Date: Sun, 27 Apr 2014 08:49:19 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

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

Here is a test in Matlab:


% Integer, scaled
img = uint8 (meshgrid (0:250));
h = imshow (img);
class (get (h, 'cdata')) %% uint8

% Integer, true color
img = repmat (uint8 (meshgrid (0:250)), [1 1 3]);
h = imshow (img);
class (get (h, 'cdata')) %% uint8

% Integer, indexed
img = uint8 (meshgrid (1:256));
h = imshow (img, colormap ('jet'));
class (get (h, 'cdata')) %% uint8

% Logical
img = meshgrid (0:250) > 125;
h = imshow (img);
class (get (h, 'cdata')) %% logical


The image class is always preserved for the case of logical and uint8 integer
images. Tell me if more exhaustive tests are needed. 

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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