Skip to content
Snippets Groups Projects
Commit 51a85738 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 157d51ee
No related branches found
No related tags found
No related merge requests found
......@@ -1040,13 +1040,11 @@ def analyze2(nda_m, nda_i):
for j in range(1, 65):
for i in range(1, 65):
sum = nda_m[j-1:j+2, i-1:i+2]
# cf_m[j-1, i-1] = sum/9
cf_m[j-1, i-1] = sum
sub_3x3 = nda_m[j-1:j+2, i-1:i+2]
cf_m[j-1, i-1] = np.sum(sub_3x3)
sum = nda_i[j*2-1:j*2+3, i*2-1:i*2+3]
# cf_i[j-1, i-1] = sum/16
cf_i[j-1, i-1] = sum
sub_4x4 = nda_i[j*2-1:j*2+3, i*2-1:i*2+3]
cf_i[j-1, i-1] = np.sum(sub_4x4)
# cat_0 = cf_m == 0
# cat_1 = (cf_m >= 0.1) & (cf_m < 0.13)
......@@ -1086,6 +1084,8 @@ def analyze2(nda_m, nda_i):
cf_i[cat_1] = 1
cf_i[cat_2] = 2
return cf_m, cf_i
if __name__ == "__main__":
nn = SRCNN()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment