Changeset 5435 for trunk/psModules/src/detrend/pmFlatField.c
- Timestamp:
- Oct 20, 2005, 1:06:24 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/detrend/pmFlatField.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/detrend/pmFlatField.c
r5170 r5435 18 18 * @author Ross Harman, MHPCC 19 19 * 20 * @version $Revision: 1. 1$ $Name: not supported by cvs2svn $21 * @date $Date: 2005- 09-28 20:43:52$20 * @version $Revision: 1.2 $ $Name: not supported by cvs2svn $ 21 * @date $Date: 2005-10-20 23:06:24 $ 22 22 * 23 23 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 38 38 39 39 40 bool pmFlatField(pmReadout *in, pmReadout *mask, const pmReadout *flat) 40 bool pmFlatField( 41 pmReadout *in, 42 const pmReadout *flat) 41 43 { 42 44 // XXX: Not sure if this is correct. Must consult with IfA. 43 PS_ASSERT_PTR_NON_NULL( mask, false);45 PS_ASSERT_PTR_NON_NULL(in->mask, false); 44 46 int i = 0; 45 47 int j = 0; … … 56 58 // Check for nulls 57 59 if (in == NULL) { 58 return true; // Readout m ay not have data in it60 return true; // Readout might have data in it 59 61 } else if(flat==NULL) { 60 62 psError( PS_ERR_BAD_PARAMETER_NULL, true, … … 74 76 return false; 75 77 } 76 inMask = mask->image;78 inMask = in->mask; 77 79 78 80 // Check input image and its mask are not larger than flat image
Note:
See TracChangeset
for help on using the changeset viewer.
