Pedestrian validation in infrared images by means of active contours and neural networks