IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2005, 5:07:12 PM (21 years ago)
Author:
Paul Price
Message:

Working very nicely now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/stac/src/stacCombine.c

    r3375 r3610  
    6868    int numRows = ((psImage*)images->data[0])->numRows; // Image size
    6969    int numCols = ((psImage*)images->data[0])->numCols; // Image size
    70     float saturated = config->saturated;// Saturation limit
    71     float bad = config->bad;            // Bad pixel limit
     70    psVector *saturated = config->saturated;// Saturation limits
     71    psVector *bad = config->bad;        // Bad pixel limits
    7272    float reject = config->reject;      // Rejection (k-sigma)
    7373   
     
    134134                    pixels->data.F32[i] = pixel;
    135135                    deltas->data.F32[i] = delta;
    136                     if ((pixel >= saturated) || (pixel <= bad) || (! isfinite(pixel)) || (! isfinite(delta))) {
     136                    if ((pixel >= saturated->data.F32[i]) || (pixel <= bad->data.F32[i]) ||
     137                        (! isfinite(pixel)) || (! isfinite(delta))) {
    137138                        mask->data.U8[i] = (psU8)1; // Don't use!
    138139                    } else {
Note: See TracChangeset for help on using the changeset viewer.