- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
~Nick
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page