Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在阅读一篇题为“图像检索的局部几何一致性约束”的论文。作者介绍了一种利用局部几何一致性使匹配的 SFIT 点正确的方法。这种方法需要点的特征尺度和主导方向。
在 python 中,我使用 opencv 来提取 SURF 关键点。我怎样才能得到点的特征尺度和主导方向?
创建 SURF 特征提取器
surf = cv2.xfeatures2d.SURF_create() kpu, desu = surf.detectAndCompute(image, None)
关键点存储在 kpu 中,现在您可以执行以下操作:
for i in range(len(kpu)): point = kpu[i].pt print("your point here", point)