IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1815


Ignore:
Timestamp:
Sep 14, 2004, 3:08:23 PM (22 years ago)
Author:
harman
Message:

Minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/pmFlatField.c

    r1813 r1815  
    1515 *  @author Ross Harman, MHPCC
    1616 *
    17  *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    18  *  @date $Date: 2004-09-15 01:04:29 $
     17 *  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     18 *  @date $Date: 2004-09-15 01:08:23 $
    1919 *
    2020 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    128128        psError(__func__, " : Line %d - Input and flat image types don't agree. (%d vs %d).",
    129129                __LINE__, inType, flatType);
    130         return NULL;
     130        return false;
    131131    }
    132132
     
    145145    for(j = totOffRow; j < inImage->numRows; j++) {                                                          \
    146146        for(i = totOffCol; i < inImage->numCols; i++) {                                                      \
    147             if(maskImage->data.F64[j][i] == 0) {                                                             \
     147            if(!maskImage->data.F64[j][i]) {                                                                 \
    148148                /* Module shall divide the input image by the flat-fielded image */                          \
    149                 inImage->data.TYPE[j][i] = inImage->data.TYPE[j][i]/flatImage->data.TYPE[j][i];              \
     149                inImage->data.TYPE[j][i] /= flatImage->data.TYPE[j][i];                                      \
    150150            }                                                                                                \
    151151        }                                                                                                    \
Note: See TracChangeset for help on using the changeset viewer.