IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 3, 2006, 3:01:34 PM (20 years ago)
Author:
drobbin
Message:

Updated files to reflect psArray, psVector, & psPixels changes in psLib that set n=0 upon allocation.

File:
1 edited

Legend:

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

    r6325 r6511  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-02-06 21:03:25 $
     7 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-03-04 01:01:33 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    176176
    177177    psVector *tmpPixels = psVectorAlloc(numInputs, PS_TYPE_F32);
     178    tmpPixels->n = tmpPixels->nalloc;
    178179    psVector *tmpPixelErrors = psVectorAlloc(numInputs, PS_TYPE_F32);
     180    tmpPixelErrors->n = tmpPixelErrors->nalloc;
    179181    psVector *tmpPixelMask = psVectorAlloc(numInputs, PS_TYPE_U8);
     182    tmpPixelMask->n = tmpPixelMask->nalloc;
    180183    psVector *tmpPixelMaskNKeep = psVectorAlloc(numInputs, PS_TYPE_U8);
     184    tmpPixelMaskNKeep->n = tmpPixelMaskNKeep->nalloc;
    181185    psVector *outRowLower = psVectorAlloc(numInputs, PS_TYPE_U32);
     186    outRowLower->n = outRowLower->nalloc;
    182187    psVector *outRowUpper = psVectorAlloc(numInputs, PS_TYPE_U32);
     188    outRowUpper->n = outRowUpper->nalloc;
    183189    psVector *outColLower = psVectorAlloc(numInputs, PS_TYPE_U32);
     190    outColLower->n = outColLower->nalloc;
    184191    psVector *outColUpper = psVectorAlloc(numInputs, PS_TYPE_U32);
     192    outColUpper->n = outColUpper->nalloc;
    185193    pmReadout **tmpReadouts = (pmReadout **) psAlloc(numInputs * sizeof(pmReadout *));
    186194
     
    414422    psStats *diffStats = psStatsAlloc(PS_STAT_ROBUST_MEDIAN);
    415423    psVector *diffs = psVectorAlloc(fringePoints->n, PS_TYPE_F32);
     424    diffs->n = diffs->nalloc;
    416425
    417426    //
     
    517526    psVector *localChipGains = chipGains;
    518527    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");
    520530        localChipGains = psVectorAlloc(numChips, PS_TYPE_F64);
     531        localChipGains->n = localChipGains->nalloc;
    521532        psBool rc = psVectorInit(localChipGains, 1.0);
    522533        if (rc == false) {
     
    531542    psBool meanFlag = false;
    532543    psVector *chipGainsMask = psVectorAlloc(chipGains->n, PS_TYPE_U8);
     544    chipGainsMask->n = chipGainsMask->nalloc;
    533545    for (psS32 i = 0 ; i < chipGains->n ; i++) {
    534546        if ((fabs(chipGains->data.F64[i]) < FLT_EPSILON) ||
Note: See TracChangeset for help on using the changeset viewer.