この機能に固有の X & Y 座標 (機能ごとに 5 ~ 10 ポイント) のセットとして記述された画像に機能があるプロジェクトに取り組んでいます。また、それぞれが同じタイプの記述子を持つ何千もの機能を持つデータベースもあります。結果は次のようになります。
myFeature: (x1,y1), (x2,y2), (x3,y3)...
myDatabase: Feature1: (x1,y1), (x2,y2), (x3,y3)...
Feature2: (x1,y1), (x2,y2), (x3,y3)...
Feature3: (x1,y1), (x2,y2), (x3,y3)...
...
myDatabase の機能で myFeature の最適な一致を見つけたいと考えています。
これらの機能を一致させる最速の方法は何ですか? 現在、データベース内の各機能をステップ実行し、個々のポイントを比較しています。
bestScore = 0
for each feature in myDatabase:
score = 0
for each point descriptor in MyFeature:
find minimum distance from the current point to the...
points describing the current feature in the database
if the distance < threshold:
there is a match to the current point in the target feature
score += 1
if score > bestScore:
save feature as new best match
この検索は機能しますが、大規模なデータベースでは明らかに遅くなります。このタイプの検索を行うためのより高速な方法を知っている人はいますか、または少なくとも記述子に明らかに一致しない機能をすばやく除外する方法がある場合は?