【问题标题】:Replace a Part of a Image with another Image - EMGU(OpenCV)用另一个图像替换图像的一部分 - EMGU(OpenCV)
【发布时间】:2013-12-03 20:09:46
【问题描述】:

我正在使用 EMGU C#。

我有一个更大的图像 A 和更小的图像 B。图像 A 的一部分必须被图像 B 替换。在图像 A 上使用 SIFT(尺度不变特征变换),我得到了该部分的单应矩阵需要更换。现在我想使用单应矩阵并在图像 A 上替换图像 B。

如何使用单应矩阵并仅替换图像 B?

谢谢

【问题讨论】:

    标签: opencv image-processing computer-vision emgucv


    【解决方案1】:

    我不认为你有一个单一的功能来实现这一点。

    我会做以下事情:

     1) make mask image (all white pixels) and transform it using homography
    
     2) make bitwise or operation between destination image and the mask
        (now you masked your destination area - you have a white patch to your destination)
    
     3) resize your small image and transfrom it using homography matrix
    
     4) use bitwise and operation between destination image (has a white patch) and your transformed small image
    

    【讨论】:

      猜你喜欢
      • 2021-11-26
      • 1970-01-01
      • 2023-03-26
      • 2022-10-14
      • 2012-06-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-29
      • 1970-01-01
      相关资源
      最近更新 更多