Apparatus, method for detecting critical areas and pedestrian detection apparatus using the same