IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 22, 2008, 9:24:42 AM (18 years ago)
Author:
Paul Price
Message:

Merging in ppStack development branch --- ppStack now works with incremental reads. Small conflicts (due to stupid patch application by CVS) resolved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmReadoutCombine.c

    r15433 r16604  
    113113    }
    114114
    115     pmReadoutUpdateSize(output, minInputCols, minInputRows, xSize, ySize, true);
     115    pmReadoutUpdateSize(output, minInputCols, minInputRows, xSize, ySize, true, params->weights,
     116                        params->blank);
    116117    psTrace("psModules.imcombine", 7, "Output minimum: %d,%d\n", output->col0, output->row0);
    117118
    118119    psStatsOptions combineStdev = 0; // Statistics option for weights
    119120    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 
    132121        if (first) {
    133122            psMetadataAddStr(hdu->header, PS_LIST_TAIL, "HISTORY", PS_META_DUPLICATE_OK,
Note: See TracChangeset for help on using the changeset viewer.