1. A method of image processing in a structured light imaging device, the method comprising: capturing, by a camera in the structured light imaging device, a first image of a scene into which a pre-determined structured light pattern is projected by a projector in the structured light imaging device; generating a first disparity map based on the captured first image and the structured light pattern; adapting the structured light pattern based on the first disparity map to generate an adaptive pattern by replacing at least one region having a first frequency in the structured light pattern with a different light pattern having a second frequency different than the first frequency, the at least one region being less than all of the structured light pattern; capturing, by the camera, a second image of the scene into which the adaptive pattern is projected by the projector; generating a second disparity map based on the captured second image and the adaptive pattern; and generating a depth image using the second disparity map.