High quality three-dimensional (3D) shape measurement using intensity-optimized dithering technique