IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41933


Ignore:
Timestamp:
Nov 24, 2021, 7:11:32 AM (5 years ago)
Author:
eugene
Message:

more restrictive clipping for percentile method: MIN_GOOD = 3, exclude suspect pixels, use AT_LEAST method: these should all be user options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/psModules/src/imcombine/pmStack.c

    r41927 r41933  
    15151515}
    15161516
    1517 # define MIN_GOOD_PERCENTILE 2
    15181517# define SUSPECT_FRACTION 0.65
    15191518
     
    16101609                if (fabs(image->data.F32[yIn][xIn]) > 1e5) continue; // XXX this cut is a bit arbitrary..
    16111610                if (mask->data.PS_TYPE_IMAGE_MASK_DATA[yIn][xIn] & badMaskBits) continue;
     1611                if (mask->data.PS_TYPE_IMAGE_MASK_DATA[yIn][xIn] & suspectMaskBits) continue;
    16121612
    16131613                // count the number of times a given mask bit is set in the input pixels.
     
    16291629                // accumulate exposure times if required
    16301630                if (expTime)  { expTime->data.F32[nGood] = data->exp; }
    1631 
    16321631                nGood ++;
    16331632            }
     
    16411640            // rejection needs to be symmetric
    16421641
    1643 # define AT_LEAST 0
     1642            // 'AT_LEAST' means we reject at least 'rejectFraction' of values, but it could
     1643            // be a higher percentage for smaller numbers of inputs.
     1644# define AT_LEAST 1
     1645# define MIN_GOOD_PERCENTILE 3
    16441646# if (AT_LEAST)
    16451647            int Ns = MIN(MAX(1, 0.5*rejectFraction * nGood), nGood);
Note: See TracChangeset for help on using the changeset viewer.