Topographic slope correction for analysis of thermal infrared images