- Timestamp:
- Nov 19, 2021, 10:45:33 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/psModules/src/imcombine/pmStack.c
r41909 r41919 1579 1579 int nGoodBits[16]; // accumulate the good pixel bits here for fuzzy logic 1580 1580 psAssert (sizeof(psImageMaskType) == 2, "psImageMaskType is not the expected size"); 1581 memset (nGoodBits, 0, 16*sizeof(int));1582 1581 1583 1582 for (int y = minInputRows; y < maxInputRows; y++) { … … 1585 1584 1586 1585 int nGood = 0; 1586 memset (nGoodBits, 0, 16*sizeof(int)); 1587 1587 for (int i = 0; i < stackData->n; i++) { 1588 1588 … … 1608 1608 // NOTE: since we have explicitly skipped the pixels with any bad bits, these are only 1609 1609 // the suspect bits (nGoodBits is a bit of a misnomer: it is more like 'nSuspectBitsForGoodInputs' 1610 // NOTE: skip the full bit-by-bit check if we know the mask byte is empty 1610 1611 psImageMaskType value = 0x0001; 1611 for (int nbit = 0; nbit < 16; nbit ++) {1612 for (int nbit = 0; mask->data.PS_TYPE_IMAGE_MASK_DATA[yIn][xIn] && (nbit < 16); nbit ++) { 1612 1613 if (mask->data.PS_TYPE_IMAGE_MASK_DATA[yIn][xIn] & value) { 1613 1614 nGoodBits[nbit] ++; … … 1698 1699 expmaps->image->data.F32[y][x] = sum; 1699 1700 } 1700 if (expmaps) { expmaps->mask->data. F32[y][x] = Ne - Ns; }1701 if (expmaps) { expmaps->mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] = Ne - Ns; } 1701 1702 } 1702 1703 }
Note:
See TracChangeset
for help on using the changeset viewer.
