Changeset 4901 for trunk/psphot/src/LocalSky.c
- Timestamp:
- Aug 29, 2005, 5:44:55 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/LocalSky.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/LocalSky.c
r4642 r4901 18 18 // psImage *subImageNoise = psImageSubset(imdata->noise, srcRegion); 19 19 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 27 24 psFree (srcRegion); 28 29 25 return(mySource); 30 26 } … … 48 44 myStats = psImageStats(myStats, image, mask, 0xff); 49 45 psImageMaskRegion (mask, srcRegion, AND, 0x7f); 50 psFree (srcRegion);51 46 52 47 psF64 tmpF64; 53 48 p_psGetStatValue(myStats, &tmpF64); 49 50 psFree (myStats); 51 psFree (srcRegion); 52 54 53 if (isnan(tmpF64)) return (false); 55 56 54 source->moments = pmMomentsAlloc(); 57 55 source->moments->Sky = (psF32) tmpF64;
Note:
See TracChangeset
for help on using the changeset viewer.
