PEP8 corrections and stylistic changes

This commit is contained in:
Ankit Agrawal
2013-08-15 15:15:41 +05:30
parent b61b330355
commit 3ee183fdf8
2 changed files with 10 additions and 9 deletions
+5 -5
View File
@@ -20,17 +20,16 @@ max_scale = 7
nms_threshold = 0.15
rpc_threshold = 10
# Plotting features for the following modes
# Detecting Censure keypoints for the following filters
for mode in ['dob', 'octagon', 'star']:
kp_censure, scale = keypoints_censure(gray_img, min_scale, max_scale,
mode, nms_threshold,rpc_threshold)
mode, nms_threshold, rpc_threshold)
f, axarr = plt.subplots((max_scale - min_scale + 1) // 3, 3)
# Plotting Censure features at all the scales
for i in range(max_scale - min_scale - 1):
keypoints = kp_censure[scale == i + min_scale + 1]
keypoints = kp_censure[scale == i + min_scale + 1]
num = len(keypoints)
x = keypoints[:, 1]
y = keypoints[:, 0]
@@ -42,5 +41,6 @@ for mode in ['dob', 'octagon', 'star']:
'scale %d' % (num, mode, i +
min_scale + 1))
plt.suptitle('NMS threshold = %f, RPC threshold = %d' % (nms_threshold, rpc_threshold))
plt.suptitle('NMS threshold = %f, RPC threshold = %d'
% (nms_threshold, rpc_threshold))
plt.show()