[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Does Matlab support RGB images of type single?
From: |
Laurent Hoeltgen |
Subject: |
Re: Does Matlab support RGB images of type single? |
Date: |
Sat, 26 Apr 2014 21:41:36 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
On 26/04/14 21:23, Rik wrote:
> 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?
Hi,
here's the result:
>> 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?
ans =
double
Output on Matlab R2012a on Linux. The code works without errors.
Regards,
Laurent