This is the code for structured light scanning