IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 24, 2006, 11:06:14 AM (20 years ago)
Author:
eugene
Message:

fixed code to measure local background for sources: added new function psphotSelectBackground, new args for psphotMagnitudes

File:
1 edited

Legend:

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

    r10138 r10185  
    3232    // generate a background model (median, smoothed image)
    3333    psphotImageMedian (config, view);
     34
     35    pmReadout *background = psphotSelectBackground (config, view);
    3436
    3537    // find the peaks in the image
     
    111113
    112114    // calculate source magnitudes
    113     psphotMagnitudes(sources, recipe, psf, config);
     115    psphotMagnitudes(sources, recipe, psf, background);
    114116
    115117    // replace background in residual image
Note: See TracChangeset for help on using the changeset viewer.