Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

8 bpp indexed RGB to 24bpp RGB image

coolshashi
Beginner
725 Views

Hello

I have an image thats 8 bits per pixel, that also has a palette that 256 colors. ( RGB[256] )

Is there an ipp function that gives me a 24bpp image replcing each ot the 8bpp data with color it indexes into?

Shashi

0 Kudos
2 Replies
Thomas_Jensen1
Beginner
725 Views

I have been using iplConvertFromDIBSep from 7.0.6.060\ipp-samples\image-processing\ipl-ipp to load complex DIB/BMPs. It handles 8bit palletized RGB BMP files.

I see that the latest IPP samples BMP decoder does not handle palettes at all.

0 Kudos
Sergey_K_Intel
Employee
725 Views

Hi Shashi,

It looks like you need to use ippiLUT_8u_C1R function to substitute pixel colors with RGB values and then use ippiDup_8u_C1C3R function to produce 24-bit image from 8-bit, i.e. 3 channels from 1 channel. It also looks like pLevels 256-byte array can be just your RGB table.

Regards,
Sergey 

0 Kudos
Reply