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

Do IPP Resize functions work with RGBA

David_N_
Beginner
392 Views

Hello,

I am somewhat confused about the IPP Resize functions. For example, the ResizeLinear function supports a mod of 8u_C4R which as I understand is 4 bytes of RGB. I presume the 4th byte is the alpha channel, but I am not sure as other posts suggest that there should be an A in the mod if the function supports alpha channels.

So, in short, are there any IPP resize functions that consider the alpha channel, and resize taking the alpha channel into account, not simply ignoring it? If so, which version of the function is that?

0 Kudos
4 Replies
BMart1
New Contributor II
392 Views

I thinks the C4R variant will work with premultiplied alpha, as the alpha channel then requieres no special handling.

0 Kudos
Zhen_Z_Intel
Employee
392 Views

Hi David,

The 4th channel of C4 is alpha channel. Resize also process alpha channel same as other channels. What the difference of AC4 and C4 is that function for AC4 do not process in alpha channel, but C4 will. Lean more info from link of descriptor.

If you point to use premultiplied alpha that would be used for alpha composition function that when two 4 channel images cover each other, you probably need to calculate alpha(A)*RGB(A)+alpha(B)*RGB(B). But other functions, like resize, the size of alpha also need to be changed by interpolation method. it is not using premultiplied alpha, it process with alpha channel. 

Best regards,
Fiona

0 Kudos
Jonghak_K_Intel
Employee
392 Views

Hi David,

 

Hope you found the answers informative.

Do you have more questions?

Otherwise, I will close this question ticket.

 

Thank you

0 Kudos
David_N_
Beginner
392 Views

Thanks for the prompt response. We will give it a try. The answer was very helpful.

0 Kudos
Reply