- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I thinks the C4R variant will work with premultiplied alpha, as the alpha channel then requieres no special handling.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi David,
Hope you found the answers informative.
Do you have more questions?
Otherwise, I will close this question ticket.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the prompt response. We will give it a try. The answer was very helpful.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page