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)
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.