IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 16, 2008, 4:41:00 PM (18 years ago)
Author:
Paul Price
Message:

Fixing compilation errors.

File:
1 edited

Legend:

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

    r17730 r17731  
    413413    PM_ASSERT_READOUT_MASK(readout, false);
    414414
    415     int numCols = image->numCols, numRows = image->numRows; // Size of image
    416     psMaskType **maskData = mask->data.PS_TYPE_MASK_DATA; // Dereference mask
    417     psF32 **imageData = image->data.F32;// Dereference image
    418     psF32 **weightData = weight->data.F32; // Dereference weight map
     415    int numCols = readout->image->numCols, numRows = readout->image->numRows; // Size of image
     416    psMaskType **maskData = readout->mask->data.PS_TYPE_MASK_DATA; // Dereference mask
     417    psF32 **imageData = readout->image->data.F32;// Dereference image
     418    psF32 **weightData = readout->weight ? readout->weight->data.F32 : NULL; // Dereference weight map
    419419
    420420    for (int y = 0; y < numRows; y++) {
     
    422422            if (maskData[y][x] & maskVal) {
    423423                imageData[y][x] = NAN;
    424                 if (weight) {
     424                if (weightData) {
    425425                    weightData[y][x] = NAN;
    426426                }
Note: See TracChangeset for help on using the changeset viewer.