help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: pngread does not read 12bit gray images


From: John W. Eaton
Subject: RE: pngread does not read 12bit gray images
Date: Wed, 16 Jul 2008 18:59:53 -0400

On 16-Jul-2008, de Almeida, Valmor F. wrote:

| Thank you for pointing this out. I currently read 12-bit png images as
| follows
| 
| Y = __magick_read__(filename);
| 
| Y = bitshift(Y,-4);
| 
| and this matches the info from running imagemagick identify on the file.
| 
| imread() should not be used if you have libpng on your system because
| this will call a reader that converts the 12-bit data to 8-bit data, and
| that is not good.

The imread function will be included in the next major release of
Octave, but it won't use pngread or jpgread.  Instead, it will only
use GraphicsMagick++ to read image files.

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]