Selection of a visible-light vs. Thermal infrared sensor in dynamic environments based on confidence measures