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