IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2013, 4:14:19 PM (13 years ago)
Author:
eugene
Message:

merge from trunk

Location:
branches/eam_branches/ipp-20130904/psphot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psphot

  • branches/eam_branches/ipp-20130904/psphot/src

  • branches/eam_branches/ipp-20130904/psphot/src/psphotMergeSources.c

    r36161 r36198  
    844844// array containing the child sources.  XXX currently, this is only used by psphotStackReadout
    845845// (sources go on allSources so that psphotChoosePSF can be called repeatedly)
    846 psArray *psphotSourceChildrenByObject (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objectsSrc) {
     846psArray *psphotSourceChildrenByObject (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objectsSrc, bool sourcesSubtracted) {
    847847
    848848    bool status;
     
    951951            // child sources have not been subtracted in this image, but this flag may be raised if
    952952            // they were subtracted in the parent's image
    953             sourceOut->tmpFlags &= ~PM_SOURCE_TMPF_SUBTRACTED;
     953            // XXX NOTE : in the pre-20130914 version of psphotStack, we carried a copy of the pixels
     954            // generated before the subtraction took place (and then we smoothed to match the desired PSF). 
     955            // in the new version, we copy the image after subtraction; we need to distinguish these cases
     956            if (!sourcesSubtracted) {
     957                sourceOut->tmpFlags &= ~PM_SOURCE_TMPF_SUBTRACTED;
     958            }
    954959
    955960            // set the output detections:
Note: See TracChangeset for help on using the changeset viewer.