回答編集履歴

2

余計なお世話を追記

2021/12/17 09:37

投稿

fana
fana

スコア11996

test CHANGED
@@ -3,6 +3,26 @@
3
3
 
4
4
 
5
5
  16bitなのに unsigned char でアクセスするのは間違ってますよね.
6
+
7
+
8
+
9
+ 画素値総和を求む箇所が何だか冗長に見えます.
10
+
11
+ (途中で配列に各画像の画素値を入れるようなことに特段の必要性が無いのであれば)このくらいで良いのでは:
12
+
13
+
14
+
15
+ ```C++
16
+
17
+ totaloutput = 0; //全0
18
+
19
+
20
+
21
+ for(int z = 0; z < EXPECTED_IMAGES; z++)
22
+
23
+ { cv::add( images[z], totaloutput, totaloutput, cv::noArray(), totaloutput.depth() ); }
24
+
25
+ ```
6
26
 
7
27
 
8
28
 

1

文字Tが削れちゃったのを修正

2021/12/17 09:37

投稿

fana
fana

スコア11996

test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  If the image is 8-bit unsigned, it is displayed as is.
20
20
 
21
- If the image is 16-bit unsigned or 32-bit integer, the pixels are divided by 256. hat is, the value range [0,255*256] is mapped to [0,255].
21
+ If the image is 16-bit unsigned or 32-bit integer, the pixels are divided by 256. That is, the value range [0,255*256] is mapped to [0,255].
22
22
 
23
23
  If the image is 32-bit or 64-bit floating-point, the pixel values are multiplied by 255. That is, the value range [0,1] is mapped to [0,255].
24
24