IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15936


Ignore:
Timestamp:
Dec 27, 2007, 1:18:30 PM (18 years ago)
Author:
eugene
Message:

split psphotImageMedian into psphotModelBackground and psphotSubtractBackground

Location:
trunk/psphot/src
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/Makefile.am

    r15562 r15936  
    2525        psphotDefineFiles.c      \
    2626        psphotReadout.c          \
    27         psphotImageMedian.c      \
     27        psphotModelBackground.c  \
     28        psphotSubtractBackground.c \
    2829        psphotFindPeaks.c        \
    2930        psphotSourceStats.c      \
  • trunk/psphot/src/psphot.h

    r15562 r15936  
    2626
    2727// psphotReadout functions
    28 bool            psphotImageMedian (pmConfig *config, const pmFPAview *view, psMaskType maskVal);
     28bool            psphotModelBackground (pmConfig *config, const pmFPAview *view, const char *filename, psMaskType maskVal);
     29bool            psphotSubtractBackground (pmConfig *config, const pmFPAview *view, const char *filename, psMaskType maskVal) ;
    2930psArray        *psphotFindPeaks (pmReadout *readout, psMetadata *recipe,
    3031                                 const bool returnFootprints, const int pass, psMaskType maskVal);
  • trunk/psphot/src/psphotReadout.c

    r15231 r15936  
    6868
    6969    // generate a background model (median, smoothed image)
    70     if (!psphotImageMedian (config, view, maskVal)) {
     70    if (!psphotModelBackground (config, view, "PSPHOT.INPUT", maskVal)) {
     71        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL);
     72    }
     73    if (!psphotSubtractBackground (config, view, "PSPHOT.INPUT", maskVal)) {
    7174        return psphotReadoutCleanup (config, readout, recipe, NULL, NULL);
    7275    }
Note: See TracChangeset for help on using the changeset viewer.