Changeset 6817 for trunk/ppImage/src/ppImage.c
- Timestamp:
- Apr 7, 2006, 5:57:23 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ppImage/src/ppImage.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImage.c
r6775 r6817 1 #include <stdio.h>2 #include "pslib.h"3 #include "psmodules.h"4 1 #include "ppImage.h" 5 #include "ppMem.h"6 2 7 int main(int argc, char **argv) 8 { 9 // psErrorRegister(NULL, -1); 10 11 ppImageData *data = ppImageDataAlloc(); 12 ppImageOptions *options = ppImageOptionsAlloc(); 3 int main(int argc, char **argv) { 13 4 14 5 psTimerStart(TIMERNAME); 15 6 16 7 // 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 17 11 pmConfig *config = ppImageConfig(argc, argv); 18 12 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); 23 15 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); 33 18 34 19 // Image Arithmetic Loop 35 ppImageLoop( data,options, config);20 ppImageLoop(options, config); 36 21 37 22 // Cleaning up 38 psFree(data);39 23 psFree(options); 40 24 psFree(config); … … 43 27 pmConceptsDone(); 44 28 pmConfigDone(); 45 ppMemCheck();46 29 // ppMemCheck(); 30 fprintf (stderr, "found %d leaks at %s\n", psMemCheckLeaks (0, NULL, NULL, false), "ppImage"); 47 31 return EXIT_SUCCESS; 48 32 }
Note:
See TracChangeset
for help on using the changeset viewer.
