IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 18, 2006, 12:20:45 PM (20 years ago)
Author:
Paul Price
Message:

Updating to use psLib rel11. Main problem was that vector and array lengths ('n' element) are no longer set to equal the number of allocated values ('nalloc' element) when allocated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/combine.c

    r6771 r6887  
    2525    // Make fake errors
    2626    psArray *errors = psArrayAlloc(images->n);
     27    errors->n = images->n;
    2728    for (int i = 0; i < images->n; i++) {
    2829        psImage *image = images->data[i];
     
    4445    psVector *saturated = psVectorAlloc(images->n, PS_TYPE_F32); // Saturation limits
    4546    psVector *bad = psVectorAlloc(images->n, PS_TYPE_F32); // Bad limits
     47    saturated->n = images->n;
     48    bad->n = images->n;
    4649    for (int i = 0; i < images->n; i++) {
    4750        saturated->data.F32[i] = (config->saturated - offsets->data.F32[i]) / scales->data.F32[i];
Note: See TracChangeset for help on using the changeset viewer.