Changeset 16604 for trunk/psModules/src/imcombine/pmReadoutCombine.c
- Timestamp:
- Feb 22, 2008, 9:24:42 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmReadoutCombine.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmReadoutCombine.c
r15433 r16604 113 113 } 114 114 115 pmReadoutUpdateSize(output, minInputCols, minInputRows, xSize, ySize, true); 115 pmReadoutUpdateSize(output, minInputCols, minInputRows, xSize, ySize, true, params->weights, 116 params->blank); 116 117 psTrace("psModules.imcombine", 7, "Output minimum: %d,%d\n", output->col0, output->row0); 117 118 118 119 psStatsOptions combineStdev = 0; // Statistics option for weights 119 120 if (params->weights) { 120 121 if (!output->weight) {122 output->weight = psImageAlloc(xSize, ySize, PS_TYPE_F32);123 }124 if (output->weight->numCols < xSize || output->weight->numRows < ySize) {125 psImage *newWeight = psImageAlloc(xSize, ySize, PS_TYPE_F32);126 psImageInit(newWeight, 0.0);127 psImageOverlaySection(newWeight, output->weight, output->col0, output->row0, "=");128 psFree(output->weight);129 output->weight = newWeight;130 }131 132 121 if (first) { 133 122 psMetadataAddStr(hdu->header, PS_LIST_TAIL, "HISTORY", PS_META_DUPLICATE_OK,
Note:
See TracChangeset
for help on using the changeset viewer.
