Inversion of thermal wave infrared images