Accurate 3D modelling for automated inspection : a stereo vision approach