1. A method to determine depth values, the method comprising: projecting a structured light pattern towards a target region, the structured light pattern comprising a plurality of parallel bars that encode a plurality of codes; receiving an image of at least a portion of the target region, the image comprising a plurality of pixels representative of at least a portion of the structured light pattern; and for each of a plurality of rows of pixels that are transverse to the plurality of parallel bars: decoding the plurality of parallel bars represented in the row of pixels to identify a location of each of the plurality of codes in the row of pixels; determining a plurality of disparities respectively between the identified locations of the plurality of codes and a plurality of reference locations respectively associated with the plurality of codes; and determining a depth value for each identified location based at least in part on the determined disparity for such location; performing a spatial modulation encoding with respect to a binary de Bruijn sequence of order n to obtain the structured light pattern, wherein n comprises a positive integer, and performing a spatial frequency modulation coding technique comprises transforming each bit of value 1 in the binary de Bruijn sequence into a lit element of a width E and a first dark element of the width E and transforming each bit of value 0 in the binary de Bruijn sequence into the lit element of the width E and a second dark element of width 3E.