IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 25, 2021, 2:22:11 PM (5 years ago)
Author:
eugene
Message:

allow option to use signal image on first pass for detections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/psphot/src/psphotSignificanceImage.c

    r35688 r41968  
    105105              //              float v2 = value + PS_SQR(value/100.0);
    106106              // CZW 2013-06-20: I don't think this hack was helping.
     107              // EAM 2021-12-21: see note below about divots in the significance image
    107108              float v2 = value;
    108109              smooth_wt->data.F32[j][i] = factor * PS_SQR(v2) / smooth_wt->data.F32[j][i];
     
    122123    }
    123124    psImageConvolveSetThreads(oldThreads);
     125
     126    // We now have the significance image and the signal image.  In some cases (e.g.,
     127    // stacks), the variance on pixels in the cores of stars is elevated compared to pure
     128    // poisson statistics.  In this case, especially at high signal levels, the ratio of
     129    // signal / noise in the core of the star can be lower than the surrounding ring of
     130    // pixels.  This results in a divot in the center of the star in the significance
     131    // image.  the apparent peak of the significance is then not centered on the star and
     132    // chaos ensues.  A possible fix is to use the signal image for signficance for
     133    // the high S/N detection pass.
    124134
    125135    pmReadout *significanceRO = pmReadoutAlloc(NULL);
Note: See TracChangeset for help on using the changeset viewer.