A Vision-Based Approach for Rail Extraction and its Application in a Camera Pan–Tilt Control System | Synapse