Adaptive spectral band identification method in noncontact temperature measurement based on dynamic programming