IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29531


Ignore:
Timestamp:
Oct 22, 2010, 5:08:47 PM (16 years ago)
Author:
eugene
Message:

switch to 2.0*R1 (1st radial moment) to define normalization window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100823/psModules/src/imcombine/pmSubtractionStamps.c

    r29449 r29531  
    790790    psTrace("psModules.imcombine", 3, "Window total (2): %f, threshold: %f\n", sum2, (1.0 - stamps->normFrac) * sum2);
    791791
    792 # if (0)
     792# if (1)
    793793    // this block attempts to calculate the radius based on the first radial moment
    794     bool done1 = false;
    795     bool done2 = false;
    796     double prior1 = 0.0;
    797     double prior2 = 0.0;
     794    double Sr1 = 0.0;
     795    double Sr2 = 0.0;
     796    double Sf1 = 0.0;
     797    double Sf2 = 0.0;
    798798    for (int y = -size; y <= size; y++) {
    799799        for (int x = -size; x <= size; x++) {
     
    809809    float R2 = Sr2 / Sf2;
    810810
    811     stamps->normWindow1 = 2.5*R1;
    812     stamps->normWindow1 = 2.5*R2;
     811    stamps->normWindow1 = 2.0*R1;
     812    stamps->normWindow2 = 2.0*R2;
     813    psLogMsg ("psModules.imcombine", PS_LOG_DETAIL, "Kron Radii: %f for 1, %f for 2\n", stamps->normWindow1, stamps->normWindow2);
     814
    813815# else
    814816    // XXX : this block attempts to calculate the radius by looking at the curve of growth (or something vaguely equivalent).
Note: See TracChangeset for help on using the changeset viewer.