A survey of image compensation and restoration principles