Community
cancel
Showing results for 
Search instead for 
Did you mean: 
yang_z_2
Beginner
83 Views

How to use "ippicopy_mod" function to merge three channels R,G,B images to a RGB color image?

Hi,

    Now, There are three single channel images:

    i don't now how to use "ippicopy_mod" functions to merge this three channels images to a RGB color image.

   

 

   

0 Kudos
6 Replies
Igor_A_Intel
Employee
83 Views

Hi Yang,

use IPPAPI ( IppStatus, ippiCopy_8u_P3C3R, (const  Ipp8u* const pSrc[3],
                            int srcStep, Ipp8u* pDst, int dstStep, IppiSize roiSize ))
please.

regards, Igor

yang_z_2
Beginner
83 Views

 Hi Igor,

       i find that the color of picture.bmp is not match the original RGB image

        i don't know what is the problem.

Igor_A_Intel
Employee
83 Views

I can't make any conclusions on what is wrong based on your input - could you provide pixel by pixel comparison: r[0], g[0], b[0],...r,g,b for planar images and rgb[0,0,0],...rgb[x,x,x] after Copy P3C3 and then compared to expected result?

regards, Igor

yang_z_2
Beginner
83 Views

Hi Igor,

    Thank you for your reply. i check my pictures,they are right.i give you now.

    If I have a problem with parameters or have some problems with steps.such as: pSrc, m_image[0].Step()

    Can you give some specific conversion steps.

Igor_A_Intel
Employee
83 Views

Hi Yang,

I don't know what are Cippimage, CreateImage, etc. I don't know how data types you use match to IPP data types. I don't know which image you would like to have in result from combining these 3 inputs (I've taken a look at them - from my point of view they have wrong size/step parameters in the bmp headers). Take a look at IPP manual, please.

regards, Igor.

yang_z_2
Beginner
83 Views