IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13932


Ignore:
Timestamp:
Jun 21, 2007, 12:58:11 PM (19 years ago)
Author:
magnier
Message:

skipping nan values in input image

File:
1 edited

Legend:

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

    r13898 r13932  
    66 *  @author GLG, MHPCC
    77 *
    8  *  @version $Revision: 1.23 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-06-20 02:22:26 $
     8 *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-06-21 22:58:11 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8383            // skip zero-weight points
    8484            if (source->weight->data.F32[i][j] == 0) {
     85                continue;
     86            }
     87            // skip nan values in image
     88            if (!isfinite(source->pixels->data.F32[i][j])) {
    8589                continue;
    8690            }
     
    358362                continue;
    359363            }
     364            // skip nan values in image
     365            if (!isfinite(source->pixels->data.F32[i][j])) {
     366                continue;
     367            }
     368
    360369            psVector *coord = psVectorAlloc(2, PS_TYPE_F32);
    361370
Note: See TracChangeset for help on using the changeset viewer.