ess.imaging.tools.saturation.saturation_indicator#
- ess.imaging.tools.saturation.saturation_indicator(intensity, threshold=0.9)[source]#
The intensity is supposed to be a signal that scales with the gain of the image intensifier. Near saturation that is not the case anymore. The indicator tracks the second component of the singular value decomposition of the intensity signal, at the gain when the amplitude of the second component changes quickly that indicates saturation. The indicator is scaled to have a maximum at the gain where saturation kicks in.