Mercurial > octave-nkf
view .gitignore @ 20373:a7770c66cb3d
Saturated red channel on RGB image, makes imread() return logical (bug #41584)
* libinterp/dldfcn/__magick_read__.cc (get_depth): this function tries to
second guess GM when reporting the actual bitdepth of an image in the file
(see comments for full discussion). We assumed we could check only red
from RGB but if the channel was saturated, it would return depth of 1, so
we really need to check all 3 channels. Unfortunately, 3 saturated channels
may still lead to images incorrectly read as logical.
* scripts/image/imread.m: add test for this bug.
author | Carnë Draug <carandraug@octave.org> |
---|---|
date | Fri, 10 Jul 2015 16:46:24 +0100 |
parents | 5758e0013246 |
children |