IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 26, 2008, 4:24:39 PM (18 years ago)
Author:
Paul Price
Message:

Ensure new images are set to appropriate values.

File:
1 edited

Legend:

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

    r16600 r16680  
    2525    if (!readout->image) {
    2626        readout->image = psImageAlloc(numCols, numRows, PS_TYPE_F32);
     27        psImageInit(readout->image, NAN);
    2728    }
    2829    if (readout->image->numCols < numCols || readout->image->numRows < numRows) {
     
    3839        if (!readout->mask) {
    3940            readout->mask = psImageAlloc(numCols, numRows, PS_TYPE_MASK);
     41            psImageInit(readout->mask, blank);
    4042        }
    4143        if (readout->mask->numCols < numCols || readout->mask->numRows < numRows) {
     
    5153        if (!readout->weight) {
    5254            readout->weight = psImageAlloc(numCols, numRows, PS_TYPE_F32);
     55            psImageInit(readout->weight, NAN);
    5356        }
    5457        if (readout->weight->numCols < numCols || readout->weight->numRows < numRows) {
Note: See TracChangeset for help on using the changeset viewer.