Changeset 7061 for trunk/ppMerge/src/ppMerge.c
- Timestamp:
- May 3, 2006, 5:57:35 PM (20 years ago)
- Location:
- trunk/ppMerge/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppMerge/src
-
Property svn:ignore
set to
.deps
Makefile
Makefile.in
-
Property svn:ignore
set to
-
trunk/ppMerge/src/ppMerge.c
r6903 r7061 1 1 #include <stdio.h> 2 #include "pslib.h" 3 #include "pmConcepts.h" 2 #include <pslib.h> 3 #include <psmodules.h> 4 4 5 #include "ppMerge.h" 5 6 #include "ppMem.h" … … 13 14 14 15 // Parse the configuration and arguments 15 ppImageConfig(config, argc, argv); 16 17 // Open the input image, output image, output mask 18 // Get camera configuration from header if not already defined 16 // Open the input image(s) 17 // Determine camera, format from header if not already defined 19 18 // Construct camera in preparation for reading 20 p pImageParseCamera(data, config);19 pmConfig *config = ppMergeConfig(&argc, argv); 21 20 22 21 // Set various tasks (define optional operations) 23 pp ImageOptionsParse(data, options,config);22 ppMergeOptions *options = ppMergeOptionsParse(config); 24 23 25 // open detrend images, load headers, optionally load pixels 26 ppImageParseDetrend(data, options, config); 24 // Check the inputs 25 ppMergeData *data = ppMergeCheckInputs(options, config); 26 if (!data) { 27 psError("Not enough valid input files.\n"); 28 exit(EXIT_FAILURE); 29 } 27 30 28 // Image Arithmetic Loop 29 ppImageLoop(data, options, config); 31 // Measure the background in each image 32 psImage *scale = NULL; // The scalings 33 psImage *zero = NULL; // The zeros 34 ppMergeScaleZero(&scale, &zero, data, options, config); 35 36 // Do the combination and write 37 ppMergeCombine(scale, zero, data, options, config); 30 38 31 39 // Cleaning up 32 40 psFree(data); 41 psFree(scale); 42 psFree(zero); 33 43 psFree(options); 34 44 psFree(config); 45 35 46 psTimerStop(); 36 47 psTraceReset(); 48 psErrorClear(); 37 49 pmConceptsDone(); 50 pmConfigDone(); 51 38 52 ppMemCheck(); 39 53
Note:
See TracChangeset
for help on using the changeset viewer.
