A semi-automatic motion-constrained graph cut algorithm for pedestrian detection in thermal surveillance videos