The invention relates to a method for acquiring the binocular image maximum
parallax based on an
optical flow method, which is characterized in that a series of
processing is carried out on images acquired by left and right cameras so as to acquire a
motion vector of each point on the images, analysis and judgment are carried out the motion vectors to acquire the maximum
parallax finally so as to be convenient for carrying out further
processing. The
optical flow method is insensitive to influences such as weak textures, repeated textures,
noise interferences and the like, so that improvement is carried out on a gradient operator and a window weighing function of data items in an
optical flow algorithm. A characteristic of uniqueness of the maximum
parallax is considered, and an optical flow is calculated for two times with one time being simple and the other time being complicated, thereby effectively reducing the calculation amount, and accelerating the calculation speed. On the basis of a CLG-TV
pyramid optical flow method, a global
diffusion coefficient is introduced to a smooth item of the optical flow
algorithm, and improvement is carried out on the gradient operator and the window weighing function of the data items in the optical flow
algorithm, thereby enabling the method to be more applicable to calculation in the circumstance that a binocular image only has horizontal displacement. As for the
pyramid calculation method, the optical flow is calculated for two times with one time being simple and the other time being complicated, thereby effectively reducing the calculation amount, and accelerating the calculation speed.