Phase-based Stereo Matching (PSM) is an efficient matching method in binocular stereo vision. It bases on correspondence points which have the same phase-distribution. Sine raster generating algorithm is a basic and important step in PSM study. This paper advances that using defocusing rectify-binary patterns (DRBP) method substituted the focusing-sinusoidal-patterns (FSP) method. It has following advantages: (1) No gamma correction is required; (2) The object illuminance measurement is not desired; (3) The influence of noise is minified. There are same phases distribution in correspond points of the pair matching lines by experiment analysis. The feasibility of using DRBP to generate sine raster in PSM is demonstrated.