Changeset 41954
- Timestamp:
- Dec 2, 2021, 3:58:54 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/psModules/src/imcombine/pmStack.c
r41949 r41954 1617 1617 // skip obviously bad input data 1618 1618 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..1620 1619 if (mask->data.PS_TYPE_IMAGE_MASK_DATA[yIn][xIn] & badMaskBits) continue; 1621 1620 if (mask->data.PS_TYPE_IMAGE_MASK_DATA[yIn][xIn] & suspectMaskBits) continue; … … 1657 1656 int Nhi = nGood; 1658 1657 1659 if ((x == 3161) && (y == 450)) {1660 fprintf (stderr, "test point\n");1661 }1662 1663 1658 if (nGood >= 5) { 1664 1659 int midPoint = nGood / 2; … … 1682 1677 int nGoodClip = Nhi - Nlo; 1683 1678 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 } 1684 1695 // rather than define a min and max value, 1685 1696 // what we really want is a symmetric selection about the middle,
Note:
See TracChangeset
for help on using the changeset viewer.
