Changeset 41940
- Timestamp:
- Nov 28, 2021, 5:32:07 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20211108/psModules/src/imcombine/pmStack.c
r41933 r41940 1711 1711 combined->mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] = outputMask; 1712 1712 1713 // The exposure time of interest should be the total number of values, after 1714 // rejection of known bad measurements, not the sorted and clipped number. 1715 // Note that if we were to take the median, the relevant exposure time would 1716 // still be the total of all inputs, not the single exposure for which the 1717 // median was generated. 1718 1713 1719 if (expTime) { 1714 1720 float sum = 0.0; 1715 for (int n = Ns; n < Ne; n++) {1721 for (int n = 0; n < nGood; n++) { 1716 1722 sum += expTime->data.F32[n]; 1717 1723 } 1718 1724 expmaps->image->data.F32[y][x] = sum; 1719 1725 } 1720 if (expmaps) { expmaps->mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] = Ne - Ns; }1726 if (expmaps) { expmaps->mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] = nGood; } 1721 1727 } 1722 1728 }
Note:
See TracChangeset
for help on using the changeset viewer.
