opencv findTransformEcc inputMask argument

huangapple go评论77阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年4月13日 20:45:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76005593.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定