IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 14, 2013, 6:09:10 AM (13 years ago)
Author:
eugene
Message:

add option to specify that sources are subtracted or not in the target readout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotMergeSources.c

    r34266 r36117  
    812812// array containing the child sources.  XXX currently, this is only used by psphotStackReadout
    813813// (sources go on allSources so that psphotChoosePSF can be called repeatedly)
    814 psArray *psphotSourceChildrenByObject (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objectsSrc) {
     814psArray *psphotSourceChildrenByObject (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objectsSrc, bool sourcesSubtracted) {
    815815
    816816    bool status;
     
    919919            // child sources have not been subtracted in this image, but this flag may be raised if
    920920            // they were subtracted in the parent's image
    921             sourceOut->tmpFlags &= ~PM_SOURCE_TMPF_SUBTRACTED;
     921            // XXX NOTE : in the pre-20130914 version of psphotStack, we carried a copy of the pixels
     922            // generated before the subtraction took place (and then we smoothed to match the desired PSF). 
     923            // in the new version, we copy the image after subtraction; we need to distinguish these cases
     924            if (!sourcesSubtracted) {
     925                sourceOut->tmpFlags &= ~PM_SOURCE_TMPF_SUBTRACTED;
     926            }
    922927
    923928            // set the output detections:
Note: See TracChangeset for help on using the changeset viewer.