OpenCV: how to convert all pixels outside of mask to transparent?

后端 未结 0 1791
长情又很酷
长情又很酷 2021-01-05 17:23

I have a 4 channels mask named maskMat colored in red (but I could choose any other color if required).

I have a 4 channels image named imageMat.

I want to set

相关标签:
回答
  • 消灭零回复
提交回复
热议问题