Skip to content

Commit 186ae32

Browse files
authored
Update analyze_erf.py
1 parent 9916071 commit 186ae32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

erf/analyze_erf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get_rectangle(data, thresh):
5757
selected_area = data[h // 2 - i:h // 2 + 1 + i, w // 2 - i:w // 2 + 1 + i]
5858
area_sum = np.sum(selected_area)
5959
if area_sum / all_sum > thresh:
60-
return i * 2 + 1, ((i * 2 + 1) / 1024) ** 2
60+
return i * 2 + 1, (i * 2 + 1) / h * (i * 2 + 1) / w
6161
return None
6262

6363

@@ -76,4 +76,4 @@ def analyze_erf(args):
7676

7777

7878
if __name__ == '__main__':
79-
analyze_erf(args)
79+
analyze_erf(args)

0 commit comments

Comments
 (0)