added asift.py sample

This commit is contained in:
Alexander Mordvintsev
2012-07-16 12:29:49 +00:00
parent 99e404fe86
commit 3ce5b01543
4 changed files with 145 additions and 3 deletions

View File

@@ -8,7 +8,6 @@ USAGE
to use Flann-based matcher instead bruteforce.
Press left mouse button on a feature point to see its mathcing point.
'''
import numpy as np
@@ -26,10 +25,10 @@ def init_feature(name):
detector = cv2.SIFT()
norm = cv2.NORM_L2
elif chunks[0] == 'surf':
detector = cv2.SURF(1000)
detector = cv2.SURF(800)
norm = cv2.NORM_L2
elif chunks[0] == 'orb':
detector = cv2.ORB(500)
detector = cv2.ORB(400)
norm = cv2.NORM_HAMMING
if 'flann' in chunks:
if norm == cv2.NORM_L2: