Changeset 42215 for branches/eam_branches/ipp-20220316/psModules
- Timestamp:
- May 19, 2022, 8:45:29 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20220316/psModules/src/camera/pmFPABin.c
r34843 r42215 67 67 for (int y = yStart; y < yStop; y++) { 68 68 for (int x = xStart; x < xStop; x++) { 69 if ( inMask && (inMask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] != 0)) {69 if (false && inMask && (inMask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] != 0)) { 70 70 for (int j = 0; j < Nbits; j++) { 71 71 psImageMaskType M = (psImageMaskType) pow(2,j); … … 89 89 } 90 90 91 92 91 // Values to set 93 92 float imageValue; … … 101 100 } 102 101 outImage->data.F32[yOut][xOut] = imageValue; 103 if ( 0) {102 if (true) { 104 103 outMask->data.PS_TYPE_IMAGE_MASK_DATA[yOut][xOut] = maskValue; 105 104 } else { 106 105 outMask->data.PS_TYPE_IMAGE_MASK_DATA[yOut][xOut] = 0; 107 106 } 108 for (int j = 0; j < Nbits; j++) { 109 if (bitcounter[j] > 0.5 * pxlcount) { 110 outMask->data.PS_TYPE_IMAGE_MASK_DATA[yOut][xOut] |= (int) pow(2,j); 107 // this loop is pointless if pxlcount == 0 (all masked) 108 if (false) { 109 if (pxlcount) { 110 for (int j = 0; j < Nbits; j++) { 111 if (bitcounter[j] > 0.5 * pxlcount) { 112 outMask->data.PS_TYPE_IMAGE_MASK_DATA[yOut][xOut] |= (1 << j); 113 } 114 } 115 } else { 116 outMask->data.PS_TYPE_IMAGE_MASK_DATA[yOut][xOut] = maskValue; 111 117 } 112 118 } 113 xStart = xStop;119 xStart = xStop; 114 120 } 115 121 yStart = yStop;
Note:
See TracChangeset
for help on using the changeset viewer.
