I have an image I am trying to segment by colouring each pixel either red green or blue. I have calculated a confidence score for each pixel and want to adjust the alpha tra
I've also had the same problem but when was drawing transparent shapes and solved it by blending images. I've fount this in OpenCV's documentation
if you want to paint semi-transparent shapes, you can paint them in a separate buffer and then blend it with the main image.
For this purpose I suggest you to take a look at this documentation article. Hope this will help.