Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

8bit and 16bit C1R to C3R

coolshashi
Beginner
140 Views

Hello 

I need to convert the following. How can I Do this in IPP ?

1) Convert an image that has 8bit grey scale (1 component)  to 8 bit RGB (3 component) image ?

2) Convert an image that has 16bit grey scale (1 component)  to 8 bit RGB (3 component) image ?

Shashi

0 Kudos
2 Replies
Chao_Y_Intel
Employee
140 Views

Shanshi,
For the conversion, do you just want copy the gray image data into the RGB channel? You can check the following function:
ippiDup_8u_C1C3R

For 16bit gray image, it can first convert to 8 bit, then call the ippiDup_8u_C1C3R function.

Thanks,
Chao

coolshashi
Beginner
140 Views

Thanks. That was helpful answer. 

Reply