英文:
opencv findTransformEcc inputMask argument
问题
I have 2 images that I want to find the transformation that maps a subregion of the first image to a subregion of the second image.
我有两张图片,想要找到将第一张图片的子区域映射到第二张图片的子区域的转换。
I tried using the opencv findTransformECC function. In their documentation they specify that you can use the optional inputMask argument to indicate valid values of inputImage. But they don't specify what values should the inputMask take to ignore part of the input image.
我尝试使用OpenCV的findTransformECC函数。在他们的文档中,他们指定可以使用可选的inputMask参数来指示inputImage的有效值。但他们没有指定inputMask应该采用什么值来忽略输入图像的一部分。
英文:
I have 2 images that I want to find the transformation that maps a subregion of the first image to a subregion of the second image.
I tried using the opencv findTransformECC function. In their documentation they specify
that you can use the optional inputMask argument to indicate valid values of inputImage. But they dont specify what values should the inputMask take to ignore part of the input image.
答案1
得分: 1
只需将输入像素位置中的inputMask设置为零,即可忽略部分测试后我发现的情况。
英文:
With some testing I figured out that you just need to set the inputMask to zero in the input pixel positions that you want to ignore
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论