Changeset 6113 for branches/eam_rel9_p0/psModules/src/astrom/pmChipMosaic.c
- Timestamp:
- Jan 20, 2006, 6:33:38 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_rel9_p0/psModules/src/astrom/pmChipMosaic.c
r6080 r6113 132 132 133 133 // Mosaic a chip together into a single image 134 static bool mosaicChip(pmChip *chip,// Chip to mosaic135 int xBinChip, int yBinChip // Binning of mosaic image in x and y136 )134 int pmChipMosaic(pmChip *chip,// Chip to mosaic 135 int xBinChip, int yBinChip // Binning of mosaic image in x and y 136 ) 137 137 { 138 138 … … 149 149 150 150 // Set up the required inputs 151 psTrace(__func__, 1, "Mosaicking %d cells...\n", cells->n); 151 152 for (int i = 0; i < cells->n; i++) { 152 153 pmCell *cell = cells->data[i]; // The cell of interest 153 154 x0->data.S32[i] = psMetadataLookupS32(NULL, cell->concepts, "CELL.X0"); 154 155 y0->data.S32[i] = psMetadataLookupS32(NULL, cell->concepts, "CELL.Y0"); 155 psTrace(__func__, 9, "Cell %d: x0=%d y0=%d\n", i, x0->data.S32[i], y0->data.S32[i]);156 psTrace(__func__, 5, "Cell %d: x0=%d y0=%d\n", i, x0->data.S32[i], y0->data.S32[i]); 156 157 xBin->data.S32[i] = psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN"); 157 158 yBin->data.S32[i] = psMetadataLookupS32(NULL, cell->concepts, "CELL.XBIN"); … … 204 205 psFree(weights); 205 206 psFree(masks); 207 int nCells = cells->n; 208 psFree(cells); 206 209 207 210 // Chop off all the component cells, and put in a new one … … 228 231 //psFree(readout); 229 232 230 return true;231 } 232 233 234 int pmFPAMosaicC hips(pmFPA *fpa, // FPA233 return nCells; 234 } 235 236 237 int pmFPAMosaicCells(pmFPA *fpa, // FPA 235 238 int xBinChip, int yBinChip // Binning of mosaic image in x and y 236 239 ) … … 247 250 248 251 numChips++; 249 mosaicChip(chip, xBinChip, yBinChip); // Mosaic of cells within the chip252 pmChipMosaic(chip, xBinChip, yBinChip); // Mosaic of cells within the chip 250 253 251 254 }
Note:
See TracChangeset
for help on using the changeset viewer.
