【发布时间】:2013-12-03 20:09:46
【问题描述】:
我正在使用 EMGU C#。
我有一个更大的图像 A 和更小的图像 B。图像 A 的一部分必须被图像 B 替换。在图像 A 上使用 SIFT(尺度不变特征变换),我得到了该部分的单应矩阵需要更换。现在我想使用单应矩阵并在图像 A 上替换图像 B。
如何使用单应矩阵并仅替换图像 B?
谢谢
【问题讨论】:
标签: opencv image-processing computer-vision emgucv
我正在使用 EMGU C#。
我有一个更大的图像 A 和更小的图像 B。图像 A 的一部分必须被图像 B 替换。在图像 A 上使用 SIFT(尺度不变特征变换),我得到了该部分的单应矩阵需要更换。现在我想使用单应矩阵并在图像 A 上替换图像 B。
如何使用单应矩阵并仅替换图像 B?
谢谢
【问题讨论】:
标签: opencv image-processing computer-vision emgucv
我不认为你有一个单一的功能来实现这一点。
我会做以下事情:
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
【讨论】: