Designed dynamic threshold algorithm and flaw region extraction algorithm for processing two typical rail surface defects,rail head spalling and cracks.Flaw region can be extracted,while its position and feature were saved and calculated.Built the simulated rail detecting platform,captured images with help of high-speed line-scan camera and illuminants,then transported them to host computer via Gigabit Ethernet.The image-processing software was coding by halcon and visual Csharp.In simulated experiment,the ...