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

How alphaType parameter works in ippiAlphaComp functions?

mleader1
Beginner
349 Views
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
Gennady_F_Intel
Moderator
349 Views
Could you please look into this thread. it seems that the similar question has been already answered there.
--Gennady
0 Kudos
mleader1
Beginner
349 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
Reply