IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13430


Ignore:
Timestamp:
May 18, 2007, 4:26:50 AM (19 years ago)
Author:
rhl
Message:

Don't let the effective area drop below a pixel (allows very small smoothing kernels)

File:
1 edited

Legend:

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

    r13348 r13430  
    8989    // thus, the threshold is:
    9090    float effArea = 4.0*M_PI*PS_SQR(SIGMA_SMTH);
     91    if (effArea < 1) {
     92        effArea = 1;                    // never less than a pixel
     93    }
    9194    float threshold = PS_SQR(NSIGMA_PEAK) / effArea;
    9295
Note: See TracChangeset for help on using the changeset viewer.