IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Updating to psLib rel11. Most changes are setting the 'n' element of the vector or array upon allocation. Needed to change the way the image subsets are done: not sure why we switched back to the old method of trim regions, but it seems we did.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pois/src/poisCalculateDeviations.c

    r6772 r6891  
    3333    if (!deviations) {
    3434        deviations = psVectorAlloc(stamps->n, PS_TYPE_F32);
     35        deviations->n = stamps->n;
    3536    }
    3637
     
    6465            psRegion stampTrim = { config->xKernel, config->xKernel + 2 * footprint, config->yKernel,
    6566                                   config->yKernel + 2 * footprint };
     67#if 0
    6668            psRegion maskTrim = { x - xSize + config->xKernel, x + xSize - config->xKernel,
    6769                                  y - ySize + config->yKernel, y + ySize - config->yKernel };
    68 
     70            psImage *maskStampTrim = psImageSubset(maskStamp, maskTrim);
     71#else
     72            psImage *maskStampTrim = psImageSubset(maskStamp, stampTrim);
     73#endif
    6974            psImage *subStampTrim = psImageSubset(subStamp, stampTrim);
    70             psImage *maskStampTrim = psImageSubset(maskStamp, maskTrim);
    7175            (void)psImageStats(stats, subStampTrim, maskStampTrim, POIS_MASK_BAD | POIS_MASK_NEAR_BAD);
    7276
Note: See TracChangeset for help on using the changeset viewer.