In order to eliminate the impact of ambient light to optical flow calculation, the N.Ohta advance a calculating model based on gray color constant. The model assumes that the color image is composed of the three separate RGB gray images. Calculating the optical flow of each point in the three separate RGB gray images can be described as follows