Changeset 34666 for branches/czw_branch/20120906/ppStack/src/ppStackSetup.c
- Timestamp:
- Nov 15, 2012, 1:32:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20120906/ppStack/src/ppStackSetup.c
r34516 r34666 91 91 options->bkgImages = psArrayAlloc(num); 92 92 pmFPAview *view = pmFPAviewAlloc(0); 93 int nullMasks = 0; 94 int nullVariances = 0; 93 95 for (int i = 0; i < num; i++) { 94 96 { … … 98 100 { 99 101 // We want the convolved mask, since that defines the area that has been tested for outliers 102 if (options->convolve) { 100 103 options->origMasks->data[i] = psMemIncrRefCounter(options->convMasks->data[i]); 104 } 105 else { 106 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.MASK", i); 107 options->origMasks->data[i] = pmFPAfileName(file, view, config); 108 } 109 if (!(options->origMasks->data[i])) { 110 nullMasks++; 111 } 101 112 } 102 113 { 103 114 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.VARIANCE", i); 104 115 options->origVariances->data[i] = pmFPAfileName(file, view, config); 116 if (!(options->origVariances->data[i])) { 117 nullVariances++; 118 } 105 119 } 106 120 /* { */ … … 109 123 /* } */ 110 124 } 125 if (nullMasks == num) { 126 psFree(options->origMasks); 127 } 128 if (nullVariances == num) { 129 psFree(options->origVariances); 130 } 131 111 132 psFree(view); 112 133
Note:
See TracChangeset
for help on using the changeset viewer.
