Changeset 12049
- Timestamp:
- 09/08/11 22:09:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/DrsCalib.h
r12045 r12049 383 383 return; 384 384 385 386 387 385 for (int i=0; i<1440; i++) 388 386 { 389 const float *vec = data+i*roi+first; 390 391 int pos = 0; 387 const float *vec = data+i*roi; 388 389 float &max = ptr[i]; 390 391 max = vec[first]; 392 392 for (int j=first+1; j<=last; j++) 393 if (vec[j]>vec[pos]) 394 pos = j; 395 396 ptr[i] = vec[pos]; 393 if (vec[j]>max) 394 max = vec[j]; 397 395 } 398 396 }
Note:
See TracChangeset
for help on using the changeset viewer.