Changeset 4954 for trunk/psphot/src/pmSourceUtils.c
- Timestamp:
- Sep 6, 2005, 5:33:01 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/pmSourceUtils.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/pmSourceUtils.c
r4949 r4954 7 7 psF32 Radius) 8 8 { 9 psRegion *srcRegion;9 psRegion srcRegion; 10 10 11 11 // Grab a subimage of the original image of size (2 * outerRadius). 12 srcRegion = psRegion Square (x, y, Radius);13 srcRegion = psRegionForImage ( srcRegion, imdata->image,srcRegion);12 srcRegion = psRegionForSquare (x, y, Radius); 13 srcRegion = psRegionForImage (imdata->image, &srcRegion); 14 14 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); 19 18 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);25 19 return(mySource); 26 20 }
Note:
See TracChangeset
for help on using the changeset viewer.
