'Creating alpha channel opencv

I have a program in c++ and opencv2 that loads an mp4 file and gives me frame pixels. I have a problem opencv outputs 24 bits per pixel, and I need 32 to display in a window on winapi. Is it possible to create an empty alpha channel using standard opencv tools?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source