IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 6, 2005, 5:33:01 PM (21 years ago)
Author:
eugene
Message:

psphot reorganization: merged in pmObjects code from psModule, modified to work with psLib 0.7.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/pmSourceUtils.c

    r4949 r4954  
    77                          psF32 Radius)
    88{
    9     psRegion *srcRegion;
     9    psRegion srcRegion;
    1010
    1111    // Grab a subimage of the original image of size (2 * outerRadius).
    12     srcRegion = psRegionSquare (x, y, Radius);
    13     srcRegion = psRegionForImage (srcRegion, imdata->image, srcRegion);
     12    srcRegion = psRegionForSquare (x, y, Radius);
     13    srcRegion = psRegionForImage (imdata->image, &srcRegion);
    1414
    15     //  use these when psImageSubset is updated
    16     //  psImage *subImage = psImageSubset(imdata->image, srcRegion);
    17     //  psImage *subImageMask = psImageSubset(imdata->mask, srcRegion);
    18     //  psImage *subImageNoise = psImageSubset(imdata->noise, srcRegion);
     15    mySource->pixels = psImageSubset(imdata->image, srcRegion);
     16    mySource->noise  = psImageSubset(imdata->noise, srcRegion);
     17    mySource->mask   = psImageSubset(imdata->mask,  srcRegion);
    1918
    20     mySource->pixels = psImageSubset(imdata->image, srcRegion->x0, srcRegion->y0, srcRegion->x1, srcRegion->y1);
    21     mySource->noise  = psImageSubset(imdata->noise, srcRegion->x0, srcRegion->y0, srcRegion->x1, srcRegion->y1);
    22     mySource->mask   = psImageSubset(imdata->mask,  srcRegion->x0, srcRegion->y0, srcRegion->x1, srcRegion->y1);
    23 
    24     psFree (srcRegion);
    2519    return(mySource);
    2620}
Note: See TracChangeset for help on using the changeset viewer.