Changeset 11969
- Timestamp:
- 09/05/11 16:29:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/DrsCalib.h
r11891 r11969 378 378 } 379 379 380 static void GetPixelMax(float *ptr, const float *data, uint16_t roi, uint16_t first, uint16_t last) 381 { 382 if (roi==0 || first>=roi || last>=roi || last<first) 383 return; 384 385 386 387 for (int i=0; i<1440; i++) 388 { 389 const float *vec = data+i*roi+first; 390 391 int pos = 0; 392 for (int j=first+1; j<=last; j++) 393 if (vec[j]>vec[pos]) 394 pos = j; 395 396 *(ptr+1440+i) = vec[pos]; 397 } 398 } 399 380 400 const vector<int64_t> &GetSum() const { return fSum; } 381 401
Note:
See TracChangeset
for help on using the changeset viewer.