3D inspection for gear shafts with machine vision systems