- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page