Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
20 Views

How alphaType parameter works in ippiAlphaComp functions?

Hello,

I'm trying to use AlphaComp function and AlphaPremul function to blend some images,

but I can't understand the exact meaning and use of alphaType parameter in AlphaComp functions.


There are image buffers A and B in 32bit RGBA and I used ippiAlphaPremul_8u_AC4IR function to buffer A.

I want to composite A into B, so I think I should use ippiAlphaComp_8u_AC1R function to blend the image.

Then how do I call this functions with alphaType parameter? (and other params too)


Can I get some sample codes about this function?

Thanks in advance,
0 Kudos
2 Replies
Highlighted
Moderator
20 Views

Could you please look into this thread. it seems that the similar question has been already answered there.
--Gennady
0 Kudos
Highlighted
Beginner
20 Views

Thanks for your reply. I read that thread but..
Which I want to know is how to combine AlphaComp and AlphaPremul function.

In AlphaComp function, there are alphaType parameter.
What is difference of ippiAlphaOver value and ippiAlphaOverPremul values?
Should I use AlphaPremul'ed buffer to pSrc1 or pSrc2?
0 Kudos