4D thermal imaging system for medical applications