Changeset 34800 for trunk/ppStack/src/ppStackSetup.c
- Timestamp:
- Dec 11, 2012, 2:04:31 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStack/src/ppStackSetup.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
trunk/ppStack/src/ppStackSetup.c
r31158 r34800 89 89 options->origMasks = psArrayAlloc(num); 90 90 options->origVariances = psArrayAlloc(num); 91 options->bkgImages = psArrayAlloc(num); 91 92 pmFPAview *view = pmFPAviewAlloc(0); 93 int nullMasks = 0; 94 int nullVariances = 0; 92 95 for (int i = 0; i < num; i++) { 93 96 { … … 97 100 { 98 101 // We want the convolved mask, since that defines the area that has been tested for outliers 102 if (options->convolve) { 99 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 } 100 112 } 101 113 { 102 114 pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.VARIANCE", i); 103 115 options->origVariances->data[i] = pmFPAfileName(file, view, config); 116 if (!(options->origVariances->data[i])) { 117 nullVariances++; 118 } 104 119 } 120 /* { */ 121 /* pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPSTACK.INPUT.BKGMODEL", i); */ 122 /* options->bkgImages->data[i] = pmFPAfileName(file, view, config); */ 123 /* } */ 105 124 } 125 if (nullMasks == num) { 126 psFree(options->origMasks); 127 } 128 if (nullVariances == num) { 129 psFree(options->origVariances); 130 } 131 106 132 psFree(view); 107 133
Note:
See TracChangeset
for help on using the changeset viewer.
