Changeset 14949
- Timestamp:
- Sep 20, 2007, 2:19:21 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAMosaic.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMosaic.c
r13898 r14949 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 {
Note:
See TracChangeset
for help on using the changeset viewer.
