IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11869


Ignore:
Timestamp:
Feb 16, 2007, 5:27:47 PM (19 years ago)
Author:
Paul Price
Message:

Changing sense of parity, so that all required concepts come from the source.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPACopy.c

    r11865 r11869  
    248248    if (xFlip) {
    249249        int xZero = psMetadataLookupS32(NULL, source->concepts, "CELL.X0"); // CELL.X0 from source
    250         int xParity = psMetadataLookupS32(NULL, target->concepts, "CELL.XPARITY"); // Parity in x
     250        int xParity = psMetadataLookupS32(NULL, source->concepts, "CELL.XPARITY"); // Parity in x
    251251        int xBin = psMetadataLookupS32(NULL, source->concepts, "CELL.XBIN"); // CELL.XBIN from source
    252252        int xSize = psMetadataLookupS32(NULL, source->concepts, "CELL.XSIZE"); // CELL.XSIZE of source
    253253
    254254        psTrace("psModules.camera", 3, "CELL.X0: Before: %d After: %d\n", xZero,
    255                 xZero - (xSize - 1) * xParity * xBin);
     255                xZero + (xSize - 1) * xParity * xBin);
    256256        psTrace("psModules.camera", 9, "(xParity: %d xBin: %d numCols: %d)\n", xParity, xBin, xSize);
    257257
     
    261261        }
    262262
    263         xZero -= (xSize - 1) * xParity * xBin; // Change the parity on the X0 position
     263        xZero += (xSize - 1) * xParity * xBin; // Change the parity on the X0 position
    264264        psMetadataItem *newItem = psMetadataLookup(target->concepts, "CELL.X0"); // CELL.X0 from target
    265265        newItem->data.S32 = xZero;
     
    267267    if (yFlip) {
    268268        int yZero = psMetadataLookupS32(NULL, source->concepts, "CELL.Y0"); // CELL.Y0 from source
    269         int yParity = psMetadataLookupS32(NULL, target->concepts, "CELL.YPARITY"); // Parity in y
     269        int yParity = psMetadataLookupS32(NULL, source->concepts, "CELL.YPARITY"); // Parity in y
    270270        int yBin = psMetadataLookupS32(NULL, source->concepts, "CELL.YBIN"); // Binning in y
    271271        int ySize = psMetadataLookupS32(NULL, source->concepts, "CELL.YSIZE"); // CELL.YSIZE of source
    272272
    273273        psTrace("psModules.camera", 3, "CELL.Y0: Before: %d After: %d\n", yZero,
    274                 yZero - (ySize - 1) * yParity * yBin);
     274                yZero + (ySize - 1) * yParity * yBin);
    275275        psTrace("psModules.camera", 9, "(yParity: %d yBin: %d numRows: %d)\n", yParity, yBin, ySize);
    276276
     
    280280        }
    281281
    282         yZero -= (ySize - 1) * yParity * yBin; // Change the parity on the Y0 position
     282        yZero += (ySize - 1) * yParity * yBin; // Change the parity on the Y0 position
    283283        psMetadataItem *newItem = psMetadataLookup(target->concepts, "CELL.Y0"); // CELL.Y0 from target
    284284        newItem->data.S32 = yZero;
Note: See TracChangeset for help on using the changeset viewer.