IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9740 for trunk/stac/src/stac.c


Ignore:
Timestamp:
Oct 24, 2006, 2:27:29 PM (20 years ago)
Author:
Paul Price
Message:

Changed definition of psVectorAlloc and psArrayAlloc

File:
1 edited

Legend:

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

    r8783 r9740  
    4949    // Generate masks
    5050    psArray *masks = psArrayAlloc(inputs->n);
    51     masks->n = inputs->n;
    5251    for (int i = 0; i < inputs->n; i++) {
    5352        psImage *image = inputs->data[i]; // Image for which to get mask
     
    7473        psVector *xSize = psVectorAlloc(inputs->n, PS_TYPE_S32); // Sizes of images in x
    7574        psVector *ySize = psVectorAlloc(inputs->n, PS_TYPE_S32); // Sizes of images in y
    76         xSize->n = inputs->n;
    77         ySize->n = inputs->n;
    7875        for (int i = 0; i < inputs->n; i++) {
    7976            psImage *image = inputs->data[i]; // The i-th image
     
    169166    psVector *saturated = psVectorAlloc(transformed->n, PS_TYPE_F32); // Saturation limits
    170167    psVector *bad = psVectorAlloc(transformed->n, PS_TYPE_F32); // Bad limits
    171     saturated->n = transformed->n;
    172     bad->n = transformed->n;
    173168    float minSaturated = INFINITY;      // The minimum saturation level
    174169    float maxBad = -INFINITY;           // The maximum bad level
     
    240235    // Get regions of interest in the source frame
    241236    psArray *regions = psArrayAlloc(inputs->n); // Array of images denoting regions of interest
    242     regions->n = inputs->n;
    243237    for (int i = 0; i < inputs->n; i++) {
    244238        regions->data[i] = stacAreaOfInterest(rejected->data[i], inverseMaps->data[i],
Note: See TracChangeset for help on using the changeset viewer.