IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2007, 10:01:23 AM (19 years ago)
Author:
eugene
Message:

consolidating includes in ppImage.h; adding ppImageMetadataStats and ppImagePixelStats

File:
1 edited

Legend:

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

    r13970 r14000  
    44
    55#include "ppImage.h"
    6 #include "ppImageDetrendFringe.h"
    7 #include "ppImageVersion.h"
    86
    97bool ppImageLoop (pmConfig *config, ppImageOptions *options) {
     
    8886       
    8987        // measure various statistics for this image
    90         if (!ppImageStats (config, chip, view, options)) {
     88        if (!ppImagePixelStats (config, options, view)) {
    9189            psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to measures stats for image");
    9290            psFree (view);
     
    119117        }
    120118
    121         // Close cells
     119        // Close cells (XXX shouldn't pmFPAfileClose iterate down as needed?)
    122120        view->cell = -1;
    123121        while ((cell = pmFPAviewNextCell(view, input->fpa, 1)) != NULL) {
     
    139137    }
    140138
    141     // Write out summary statistics
    142     if (!ppImageStatsOutput (config, input->fpa, options)) {
    143         psError(PS_ERR_UNKNOWN, false, "Unable to write statistics file.\n");
    144         psFree (view);
    145         return false;
    146     }
    147 
    148139    // XXX an optional full-scale FPA mosaic could happen here
    149140    // it would require us to NOT free PPIMAGE.CHIP until here
     
    161152    }
    162153
     154    ppImageFileCheck (config);
     155
     156    // Write out summary statistics
     157    if (!ppImageMetadataStats (config, options)) {
     158        psError(PS_ERR_UNKNOWN, false, "Unable to write statistics file.\n");
     159        psFree (view);
     160        return false;
     161    }
     162
     163
     164    // Write out summary statistics
     165    if (!ppImageStatsOutput (config, options)) {
     166        psError(PS_ERR_UNKNOWN, false, "Unable to write statistics file.\n");
     167        psFree (view);
     168        return false;
     169    }
     170
    163171    // Close FPA
    164172    if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) {
Note: See TracChangeset for help on using the changeset viewer.