IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 7, 2006, 5:57:23 PM (20 years ago)
Author:
eugene
Message:

substantial upgrade to work with the pmFPAfile paradigm

File:
1 edited

Legend:

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

    r6775 r6817  
    1 #include <stdio.h>
    2 #include "pslib.h"
    3 #include "psmodules.h"
    41#include "ppImage.h"
    5 #include "ppMem.h"
    62
    7 int main(int argc, char **argv)
    8 {
    9 //    psErrorRegister(NULL, -1);
    10 
    11     ppImageData *data = ppImageDataAlloc();
    12     ppImageOptions *options = ppImageOptionsAlloc();
     3int main(int argc, char **argv) {
    134
    145    psTimerStart(TIMERNAME);
    156
    167    // Parse the configuration and arguments
     8    // Open the input image(s)
     9    // Determine camera, format from header if not already defined
     10    // Construct camera in preparation for reading
    1711    pmConfig *config = ppImageConfig(argc, argv);
    1812
    19     // Open the input image, output image, output mask
    20     // Get camera configuration from header if not already defined
    21     // Construct camera in preparation for reading
    22     ppImageParseCamera(data, config);
     13    // Set various tasks (define optional operations)
     14    ppImageOptions *options = ppImageOptionsParse(config);
    2315
    24     // Set various tasks (define optional operations)
    25     ppImageOptionsParse(data, options, config);
    26 
    27 #if 0
    28     // XXX I think we do this in ppImageParseCamera
    29 
    30     // open detrend images, load headers, optionally load pixels
    31     ppImageParseDetrend(data, options, config);
    32 #endif
     16    // define the active I/O files
     17    ppImageParseDetrend(options, config);
    3318
    3419    // Image Arithmetic Loop
    35     ppImageLoop(data, options, config);
     20    ppImageLoop(options, config);
    3621
    3722    // Cleaning up
    38     psFree(data);
    3923    psFree(options);
    4024    psFree(config);
     
    4327    pmConceptsDone();
    4428    pmConfigDone();
    45     ppMemCheck();
    46 
     29    // ppMemCheck();
     30    fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, NULL, false), "ppImage");
    4731    return EXIT_SUCCESS;
    4832}
Note: See TracChangeset for help on using the changeset viewer.