Pattern-matching processing method and image processing apparatus
First Claim
1. A pattern-matching processing method, comprising:
- an area generating step for generating a left area and a right area each having a given range from a left image and a right image photographed in stereo;
a pixel interpolating step for generating an interpolation pixel between pixels of a plurality of pixels included respectively in the left area and the right area, wherein the pixel interpolating step includes performing a first pixel interpolation between two first adjacent pixels along a first direction in the left area and in the right area, and performing a second pixel interpolation between two second adjacent pixels along a second direction perpendicular to the first direction, wherein the second pixel interpolation includes calculating an average value of plural pixels surrounding a position to be interpolated, wherein the plural pixels include both interpolated pixels and non-interpolated pixels, and wherein in calculating the average value, the interpolated pixels among the plural pixels surrounding the position to be interpolated are assigned a weight less than the weight given to the non-interpolated pixels; and
a pattern matching step for performing pattern matching using the left area interpolated with the corresponding interpolation pixels and the right area interpolated with the corresponding interpolation pixels.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention relates to a pattern-matching processing method based on left and right images of an object photographed in stereo. A left area and a right area are generated, each having a fixed pattern containing plural pixels extracted from the left and right images, respectively, and in the left area, a reference image is generated by calculating an interpolation pixel value to be used between two transversely adjacent pixels based on the average of the two pixel values, and by calculating an interpolation pixel value to be used between two vertically adjacent pixels based on the average of the plural pixel values surrounding the relating position. Similarly, in the right area, interpolation pixel values are calculated and a comparison image is generated. Then pattern matching is performed between the reference image and the comparison images generated sequentially by shifting the right original image pixel by pixel.
-
Citations
11 Claims
-
1. A pattern-matching processing method, comprising:
-
an area generating step for generating a left area and a right area each having a given range from a left image and a right image photographed in stereo; a pixel interpolating step for generating an interpolation pixel between pixels of a plurality of pixels included respectively in the left area and the right area, wherein the pixel interpolating step includes performing a first pixel interpolation between two first adjacent pixels along a first direction in the left area and in the right area, and performing a second pixel interpolation between two second adjacent pixels along a second direction perpendicular to the first direction, wherein the second pixel interpolation includes calculating an average value of plural pixels surrounding a position to be interpolated, wherein the plural pixels include both interpolated pixels and non-interpolated pixels, and wherein in calculating the average value, the interpolated pixels among the plural pixels surrounding the position to be interpolated are assigned a weight less than the weight given to the non-interpolated pixels; and a pattern matching step for performing pattern matching using the left area interpolated with the corresponding interpolation pixels and the right area interpolated with the corresponding interpolation pixels. - View Dependent Claims (2, 5)
-
-
3. A pattern-matching processing method, comprising:
-
an area generating step for generating a left area and a right area each having a given range from a left image and a right image photographed in stereo; a pixel interpolating step for generating an interpolation pixel between pixels of a plurality of pixels included in either the left area or the right area, wherein the pixel interpolating step includes performing a first pixel interpolation between two first adjacent pixels along a first direction in the left area or in the right area, and performing a second pixel interpolation between two adjacent pixels along a second direction perpendicular to the first direction, wherein the second pixel interpolation includes calculating an average value of plural pixels surrounding a position to be interpolated, wherein the plural pixels include both interpolated pixels and non-interpolated pixels, and wherein in calculating the average value, the interpolated pixels among the plural pixels surrounding the position to be interpolated are assigned a weight less than the weight given to the non-interpolated pixels; and a pattern matching step for performing pattern matching using the area interpolated with the corresponding interpolation pixel and the area without interpolation pixels. - View Dependent Claims (4, 10)
-
-
6. An image processing apparatus measuring a distance to an object that is photographed as images, by performing pattern-matching processing based on left and right images photographed by a stereo camera, comprising:
-
an area generating unit for generating a left area and a right area each having a fixed range from the left image; a pixel interpolating unit for generating an interpolation pixel between pixels of a plurality of pixels included respectively in the left area and the right area, wherein the pixel interpolating step includes performing a first pixel interpolation between two first adjacent pixels along a first direction in the left area and in the right area, and performing a second pixel interpolation between two second adjacent pixels along a second direction perpendicular to the first direction, wherein the second pixel interpolation includes calculating an average value of plural pixels surrounding a position to be interpolated, wherein the plural pixels include both interpolated pixels and non-interpolated pixels, and wherein in calculating the average values, the interpolated pixels among the plural pixels surrounding the position to be interpolated are assigned a weight less than the weight given to the non-interpolated pixels; and a pattern-matching processing unit having a pattern-matching unit performing pattern matching based on the left area interpolated with the corresponding interpolation pixels and the right area interpolated with the corresponding interpolation pixels, or based on one of the areas without pixel interpolation and the other area interpolated with the corresponding interpolation pixels. - View Dependent Claims (7, 8, 9)
-
-
11. An image processing apparatus measuring a distance to an object that is photographed as images, by performing pattern-matching processing based on left and right images photographed by a stereo camera, comprising;
-
an area generating unit for generating a left area and a right area each having a fixed range from the left image; a pixel interpolating unit for generating an interpolation pixel between pixels of a plurality of pixels included in respectively the left area and the right area, wherein the pixel interpolating step includes performing first pixel interpolation between two first adjacent pixels along a first direction in the left area and in the right area, and performing a second pixel interpolation between two second adjacent pixels along a second direction perpendicular to the first direction, wherein the second pixel interpolation includes calculating an average value of plural pixels surrounding a position to be interpolated, wherein the plural pixels include both interpolated pixels and non-interpolated pixels, and wherein in calculating the average value, the already interpolated pixels among the plural pixels surrounding the position to be interpolated are assigned a weight less than the weight given to the non-interpolated pixels; and a pattern-matching processing unit having a pattern-matching unit performing pattern matching based on the left area interpolated with the corresponding interpolation pixels and the right area interpolated with the corresponding interpolation pixels, or based on one of the areas without pixel interpolation and the other area interpolated with the corresponding interpolation pixels; and a distance measuring unit for calculating the distance from the difference in positions of the left image and the right image based on a matching position specified by performing pattern matching on the left area and the right area.
-
Specification