[英]Is there a way to match specific points for correspondence?
我正在嘗試計算兩個圖像之間的單應矩陣
這些是我能夠提取的點(有一些異常值)
這是 2d model 字段,突出顯示的點是我手動提取的點
為了計算單應矩陣,我們需要 4 點對應。 現在我在兩個圖像中都有好點,但我找不到自動匹配這些點的方法。
使用 function findHomography ,例如:
homog, mask = cv2.findHomography(src_points, dst_points, cv2.RANSAC)
然后使用warpPerspective扭曲圖像:
im_out = cv2.warpPerspective(src, homog, (dst.shape[1],dst.shape[0]))
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.