Changeset 11869 for trunk/psModules/src/camera/pmFPACopy.c
- Timestamp:
- Feb 16, 2007, 5:27:47 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPACopy.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPACopy.c
r11865 r11869 248 248 if (xFlip) { 249 249 int xZero = psMetadataLookupS32(NULL, source->concepts, "CELL.X0"); // CELL.X0 from source 250 int xParity = psMetadataLookupS32(NULL, target->concepts, "CELL.XPARITY"); // Parity in x250 int xParity = psMetadataLookupS32(NULL, source->concepts, "CELL.XPARITY"); // Parity in x 251 251 int xBin = psMetadataLookupS32(NULL, source->concepts, "CELL.XBIN"); // CELL.XBIN from source 252 252 int xSize = psMetadataLookupS32(NULL, source->concepts, "CELL.XSIZE"); // CELL.XSIZE of source 253 253 254 254 psTrace("psModules.camera", 3, "CELL.X0: Before: %d After: %d\n", xZero, 255 xZero -(xSize - 1) * xParity * xBin);255 xZero + (xSize - 1) * xParity * xBin); 256 256 psTrace("psModules.camera", 9, "(xParity: %d xBin: %d numCols: %d)\n", xParity, xBin, xSize); 257 257 … … 261 261 } 262 262 263 xZero -= (xSize - 1) * xParity * xBin; // Change the parity on the X0 position263 xZero += (xSize - 1) * xParity * xBin; // Change the parity on the X0 position 264 264 psMetadataItem *newItem = psMetadataLookup(target->concepts, "CELL.X0"); // CELL.X0 from target 265 265 newItem->data.S32 = xZero; … … 267 267 if (yFlip) { 268 268 int yZero = psMetadataLookupS32(NULL, source->concepts, "CELL.Y0"); // CELL.Y0 from source 269 int yParity = psMetadataLookupS32(NULL, target->concepts, "CELL.YPARITY"); // Parity in y269 int yParity = psMetadataLookupS32(NULL, source->concepts, "CELL.YPARITY"); // Parity in y 270 270 int yBin = psMetadataLookupS32(NULL, source->concepts, "CELL.YBIN"); // Binning in y 271 271 int ySize = psMetadataLookupS32(NULL, source->concepts, "CELL.YSIZE"); // CELL.YSIZE of source 272 272 273 273 psTrace("psModules.camera", 3, "CELL.Y0: Before: %d After: %d\n", yZero, 274 yZero -(ySize - 1) * yParity * yBin);274 yZero + (ySize - 1) * yParity * yBin); 275 275 psTrace("psModules.camera", 9, "(yParity: %d yBin: %d numRows: %d)\n", yParity, yBin, ySize); 276 276 … … 280 280 } 281 281 282 yZero -= (ySize - 1) * yParity * yBin; // Change the parity on the Y0 position282 yZero += (ySize - 1) * yParity * yBin; // Change the parity on the Y0 position 283 283 psMetadataItem *newItem = psMetadataLookup(target->concepts, "CELL.Y0"); // CELL.Y0 from target 284 284 newItem->data.S32 = yZero;
Note:
See TracChangeset
for help on using the changeset viewer.
