Changeset 21363 for trunk/psModules/src/camera/pmFPACopy.c
- Timestamp:
- Feb 5, 2009, 4:31:25 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPACopy.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPACopy.c
r20634 r21363 224 224 targetReadout->data_exists = sourceReadout->data_exists; 225 225 226 // Copy all three image components (image, mask, weight) 227 readoutCopyComponent(&targetReadout->image, sourceReadout->image, binning, xFlip, yFlip, pixels); 228 readoutCopyComponent(&targetReadout->mask, sourceReadout->mask, binning, xFlip, yFlip, pixels); 229 readoutCopyComponent(&targetReadout->weight, sourceReadout->weight, binning, xFlip, yFlip, pixels); 226 // Copy all three image components (image, mask, variance) 227 readoutCopyComponent(&targetReadout->image, sourceReadout->image, binning, xFlip, yFlip, pixels); 228 readoutCopyComponent(&targetReadout->mask, sourceReadout->mask, binning, xFlip, yFlip, pixels); 229 readoutCopyComponent(&targetReadout->variance, sourceReadout->variance, binning, xFlip, yFlip, 230 pixels); 230 231 231 232 // Copy bias … … 328 329 int xSize = psMetadataLookupS32(NULL, source->concepts, "CELL.XSIZE"); // CELL.XSIZE of source 329 330 330 psAssert (abs(xParity) == 1, "CELL.XPARITY not set for source");331 psAssert (abs(xParity) == 1, "CELL.XPARITY not set for source"); 331 332 332 333 if (sourceBin == 0) { … … 478 479 pmCell *targetCell = pmCellAlloc (targetChip, cellName); 479 480 int xParityTarget = psMetadataLookupS32(&status, sourceCell->concepts, "CELL.XPARITY"); // Target x parity 480 psAssert (abs(xParityTarget) == 1, "CELL.XPARITY not set for target");481 psAssert (abs(xParityTarget) == 1, "CELL.XPARITY not set for target"); 481 482 psMetadataAddS32 (targetCell->concepts, PS_LIST_TAIL, "CELL.XPARITY", PS_META_REPLACE, "", xParityTarget); 482 483 int yParityTarget = psMetadataLookupS32(&status, sourceCell->concepts, "CELL.YPARITY"); // Target y parity 483 psAssert (abs(xParityTarget) == 1, "CELL.YPARITY not set for target");484 psAssert (abs(xParityTarget) == 1, "CELL.YPARITY not set for target"); 484 485 psMetadataAddS32 (targetCell->concepts, PS_LIST_TAIL, "CELL.YPARITY", PS_META_REPLACE, "", yParityTarget); 485 486 if (!cellCopy(targetCell, sourceCell, true, 1, 1)) {
Note:
See TracChangeset
for help on using the changeset viewer.
