OpenCV template matching and transparency

前端 未结 7 1199
春和景丽
春和景丽 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:08

    The SQDIFF/SQDIFF_N option would be a solution if you tried to replace alpha channel with the black RGB color. At least this was my solution to same problem. From my result is obvious that this method is sensitive to brighter pixel values, and I took an opportunity of that.

提交回复
热议问题