Infrared thermal imaging as inline quality assessment tool