Scatter and veiling glare estimation based on sampled primary intensity | Synapse