Changeset 7308 for trunk/psModules/src/camera/pmFPAMaskWeight.c
- Timestamp:
- Jun 2, 2006, 2:42:41 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmFPAMaskWeight.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmFPAMaskWeight.c
r7275 r7308 29 29 if (!mask) { 30 30 mask = psImageAlloc(image->numCols, image->numRows, PS_TYPE_U8); 31 mask->col0 = image->col0; 32 mask->row0 = image->row0; 31 33 readout->mask = mask; 32 34 psImageInit(mask, 0); … … 72 74 if (!weight) { 73 75 weight = psImageAlloc(image->numCols, image->numRows, PS_TYPE_F32); 76 weight->col0 = image->col0; 77 weight->row0 = image->row0; 74 78 readout->weight = weight; 75 79 psImageInit(weight, 0.0); … … 83 87 return true; 84 88 } 85 86 87 89 88 90 bool pmCellSetMaskWeight(pmCell *cell // Cell for which to set weights … … 101 103 return success; 102 104 } 105 106 bool pmReadoutSetMaskWeight(pmReadout *readout // Readout for which to set weights 107 ) 108 { 109 PS_ASSERT_PTR_NON_NULL(readout, false); 110 111 bool success; 112 113 success |= pmReadoutSetMask(readout); 114 success |= pmReadoutSetWeight(readout); 115 116 return success; 117 }
Note:
See TracChangeset
for help on using the changeset viewer.
