Changeset 31443 for branches/eam_branches/ipp-20110404/psModules/src/objects/pmFootprintAssignPeaks.c
- Timestamp:
- May 5, 2011, 10:11:07 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110404/psModules/src/objects/pmFootprintAssignPeaks.c
r31153 r31443 35 35 assert (peaks->n == 0 || psMemCheckPeak(peaks->data[0])); 36 36 37 if (footprints->n == 0) { 38 if (peaks->n > 0) { 39 return psError(PS_ERR_BAD_PARAMETER_SIZE, true, "Your list of footprints is empty"); 40 } 37 if ((footprints->n == 0) && (peaks->n == 0)) { 41 38 return PS_ERR_NONE; 42 39 } 40 43 41 /* 44 42 * Create an image filled with the object IDs, and use it to assign pmPeaks to the … … 59 57 60 58 if (ids) { assert (x >= 0 && x < numCols && y >= 0 && y < numRows);} 61 int id = ids ? ids->data.S32[y][x - col0] : 0; 62 // XXX I think the '[x - col0]' above is just wrong (should be [x], but never gets triggerd. 59 int id = ids ? ids->data.S32[y][x] : 0; 63 60 64 61 if (id == 0) { // peak isn't in a footprint, so make one for it
Note:
See TracChangeset
for help on using the changeset viewer.
