OpenCV template matching and transparency

前端 未结 7 1205
春和景丽
春和景丽 2020-11-29 00:23

What\'s the way OpenCV handles transparency in image during template matching?

The problem is that the template image needs to have transparent parts, because in the

7条回答
  •  清酒与你
    2020-11-29 01:16

    I'm not sure, but the transparency channel is treated just like any other channel. If a pixel in a template is "transparent" it should be "transparent" on the main image as well. I'm just guessing here.

提交回复
热议问题