Read Simple algorithms for adjusting image temperature and tint, A simple algorithm for correcting lens distortion, Real-time Diffuse (Spread) Image Filter.