blending two images by Opencv

后端 未结 3 1545
执念已碎
执念已碎 2021-01-21 17:18

I want to align two images of different sizes using Opencv, Indeed the function cvAddWeighted enables us to combine or blend two images of identical sizes which is not my case !

3条回答
  •  时光说笑
    2021-01-21 17:39

    First, check Adding Two Images with Different Size.

    Another way to do it would be to set the region of interested on the bigger image using the width/heigh of the smaller (cvSetImageROI() will do that), and then perform the blend with cvAddWeighted(). You'll find some source code to do that and here.

提交回复
热议问题