简体   繁体   English

如何在python中访问SURF的KeyPoints的特征尺度和主导方向?

[英]How to access SURF's KeyPoints' characteristic scales and dominant orientations in python?

I'm reading a paper titled 'Local Geometric Consistency Constraint for Image Retrieval'. 我正在阅读题为“图像检索的局部几何一致性约束”的论文。 The author introduces a method to make the matched SFIT points are right using local geometric consistency. 作者介绍了一种使用局部几何一致性使匹配的SFIT点正确的方法。 This method requires points' characteristic scales and dominant orientation. 该方法需要点的特征尺度和主导方向。

In python, I use opencv to extract SURF keypoints. 在python中,我使用opencv提取SURF关键点。 How could I get points' characteristic scales and dominant orientation? 如何获得点的特征尺度和主导方向?

Creat SURF feature extractor with 使用以下工具创建SURF特征提取器

surf = cv2.xfeatures2d.SURF_create()
kpu, desu = surf.detectAndCompute(image, None)

keypoints are stored in kpu, now you can do something like: 关键点存储在kpu中,现在您可以执行以下操作:

for i in range(len(kpu)):
     point = kpu[i].pt
     print("your point here", point)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM