A Software Approach to Gamma-Camera Distortion Correction.