IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33667


Ignore:
Timestamp:
Apr 3, 2012, 3:11:48 PM (14 years ago)
Author:
watersc1
Message:

trace change in checkNoise code.

File:
1 edited

Legend:

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

    r33590 r33667  
    7777            *stats = *statsDefaults;
    7878            statsDefaults->tmpData = NULL;
    79 
     79           
    8080            psImageStats (stats, subset, submask, 0xffff);
    8181
     
    8484            // float normVariance = PS_SQR(stats->sampleStdev) / cellMedian;
    8585            // if (!isfinite(normVariance)) fprintf (stderr, "** normVariance is nan **\n");
    86 
     86            psTrace("ppImage.noise",3,
     87                    "PPIM.N: %s %s %d %d (%d %d) %f\n",
     88                    psMetadataLookupStr(NULL,inReadout->parent->parent->concepts,"CHIP.NAME"),
     89                    psMetadataLookupStr(NULL,inReadout->parent->concepts,"CELL.NAME"),
     90                    ix,iy,subset->numCols,subset->numRows,normVariance);
     91                   
     92            for (int dy = 0; dy < subset->numRows; dy++) {
     93              for (int dx = 0; dx < subset->numCols; dx++) {
     94                psTrace("ppImage.noise",5,
     95                        "PPIN: %s %s %d %d %d %d %f %d %f\n",
     96                        psMetadataLookupStr(NULL,inReadout->parent->parent->concepts,"CHIP.NAME"),
     97                        psMetadataLookupStr(NULL,inReadout->parent->concepts,"CELL.NAME"),
     98                        ix,iy,dx,dy,
     99                        subset->data.F32[dy][dx],
     100                        (int) submask->data.PS_TYPE_VECTOR_MASK_DATA[dy][dx],
     101                        normVariance);
     102              }
     103            }
     104            //      binning->data.F32[iy][ix] = normVariance;
    87105            // apply resulting value to the input pixels
    88106            for (int jy = fineRegion.y0; jy < fineRegion.y1; jy++) {
     
    100118        }
    101119    }
    102 
     120   
    103121    psFree (rng);
    104122    psFree (binning);
Note: See TracChangeset for help on using the changeset viewer.