1. A method, comprising: projecting a sequence of different structured light patterns onto an object using an array of addressable light modulating pixels of a spatial light modulator, wherein respective ones of the sequence are projected at time interval spacings; capturing a two-dimensional image of the object; and using an array of charge-coupled device pixels of an image sensor, capturing the light patterns reflected from the object as depth information for image pixels of the two-dimensional image, wherein capturing the reflected light patterns includes: generating at least one accumulated electrical charge proportional to intensity of light incident on at least one of the charge-coupled device pixels for light reflected from a given number of the light patterns over a time corresponding to a total of the time interval spacings between the given number of light patterns.