Changeset 40398 for trunk/Ohana/src/opihi/cmd.data/impeaks.c
- Timestamp:
- Apr 14, 2018, 2:27:25 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/impeaks.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/impeaks.c
r36679 r40398 100 100 int Npeaks = 0; 101 101 for (ix = 1; ix < Nx - 1; ix++) { 102 if (!isfinite(row[ix])) continue; // ignore NAN values 102 103 if (row[ix] < threshold) continue; // only accept pixels above threshold 103 104 if (row[ix] < row[ix - 1]) continue; // peak pixel must be at least preceeding pixel
Note:
See TracChangeset
for help on using the changeset viewer.
