Changeset 26006
- Timestamp:
- Nov 2, 2009, 3:44:50 PM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ppStack/src/ppStackSetup.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ppStack/src/ppStackSetup.c
r25824 r26006 46 46 } 47 47 48 // Original images49 options->origImages = psArrayAlloc(num);50 options->origMasks = psArrayAlloc(num);51 options->origVariances = psArrayAlloc(num);52 pmFPAview *view = pmFPAviewAlloc(0);53 for (int i = 0; i < num; i++) {54 {55 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT", i);56 options->origImages->data[i] = pmFPAfileName(file, view, config);57 }58 {59 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.MASK", i);60 options->origMasks->data[i] = pmFPAfileName(file, view, config);61 }62 {63 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.VARIANCE", i);64 options->origVariances->data[i] = pmFPAfileName(file, view, config);65 }66 }67 psFree(view);68 69 48 // Generate temporary names for convolved images 70 49 const char *tempDir = psMetadataLookupStr(NULL, recipe, "TEMP.DIR"); // Directory for temporary images … … 108 87 psFree(outputName); 109 88 89 // Original images 90 options->origImages = psArrayAlloc(num); 91 options->origMasks = psArrayAlloc(num); 92 options->origVariances = psArrayAlloc(num); 93 pmFPAview *view = pmFPAviewAlloc(0); 94 for (int i = 0; i < num; i++) { 95 { 96 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT", i); 97 options->origImages->data[i] = pmFPAfileName(file, view, config); 98 } 99 { 100 // We want the convolved mask, since that defines the area that has been tested for outliers 101 options->origMasks->data[i] = psMemIncrRefCounter(options->convMasks->data[i]); 102 } 103 { 104 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.VARIANCE", i); 105 options->origVariances->data[i] = pmFPAfileName(file, view, config); 106 } 107 } 108 psFree(view); 109 110 110 if (!pmConfigMaskSetBits(NULL, NULL, config)) { 111 111 psError(PS_ERR_UNKNOWN, false, "Unable to determine mask value.");
Note:
See TracChangeset
for help on using the changeset viewer.
