IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7167


Ignore:
Timestamp:
May 22, 2006, 1:08:22 PM (20 years ago)
Author:
Paul Price
Message:

Don't bother checking values that have already been masked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psStats.c

    r7164 r7167  
    1616 * use ->min and ->max (PS_STAT_USE_RANGE)
    1717 *
    18  *  @version $Revision: 1.174 $ $Name: not supported by cvs2svn $
    19  *  @date $Date: 2006-05-22 22:46:12 $
     18 *  @version $Revision: 1.175 $ $Name: not supported by cvs2svn $
     19 *  @date $Date: 2006-05-22 23:08:22 $
    2020 *
    2121 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    840840        if (errors) {
    841841            for (long j = 0; j < myVector->n; j++) {
    842                 if (fabsf(myVector->data.F32[j] - clippedMean) > (stats->clipSigma * errors->data.F32[j])) {
     842                if (! tmpMask->data.U8[j] & maskVal &&
     843                        fabsf(myVector->data.F32[j] - clippedMean) > stats->clipSigma * errors->data.F32[j]) {
    843844                    tmpMask->data.U8[j] = 0xff;
    844845                    psTrace(__func__, 10, "Clipped %d: %f +/- %f\n", j,
     
    850851        } else {
    851852            for (long j = 0; j < myVector->n; j++) {
    852                 if (fabsf(myVector->data.F32[j] - clippedMean) > (stats->clipSigma * clippedStdev)) {
     853                if (! tmpMask->data.U8[j] & maskVal &&
     854                        fabsf(myVector->data.F32[j] - clippedMean) > (stats->clipSigma * clippedStdev)) {
    853855                    tmpMask->data.U8[j] = 0xff;
    854856                    psTrace(__func__, 10, "Clipped %d: %f\n", j, myVector->data.F32[j]);
Note: See TracChangeset for help on using the changeset viewer.