IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 18, 2007, 6:33:09 PM (19 years ago)
Author:
magnier
Message:

added trace option output of stats vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageBackground.c

    r10999 r11156  
    77
    88#include "psMemory.h"
     9#include "psTrace.h"
    910#include "psImage.h"
    1011#include "psVector.h"
     
    9899        }
    99100        if (!psVectorStats (stats, values, NULL, NULL, 0)) {
     101            if (psTraceGetLevel("psLib.imageops") >= 5) {
     102                FILE *f = fopen ("vector.dat", "w");
     103                int fd = fileno(f);
     104                p_psVectorPrint (fd, values, "values");
     105                fclose (f);
     106            }
    100107            psError(PS_ERR_UNKNOWN, false, "Unable to measure statistics for image background "
    101108                    "(%dx%d, (row0,col0) = (%d,%d)",
     
    104111            return false;
    105112        }
     113        if (psTraceGetLevel("psLib.imageops") >= 6) {
     114            FILE *f = fopen ("vector.dat", "w");
     115            int fd = fileno(f);
     116            p_psVectorPrint (fd, values, "values");
     117            fclose (f);
     118        }
    106119    }
    107120
Note: See TracChangeset for help on using the changeset viewer.