Changeset 6056 for trunk/psphot/src/psphotDefinePixels.c
- Timestamp:
- Jan 19, 2006, 2:55:33 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotDefinePixels.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotDefinePixels.c
r5993 r6056 2 2 3 3 bool psphotDefinePixels(pmSource *mySource, 4 const eamReadout *imdata,4 const pmReadout *readout, 5 5 psF32 x, 6 6 psF32 y, … … 11 11 // Grab a subimage of the original image of size (2 * outerRadius). 12 12 srcRegion = psRegionForSquare (x, y, Radius); 13 srcRegion = psRegionForImage ( imdata->image, srcRegion);13 srcRegion = psRegionForImage (readout->image, srcRegion); 14 14 15 mySource->pixels = psImageSubset( imdata->image, srcRegion);16 mySource->weight = psImageSubset( imdata->weight, srcRegion);17 mySource->mask = psImageSubset( imdata->mask, srcRegion);15 mySource->pixels = psImageSubset(readout->image, srcRegion); 16 mySource->weight = psImageSubset(readout->weight, srcRegion); 17 mySource->mask = psImageSubset(readout->mask, srcRegion); 18 18 mySource->region = srcRegion; 19 19 … … 22 22 23 23 bool psphotRedefinePixels(pmSource *mySource, 24 const eamReadout *imdata,24 const pmReadout *readout, 25 25 psF32 x, 26 26 psF32 y, … … 34 34 // check to see if new region is completely contained within old region 35 35 newRegion = psRegionForSquare (x, y, Radius); 36 newRegion = psRegionForImage ( imdata->image, newRegion);36 newRegion = psRegionForImage (readout->image, newRegion); 37 37 38 38 extend = false; … … 53 53 psFree (mySource->mask); 54 54 55 mySource->pixels = psImageSubset( imdata->image, newRegion);56 mySource->weight = psImageSubset( imdata->weight, newRegion);57 mySource->mask = psImageSubset( imdata->mask, newRegion);55 mySource->pixels = psImageSubset(readout->image, newRegion); 56 mySource->weight = psImageSubset(readout->weight, newRegion); 57 mySource->mask = psImageSubset(readout->mask, newRegion); 58 58 mySource->region = newRegion; 59 59 }
Note:
See TracChangeset
for help on using the changeset viewer.
