IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 31, 2006, 12:56:03 PM (20 years ago)
Author:
Paul Price
Message:

Calculating statistics for combined image wasn't working properly --- was outputting nothing. The statistics calculation was being performed after everything was freed. Moved statistics calculation into the combine loop. Results are still written by the main function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppMerge/src/ppMerge.c

    r8405 r8720  
    22#include <pslib.h>
    33#include <psmodules.h>
    4 #include <ppStats.h>
    54
    65#include "ppMerge.h"
     
    5049    ppMergeCombine(scale, zero, data, options, config);
    5150
     51    // Output the statistics
    5252    if (data->statsFile) {
    53         psMetadata *stats = ppStats(NULL, data->out, NULL, config); // Statistics for output FPA
    54         psString statsOut = psMetadataConfigFormat(stats); // String to write out
     53        psString statsOut = psMetadataConfigFormat(data->stats); // String to write out
    5554        fprintf(data->statsFile, "%s", statsOut);
    5655        psFree(statsOut);
    57         psFree(stats);
    5856    }
    5957
Note: See TracChangeset for help on using the changeset viewer.