IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 27, 2007, 2:53:42 PM (18 years ago)
Author:
Paul Price
Message:

Cleaning up mask iteration for easier maintenance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSource.c

    r15704 r15706  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.44 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-11-27 23:51:26 $
     8 *  @version $Revision: 1.45 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-11-28 00:53:42 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    700700
    701701        for (psS32 col = 0; col < source->pixels->numCols ; col++, vPix++, vWgt++) {
    702             if ((vMsk != NULL) && *vMsk) {
     702            if (vMsk) {
     703                if (*vMsk) {
     704                    vMsk++;
     705                    continue;
     706                }
    703707                vMsk++;
    704                 continue;
    705708            }
    706709
     
    710713            // radius is just a function of (xDiff, yDiff)
    711714            if (!VALID_RADIUS(xDiff, yDiff, R2)) {
    712                 if (vMsk != NULL)
    713                     vMsk++;
    714715                continue;
    715716            }
     
    721722            // XXX EAM : should this limit be user-defined?
    722723            if (PS_SQR(pDiff) < wDiff) {
    723                 if (vMsk != NULL)
    724                     vMsk++;
    725724                continue;
    726725            }
     
    741740            peakPixel = PS_MAX (*vPix, peakPixel);
    742741            numPixels++;
    743             if (vMsk != NULL)
    744                 vMsk++;
    745742        }
    746743    }
Note: See TracChangeset for help on using the changeset viewer.