Search found 2 matches

by thwest
2011-10-11T10:08:25-07:00
Forum: Users
Topic: Outputting 1 channel 16-bit grayscale PNG
Replies: 1
Views: 4652

Re: Outputting 1 channel 16-bit grayscale PNG

got it to work. Thanks for all the effort devs!

Code: Select all

        u16MagickImg.quality(00);
        u16MagickImg.defineSet("png:color-type", "0");
        u16MagickImg.defineSet("png:bit-depth", "16");
by thwest
2011-10-11T08:44:59-07:00
Forum: Users
Topic: Outputting 1 channel 16-bit grayscale PNG
Replies: 1
Views: 4652

Outputting 1 channel 16-bit grayscale PNG

I'm attempting to take uint16 data and output it as a 1024x768 1-channel 16-bit grayscale PNG. The output I get from the following is an RGB8 PNG. The image contents are correct besides the formatting. gray16_view_t u16view = ...; uint16_t* data = interleaved_view_get_raw_data(u16view); size_t ...