IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 28, 2006, 5:31:33 PM (20 years ago)
Author:
Paul Price
Message:

Adding -norm option to do normalisation of a file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageDetrendReadout.c

    r8751 r9058  
    5757    }
    5858
     59    // Normalisation by a (known) constant
     60    bool mdok;                          // Status of MD lookup
     61    float norm = psMetadataLookupF32(&mdok, config->arguments, "NORMALISATION");
     62    if (mdok && isfinite(norm)) {
     63        psBinaryOp(input->image, input->image, "*", psScalarAlloc(norm, PS_TYPE_F32));
     64    }
     65
    5966    psFree (detview);
    6067    return true;
Note: See TracChangeset for help on using the changeset viewer.