Community
cancel
Showing results for 
Search instead for 
Did you mean: 
coolshashi
Beginner
120 Views

8bit and 16bit C1R to C3R

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
120 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
120 Views

Thanks. That was helpful answer. 

Reply