IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 6, 2008, 1:21:37 PM (18 years ago)
Author:
Paul Price
Message:

CELL.XPARITY and CELL.YPARITY should not be required for the target
--- they can simply inherit from the source.

File:
1 edited

Legend:

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

    r15180 r16859  
    110110
    111111    // enforce the following conditions:
    112     // CELL.XPARITY is required
     112    // CELL.XPARITY is required for source
    113113    // CELL.XPARITY must be +/- 1
    114114    int xParitySource = psMetadataLookupS32(&mdokS, source->concepts, "CELL.XPARITY"); // Source parity
    115115    int xParityTarget = psMetadataLookupS32(&mdokT, target->concepts, "CELL.XPARITY"); // Target x parity
    116116    assert(mdokS && mdokT);
    117     if (abs(xParitySource) != 1 || abs(xParityTarget) != 1) {
    118         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    119                 "CELL.XPARITY is not set for both source (%d) and target (%d)",
    120                 xParitySource, xParityTarget);
     117    if (abs(xParitySource) != 1) {
     118        psError(PS_ERR_BAD_PARAMETER_VALUE, true, "CELL.XPARITY is not set for source (%d)",
     119                xParitySource);
    121120        psFree(binning);
    122121        return false;
     
    132131    int yParitySource = psMetadataLookupS32(&mdokS, source->concepts, "CELL.YPARITY"); // Source parity
    133132    assert(mdokS && mdokT);
    134     if (abs(yParitySource) != 1 || abs(yParityTarget) != 1) {
    135         psError(PS_ERR_BAD_PARAMETER_VALUE, true,
    136                 "CELL.YPARITY is not set for both source (%d) and target (%d)",
    137                 yParitySource, yParityTarget);
     133    if (abs(yParitySource) != 1) {
     134        psError(PS_ERR_BAD_PARAMETER_VALUE, true, "CELL.YPARITY is not set for both source (%d)",
     135                yParitySource);
    138136        psFree(binning);
    139137        return false;
Note: See TracChangeset for help on using the changeset viewer.