Development of Computer Vision Algorithms for Measurement and Inspection of Spur Gears.