IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26426


Ignore:
Timestamp:
Dec 15, 2009, 6:21:13 PM (16 years ago)
Author:
eugene
Message:

allow negative pixels, and thus negative second moments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/psModules/src/objects/pmSourceMoments.c

    r25979 r26426  
    135135            // stars.
    136136            if (PS_SQR(pDiff) < minSN2*wDiff) continue;
    137             if (pDiff < 0) continue; // XXX : MWV says I should include < 0.0 valued points...
     137            // if (pDiff < 0) continue; // XXX : MWV says I should include < 0.0 valued points...
    138138
    139139            // Apply a Gaussian window function.  Be careful with the window function.  S/N
     
    249249            // stars.
    250250            if (PS_SQR(pDiff) < minSN2*wDiff) continue;
    251             if (pDiff < 0) continue;
     251            // if (pDiff < 0) continue;
    252252
    253253            // Apply a Gaussian window function.  Be careful with the window function.  S/N
     
    315315    source->moments->Myyyy = YYYY/Sum;
    316316
    317     if (source->moments->Mxx < 0) {
    318         fprintf (stderr, "error: neg second moment??\n");
    319     }
    320     if (source->moments->Myy < 0) {
    321         fprintf (stderr, "error: neg second moment??\n");
    322     }
     317    // if (source->moments->Mxx < 0) {
     318    // fprintf (stderr, "error: neg second moment??\n");
     319    // }
     320    // if (source->moments->Myy < 0) {
     321    // fprintf (stderr, "error: neg second moment??\n");
     322    // }
    323323
    324324    psTrace ("psModules.objects", 4, "Mxx: %f  Mxy: %f  Myy: %f  Mxxx: %f  Mxxy: %f  Mxyy: %f  Myyy: %f  Mxxxx: %f  Mxxxy: %f  Mxxyy: %f  Mxyyy: %f  Mxyyy: %f\n",
Note: See TracChangeset for help on using the changeset viewer.