octave-maintainers
[Top][All Lists]
Advanced

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

Does Matlab support RGB images of type single?


From: Rik
Subject: Does Matlab support RGB images of type single?
Date: Sat, 26 Apr 2014 12:23:55 -0700

All,

The documentation is questionable on this.  Or it may be that base Matlab
does not support RGB single images, but the extra Image Toolbox allows it. 
It's an easy feature to implement and I'm considering adding support for it
in Octave.

Could someone run the following and see what it does?

img = rand (5,5,3);
imgs = single (img);
hi = image (img);
set (hi, 'cdata', imgs);   % Does it break here?
class (get (hi, 'cdata'))  % Does it return single?

Thanks,
Rik



reply via email to

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