[go: up one dir, main page]

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

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

Info

Publication number
WO2004038661A1
WO2004038661A1 PCT/JP2003/013489 JP0313489W WO2004038661A1 WO 2004038661 A1 WO2004038661 A1 WO 2004038661A1 JP 0313489 W JP0313489 W JP 0313489W WO 2004038661 A1 WO2004038661 A1 WO 2004038661A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
reference image
windows
correspondence
order
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/JP2003/013489
Other languages
English (en)
French (fr)
Inventor
Kenichi Kitahama
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
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 Motor Corp filed Critical Toyota Motor Corp
Priority to JP2004546446A priority Critical patent/JP4075892B2/ja
Priority to AU2003275588A priority patent/AU2003275588A1/en
Publication of WO2004038661A1 publication Critical patent/WO2004038661A1/ja
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • G06T7/32Determination of transform parameters for the alignment of images, i.e. image registration using correlation-based methods

Definitions

  • the object object is defined as a 33-dimensional original three-dimensional object by the Stetereo-Leooma Matching method.
  • the present invention relates to an image processing method for a restoration source image and an image processing apparatus. .
  • the method involves observing and observing an object from a plurality of different directions. Then, based on the image of the Stetereo-Leo image, a 33D-dimensional original wheel contour line of the object is generated and generated. Generates a 33-dimensional elementary domain ((technical region or slightly region)). . Based on the 33-dimensional original wheel contour outline information, and the 33-dimensional original territory area information, the existing 33-dimensional original model Where there is something that fits
  • the 33rd-dimensional original ring contour contour line is expressed as
  • the object is extracted from the Stereleoreo image ((Basic reference image and reference reference image)).
  • the Stetereleooma Matching here is, for example, taking into account the continuous continuity of the surface, a certain evaluation function Correspondence of Stereleo Omamatsu Chichinguing so that the number becomes the minimum and minimum
  • An object of the present invention is to provide an image processing method and apparatus capable of accurately performing stereo matching between a reference image and a reference image and shortening the image processing time. It is in.
  • the image processing method according to the present invention for solving the above-mentioned problems is as follows: the same image is taken by the reference image photographing means and the reference image photographing means, and the reference image and the reference image photographed by the reference image photographing means. It restores the shape of the target object by stereo matching using the reference image taken by the photographing 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 with respect to the reference image and the reference image, and arranges the plurality of windows ⁇ set in the reference image. And performing stereo matching between the window of the reference image and the window of the reference image based on the relationship between the arrangement order of the plurality of windows set in the reference image and restoring the shape of the object.
  • the window of the reference image and the reference image Since stereo matching with the window is performed, stereo matching between the reference image and the reference image can be easily performed, and the image processing time can be reduced.
  • a plurality of windows are set for both the reference image and the target image, and it is determined whether or not the correspondence between the reference image and the target image is appropriate based on the arrangement order of the plurality of windows.
  • the order of the windows in the reference image By matching the order of the windows in the image, it is possible to associate the reference image with the reference image. Therefore, stereo matching can be performed accurately, and the object can be reliably restored.
  • the arrangement order of the plurality of windows in the reference image is corrected such that the arrangement order of the plurality of windows in the reference image matches the arrangement order of the plurality of windows in the reference image. Is preferred.
  • the plurality of windows are set as both the reference image and the reference image based on a predetermined correlation. Then, the order of the plurality of windows in the reference image is corrected so that the order of the windows in the reference image matches the order of the windows in the reference image. For this reason, it is possible to improve the accuracy in correcting the arrangement order of a plurality of windows in the reference image, to perform more accurate stereo matching, and to more reliably restore the object.
  • the erroneous correspondence window in the reference image having a different correspondence with the arrangement order of the windows in the reference image and the correct correspondence window in the reference image in which the correspondence with the arrangement order of the windows in the reference image are correct
  • the correspondence with the order of the windows in the reference image is different. Correcting the misordered window order in the correct image windows in the reference image that has the correct correspondence between the incorrectly matched window in the reference image and the order of the windows in the reference image. It is preferable to perform weighting on the position and to determine the order of correcting the arrangement order of the erroneous correspondence windows based on the ratio of the weighted correct correspondence windows.
  • the correct correspondence window is weighted. Since the order can be selected first and the order can be modified, the order of the windows can be modified more quickly.
  • the image processing apparatus of the present invention 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.
  • the stereo matching means performs the order of the plurality of windows in the reference image such that the order of the plurality of windows in the reference image matches the order of the plurality of windows in the reference image. Is preferably corrected.
  • the stereo matching means is configured to determine whether the correspondence between the erroneous correspondence window in the reference image having a different correspondence with the arrangement order of the windows in the reference image and the arrangement order of the windows in the reference image is correct.
  • the order in which the arrangement order of the incorrect correspondence windows is corrected is determined based on the ratio of the correct correspondence windows adjacent to the wrong correspondence window. Is preferred.
  • the stereo matching means may include: an erroneous correspondence window in the reference image having a different correspondence with the arrangement order of the windows in the reference image;
  • the correct correspondence window ⁇ in the reference image whose correspondence with the window arrangement order in is correct, in correcting the arrangement order of the erroneous correspondence window, the position of the correct correspondence window adjacent to the erroneous correspondence window is weighted and weighted. It is preferable to determine the order in which the arrangement order of the erroneous correspondence windows is corrected based on the ratio of the correct correspondence windows.
  • FIG. 1 is a block diagram of an image processing apparatus according to the present invention.
  • FIG. 2 is a flowchart showing steps of image processing by the image processing apparatus.
  • FIG. 3 is a flowchart showing the details of the process of correcting the arrangement order of the erroneous correspondence windows in the reference image.
  • FIG. 4A is a diagram showing a reference image.
  • FIG. 4B is a diagram showing a reference image.
  • FIG. 5A is an explanatory diagram relating to a reference image schematically illustrating a process of correcting the arrangement order of the erroneous correspondence windows.
  • FIG. 5B is an explanatory diagram relating to a reference image schematically illustrating a process of correcting the arrangement order of the erroneous correspondence windows.
  • FIG. 6A shows a reference image following FIG. 4B, and is a view showing a process of generating a correct correspondence window in the reference image.
  • FIG. 6B shows a reference image following FIG. 6A, and is a view showing a process of generating a correct correspondence window in the reference image.
  • FIG. 7A shows a reference image following FIG. 6B, and is a view showing a process of generating a correct correspondence window in the reference image.
  • FIG. 7B shows a reference image following FIG. 7A, and is a diagram showing a process of generating a correct correspondence window in the reference image.
  • FIG. 8 is a diagram illustrating a relationship between an incorrect correspondence window and a correct correspondence window according to the second embodiment.
  • FIG. 9 is an explanatory diagram for explaining a step of correcting the order of arrangement of erroneous correspondence windows according to the second embodiment.
  • FIG. 10 is a diagram showing a relationship between an incorrect correspondence window and a correct correspondence window according to the third embodiment.
  • FIG. 11 is an explanatory diagram for explaining a step of correcting the arrangement order of the erroneous correspondence windows according to the third embodiment.
  • 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 an image processing apparatus 1 according to the present embodiment.
  • the image processing device 1 includes a pre-processing unit 11, a window generation unit 12, and a stereo matching unit 13.
  • the image processing device 1, the cameras 2, 3 and the monitor 4 are mounted, for example, on a vehicle (not shown). Specifically, for example, the image processing device 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 mounted, for example, at a position in the vehicle compartment where the driver's view can be reached, for example, at 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.
  • Analog images captured by the reference image camera 2 and the reference image camera 3 are output to the pre-processing unit 11 of the image processing device 1.
  • the analog image output to the image processing device 1 is subjected to predetermined image processing in a pre-processing unit 11, a window generation unit 12, and a stereo matching unit 13 in the image processing device 1, and then converted into a digital image.
  • Image processing equipment The image processing procedure in the device 1 will be described later.
  • the monitor 4 displays a projected image that has been stereo-matched and output from the image processing apparatus 1 on a screen.
  • FIG. 2 is a flowchart showing 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 with the reference image power camera 2 and the reference image power camera 3.
  • the reference image obtained by photographing the object with the reference image camera 2 is output to the pre-processing unit 11 of the image processing apparatus 1.
  • the reference image obtained by capturing the target object by the reference image camera 3 is output to the pre-processing unit 11 in the image processing device 1.
  • the image processing by the image processing apparatus 1 is started.
  • the pre-processing unit 11 When the image processing is started, the pre-processing unit 11 performs camera calibration on the reference image and the reference image as pre-processing (S1), and subsequently, executes the reference image and the reference image.
  • the reference 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).
  • S3 region division for dividing each of the reference image and the reference image into a plurality of regions
  • S4 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 by performing a correlation operation (window matching). Done (S)
  • the association is determined, for example, when the correlation of the color, luminance, brightness, etc. in each window exceeds a certain threshold value.
  • Correcting the sorting order is performed by associating multiple windows in the reference image. As a result, an erroneous correspondence window having a different order of arrangement with a plurality of windows in the reference image is detected, and the arrangement order of the erroneous correspondence windows is corrected. After making this correction, the search order for the windows in the reference image is completed by, for example, re-searching for a window in which the erroneous correspondence has not been corrected (S6). The process of correcting the order of the windows will be described later in detail. As described above, the window generation unit 12 sets the windows, associates the windows between the reference image and the reference image, and corrects the arrangement order of the windows. Functions as window setting means. The stereo matching means also performs matching (correspondence and correction thereof) on the window between the reference image and the reference image, and functions as a stereo matching means for restoring the target object as a three-dimensional object.
  • the window is deformed to fill the gap between the windows in the reference image (S7).
  • the transformation of the window it is determined whether or not all the windows are in one plane (S8).
  • the window (the corresponding window) that is out of the same plane is re-divided (S 9), and the correlation operation is performed again (S 10).
  • the window is deformed, and it is determined again whether or not all windows are one plane (S8).
  • the three-dimensional coordinates of the four corners of each window are calculated (S11).
  • the stereo matching unit 13 applies a solid primitive based on the three-dimensional coordinates of the four corners of each window (the solid is a combination of primitives called primitives such as spheres, cuboids, and cones). Expression) is performed (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.
  • FIG. 3 is a flowchart showing the details of the process of correcting the arrangement order of the erroneous correspondence windows in the reference image.
  • FIG. 4A in the reference image, a window column of 10 rows is set for the image V of the automobile as the target object.
  • the first row has 8 columns
  • the second row has 12 columns
  • the third row has 14 columns
  • the fourth row has 15 columns
  • the fifth and sixth rows have 16 columns.
  • Window W, W... are set respectively.
  • windows W, W, etc. with 15 columns in the 7th row, 11 columns in the 8th row, 10 columns in the 9th row, and 5 columns in the 10th row are set, respectively.
  • FIG. 4B shows a reference image before the window alignment is completed.
  • FIGS. 5A and 5B With respect to the plurality of windows set as described above, the procedure for setting the window associated with the reference image will be described with reference to FIGS. 5A and 5B.
  • FIG. 5A in the reference image, it is assumed that three rows from the first row to the third row and six columns from the columns A to F are set.
  • FIG. 5B a position having a high correlation with each window ⁇ ⁇ of the reference screen is set as a corresponding window based on a predetermined correlation.
  • the areas having the highest correlation in the reference image are set as windows A1 to F1.
  • the regions having the highest correlation in the reference image are defined as windows A2 to F2, Set as A3 to F3.
  • the appearance order of the columns is checked for each row of the reference image in FIG. 5B thus associated.
  • the type of the window adjacent to both sides of each of the window ⁇ ⁇ ⁇ ⁇ in the reference image and the window in the reference image is determined. It is determined that the window corresponds correctly. On the other hand, if one or both of the windows adjacent on both sides are different, it is determined that the windows in the reference image and the reference image are erroneously matched. [0038] More specifically, in the window ⁇ of the first row in the reference image and the window of the first row in the reference image, the V and the shifts are ABCD ⁇ ⁇ in order from the left.
  • the outermost window A2 has only one window on one side, the correctness of the corresponding window is determined based on whether the window matches this one side. For the other outermost windows, the correctness is determined in the same manner.
  • the AB CD column is determined to be an erroneous correspondence because one or both of the adjacent windows on both sides do not match.
  • the EF column is determined to be a correct correspondence because the windows adjacent on both sides match.
  • the third row only the column A has adjacent windows on both sides that match, It is determined that the correspondence is correct.
  • the other columns B to F one or both of the adjacent windows on both sides do not match, so it is judged to be a wrong correspondence.
  • FIG. 4B shows only the window corresponding to the window of the reference image among the windows of the reference image, and does not show the window corresponding to the wrong window.
  • Step matching is performed (S26), and the arrangement order of the erroneous correspondence windows is corrected.
  • step S 29 the number of windows that correspond to the surroundings (neighbors) is detected again for all erroneous windows (S 24), and the number becomes ⁇ ⁇ (here Then, it is determined whether or not an erroneous correspondence window having the initial value 8) exists (S25).
  • the process proceeds to step S26 again as in the above case.
  • the miscorresponding windows in which the number of surrounding corresponding windows remains at the initial value of 8 are often corrected, and ultimately Step S26 is denied.
  • Figure 6A, Figure 6B, Figure 7A, and Figure 7B show the reference image following Figure 4B for the process of reducing the false correspondence window in the reference image.
  • steps S25 to S28 of the flow chart shown in FIG. 3 are obtained from the image shown in FIG. 4B. It shows a state that changes each time.
  • the image shown in FIG. 6A it can be seen that, in contrast to FIG. 4B, the correct correspondence windows W, W.
  • FIG. 6A in contrast to FIG. 6A, in the image shown in FIG. 6B, it can be seen that more correct correspondence windows W, W ... are displayed.
  • Fig. 7A most windows are displayed as correctly-corresponding windows W, W ..., and finally, as shown in Fig. 7B, all windows are correctly-corresponding. ... Is displayed, and the correction of the order of the mishandling windows is completed.
  • step S7 in the flowchart of FIG. 2 the processing after step S7 in the flowchart of FIG. 2 is performed, the stereo matching between the reference image and the reference image is completed, and the image V of the vehicle is restored as a three-dimensional object. be able to.
  • the correspondence between the reference image and the reference image becomes clear, so that reliable stereo matching can be performed.
  • the object can be reliably restored.
  • the order of windows in the reference image is corrected so as to match the order of windows in the reference image, stereo matching and restoration of the object can be realized with high accuracy.
  • it is not necessary to refer to the magnitude of the correlation or to judge the amount of window shift when changing the arrangement order so it is necessary to set a threshold value for that. There is no. Therefore, the amount of computation does not become excessive, so that the time and load required for the computation can be reduced.
  • FIG. 8 is a diagram showing the relationship between the incorrect correspondence window and the correct correspondence window # in the present embodiment.
  • eight correct correspondence windows L1 to L8 have already been associated.
  • the arrangement order of the erroneous correspondence window M1 is corrected based on these correct correspondence windows L1 to L8.
  • [0 0 5 0] 9 [(1-X 0) + (x 2-0) + x 3 + (x 4 + x 0) + (x 5 + x 0) + (x 6 + x 0) + x 7 + (x 8-x 0)] / 8... (1)
  • the search range X is narrowed down to the range of the following equation (2) and set.
  • the X coordinate of the search range x is x9—Set to exceed the larger value of ⁇ 2 and x5 and less than the smaller value of ⁇ 9 + ⁇ / 2 and X1.
  • a re-search for an incorrect correspondence window is performed at least between the correct correspondence windows L5 and L1.
  • the search can be performed again as a correct correspondence window replacing the incorrect correspondence window M1.
  • the search range X set in this way and correcting the position of the erroneous correspondence window, the position of the erroneous correspondence window can be corrected irrespective of the position of the correct correspondence window. For this reason, it is not necessary to categorize cases according to the position of the correct correspondence window, so that arithmetic processing can be performed quickly.
  • the search range X is limited in consideration of the midpoint (center of gravity) positions x5 and X1 in the X-axis direction of the correct correspondence windows L5 and L1 adjacent to the wrong correspondence window. Therefore, the correct correspondence window can be set without reversing the positional relationship of the incorrect correspondence window Ml with respect to the correct correspondence windows L5 and L1.
  • the image processing apparatus can use the same image processing apparatus as that shown in FIG. 1 in the first embodiment.
  • I do when narrowing down the re-search position of the incorrect correspondence window from the position of the correct correspondence window, I do.
  • weighting a large weight is assigned to the correct correspondence window that is located around (in the vicinity of) the wrong correspondence window, has a large influence on the mis-correspondence window, and is at a dominant position.
  • a small weight is assigned to the correct window that has a small influence on the incorrect window, such as a position far from the incorrect window.
  • FIG. 10 is a diagram illustrating a relationship between the erroneous correspondence window and the directly facing window in the present embodiment.
  • eight correct correspondence windows P1 to P8 have already been associated, and the order of the incorrect correspondence windows Q1 is corrected based on these correct correspondence windows P1 to P8. .
  • the X coordinate of the midpoint (center of gravity) of each of the corresponding windows P 1 to P 8 is X 1 to ⁇ 8
  • the width of each of the windows Q 1, P 1 to P 8 in the X-axis direction is X
  • the width in the Y-axis direction is y0.
  • the weight is set to 1W (W).
  • the weights are set to 2W on both sides of the position where the erroneous correspondence window Q1 should be set, because the influence is greater than the four corners.
  • the weight is set to 3W above and below the position where the incorrect correspondence window Q1 is to be set, since the influence is the largest. Equation (3), which takes into account 1) and such weighting, is shown below.
  • X 10 [(1 X 2-X 0) + (x 2-x 0) + (x 3 X 3) + (x 4 + x 0) + (x 5 X 2 + X 0) + ( x 6 + 0) + (x 7 X 3) + (x 8— ⁇ ⁇ )] / (2 + 1 + 3 + 1 + 2 + 1 + 3 + 1)... (3)
  • the search range X is set by narrowing the search range X to the range of the following equation (4).
  • the present invention is not limited to the above embodiments.
  • the arrangement order is set along the horizontal direction, it can be set along the vertical direction or along the diagonal direction.
  • the image generated by the image processing apparatus 1 is displayed on the monitor 4, it can be used for other image processing purposes without displaying it on the monitor 4.
  • an image processing method that shortens image processing time by making it possible to easily perform stereo matching between a reference image and a reference image And equipment can be provided.

Landscapes

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

Abstract

 本発明の画像処理方法においては、基準画像と参照画像とを用いたステレオマッチングによって対象物の形状を復元するにあたり、基準画像および参照画像に対して、それぞれ所定の相関関係に基づいて対応付けされた複数のウィンドウを設定する。このとき、参照画像に設定されたウィンドウの並び順を基準画像における複数のウィンドウの並び順と一致させるように、参照画像における複数のウィンドウの並び順を修正する。並び順に基づいてマッチングの修正を行うため、基準画像と参照画像との間のステレオマッチングを容易に行うことができ、画像処理時間の短縮を図ることが可能となる。

Description

明細
画画像像処処理理方方法法おおよよびび画画像像処処理理装装置置
技技術術分分野野
【【00 00 00 11】】 本本発発明明ははスステテレレオオママッッチチンンググにによよっってて物物体体をを 33次次元元立立体体物物ととししてて 55 復復元元すするる画画像像処処理理方方法法おおよよびび画画像像処処理理装装置置にに関関すするる。。
背背景景技技術術
【【00 00 00 22】】 近近年年、、 画画像像処処理理技技術術のの発発達達にに伴伴いい、、 異異ななるる方方向向かからら対対象象物物をを撮撮影影 ししたた複複数数のの画画像像にに基基づづいいてて、、 対対象象物物のの立立体体モモデデルルをを画画像像処処理理にによよっってて得得るる方方法法がが ああるる。。 ここののよよううなな画画像像処処理理方方法法ととししててはは、、 たたととええばば特特開開 22 00 00 00—— 99 99 77 66 00号号
1100 公公報報 ((33ペペーージジ、、 図図 22 )) にに開開示示さされれたた 33次次元元モモデデルル生生成成方方法法ががああるる。。 ここのの 33次次元元 モモデデルル生生成成方方法法でではは、、 複複数数のの異異ななるる方方向向かからら物物体体をを観観測測ししててスステテレレォォ画画像像をを取取得得 しし、、 ここののスステテレレオオ画画像像にに基基づづいいてて物物体体のの 33次次元元輪輪郭郭線線をを生生成成すするるとと共共にに、、 33次次元元 領領域域 ((テテククススチチャャ領領域域ややシシェェーーデディィンンググ領領域域)) をを生生成成すするる。。 33次次元元輪輪郭郭線線情情報報、、 及及びび、、 33次次元元領領域域情情報報にに基基づづいいてて、、 既既存存のの 33次次元元モモデデルルとと適適合合すするるももののががああるる場場
1155 合合ははここれれららのの情情報報をを更更新新しし、、 適適合合すするるももののががなないい場場合合ははここれれららのの情情報報をを新新たたなな 33 次次元元モモデデルルととししてて登登録録すするる。。 ままたた、、 物物体体のの 33次次元元モモデデルル全全体体がが完完成成ししてていいなないい場場 合合はは、、 観観測測方方向向をを移移動動ししてて全全体体ののモモデデルルをを生生成成すするる。。
【【00 00 00 33】】 上上記記公公報報にに開開示示さされれたた 33次次元元モモデデルル生生成成方方法法でではは、、 33次次元元輪輪郭郭線線 をを生生成成 ((復復元元)) すするる際際にに、、 スステテレレオオ画画像像 ((基基準準画画像像とと参参照照画画像像)) かからら物物体体ののエエツツ
2200 ジジをを抽抽出出ししててセセググメメンントトにに分分割割しし、、 画画像像間間ののセセググメメンントト毎毎のの対対応応をを探探索索すするるスステテ レレオオママッッチチンンググ処処理理をを行行っってていいるる。。 ここののスステテレレオオママッッチチンンググはは、、 たたととええばば、、 面面のの 連連続続性性をを考考慮慮ししてて、、 ああるる評評価価関関数数がが最最小小ととななるるよよううににスステテレレオオママツツチチンンググのの対対応応
【【00 00 00 44】】 上上述述ししたた特特開開 22 00 00 00—— 99 99 77 66 00号号公公報報にに記記載載ののスステテレレオオママッッ 2255 ·· チチンンググににおおいいててはは、、 ミミススママッッチチンンググがが生生じじるるとと、、 対対象象物物をを正正確確にに復復元元すするるここととがが ででききななくくななるるとといいうう問問題題ががああっったた。。 ままたた、、 ここののよようう * 繰り返しの計算が多く、 処理が遅くなってしまうという問題があった。
発明の開示
【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は、 誤対応ウィンドウの並び順を修正する工程を概略的に説明する参照 画像に関する説明図である。
図 6 Aは、 図 4 Bに続く参照画像を示しており、 参照画像における正対応ウイ ンドウが生成される工程を示す図である。
図 6 Bは、 図 6 Aに続く参照画像を示しており、 参照画像における正対応ウイ ンドウが生成される工程を示す図である。
図 7 Aは、 図 6 Bに続く参照画像を示しており、 参照画像における正対応ウイ ンドウが生成される工程を示す図である。
図 7 Bは、 図 7 Aに続く参照画像を示しており、 参照画像における正対応ウイ ンドウが生成される工程を示す図である。
図 8は、 第 2の実施形態に係る誤対応ウィンドウと正対応ウィンドウとの関係 を示す図である。 図 9は、 第 2の実施形態に係る誤対応ウィンドウの並ぴ順を修正する工程を説 明するための説明図である。
図 1 0は、 第 3の実施形態に係る誤対応ウィンドウと正対応ウィンドウとの関 係を示す図である。
図 1 1は、 第 3の実施形態に係る誤対応ウィンドウの並び順を修正する工程を 説明するための説明図である。
発明を実施するための最良の形態
【0 0 2 1】 以下、 図面を参照して、 本発明の好適な実施形態について詳細に 説明する。
【0 0 2 2】 図 1は、 本発明の第 1の実施形態に係る画像処理装置のプロック 構成図である。 図 1に示すように、 本実施形態に係る画像処理装置 1には、 基準 画像カメラ 2と、 参照画像カメラ 3と、 モニタ 4とが接続されている。 また、 画 像処理装置 1は、 前処理部 1 1と、 ウィンドウ生成部 1 2と、 ステレオマツチン グ部 1 3とを備えている。 画像処理装置 1、 カメラ 2, 3、 および、 モニタ 4は. たとえば図示しない車両に取り付けられている。 具体的には、 たとえば画像処理 装置 1は車室内の適宜の位置に設置されている。 また、 基準画像カメラ 2および 参照画像力メラ 3は、 たとえば車両の側面における互いに近傍位置に設けられて いる。 さらに、 モニタ 4は、 たとえば車室内におけるドライバの視界が届く位置、 たとえばィンストルメントパネルに取り付けられている。
【0 0 2 3】 基準画像カメラ 2と参照画像カメラ 3は、 いずれも C C Dカメラ からなり、 同一対象物をアナログ画像として撮影している。 基準画像カメラ 2お よび参照画像カメラ 3で撮影されたアナログ画像は、 画像処理装置 1における前 処理部 1 1に出力される。 画像処理装置 1に出力されたアナログ画像は、 画像処 理装置 1における前処理部 1 1、 ウィンドウ生成部 1 2、 およびステレオマッチ ング部 1 3で所定の画像処理が施された後、 デジタル画像からなる投影像 ( 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 ) 。 この相関演算では、 各ウィンドウにおける色、 輝度、 明度等の相関がある しきい値を超えたときに対応付けされるなどとして、 対応付けの判断を行ってい る。
【0 0 2 8】 続いて、 参照画像におけるウィンドウの並ぴ順の修正を行う (S
6 ) 。 並び順の修正は、 参照画像における複数のウィンドウのうち、 対応付けを 行つた結果、 基準画像における複数のウィンドウとの並ぴ順が異なる誤対応ゥィ ンドウを検出し、 誤対応ウィンドウの並び順の修正を行う。 この修正を行った後、 レ、まだ誤対応が修正されていないウィンドウを再探索するなどして、 参照画像に おけるウィンドウの並び順の修正を完了させる (S 6 ) 。 ウィンドウの並び順の 修正を行う工程については、 後に詳述する。 このように、 ウィンドウ生成部 1 2 では、 ウィンドウの設定、 基準画像と参照画像との間のウィンドウの対応付け、 およびウィンドウの並び順の修正を行っており、 ウィンドウ生成部 1 2は、 本発 明のウィンドウ設定手段として機能する。 また、 ステレオマッチング手段は、 基 準画像と参照画像とのウィンドウもマッチング (対応付け、 及び、 その修正) を 行い、 対象となる物体 3次元物体として復元するステレオマッチング手段として 機能する。
【0 0 2 9】 こうして、 ウィンドウの並び順の修正が済んだら、 参照画像にお けるウィンドウ間の隙間を埋めるためのウィンドウの変形を行う (S 7 ) 。 ウイ ンドウの変形が完了した時点で、 全ウィンドウ内がーつの平面となっているか否 かを判断する (S 8 ) 。 その結果、 全ウィンドウ内が一つの平面となっていない 場合には、 同一の平面から外れたウィンドウ (該当ウィンドウ) を再分割し (S 9 ) 、 再び相関演算を行う (S 1 0 ) 。 それから、 ステップ S 7に戻って、 ウイ ンドウの変形を行い、 再び全ウィンドウ内が一つの平面か否かを判断する (S 8 ) 。 この工程を繰り返した後、 ステップ S 8で全ウィンドウ内が一つの平面で あると判断されたら、 各ウィンドウの 4隅の 3次元座標が計算される (S l l ) 。 【0 0 3 0】 ステレオマッチング部 1 3では、 各ウィンドウの 4隅の 3次元座 標に基づいて、 立体プリミティブのあてはめ (立体を球、 直方体、 円錐などのプ リミティブと呼ばれる基本立体の組み合わせで表現すること) が行われる (S 1 2 ) 。 そして、 投影像を生成して (S 1 3 ) 、 画像処理が終了する。 こうして生 成された投影像は、 モニタ 4に出力され、 表示される。
【0 0 3 1】 上記の画像処理工程において、 本実施形態では、 参照画像におけ るウィンドウの並び順の修正 (S 6 ) に特徴がある。 以下に、 この特徴的な工程 についてさらに説明する。
【0 0 3 2】 図 3は、 参照画像における誤対応ウィンドウの並び順の修正を行 う工程の詳細を示すフローチャートである。
【0 0 3 3】 ウィンドウの並び順の修正を行うにあたり、 各画像における複数 のウィンドウにおける各行の列の出現順を調べる (S 2 1 ) 。 本実施形態では、 図 4 Aに示すように、 基準画像では対象物である自動車の画像 Vに対して、 1 0 行のウィンドウ列が設定されている。 このうち 1行目には 8列、 2行目には 1 2 列、 3行目には 1 4列、 4行目には 1 5列、 5行目および 6行目には 1 6列のゥ インドウ W, W…がそれぞれ設定されている。 また、 7行目には 1 5列、 8行目 には 1 1列、 9行目には 1 0列、 1 0行目には 5列のウィンドウ W, W…がそれ ぞれ設定されている。 なお、 図 4 Bには、 ウィンドウの整列が完了する前の参照 画像を示している。
【0 0 3 4】 このように設定された複数のウィンドウについて、 参照画像に対 応付けされたウィンドウの設定手順を、 図 5 A及び図 5 Bを用いて説明する。 図 5 Aに模式的に示すように、 基準画像では、 第 1行から第 3行の 3行と、 A列〜 F列の 6列のウィンドウが設定されたとする。 これに対して、 参照画像では、 図 5 Bに模式的に示すように、 所定の相関関係に基づいて、 基準画面の各ウィンド ゥともつとも相関関係が高い位置を対応するウィンドウとして設定される。 この とき、 基準画像における第 1行ウィンドウ A 1〜F 1に対して、 参照画像におけ るそれぞれの相関関係のもっとも高い領域をウィンドウ A 1〜F 1として設定す る。 同様にして、 基準画像における第 2行、 第 3行ウィンドウ A 2〜F 2、 A 3 〜F 3に対して、 参照画像におけるそれぞれの相関関係のもっとも高い領域をゥ インドウ A 2〜F 2、 A 3〜F 3として設定する。 こうして対応付けがされた図 5 Bにおける参照画像の各行について列の出現順を調べる。
【0 0 3 5】 いま、 基準画像に設定されたウィンドウの並び順と参照画像に出 現したウィンドウの並び順の関係について説明する。 基準画像に設定されたウイ ンドウは、 第 1行〜第 3行とも、 左から順に AB CD EF列が並んで設定されて いる。 これに対して、 参照画像では、 第 1行でウィンドウが左から順に AB CD
EF列の順番で並んで出現している。.次に、 第 2行でウィンドウが左から順に A CBDEFの順番で並んで出現している。 また、 第 3行でウィンドウが左から順 に ABD EC F列の順番に並んで出現している。 ここまでが、 図 3のフローチヤ ートの S 21である。
【0036】 このようにして列の出現の順番を調べたら、 次に、 出現順のつな がり (対応) が正しいウィンドウを正対応ウィンドウとし、 残りを誤対応ウィン ドウとして、 誤対応ウィンドウの数 (総数 =K) を検出する (S 2 2) 。
【0037】 このときの検出状態の正誤判断では、 基準画像におけるウィンド ゥと参照画像におけるウィンドウそれぞれの両側に隣接するウィンドウの種類を 判別し、 両側に隣接するウィンドウがいずれも一致している場合に、 そのウィン ドウは正対応していると判断する。 一方、 両側に隣接するウィンドウのうちの一 方または双方が相違する場合には、 基準画像と参照画像でのウィンドウが誤対応 していると判断する。 ' 【0038】 さらに具体的に説明すると、 基準画像における第 1行のウィンド ゥと参照画像における第 1行のウィンドウでは、 V、ずれも左から順に A B C D Ε
F列に並んでおり、 いずれのウィンドウも正対応していると判断する。 なお、 最 外端のウィンドウ A2は、 片側にしかウィンドウがないので、 この片側にウィン ドゥが一致しているか否かで対応の正誤を判断する。 他の最外端のウィンドウに ついても、 同様にして対応の正誤を判断する。
【0039】 次に、 第 2行では、 AB CD列は両側に隣接するウィンドウの一 方または両方が一致していないので、 誤対応であると判断する。 そして、 EF列 は、 両側に隣接するウィンドウが一致しているので、 正対応であると判断する。 また、 第 3行では、 A列のみが両側に隣接するウィンドウが一致しているので、 正対応であると判断する。 その他の B列〜 F列では、 両側に隣接するウィンドウ の一方または両方が一致していないので誤対応と判断する。
【0 0 4 0】 このような処理にしたがい、 参照画像における各ウィンドウの基 準画像に対する対応の正誤が判断される。 図 4 Bには、 参照画像の各ウィンドウ のうち、 基準画像のウィンドウに正対応しているウィンドウのみを示し、 誤対応 のウィンドウは示していない。
【0 0 4 1】 こうして、 ウィンドウの正対応と誤対応とを判断したら、 誤対応 ウィンドゥの並び順の修正を行う。 この並び順の修正は、 誤対応ウィンドウのう ち、 周囲 (近傍) に正対応のウィンドウの数が多いものから少ないものの順で行 う。 このため、 周囲の正対応ウィンドウ数をカウントするための N nが設定され る (S 2 3 ) 。 いま、 図 5 A及び図 5 Bの場合、 各ウィンドウにおける周囲 (近 傍) のウィンドウの数は 8 (最大) であるので、 N nはまず初期値 8に設定され る。 続いて、 誤対応している全ウィンドウについて、 周囲の正対応ウィンドウの 数をそれぞれ検出する (S 2 4 ) 。 そして、 周囲に N n (ここでは初期値 8 ) 個 の正対応ウィンドウを有する誤対応ウィンドウが存在するか否かを判断する (S 2 5 ) 。
【0 0 4 2】 周囲に 8個の正対応ウィンドウがある 対応ウィンドウが存在す る場合には、 その数を J ( J≤K) とする。 S 2 5が肯定され、 周囲に 8個の正 対応ウィンドウがある誤対応ウィンドウがある場合には、 その J個の誤対応ウイ ンドウについて、 周囲の正対応ウィンドウに基づいて探索範囲を絞って再探索
(再ステレオマッチング) を行い (S 2 6 ) 、 誤対応ウィンドウの並び順の修正 を行う。
【0 0 4 3】 この再探索による並び順の修正が済んだら、 誤対応ウィンドウの 総数 から、 周囲の正対応ウィンドウ数が N n (ここでは初期値 8 ) である誤対 応ウィンドウの総数 Jを減算し (S 2 7 ) 、 新たな Kとする。 そして、 誤対応ゥ インドウの総数 K == 0となったか否かを判断する (S 2 8 ) 。 ステップ S 2 8が 否定され、 誤対応ウィンドウが残っている (K≠ 0) 場合には、 再度ステップ S 2 3からの制御が実行される。 このように、 隣接する正対応ウィンドウ数が多い 方から順に誤対応ウィンドウを修正していくことにより、 誤対応ウィンドウの修 正が容易となる。 このため、 画像処理全体としての演算量を少なくすることがで き、 さらには、 演算時間の短縮を図ることができる。
【0044】 ステップ S 2 9が否定された後、 全ての誤対応ウィンドウについ て、 再度その周囲 (近傍) の正対応しているウィンドウの数を検出し (S 24) 、 その数が Νη (ここでは初期値 8) となる誤対応ウィンドウが存在するか否かを 判断する (S 2 5) 。 ここで、 周囲 (近傍) の正対応しているウィンドウの数が Νη (ここでは初期値 8) となる誤対応ウィンドウが存在する場合には、 上記の 場合と同様に再度ステップ S 26に進むが、 上述した J個の誤対応ウィンドウに ついては再探索が行われているので、 周囲の正対応ウィンドウ数が初期値の 8の ままである誤対応ウィンドウは修正されていることが多く、 最終的にはステップ S 2 6は否定される。 この場合には、 Nnを 1減算し (S 2 9) 、 Nn = 7とす る。 そして、 Nn = 7の条件の下で、 再びステップ S 2 5に戻って、 その後、 周 囲の正対応ウィンドウ数が 7となる誤対応ウィンドウが存在するか否かを判断し (S 26) 、 同様な再検索による修正が行われる (S 2 7) 。
【004 5】 この工程を繰り返すことにより、 参照画像における誤対応ウィン ドウが徐々に減少していく。 参照画像における誤対応ウインドウが減少する工程 について、 図 4 Bに続く参照画像を図 6 A、 図 6 B、 図 7 A、 及び、 図 7 Bに示 す。 図 6A、 図 6 B、 図 7A、 及び、 図 7 Bに示す参照画像では、 図 4 Bに示す 画像から、 図 3に示すフローチヤ一トのステップ S 2 5からステップ S 2 8のェ 程を 1回経るごとに変化する状態を示している。 図 6 Aに示す画像では、 図 4B に対して、 正対応ウィンドウ W, W…の近傍位置に新たに正対応ウィンドウ W, W…が表示されているのがわかる。 また、 図 6 Aに対して、 図 6 Bに示す画像で は、 さらに多くの正対応ウィンドウ W, W…が表示されているのがわかる。 そし て、 図 7 Aに示すように、 ほとんどのウィンドウが正対応ウィンドウ W, W…と して表示され、 最後には、 図 7 Bに示すように、 すべてのウィンドウが正対応ゥ インドウ W, W…として表示され、 誤対応ウィンドウの並び順の修正が完了する。 そして、 対応付けが完了した後に、 図 2のフローチャートのステップ S 7以降の 処理がなされて、 基準画像と参照画像との間のステレオマッチングが完了し、 自 動車の画像 Vを立体物として復元することができる。
【0 0 4 6】 このようにして、 基準画像に対する参照画像の並び順の修正を行 うことにより、 基準画像と参照画像との対応付けが明確となるので、 確実なステ レオマッチングを行うことができ、 対象物を確実に復元することができる。 また、 基準画像におけるウィンドウの並び順に一致させるように、 参照画像におけるゥ ィンドウの並び順を修正するので、 ステレオマッチングおよび対象物の復元を高 い精度で実現することができる。 しかも、 この対応付けを行う際に、 並び順の変 更にあたつて相関関係の大小を参照したり、 ウィンドウのズレ量を判断したりす る必要はないので、 そのためのしきい値を設定する必要がない。 したがって、 演 算処理量を過大にすることがなくなるので、 演算に掛かる時間や負担を軽減する ことができる。
【0 0 4 7】 次に、 一つの誤対応ウィンドウの周囲に正対応ウィンドウが 8個 ある場合の再探索の手順について詳しく説明する。
【0 0 4 8】 図 8は、 本実施形態における誤対応ウィンドウと正対応ウィンド ゥとの関係を示す図である。 図 8に示す状態では、 8個の正対応ウィンドウ L 1 〜L 8がすでに対応付けられている。 ここでは、 これらの正対応ウィンドウ L 1 〜 L 8に基づいて、 誤対応ウインドウ M 1の並び順を修正する。
【0 0 4 9】 いま、 各正対応ウィンドウ L 1〜L 8の中点 (重心) の X座標を それぞれ x l〜x 8とし、 各ウィンドウ M l, L 1〜L 8の X軸方向の幅を X 0、 Y軸方向の幅を y 0とする。 このときの誤対応ウィンドウ M lの再探索する探索 範囲を設定するにあたり、 まず以下の式 (1 ) より平均値 X 9を求める。 この平 均値 x 9は、 正対応ウィンドウ L 1〜L 8の X軸方向に沿つた位置の平均値を求 めたものである。
【0 0 5 0】 9 = [ ( 1 - X 0) + ( x 2 - 0) + x 3 + ( x 4 + x 0) + ( x 5 + x 0 ) + (x 6 + x 0) + x 7 + (x 8 - x 0) ]/8 … (1)
平均値 x 9を求めたら、 下記 (2) 式の範囲に探索範囲 Xを絞って設定する。 Max (x 9 - X 0/2, x 5) < x <Min (x 9 + x 0/2 , 1 ) ··· (2) 【005 1】 このように、 探索範囲 xの X座標を、 x 9— χ θΖ2と x 5のう ちの大きい方の値を超え、 χ 9 + χ θ/2と X 1のうちの小さい方の値未満に設 定している。 ここで、 図 9に示すように、 正対応ウィンドウ L 1〜L 8が離間し ている場合であっても、 少なくとも正対応ウィンドウ L 5、 L 1の間で誤対応ゥ ィンドウの再探索を行うことができるので、 正対応ウィンドウ L 5、 L 1に対し て、 誤対応ウィンドゥの並び順が逆転しない範囲で、 誤対応ウィンドウ M 1に代 わる正対応ウィンドウとして再探索することができる。 こうして設定した探索範 囲 X内を探索して誤対応ウィンドウの位置を修正することにより、 正対応ウィン ドウの位置によらず、 誤対応ウィンドウの位置の修正を行うことができる。 この ため正対応ウィンドウの位置による場合分けを行う必要がなくなるので、 演算処 理を迅速に行うことができる。 また、 誤対応ウィンドウに隣接する正対応ウィン ドウ L 5、 L 1の X軸方向の中点 (重心) 位置 x 5、 X 1を考慮して探索範囲 X を限定している。 このため、 正対応ウィンドウ L 5、 L 1に対する誤対応ウィン ドウ Mlの位置関係を逆転させないようにして、 正対応ウィンドウを設定するこ とができる。
【005 2】 次に、 本発明の第 2の実施形態について説明する。 本実施形態に 係る画像処理装置は、 上記第 1の実施形態における図 1に示したものと同一の画 像処理装置を利用することができる。 本実施形態では、 正対応ウィンドウの位置 から誤対応ウィンドウの再探索位置を絞り込む際、 正対応ウィンドウに重み付け を行う。 重み付けを行う際には、 誤対応ウィンドウの周囲 (近傍) にあり、 誤対 応ウィンドウに対する影響力が大きく、 支配的な位置にある正対応ウィンドウに 大きな重み付けを行う。 逆に、 誤対応ウィンドウから遠い位置にあるなど、 誤対 応ウィンドウに対する影響力が小さい正対応ウィンドウには、 小さな重み付けを 行う。 その態様について、 以下に具体的に説明する。
【0053】 図 10は、 本実施形態における誤対応ウィンドウと正対向ウィン ドウとの関係を示す図である。 図 10に示す状態では、 8個の正対応ウィンドウ P 1〜P 8がすでに対応付けられており、 これらの正対応ウィンドウ P 1〜P 8 に基づいて誤対応ウィンドウ Q 1の並び順を修正する。
【0054】 いま、 各正対応ウィンドウ P 1〜P 8の中点 (重心) の X座標を それぞれ X 1〜χ 8とし、 各ウィンドウ Q 1, P 1〜P 8の X軸方向の幅を X 0、 Y軸方向の幅を y 0とする。 このときの誤対応ウィンドウ Q1の再探索する探索 範囲を設定するにあたり、 (3) 式を用いて重み付けした平均値 X 10を求める。 【0055】 各正対応ウィンドウ P 1〜P 8に設定された重み付けは、 その影 響力によって設定され、 具体的には次のとおりである。 まず、 誤対応ウィンドウ Q 1が設定されるべき位置の四隅に位置するウィンドウは、 誤対応ウィンドウ Q 1に対する影響力が比較的小さいので、 その重み付けを 1W (W) とする。 次に、 誤対応ウィンドウ Q 1が設定されるべき位置の両隣は、 四隅よりも影響力が大き いので、 その重みを 2Wとする。 そして、 誤対応ウィンドウ Q 1が設定されるべ き位置の上下は、 その影響力がもっとも大きいので、 その重みを 3Wとする。 1)、 かる重み付けを考慮した (3) 式を以下に示す。
[0056 ] X 10 = [ ( 1 X 2 - X 0) + ( x 2 - x 0) + ( x 3 X 3) + ( x 4 + x 0 ) + (x 5 X 2 + X 0) + (x 6 + 0) + (x 7 X 3) + ( x 8— χ θ) ]/ (2+ 1 + 3+ 1 + 2+ 1 + 3 + 1) … (3)
こうして、 重み付けした平均値 X 10を求めたら、 下記 (4) 式の範囲に探索 範囲 Xを絞って設定する。 Max ( x 1 0 - x 0 / 2 , x 5 ) < x < Min ( x l O + x O / 2 , 1 ) ( 4 )
【0 0 5 7】 以下、 この探索範囲 x内を探索して誤対応ウィンドウの位置を修 正することにより、 正対応ウィンドウの位置によらず、 誤対応ウィンドウの位置 の修正を行うことができる。
【0 0 5 8】 本実施形態に係る態様では、 上記第 1実施形態で述べた作用効果 のほか、 誤対応ウィンドウを設定する位置に影響力の大きい正対応ウィンドウに 大きな重み付けを行っている。 このため、 誤対応ウィンドウを設定すべき位置に 対して支配的な正対応ウィンドウの影響を大きくすることができ、 誤対応ウィン ドウをさらに容易に適正な位置に修正することができる。
【0 0 5 9】 また、 図 1 0に示すように、 正対応ウィンドウが正方形状に並ん でいる場合のみならず、 種々の並び順の場合でも適宜の重み付けをすることがで きる。 その例を、 図 1 1を参照して説明する。 図 1 1における参照画像では、 正 対応ウィンドウ R 1〜R 1 2が示されているほか、 誤対応ウィンドウ S 1〜S 4 が示されている。 これらのほかに、 第 2行における正対応ウィンドウ R 1 2、 R
7の間に 3つの誤対応ウィンドウの修正位置 (空白部分) が存在する。 これらの 誤対応ウィンドウの修正位置を求める際に、 各正対応ウィンドウ R 1〜R 1 2に 重み付けを行う。 たとえば、 第 2行における左から 2番目に位置する誤対応ウイ ンドウの修正位置では、 正対応ウィンドウ R 6、 R 7の重みを大きく、 この位置 から遠ざかるにしたがって、 その重みを小さくしていき、 もっとも遠い位置の正 対応ウィンドウ R 3、 R 1 1の重みをもっとも小さくする。 このようにして各正 対応ウィンドウの重みを設定することにより、 誤対応ウィンドウを設定する位置 対して支配的な正対応ウィンドウの影響をさらに大きくすることができ、 誤対応 ウィンドウをさらに容易に適正な位置に修正することができる。
【0 0 6 0】 以上、 本発明の好適な実施形態について説明したが、 本発明は上 記各実施形態に限定されるものではない。 たとえば、 上記実施形態においては、 並び順を水平方向に沿って設定しているが、 鉛直方向に沿って、 または斜め方向 に沿って設定することができる。 画像処理装置 1によって生成された画像は、 モ ユタ 4に表示するようにしているが、 モニタ 4に表示することなく、 他の画像処 理の用途に使用することもできる。
産業上の利用可能性
【0 0 6 1】 以上のとおり、 本発明によれば、 基準画像と参照画像におけるス テレオマッチングを容易に行うことができるようにすることにより、 画像処理時 間の短縮を図つた画像処理方法および装置を提供することができる。

Claims

言青求の範囲
クレーム 1 . 基準画像撮影手段で対象物を撮影して基準画像を取得する と共に、 参照画像撮影手段で同一の対象物を撮影して参照画像を取得し、 前記基準画像および前記参照画像に対して、 それぞれ所定の相関関係に基づい て対応付けされた複数のウィンドウを設定し、
前記基準画像に設定した複数のウィンドウの並び順と、 前記参照画像に設定し た複数のウィンドウの並び順との関係に基づいて、 前記基準画像のウィンドウと 前記参照画像のウィンドウとのステレオマツチングを行い、 前記対象物の形状を 復元することを特徴とする画像処理方法。
クレーム 2 . ステレオマッチング時に、 前記基準画像に設定した複数の ウィンドウの並び順と、 前記参照画像に設定した複数のウィンドゥの並び順との 関係に基づいて、 前記基準画像に対する前記参照画像の対応付けの適否を判断す るクレーム 1に記載の画像処理方法。
クレーム 3 . ステレオマッチング時に、 前記参照画像における複数のゥ インドゥの並び順が、 前記基準画像における複数のウィンドウの並び順と一致す るように、 前記参照画像における複数のウィンドウの並び順を修正するクレーム 1に記載の画像処理方法。
クレーム 4 . 前記基準画像のウィンドウの並び順との対応が異なる前記 参照画像上の誤対応ウィンドウと、 前記基準画像のウィンドウの並ぴ順との対応 が正しい前記参照画像上の正対応ウィンドウとについて、 前記誤対応ウィンドウ の並び順を修正するにあたり、
前記誤対応ウィンドウに隣接するウィンドウに占める前記正対応ウィンドウの 割合に基づいて、 前記誤対応ウィンドウの並び順を修正する順序を決定するタレ ーム 3に記載の画像処理方法。
クレーム 5 . 前記誤対応ウィンドウに隣接するウィンドウに占める前記 正対応ウィンドウの割合が大きいほど、 該誤対応ウィンドウの並び順を修正する 順序が早いクレーム 4に記載の画像処理方法。
クレーム 6 . 前記誤対応ウィンドウに隣接するウィンドウに占める前記 正対応ウィンドウの割合が大きいものから小さいものの順に、 該誤対応ウィンド ゥの並び順を修正するクレーム 4に記載の画像処理方法。
クレーム 7 . 前記誤対応ウィンドウに対する前記正対応ウィンドウの位 置に基づいて、 該正対応ウィンドウに重み付けを行い、
重み付けがされた前記正対応ウィンドウに基づいて、 前記誤対応ウィンドウの 並び順を修正するクレーム 4に記載の画像処理方法。
クレーム 8 . 前記基準画像のウインドウの並び順との対応が異なる前記 参照画像上の誤対応ウィンドウと、 前記基準画像のウィンドウの並ぴ順との対応 が正しい前記参照画像上の正対応ウィンドウとについて、 前記誤対応ウィンドウ の並び順を修正するにあたり、
前記誤対応ウィンドウに対する前記正対応ウィンドウの位置に基づいて、 該正 対応ウィンドウに重み付けを行い、 重み付けがされた前記正対応ウィンドウに基 づいて、 前記誤対応ウィンドウの並び順を修正するクレーム 3に記載の画像処理 方法。
クレーム 9 . 基準画像撮影手段および参照画像撮影手段でそれぞれ撮影 された同一対象物の基準画像および参照画像に対して、 それぞれ複数のウィンド ゥを設定するウィンドウ設定手段と、
前記基準画像に設定した複数のウィンドウの並び順と、 前記参照画像に設定し た複数のウィンドウの並び順との関係に基づいて、 前記基準画像に対する前記参 照画像の対応付けを行い、 前記対象物の形状を復元するステレオマツチング手段 とを備えることを特徴とする画像処理装置。
クレーム 10. 前記ステレオマッチング手段が、 前記参照画像における複 数のウィンドウの並び順が、 前記基準画像における複数のウィンドウの並び順と 一致するように、 前記参照画像における複数のウィンドウの並び順を修正するク レーム 9に記載の画像処理装置。
クレーム 11. 前記ステレオマッチング手段は、 前記基準画像のウィンド ゥの並び順との対応が異なる前記参照画像上の誤対応ウィンドウと、 前記基準画 像のウィンドウの並び順との対応が正しい前記参照画像上の正対応ウィンドウに ついて、 前記誤対応ウィンドウの並び順を修正するにあたり、
前記誤対応ウィンドウに隣接するウィンドウに占める前記正対応ウィンドウの 割合に基づいて、 前記誤対応ウィンドウの並び順を修正する順序を決定するクレ ーム 10に記載の画像処理装置。
クレーム 12. 前記ステレオマッチング手段は、 前記誤対応ウィンドウに 隣接するウィンドウに占める前記正対応ウィンドウの割合が大きいほど、 該誤対 応ウィンドウの並び順を修正する順序を早くするクレーム 11 に記載の画像処理 装置。
クレーム 13. 前記ステレオマッチング手段は、 前記誤対応ウィンドウに 隣接するウィンドウに占める前記正対応ウィンドウの割合が大きいものから小さ いものの順に、 該誤対応ウィンドウの並び順を修正するクレーム 11 に記載の画 像処理装置。
クレーム 14. 前記ステレオマッチング手段は、 前記誤対応ウィンドウに 対する前記正対応ウィンドウの位置に基づいて該正対応ウィンドウに重み付けを 行い、 重み付けがされた前記正対応ウィンドウに基づいて前記誤対応ウィンドウ の並び順を修正するクレーム 11に記載の画像処理装置。
クレーム 15. 前記ステレオマッチング手段は、 前記基準画像のウィンド ゥの並び順との対応が異なる前記参照画像上の誤対応ウィンドウと、 前記基準画 像のウィンドゥの並び順との対応が正しい前記参照画像上の正対応ウィンドウと について、 前記誤対応ウィンドウの並び順を修正するにあたり、
前記誤対応ウィンドウに隣接する前記正対応ウィンドウの位置に重み付けを行
V、、 重み付けがされた前記正対応ウィンドウに基づいて、 前記誤対応ウィンドウ の並ぴ順を修正するクレーム 9に記載の画像処理装置 ,
PCT/JP2003/013489 2002-10-22 2003-10-22 画像処理方法および画像処理装置 Ceased WO2004038661A1 (ja)

Priority Applications (2)

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

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2002307318 2002-10-22
JP2002-307318 2002-10-22
JP2002-314858 2002-10-29
JP2002314858 2002-10-29

Publications (1)

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

Family

ID=32179078

Family Applications (1)

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

Country Status (3)

Country Link
JP (1) JP4075892B2 (ja)
AU (1) AU2003275588A1 (ja)
WO (1) WO2004038661A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10078899B2 (en) 2014-11-03 2018-09-18 Hanwha Techwin Co., Ltd. Camera system and image registration method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000259997A (ja) * 1999-03-05 2000-09-22 Nissan Motor Co Ltd 先行車の高さおよび車間距離計測装置
JP2001153633A (ja) * 1999-11-26 2001-06-08 Fujitsu Ltd 立体形状検出方法および装置
JP2001280956A (ja) * 2000-03-30 2001-10-10 Topcon Corp ステレオ画像の測定装置
JP2002267441A (ja) * 2001-03-07 2002-09-18 Fuji Heavy Ind Ltd ステレオマッチング方法および監視装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000259997A (ja) * 1999-03-05 2000-09-22 Nissan Motor Co Ltd 先行車の高さおよび車間距離計測装置
JP2001153633A (ja) * 1999-11-26 2001-06-08 Fujitsu Ltd 立体形状検出方法および装置
JP2001280956A (ja) * 2000-03-30 2001-10-10 Topcon Corp ステレオ画像の測定装置
JP2002267441A (ja) * 2001-03-07 2002-09-18 Fuji Heavy Ind Ltd ステレオマッチング方法および監視装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10078899B2 (en) 2014-11-03 2018-09-18 Hanwha Techwin Co., Ltd. Camera system and image registration method thereof

Also Published As

Publication number Publication date
AU2003275588A1 (en) 2004-05-13
JP4075892B2 (ja) 2008-04-16
JPWO2004038661A1 (ja) 2006-02-23

Similar Documents

Publication Publication Date Title
CN102298778B (zh) 用于估计对象状态的估计系统、估计方法和估计程序
CN105335955B (zh) 对象检测方法和对象检测装置
US7317474B2 (en) Obstacle detection apparatus and method
JP4467838B2 (ja) 画像認識装置および画像認識方法
US20060045311A1 (en) Moving-object height determining apparatus
CN113506342B (zh) 一种基于多相机全景视觉的slam全向回环校正方法
JP2017036970A (ja) 情報処理装置、情報処理方法、プログラム
US11847784B2 (en) Image processing apparatus, head-mounted display, and method for acquiring space information
KR20150014342A (ko) 이벤트 정보를 포함하는 영상을 분석하는 장치 및 방법
WO2004038661A1 (ja) 画像処理方法および画像処理装置
Chawla et al. Error diagnosis of deep monocular depth estimation models
US10054421B2 (en) Apparatus for measuring three-dimensional position of target object
JP7571796B2 (ja) 骨格認識装置、学習方法および学習プログラム
JPH11190611A (ja) 3次元計測方法およびその方法を用いた3次元計測処理装置
WO2022190206A1 (ja) 骨格認識方法、骨格認識プログラムおよび体操採点支援システム
US20240212209A1 (en) Object estimation apparatus and method
EP4637168A1 (en) Camera calibration device and camera calibration method
US20240337747A1 (en) Sensor apparatus with multiple sensors for moving agent
JP4039224B2 (ja) 画像処理方法及び画像処理装置
JP2004070743A (ja) 画像処理装置
JP2001236503A (ja) 対応点探索方法
JP4032917B2 (ja) 画像処理方法および画像処理装置
JPH05231822A (ja) ステレオ画像処理方法
JP2611020B2 (ja) 物体の認識方法
CN121121675A (zh) 一种目标检测方法、装置、电子设备及车辆

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: 2004546446

Country of ref document: JP

122 Ep: pct application non-entry in european phase