An approach to coded structured light to obtain three dimensional information