Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
6669 Discussions

Method(s) does the reverse work of ippiLUTPalette_8u24u_C1R. We need to convert a RGB data to Palette color data (Pixel inded and RGB LUTs)

santhilak
Beginner
147 Views
Dear Everyone,

I'm looking for a method to convert a RGB image to Palette Color image. Where my input would be a 8u_C3R (24bits) and expecting an output in the form of 8u_C1R (8bits) along with Red (256bytes), Green (256bytes) and Blue (256bytes) Palette color LUTs or single array of LUT which contains first 256 bytes for the color Red and next 256 bytes for the color Green and final 256 bytes for color Blue.

Is there a method in IPP which methods the above requirement or any set of process can accomplish the same would be grateful?

Any suggestions in this regard is highly appreciated.

Thanks & Regards
Thilak
0 Kudos
1 Reply
Ying_H_Intel
Employee
147 Views

How about call ippiLUTPalette_8u_C3R(), to get a interleave LUT image, Then copy interleave format to Plane format, for example, call ippiCopy_8u_C3P3().
Best Regards,
Ying



Reply