IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41954


Ignore:
Timestamp:
Dec 2, 2021, 3:58:54 PM (5 years ago)
Author:
eugene
Message:

add deactivated test pixels, allow values > 1e5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/psModules/src/imcombine/pmStack.c

    r41949 r41954  
    16171617                // skip obviously bad input data
    16181618                if (!isfinite(image->data.F32[yIn][xIn])) continue;
    1619                 if (fabs(image->data.F32[yIn][xIn]) > 1e5) continue; // XXX this cut is a bit arbitrary..
    16201619                if (mask->data.PS_TYPE_IMAGE_MASK_DATA[yIn][xIn] & badMaskBits) continue;
    16211620                if (mask->data.PS_TYPE_IMAGE_MASK_DATA[yIn][xIn] & suspectMaskBits) continue;
     
    16571656            int Nhi = nGood;
    16581657
    1659             if ((x == 3161) && (y == 450)) {
    1660               fprintf (stderr, "test point\n");
    1661             }
    1662 
    16631658            if (nGood >= 5) {
    16641659              int midPoint = nGood / 2;
     
    16821677            int nGoodClip = Nhi - Nlo;
    16831678
     1679            int isTest = false;
     1680            isTest = isTest || ((x == 4743) && (y == 2903));
     1681            isTest = isTest || ((x == 4953) && (y == 2919));
     1682            isTest = isTest || ((x == 4751) && (y == 2725));
     1683            isTest = false;
     1684
     1685            if (isTest) {
     1686              char testname[256];
     1687              snprintf (testname, 256, "testpix.%04d.%04d.txt", (int) x, (int) y);
     1688              FILE *f = fopen (testname, "w");
     1689              int fd = fileno (f);
     1690
     1691              fprintf (f, "# nGood: %d, Nlo: %d, Nhi: %d, nGoodClip: %d\n", nGood, Nlo, Nhi, nGoodClip);
     1692              p_psVectorPrint (fd, pixelData, "pixelData");
     1693              fclose (f);
     1694            }
    16841695            // rather than define a min and max value,
    16851696            // what we really want is a symmetric selection about the middle,
Note: See TracChangeset for help on using the changeset viewer.