WO2004038660A1 - 画像処理方法および画像処理装置 - Google Patents

画像処理方法および画像処理装置 Download PDF

Info

Publication number
WO2004038660A1
WO2004038660A1 PCT/JP2003/013488 JP0313488W WO2004038660A1 WO 2004038660 A1 WO2004038660 A1 WO 2004038660A1 JP 0313488 W JP0313488 W JP 0313488W WO 2004038660 A1 WO2004038660 A1 WO 2004038660A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
reference image
windows
image
divided
Prior art date
Application number
PCT/JP2003/013488
Other languages
English (en)
French (fr)
Inventor
Kenichi Kitahama
Hiroki Okamura
Original Assignee
Toyota Jidosha Kabushiki Kaisha
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toyota Jidosha Kabushiki Kaisha filed Critical Toyota Jidosha Kabushiki Kaisha
Priority to AU2003275587A priority Critical patent/AU2003275587A1/en
Priority to JP2004546445A priority patent/JP4082410B2/ja
Publication of WO2004038660A1 publication Critical patent/WO2004038660A1/ja

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/55Depth or shape recovery from multiple images
    • G06T7/593Depth or shape recovery from multiple images from stereo images

Definitions

  • the present invention relates to an image processing method and an image processing apparatus for restoring an object as a three-dimensional object by stereo matching.
  • the information is updated. If there is no model that matches, the information is updated. Register as a 3D model. If the entire 3D model of the object is not completed, move the observation direction to generate the entire model.
  • the continuity of the contour line is set by setting a net-like matching area on the object and fitting the above-mentioned net-like matching area to the object surface using a genetic algorithm. I'm asking.
  • An object of the present invention is to provide an image processing method and apparatus capable of smoothly restoring a curved surface or the like when restoring an object. It is still another object of the present invention to provide an image processing method and apparatus that can be used for a stereo camera that captures images at a short distance and that requires a small amount of arithmetic processing and a short processing time.
  • An image processing method that has solved the above-described problems includes: capturing a same object by a reference image capturing unit and a reference image capturing unit; The shape of the target object is restored by stereo matching using the reference image taken by the reference image taking means. Then, the image processing method according to the present invention sets a plurality of windows associated with each other based on a predetermined correlation relationship with respect to the reference image and the reference image, and deforms the plurality of windows in the reference image. In this way, the separation or overlap between adjacent windows in the reference image is eliminated, and the shape of the object is restored by performing stereo matching between the window of the reference image and the window of the reference image.
  • a plurality of windows are set for each of the reference image and the reference image based on a predetermined correlation. These windows can be formed in an aligned state in the reference image, but are usually set in a messy state in the reference image associated with the aligned windows. Therefore, in the present invention, a plurality of windows in the reference image are deformed, and the separation or overlap between adjacent windows is eliminated. Therefore, when the object is restored, a curved surface or the like can be restored smoothly. Also, since there is no inconvenience of being limited to a case where the parallax is small, even if the stereo camera shoots a close distance, Matching can be performed.
  • a new window group is formed by a line connecting the center of gravity (or center) of the window on the reference screen, and a line connecting the center of gravity (or center) of the window on the reference image is formed.
  • a window group after deformation corresponding to a new window group on the reference image may be formed.
  • the window of the reference screen and the window of the corresponding reference screen are newly formed by the line connecting the center of gravity (or the center) of the adjacent window, and
  • the window can be expanded and reduced with a smaller amount of calculation, and the processing time can be reduced.
  • a unified joint point of the adjacent windows is determined based on a predetermined correlation within a boundary region including each corner of the adjacent windows,
  • the window may be expanded or contracted by moving the corner of the window with respect to the junction. In this way, the joining point of the adjacent windows can be obtained more accurately.
  • each window set on the reference image and each window on the reference image corresponding to each window on the reference screen are divided into the same number, and the divided windows are respectively divided.
  • the divided window ⁇ ⁇ on the reference image is associated with the divided window on the reference image based on a predetermined correlation, By changing the divided windows on the reference image, the separation or overlap between the divided windows on the reference image may be eliminated.
  • the window on the reference image and the window ⁇ ⁇ on the reference image are divided to form a divided window, and by associating them, the window can be miniaturized. As a result, the shape of the object can be restored more accurately.
  • the image processing apparatus sets a plurality of windows respectively for the reference image and the reference image of the same object photographed by the reference image photographing means and the reference image photographing means, respectively.
  • a window setting means to associate the reference image with the reference image based on the relationship between the order of the windows on the reference image and the order of the windows on the reference image, and deforming each window on the reference image.
  • a stereo matching means for recovering the shape of the object by performing stereo matching between the window of the reference image and the window of the reference image after eliminating the separation or overlapping between adjacent windows on the reference image. It is provided with.
  • the stereo matching means performs a process of moving the corners of the adjacent window on the reference image between the opposing corners of the window. You may do it.
  • a mode may be adopted in which the window deforming means performs a process of deforming a window based on a line connecting the centers of gravity of adjacent windows.
  • the stereo matching means may form a new window group by a line connecting the center of gravity (or the center) of the window ⁇ ⁇ on the reference screen, and a line connecting the center of gravity of the window on the reference image. Accordingly, a process of forming a window group after deformation corresponding to a new window group on the reference image may be performed.
  • each window set on the reference image and each window on the reference image corresponding to each window on the quasi-screen are divided into the same number to divide each window.
  • the apparatus may further include a window dividing unit for forming the window.
  • the window matching means associates the divided windows in the reference image and the divided windows in the reference image divided by the window dividing means based on a predetermined correlation, and deforms the divided windows in the reference image. This eliminates the separation or overlap between the divided windows in the reference image.
  • FIG. 1 is a block diagram of an image processing apparatus according to the present invention.
  • FIG. 2 is a flowchart showing a process of image processing by the image processing apparatus.
  • FIG. 3 is a flowchart showing details of a process of deforming a window in the image processing process according to the present embodiment.
  • FIG. 4A is a diagram showing a reference image obtained by photographing an object.
  • FIG. 4B is a diagram showing a reference image obtained by capturing an object.
  • FIG. 5A is an explanatory diagram of a reference drawing for explaining a procedure of deforming a window.
  • FIG. 5B is an explanatory diagram of the reference screen following FIG. 5A.
  • FIG. 5C is an explanatory diagram of the reference screen following FIG. 5B.
  • FIG. 6A is a diagram showing a reference image for explaining a process of transforming a window, and is a diagram showing a window in the process of being transformed.
  • FIG. 6B is a diagram showing a reference image for explaining a process of transforming the window, and is a diagram showing a state at the end of the window transformation.
  • FIG. 7 is a flowchart showing a process of subdividing the transformed window.
  • FIG. 8A is a diagram for explaining the process of dividing the window. It is a figure showing an image.
  • FIG. 8B is a diagram for explaining the process of dividing the window, and is a diagram showing a reference image.
  • FIG. 9A is a diagram illustrating a screen at the time of window division deformation, and is a diagram illustrating a reference image before division.
  • FIG. 9B is a diagram showing a screen at the time of window division deformation, and is a diagram showing a reference image before division.
  • FIG. 9C is a diagram illustrating a screen at the time of window division deformation, and is a diagram illustrating a reference image after division.
  • FIG. 9D is a diagram showing a screen at the time of window division deformation, and is a diagram showing a reference image after division.
  • FIG. 9E is a diagram showing a screen at the time of window division transformation, and is a diagram showing a reference image after further transformation after division.
  • FIG. 9F is a diagram showing a screen at the time of window division transformation, and is a diagram showing a reference image further transformed after division.
  • FIG. 1OA is a diagram illustrating a process of transforming the divided window, and is a diagram illustrating a reference image.
  • FIG. 1OB is a diagram illustrating a process of transforming the divided window, and is a diagram illustrating a reference image before the transformation.
  • FIG. 1OC is a diagram illustrating a process of transforming the divided window, and is a diagram illustrating a reference image after the transformation.
  • FIG. 11A is a diagram illustrating a process of deforming a window in the second embodiment, and is a diagram illustrating a reference image.
  • FIG. 11B is a diagram illustrating a process of deforming a window in the second embodiment, and is a diagram illustrating a reference image before division.
  • FIG. 11C illustrates a process of deforming a window in the second embodiment.
  • FIG. 14 is a diagram illustrating a reference image after division.
  • FIG. 11D is a diagram illustrating a process of deforming a window in the second embodiment, and is a diagram illustrating a range in which a corresponding image is searched for in a reference image.
  • FIG. 12A is a diagram illustrating a state in which the window is deformed, and is a diagram illustrating a reference image.
  • FIG. 12B is a diagram illustrating a state in which the window is deformed, and is a diagram illustrating a reference image.
  • FIG. 13A is a diagram for explaining a process of transforming the divided window, and is a diagram showing a reference image.
  • FIG. 13B is a diagram for explaining a process of transforming the divided window, and is a diagram illustrating a reference image before the division.
  • FIG. 13C is a diagram for explaining a process of transforming the divided window, and is a diagram illustrating a reference image after the division.
  • FIG. 14 is an explanatory diagram for describing a search range of a small window used when transforming a window.
  • FIG. 15A is a diagram illustrating a state in which the window is deformed, and is a diagram illustrating a reference image.
  • FIG. 15B is a diagram illustrating a state in which the window is deformed, and is a diagram illustrating a reference image.
  • FIG. 16A is a diagram illustrating a process of deforming a window in the third embodiment, and is a diagram illustrating a reference image.
  • FIG. 16B is a diagram illustrating a process of deforming a window in the third embodiment, and is a diagram illustrating a reference image before deformation.
  • FIG. 16C is a diagram illustrating the process of deforming the window according to the third embodiment, and is a diagram illustrating a reference image after the deformation.
  • FIG. 17A is a diagram for explaining division of a window in the third embodiment.
  • FIG. 7 is a diagram of a reference image.
  • FIG. 17B is a diagram for explaining division of a window in the third embodiment, and is a diagram of a reference image.
  • FIG. 18A is a diagram illustrating a range in which to search for a junction of the divided windows, and a diagram illustrating the search range.
  • FIG. 18B is a diagram for explaining a range in which a junction of the divided windows is searched, and a diagram for explaining a point to be a junction.
  • FIG. 1 is a block diagram of an image processing apparatus according to the first embodiment of the present invention.
  • a reference image camera 2, a reference image camera 3, and a monitor 4 are connected to the image processing apparatus 1 according to the present embodiment.
  • the image processing device 1 includes a pre-processing unit 11, a window generating unit 12, and a stereo matching unit 13.
  • the window generating unit 12 is provided with a window deforming unit (not shown) that is a window deforming unit of the present invention.
  • the image processing apparatus 1, the cameras 2, 3 and the monitor 4 are mounted on, for example, a vehicle (not shown). Specifically, for example, the image processing apparatus 1 is installed at an appropriate position in the vehicle interior.
  • the reference image camera 2 and the reference image camera 3 are provided, for example, at positions near each other on the side surface of the vehicle.
  • the monitor 4 is attached to, for example, a position in the vehicle compartment where a driver's view can be reached, for example, an instrument panel.
  • Both the reference image camera 2 and the reference image camera 3 are composed of CCD cameras, and photograph the same object as an analog image.
  • An analog image captured by the reference image camera 2 and the reference image camera 3 is output to the pre-processing unit 11 in the image processing apparatus 1.
  • the analog image output to the image processing device 1 is After predetermined image processing is performed by the image processing apparatus 1, the image is output to the monitor 4 as a projection image (an image in which a three-dimensional object is displayed on a two-dimensional plane) formed of a digital image.
  • the image processing procedure in the image processing device 1 will be described later.
  • the monitor 4 displays the projected image output from the image processing apparatus 1 after the stereo matching on the screen. Next, the procedure of image processing by the image processing apparatus 1 will be described.
  • FIG. 2 is a flowchart showing the steps of image processing by the image processing apparatus. Here, the overall flow of the image processing will be described.
  • the same object is photographed by the reference image camera 2 and the reference image camera 3.
  • the reference image obtained by capturing the object with the reference image camera 2 is output to the pre-processing unit 11 of the image processing device 1.
  • the reference image obtained by capturing the target object by the reference image camera 3 is output to the pre-processing unit 11 of the image processing device 1.
  • the preprocessing unit 11 When the image processing is started, the preprocessing unit 11 performs camera calibration on the reference image and the reference image as preprocessing (S1), and then performs the reference image and the reference The image is parallelized (S2). These preprocessed images are output from the preprocessing unit 11 to the window generation unit 12.
  • the window generation unit 12 performs region division for dividing each of the reference image and the reference image into a plurality of regions (S3). Subsequently, each area divided in the reference image and the reference image is set as a window (S4).
  • each image is output to the stereo matching unit 13, and a correlation operation is performed between the window in the reference image and the window in the reference image to associate them (window matching). Is performed (S5). In this correlation calculation, the association is determined, for example, when the correlation of the color, luminance, brightness, and the like in each window exceeds a certain threshold value.
  • the order of the windows in the reference image is corrected (S6).
  • Correction of the sorting order is based on the correspondence between the multiple windows in the reference image, and as a result, an incorrectly matched window that is different from the multiple windows in the reference image is detected, and the sorting order of the incorrectly matched windows is corrected. I do.
  • the window order in the reference image is corrected by, for example, re-searching for a window for which the incorrect correspondence has not been corrected (S6).
  • S6 re-searching for a window for which the incorrect correspondence has not been corrected
  • the windows are deformed to fill the gaps between the windows in the reference image (S7). The details of this window modification will be described later.
  • step S8 it is determined whether or not all the windows are one plane. As a result, if all windows do not form a single plane, windows that fall outside the same plane (applicable window) are subdivided (S9). Details of this subdivision will be described later.
  • the correlation operation is performed again (S10). Then, returning to step S7, the window is deformed, and it is determined whether or not all the windows in the window are one plane (S8). After repeating this process, if step S8 is affirmed, the three-dimensional coordinates of the four corners of each window are calculated (S11).
  • the stereo matching unit 13 fits a three-dimensional primitive based on the three-dimensional coordinates of the four corners of each window (representing a three-dimensional object by a combination of basic solids called primitives such as a sphere, a cuboid, and a cone). (S12). Then, a projection image is generated (S13), and the image processing ends. The projection image thus generated is output to the monitor 4 and displayed.
  • the present embodiment is characterized by window deformation (S7) in the reference image.
  • S7 window deformation
  • FIG. 3 is a view showing a window in the image processing process according to the present embodiment.
  • 9 is a flowchart showing details of a process of performing deformation.
  • FIG. 3 when the process of deforming a window starts, first, windows corresponding to a plurality of windows set as the reference image are displayed on the reference image (S21).
  • a plurality of windows W1, W1,... Surrounding an image V1 of the vehicle are displayed in the reference image.
  • a plurality of windows ⁇ W2, W2... Surrounding the image V2 of the car are displayed.
  • the window W1 displayed on the reference image is a square (square), and both have the same shape.
  • the window W2 displayed on the reference image is the one before deformation, and is a square (square) having the same shape as the window W1 displayed on the reference image.
  • the multiple windows W2, W2 "'on the reference image shown in FIG. 4B have been rearranged in step S6, and the multiple windows W1, W1 on the reference image shown in FIG. 4A. ... are arranged in an order corresponding to.
  • the windows W2, W2,... Displayed on the reference image in this manner are separated from each other or overlapped with adjacent windows W2, W2. Since it is difficult to restore the image V2 as a three-dimensional object, the windows W2, W2,... Displayed in the reference image are appropriately expanded or contracted (deformed) in order to eliminate such separation and overlap ( S22).
  • the midpoints CI and C2 respectively Huy: window WA, by joining the ends of the WB is continuously windows WA, WB - how, window WB, for WC, towards the ⁇ C 3, C 4 in the separated portion content between the two windows WB 'WC To expand both windows WB and WC. In this way, the ends of the windows WB and WC are joined at the midpoints C3 and C4, respectively, so that the windows WB and WC are continuous.
  • FIG. 6A shows a state where the windows W2, W2,... Of the reference image shown in FIG. As shown in FIG. 6A, by expanding / contracting the windows W2, W2 ..., the ends of the windows W2, W2 ... are joined to make the windows W2, W2 '.' Continuous. Thus, the gap between the windows W2 and W2-- can be filled. ' ;
  • the windows WA 1 and WB 1 on the first line are connected by a straight line connecting the points F 1 and F 2.
  • the windows WA2 and WB2 in the second row are connected by a straight line connecting the points F3 and F4, and the windows WA3 and WB3 in the third row are connected by a straight line connecting the points F5 and F6.
  • the points F2 and F3 are located at the same height in the row direction, but at different positions in the column direction due to displacement.
  • points F4 and F5 are located at the same height in the row direction, but at different positions in the column direction due to displacement.
  • the windows WA1 to WA3 and WB1 to WB3 thus deformed have trapezoidal shapes. And the corners at the center of the four windows overlap at one point. In this way, when the windows W2, W2 ... shown in Fig. 6A are deformed, they become as shown in Fig. 6B, and the four window ends overlap at one point, and the reference image shown in Fig. 4A is obtained. Window W1, W1 ... Therefore, it is possible to clarify the corresponding relationship between each window W1, W1 ... in the reference image and each window W2, W2 ... in the reference image. Thus, the deformation of the window is completed.
  • step S9 the procedure of subdividing the window in step S9 shown in Fig. 2 will be described with reference to Fig. 7.
  • a window that is not one plane is re-divided.
  • each window in the reference image is divided into four parts as shown in FIG. 8A (S31).
  • the window is divided into 2 ⁇ 2 dalids by two straight lines connecting the midpoint of each side of the window and the midpoint of the side opposite to that side.
  • the window of the reference image is also divided into four, and a search range is set corresponding to the divided window of the reference image (S32).
  • a divided window having the same shape as the square divided window of the reference image is generated on the reference image.
  • the window on the reference image is also divided into four parts as shown in FIG. 8B, corresponding to the window divided into four parts on the reference image as shown in FIG. 8A.
  • a division window having the same size as the division window of the reference image is set in the window of the reference image.
  • the display positions of the split windows when setting four split windows for each window on the reference image will be described.
  • a trapezoidal window is displayed as shown in Fig. 8B.
  • L AB and L CD are defined as shown in FIG. 8B.
  • L AB and L CD are the lengths of the sides of each rectangle when the pre-split window is equally divided vertically and the rectangles with the largest areas are formed in the upper and lower rectangles.
  • the upper rectangle defines the length L AB force.
  • the lower rectangle defines the length L CD .
  • the length of the divided window of the reference image along the X direction is X0
  • the length along the Y direction is y0.
  • a window having the highest correlation with the divided window in the reference image is set (arrangement). (S33).
  • each divided window is deformed so that these divided windows fall within the window before division (S34).
  • the procedure for transforming the split window is described in step S7 above. The procedure is the same as that described above.
  • the split windows D l and D 2 are separated from each other. Therefore, the two split windows D 1 and D 2 are extended toward the midpoint of the two split windows D 1 and D 2 to fill the gap between the two split windows D 1 and D 2.
  • the divided windows D3 and D4 overlap each other.
  • the two split windows ⁇ D3 and D4 are contracted toward the middle point of the two split windows D3 and D4 so that the overlapped portion of the two split windows D3 and D4 is eliminated.
  • the area around the divided windows D1 to D4 is expanded or contracted according to the shape of the window W before the division.
  • step S35 After each window has been deformed in this way, it is determined whether or not the window has a desired size (S35). As a result, if the size is not the desired size, the process returns to step S31 to perform the same processing again to divide the window. on the other hand. If it is determined that the size is the desired size, the process ends.
  • FIG. 9 shows a state in which the process of dividing the window has progressed.
  • the windows are not divided, and the windows W1, W1,..., W2 partitioning the vehicle images VI, V2 , W2, etc., the range covered by each becomes wider.
  • the area of each window Wl, W1,..., W2, W2... is reduced as shown in Fig. 9C (reference image) and Fig. 9D (reference image). Therefore, the accuracy of stereo matching can be improved accordingly.
  • Fig. 9E reference image
  • Fig. 9F reference image
  • the window is divided again to form a divided window, and the area of each window (divided window) can be further reduced. Therefore, the accuracy of stereo matching can be further improved.
  • the image processing apparatus of the present embodiment is the same as the image processing apparatus of the first embodiment.
  • the same image processing apparatus as that shown in FIG. 1 can be used. Further, the image processing procedure goes through the image processing process shown in FIG. Among these, the processing that mainly differs from the processing of deforming the window in step S7 and the processing of dividing the window in step S9 shown in FIG. 2 is different.
  • the present embodiment will be described focusing on this difference.
  • FIGS. 10A to 10C are explanatory diagrams illustrating a relationship between an image before deformation and an image after deformation according to the present embodiment.
  • Figure 1 OA shows the reference image
  • Figure 10B shows the reference image before window deformation
  • Figure 10C shows the reference image after window deformation.
  • the deformation is performed based on a point connecting the centers of gravity of the plurality of windows.
  • FIG. 1 OA In the reference image shown in Fig. 1 OA, nine square windows W1, W1 ... are displayed, respectively, and four windows are connected by connecting the centers of gravity G1 to G9 of the windows W1, W1 ... respectively.
  • Two square windows (called deformed windows) are formed. Specifically, one square deformed window is formed by connecting the four centers of gravity G1, G2, G5, and G4.
  • the center of gravity G2, G3, G6, 05 is square
  • the center of gravity G4, G5, G8, G7 is one square
  • the center of gravity G5, G6, G9, G8 is One square deformation window is formed for each.
  • windows W2, W2 associated with windows W1, W1,... In the reference image are displayed based on a predetermined correlation. I have. These windows W2, W2 ... are arranged in the order corresponding to the windows W1, W1 ... shown in Fig. 10A. The forces overlap or are separated from each other. The window is deformed to eliminate such overlap and separation.
  • FIG. 10C four trapezoidal deformed windows are formed by connecting the centers of gravity G11 to G19 of each window before deformation. 3488
  • the deformation window surrounded by the four centroids G11, G12, G15, and G14 in the reference image changes the four centroids G1, G2, G5, and G5 in the reference image.
  • the deformed window surrounded by G4 corresponds to the deformed window surrounded by the centroids G12, G13, G16, and 15 in the reference image.
  • the deformed window surrounded by the centroids G14, G15, G18, and G17 in the reference image corresponds to the deformed window ⁇ ⁇ surrounded by the centroids G4, G5, G8, and G7 in the reference image.
  • the transformed window surrounded by the centroids G15, G16, G19, and G18 in the reference image corresponds to the transformed window surrounded by the centroids G5, G6, G8, and G9 in the reference image. .
  • the window matching uses a deformation window formed by G1 to G9 on the reference screen and a deformation window formed by G11 to G19 on the reference screen.
  • a deformation window formed by G1 to G9 on the reference screen and a deformation window formed by G11 to G19 on the reference screen.
  • the window deformation method according to the present embodiment is only performed by forming a window by appropriately connecting the centers of gravity of the windows ⁇ ⁇ before deformation in the reference image. For this reason, the amount of arithmetic processing can be reduced, and as a result, window deformation and the like can be performed in a short time.
  • the window division according to the present embodiment divides the deformed windows W1, W1,... D5 ... is formed.
  • small windows S 1, S 1, SI... is also set.
  • FIG. 1 IB the heights of the deformed windows W3, W3,... In the reference image are aligned with the small windows S1, S1,.
  • Small windows S2, S2,... Are respectively set based on the correlation. These small windows S2, S2,... Are set based on a predetermined correlation such as color, luminance, lightness, etc. with each small window SI, S1,.
  • the search range for searching a position having a high correlation with the small windows S1, S1... of the reference image is, as shown in FIG.
  • the order of the small windows is kept within a range that does not reverse.
  • the division of the deformed window in the present embodiment can also be performed by the procedure shown in FIGS. 13A to 13C described below.
  • this division procedure as shown in FIG. 13A, small windows S3, S3,... Are set so as to straddle the contour line of the window W1, W1,.
  • FIG. 13B in the reference image, the correspondence between the small window ⁇ S3, S3... Of the reference image shown in FIG. Are set within a predetermined range, and the corresponding small windows S 4, S 4 ... are set. You.
  • the search range of each small window is set with the search range overlapping so that the search range is extended as much as possible.
  • the search range XI 1 of the small window located on the rightmost side is set within a predetermined range centered on the right vertex P 2.
  • the search range X 12 of the second small window from the right is set to a predetermined range centered on the midpoint of the vertices P I and P 2.
  • the search range X 11 of the small window on the far right and the search range X I 2 of the second small window from the right are set to slightly overlap.
  • the search range X 13 of the third small window from the right is set to a predetermined range centered on the left vertex P 1.
  • the search range X12 of the second small window from the right and the search range X13 of the third small window from the right are set to slightly overlap.
  • FIGS. 15A and 15B show the state in which the divided window is displayed on the reference image.
  • the divided windows D 7 1, D 7 2 Formed by dividing these deformed windows W 3, W 3. 1, D 5 2— It corresponds to.
  • the same image processing device as that shown in Fig. 1 in the first embodiment can be used. Further, the image processing procedure goes through the image processing process shown in FIG. Among them, the process of performing the window transformation in step S7 shown in FIG. 2 and the process of dividing the window in step S9 are mainly different. Hereinafter, the present embodiment will be described focusing on this difference.
  • FIG. 16A to FIG. 16C are explanatory diagrams showing the relationship between the image before deformation and the image after deformation according to the present embodiment.
  • FIG. 16A shows a reference image
  • FIG. 16B shows a reference image before window deformation
  • FIG. 16C shows a reference image after window deformation.
  • the reference image shown in Fig. 16A shows nine square windows Wl1 to W19
  • the reference image before window deformation shown in Fig. 16B shows nine windows W21-W29. ing.
  • the windows W11 to W19 in the reference image are neatly arranged in a grid shape.
  • the nine windows W21 to W29 in the reference image are set based on predetermined correlations such as color, brightness, and brightness with respect to windows Wl1 to W19 in the reference image, and the arrangement order is as follows. They are aligned, but their positions are cluttered.
  • a boundary area including corners of four adjacent windows is used.
  • the junctions of the four windows are determined based on a predetermined correlation such as color, brightness, and brightness with the corresponding junction in the reference image. Is set.
  • a position having a high correlation with the junction J1 of the windows W11, W12, W15, and W14 shown in FIG. 16A is searched.
  • this point is defined as a junction point J11 of the windows W21, W22, W25, and W24 in the reference image.
  • junction J12 of the windows W22, W23, W26, and W25 is defined as the boundary region R2 force
  • junction J13 of the windows W24, W25, W28, and W27 is defined as the boundary region R3.
  • the junction point J14 of the windows W25, W26, W29 and W28 is searched from the boundary region R4.
  • the upper sides of the windows W21 and W22 are contracted so that the upper sides of the windows W21 and W22 are joined at the midpoint of the ends of both sides.
  • the upper sides of the windows W22 and W23 are extended so as to be joined at the midpoint of both ends.
  • the lower sides of the windows W27 and W28 and the lower sides of the windows W28 and W29 are also extended so as to be in contact with the ends of the both at the midpoint.
  • FIGS. 18A and 18B are diagrams for explaining a search range of a junction point of a divided window.
  • FIG. 18A shows a search range
  • FIG. 18B shows a junction point. It is a figure showing a point.
  • FIGS. 18A and 18B the vicinity of the windows W21 and W22 of the reference image shown in FIG. 17B is enlarged.
  • each of the windows Wl1 to W19 in the reference image is divided into four in a grid shape.
  • the windows W 21 to S 29 in the reference image are divided based on the correlation by aligning the height position with the division window of the corresponding row on the reference image.
  • a window is set. These divided windows are set by associating each divided window in the reference image based on a predetermined correlation such as color, luminance, and brightness.
  • the correlation here can be determined based on, for example, color, luminance, brightness, and the like.
  • the junction point J31 is finally determined from the candidate points of the junction points J31, J31 ... shown in Fig. 18B. [0073] In this way, when a junction J 31 having a high correlation with the junction J 21 in the reference image is searched for in the boundary region R 21, the divided window D 9
  • a junction point of 1, D92, D96 and D95 is set, and the lower sides of the divided windows D91 and D92 and the upper sides of the divided windows D96 and D95 are extended. Then, at the point searched from the boundary region R21, the divided windows D91, D91
  • the divided windows D92, D93, D97, and D966 in the reference image are all in an overlapping state.
  • a point having a high correlation with the junction J22 of the divided windows D82, D83, D87, and D86 in the reference image corresponding to these is searched from the boundary region R22 in the reference image.
  • the correlation here can be determined based on, for example, color, luminance, brightness, and the like.
  • the junction point J32 is finally determined from the candidate points of the junction points J32, J32 ... shown in FIG. 18B.
  • D 93, D 97 and D 96 are continuous. In this way, the overlap between the divided windows D92, D93, D96, D97 can be eliminated.
  • the separation and the overlap between the windows W21 to W29 can be eliminated by dividing and deforming the windows in the same procedure. it can. In this way, by splitting the deformation window, the object can be restored more accurately. it can. In addition, by deforming the divided windows so as to eliminate the gap between the divided windows, the object can be smoothly restored.
  • the present invention it is possible to provide an image processing method and apparatus capable of smoothly restoring a curved surface or the like when restoring an object. Further, the present invention can be used for a stereo camera that captures images at a close distance, and further provides an image processing method and apparatus that require a small amount of arithmetic processing and a short processing time.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Measurement Of Optical Distance (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Image Analysis (AREA)

Abstract

 本発明の画像処理方法においては、基準画像と参照画像とを用いたステレオマッチングによって対象物の形状を復元するにあたり、基準画像および参照画像に対して、それぞれ所定の相関関係に基づいて対応付けされた複数のウィンドウを設定する。このうち、参照画像に形成された複数のウィンドウを伸縮させて変形させることにより、前記参照画像における隣接するウィンドウ同士間の離間又は重なり合いを解消させて、前記基準画像のウィンドウと前記参照画像のウィンドウとのステレオマッチングを行い、前記対象物の形状を復元する。このようにすることで、対象物の復元を行う際に、曲面等を滑らかに復元し、近い距離を撮影するステレオカメラに対しても用いることができ、また、演算処理量を少なくできるので処理時間も短縮することができる。

Description

明細書
画像処理方法および画像処理装置
技術分野
【0 0 0 1】 本発明はステレオマッチングによって物体を 3次元立体物とし て復元する画像処理方法および画像処理装置に関する。
背景技術
【0 0 0 2】 近年、 画像処理技術の発達に伴い、 異なる方向から対象物を撮 影した複数の画像に基づいて、 対象物の立体モデルを画像処理によって得る方 法がある。 このような画像処理方法としては、 たとえば特開 2 0 0 0— 9 9 7 6 0号公報 (3ページ、 図 2 ) に開示された 3次元モデル生成方法がある。 こ の 3次元モデル生成方法では、 複数の異なる方向から物体を観測してステレオ 画像を取得し、 このステレオ画像に基づいて物体の 3次元輪郭線を生成すると 共に、 3次元領域 (テクスチャ領域やシェーディング領域) を生成する。 3次 元輪郭線情報、 及び、 3次元領域情報に基づいて、 既存の 3次元モデルと適合 するものがある場合はこれらの情報を更新し、 適合するものがない場合はこれ らの情報を新たな 3次元モデルとして登録する。 また、 物体の 3次元モデル全 体が完成していない場合は、 観測方向を移動して全体のモデルを生成する。
【0 0 0 3】 3次元モデル生成方法では、 3次元輪郭線を復元する際に輪郭 線の連続性を担保する必要がある。 このため、 従来のモデル生成方法では、 物 体にネット状のマッチング領域を設定し、 遺伝的アルゴリズムを使って上述し たネット状のマッチング領域を物体表面にフィットさせることで輪郭線の連続 性を求めている。
【0 0 0 4】 上述した手法によって輪郭線の連続性を求めた場合、 単にネッ ト状のマッチング領域をフィットさせているのみであるので、 曲面等を滑らか に復元することが困難であるという問題があった。 また、 理論上、 視差が小さ い場合にのみ用いることができるものであるので、 たとえばロポットの目のよ うな、 近い距離を撮影するステレオカメラでは、 この手法を用いることができ ないという問題もあった。 さらには、 繰り返しの計算が多く必要となるので、 処理が遅いという問題があった。
発明の開示
【0 0 0 5】 本発明の課題は、 対象物の復元を行う際に、 曲面等を滑らかに 復元することができる画像処理方法および装置を提供することにある。 さらに は、 近い距離を撮影するステレオカメラに対しても用いることができ、 また演 算処理量が少なく、 処理時間が短くて済む画像処理方法および装置を提供する ことにある。
【0 0 0 6】 上記課題を解決した本発明に係る画像処理方法は、 基準画像撮 影手段および参照画像撮影手段で同一の対象物を撮影し、 基準画像撮影手段で 撮影された基準画像および参照画像撮影手段で撮影された参照画像を用いたス テレオマッチングによって、 対象物の形状を復元するものである。 そして、 本 発明の画像処理方法は、 基準画像および参照画像に対して、 それぞれ所定の相 関関係に基づいて対応付けされた複数のウィンドウを設定し、 参照画像におけ る複数のウィンドウを変形させることにより、 参照画像における隣接する'ゥィ ンドゥ同士間の離間又は重なり合いを解消させて、 基準画像のウィンドウと参 照画像のウィンドウとのステレオマッチングを行つて対象物の形状を復元する。 【0 0 0 7】 基準画像および参照画像のそれぞれに所定の相関関係に基づい て複数のウィンドウを設定する。 この複数のウィンドウは、 基準画像では整列 した状態で形成することができるが、 整列したウィンドウに対応付けされた参 照画像では、 通常、 乱雑な状態で設定される。 そこで、 本発明においては、 参 照画像における複数のウィンドウを変形させ、 隣接するウィンドウ同士間の離 間又は重なり合いを解消する。 このため、 対象物の復元を行う際に、 曲面等を 滑らかに復元することができる。 また、 視差が小さい場合に限定されるという 不都合はないので、 近い距離を撮影するステレオカメラであっても、 ステレオ マッチングを行うことができる。
【0 0 0 8】 ここで、 隣接するウィンドウを変形させるにあたり、 隣接する ウィンドウの対向する角部同士の間に向けて、 各ウィンドウの角部を移動させ ることが好ましい。
【0 0 0 9】 このように、 ウィンドウ変形時に、 隣接するウィンドウの対向 する角部同士を、 それらの中間部分に向けて移動させてウィンドウを拡張又は 収縮させることによって、 少ない演算量でウィンドウの拡張又は収縮を好適に 行うことができる。 この結果、 画像処理時間を短縮することができる。
【0 0 1 0】 あるいは、 基準画面上のウィンドウの重心 (又は中心) を結ん だ線によって新たなウィンドウ群を形成させると共に、 前記参照画像上のウイ ンドウの重心 (又は中心) を結ぶ線によって、 前記基準画像上の新たなウィン ドウ群に対応する変形後のウィンドウ群を形成させても良い。
【0 0 1 1】 このように、 隣接するウィンドウの重心 (又は中心) を結ぶ線 を結んだ線によつて基準画面のウィンドウとこれらに対応する参照画面のゥィ ンドウを新たに形成させると共に、 参照画像のウィンドウを離間重なり合いの ない変形した状態とすることによって、 さらに少ない演算量でウィンドウの伸 縮を行うことができ、 処理時間を短縮することができる。
【0 0 1 2】 あるいは、 隣接するウィンドウを変形させるにあたり、 隣接す るウィンドウの各角部を含む境界領域内で、 隣接するウィンドウの統一接合点 を所定の相関関係に基づいて求め、 この統一接合点を基準としてウィンドウの 角部を移動させてウィンドウを拡張又は収縮させても良い。 このようにするこ とで、 隣接するウィンドウの接合点をより正確に求めることができる。
【0 0 1 3】 また、 基準画像上に設定された各ウィンドウと、 この基準画面 上の各ウィンドウに対応する参照画像上の各ウィンドウとを、 それぞれを同じ 数に分割してそれぞれ分割ウィンドウを形成させ、 基準画像上の分割ウィンド ゥと参照画像上の分割ウインドウとを所定の相関関係に基づいて対応付けし、 参照画像上の分割ウィンドウを変形させることにより、 参照画像上の分割ゥィ ンドウ同士間の離間又は重なり合いを解消させても良い。
【0 0 1 4】 このように、 基準画像上のウィンドウと参照画像上のウィンド ゥとを分割して分割ウィンドウを形成し、 これらを対応付けすることによって、 ウィンドウを微細化することができる。 その結果、 より正確に対象物の形状を 復元することができる。
【0 0 1 5】 また、 本発明の画像処理装置は、 基準画像撮影手段および参照 画像撮影手段でそれぞれ撮影された同一対象物の基準画像および参照画像に対 して、 それぞれ複数のウィンドウを設定するウィンドウ設定手段と、 基準画像 上のウィンドウの並び順及び参照画像上のウィンドウの並び順の関係に基づい て基準画像に対する参照画像の対応付けを行い、 参照画像上の各ウィンドウを 変形させることによって参照画像上の隣接するウィンドウ同士間の離間又は重 なり合いを解消させた後に、 基準画像のウィンドウと参照画像のウィンドウと のステレオマツチングを行って対象物の形状を復元するステレオマッチング手 段とを備えるものである。
【0 0 1 6】 ここで、 ステレオマツチング手段が、 前記参照画像上の隣接す る前記ウィンドウの対向する角部同士の間に向けて、 該ウィンドウの角部を移 動させる処理を行うようにしても良い。
【0 0 1 7】 また、 ウィンドウ変形手段が、 隣接するウィンドウのそれぞれ の重心を結ぶ線を基準として、 ウィンドウを変形させる処理を行う態様とする こともできる。
【0 0 1 8】 あるいは、 ステレオマッチング手段が、 基準画面上のウィンド ゥの重心 (又は中心) を結んだ線によって新たなウィンドウ群を形成させると 共に、 参照画像上のウィンドウの重心を結ぶ線によって、 基準画像上の新たな ウィンドウ群に対応する変形後のウィンドウ群を形成させる処理を行うように しても良い。 【0 0 1 9】 また、 基準画像上に設定された各ウィンドウと、 準画面上の各 ウィンドウに対応する前記参照画像上の各ウィンドウとを、 それぞれを同じ数 に分割してそれぞれ分割ウィンドウを形成させるウィンドウ分割手段をさらに 備えていても良い。 このとき、 ウィンドウマッチング手段は、 ウィンドウ分割 手段によつて分割された基準画像における分割ウィンドウと参照画像における 分割ウィンドウとを所定の相関関係に基づいて対応付けし、 参照画像における 分割ウィンドウを変形させることによって参照画像における分割ウィンドウ同 士間の離間又は重なり合いを解消させる。
図面の簡単な説明
【0 0 2 0】 図 1は、 本発明に係る画像処理装置のプロック構成図である。
図 2は、 画像処理装置による画像処理の行程を示すフローチャートである。 図 3は、 本実施形態に係る画像処理行程におけるウィンドウの変形を行う 行程の詳細を示すフローチヤ一トである。
図 4 Aは、 対象物を撮影した基準画像を示す図である。
図 4 Bは、 対象物を撮影した参照画像を示す図である。
図 5 Aは、 ウィンドウを変形させる手順を説明するための参照図面の説明 図である。
図 5 Bは、 図 5 Aに続く参照画面の説明図である。
図 5 Cは、 図 5 Bに続く参照画面の説明図である。
図 6 Aは、 ウィンドウを変形させる行程を説明するための参照画像を示す 図であり、 ウィンドウの変形途中時を示す図である。
図 6 Bは、 ウィンドウを変形させる行程を説明するための参照画像を示す 図であり、 ウィンドウの変^終了時を示す図である。
図 7は、 変形したウィンドウを再分割する行程を示すフローチャートであ る。
図 8 Aは、 ウィンドウを分割する行程を説明するための図であり、 基準画 像を示す図である。
図 8 Bは、 ウィンドウを分割する行程を説明するための図であり、 参照画 像を示す図である。
図 9 Aは、 ウィンドウ分割変形時の画面を示す図であり、 分割前の基準画 像を示す図である。
図 9 Bは、 ウィンドウ分割変形時の画面を示す図であり、 分割前の参照画 像を示す図である。
図 9 Cは、 ウィンドウ分割変形時の画面を示す図であり、 分割後の基準画 像を示す図である。
図 9 Dは、 ウィンドウ分割変形時の画面を示す図であり、 分割後の参照画 像を示す図である。
図 9 Eは、 ウィンドウ分割変形時の画面を示す図であり、 分割後にさらに 変形させた後の基準画像を示す図である。
図 9 Fは、 ウィンドウ分割変形時の画面を示す図であり、 分割後にさらに 変形させた参照画像を示す図である。
図 1 O Aは、 分割したウィンドウを変形させる行程を説明する図であり、 基準画像を示す図である。
図 1 O Bは、 分割したウィンドウを変形させる行程を説明する図であり、 変形前の参照画像を示す図である。
図 1 O Cは、 分割したウィンドウを変形させる行程を説明する図であり、 変形後の参照画像を示す図である。
図 1 1 Aは、 第 2の実施形態におけるウィンドウを変形させる行程を説明 する図であり、 基準画像を示す図である。
図 1 1 Bは、 第 2の実施形態におけるウィンドウを変形させる行程を説明 する図であり、 分割前の参照画像を示す図である。
図 1 1 Cは、 第 2の実施形態におけるウィンドウを変形させる行程を説明 する図であり、 分割後の参照画像を示す図である。
図 1 1 Dは、 第 2の実施形態におけるウィンドウを変形させる行程を説明 する図であり、 参照画像において対応する画像を探索する範囲を示す図である。
図 1 2 Aは、 ウィンドウを変形した状態を示す図であり、 基準画像を示す 図である。
図 1 2 Bは、 ウィンドウを変形した状態を示す図であり、 参照画像を示す 図である。
図 1 3 Aは、 分割したウィンドウを変形させる行程を説明するための図で あり、 基準画像を示す図である。
図 1 3 Bは、 分割したウィンドウを変形させる行程を説明するための図で あり、 分割前の参照画像を示す図である。
図 1 3 Cは、 分割したウィンドウを変形させる行程を説明するための図で あり、 分割後の参照画像を示す図である。
図 1 4は、 ウィンドウを変形する際に用いる小ウィンドウの探索範囲を説 明するための説明図である。
図 1 5 Aは、 ウィンドウを変形した状態を示す図であり、 基準画像を示す 図である。
図 1 5 Bは、 ウィンドウを変形した状態を示す図であり、 参照画像を示す 図である。
図 1 6 Aは、 第 3の実施形態におけるウィンドウを変形させる行程を説明 する図であり、 基準画像を示す図である。
図 1 6 Bは、 第 3の実施形態におけるウィンドウを変形させる行程を説明 する図であり、 変形前の参照画像を示す図である。
図 1 6 Cは、 第 3の実施形態におけるウィンドウを変形させる行程を説明 する図であり、 変形後の参照画像を示す図である。
図 1 7 Aは、 第 3の実施形態におけるウィンドウの分割を説明する図であ り、 基準画像の図である。
図 1 7 Bは、 第 3の実施形態におけるウィンドウの分割を説明する図であ り、 参照画像の図である。
図 1 8 Aは、 分割したウィンドウの接合点を探索する範囲を説明する図で あり、 探索範囲を説明する図である。
図 1 8 Bは、 分割したウィンドウの接合点を探索する範囲を説明する図で あり、 接合点となる点を説明する図である。
発明を実施するための最良の形態
【0 0 2 1】 以下、 図面を参照して、 本発明の好適な実施形態について詳細 に説明する。
【0 0 2 2】 図 1は、 本発明の第 1の実施形態に係る画像処理装置のプロッ ク構成図である。 図 1に示すように、 本実施形態に係る画像処理装置 1には、 基準画像カメラ 2と、 参照画像カメラ 3と、 モニタ 4とが接続されている。 ま た、 画像処理装置 1は、 前処理部 1 1と、 ウィンドウ生成部 1 2と、 ステレオ マッチング部 1 3とを備えている。 ウィンドウ生成部 1 2には、 本発明のウイ ンドウ変形手段である図示しないウィンドウ変形部が設けられている。 画像処 理装置 1、 カメラ 2 , 3、 および、 モニタ 4は、 たとえば図示しない車両に取 り付けられている。 具体的には、 たとえば画像処理装置 1は車室内の適宜の位 置に設置されている。 また、 基準画像カメラ 2および参照画像カメラ 3は、 た とえば車両の側面における互いに近傍位置に設けられている。 さらに、 モニタ 4は、 たとえば車室内におけるドライバの視界が届く位置、 たとえばインス ト ルメントパネルに取り付けられている。
【0 0 2 3】 基準画像カメラ 2と参照画像カメラ 3は、 いずれも C C Dカメ ラからなり、 同一対象物をアナログ画像として撮影している。 基準画像カメラ 2および参照画像力メラ 3で撮影されたアナ口グ画像は、 画像処理装置 1にお ける前処理部 1 1に出力される。 画像処理装置 1に出力されたアナログ画像は、 画像処理装置 1で所定の画像処理が施された後、 デジタル画像からなる投影像 ( 3次元物体を二次元平面上に表示した像) としてモニタ 4に出力される。 画 像処理装置 1における画像処理手順については後述する。 モニタ 4は、 ステレ ォマッチングされて画像処理装置 1から出力された投影像を画面に表示する。 【0 0 2 4】 次に、 画像処理装置 1による画像処理の手順について説明する, 図 2は、 画像処理装置による画像処理の行程を示すフロ一チャートである。 こ こでは、 画像処理の全体的な流れについて説明する。
【0 0 2 5】 画像処理装置 1における画像処理を行うために、 基準画像カメ ラ 2および参照画像カメラ 3で同一対象物を撮影する。 基準画像力メラ 2で対 象物が撮影された基準画像は、 画像処理装置 1における前処理部 1 1に出力さ れる。 同様に、 参照画像カメラ 3で対象物が撮影された参照画像は、 画像処理 装置 1における前処理部 1 1に出力される。 こうして、 画像処理装置 1による 画像処理が開始される。
【0 0 2 6】 画像処理が開始されると、 前処理部 1 1において、 前処理とし て、 基準画像および参照画像に対してカメラキャリブレーションを行い (S 1 ) 、 続いて基準画像および参照画像の平行化を行う (S 2 ) 。 これらの前処 理が施された画像は、 前処理部 1 1からウィンドウ生成部 1 2に出力される。
【0 0 2 7】 ウィンドウ生成部 1 2では、 基準画像および参照画像のそれぞ れを複数の領域に分割する領域分割を行う (S 3 ) 。 続いて、 基準画像および 参照画像において分割された各領域をウィンドウとして設定する (S 4 ) 。 基 準画像および参照画像でウィンドウが設定されたら、 各画像がステレオマッチ ング部 1 3に出力され、 基準画像におけるウィンドウおよび参照画像における ウィンドウの間で、 相関演算を行って対応付け (ウィンドウマッチング) が行 われる (S 5 ) 。 この相関演算では、 各ウィンドウにおける色、 輝度、 明度等 の相関があるしきい値を超えたときに対応付けされるなどとして、 対応付けの 判断を行っている。 【 00 28】 続いて、 参照画像におけるウィンドウの並び順の修正を行う (S 6) 。 並ぴ順の修正は、 参照画像における複数のウィンドウのうち、 対応 付けを行った結果、 基準画像における複数のウィンドウとの並び順が異なる誤 対応ウィンドウを検出し、 誤対応ウィンドウの並び順の修正を行う。 この修正 を行った後、 いまだ誤対応が修正されていないウィンドウを再探索するなどし て、 参照画像におけるウィンドウの並び順の修正を完了させる (S 6) 。 こう して、 ウィンドウの並び順の修正が済んだら、 参照画像におけるウィンドウ間 の隙間を埋めるためのウィンドウの変形を行う (S 7) 。 このウィンドウの変 形の詳細については後述する。
[0029] ウィンドウの変形が完了した時点で、 全ウインドウ内が一つの 平面となっているか否かを判断する (S 8) 。 その結果、 全ウィンドウ内が一 つの平面となっていない場合には、 同一の平面から外れたウィンドウ (該当ゥ インドウ) を再分割する (S 9) 。 この再分割についての詳細は後述する。 該 当ウィンドウの再分割が済んだら、 再び相関演算を行う (S 1 0) 。 それから、 ステップ S 7に戻って、 ウィンドウの変形を行い、 再ぴ全ウィンドウ内が一つ の平面か否かを判断する (S 8) 。 この行程を繰り返した後、 ステップ S 8が 肯定されたら、 各ウィンドウの 4隅の 3次元座標が計算される (S 1 1) 。
【0030】 ステレオマッチング部 1 3では、 各ウィンドウの 4隅の 3次元 座標に基づいて、 立体プリミティブのあてはめ (立体を球、 直方体、 円錐など のプリミティブと呼ばれる基本立体の組み合わせで表現すること) が行われる (S 12) 。 そして、 投影像を生成して (S 1 3) 、 画像処理が終了する。 こ うして生成された投影像は、 モニタ 4に出力され、 表示される。
【003 1】 上記の画像処理行程において、 本実施形態では、 参照画像にお けるウィンドウ変形 (S 7) に特徴がある。 以下に、 この特徴的な行程につい てさらに説明する。
【003 2】 図 3は、 本実施形態に係る画像処理行程におけるウィンドウの 変形を行う行程の詳細を示すフローチヤ一トである。
【003 3】 図 3に示すように、 ウィンドウの変形を行う処理がスタートす ると、 まず、 基準画像に設定された複数のウィンドウに対応するウィンドウを 参照画像に表示する (S 21) 。 基準画像には、 図 4Aに示されるように、 自 動車の画像 V 1を囲む複数のウィンドウ W 1, W1…が表示されている。 参照 画像には、 図 4 Bに示されるように、 自動車の画像 V 2を囲む複数のウィンド ゥ W2, W2…が表示されている。 基準画像上に表示されたウィンドウ W1は 四角形 (正方形) で、 いずれも同一形状をなしている。 また、 参照画像上に表 示されたウィンドウ W 2は、 変形前のものであり、 いずれも基準画像に表示さ れたウィンドウ W1と同一形状の四角形 (正方形) である。 図 4 Bに示される 参照画像上の複数のウィンドウ W2, W2"'は、 ステップ S 6で並び順の修正 が行われており、 図 4 Aに示される基準画像上の複数のウィンドウ W1, W1 …に対応した順番に並んでいる。
【0034】 このようにして参照画像上に表示されたウィンドウ W 2, W2 …は、 隣接するウィンドウ W 2, W 2同士で離間したり、 あるいは重なり合つ たりしている。 このままでは、 画像 V 2を 3次元物体として復元することが困 難であるので、 これらの離間や重なり合いを排除すべく、 参照画像に表示され たウィンドウ W2, W2…を適宜伸縮 (変形) させる (S 2 2) 。
【003 5】 ここで、 ウィンドウを伸縮させる手順について説明すると、 参 照画像において、 たとえば図 5 Aに示すウィンドウ WA, WB, WCがあると する。 ここでは、 ウィンドウ WA, WBは重なっており、 WB, WCは離間し ているので、 ウィンドウ WA, WBが重ならないように両ウィンドウ WA, W Bを収縮させ、 ウィンドウ WB, WC間に離間した部分がなくなるように両ゥ インドウ WB, WCを伸長させる。 ウィンドウ WA, WBについては、 両ウイ ンドウ WA, WBの重なり合つている部分の中点 C 1, C 2に向けて、 ウィン ドウ WA, WBをそれぞれ収縮させる。 こうして、 中点 C I, C 2でそれぞれ ウイ:ンドウ WA, WBの端部を接合させてウィンドウ WA, WBを連続させる —方、 ウィンドウ WB, WCについては、 両ウィンドウ WB' WC間の離間部 分の中^ C 3, C 4に向けて、 両ウィンドウ WB, WCを伸長させる。 こうし て、 中点 C 3, C 4でそれぞれウィンドウ WB, WCの端部を接合させてウイ ンドウ WB, WCを連続させる。
【0036】 この要領で図 4 Bに示す参照画像のウィンドウ W 2, W2…を 伸縮させた状態を図 6 Aに示す。 図 6 Aに示すように、 各ウィンドウ W 2, W 2…を伸縮させることにより、 各ウィンドウ W2, W2…の端部を接合させて, ウィンドウ W2, W2'.'を連続させる。 こうして、 各ウィンドウ W2, W2-- 間の隙間を埋めることができる。 ';
【0037】 ところで、 参照画像の各ウィンドウ W2, W 2…を伸縮させる ことにより、 ウィンドウ W2, W2間の隙間を埋めることはできるものの、 列 方向 (図 6 B高さ方向) に隣接するウィンドウ W2, W2の端部 (角部) が連 続しておらず、 階段状となっているので、 図 4 Aに示される基準画像のウィン ドウ Wl , W1…との対応関係にズレが生じてしまうおそれが高い。 そこで、 列方向において生じているウィンドウ端部の位置ズレの調整を行う (S 23) 。
【0038】 この端部の位置ズレの調整を行う手順について、 図 5 B及ぴ図 5 Cを用いて説明する。 第 1行のウィンドウ WA 1, WB 1は、 点 F l, F 2 を結ぶ直線部で接続されている。 また、 第 2行のウィンドウ WA 2, WB 2は、 点 F 3, F 4を結ぶ直線部で接続されており、 第 3行のウィンドウ WA 3, W B 3は点 F 5, F 6を結ぶ直線部で接続されている。 ここで、 点 F 2, F 3は、 行方向では同じ高さ位置にあるが、 列方向ではズレを生じて異なる位置にある。 同様に、 点 F4, F 5は、 行方向では同じ高さ位置にあるが、 列方向ではズレ を生じて異なる位置にある。 このズレを是正するため、 点 F 2, F 3の中点 E
1に向けて点 F 2, F 3を移動させてウィンドウ WA 1, WB 1 , WA 2 , W B 2を変形させる。 同様に、 点 F 4, F 5の中点 E 2に向けて点 F 4, F 5を 移動させて、 ウィンドウ WA 2、 WB 2 , WA 3 , WB 3を変形させる。 変形 後の状態が図 5 Cである。
【0 0 3 9】 このように変形させられたウィンドウ WA 1〜WA 3、 WB 1 〜WB 3は、 いずれも台形状となる。 そして、 四つのウィンドウの中央に位置 する隅部は一点で重なりあう。 この要領で、 図 6 Aに示すウィンドウ W 2, W 2…を変形すると、 図 6 Bに示すようになり、 四つのウィンドウの端部が一点 で重なりあう点で、 図 4 Aに示す基準画像におけるウィンドウ W 1, W 1…と 一致する。 したがって、 基準画像における各ウィンドウ W 1, W 1…と参照画 像における各ウィンドウ W 2, W 2…のそれぞれの対応関係を明確にすること ができる。 このようにしてウィンドウの変形が終了する。
【0 0 4 0】 このようにウィンドウの変形を行うことにより、 ウィンドウ間 の隙間を埋めることができるので、 対象物の画像を滑らかに復元することがで きる。 また、 このときの演算処理量は少なくて済むので、 その分処理時間の短 縮を図ることができる。
【0 0 4 1】 続いて、 図 2に示すステップ S 9におけるウィンドウの再分割 の手順について、 図 7を参照して説明する。 ステップ S 8ですベてのウィンド ゥ内が一つの平面ではないと判断されたとき、 一つの平面となっていないウイ ンドウの再分割が行われる。 再分割を行う際には、 図 8 Aに示すように、 基準 画像における各ウィンドウを四分割する (S 3 1 ) 。 基準画像の各ウィンドウ を四分割する際には、 ウィンドウの各辺の中点と、 その辺に対向する辺の中点 を結ぶ 2本の直線によって 2 X 2のダリッド状に分割する。
【0 0 4 2】 基準画像におけるウィンドウの分割が済んだら、 参照画像のゥ インドウも四分割し、 基準画像の分割ウィンドウに対応させて探索する範囲を 設定する (S 3 2 ) 。 ここでは、 基準画像の正方形の分割ウィンドウと同一の 形状の分割ウィンドウが参照画像上に生成される。 この点について、 図 8 A及 び図 8 Bを参照して説明する。 【0 0 4 3】 図 8 Aに示されるように基準画像上で四分割されたウィンドウ に対応させて、 図 8 Bに示されるように参照画像上のウィンドウも四分割する。 参照画像の'ウィンドウの分割をする際には、 まず参照画像のウィンドウに、 基 準画像の分割ウィンドウと同一の大きさの分割ウィンドウを設定する。 参照画 像上の各ウィンドウに対して四つの分割ウィンドウを設定するに際の分割ゥィ ンドウの表示位置について説明する。 参照画像には図 8 Bに示されるように台 形のウインドウが表示されている。
【0 0 4 4】 この参照画像上の分割前ウィンドウに関して、 図 8 Bに示され るように長さ LAB, LCDを規定する。 LAB, LCDは、 分割前ウィンドウを上下に 等分し、 上側及び下側の各四角形内に面積が最大となる長方形を形成させた際 の各長方形の横辺の長さである。 図 8 Bの場合は、 上側の長方形によって長さ LAB力 下側の長方形によって長さ LCDが規定されている。 また、 図 8 Aに示 されるように、 基準画像の分割ウィンドウの X方向に沿った長さを X 0、 Y方 向に沿った長さを y 0とする。 この条件で、 四つの分割ウィンドウにおけるそ れぞれの重心 (中心) がとり得る範囲をそれぞれ XA, XB, XC, XDとして以 下の (1 ) 式〜 (4) に基づいて設定する。
【0 0 4 5】 XA= LAB/2 _ 1 · · · ( 1 )
Figure imgf000016_0001
XD=XC - · · (4)
【0 0 4 6】 こうして設定された範囲の中で、 それぞれ色、 輝度、 明度など の所定の相関関係に基づいて、 基準画像における分割ウィンドウともっとも相 関関係の高いウィンドウがそれぞれ設定 (配置) される (S 3 3 ) 。 参照画像 の各ウィンドゥに対して四つの分割ウィンドウが設定されたら、 これらの分割 ウィンドウが分割前のウィンドウ内に収まるように各分割ウィンドウを変形さ せる (S 3 4) 。 分割ウィンドウの変形の手順は、 上記のステップ S 7におけ る手順と同様のものである。 たとえば、 図 8 Bでは、 分割ウィンドウ D l, D 2は互いに離間している。 このため、 両分割ウィンドウ D l, D 2の中点に向 けて、 両分割ウィンドウ D 1 , D 2を拡張させ、 両分割ウィンドウ D l, D 2 の間の隙間を埋める。 また、 分割ウィンドウ D 3, D 4は互いに重なり合って いる。 このため両分割ウィンドウ D 3, D 4の中点に向けて、 両分割ウィンド ゥ D 3, D 4を収縮させて、 両分割ウィンドウ D 3, D 4の重畳部分をなくす ようにする。 また、 分割ウィンドウ D 1〜D 4の周囲を、 分割前のウィンドウ Wの形状に合わせて拡張■収縮させる。
【0047】 このようにして各ウィンドウの変形が済んだところで、 ウィン ドウが所望の大きさになったか否かを判断する (S 35) 。 その結果、 所望の 大きさになっていない場合には、 ステップ S 3 1に戻って、 再び同様の処理を 施してウィンドウの分割を行う。 一方。 所望の大きさになっていると判断した 場合には、 処理を終了する。
【0048】 図 9にこのウィンドウの分割の処理が進行した状態を示す。 図 9 A (基準画像) 及び図 9 B (参照画像) では、 ウィンドウの分割が行われて いない状態であり、 車両の画像 V I, V 2を区画するウィンドウ W 1, W 1 ···, W2, W2…の一つ一つがカバーする範囲が広くなつてしまうものである。 次 に、 1回の分割を行うことにより、 図 9 C (基準画像) 及び図 9 D (参照画 像) に示すように、 各ウィンドウ Wl, W1 ···, W2, W2…の領域を狭くす ることができるので、 その分ステレオマッチングを行う際に精度を向上させる ことができる。 さらに図 9 E (基準画像) 及び図 9 F (参照画像) に示すよう に、 もう 1回ウィンドウの分割して分割ウィンドウを形成することにより、 各 ウィンドウ (分割ウィンドウ) の領域を範囲をさらに狭くすることができるの で、 ステレオマッチングの精度をさらに向上させることができる。
【0049】 次に、 本発明の第 2の実施形態について説明する。
【0050】 本実施形態の画像処理装置としては、 上記第 1の実施形態にお ける図 1に示したものと同一の画像処理装置を利用することができる。 また、 画像処理の手順については、 図 2に示す画像処理の行程を経るものである。 こ のうち、 主に図 2に示すステップ S 7におけるウインドウの変形およびステツ プ S 9におけるウィンドウの分割を行う処理が異なるものである。 以下、 この 相違点を中心に、 本実施形態について説明する。
【005 1】 図 1 0A〜図 1 0 Cは、 本実施形態に係る変形前の画像と変形 後の画像との関係を示す説明図である。 図 1 OAには基準画像、 図 10Bには ウィンドウ変形前の参照画像、 図 10 Cにはウィンドウ変形後の参照画像が示 されている。 本実施形態においては、 ウィンドウを拡張ノ収縮させて変形する に際して、 複数のウィンドウの重心を結ぶ点を基準として変形を行う。
【0052】 図 1 OAに示す基準画像には、 9つの正方形のウィンドウ W1, W1…がそれぞれ表示されており、 各ウィンドウ W1, W1…の重心G 1〜G 9をそれぞれ結ぶことによつて四つの正方形のウィンドウ (変形ウィンドウと 呼ぶ) が形成されている。 具体的には、 4つの重心 G l, G 2 , G 5 , G4を 結ぶことにより一つの正方形の変形ウィンドウが形成される。 同様に、 重心 G 2, G 3 , G 6 , 05でーっの正方开、 重心 G4, G 5 , G 8 , G 7で一つの 正方形、 重心 G 5, G 6 , G 9 , G 8で一つの正方形の変形ウィンドウがそれ ぞれ形成される。
【0053】 一方、 図 1 0 Bに示すように、 変形前の参照画像では、 所定の 相関関係に基づいて、 基準画像におけるウィンドウ Wl, W1…と関連付けさ れたウインドウ W2, W2が表示されている。 これらのウィンドウ W2, W2 …は、 図 10 Aに示すウィンドウ W1, W1…にその並び順は対応している力 互いに重なり合ったり、 離間したりしている。 このような重なり合いや離間し た状態を解消するべく、 ウィンドウの変形を行う。 本実施形態では、 図 1 0 C に示されるように、 変形前の各ウィンドウの重心 G 1 1〜G 1 9を結んで、 四 つの台形状の変形ウィンドウを形成する。 3488
【0054】 具体的には、 参照画像における 4つの重心 G 1 1 , G 1 2 , G 1 5, G 14で囲まれる変形ウィンドウが、 基準画像における 4つの重心 G 1 , G 2, G 5, G 4で囲まれる変形ウィンドウに対応する。 同様に、 参照画像に おける重心 G 1 2, G 1 3, G 16, 1 5で囲まれる変形ウィンドウが基準画 像における重心 G 2, G 3, G 6, G 5に囲まれる変形ウィンドウに対応する。 参照画像における重心 G 14, G 1 5, G 1 8, G 1 7で囲まれる変形ウィン ドウが基準画像における重心 G 4, G 5, G 8 , G 7に囲まれる変形ウィンド ゥに対応する。 そして、 参照画像における重心 G 1 5, G 1 6, G 1 9, G 1 8で囲まれる変形ウィンドウが基準画像における重心 G 5 , G 6, G 8, G 9 に囲まれる変形ウィンドウに対応する。
【005 5】 ウィンドウマッチングには、 基準画面上の G 1〜G 9で形成さ れる変形ウィンドウと、 参照画面上の G 1 1〜G 1 9で形成される変形ウィン ドウが用いられる。 このように、 参照画像におけるウィンドウを変形させるこ とにより、 参照画像におけるウィンドウの間に隙間がないようにすることがで きるので、 基準画像と参照画像とのウィンドウに対応関係を明確にすることが できる。 その結果、 対象物をより正確に復元することができる。 また、 本実施 形態に係るウィンドウの変形方法では、 参照画像における変形前の各ウィンド ゥの重心を適宜つないでウィンドウを形成することによって行われるのみであ る。 このため、 演算処理量を少ないものとすることができ、 その結果として、 ウィンドウの変形などを短時間で行うことができる。
【005 6】 次に、 本実施形態における図 2に示すステップ S 9におけるゥ インドウの再分割の手順について、 図 1 1 〜図1 1 Dを参照して説明する。 【005 7】 本実施形態のウィンドウ分割は、 図 1 1 Aに示すように、 基準 画像における変形ウィンドウ W1, W1…を、 それぞれ 2 X 2のグリッド状に 四分割して、 分割ウィンドウ D 5, D 5…を形成しておく。 また、 基準画像に おけるウィンドウ Wl, W1…に対して、 図中縦方向に並ぶ小ウィンドウ S 1, S I…も設定する。 一方、 図 1 I Bに示すように、 参照画像における変形ウイ ンドウ W3, W 3…に対しては、 基準画像上の対応する行の小ウィンドウ S 1 , S 1…と高さ位置を合わせて、 相関関係に基づいてそれぞれ小ウインドウ S 2, S 2…が設定される。 これらの小ウィンドウ S 2、 S 2…は、 基準画像におけ る各小ウィンドウ S I, S 1…に対する色、 輝度、 明度などの所定の相関関係 に基づく対応付けによって設定されている。 このとき、 参照画像の小ウィンド ゥ S 2, S 2…に関して、 基準画像の小ウィンドウ S 1, S 1…に対する相関 関係が高い位置を探索する探索範囲は、 図 1 1Dに示すように、 隣接する小ゥ ィンドウの並び順が逆転しない範囲に抑えられている。
【0058】 こうして参照画像における小ウィンドウ S 2, S 2…を設定し たら、 各小ウィンドウ S 2, S 2…の重心を結んでいく。 その後、 各重心を線 で結ぶと、 変形ウィンドウ W 3、 W 3…が各重心を結ぶ線で分割された状態と なる。 そして、 図 1 2A (基準画像) 及び図 1 2 B (参照画像) に示すように、 これら変形ウインドウ W3, W 3…が分割されて形成された分割ウィンドウ D 6 1〜D 64は、 基準画像の分割ウィンドウ D 5 1〜D 54に対応するものと なる。 このようにして、 分割ウィンドウを形成することで、 各ウィンドウ (分 割ウィンドウ D 5, D6 :図 1 1A及ぴ図 1 1 C参照) の領域を狭くすること ができるので、 その分ステレオマッチングを行う際に精度を向上させることが できる。
【0059】 また、 本実施形態における変形ウィンドウの分割は、 以下に説 明する図 1 3A〜図 1 3 Cに示す手順で行うこともできる。 この分割手順では、 図 1 3 Aに示すように、 基準画像におけるウィンドウ W1, W1…の領域の輪 郭線をまたぐようにして小ウィンドウ S 3, S 3…を設定する。 一方、 図 1 3 Bに示すように、 参照画像においては、 図 1 3 Aに示す基準画像の小ウィンド ゥ S 3, S 3…との色、 輝度、 明度などの所定の相関関係に基づく対応付けを 所定の範囲内で行い、 それぞれに対応する小ウィンドウ S 4, S 4…を設定す る。
【0 0 6 0】 参照画像上に小ウィンドウ S 4, S 4…を設定する際には、 図 1 4に示されるように、 隣接する小ウィンドウの並ぴ順が逆転しないように、 しかも可能な限り探索範囲を広げるように、 探索範囲をオーバーラップさせた 状態で各小ウィンドウの探索範囲が設定される。 この探索範囲についてさらに 説明すると、 4つの変形ウィンドウ W 3, W 3…のうち、 右上に位置する変形 ウィンドウ W 3の上部の頂点 P 1, P 2に着目すると、 1行目のウィンドウの うち、 もっとも右側に位置する小ウィンドウの探索範囲 X I 1は、 右側の頂点 P 2を中心とした所定の範囲内に設定される。
【0 0 6 1】 続いて、 右から 2番目の小ウィンドウの探索範囲 X 1 2は、 頂 点 P I , P 2の中点を中心とした所定の範囲に設定される。 このとき、 もっと も右側の小ウィンドウの探索範囲 X 1 1と、 右から 2番目の小ウィンドウの探 索範囲 X I 2は、 わずかに重なるように設定されている。 さらに、 右から 3番 目の小ウィンドウの探索範囲 X 1 3は、 左側の頂点 P 1を中心とする所定範囲 に設定される。 このとき、 右から 2番目の小ウィンドウの探索範囲 X 1 2と、 右から 3番目に小ウィンドウの探索範囲 X 1 3は、 わずかに重なるように設定 される。 このように各小ウィンドウの探索範囲 X 1 1〜X 1 3を設定すること により、 小ウィンドゥの並び順が変わらない状態で、 広い範囲で小ウィンドウ の探索を行うことができる。 なお、 他の行における小ウィンドウの探索も同様 の手順によって行うことができる。
[ 0 0 6 2 ] こうして小ウインドウの設定が行われたら、 図 1 3 Cに示すよ うに、 各小ウィンドウ S 4, S 4…の重心を結んで、 分割ウィンドウ D 7 , D 7…を設定する。 こうして参照画像に分割ウィンドウが表示された状態を図 1 5 A (基準画像) 及び図 1 5 B (参照画像) に示す。 図 1 5 A及ぴ図 1 5 Bに 示すように、 これら変形ウィンドウ W 3 , W 3…が分割されて形成された分割 ウィンドウ D 7 1 , D 7 2…は、 基準画像の分割ウィンドウ D 5 1, D 5 2— に対応するものとなる。 このようにして、 分割ウィンドウを形成することで、 各ウィンドウの領域を狭くすることができるので、 その分ステレオマッチング を行う際に精度を向上させることができる。
【006 3】 次に、 本発明の第 3の実施形態について説明する。
【0064】 本実施形態の画像処理装置としては、 上記第 1の実施形態にお ける図 1に示したものと同一の画像処理装置を利用することができる。 また、 画像処理の手順については、 図 2に示す画像処理の行程を経るものである。 こ のうち、 主に図 2に示すステップ S 7におけるウィンドウの変形おょぴステツ プ S 9におけるウィンドウの分割を行う処理が異なるものである。 以下、 この 相違点を中心に、 本実施形態について説明する。
【006 5】 図 16A〜図 1 6 Cは、 本実施形態に係る変形前の画像と変形 後の画像との関係を示す説明図である。 図 1 6Aには基準画像、 図 1 6 Bには ウィンドウ変形前の参照画像、 図 16 Cにはウィンドウ変形後の参照画像が示 されている。 図 1 6 Aに示す基準画像には、 9つの正方形のウィンドウ Wl 1 〜W1 9が表示されており、 図 16 Bに示すウィンドウ変形前の参照画像には、 9つのウィンドウ W21—W29が表示されている。
【0066】 基準画像におけるウィンドウ W 1 1〜W 1 9は、 整然とグリッ ド状に配置されている。 一方、 参照画像における 9つのウィンドウ W2 1〜W 29は、 基準画像におけるウィンドウ Wl 1〜W1 9に対する色、 輝度、 明度 などの所定の相関関係に基づいて設定されたものであり、 その並び順は合わさ れているが、 並び位置は雑然としている。
【006 7】 本実施形態では、 参照画像におけるウィンドウ W2 1〜W29 の間に隙間がなくなるようにウィンドウ W21〜W29を拡張/収縮させるた めに、 隣接する四つのウィンドウの角部を含む境界領域 (R 1〜R4) 内で、 四つのウィンドウの接合点を求める。 四つのウィンドウの接合点は、 基準画像 における対応する接合点との色、 輝度、 明度などの所定の相関関係に基づいて 設定される。
【0068】 具体的に説明すると、 図 16 Bに示すウィンドウ W21, W2 2, W25 , W24の接合点を求めるにあたり、 これらのウィンドウ W2 1, W22, W25 , W24の角部を含む境界領域 R 1内において、 図 16 Aに示 すゥィンドゥW1 1, W12, W15, W14の接合点 J 1と相関関係が高い 位置を探索する。 そして、 基準画像における接合点 J 1と相関関係がもっとも 高い位置点を境界領域 R 1内から探索したら、 この点を参照画像におけるウイ ンドウ W 21, W22, W25 , W24の接合点 J 1 1として設定する。 同様 にして、 ウィンドウ W22, W23 , W26 , W 25の接合点 J 12を境界領 域 R 2力、ら、 ウィンドウ W24, W25 , W28 , W27の接合点 J 13を境 界領域 R 3力 ら、 ウィンドゥ W 25, W26 , W29 , W28の接合点 J 14 を境界領域 R 4から、 それぞれ探索する。 また、 ウィンドウ W21, W22の それぞれの上辺が、 両辺の端部の中点で接合するように、 ウィンドウ W21, W22の上辺を収縮させる。 また、 ウィンドウ W22, W23のそれぞれの上 辺は両者の端部の中点で接合するように伸長させる。 同様にウィンドウ W27 W28の下辺およびウインドウ W28 , W29の下辺も両者の端部に中点で接 合するように伸長させる。
【0069】 参照画像におけるウィンドウ W21〜W29を拡張/収縮させ て変形させることにより、 変形後の参照画像に示すようにウィンドウ W 21〜 W29の間の隙間がなくなるようにすることができる。 このようにウィンドウ の変形を行うことにより、 ウィンドウ間の隙間を埋めることができるので、 対 象物の画像を滑らかに復元することができる。 また、 このときの演算処理量は 少なくて済むので、 その分処理時間の短縮を図ることができる。
【0070】 次に、 本実施形態における図 2に示すステップ S 9におけるゥ インドウの再分割の手順について、 図 1 7A、 図 1 7B、 図 18A、 および、 図 1 8 Bを参照して説明する。 図 1 7 A (基準画像) 及び図 1 7 B (参照画 像) は、 本実施形態に係るウィンドウの分割を説明するための図である。 図 1 8 A及び図 1 8 Bは、 分割したウィンドウの接合点を探索する範囲を説明する ための図であり、 図 1 8 Aは探索範囲を示す図、 図 1 8 Bは接合点となる点を 示す図である。 図 1 8 A及び図 1 8 Bでは、 図 1 7 Bに示す参照画像のうちの ウィンドウ W 2 1, W 2 2の部分近傍を拡大して示している。
【0 0 7 1】 本実施形態に係る変形ウィンドウの分割を行う際には、 図 1 7 Aに示すように、 基準画像におけるウィンドウ W l 1 -W 1 9を、 それぞれグ リツド状に四分割して、 分割ウィンドウを形成する。 一方、 図 1 7 Bに示すよ うに、 参照画像にウィンドウ W 2 1〜S 2 9には、 基準画像上の対応する行の 分割ウィンドウと高さ位置を合わせて、 相関関係に基づいてそれぞれ分割ウイ ンドウが設定される。 これらの分割ウィンドウは、 基準画像における各分割ゥ インドウに対する色、 輝度、 明度などの所定の相関関係に基づく対応付けによ つて設定されている。
【0 0 7 2】 この分割ウィンドウの設定について、 基準画像におけるウィン ドウ W l 1 , W 1 2と参照画像におけるウインドウ W 2 1 , W 2 2に着目して 説明すると、 基準画像におけるウィンドウ W 1 1, W 1 2には、 正方形からな る八つの分割ウィンドウ D 8 1〜D 8 8が設定される。 一方、 参照画像には、 図 1 8 Aに示すように、 基準画面の分割ウィンドウ D 8 1〜D 8 8に対応する 八つの分割ウィンドウ D 9 1〜D 9 8が設定されるが、 それらは離間したりあ るいは重なったりしている。 これらの状態から、 各分割ウィンドウを接合する ため、 図 1 7 Aに示す基準画像における分割ウィンドウ D 8 1, D 8 2 , D 8 6 , D 8 5の接合点 J 2 1ともつとも相関関係が高い点を、 図 1 8 Aに示す参 照画像における境界領域 R 2 1から探索する。 ここでの相関関係は、 たとえば 色、 輝度、 明度などに基づいて判断することができる。 こうして、 たとえば図 1 8 Bに示す接合点 J 3 1 , J 3 1…の候補点の中から、 最終的に接合点 J 3 1が決定される。 【0073】 こうして基準画像における接合点 J 21ともつとも相関関係の 高い接合点 J 3 1を境界領域 R 2 1の中から探索したら、 分割ウィンドウ D 9
1, D 9 2, D 96, D 95の接合点を設定し、 分割ウィンドウ D 9 1 , D 9 2の下辺および分割ウインドウ D 96, D 95の上辺をそれぞれ伸長させる。 そうして、 境界領域 R 21の中から探索した点で分割ウィンドウ D 9 1, D 9
2, D 9 6, D 9 5の角部を接合することにより、 各分割ウィンドウ D 9 1, D 92, D 96, D 96間に離間をなくすことができる。
【0074】 また、 参照画像における分割ウィンドウ D 9 2, D 9 3, D 9 7, D 9 6はいずれも重なった状態にある。 これらに対応する基準画像におけ る分割ウィンドウ D 82, D 8 3, D 8 7 , D 86の接合点 J 22ともつとも 相関関係が高い点を参照画像における境界領域 R 22の中から探索する。 ここ での相関関係は、 たとえば色、 輝度、 明度などに基づいて判断することができ る。 こうして、 たとえば図 1 8 Bに示す接合点 J 32, J 3 2…の候補点の中 から、 最終的に接合点 J 32が決定される。
【007 5】 こうして基準画像における接合点 J 22ともつとも相関関係の 高い接合点 J 32を境界領域 R 22の中から探索したら、 分割ウィンドウ D 9 2, D 9 3 , D 9 7, D 96の接合点を設定し、 分割ウインドウ D 92, D 9 3の下辺および分割ウインドウ D 97, D 96の上辺をそれぞれ収縮させる。 そうして、 境界領域 R 22の中から探索した点で分割ウィンドウ D 92, D 9 3, D 9 7, D 96の角部を接合することにより、 各分割ウィンドウ D 9 2,
D 93 , D 97, D 96が連続する。 こうして、 分割ウインドウ D 9 2, D 9 3, D 96, D 9 7間の重なり合いをなくすことができる。
【007 6】 その他、 図 1 7 Bに示すウィンドウ W 21〜W 29においても 同様の手順によってウィンドウを分割■変形させることにより、 ウィンドウ W 2 1〜W 29間の離間や重なり合いを解消させることができる。 このように、 変形ウィンドウを分割することによって、 対象物をより正確に復元することが できる。 また、 分割したウィンドウの間の隙間をなくすように分割したウィン ドウを変形させることによって、 対象物を滑らかに復元することができる。 産業上の利用可能性
【0 0 7 7】 以上のとおり、 本発明によれば、 対象物の復元を行う際に、 曲 面等を滑らかに復元することができる画像処理方法および装置を提供すること ができる。 また、 近い距離を撮影するステレオカメラに対しても用いることが でき、 さらには演算処理量が少なく、 処理時間が短くて済む画像処理方法およ ぴ装置を提供することができる。

Claims

請求の範囲
クレーム 1 . 基準画像撮影手段で対象物を撮影して基準画像を取得す ると共に、 参照画像撮影手段で同一の対象物を撮影して参照画像を取得し、 前記基準画像および前記参照画像に対して、 それぞれ所定の相関関係に基づ いて対応付けされた複数のウィンドウを設定し、
前記参照画像における前記複数のウィンドウを変形させることにより、 前記 参照画像における隣接するウィンドウ同士間の離間又は重なり合いを解消させ て、 前記基準画像のウィンドウと前記参照画像のウィンドウとのステレオマッ チングを行い、 前記対象物の形状を復元することを特徴とする画像処理方法。
クレーム 2 . 前記参照画像上の隣接する前記ウィンドウを変形させる にあたり、 隣接する前記ウィンドウの対向する角部同士の間に向けて、 該ウイ ンドウの角部を移動させるクレーム 1に記載の画像処理方法。
クレーム 3 . 前記参照画像上の隣接する前記ウィンドウを変形させる にあたり、 前記基準画面上のウィンドウの重心を結んだ線によって新たなウイ ンドウ群を形成させると共に、 前記参照画像上のウィンドウの重心を結ぶ線に よって、 前記基準画像上の新たなウィンドウ群に対応する変形後のウィンドウ 群を形成させるクレーム 1に記載の画像処理方法。
クレーム 4 . 前記基準画面上のウィンドウの中心を結んだ線によって 新たなウインドウ群を形成させると共に、
前記参照画像上の隣接する前記ウィンドウのそれぞれの中心を結ぶ線によつ て、 前記基準画像上の新たなウィンドウ群に対応する変形後のウィンドウ群を 形成させるクレーム 1に記載の画像処理方法。
クレーム 5 . 前記参照画像上の隣接する前記ウィンドウを変形させる にあたり、 前記隣接するウィンドウの各角部を含む境界領域内で、 隣接する前 記ウィンドウの統一接合点を所定の相関関係に基づいて求め、 前記統一接合点 を基準として前記ウィンドウを変形させるクレーム 1に記載の画像処理方法。 クレーム 6 . 前記基準画像上に設定された各ウィンドウと、 該基準画 面上の各ウィンドウに対応する前記参照画像上の各ウィンドウとを、 それぞれ を同じ数に分割してそれぞれ分割ウィンドウを形成させ、
前記基準画像における分割ウィンドウと前記参照画像における分割ウィンド ゥとを所定の相関関係に基づいて対応付けし、
前記参照画像における分割ウィンドウを変形させることにより、 前記参照画 像における分割ウィンドウ同士間の離間又は重なり合いを解消させるクレーム 1に記載の画像処理方法。
クレーム 7 . 前記参照画像上のウィンドウを変形させた後、 前記基準 画像及び前記参照画像上の各ウィンドウを複数の領域に分割し、 分割後の前記 参照画像上の各ウィンドウを変形させて隣接するウィンドウ同士の離間及び Z 又は重なり合いを解消し、 前記基準画像の分割ウィンドウ及び変形後の前記参 照画像の分割ウィンドウに基づいてステレオマッチングを行うクレーム 1に記 載の画像処理方法。
クレーム 8 . 前記基準画像及び前記参照画像の各ウィンドゥの分割、 並びに、 前記参照画像の各ウィンドウの変形を複数回繰り返すクレーム 7に記 載の画像処理方法。
クレーム 9 . 基準画像撮影手段および参照画像撮影手段でそれぞれ撮 影された同一対象物の基準画像および参照画像に対して、 それぞれ複数のゥィ ンドウを設定するウィンドウ設定手段と、
前記基準画像に設定した複数のウィンドウの並び順と、 前記参照画像に設定 した複数のウィンドウの並び順との関係に基づいて、 前記基準画像に対する前 記参照画像の対応付けを行い、 前記参照画像上の各ウィンドウを変形させるこ とによって前記参照画像上の隣接するウィンドウ同士間の離間又は重なり合い を解消させた後に、 前記基準画像のウィンドウと前記参照画像のウィンドウと のステレォマツチングを行って前記対象物の形状を復元するステレオマツチン グ手段とを備えることを特徴とする画像処理装置。
クレーム 10. 前記ステレオマッチング手段が、 前記参照画像上の隣接 する前記ウィンドウの対向する角部同士の間に向けて、 該ウィンドウの角部を 移動させる処理を行うクレーム 9に記載の画像処理装置。
クレーム 11. 前記ステレオマッチング手段が、 前記基準画面上のウイ ンドウの重心を結んだ線によって新たなウィンドウ群を形成させると共に、 前 記参照画像上のウィンドウの重心を結ぶ線によって、 前記基準画像上の新たな ウィンドウ群に対応する変形後のウィンドウ群を形成させる処理を行うクレー ム 9に記載の画像処理装置。
クレーム 12. 前記ステレオマッチング手段が、 前記基準画面上のウイ ンドウの中心を結んだ線によって新たなウィンドウ群を形成させると共に、 前 記参照画像上のウィンドウの中心を結ぶ線によって、 前記基準画像上の新たな ウィンドウ群に対応する変形後のウィンドウ群を形成させる処理を行うクレー ム 9に記載の画像処理装置。
クレーム 13. 前記ステレオマッチング手段が、 前記参照画像上の隣接 するウィンドウの各角部を含む境界領域内で、 隣接する前記ウィンドウの統一 接合点を所定の相関関係に基づいて求め、 前記統一接合点を基準として前記ゥ ィンドウを変形させるクレーム 9に記載の画像処理装置。
クレーム 14. 前記基準画像上に設定された各ウィンドウと、 該基準画 面上の各ウィンドウに対応する前記参照画像上の各ウィンドウとを、 それぞれ を同じ数に分割してそれぞれ分割ウィンドウを形成させるウィンドウ分割手段 をさらに備え、
前記ウィンドウマツチング手段が、 前記ウィンドウ分割手段によつて分割さ れた前記基準画像における分割ウィンドウと前記参照画像における分割ウイン ドウとを所定の相関関係に基づいて対応付けし、 前記参照画像における分割ゥ インドウを変形させることにより、 前記参照画像における分割ウィンドウ同士 間の離間又は重なり合いを解消させるクレーム 9に記載の画像処理装置。 クレーム 15. 前記参照画像上のウィンドウを変形させた後、 前記基準 画像及び前記参照画像上の各ウインドウを複数の領域に分割するウィンドウ分 割手段をさらに備え、
前記ステレオマツチング手段が、 前記ウィンドウ分割手段による分割後の前 記参照画像上の各ウィンドウを変形させて隣接するウィンドウ同士の離間及び
Z又は重なり合いを解消し、 前記基準画像の分割ウインドウ及び変形後の前記 参照画像の分割ウィンドウに基づいてステレオマッチングを行うクレーム 9に 記載の画像処理装置。
クレーム 16. 前記ウィンドウ分割手段による前記基準画像及び前記参 照画像の各ウィンドウの分割、 並びに、 前記ウィンドウマッチング手段による 前記参照画像の各ウィンドウの変形を複数回繰り返すクレーム 15 に記載の画 像処理装置。
PCT/JP2003/013488 2002-10-22 2003-10-22 画像処理方法および画像処理装置 WO2004038660A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
AU2003275587A AU2003275587A1 (en) 2002-10-22 2003-10-22 Image processing method and image processor
JP2004546445A JP4082410B2 (ja) 2002-10-22 2003-10-22 画像処理方法および画像処理装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2002-307315 2002-10-22
JP2002307315 2002-10-22

Publications (1)

Publication Number Publication Date
WO2004038660A1 true WO2004038660A1 (ja) 2004-05-06

Family

ID=32170935

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2003/013488 WO2004038660A1 (ja) 2002-10-22 2003-10-22 画像処理方法および画像処理装置

Country Status (3)

Country Link
JP (1) JP4082410B2 (ja)
AU (1) AU2003275587A1 (ja)
WO (1) WO2004038660A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018132897A (ja) * 2017-02-14 2018-08-23 日立オートモティブシステムズ株式会社 車載環境認識装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1153554A (ja) * 1997-08-06 1999-02-26 Nec Corp 3次元形状生成方法および装置
JPH11153406A (ja) * 1997-11-20 1999-06-08 Nissan Motor Co Ltd 車両用障害物検出装置
JPH11161794A (ja) * 1997-11-28 1999-06-18 Toshiba Corp 3次元情報復元装置及びその方法
JP2001109879A (ja) * 1999-08-05 2001-04-20 Sony Corp 画像処理装置および方法、並びに媒体

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1153554A (ja) * 1997-08-06 1999-02-26 Nec Corp 3次元形状生成方法および装置
JPH11153406A (ja) * 1997-11-20 1999-06-08 Nissan Motor Co Ltd 車両用障害物検出装置
JPH11161794A (ja) * 1997-11-28 1999-06-18 Toshiba Corp 3次元情報復元装置及びその方法
JP2001109879A (ja) * 1999-08-05 2001-04-20 Sony Corp 画像処理装置および方法、並びに媒体

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018132897A (ja) * 2017-02-14 2018-08-23 日立オートモティブシステムズ株式会社 車載環境認識装置
WO2018150921A1 (ja) * 2017-02-14 2018-08-23 日立オートモティブシステムズ株式会社 車載環境認識装置

Also Published As

Publication number Publication date
JP4082410B2 (ja) 2008-04-30
AU2003275587A1 (en) 2004-05-13
JPWO2004038660A1 (ja) 2006-02-23

Similar Documents

Publication Publication Date Title
CN107959805B (zh) 基于混合相机阵列的光场视频成像***及视频处理方法
JP4832878B2 (ja) 画像合成処理装置及び方法
US7711180B2 (en) Three-dimensional image measuring apparatus and method
JP4851239B2 (ja) 画像処理装置及びその処理方法
TWI417639B (zh) 全周鳥瞰影像無縫接合方法與系統
US7899270B2 (en) Method and apparatus for providing panoramic view with geometric correction
JP6733267B2 (ja) 情報処理プログラム、情報処理方法および情報処理装置
US20100111440A1 (en) Method and apparatus for transforming a non-linear lens-distorted image
CN100437639C (zh) 图像处理装置和图像处理方法
JP4010754B2 (ja) 画像処理装置と画像処理方法及びコンピュータ読み取り可能な記録媒体
JPH07294215A (ja) 画像処理方法及び装置
JP2005521123A5 (ja)
JP4809134B2 (ja) 画像処理装置及びその処理方法
CN113284249B (zh) 一种基于图神经网络的多视角三维人体重建方法及***
WO2004038660A1 (ja) 画像処理方法および画像処理装置
JP4813263B2 (ja) 画像処理装置及びその処理方法
KR101001629B1 (ko) 항공영상을 이용한 텍스처 매핑 시스템 및 그 방법
CN109272445B (zh) 基于球面模型的全景视频拼接方法
JP3924576B2 (ja) 写真測量による3次元計測方法及び装置
JPH0650730A (ja) 三次元形状計測装置
JP4139137B2 (ja) 建物外形抽出方法およびシステム
JPH0814860A (ja) モデル作成装置
JP4714934B2 (ja) 写真測量方法及び写真測量プログラム
JPH1115951A (ja) ずれ検出装置および画像合成装置
JP2006109088A (ja) マルチプロジェクションシステムにおける幾何補正方法

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): GH GM KE LS MW MZ SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LU MC NL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

DFPE Request for preliminary examination filed prior to expiration of 19th month from priority date (pct application filed before 20040101)
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2004546445

Country of ref document: JP

122 Ep: pct application non-entry in european phase