Intel® Integrated Performance Primitives
Community support and discussions relating to developing high-performance vision, signal, security, and storage applications.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
6593 Discussions

How alphaType parameter works in ippiAlphaComp functions?

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