Changeset 26076 for trunk/ppStack/src/ppStackSetup.c
- Timestamp:
- Nov 9, 2009, 2:53:12 PM (17 years ago)
- Location:
- trunk/ppStack
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/ppStackSetup.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/czw_branch/cleanup/ppStack merged eligible /branches/eam_branches/20090522/ppStack merged eligible /branches/eam_branches/20090715/ppStack merged eligible /branches/eam_branches/20090820/ppStack merged eligible /branches/pap/ppStack merged eligible /branches/pap_mops/ppStack 25137-25255
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/ppStack/src/ppStackSetup.c
r26020 r26076 72 72 } 73 73 74 options-> imageNames = psArrayAlloc(num);75 options-> maskNames = psArrayAlloc(num);76 options-> varianceNames = psArrayAlloc(num);74 options->convImages = psArrayAlloc(num); 75 options->convMasks = psArrayAlloc(num); 76 options->convVariances = psArrayAlloc(num); 77 77 for (int i = 0; i < num; i++) { 78 78 psString imageName = NULL, maskName = NULL, varianceName = NULL; // Names for convolved images … … 81 81 psStringAppend(&varianceName, "%s/%s.%d.%s", tempDir, tempName, i, tempVariance); 82 82 psTrace("ppStack", 5, "Temporary files: %s %s %s\n", imageName, maskName, varianceName); 83 options-> imageNames->data[i] = imageName;84 options-> maskNames->data[i] = maskName;85 options-> varianceNames->data[i] = varianceName;83 options->convImages->data[i] = imageName; 84 options->convMasks->data[i] = maskName; 85 options->convVariances->data[i] = varianceName; 86 86 } 87 87 psFree(outputName); 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); 88 109 89 110 if (!pmConfigMaskSetBits(NULL, NULL, config)) {
Note:
See TracChangeset
for help on using the changeset viewer.
