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

8bit and 16bit C1R to C3R

coolshashi
Beginner
480 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
Moderator
480 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

0 Kudos
coolshashi
Beginner
480 Views

Thanks. That was helpful answer. 

0 Kudos
Reply