摘要 |
A displacement magnitude calculation device for a vehicle-mounted camera includes a reference value calculating unit 12 which divides, in an image taken by a vehicle-mounted camera 20, a region for measurement Ea into a plurality of measurement unit regions D0 to DN, calculates an average of a luminance value of pixels inside each measurement unit region as reference values re(0,t), re(1,t), ..., re(N,1) of each measurement unit region, and sets a luminance vector VEC(t) indicating a distribution manner in a vertical direction of each reference value, and a camera displacement magnitude calculating unit 13 which calculates a degree of correlation between a luminance vector VEC(t 1 ) of an image taken at t 1 and a luminance vector VEC(t 2 ) of an image taken at t 2 by shifting the vertical luminance vector VEC(t 2 ) in a vertical direction (y direction), and obtains the displacement magnitude of the camera 20 from t 1 to t 2 , on the basis of a shift amount in which the degree of correlation became the highest. |