IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 9, 2006, 4:17:37 PM (20 years ago)
Author:
Paul Price
Message:

Bug in output binning --- if the binning wasn't set, it would come
back as zero, which is less than any proper value.

File:
1 edited

Legend:

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

    r9596 r9945  
    211211    int xBinCell = psMetadataLookupS32(&mdok, cell->concepts, "CELL.XBIN"); // Binning in x
    212212    if (!mdok || xBin <= 0) {
    213         psError(PS_ERR_UNKNOWN, true, "CELL.XPARITY hasn't been set for cell.\n");
     213        psError(PS_ERR_UNKNOWN, true, "CELL.XBIN hasn't been set for cell.\n");
    214214        return false;
    215215    }
    216216    int yBinCell = psMetadataLookupS32(&mdok, cell->concepts, "CELL.YBIN"); // Binning in y
    217217    if (!mdok || yBin <= 0) {
    218         psError(PS_ERR_UNKNOWN, true, "CELL.YPARITY hasn't been set for cell.\n");
     218        psError(PS_ERR_UNKNOWN, true, "CELL.YBIN hasn't been set for cell.\n");
    219219        return false;
    220220    }
     
    623623        psError(PS_ERR_UNKNOWN, true, "CELL.XBIN for cell is not set.\n");
    624624        good = false;
    625     }
    626     if (xBin->data.S32[index] < *xBinMin) {
     625    } else if (xBin->data.S32[index] < *xBinMin) {
    627626        *xBinMin = xBin->data.S32[index];
    628627    }
     
    631630        psError(PS_ERR_UNKNOWN, true, "CELL.YBIN for cell is not set.\n");
    632631        good = false;
    633     }
    634     if (yBin->data.S32[index] < *yBinMin) {
     632    } else if (yBin->data.S32[index] < *yBinMin) {
    635633        *yBinMin = yBin->data.S32[index];
    636634    }
Note: See TracChangeset for help on using the changeset viewer.