In structured light vision measurement, since non-uniformity of brightness of the common projector caused nonlinear distortion Gamma value distribution difference resulting in phase error problem, a self-adaptive subregional Gamma value pre-coding correction method was proposed. First, the principle of structured light stereo vision measurement and standardN step phase shifting method is introduced. Second, the projector and the camera's nonlinear distortion of sine grating and the Gamma value pre-coding correction method are analyzed. Then, on the basis of Gamma value distribution, according to the relationship between the change of Gamma value and the phase error, subregional threshold was calculated. Finally, according to the threshold, the measurement field was divided and subregional Gamma pre-coding correction method was implemented, and actual measurement was carried out on a standard white plate and a fender. Experimental results indicate, under the same conditions, compared with single Gamma pre-coding correction method, the proposed method can further improve phase error compensation about 30%, and the measurement accuracy increase by about 15% in the 3D data.