The Pentax K-5 includes the ability to perform in-camera correction for geometric distortion and lateral chromatic aberration. Here is an example of both enabled / disabled for the 18-55mm kit lens at 18mm where both distortion and CA are abundant.
[ Distortion and CA Correction Enabled ]
[ CA Correction Only ]
[ Distortion Correction Only ]
[ In Camera Correction Disabled ]