Optimize and manipulate images prior to inspecting the object. Distinct calibration tools for area and line scan cameras extremely accurately correct lens distortions and camera displacements such as rotation and tilt.
http://www.cognex.com/visionpro-machine-vision-software.aspx?cm_campid=CBE3862F-9518-E211-AE9B-5EF3FCDAF1B7