Real-time three-dimensional surface measurement by color encoded light projection