IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15118


Ignore:
Timestamp:
Sep 29, 2007, 12:19:19 PM (19 years ago)
Author:
eugene
Message:

option to increase trace level on background cells

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotImageMedian.c

    r14942 r15118  
    201201            psVector *sample = NULL;
    202202
     203            // turn on stats tracing in desired cells
     204            # if (1)
     205            psMetadata *plots = psMetadataLookupPtr (&status, recipe, "DIAGNOSTIC.PLOTS");
     206            assert (plots);
     207           
     208            int xPlot = psMetadataLookupS32 (&status, plots, "IMAGE.BACKGROUND.CELL.HISTOGRAM.X");
     209            assert (status);
     210            int yPlot = psMetadataLookupS32 (&status, plots, "IMAGE.BACKGROUND.CELL.HISTOGRAM.Y");
     211            assert (status);
     212
     213            bool gotX = (xPlot < 0) || (xPlot == ix);
     214            bool gotY = (yPlot < 0) || (yPlot == iy);
     215
     216            if (gotX && gotY) {
     217                psTraceSetLevel ("psLib.math.vectorFittedStats_v4", 6);
     218                psTraceSetLevel ("psLib.math.vectorRobustStats", 6);
     219            } else {
     220                psTraceSetLevel ("psLib.math.vectorFittedStats_v4", 0);
     221                psTraceSetLevel ("psLib.math.vectorRobustStats", 0);
     222            }       
     223            # endif
     224
    203225            if (psImageBackground(stats, &sample, subset, submask, maskVal, rng)) {
    204226                if (stats->options & PS_STAT_ROBUST_QUARTILE) {
Note: See TracChangeset for help on using the changeset viewer.