IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 14, 2010, 10:21:12 AM (17 years ago)
Author:
eugene
Message:

pmSourceMoments now takes the image mask; it is not not an error to find no peaks in an image

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psphot/src/psphotSourceStats.c

    r26317 r26596  
    325325
    326326        // measure basic source moments (no S/N clipping on input pixels)
    327         status = pmSourceMoments (source, RADIUS, SIGMA, 0.0);
     327        status = pmSourceMoments (source, RADIUS, SIGMA, 0.0, maskVal);
    328328        if (status) {
    329329            Nmoments ++;
     
    335335        BIG_RADIUS = PS_MIN (INNER, 3*RADIUS);
    336336        psTrace ("psphot", 4, "retrying moments for %d, %d\n", source->peak->x, source->peak->y);
    337         status = pmSourceMoments (source, BIG_RADIUS, 3.0*SIGMA, 0.0);
     337        status = pmSourceMoments (source, BIG_RADIUS, 3.0*SIGMA, 0.0, maskVal);
    338338        if (status) {
    339339            source->mode |= PM_SOURCE_MODE_BIG_RADIUS;
     
    394394
    395395            // measure basic source moments (no S/N clipping on input pixels)
    396             status = pmSourceMoments (source, 4*sigma[i], sigma[i], 0.0);
     396            status = pmSourceMoments (source, 4*sigma[i], sigma[i], 0.0, 0xffff);
    397397        }
    398398
Note: See TracChangeset for help on using the changeset viewer.