Changeset 13034 for trunk/psModules/src/concepts/pmConceptsUpdate.c
- Timestamp:
- Apr 25, 2007, 3:20:29 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/concepts/pmConceptsUpdate.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/concepts/pmConceptsUpdate.c
r12696 r13034 44 44 psRegion *trimsec = psMetadataLookupPtr(NULL, cell->concepts, "CELL.TRIMSEC"); // Trim section 45 45 *trimsec = psImageBinningSetRuffRegion (binning, *trimsec); 46 // force integer pixels : truncate x0, roundup x1: 47 trimsec->x0 = (int)trimsec->x0; 48 if (trimsec->x1 > (int)trimsec->x1) { 49 trimsec->x1 = (int)trimsec->x1 + 1; 50 } else { 51 trimsec->x1 = (int)trimsec->x1; 52 } 53 trimsec->y0 = (int)trimsec->y0; 54 if (trimsec->y1 > (int)trimsec->y1) { 55 trimsec->y1 = (int)trimsec->y1 + 1; 56 } else { 57 trimsec->y1 = (int)trimsec->y1; 58 } 46 59 psMetadataRemoveKey(cell->concepts, "CELL.TRIMSEC.UPDATE"); 47 60 } … … 54 67 while ((biassec = psListGetAndIncrement(biassecsIter))) { 55 68 *biassec = psImageBinningSetRuffRegion (binning, *biassec); 69 // force integer pixels : truncate x0, roundup x1: 70 biassec->x0 = (int)biassec->x0; 71 if (biassec->x1 > (int)biassec->x1) { 72 biassec->x1 = (int)biassec->x1 + 1; 73 } else { 74 biassec->x1 = (int)biassec->x1; 75 } 76 biassec->y0 = (int)biassec->y0; 77 if (biassec->y1 > (int)biassec->y1) { 78 biassec->y1 = (int)biassec->y1 + 1; 79 } else { 80 biassec->y1 = (int)biassec->y1; 81 } 56 82 } 57 83 psFree(biassecsIter);
Note:
See TracChangeset
for help on using the changeset viewer.
