IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30139


Ignore:
Timestamp:
Dec 21, 2010, 2:54:21 PM (15 years ago)
Author:
eugene
Message:

option to force pixel redefinition

Location:
branches/eam_branches/ipp-20101205/psModules/src/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101205/psModules/src/objects/pmSource.c

    r30090 r30139  
    286286                            psF32 x,
    287287                            psF32 y,
    288                             psF32 Radius)
     288                            psF32 Radius,
     289                            bool force)
    289290{
    290291    PS_ASSERT_PTR_NON_NULL(mySource, false);
     
    300301    newRegion = psRegionForImage (readout->image, newRegion);
    301302
    302     extend = false;
     303    // re-define if (a) required externally (force = true) or (b) required internally
     304    extend = force;
    303305    extend |= (int)(newRegion.x0) < (int)(mySource->region.x0);
    304306    extend |= (int)(newRegion.x1) > (int)(mySource->region.x1);
     
    10201022    }
    10211023
    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;
    10301030    }
    10311031
  • branches/eam_branches/ipp-20101205/psModules/src/objects/pmSource.h

    r30087 r30139  
    159159    psF32 x,     ///< center coords of source
    160160    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
    162163);
    163164
Note: See TracChangeset for help on using the changeset viewer.