|
|
@ -108,15 +108,15 @@ kp = fast.detect(img,None) |
|
|
|
img2 = cv2.drawKeypoints(img, kp, None, color=(255,0,0)) |
|
|
|
img2 = cv2.drawKeypoints(img, kp, None, color=(255,0,0)) |
|
|
|
|
|
|
|
|
|
|
|
# Print all default params |
|
|
|
# Print all default params |
|
|
|
print "Threshold: ", fast.getInt('threshold') |
|
|
|
print "Threshold: ", fast.getThreshold() |
|
|
|
print "nonmaxSuppression: ", fast.getBool('nonmaxSuppression') |
|
|
|
print "nonmaxSuppression: ", fast.getNonmaxSuppression() |
|
|
|
print "neighborhood: ", fast.getInt('type') |
|
|
|
print "neighborhood: ", fast.getType() |
|
|
|
print "Total Keypoints with nonmaxSuppression: ", len(kp) |
|
|
|
print "Total Keypoints with nonmaxSuppression: ", len(kp) |
|
|
|
|
|
|
|
|
|
|
|
cv2.imwrite('fast_true.png',img2) |
|
|
|
cv2.imwrite('fast_true.png',img2) |
|
|
|
|
|
|
|
|
|
|
|
# Disable nonmaxSuppression |
|
|
|
# Disable nonmaxSuppression |
|
|
|
fast.setBool('nonmaxSuppression',0) |
|
|
|
fast.setNonmaxSuppression(0) |
|
|
|
kp = fast.detect(img,None) |
|
|
|
kp = fast.detect(img,None) |
|
|
|
|
|
|
|
|
|
|
|
print "Total Keypoints without nonmaxSuppression: ", len(kp) |
|
|
|
print "Total Keypoints without nonmaxSuppression: ", len(kp) |
|
|
|