[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:25:12 -0400 (EDT) |
Follow-up Comment #5, bug #63060 (project octave):
Interestingly, imfinfo identifies the file as a greyscale file with bit depth
of 1.
imfinfo white_background_3.png
ans =
scalar structure containing the fields:
Filename = /home/rik/wip/Projects_Mine/octave-dev/white_background_3.png
FileModDate = 5-Oct-2022 12:18:19
FileSize = 4891
Format = PNG
FormatVersion =
Width = 65
Height = 65
BitDepth = 1
ColorType = grayscale
It is sufficient to change even one pixel to a value which is not black or
white for the detection algorithm to correctly identify the PNG file as 8-bit
TrueColor.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63060>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/