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

Optimized Add Alpha Layer

ndepalma
Beginner
316 Views
Hello, I am writing some code that exists in a pretty critical section of our companies program. I don't want to spend a lot of clock cycles in it and I must turn an RGB image into an RGBA image of just some constant alpha value. The only way I can think about doing this (and after searching vigorously through OpenCV and IPP manuals) is to split the image into planes, add the extra alpha plane, and then reconvert it back into a RGBA image. I think it seems pretty silly to go through that much trouble to just add an alpha layer so I feel I must be missing something. Does anybody know how to create an alpha layer on a 3 channel image QUICKLY and beautifully? Thanks for any help you can give me!
~Nick
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
316 Views

Hi,

Did you noticed ippiCopy_8u_C3AC4R or ippiCopy_8u_C4MR? You can use masked copy to place your RGB image into RGBA buffer with predefined alpha channel.

Regards,
Vladimir

0 Kudos
Reply