IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7362


Ignore:
Timestamp:
Jun 5, 2006, 5:32:59 PM (20 years ago)
Author:
Paul Price
Message:

Fixed bug: high pixels weren't being tossed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmReadoutCombine.c

    r7283 r7362  
    55 *  @author GLG, MHPCC
    66 *
    7  *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2006-06-02 02:16:05 $
     7 *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2006-06-06 03:32:59 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    330330                }
    331331                // High pixels
    332                 for (int k = pixels->n - 1, numMasked = 0; numMasked < numHigh && k < index->n; k++) {
     332                for (int k = pixels->n - 1, numMasked = 0; numMasked < numHigh && k >= 0; k--) {
    333333                    // Don't count the ones that are already masked
    334334                    if (! mask->data.U8[index->data.S32[k]]) {
Note: See TracChangeset for help on using the changeset viewer.