Changeset 6511 for trunk/psModules/src/imcombine/pmReadoutCombine.c
- Timestamp:
- Mar 3, 2006, 3:01:34 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/imcombine/pmReadoutCombine.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmReadoutCombine.c
r6325 r6511 5 5 * @author GLG, MHPCC 6 6 * 7 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $8 * @date $Date: 2006-0 2-06 21:03:25$7 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 8 * @date $Date: 2006-03-04 01:01:33 $ 9 9 * 10 10 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 176 176 177 177 psVector *tmpPixels = psVectorAlloc(numInputs, PS_TYPE_F32); 178 tmpPixels->n = tmpPixels->nalloc; 178 179 psVector *tmpPixelErrors = psVectorAlloc(numInputs, PS_TYPE_F32); 180 tmpPixelErrors->n = tmpPixelErrors->nalloc; 179 181 psVector *tmpPixelMask = psVectorAlloc(numInputs, PS_TYPE_U8); 182 tmpPixelMask->n = tmpPixelMask->nalloc; 180 183 psVector *tmpPixelMaskNKeep = psVectorAlloc(numInputs, PS_TYPE_U8); 184 tmpPixelMaskNKeep->n = tmpPixelMaskNKeep->nalloc; 181 185 psVector *outRowLower = psVectorAlloc(numInputs, PS_TYPE_U32); 186 outRowLower->n = outRowLower->nalloc; 182 187 psVector *outRowUpper = psVectorAlloc(numInputs, PS_TYPE_U32); 188 outRowUpper->n = outRowUpper->nalloc; 183 189 psVector *outColLower = psVectorAlloc(numInputs, PS_TYPE_U32); 190 outColLower->n = outColLower->nalloc; 184 191 psVector *outColUpper = psVectorAlloc(numInputs, PS_TYPE_U32); 192 outColUpper->n = outColUpper->nalloc; 185 193 pmReadout **tmpReadouts = (pmReadout **) psAlloc(numInputs * sizeof(pmReadout *)); 186 194 … … 414 422 psStats *diffStats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN); 415 423 psVector *diffs = psVectorAlloc(fringePoints->n, PS_TYPE_F32); 424 diffs->n = diffs->nalloc; 416 425 417 426 // … … 517 526 psVector *localChipGains = chipGains; 518 527 if (numChips != chipGains->n) { 519 psLogMsg(__func__, PS_LOG_WARN, "WARNING: the chipGains vector length does not match the number of chips.\n"); 528 psLogMsg(__func__, PS_LOG_WARN, 529 "WARNING: the chipGains vector length does not match the number of chips.\n"); 520 530 localChipGains = psVectorAlloc(numChips, PS_TYPE_F64); 531 localChipGains->n = localChipGains->nalloc; 521 532 psBool rc = psVectorInit(localChipGains, 1.0); 522 533 if (rc == false) { … … 531 542 psBool meanFlag = false; 532 543 psVector *chipGainsMask = psVectorAlloc(chipGains->n, PS_TYPE_U8); 544 chipGainsMask->n = chipGainsMask->nalloc; 533 545 for (psS32 i = 0 ; i < chipGains->n ; i++) { 534 546 if ((fabs(chipGains->data.F64[i]) < FLT_EPSILON) ||
Note:
See TracChangeset
for help on using the changeset viewer.
