IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 29, 2005, 5:44:55 PM (21 years ago)
Author:
eugene
Message:

various psphot updates

File:
1 edited

Legend:

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

    r4642 r4901  
    1818    //  psImage *subImageNoise = psImageSubset(imdata->noise, srcRegion);
    1919
    20     psImage *subImage = psImageSubset(imdata->image, srcRegion->x0, srcRegion->y0, srcRegion->x1, srcRegion->y1);
    21     psImage *subImageMask = psImageSubset(imdata->mask, srcRegion->x0, srcRegion->y0, srcRegion->x1, srcRegion->y1);
    22     psImage *subImageNoise = psImageSubset(imdata->noise, srcRegion->x0, srcRegion->y0, srcRegion->x1, srcRegion->y1);
    23 
    24     mySource->pixels = subImage;
    25     mySource->mask = subImageMask;
    26     mySource->noise = subImageNoise;
     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
    2724    psFree (srcRegion);
    28 
    2925    return(mySource);
    3026}
     
    4844    myStats = psImageStats(myStats, image, mask, 0xff);
    4945    psImageMaskRegion (mask, srcRegion, AND, 0x7f);
    50     psFree (srcRegion);
    5146
    5247    psF64 tmpF64;
    5348    p_psGetStatValue(myStats, &tmpF64);
     49
     50    psFree (myStats);
     51    psFree (srcRegion);
     52
    5453    if (isnan(tmpF64)) return (false);
    55 
    5654    source->moments = pmMomentsAlloc();
    5755    source->moments->Sky = (psF32) tmpF64;
Note: See TracChangeset for help on using the changeset viewer.