We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9916071 commit 186ae32Copy full SHA for 186ae32
erf/analyze_erf.py
@@ -57,7 +57,7 @@ def get_rectangle(data, thresh):
57
selected_area = data[h // 2 - i:h // 2 + 1 + i, w // 2 - i:w // 2 + 1 + i]
58
area_sum = np.sum(selected_area)
59
if area_sum / all_sum > thresh:
60
- return i * 2 + 1, ((i * 2 + 1) / 1024) ** 2
+ return i * 2 + 1, (i * 2 + 1) / h * (i * 2 + 1) / w
61
return None
62
63
@@ -76,4 +76,4 @@ def analyze_erf(args):
76
77
78
if __name__ == '__main__':
79
- analyze_erf(args)
+ analyze_erf(args)
0 commit comments