OPENCV中有‘stereoRectify’的逆运算吗?
Have the inverse operation of ‘stereoRectify’ in OPENCV?
首先'stereorectify'已经基于双目视觉做了,然后用校正后的图像进行图像匹配计算。左右图像的匹配点已经生成。现在需要将匹配点的坐标恢复到图像校正前的坐标。我能怎么做?
enter image description here
我在 OPENCV 4.5.3 中找到了“initInverseRectificationMap()”,enter link description here
然后我做了一个测试,比较'stereorectify'之后的图像和'InverseRectification'enter image description here之后的图像,两个图像不在同一条水平线上
另外,我比较没有'stereorectify'的图像和'InverseRectification'enter image description here之后的图像,两个图像在水平线上平行
所以,“initInverseRectificationMap()”起作用了。
但它适用于图像类型,它如何适用于“Point2f”?
首先'stereorectify'已经基于双目视觉做了,然后用校正后的图像进行图像匹配计算。左右图像的匹配点已经生成。现在需要将匹配点的坐标恢复到图像校正前的坐标。我能怎么做? enter image description here
我在 OPENCV 4.5.3 中找到了“initInverseRectificationMap()”,enter link description here 然后我做了一个测试,比较'stereorectify'之后的图像和'InverseRectification'enter image description here之后的图像,两个图像不在同一条水平线上 另外,我比较没有'stereorectify'的图像和'InverseRectification'enter image description here之后的图像,两个图像在水平线上平行 所以,“initInverseRectificationMap()”起作用了。 但它适用于图像类型,它如何适用于“Point2f”?