Changeset 11988
- Timestamp:
- 09/06/11 21:36:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/FactGui.h
r11967 r11988 2381 2381 for (int i=0; i<59; i++) 2382 2382 SetFscValue(boxes[i], d, i, enable); 2383 2384 if (!enable) 2385 return; 2386 2387 const float *ptr = d.ptr<float>(); 2388 2389 double avg = 0; 2390 int num = 0; 2391 for (int i=0; i<31; i++) 2392 if (ptr[i]!=0) 2393 { 2394 avg += ptr[i]; 2395 num ++; 2396 } 2397 2398 fTempCamAvg->setValue(num?avg/num:0); 2383 2399 } 2384 2400
Note:
See TracChangeset
for help on using the changeset viewer.