pngread does not read 12bit gray images

Bill Denney bill at denney.ws
Thu Jul 17 06:35:31 CDT 2008


Søren Hauberg wrote:
> ons, 16 07 2008 kl. 18:49 -0400, skrev de Almeida, Valmor F.:
>   
>> 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.
>>     
>
> Would it be possible for you to put your 12-bit image somewhere online?
> I think it would be nice if the future version of 'imread' would support
> 12 bit images in a way where the 'bitshift' wasn't needed. But I don't
> have any 12 bit images at hand so its hard to debug...
Hi Soren,

Without reiterating my statements from the entire thread, how would you 
do this without requiring a uint12 class or additional meta-data?

Have a good day,

Bill


More information about the Help-octave mailing list