Changeset 12629 for trunk/psModules/src/camera/pmFPAMosaic.c
- Timestamp:
- Mar 28, 2007, 9:17:36 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAMosaic.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMosaic.c
r12589 r12629 990 990 // the mosaic image. 991 991 992 bool pmChipMosaic(pmChip *target, const pmChip *source )992 bool pmChipMosaic(pmChip *target, const pmChip *source, bool deepCopy) 993 993 { 994 994 // Target exists, and has only a single cell … … 1012 1012 psRegion *chipRegion = NULL; // Region on the HDU that corresponds to the chip 1013 1013 int xBin = 0, yBin = 0; // Binning for the chip mosaic 1014 if ( (chipRegion = niceChip(&xBin, &yBin, source))) {1014 if (!deepCopy && (chipRegion = niceChip(&xBin, &yBin, source))) { 1015 1015 // Case 1 --- we need only cut out the region 1016 1016 psTrace("psModules.camera", 1, "Case 1 mosaicking: simple cut-out.\n"); … … 1047 1047 return false; 1048 1048 } 1049 chipRegion = psRegionAlloc(NAN, NAN, NAN, NAN); // We've cut and paste, so there's no valid trimsec 1049 chipRegion = psRegionAlloc(0, 0, 0, 0); // We've cut and paste, so there's no valid trimsec 1050 *chipRegion = psRegionForImage (mosaicImage, *chipRegion); 1050 1051 } 1051 1052 psTrace("psModules.camera", 1, "xBin,yBin: %d,%d\n", xBin, yBin); … … 1105 1106 1106 1107 1107 bool pmFPAMosaic(pmFPA *target, const pmFPA *source )1108 bool pmFPAMosaic(pmFPA *target, const pmFPA *source, bool deepCopy) 1108 1109 { 1109 1110 // Target exists, and has only a single chip with single cell … … 1133 1134 psRegion *fpaRegion = NULL; // Region on the HDU that corresponds to the FPA 1134 1135 int xBin = 0, yBin = 0; // Binning for the FPA mosaic 1135 if ( (fpaRegion = niceFPA(&xBin, &yBin, source))) {1136 if (!deepCopy && (fpaRegion = niceFPA(&xBin, &yBin, source))) { 1136 1137 // Case 1 --- we need only cut out the region 1137 1138 psTrace("psModules.camera", 1, "Case 1 mosaicking: simple cut-out.\n");
Note:
See TracChangeset
for help on using the changeset viewer.
