Changeset 6386 for branches/eam_rel9_p0/psModules/src/astrom/pmChipMosaic.c
- Timestamp:
- Feb 8, 2006, 1:02:02 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_rel9_p0/psModules/src/astrom/pmChipMosaic.c
r6351 r6386 288 288 int nCells = cells->n; 289 289 290 // Modify the "original" pixels290 // Fix up the HDU 291 291 if (chip->parent->hdu) { 292 292 psLogMsg(__func__, PS_LOG_WARN, "The original format has the entire FPA in a single extension. " … … 311 311 } 312 312 313 // Chop off all the component cells, and put ina new one313 // Chop off all the component cells, and construct a new one 314 314 pmCell *newCell = pmCellAlloc(NULL, NULL, __func__); // New cell 315 315 cellConcepts(newCell, cells, xBinChip, yBinChip); … … 326 326 // This preserves the relationship there was before, where freeing the parent frees the child. 327 327 psRegion entire = {0.0, 0.0, 0.0, 0.0}; 328 newReadout->image = ps ImageSubset(image, entire);329 newReadout->weight = ps ImageSubset(weight, entire);330 newReadout->mask = ps ImageSubset(mask, entire);328 newReadout->image = psMemIncrRefCounter(psImageSubset(image, entire)); 329 newReadout->weight = psMemIncrRefCounter(psImageSubset(weight, entire)); 330 newReadout->mask = psMemIncrRefCounter(psImageSubset(mask, entire)); 331 331 // Drop references 332 332 psFree(newReadout);
Note:
See TracChangeset
for help on using the changeset viewer.
