[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63060] image() handle cannot be set cdata wit
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #63060] image() handle cannot be set cdata with an imread() result |
Date: |
Thu, 29 Sep 2022 12:35:50 -0400 (EDT) |
Update of bug #63060 (project octave):
Release: 6.4.0 => dev
Operating System: GNU/Linux => Any
_______________________________________________________
Follow-up Comment #3:
I can reproduce with a build from the development branch (hg id
4c2b83516eb7).
IIUC, the issue is that Octave's `image` objects don't take logical valued
images.
Fwiw, the image is converted to `uint8` (all 255) when read in Matlab R2022a:
>> im = imread('white_background.png');
>> whos im
Name Size Bytes Class Attributes
im 65x65x3 12675 uint8
>> im(1,1,:)
1×1×3 uint8 array
ans(:,:,1) =
255
ans(:,:,2) =
255
ans(:,:,3) =
255
Should we do the same when reading Boolean images?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63060>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/