COLOR N-ARY GRAY CODE FOR 3-D SHAPE MEASUREMENT