IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 15, 2010, 4:26:53 PM (16 years ago)
Author:
Paul Price
Message:

Allow application of a constant instead of an image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppArith/src/ppArithReadout.c

    r21378 r28346  
    2121#include "ppArith.h"
    2222
    23 bool ppArithReadout(pmReadout *output, const pmReadout *input1, const pmReadout *input2,
     23bool ppArithReadout(pmReadout *output, const pmReadout *input1, const pmReadout *input2, float const2,
    2424                    const pmConfig *config, const pmFPAview *view)
    2525{
     
    7777    if (input2) {
    7878        psBinaryOp(outImage, inImage1, op, inImage2);
     79    }  else if (!isnan(const2)) {
     80        psBinaryOp(outImage, inImage1, op, psScalarAlloc(const2, inImage1->type.type));
    7981    } else {
    8082        psUnaryOp(outImage, inImage1, op);
Note: See TracChangeset for help on using the changeset viewer.