Changeset 36117 for trunk/psphot/src
- Timestamp:
- Sep 14, 2013, 6:09:10 AM (13 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 2 edited
-
psphot.h (modified) (1 diff)
-
psphotMergeSources.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.h
r35769 r36117 475 475 bool psphotSourceChildren (pmConfig *config, const pmFPAview *view, const char *ruleOut, const char *ruleSrc); 476 476 bool psphotSourceChildrenReadout (pmConfig *config, const pmFPAview *view, const char *ruleOut, const char *ruleSrc, int index); 477 psArray *psphotSourceChildrenByObject (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objectsSrc );477 psArray *psphotSourceChildrenByObject (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objectsSrc, bool sourcesSubtracted); 478 478 479 479 bool psphotSourceParents (pmConfig *config, const pmFPAview *view, const char *ruleOut, const char *ruleSrc); -
trunk/psphot/src/psphotMergeSources.c
r34266 r36117 812 812 // array containing the child sources. XXX currently, this is only used by psphotStackReadout 813 813 // (sources go on allSources so that psphotChoosePSF can be called repeatedly) 814 psArray *psphotSourceChildrenByObject (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objectsSrc ) {814 psArray *psphotSourceChildrenByObject (pmConfig *config, const pmFPAview *view, const char *filerule, psArray *objectsSrc, bool sourcesSubtracted) { 815 815 816 816 bool status; … … 919 919 // child sources have not been subtracted in this image, but this flag may be raised if 920 920 // 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 } 922 927 923 928 // set the output detections:
Note:
See TracChangeset
for help on using the changeset viewer.
