Add new comment

Reading color

Hi,

I am trying to read raw images with libraw and paint them to screen.

I need to extract per pixel RGB values where each color component must be in 0-255 range.

I am loading a raw file, iProcessor.imgdata.params.output_bps reports 8 bits per plane.

Whilst reading the image with iProcessor.imgdata.image[idx][0], I see values way above 255.

Am I missing something simple ?

Image is here: http://www.rawsamples.ch/raws/canon/40d/RAW_CANON_40D_SRAW_V103.CR2

Thanks.

Paul

Forums: