[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63060] imread returns logical data for 8-bit
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #63060] imread returns logical data for 8-bit TrueColor PNG image |
Date: |
Wed, 5 Oct 2022 15:14:13 -0400 (EDT) |
Update of bug #63060 (project octave):
Summary: image() handle cannot be set cdata with an imread()
result => imread returns logical data for 8-bit TrueColor PNG image
_______________________________________________________
Follow-up Comment #4:
FYI, Matlab also doesn't allow logical values for TrueColor data. This code
works:
img = rand (65,65) > 0.5;
imshow (img)
But this code does not
img = rand (65,65,3) > 0.5;
imshow (img)
The error message says that logical data must be 2-D.
Hence, the problem seems to be that imread is returning logical data, when it
should be returning TrueColor data. Re-titling bug report.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63060>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #63060] imread returns logical data for 8-bit TrueColor PNG image,
Rik <=