- Timestamp:
- Jan 1, 2009, 7:13:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20081230/psModules/src/camera/pmCellSquish.c
r12696 r21079 12 12 13 13 14 bool pmCellSquish(pmCell *cell, ps MaskType maskVal, bool useShifts)14 bool pmCellSquish(pmCell *cell, psImageMaskType maskVal, bool useShifts) 15 15 { 16 16 PS_ASSERT_PTR_NON_NULL(cell, false); … … 116 116 psImage *squishImage = psImageAlloc(numCols, numRows, PS_TYPE_F32); // Squished image 117 117 psImageInit(squishImage, 0.0); 118 psImage *squishMask = psImageAlloc(numCols, numRows, PS_TYPE_ MASK); // Squished mask118 psImage *squishMask = psImageAlloc(numCols, numRows, PS_TYPE_IMAGE_MASK); // Squished mask 119 119 psImageInit(squishMask, 0); 120 120 … … 159 159 squishImage->data.F32[ySquish][xSquish] += image->data.F32[y][x]; 160 160 if (mask) { 161 squishMask->data.PS_TYPE_ MASK_DATA[ySquish][xSquish] |= mask->data.U8[y][x] & maskVal;161 squishMask->data.PS_TYPE_IMAGE_MASK_DATA[ySquish][xSquish] |= mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] & maskVal; 162 162 } 163 163 }
Note:
See TracChangeset
for help on using the changeset viewer.
