- Timestamp:
- Dec 21, 2010, 2:54:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20101205/psModules/src/objects/pmSource.c
r30090 r30139 286 286 psF32 x, 287 287 psF32 y, 288 psF32 Radius) 288 psF32 Radius, 289 bool force) 289 290 { 290 291 PS_ASSERT_PTR_NON_NULL(mySource, false); … … 300 301 newRegion = psRegionForImage (readout->image, newRegion); 301 302 302 extend = false; 303 // re-define if (a) required externally (force = true) or (b) required internally 304 extend = force; 303 305 extend |= (int)(newRegion.x0) < (int)(mySource->region.x0); 304 306 extend |= (int)(newRegion.x1) > (int)(mySource->region.x1); … … 1020 1022 } 1021 1023 1022 if (!addNoise) { 1023 if (add) { 1024 status = pmModelAddWithOffset (target, source->maskObj, model, PM_MODEL_OP_FULL, maskVal, dx, dy); 1025 source->tmpFlags &= ~PM_SOURCE_TMPF_SUBTRACTED; 1026 } else { 1027 status = pmModelSubWithOffset (target, source->maskObj, model, PM_MODEL_OP_FULL, maskVal, dx, dy); 1028 source->tmpFlags |= PM_SOURCE_TMPF_SUBTRACTED; 1029 } 1024 if (add) { 1025 status = pmModelAddWithOffset (target, source->maskObj, model, PM_MODEL_OP_FULL, maskVal, dx, dy); 1026 source->tmpFlags &= ~PM_SOURCE_TMPF_SUBTRACTED; 1027 } else { 1028 status = pmModelSubWithOffset (target, source->maskObj, model, PM_MODEL_OP_FULL, maskVal, dx, dy); 1029 source->tmpFlags |= PM_SOURCE_TMPF_SUBTRACTED; 1030 1030 } 1031 1031
Note:
See TracChangeset
for help on using the changeset viewer.
