A software tool for the correction of infrared images for fusion applications