質問編集履歴

1

変更

2020/10/05 02:09

投稿

trafalbad
trafalbad

スコア303

test CHANGED
File without changes
test CHANGED
@@ -14,17 +14,23 @@
14
14
 
15
15
  //PostProc()の中
16
16
 
17
+ std::vector<float> segment;
18
+
17
19
  for (int r=0; r<height; r++) { //loop over rows
18
20
 
19
21
  for (int c=0; c<width; c++) { //loop over columns
20
-
21
- double sum = 0.0f;
22
22
 
23
23
  for (int d=0; d<depth; d++) { //loop over depth (classes)
24
24
 
25
25
  segment = result[d*width*height+r*width+c];
26
26
 
27
27
  posit = max_element(segment.bigin(), segment.end());
28
+
29
+ }
30
+
31
+ }
32
+
33
+ }
28
34
 
29
35
  ```
30
36
 
@@ -162,8 +168,6 @@
162
168
 
163
169
  for (int c=0; c<width; c++) { //loop over columns
164
170
 
165
- double sum = 0.0f;
166
-
167
171
  for (int d=0; d<depth; d++) { //loop over depth (classes)
168
172
 
169
173
  segment = result[d*width*height+r*width+c];