OpenCV: how to set alpha transparency of a pixel

后端 未结 2 1637
北荒
北荒 2020-12-20 21:07

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

2条回答
  •  既然无缘
    2020-12-20 21:30

    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.

提交回复
热议问题