IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2006, 9:31:44 PM (20 years ago)
Author:
magnier
Message:

working on new linear fit process

File:
1 edited

Legend:

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

    r9830 r10075  
    210210    psImage *image = readout->image;    // The image pixels
    211211    readout->weight = (psImage*)psBinaryOp(readout->weight, image, "/", psScalarAlloc(gain, PS_TYPE_F32));
     212
     213    // a negative weight is non-sensical. if the image value drops below 1, the weight must be 1.
     214    readout->weight = (psImage*)psUnaryOp(readout->weight, readout->weight, "abs");
     215    readout->weight = (psImage*)psBinaryOp(readout->weight, readout->weight, "max", psScalarAlloc(1, PS_TYPE_F32));
     216
    212217    readout->weight = (psImage*)psBinaryOp(readout->weight, readout->weight, "+",
    213218                                           psScalarAlloc(readnoise*readnoise/gain/gain, PS_TYPE_F32));
Note: See TracChangeset for help on using the changeset viewer.