Development of a Machine Vision System for the Inspection of Heavy-Haul Railway Turnout and Track Components