IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2006, 12:55:05 PM (20 years ago)
Author:
Paul Price
Message:

Following today's meeting, we agreed that psVectorAlloc (and therefore
psArrayAlloc also) shall set the number of elements in use to equal the
number of elements allocated. We introduce new functions,
psVectorAllocEmpty and psArrayAllocEmpty, that allocate a vector and set
the length to zero.

File:
1 edited

Legend:

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

    r9611 r9730  
    201201
    202202    psVector *pixels = psVectorAlloc(inputs->n, PS_TYPE_F32); // Stack of pixels
    203     pixels->n = inputs->n;
    204203    psF32 *pixelsData = pixels->data.F32; // Dereference pixels
    205204
    206205    psVector *mask   = psVectorAlloc(inputs->n, PS_TYPE_U8); // Mask for stack
    207     mask->n = inputs->n;
    208206    psU8 *maskData = mask->data.U8;     // Dereference mask
    209207
     
    212210    if (haveWeights) {
    213211        weights = psVectorAlloc(inputs->n, PS_TYPE_F32); // Stack of weights
    214         weights->n = inputs->n;
    215212        weightsData = weights->data.F32;
    216213    }
Note: See TracChangeset for help on using the changeset viewer.