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/test/imsubtract/tst_pmImageSubtract.c

    r5169 r6511  
    1010 *  data.  More work need to be done to verify the results.
    1111 *
    12  *  @version $Revision: 1.1 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2005-09-28 20:42:52 $
     12 *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2006-03-04 01:01:34 $
    1414 *
    1515 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    161161
    162162    psVector *sigmas = psVectorAlloc(sigmaLength, PS_TYPE_F32);
     163    sigmas->n = sigmas->nalloc;
    163164    for (psS32 i = 0 ; i < sigmas->n ; i++) {
    164165        sigmas->data.F32[i] = 1.0 + (psF32) i;
    165166    }
    166167    psVector *orders = psVectorAlloc(orderLength, PS_TYPE_S32);
     168    orders->n = orders->nalloc;
    167169    for (psS32 i = 0 ; i < orders->n ; i++) {
    168170        orders->data.S32[i] = i + 2;
     
    617619    //
    618620    psVector *sigmas = psVectorAlloc(TST03_SIGMA_LENGTH, PS_TYPE_F32);
     621    sigmas->n = sigmas->nalloc;
    619622    for (psS32 i = 0 ; i < sigmas->n ; i++) {
    620623        sigmas->data.F32[i] = 1.0 + (psF32) i;
    621624    }
    622625    psVector *orders = psVectorAlloc(TST03_ORDER_LENGTH, PS_TYPE_S32);
     626    orders->n = orders->nalloc;
    623627    for (psS32 i = 0 ; i < orders->n ; i++) {
    624628        orders->data.S32[i] = i + 2;
Note: See TracChangeset for help on using the changeset viewer.