Changeset 14948
- Timestamp:
- Sep 20, 2007, 2:18:26 PM (19 years ago)
- Location:
- branches/eam_branch_20070830/psModules/src
- Files:
-
- 3 edited
-
camera/pmFPAMosaic.c (modified) (4 diffs)
-
camera/pmFPARead.c (modified) (5 diffs)
-
objects/pmSource.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20070830/psModules/src/camera/pmFPAMosaic.c
r13898 r14948 1024 1024 // force limits to land on chip 1025 1025 psRegion bounds = psRegionForImage (hdu->images->data[0], *chipRegion); 1026 mosaicImage = ps MemIncrRefCounter(psImageSubset(hdu->images->data[0], bounds));1026 mosaicImage = psImageSubset(hdu->images->data[0], bounds); 1027 1027 if (!mosaicImage) { 1028 1028 psError(PS_ERR_UNKNOWN, false, "Unable to select image pixels.\n"); … … 1030 1030 } 1031 1031 if (hdu->masks) { 1032 mosaicMask = ps MemIncrRefCounter(psImageSubset(hdu->masks->data[0], bounds));1032 mosaicMask = psImageSubset(hdu->masks->data[0], bounds); 1033 1033 if (!mosaicMask) { 1034 1034 psError(PS_ERR_UNKNOWN, false, "Unable to select mask pixels.\n"); … … 1037 1037 } 1038 1038 if (hdu->weights) { 1039 mosaicWeights = ps MemIncrRefCounter(psImageSubset(hdu->weights->data[0], bounds));1039 mosaicWeights = psImageSubset(hdu->weights->data[0], bounds); 1040 1040 if (!mosaicWeights) { 1041 1041 psError(PS_ERR_UNKNOWN, false, "Unable to select weight pixels.\n"); … … 1256 1256 psTrace("psModules.camera", 1, "Case 1 mosaicking: simple cut-out.\n"); 1257 1257 pmHDU *hdu = source->hdu; // The HDU that has the pixels 1258 mosaicImage = ps MemIncrRefCounter(psImageSubset(hdu->images->data[0], *fpaRegion));1258 mosaicImage = psImageSubset(hdu->images->data[0], *fpaRegion); 1259 1259 if (hdu->masks) { 1260 mosaicMask = ps MemIncrRefCounter(psImageSubset(hdu->masks->data[0], *fpaRegion));1260 mosaicMask = psImageSubset(hdu->masks->data[0], *fpaRegion); 1261 1261 } 1262 1262 if (hdu->weights) { 1263 mosaicWeights = ps MemIncrRefCounter(psImageSubset(hdu->weights->data[0], *fpaRegion));1263 mosaicWeights = psImageSubset(hdu->weights->data[0], *fpaRegion); 1264 1264 } 1265 1265 } else { -
branches/eam_branch_20070830/psModules/src/camera/pmFPARead.c
r13893 r14948 64 64 65 65 // place the image subset in the appropriate target location, freeing if needed 66 // XXX why psMemIncrRefCounter on psImageSubset??67 66 switch (type) { 68 67 case FPA_READ_TYPE_IMAGE: … … 70 69 psFree (readout->image); 71 70 } 72 readout->image = ps MemIncrRefCounter(psImageSubset(image, region));71 readout->image = psImageSubset(image, region); 73 72 break; 74 73 case FPA_READ_TYPE_MASK: … … 76 75 psFree (readout->mask); 77 76 } 78 readout->mask = ps MemIncrRefCounter(psImageSubset(image, region));77 readout->mask = psImageSubset(image, region); 79 78 break; 80 79 case FPA_READ_TYPE_WEIGHT: … … 82 81 psFree (readout->weight); 83 82 } 84 readout->weight = ps MemIncrRefCounter(psImageSubset(image, region));83 readout->weight = psImageSubset(image, region); 85 84 break; 86 85 default: … … 111 110 PS_MIN(biassec->y1 - readout->row0, image->numRows) // y1 112 111 ); 113 psImage *overscan = ps MemIncrRefCounter(psImageSubset(image, region));112 psImage *overscan = psImageSubset(image, region); 114 113 psListAdd(readout->bias, PS_LIST_TAIL, overscan); 115 114 psFree(overscan); -
branches/eam_branch_20070830/psModules/src/objects/pmSource.c
r14785 r14948 6 6 * @author EAM, IfA: significant modifications. 7 7 * 8 * @version $Revision: 1.35.2. 1$ $Name: not supported by cvs2svn $9 * @date $Date: 2007-09- 07 20:34:27$8 * @version $Revision: 1.35.2.2 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2007-09-21 00:18:26 $ 10 10 * 11 11 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 175 175 176 176 // these images are subset images of the equivalent parents 177 mySource->pixels = ps MemIncrRefCounter(psImageSubset(readout->image, srcRegion));178 mySource->weight = ps MemIncrRefCounter(psImageSubset(readout->weight, srcRegion));179 mySource->maskView = ps MemIncrRefCounter(psImageSubset(readout->mask, srcRegion));177 mySource->pixels = psImageSubset(readout->image, srcRegion); 178 mySource->weight = psImageSubset(readout->weight, srcRegion); 179 mySource->maskView = psImageSubset(readout->mask, srcRegion); 180 180 mySource->region = srcRegion; 181 181 … … 220 220 psFree (mySource->maskView); 221 221 222 mySource->pixels = ps MemIncrRefCounter(psImageSubset(readout->image, newRegion));223 mySource->weight = ps MemIncrRefCounter(psImageSubset(readout->weight, newRegion));224 mySource->maskView = ps MemIncrRefCounter(psImageSubset(readout->mask, newRegion));222 mySource->pixels = psImageSubset(readout->image, newRegion); 223 mySource->weight = psImageSubset(readout->weight, newRegion); 224 mySource->maskView = psImageSubset(readout->mask, newRegion); 225 225 mySource->region = newRegion; 226 226
Note:
See TracChangeset
for help on using the changeset viewer.
