回答編集履歴

1

追記

2018/02/01 14:34

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -51,3 +51,27 @@
51
51
  data.append(tmp_data)
52
52
 
53
53
  ```
54
+
55
+
56
+
57
+ ところで、imgArrayのそれぞれの列の合計を知りたいだけなら、次で良い気もします。
58
+
59
+ ```Python
60
+
61
+ import numpy as np
62
+
63
+ from PIL import Image
64
+
65
+
66
+
67
+ imgArray = np.asarray(
68
+
69
+ Image.open("./sample.bmp")
70
+
71
+ )
72
+
73
+
74
+
75
+ data = np.sum(imgArray, axis=0)
76
+
77
+ ```