IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24117 for trunk/ppImage


Ignore:
Timestamp:
May 8, 2009, 2:02:37 PM (17 years ago)
Author:
eugene
Message:

accidentally skipped the last row and column

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageCheckCTE.c

    r23411 r24117  
    6060            fineRegion = psImageBinningSetFineRegion (binning, ruffRegion);
    6161            fineRegion = psRegionForImage (image, fineRegion);
    62             if (fineRegion.x0 >= image->numCols || fineRegion.x1 >= image->numCols ||
    63                 fineRegion.y0 >= image->numRows || fineRegion.y1 >= image->numRows) {
    64                 continue;
    65             }
     62            if (fineRegion.x0 >= image->numCols) continue;
     63            if (fineRegion.y0 >= image->numRows) continue;
    6664
    6765            psImage *subset  = psImageSubset (image, fineRegion);
     
    8583            float normVariance = PS_SQR(stats->robustStdev) / cellMedian;
    8684            // float normVariance = PS_SQR(stats->sampleStdev) / cellMedian;
     85            // if (!isfinite(normVariance)) fprintf (stderr, "** normVariance is nan **\n");
    8786
    8887            // apply resulting value to the input pixels
    8988            for (int jy = fineRegion.y0; jy < fineRegion.y1; jy++) {
     89              if (jy < 0) continue;
     90              if (jy >= image->numRows) continue;
    9091              for (int jx = fineRegion.x0; jx < fineRegion.x1; jx++) {
     92                if (jx < 0) continue;
     93                if (jx >= image->numCols) continue;
    9194                image->data.F32[jy][jx] = normVariance;
    9295              }
Note: See TracChangeset for help on using the changeset viewer.