Changeset 30139
- Timestamp:
- Dec 21, 2010, 2:54:21 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20101205/psModules/src/objects
- Files:
-
- 2 edited
-
pmSource.c (modified) (3 diffs)
-
pmSource.h (modified) (1 diff)
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 -
branches/eam_branches/ipp-20101205/psModules/src/objects/pmSource.h
r30087 r30139 159 159 psF32 x, ///< center coords of source 160 160 psF32 y, ///< center coords of source 161 psF32 Radius ///< size of box on source 161 psF32 Radius, ///< size of box on source 162 bool force ///< guaranteed pixels are re-assigned 162 163 ); 163 164
Note:
See TracChangeset
for help on using the changeset viewer.
