Changeset 4770 for trunk/psModules/src/pmFlatField.c
- Timestamp:
- Aug 15, 2005, 3:10:36 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/pmFlatField.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/pmFlatField.c
r2299 r4770 18 18 * @author Ross Harman, MHPCC 19 19 * 20 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $21 * @date $Date: 200 4-11-06 02:42:03$20 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 21 * @date $Date: 2005-08-16 01:10:34 $ 22 22 * 23 23 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 38 38 39 39 40 bool pmFlatField(p sReadout *in, const psReadout *flat)40 bool pmFlatField(pmReadout *in, pmReadout *mask, const pmReadout *flat) 41 41 { 42 // XXX: Not sure if this is correct. Must consult with IfA. 43 PS_ASSERT_PTR_NON_NULL(mask, false); 42 44 int i = 0; 43 45 int j = 0; … … 71 73 PS_ERRORTEXT_pmFlatField_NULL_FLAT_IMAGE); 72 74 return false; 73 } else if(in->mask == NULL) {74 in->mask = psImageAlloc(inImage->numCols, inImage->numRows, PS_TYPE_MASK);75 memset(in->mask->data.V[0], 0, inImage->numCols*inImage->numRows*PSELEMTYPE_SIZEOF(PS_TYPE_MASK));76 75 } 77 inMask = in->mask;76 inMask = mask->image; 78 77 79 78 // Check input image and its mask are not larger than flat image 79 80 80 if(inImage->numRows>flatImage->numRows || inImage->numCols>flatImage->numCols) { 81 81 psError( PS_ERR_BAD_PARAMETER_SIZE, true,
Note:
See TracChangeset
for help on using the changeset viewer.
