JP2009237781A - Image processor for vehicle, vehicle, and image processing program for vehicle - Google Patents

Image processor for vehicle, vehicle, and image processing program for vehicle Download PDF

Info

Publication number
JP2009237781A
JP2009237781A JP2008081332A JP2008081332A JP2009237781A JP 2009237781 A JP2009237781 A JP 2009237781A JP 2008081332 A JP2008081332 A JP 2008081332A JP 2008081332 A JP2008081332 A JP 2008081332A JP 2009237781 A JP2009237781 A JP 2009237781A
Authority
JP
Japan
Prior art keywords
image
vehicle
pixel
kernel
smoothing
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.)
Granted
Application number
JP2008081332A
Other languages
Japanese (ja)
Other versions
JP4876277B2 (en
Inventor
Yosuke Sakamoto
洋介 坂本
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.)
Honda Motor Co Ltd
Original Assignee
Honda Motor Co Ltd
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 Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP2008081332A priority Critical patent/JP4876277B2/en
Priority to CN2009801099079A priority patent/CN101978392B/en
Priority to PCT/JP2009/001294 priority patent/WO2009119070A1/en
Priority to EP09723985A priority patent/EP2256691B1/en
Priority to US12/922,475 priority patent/US8681221B2/en
Publication of JP2009237781A publication Critical patent/JP2009237781A/en
Application granted granted Critical
Publication of JP4876277B2 publication Critical patent/JP4876277B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Traffic Control Systems (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor for a vehicle, the vehicle and an image processing program for a vehicle, which precisely detect a lane mark on a road where the vehicle travels based on an image obtained by processing a surrounding image of the vehicle to reduce an influence of fluctuation in brightness and color on a road face. <P>SOLUTION: This image processor 10 for the vehicle is provided with: a kernel setting means 12 for setting a plurality of kernels for smoothing having a width supposed to be between a width of the lane mark and a width of the road, in the image acquired through an imaging means 2; a smoothing means 13 for smoothing the acquired image by filtering processing using the set kernels for smoothing; a change degree calculation means 14 for calculating a change in a pixel value of each pixel, between the acquired image and a smoothed image; and a pixel value replacement means 15 for converting the pixel value of the pixel having a predetermined value or less of change, in the acquired image, into a predetermined fixed value. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、撮像手段を介して取得した車両の周辺の画像を処理する装置、車両、及びその装置の処理をコンピュータに実行させるためのプログラムに関する。   The present invention relates to an apparatus for processing an image around a vehicle acquired via an imaging unit, a vehicle, and a program for causing a computer to execute processing of the apparatus.

従来、撮像手段により車両の周辺を撮像した画像を処理して、車両が走行する道路上の白線等のレーンマークや、車両の周辺に存在する歩行者や他車両等の対象物を認識する技術が知られている(例えば、特許文献1を参照)。この技術により、レーンマークや対象物の認識結果に応じて、運転者への情報提示や車両の走行制御を行うことが可能となる。   Conventionally, a technique for processing an image obtained by imaging the periphery of a vehicle by an imaging unit and recognizing a lane mark such as a white line on a road on which the vehicle travels and an object such as a pedestrian or another vehicle existing around the vehicle Is known (see, for example, Patent Document 1). This technology makes it possible to present information to the driver and to control the driving of the vehicle according to the recognition result of the lane mark and the object.

特許文献1の車両用環境認識装置では、処理周期毎に、車両に搭載されたカメラにより撮像された車両前方の画像を入力し、該画像内に処理対象のウィンドウを設定し、ウィンドウの下端部分の色を路面領域(道路内の白線以外の領域)に相当する基準色とし、該基準色と色が近似する(色の類似度が所定値より大きい)領域を路面領域として、路面領域と非路面領域(白線や道路外の領域)とを分離する。そして、前記装置は、分離した路面領域の左右の境界から得られた直線を白線のエッジ部分として白線の検出を行う。このとき、ウィンドウは、前回の処理周期で検出された2本の白線の位置、又は道路幅や走行レーン幅等の所定の道路情報に基づいた固定値を用いて、画像内に1つ設定される。
特開平7−200997号公報
In the vehicle environment recognition device of Patent Document 1, an image in front of the vehicle captured by a camera mounted on the vehicle is input for each processing cycle, a window to be processed is set in the image, and the lower end portion of the window Is defined as a reference color corresponding to the road surface area (an area other than the white line in the road), and the reference color is similar to the reference color (the color similarity is greater than a predetermined value). Separate road surface areas (white lines and areas outside the road). The apparatus detects a white line using a straight line obtained from the left and right boundaries of the separated road surface area as an edge portion of the white line. At this time, one window is set in the image using a fixed value based on the position of the two white lines detected in the previous processing cycle or predetermined road information such as the road width and the driving lane width. The
Japanese Patent Laid-Open No. 7-200997

しかしながら、路面上には、例えば、路面の補修跡や局所的な影が存在する場合がある。そして、補修跡は周囲の路面とは局所的に色が相違することが多い。また、局所的な影の部分も、散乱光によってのみ照射され色味が加わって、周囲の路面と色が乖離してしまう。このため、特許文献1の装置では、ウィンドウ内で局所的な補修跡や影に相当する部分が、基準色から乖離して非路面領域として分離されてしまい、その境界に応じて白線を検出するため、誤検出の可能性がある。そして、これは色ではなく輝度についても同様である。   However, on the road surface, for example, there may be a road surface repair mark or a local shadow. In many cases, the repaired trace is locally different in color from the surrounding road surface. In addition, a local shadow portion is also irradiated only by scattered light, and the color is added, so that the color is separated from the surrounding road surface. For this reason, in the apparatus of Patent Document 1, a portion corresponding to a local repair trace or shadow in the window is separated from the reference color and separated as a non-road surface area, and a white line is detected according to the boundary. Therefore, there is a possibility of false detection. This also applies to the luminance, not the color.

また、路面の色は、例えば、経時変化等により路面領域内で分布が生じてしまう場合や、国によっては元々一定に作られず路面領域内で分布を有する場合がある。このため、路面領域内に、周囲と色が相違する広範囲の部分領域があることが想定される。このような部分領域がある場合、特許文献1の装置のように、ウィンドウの下端部分の色を路面の基準色として路面領域と非路面領域とを分離することは難しい。すなわち、路面領域内で色が一定でない場合、基準色及び基準色と色が近似する条件を適切に設定することが難しく、設定が緩いとレーンマークまで路面領域に含まれてしまう一方、設定が厳しいとこの部分領域が非路面領域として分離されてしまう。そして、このように路面領域と非路面領域との境界が誤って得られてしまうと、この誤って得られた境界に応じて白線や先行車両を検出するため、誤検出の可能性がある。そして、これは色ではなく輝度についても同様である。   Further, the color of the road surface may be distributed in the road surface region due to, for example, a change over time, or may be distributed in the road surface region, which is not originally made constant depending on the country. For this reason, it is assumed that there is a wide range of partial areas having different colors from the surroundings in the road surface area. When there is such a partial region, it is difficult to separate the road surface region and the non-road surface region using the color of the lower end portion of the window as the reference color of the road surface as in the device of Patent Document 1. In other words, if the color is not constant within the road surface area, it is difficult to properly set the reference color and the conditions that approximate the reference color to the color, and if the setting is loose, the lane mark is included in the road surface area. If severe, this partial area is separated as a non-road surface area. If the boundary between the road surface area and the non-road surface area is erroneously obtained as described above, a white line or a preceding vehicle is detected according to the erroneously obtained boundary, and there is a possibility of erroneous detection. This also applies to the luminance, not the color.

本発明は、かかる背景に鑑みてなされたものであり、車両の周辺を撮像した画像を、路面上の輝度や色の変動の影響を低減するように処理して、該画像から車両が走行している道路上のレーンマークを精度良く検出可能な車両用画像処理装置、車両、及び車両用画像処理プログラムを提供することを目的とする。   The present invention has been made in view of such a background, and an image obtained by imaging the periphery of a vehicle is processed so as to reduce the influence of variations in luminance and color on the road surface, and the vehicle travels from the image. An object of the present invention is to provide a vehicle image processing apparatus, a vehicle, and a vehicle image processing program capable of accurately detecting a lane mark on a road.

かかる目的を達成するために、本発明の車両用画像処理装置は、車両に搭載された撮像手段を介して取得された画像を処理して、該車両が走行している道路上のレーンマークを検出する車両用画像処理装置において、前記撮像手段を介して取得された画像に対して、所定方向の幅が、レーンマークの画像部分の該所定方向の幅よりも大きい所定範囲内となるカーネルのサイズを設定するカーネル設定手段と、前記取得された画像を、前記カーネル設定手段により設定されたサイズの平滑化用のカーネルを用いたフィルタ処理により平滑化する平滑化手段と、前記平滑化手段により平滑化された後の画像に対する、前記取得された画像の各画素の画素値の変化度合を算出する変化度合算出手段と、前記取得された画像の、前記変化度合が所定値以下となる画素の画素値を、予め定められた一定値に置換する画素値置換手段と、前記画素値置換手段により画素値が置換された後の画像から前記レーンマークを検出するレーンマーク検出手段とを備えたことを特徴とする(第1発明)。   In order to achieve such an object, the vehicle image processing apparatus of the present invention processes an image acquired via an imaging means mounted on a vehicle, and displays a lane mark on a road on which the vehicle is traveling. In the vehicular image processing device to be detected, a kernel whose width in a predetermined direction is within a predetermined range larger than the width in the predetermined direction of the image portion of the lane mark with respect to the image acquired through the imaging unit. Kernel setting means for setting a size, smoothing means for smoothing the acquired image by filter processing using a smoothing kernel of the size set by the kernel setting means, and the smoothing means A degree-of-change calculating means for calculating a degree of change in the pixel value of each pixel of the acquired image with respect to the image after smoothing; and the degree of change of the acquired image is a predetermined value Pixel value replacement means for replacing the pixel value of the lower pixel with a predetermined constant value, and lane mark detection means for detecting the lane mark from the image after the pixel value is replaced by the pixel value replacement means (First invention).

第1発明の車両用画像処理装置によれば、カーネル設定手段によりカーネルのサイズを設定し、平滑化手段により、取得された画像を、この設定されたサイズの平滑化用のカーネルを用いたフィルタ処理により平滑化する。平滑化手段による平滑化では、画像内の各画素について、当該画素を中心画素として平滑化用のカーネルを配置し、平滑化用のカーネルの範囲に含まれる全画素の画素値の平均を、中心画素の画素値とする処理が行われる。これにより、画像内の画素値の変化の幅が狭まって、低コントラストの画像が得られる。   According to the vehicle image processing apparatus of the first aspect of the invention, the kernel size is set by the kernel setting means, and the image obtained by the smoothing means is filtered using the smoothing kernel of the set size. Smooth by processing. In the smoothing by the smoothing means, for each pixel in the image, a smoothing kernel is arranged with the pixel as the central pixel, and the average of the pixel values of all the pixels included in the range of the smoothing kernel is determined as the center. Processing to obtain the pixel value of the pixel is performed. As a result, the range of change in pixel value in the image is narrowed, and a low-contrast image is obtained.

このとき、カーネル設定手段により所定方向の幅がレーンマークの画像部分の該所定方向の幅よりも大きい所定範囲内となるように設定されたサイズのカーネルを用いて道路の画像を平滑化することで、レーンマークや局所的な補修跡や影等の画像部分の画素を中心画素としてカーネルを配置した場合、カーネルの範囲に、周囲の路面の画像部分が多く含まれることとなる。よって、平滑化された後の画像では、路面上の局所的な補修跡や影の画像部分やレーンマークの画像部分を構成する画素の画素値は、周囲の路面の画像部分を構成する画素の画素値と近い画素値となる。また、路面の画像部分については、路面領域内に周囲と画素値が相違する広範囲の部分領域がある場合も含めて、路面の画像部分及び部分領域のサイズは、レーンマークの画像部分に比べて大きいと想定されるため、路面の画像部分及び部分領域の画素を中心画素としてカーネルを配置した場合、カーネルの範囲に路面の画像部分及び部分領域が多く含まれることとなる。よって、路面の画像部分及び部分領域については平滑化の影響が小さく、平滑化された後の画像でも、平滑化される前の画像における画素値が保持される。   At this time, the road image is smoothed by using a kernel having a size set so that the width in the predetermined direction is within a predetermined range larger than the width in the predetermined direction of the image portion of the lane mark by the kernel setting means. Thus, when the kernel is arranged with the pixel of the image portion such as the lane mark, the local repair trace, and the shadow as the central pixel, the image portion of the surrounding road surface is included in the range of the kernel. Therefore, in the image after smoothing, the pixel values of the pixels constituting the image portion of the surrounding road surface are the local repair traces on the road surface, the shadow image portion, and the pixel value constituting the lane mark image portion. The pixel value is close to the pixel value. In addition, for the road surface image portion, the road surface image portion and the size of the partial region are larger than the image portion of the lane mark, including the case where there is a wide range of partial regions that have different pixel values from the surroundings. Since it is assumed to be large, when the kernel is arranged with the pixel of the road surface image portion and the partial region as the central pixel, the image area and partial region of the road surface are included in the kernel range. Therefore, the image portion and the partial area on the road surface are less affected by smoothing, and the pixel value in the image before smoothing is retained even in the smoothed image.

このため、変化度合算出手段により、平滑化手段により平滑化された後の画像に対する、取得された画像の各画素の画素値の変化度合を算出すると、変化度合は、路面の画像部分より画素値が大きいレーンマークの画像部分では正の大きい値となり、路面の画像部分より画素値が小さい局所的な補修跡や影の画像部分では小さい値(負の値も含む)となる。また、路面の画像部分は、周囲と画素値が相違する広範囲の部分領域も含めて、平滑化前後で画素値の変化が小さく、変化度合は小さい値(負の値も含む)となる。そこで、画素値置換手段により、取得された画像の、変化度合が所定値以下となる画素の画素値を、予め定められた一定値に置換する。なお、一定値は、例えば、レーンマークの画像部分の画素値が取り得る値より十分小さい値(例えば0)である。これにより、周囲と画素値が相違する部分領域も含めた路面の画像部分や、局所的な補修跡や影の画像部分の画素の画素値は、一定値に置換され、レーンマークの画像部分の画素の画素値のみがそのまま保持されることとなる。よって、画素値置換手段により画素値が置換された後の画像では、レーンマークの画像部分のみが残るので、レーンマーク検出手段により、この置換された後の画像を用いてレーンマークを検出することで、レーンマークを精度良く検出することが可能となる。   For this reason, when the change degree calculation means calculates the change degree of the pixel value of each pixel of the acquired image with respect to the image smoothed by the smoothing means, the change degree is calculated from the image portion of the road surface. The image portion of the lane mark having a large value becomes a positive large value, and the value is small (including a negative value) in the local repair trace or the shadow image portion having a pixel value smaller than that of the road surface image portion. In addition, the image portion of the road surface has a small change in pixel value before and after smoothing, including a wide range of partial areas where the pixel values are different from the surroundings, and the change degree is a small value (including a negative value). Therefore, the pixel value replacement means replaces the pixel value of a pixel whose degree of change is equal to or less than a predetermined value in the acquired image with a predetermined constant value. The constant value is, for example, a value (for example, 0) that is sufficiently smaller than a value that the pixel value of the image portion of the lane mark can take. As a result, the pixel value of the image of the road surface including the partial region where the pixel value is different from the surroundings, or the pixel value of the local repair trace or shadow image portion is replaced with a constant value, and the image portion of the lane mark image portion is replaced. Only the pixel value of the pixel is held as it is. Therefore, in the image after the pixel value is replaced by the pixel value replacement means, only the image portion of the lane mark remains. Therefore, the lane mark detection means detects the lane mark using the replaced image. Thus, it becomes possible to detect the lane mark with high accuracy.

また、第1発明の車両用画像処理装置において、前記カーネル設定手段は、前記道路の所定領域の前記車両からの距離が遠いほど、前記画像上の該所定領域の画像部分に対して設定される前記カーネルのサイズが小さくなるように、該カーネルのサイズを設定することが好ましい(第2発明)。   In the vehicular image processing apparatus according to the first aspect of the present invention, the kernel setting means sets the image portion of the predetermined area on the image as the distance of the predetermined area of the road from the vehicle increases. It is preferable to set the size of the kernel so that the size of the kernel is reduced (second invention).

第2発明の車両用画像処理装置によれば、実空間における道路の所定領域の車両からの距離が遠いほど、画像上で該所定領域の画像部分のサイズは小さくなる。よって、道路の所定領域の車両からの距離が遠いほど、画像上の該所定領域の画像部分に対して設定されるカーネルのサイズが小さくなるように、該カーネルのサイズを設定することで、画像上の各位置で、レーンマークや局所的な補修跡や影等の画像部分の画素を中心画素としてカーネルを配置した場合、カーネルの範囲に、周囲の路面の画像部分が多く含まれるようにすることができる。   According to the vehicle image processing apparatus of the second aspect of the invention, the larger the distance from the vehicle in the predetermined area of the road in the real space, the smaller the size of the image portion of the predetermined area on the image. Therefore, by setting the kernel size so that the larger the distance from the vehicle in the predetermined area of the road, the smaller the kernel size set for the image portion of the predetermined area on the image, In each of the above positions, if the kernel is placed with the pixel of the image part such as the lane mark, local repair trace, shadow, etc. as the central pixel, make sure that the kernel area contains many image parts of the surrounding road surface be able to.

また、第1又は第2発明の車両用画像処理装置において、前記カーネル設定手段は、前記カーネルの形状を長方形又は台形に設定することが好ましい(第3発明)。   In the vehicular image processing apparatus according to the first or second invention, the kernel setting means preferably sets the shape of the kernel to a rectangle or a trapezoid (third invention).

第3発明の車両用画像処理装置によれば、車両が走行している道路上の白線や黄線等のレーンマークの形状は線状である。よって、平滑化用のカーネルを長方形又は台形に設定することで、レーンマークの画像部分の形状に合致するように平滑化用のカーネルを配置することができる。   According to the image processing apparatus for a vehicle of the third invention, the shape of the lane mark such as a white line or a yellow line on the road on which the vehicle is traveling is linear. Therefore, by setting the smoothing kernel to a rectangle or trapezoid, the smoothing kernel can be arranged so as to match the shape of the image portion of the lane mark.

また、第3発明の車両用画像処理装置において、前記カーネル設定手段は、前記車両の進行方向に対応する画像上の方向に対する、前記カーネルの長辺の中心線の傾きが所定角度となるように、該カーネルの向きを設定することが好ましい(第4発明)。   In the image processing apparatus for a vehicle according to the third aspect of the present invention, the kernel setting means is arranged so that the inclination of the center line of the long side of the kernel with respect to the direction on the image corresponding to the traveling direction of the vehicle becomes a predetermined angle. It is preferable to set the orientation of the kernel (fourth invention).

第4発明の車両用画像処理装置によれば、車両が走行している道路上のレーンマークは、画像上で車両の進行方向に対応する画像上の方向にある消失点に向かうように撮像されると想定される。よって、車両の進行方向に対応する画像上の方向に対する、前記カーネルの長辺の中心線の傾きが所定角度となるように、カーネルの向きを設定することで、レーンマークの画像部分の向きに合致するように平滑化用のカーネルを設定することができる。   According to the vehicle image processing device of the fourth aspect of the invention, the lane mark on the road on which the vehicle is traveling is imaged so as to go to the vanishing point in the direction on the image corresponding to the traveling direction of the vehicle on the image. It is assumed. Therefore, by setting the kernel direction so that the inclination of the center line of the long side of the kernel with respect to the direction on the image corresponding to the traveling direction of the vehicle becomes a predetermined angle, the direction of the image portion of the lane mark is set. A smoothing kernel can be set to match.

また、第1〜第4発明のうちいずれかの車両用画像処理装置において、前記変化度合算出手段は、前記変化度合として、前記取得された画像から前記平滑化された後の画像を減算して得られる各画素の画素値の差、又は該取得された画像を該平滑化された後の画像で除算して得られる各画素の画素値の比を用いることが好ましい(第5発明)。   In the vehicular image processing device according to any one of the first to fourth inventions, the change degree calculating means subtracts the smoothed image from the acquired image as the change degree. It is preferable to use a pixel value difference of each pixel obtained or a ratio of pixel values of each pixel obtained by dividing the acquired image by the smoothed image (fifth invention).

第5発明の車両用画像処理装置によれば、取得された画像から平滑化された後の画像を減算して得られる各画素の画素値の差、又は取得された画像を平滑化された後の画像で除算して得られる各画素の画素値の比は、画素値の変化度合を示す値であるので、これらの差又比を用いて、画素値置換手段により画像の画素値の置換を適切に行うことができる。   According to the vehicle image processing device of the fifth aspect of the present invention, the difference between the pixel values of each pixel obtained by subtracting the smoothed image from the acquired image, or after the acquired image is smoothed The pixel value ratio of each pixel obtained by dividing by the image is a value indicating the degree of change of the pixel value. Therefore, the pixel value replacement means replaces the pixel value of the image using these differences or ratios. Can be done appropriately.

また、第1〜第5発明のうちいずれかの車両用画像処理装置において、前記平滑化手段により平滑化される前記画像は、輝度を画素値とする画像であることが好ましい(第6発明)。   In the vehicular image processing device according to any one of the first to fifth inventions, the image smoothed by the smoothing means is preferably an image having luminance as a pixel value (sixth invention). .

第6発明の車両用画像処理装置によれば、明るい白色や黄色のレーンマークの画像部分と、暗いグレーやブラウンの路面の画像部分と、さらに暗い局所的な補修跡や影の画像部分とでは、輝度が相違すると想定されるので、輝度を画素値とする画像について、局所的な補修跡や影の画像部分は除去され、レーンマークの画像部分はそのまま残るように、画素値を置換することで、この置換された後の画像からレーンマークの画像部分を精度良く検出することができる。   According to the vehicle image processing apparatus of the sixth aspect of the present invention, there are a bright white or yellow lane mark image portion, a dark gray or brown road surface image portion, and a darker local repair trace or shadow image portion. Since the brightness is assumed to be different, the pixel value is replaced so that the local repair trace and the shadow image part are removed and the lane mark image part remains as it is for the image having the brightness as the pixel value. Thus, the image portion of the lane mark can be detected with high accuracy from the image after the replacement.

或いは、第1〜第5発明のうちいずれかの車両用画像処理装置において、前記平滑化手段により平滑化される前記画像は、カラー画像のカラー成分から算出される輝度又は彩度を画素値とする画像であることが好ましい(第7発明)。   Alternatively, in the vehicular image processing device according to any one of the first to fifth inventions, the image smoothed by the smoothing unit has a luminance or saturation calculated from a color component of a color image as a pixel value. It is preferable that the image is (Seventh invention).

第7発明の車両用画像処理装置によれば、明るい白色や黄色のレーンマークの画像部分と、暗いグレーやブラウンの路面の画像部分と、さらに暗い局所的な補修跡や影の画像部分とでは、輝度や彩度が相違することとなるので、輝度又は彩度を画素値とする画像について、局所的な補修跡や影の画像部分は除去され、レーンマークの画像部分はそのまま残るように、画素値を置換することで、この置換された後の画像からレーンマークの画像部分を精度良く検出することができる。   According to the vehicle image processing apparatus of the seventh aspect of the present invention, there are a bright white or yellow lane mark image portion, a dark gray or brown road image portion, and a darker local repair trace or shadow image portion. Since the brightness and saturation will be different, for the image with luminance or saturation as the pixel value, the local repair trace and the shadow image part are removed, and the image part of the lane mark remains as it is. By replacing the pixel value, the image portion of the lane mark can be accurately detected from the replaced image.

また、第1〜第7発明のうちいずれかの車両用画像処理装置において、前記画素値置換手段により置換された後の画像の、画素値が前記一定値でない画素からなる領域を、前記車両が走行している道路上のレーンマークの画像部分として検出するレーンマーク検出手段を備えることが好ましい(第8発明)。   In the vehicular image processing device according to any one of the first to seventh inventions, the vehicle has an area formed by pixels whose pixel values are not the constant value in the image after being replaced by the pixel value replacing means. It is preferable to include lane mark detection means for detecting the image portion of the lane mark on the road that is running (eighth invention).

第8発明の車両用画像処理装置によれば、置換された後の画像では、レーンマーク以外の画像部分の画素値は一定値に置換されているので、レーンマーク検出手段により、この置換された後の画像の、画素値が一定値でない画素からなる領域を、レーンマークの画像部分として検出できる。よって、レーンマーク検出手段により、エッジ抽出処理等をさらに行うことなく、車両が走行している道路上のレーンマークを容易に検出することができる。   According to the vehicle image processing apparatus of the eighth aspect of the invention, since the pixel value of the image portion other than the lane mark is replaced with a constant value in the replaced image, the replacement is performed by the lane mark detection means. A region composed of pixels whose pixel values are not constant in the subsequent image can be detected as the image portion of the lane mark. Therefore, the lane mark detection unit can easily detect the lane mark on the road on which the vehicle is traveling without further performing edge extraction processing or the like.

次に、本発明の車両は、撮像手段を備え、該撮像手段を介して取得された画像を処理して、走行している道路上のレーンマークを検出する機能を有する車両であって、前記撮像手段を介して取得された画像に対して、所定方向の幅が、レーンマークの画像部分の該所定方向の幅よりも大きい所定範囲内となるカーネルのサイズを設定するカーネル設定手段と、前記取得された画像を、前記カーネル設定手段により設定されたサイズの平滑化用のカーネルを用いたフィルタ処理により平滑化する平滑化手段と、前記平滑化手段により平滑化された後の画像に対する、前記取得された画像の各画素の画素値の変化度合を算出する変化度合算出手段と、前記取得された画像の、前記変化度合が所定値以下となる画素の画素値を、予め定められた一定値に置換する画素値置換手段と、前記画素値置換手段により画素値が置換された後の画像から前記レーンマークを検出するレーンマーク検出手段とを備えたことを特徴とする(第9発明)。   Next, a vehicle according to the present invention includes an imaging unit, and has a function of detecting a lane mark on a running road by processing an image acquired via the imaging unit. Kernel setting means for setting a size of a kernel in which a width in a predetermined direction is within a predetermined range larger than a width in the predetermined direction of an image portion of a lane mark with respect to an image acquired via the imaging means; A smoothing unit that smoothes the acquired image by a filtering process using a smoothing kernel of a size set by the kernel setting unit, and an image that has been smoothed by the smoothing unit, A degree-of-change calculating means for calculating a degree of change in the pixel value of each pixel of the acquired image, and a predetermined pixel value of the pixel in which the degree of change of the acquired image is equal to or less than a predetermined value. A pixel value replacing means for replacing the pixel value by the pixel value replacing means is characterized by comprising a lane mark detection means for detecting the lane mark from the image after being replaced (9th invention).

第9発明の車両によれば、第1発明の車両用画像処理装置に関して説明したように、カーネル設定手段により、所定方向の幅がレーンマークの画像部分の該所定方向の幅よりも大きい所定範囲内となるようにカーネルのサイズを設定し、取得された画像を、この設定されたサイズの平滑化用のカーネルを用いたフィルタ処理により平滑化することにより、平滑化される前の画像に対して、平滑化された後の画像では、路面上の局所的な補修跡や影の画像部分や、レーンマークの画像部分の画素値と、その周囲の路面の画像部分の画素値と近い値となる。また、路面の画像部分については、路面の画像部分内の周囲と画素値が相違する広範囲の部分領域も含めて、平滑化された後の画像でも、平滑化される前の画像における画素値が保持される。したがって、画素値置換手段により画素値が置換された後の画像では、周囲と画素値が相違する部分領域も含めた路面の画像部分や、局所的な補修跡や影の画像部分の画素の画素値は、一定値に置換され、レーンマークの画像部分のみが残るので、この置換された後の画像を用いてレーンマークを検出することで、レーンマークを精度良く検出することが可能となる。   According to the vehicle of the ninth aspect, as described with respect to the image processing apparatus for a vehicle of the first aspect, the predetermined range in which the width in the predetermined direction is larger than the width in the predetermined direction of the image portion of the lane mark by the kernel setting means. The size of the kernel is set so as to be within, and the obtained image is smoothed by filtering using the smoothing kernel of the set size, so that the image before smoothing is In the smoothed image, the pixel values of the local repair traces and shadows on the road surface, the pixel values of the lane mark image part, and the pixel values of the image part of the surrounding road surface are Become. In addition, with respect to the image portion of the road surface, the pixel value in the image before smoothing is also included in the image after smoothing, including a wide range of partial areas whose pixel values are different from the surroundings in the image portion of the road surface. Retained. Therefore, in the image after the pixel value has been replaced by the pixel value replacement means, the pixel portion of the pixel of the road surface image portion including the partial region where the pixel value is different from the surroundings, or the local repair trace or shadow image portion pixel Since the value is replaced with a constant value and only the image portion of the lane mark remains, the lane mark can be detected with high accuracy by detecting the lane mark using the image after the replacement.

次に、本発明の車両用画像処理プログラムは、車両に搭載された撮像手段を介して取得された画像を処理して、該車両が走行している道路上のレーンマークを検出する処理をコンピュータに実行させる車両用画像処理プログラムであって、前記撮像手段を介して取得された画像に対して、所定方向の幅が、レーンマークの画像部分の該所定方向の幅よりも大きい所定範囲内となるカーネルのサイズを設定するカーネル設定処理と、前記取得された画像を、前記カーネル設定処理により設定されたサイズの平滑化用のカーネルを用いたフィルタ処理により平滑化する平滑化処理と、前記平滑化処理により平滑化された後の画像に対する、前記取得された画像の各画素の画素値の変化度合を算出する変化度合算出処理と、前記取得された画像の、前記変化度合が所定値以下となる画素の画素値を、予め定められた一定値に置換する画素値置換処理と、前記画素値置換処理により画素値が置換された後の画像から前記レーンマークを検出するレーンマーク検出処理とをコンピュータに実行させる機能を有することを特徴とする(第10発明)。   Next, the image processing program for a vehicle according to the present invention processes the image acquired through the imaging means mounted on the vehicle and detects the lane mark on the road on which the vehicle is traveling. An image processing program for a vehicle to be executed in a predetermined range in which a width in a predetermined direction is larger than a width in the predetermined direction of an image portion of a lane mark with respect to an image acquired via the imaging unit A kernel setting process for setting a size of the kernel, a smoothing process for smoothing the acquired image by a filter process using a smoothing kernel of a size set by the kernel setting process, and the smoothing A change degree calculation process for calculating a change degree of a pixel value of each pixel of the acquired image with respect to the image after being smoothed by the conversion process; and A pixel value replacement process for replacing a pixel value of a pixel whose change degree is a predetermined value or less with a predetermined constant value, and the lane mark from the image after the pixel value is replaced by the pixel value replacement process. It has a function of causing a computer to execute lane mark detection processing to detect (tenth invention).

第10発明の車両用画像処理プログラムによれば、第1発明に関して説明した効果を奏し得る処理をコンピュータに実行させることができる。   According to the vehicle image processing program of the tenth aspect of the invention, it is possible to cause a computer to execute a process that can achieve the effects described in regard to the first aspect of the invention.

本発明の一実施形態を、図1〜図7を参照して説明する。図1を参照して、本発明の実施形態である車両用画像処理装置10は自車両1(本発明の車両)に搭載して使用され、自車両1の前方を撮像するカメラ2により撮像される画像から、自車両1の走行している道路上のレーンマークを検出するものである。なお、カメラ2(本発明の撮像手段)はCCDカメラ等であり、自車両1のフロント部分に取り付けられている。   An embodiment of the present invention will be described with reference to FIGS. Referring to FIG. 1, a vehicle image processing apparatus 10 according to an embodiment of the present invention is used by being mounted on a host vehicle 1 (a vehicle of the present invention), and is captured by a camera 2 that captures the front of the host vehicle 1. The lane mark on the road on which the host vehicle 1 is traveling is detected from the image. The camera 2 (imaging means of the present invention) is a CCD camera or the like, and is attached to the front portion of the host vehicle 1.

また、車両用画像処理装置10により検出されたレーンマークの位置データは、車両1のECU(Electronic Control Unit)20に出力される。ECU20は、レーンマークの位置データに基いて、自車両1が走行している道路の車線を認識し、自車両1が車線から逸脱する可能性を判定する車線逸脱判定処理と、自車両1が車線から逸脱する可能性がある状況となったときに、注意喚起出力(図示しないスピーカからの音声出力等による)を行なう注意喚起出力処理と、自車両1の車線からの逸脱が回避されるように、自車両1のブレーキやステアリングをアシスト駆動する車線逸脱回避制御処理とを実行する。   The position data of the lane mark detected by the vehicle image processing apparatus 10 is output to an ECU (Electronic Control Unit) 20 of the vehicle 1. The ECU 20 recognizes the lane of the road on which the host vehicle 1 is traveling based on the position data of the lane mark, determines the possibility that the host vehicle 1 will depart from the lane, and the host vehicle 1 A warning output process for performing a warning output (by voice output from a speaker (not shown), etc.) and a deviation from the lane of the host vehicle 1 are avoided when there is a possibility of departure from the lane. In addition, a lane departure avoidance control process for assisting driving of the brake and steering of the host vehicle 1 is executed.

次に、図2を参照して、車両用画像処理装置10は、その機能として、画像取得手段11と、カーネル設定手段12と、平滑化手段13と、変化度合算出手段14と、画素値置換手段15と、レーンマーク検出手段16とを備えている。   Next, referring to FIG. 2, the vehicle image processing apparatus 10 functions as an image acquisition unit 11, a kernel setting unit 12, a smoothing unit 13, a change degree calculation unit 14, and a pixel value replacement. Means 15 and lane mark detection means 16 are provided.

画像取得手段11は、カメラ2から出力される画像信号を入力し、入力した画像信号から、画素データにより構成されるカラー画像を取得する。このとき、画素データは、R値、G値、B値からなるカラー成分で構成されている。そして、画像取得手段11は、取得されたカラー画像の画素のカラー成分(R,G,B)から画素の輝度Yを算出し、この輝度Yを画素値とする輝度画像を取得する。これと共に、画像取得手段11は、取得されたカラー画像の画素のカラー成分(R,G,B)から画素の彩度Sを算出し、この彩度Sを画素値とする彩度画像を取得する。   The image acquisition unit 11 receives an image signal output from the camera 2 and acquires a color image composed of pixel data from the input image signal. At this time, the pixel data is composed of color components composed of an R value, a G value, and a B value. Then, the image acquisition unit 11 calculates the luminance Y of the pixel from the color components (R, G, B) of the acquired color image, and acquires a luminance image having the luminance Y as a pixel value. At the same time, the image acquisition unit 11 calculates the saturation S of the pixel from the color components (R, G, B) of the pixel of the acquired color image, and acquires a saturation image using the saturation S as a pixel value. To do.

カーネル設定手段12は、カメラ2を介して取得された画像に対して、所定方向の幅が、レーンマークの画像部分の該所定方向の幅よりも大きい所定範囲内となるカーネルのサイズを設定する。平滑化用のカーネルの設定の詳細については後述する。   The kernel setting unit 12 sets the size of the kernel in which the width in the predetermined direction is within a predetermined range larger than the width in the predetermined direction of the image portion of the lane mark for the image acquired via the camera 2. . Details of the setting of the smoothing kernel will be described later.

平滑化手段13は、カメラ2を介して取得された輝度画像及び彩度画像を、それぞれ、カーネル設定手段12により設定されたサイズの平滑化用のカーネルを用いたフィルタ処理により平滑化する。平滑化手段13による平滑化では、画像内の各画素について、当該画素を中心画素として平滑化用のカーネルを配置し、カーネルの範囲に含まれる全画素の画素値の平均を、中心画素の画素値とする処理が行われる。   The smoothing unit 13 smoothes the luminance image and the saturation image acquired via the camera 2 by filter processing using a smoothing kernel having a size set by the kernel setting unit 12. In the smoothing by the smoothing means 13, for each pixel in the image, a smoothing kernel is arranged with the pixel as the central pixel, and the average of the pixel values of all the pixels included in the range of the kernel is determined as the pixel of the central pixel. Processing to make a value is performed.

変化度合算出手段は14は、輝度画像を用いて、平滑化手段13により平滑化された後の輝度画像に対する、カメラ2を介して取得された輝度画像の各画素の画素値の変化度合を算出する。これと共に、変化度合算出手段は14は、彩度画像を用いて、平滑化手段13により平滑化された後の彩度画像に対する、カメラ2を介して取得された彩度画像の各画素の画素値の変化度合を算出する。具体的には、変化度合算出手段は14は、変化度合として、取得された輝度画像(彩度画像)から平滑化された後の輝度画像(彩度画像)を減算して得られる各画素の画素値の差を用いる。   The degree-of-change calculating means 14 uses the luminance image to calculate the degree of change in the pixel value of each pixel of the luminance image acquired via the camera 2 with respect to the luminance image smoothed by the smoothing means 13. To do. At the same time, the degree-of-change calculating means 14 uses the saturation image, and the pixel of each pixel of the saturation image acquired via the camera 2 with respect to the saturation image smoothed by the smoothing means 13. The degree of change in value is calculated. Specifically, the change degree calculation unit 14 subtracts the smoothed luminance image (saturation image) from the acquired luminance image (saturation image) as the change degree. Use the difference in pixel values.

画素値置換手段15は、カメラ2を介して取得された輝度画像の、変化度合算出手段14により輝度画像を用いて算出された変化度合が所定値以下となる画素の画素値を、予め定められた一定値に置換する。これと共に、画素値置換手段15は、カメラ2を介して取得された彩度画像の、変化度合算出手段14により彩度画像を用いて算出された変化度合が所定値以下となる画素の画素値を、予め定められた一定値(例えば0)に置換する。   The pixel value replacement unit 15 determines in advance a pixel value of a pixel whose change degree calculated using the brightness image by the change degree calculation unit 14 of the brightness image acquired via the camera 2 is equal to or less than a predetermined value. Replace with a constant value. At the same time, the pixel value replacement means 15 is a pixel value of a pixel in which the degree of change calculated using the saturation image by the degree-of-change calculation means 14 of the saturation image acquired via the camera 2 is equal to or less than a predetermined value. Is replaced with a predetermined constant value (for example, 0).

レーンマーク検出手段16は、画素値置換手段15により置換された後の輝度画像及び彩度画像から、自車両1が走行している道路上のレーンマークを検出する。具体的には、レーンマーク検出手段16は、置換された後の輝度画像及び彩度画像の、画素値が一定値でない画素からなる領域を、自車両1が走行している道路上のレーンマークの画像部分として検出する。このとき、レーンマーク検出手段16は、置換された後の輝度画像の、画素値が一定値でない画素で構成される点列データから、ハフ変換等により直線成分をレーンマーク候補として抽出する。これと共に、レーンマーク検出手段16は、置換された後の彩度画像の、画素値が一定値でない画素で構成される点列データから、ハフ変換等により直線成分をレーンマーク候補として抽出する。そして、レーンマーク検出手段16は、これらの抽出されたレーンマーク候補のうちから画像上の位置等に基づいて自車両1が走行している道路の車線を規定するレーンマークを検出する。   The lane mark detection unit 16 detects a lane mark on the road on which the host vehicle 1 is traveling from the luminance image and the saturation image after being replaced by the pixel value replacement unit 15. Specifically, the lane mark detection means 16 is a lane mark on the road on which the vehicle 1 is traveling in an area composed of pixels with non-constant pixel values in the replaced luminance image and saturation image. Is detected as an image portion of. At this time, the lane mark detection means 16 extracts a linear component as a lane mark candidate by Hough transform or the like from the point sequence data composed of pixels whose pixel values are not constant in the luminance image after replacement. At the same time, the lane mark detection unit 16 extracts a linear component as a lane mark candidate by Hough transform or the like from the point sequence data composed of pixels whose pixel values are not constant in the replaced saturation image. The lane mark detection means 16 detects a lane mark that defines the lane of the road on which the host vehicle 1 is traveling based on the position on the image and the like from among the extracted lane mark candidates.

車両用画像処理装置10は、入力アナログ信号をデジタル信号に変換するA/D変換回路と、デジタル化した画像信号を記憶する画像メモリと、画像メモリに記憶されたデータにアクセス(読み出し及び書き込み)するためのインタフェース回路を有して、該画像メモリに記憶された画像に対して各種の演算処理を行うコンピュータ(CPU,メモリ,入出力回路等からなる演算処理回路、或いはこれらの機能を集約したマイクロコンピュータ)等により構成された電子ユニットである。車両用画像処理装置10は、該コンピュータに本発明の車両認識用プログラムを実行させることによって、該コンピュータが、画像取得手段11と、カーネル設定手段12と、平滑化手段13と、変化度合算出手段14と、画素値置換手段15と、レーンマーク検出手段16として機能する。   The vehicle image processing apparatus 10 has an A / D conversion circuit that converts an input analog signal into a digital signal, an image memory that stores a digitized image signal, and accesses (reads and writes) data stored in the image memory. A computer having an interface circuit for performing various kinds of arithmetic processing on an image stored in the image memory (an arithmetic processing circuit comprising a CPU, a memory, an input / output circuit, etc., or a combination of these functions) An electronic unit composed of a microcomputer. The vehicle image processing apparatus 10 causes the computer to execute the vehicle recognition program of the present invention so that the computer acquires the image acquisition means 11, the kernel setting means 12, the smoothing means 13, and the change degree calculation means. 14, pixel value replacement means 15, and lane mark detection means 16.

次に、車両用画像処理装置10の作動(車両用画像処理)を、図3に示したフローチャートに従って説明する。図3に示したフローチャートによる処理は、車両用画像処理装置10の制御周期毎に繰り返し実行される。   Next, the operation (vehicle image processing) of the vehicle image processing apparatus 10 will be described with reference to the flowchart shown in FIG. The process according to the flowchart shown in FIG. 3 is repeatedly executed every control cycle of the vehicle image processing apparatus 10.

図3のSTEP1で、画像取得手段11は、カメラ2を介してカラー画像を取得する。取得されたカラー画像はA/D変換されて画像メモリに格納される。図4に、ある制御周期の時刻においてカメラ2を介して取得されるカラー画像I1を例示する。カラー画像I1は、図4に例示するような、m×n個の画素からなる画像である。カラー画像I1の各画素P1は、カラー成分としてR値,G値,B値を有するものであり、P1(i,j)=(Rij,Gij,Bij)で表される。ただし、i,jは、各画素の座標であり、0≦i<m,0≦j<nとなる整数である。 In STEP 1 of FIG. 3, the image acquisition unit 11 acquires a color image via the camera 2. The acquired color image is A / D converted and stored in the image memory. FIG. 4 illustrates a color image I 1 acquired via the camera 2 at a certain control cycle time. The color image I 1 is an image composed of m × n pixels as illustrated in FIG. Each pixel P 1 of the color image I 1 has an R value, a G value, and a B value as color components, and is represented by P 1 (i, j) = (R ij , G ij , B ij ). . Here, i and j are the coordinates of each pixel, and are integers satisfying 0 ≦ i <m and 0 ≦ j <n.

図4の例では、自車両1が矢印方向に走行しており、自車両1が走行している道路の車線の左側を規定するレーンマークが実線の黄線A1であり、右側を規定するレーンマークが破線の白線A2である場合を示す。このとき、自車両1が走行している道路の車線の路面上には、周囲より暗い線状の補修跡(黒線)B1と、局所的な凹凸や汚れによる黒点群B2がある。また、路面領域内には、周囲と画素値が相違する、広範囲の部分領域C1がある。   In the example of FIG. 4, the host vehicle 1 is traveling in the direction of the arrow, the lane mark that defines the left side of the lane of the road on which the host vehicle 1 is traveling is the solid yellow line A1, and the lane that defines the right side. A case where the mark is a broken white line A2 is shown. At this time, on the road surface of the lane of the road on which the host vehicle 1 is traveling, there is a linear repair mark (black line) B1 darker than the surroundings and a black spot group B2 due to local unevenness and dirt. In the road surface area, there is a wide partial area C1 whose pixel values are different from those of the surrounding area.

次に、STEP2で、画像取得手段11は、STEP1で取得したカラー画像I1の画素のカラー成分(R,G,B)から、輝度を算出して輝度画像I2を取得すると共に、彩度を算出して彩度画像I5を取得する。 Next, in STEP 2, the image acquisition unit 11 calculates the luminance from the color components (R, G, B) of the pixels of the color image I 1 acquired in STEP 1 to acquire the luminance image I 2 , and the saturation. To obtain a saturation image I 5 .

詳細には、画像取得手段11は、カラー画像I1の各画素P1(i,j)のカラー成分(Rij,Gij,Bij)から、Yij=α×Rij+β×Gij+γ×Bijにより輝度Yijを算出する。ただし、α,β,γは、α+β+γ=1となるような所定の係数である。これにより、図5(a)に例示するような、輝度Yijを各画素P2(i,j)のデータとする、m×n個の画素からなる輝度画像I2が取得される。輝度画像I2において、白線A2の画像部分は輝度が大きく、黄線A1の画像部分は白線A2より輝度が小さい。また、路面の画像部分はさらに輝度が小さく平均的な路面の輝度となり、部分領域C1は平均的な路面の輝度より輝度が若干大きい。さらに、補修跡B1,黒点群B2は平均的な路面より輝度が小さい。 Specifically, the image acquisition unit 11 calculates Y ij = α × R ij + β × G ij from the color components (R ij , G ij , B ij ) of each pixel P 1 (i, j) of the color image I 1. The luminance Y ij is calculated from + γ × B ij . However, α, β, and γ are predetermined coefficients such that α + β + γ = 1. Thereby, as illustrated in FIG. 5A, a luminance image I 2 composed of m × n pixels is obtained with the luminance Y ij as data of each pixel P 2 (i, j). In the luminance image I 2, the image portion of the white line A2 has a large brightness, image portion of the yellow line A1 is the luminance is smaller than the white line A2. In addition, the image portion of the road surface has a smaller luminance and an average road surface luminance, and the partial area C1 has a slightly higher luminance than the average road surface luminance. Further, the repair mark B1 and the black spot group B2 have lower luminance than the average road surface.

なお、画像取得手段11は、輝度Yijを、(Rij,Gij,Bij)のうちの最大値MAXij、最小値MINijを用いて、Yij=(MAXij+MINij)/2により算出してもよい。または、画像取得手段11は、輝度YijとしてGij値を用いるものとしてもよい。 The image acquisition means 11 uses the maximum value MAX ij and the minimum value MIN ij of (R ij , G ij , B ij ) as the luminance Y ij , and Y ij = (MAX ij + MIN ij ) / 2. You may calculate by. Alternatively, the image acquisition unit 11 may use a G ij value as the luminance Y ij .

これと共に、画像取得手段11は、カラー画像I1の各画素P1(i,j)のR値,G値,B値(Rij,Gij,Bij)から、Sij=(MAXij−MINij)/MAXijにより彩度Sijを算出する。これにより、図5(d)に例示するような、彩度Sijを各画素P5(i,j)のデータとする、m×n個の画素からなる彩度画像I5が取得される。彩度画像I5において、黄線A1の画像部分は彩度が大きく、白線A2の画像部分は黄線A1より彩度が小さい。また、路面の画像部分はさらに彩度が小さく平均的な路面の彩度となり、部分領域C1は平均的な路面より彩度が若干大きい。さらに、補修跡B1,黒点群B2は平均的な路面より彩度が小さい。 At the same time, the image acquisition means 11 calculates S ij = (MAX ij ) from the R value, G value, and B value (R ij , G ij , B ij ) of each pixel P 1 (i, j) of the color image I 1. to calculate the saturation S ij by -MIN ij) / MAX ij. As a result, as shown in FIG. 5D, a saturation image I 5 composed of m × n pixels is obtained with the saturation S ij as the data of each pixel P 5 (i, j). . In the saturation image I 5 , the image portion of the yellow line A1 has high saturation, and the image portion of the white line A2 has lower saturation than the yellow line A1. Further, the image portion of the road surface is further reduced in saturation and has an average road surface saturation, and the partial region C1 has a slightly higher saturation than the average road surface. Further, the repair mark B1 and the sunspot group B2 are less saturated than the average road surface.

次に、STEP3で、カーネル設定手段12は、STEP2で取得した輝度画像I2と彩度画像I5に対して、複数のサイズの平滑化用のカーネルを設定する。 Next, in STEP 3, the kernel setting unit 12 sets a plurality of sizes of smoothing kernels for the luminance image I 2 and the saturation image I 5 acquired in STEP 2.

ここで、図6を参照して、平滑化用のカーネルの設定について説明する。図6に、輝度画像I2に対して設定された5つの平滑化用のカーネルK1〜K5を例示する。なお、彩度画像I5に対しても、輝度画像I2と同様に平滑化用のカーネルK1〜K5が設定される。平滑化用のカーネルK1〜K5は、それぞれ、輝度画像I2の領域R1〜R5に含まれる画素を中心画素として平滑化する際に用いられる。平滑化用のカーネルK1〜K5の縦方向のサイズY[Pixel]は、いずれも数画素(例えば、1〜3[Pixel])とする。領域R1〜R5は、自車両1から離れるにしたがって、段階的に縦方向の幅を狭くしている。なお、サイズYは、自車両1からの距離が離れるほど小さくなるような値を用いてもよい。また、平滑化用のカーネルK1〜K5の横方向のサイズX[Pixel]は、実空間における所定幅ΔXに該当する値とする。所定幅ΔXとしては、レーンマークの幅と想定される値(例えば、0.1〜0.75[m])より大きい値(例えば、レーンマークの幅の数倍、具体的には0.5〜1[m])が用いられる。なお、所定幅ΔXは、道路の幅と想定される値よりは小さい値とする。平滑化用のカーネルK1〜K5の横方向のサイズXは、例えば、それぞれ10,20,50,100,150[Pixel]となる。サイズXは、図7に示すような自車両1の実空間座標系と画像座標系との関係から設定される。画像座標系は、図7(c)に示すように、左上を原点として座標(x,y)とする。また、1画素の物理的間隔を(δx,δy)とする。 Here, referring to FIG. 6, the setting of the smoothing kernel will be described. FIG. 6 illustrates five smoothing kernels K 1 to K 5 set for the luminance image I 2 . For the saturation image I 5 , smoothing kernels K 1 to K 5 are set similarly to the luminance image I 2 . The smoothing kernels K 1 to K 5 are used when smoothing the pixels included in the regions R 1 to R 5 of the luminance image I 2 as the center pixels, respectively. The vertical size Y f [Pixel] of the smoothing kernels K 1 to K 5 is set to several pixels (for example, 1 to 3 [Pixel]). Regions R 1 to R 5 are gradually narrowed in the vertical direction as they move away from the host vehicle 1. The size Y f may be a value that decreases as the distance from the host vehicle 1 increases. The horizontal size X f [Pixel] of the smoothing kernels K 1 to K 5 is a value corresponding to the predetermined width ΔX in the real space. The predetermined width ΔX is larger than a value assumed to be the width of the lane mark (for example, 0.1 to 0.75 [m]) (for example, several times the width of the lane mark, specifically 0.5 to 1 [m]). Is used. The predetermined width ΔX is a value smaller than a value assumed to be the road width. The horizontal sizes Xf of the smoothing kernels K 1 to K 5 are, for example, 10, 20, 50, 100, and 150 [Pixel], respectively. The size Xf is set from the relationship between the real space coordinate system and the image coordinate system of the host vehicle 1 as shown in FIG. As shown in FIG. 7C, the image coordinate system has coordinates (x, y) with the upper left as the origin. In addition, the physical interval of one pixel is (δx, δy).

このとき、図7(a)に示すように、路面上の対象物の自車両1に対する距離Z、カメラ2の焦点距離f、実空間上でのカメラ2の路面からの高さh、画像上に撮像された対象物の物理的高さYcには、下記式(1)
c=f×h/Z ・・・(1)
の関係がある。また、画像上に撮像された対象物の物理的高さYc、画像座標y、1画素辺りの物理的間隔δyには、下記式(2)
c=y×δy ・・・(2)
の関係がある。
At this time, as shown in FIG. 7A, the distance Z of the object on the road surface to the host vehicle 1, the focal length f of the camera 2, the height h from the road surface of the camera 2 in real space, The physical height Y c of the object imaged in is expressed by the following formula (1)
Y c = f × h / Z (1)
There is a relationship. Further, the physical height Y c , the image coordinate y of the object imaged on the image, and the physical interval δy per pixel are expressed by the following formula (2).
Y c = y × δy (2)
There is a relationship.

また、図7(b)に示すように、路面上の対象物の自車両1に対する距離Z、カメラ2の焦点距離f、実空間上での対象物の幅ΔX、画像上に撮像された対象物の物理的幅Xcには、下記式(3)
c=f×ΔX/Z ・・・(3)
の関係がある。また、画像上に撮像された対象物の物理的幅Xc、画像座標x、1画素あたりの物理的間隔δxには、下記式(4)
c=x×δx ・・・(4)
の関係がある。
Further, as shown in FIG. 7B, the distance Z of the object on the road surface to the own vehicle 1, the focal length f of the camera 2, the width ΔX of the object in real space, and the object imaged on the image The physical width X c of the object is expressed by the following formula (3)
X c = f × ΔX / Z (3)
There is a relationship. Further, the physical width X c of the object imaged on the image, the image coordinate x, and the physical interval δx per pixel are expressed by the following equation (4).
X c = x × δx (4)
There is a relationship.

式(1)〜(4)から、サイズXは、
=(ΔX/h)×y ・・・(5)
となる。実空間上での対象物の幅ΔX、実空間上でのカメラ2の路面からの高さhは固定値なので、画像座標yが小さくなるほどサイズXは小さくなる。さらに、式(1)(2)から、距離Zが大きくなるほど、画像座標yが小さくなるので、サイズXも小さくなる。すなわち、サイズXは、自車両1からの距離が離れるほど小さくなるような値に設定される。
From the formulas (1) to (4), the size Xf is
X f = (ΔX / h) × y (5)
It becomes. Since the width ΔX of the object in the real space and the height h from the road surface of the camera 2 in the real space are fixed values, the size Xf becomes smaller as the image coordinate y becomes smaller. Furthermore, from the formulas (1) and (2), as the distance Z increases, the image coordinate y decreases, so the size Xf also decreases. That is, the size Xf is set to a value that decreases as the distance from the host vehicle 1 increases.

図3に戻り、次に、STEP4で、平滑化手段13は、STEP3で設定した平滑化用のカーネルK1〜K5を用いて輝度画像I2を平滑化する。図5(b)に、平滑化後の輝度画像I3を示す。これにより、輝度画像I2内の画素値の変化の幅が狭くなって、低コントラストの画像が得られる。平滑化後の輝度画像I3では、補修跡B1、黒点群B2の画像部分の画素値が、平均的な路面の輝度に近い画素値となり、周囲の路面の画像部分から判別できなくなっている。また、平滑化後の画像I3では、黄線A1、白線A2の画像部分の画素値も、平均的な路面の輝度に近い画素値となっている。また、路面及び部分領域C1の画像部分については、カーネルのサイズより路面及び部分領域C1の画像部分のサイズが大きいため平滑化の影響が小さく、平滑化後の輝度画像I3で、輝度画像I2の路面及び部分領域C1の画素値が保持される。 Returning to FIG. 3, next, in STEP 4, the smoothing means 13 smoothes the luminance image I 2 using the smoothing kernels K 1 to K 5 set in STEP 3. FIG. 5B shows the luminance image I 3 after smoothing. Thereby, the width of the change in the pixel value in the luminance image I 2 is narrowed, and a low-contrast image is obtained. In the smoothed luminance image I 3 , the pixel values of the image portions of the repair trace B1 and the black spot group B2 become pixel values close to the average road surface luminance, and cannot be discriminated from the image portions of the surrounding road surfaces. In the smoothed image I 3 , the pixel values of the image portions of the yellow line A1 and the white line A2 are also close to the average road surface luminance. Also, the image portion of the road surface and the partial area C1, small influence of larger size for smoothing the image portion of the road surface and the partial area C1 than the size of the kernel, the luminance image I 3 after smoothed luminance image I The pixel values of the road surface 2 and the partial area C1 are retained.

次に、輝度画像2の全画素(i=1〜m,j=1〜n)について、STEP5〜7の処理が実行される。 Next, the processing of STEP 5 to 7 is executed for all the pixels (i = 1 to m, j = 1 to n) of the luminance image 2 .

まず、STEP5で、変化度合算出手段14は、STEP2で取得した輝度画像I2の画素値P2(i,j)から、STEP4の平滑化後の画像I3の画素値P3(i,j)を減算して、画素(i,j)の画素値の変化度合ΔIY(i,j)=P2(i,j)−P3(i,j)を算出する。 First, in STEP5, the change degree calculation means 14, from the pixel values of the luminance image I 2 acquired in STEP2 P 2 (i, j) , the pixel value P 3 of the image I 3 after smoothed STEP4 (i, j ) Is subtracted to calculate the degree of change ΔI Y (i, j) = P 2 (i, j) −P 3 (i, j) of the pixel value of the pixel (i, j).

次に、STEP6で、画素値置換手段15は、画素値の変化度合ΔIY(i,j)が所定値IYth以下であるか否かを判断する。所定値IYthは、レーンマーク(白線)の画像部分の輝度の変化度合が取り得る範囲に応じて定められる値(例えば、0以下の値)である。STEP6の判断結果がYESの場合は、画素(i,j)が、画素値の変化度合ΔIth(i,j)が小さい画像部分、すなわち、輝度が白線A2より小さく平均的な路面の輝度に近い黄線A1の画像部分か、平滑化前後で輝度の変化が小さい路面(部分領域C1も含む)の画像部分か、輝度が路面より小さい補修跡B1、黒点群B2の画像部分であると想定される。よって、STEP7に進み、画素値置換手段15は、輝度画像I2の画素値P2(i,j)を一定値に置換し、STEP5に戻る。STEP6の判断結果がNOの場合は、画素(i,j)が輝度が大きい白線A2の画像部分であると想定される。よって、画素値置換手段15は、画素(i,j)の画素値を置換せずに、そのままSTEP5に戻る。 Next, in STEP 6, the pixel value replacement unit 15 determines whether or not the change degree ΔI Y (i, j) of the pixel value is equal to or less than a predetermined value I Yth . The predetermined value I Yth is a value (for example, a value equal to or less than 0) that is determined according to a range in which the luminance change degree of the image portion of the lane mark (white line) can take. When the determination result in STEP 6 is YES, the pixel (i, j) has an image portion having a small change degree ΔI th (i, j) of the pixel value, that is, the luminance of the road surface is smaller than the white line A2 and average road surface luminance. It is assumed that it is an image part of a near yellow line A1, an image part of a road surface (including the partial area C1) whose luminance changes little before and after smoothing, or an image part of the repair mark B1 and the black spot group B2 whose luminance is smaller than the road surface. Is done. Therefore, proceeding to STEP 7, the pixel value replacing unit 15 replaces the pixel value P 2 (i, j) of the luminance image I 2 with a constant value, and returns to STEP 5. When the determination result in STEP 6 is NO, it is assumed that the pixel (i, j) is an image portion of the white line A2 having high luminance. Therefore, the pixel value replacing unit 15 returns to STEP 5 as it is without replacing the pixel value of the pixel (i, j).

輝度画像I2の全画素についてSTEP5〜7の処理が実行された結果として得られる、置換後の輝度画像I4を図5(c)に示す。図5(c)に示すように、置換後の輝度画像I4では、黄線A1、補修跡B1、黒点群B2、路面(部分領域C1も含む)の画像部分は、一定値に置換され、白線A2の画像部分のみが輝度画像I2の画素値のまま保持される。よって、置換後の画像I4では、白線A2の画像部分のみが残る。 FIG. 5C shows the replaced luminance image I 4 obtained as a result of the processing of STEPs 5 to 7 being executed for all the pixels of the luminance image I 2 . As shown in FIG. 5C, in the luminance image I 4 after replacement, the image portion of the yellow line A1, the repair mark B1, the sunspot group B2, and the road surface (including the partial area C1) is replaced with a constant value. only the image portion of the white line A2 is kept at the pixel values of the luminance image I 2. Therefore, only the image portion of the white line A2 remains in the replaced image I 4 .

次に、STEP8で、平滑化手段13は、STEP3で設定した平滑化用のカーネルK1〜K5を用いて彩度画像I5を平滑化する。図5(e)に、平滑化後の彩度画像I6を示す。これにより、彩度画像I5内の画素値の変化の幅が狭くなって、低コントラストの画像が得られる。平滑化後の彩度画像I6では、補修跡B1、黒点群B2の画像部分の画素値が、平均的な路面の彩度に近い画素値となり、周囲の路面の画像部分から判別できなくなっている。また、平滑化後の画像I6では、黄線A1、白線A2の画像部分の画素値も、平均的な路面の彩度に近い画素値となっている。また、路面及び部分領域C1の画像部分については、カーネルのサイズより路面及び部分領域C1の画像部分のサイズが大きいため平滑化の影響が小さく、平滑化後の彩度画像I6で、彩度画像I5の路面及び部分領域C1の画素値が保持される。 Next, in STEP 8, the smoothing means 13 smoothes the saturation image I 5 using the smoothing kernels K 1 to K 5 set in STEP 3. FIG. 5E shows the saturation image I 6 after smoothing. Thereby, the width of the change in the pixel value in the saturation image I 5 is narrowed, and a low contrast image is obtained. In the saturation image I 6 after smoothing, the pixel values of the image portions of the repair trace B1 and the black spot group B2 become pixel values close to the average saturation of the road surface, and cannot be discriminated from the image portions of the surrounding road surfaces. Yes. In the smoothed image I 6 , the pixel values of the image portions of the yellow line A1 and the white line A2 are also close to the average road surface saturation. Also, the image portion of the road surface and the partial area C1, small influence of larger size for smoothing the image portion of the road surface and the partial area C1 than the size of the kernel, in the saturation image I 6 smooth basket, saturation The pixel values of the road surface and the partial area C1 of the image I 5 are held.

次に、彩度画像I5の全画素(i=1〜m,j=1〜n)について、STEP9〜11の処理が実行される。 Next, the processing of STEPs 9 to 11 is executed for all pixels (i = 1 to m, j = 1 to n) of the saturation image I 5 .

まず、STEP9で、変化度合算出手段14は、STEP2で取得した彩度画像I5の画素値P5(i,j)から、STEP8の平滑化後の彩度画像I6の画素値P6(i,j)を減算して、画素(i,j)の画素値の変化度合ΔIS(i,j)=P5(i,j)−P6(i,j)を算出する。 First, in STEP 9, the change degree calculating means 14 uses the pixel value P 6 (smoothed saturation image I 6 in STEP 8 from the pixel value P 5 (i, j) of the saturation image I 5 acquired in STEP 2. i, j) is subtracted to calculate the degree of change ΔI S (i, j) = P 5 (i, j) −P 6 (i, j) of the pixel value of pixel (i, j).

次に、STEP10で、画素値置換手段15は、画素値の変化度合ΔIS(i,j)が所定値ISth以下であるか否かを判断する。所定値ISthは、レーンマーク(黄線)の画像部分の彩度の変化度合が取り得る範囲に応じて定められる値(例えば、0以下の値)である。STEP10の判断結果がYESの場合は、画素(i,j)が、画素値の変化度合ΔIS(i,j)が小さい画像部分、すなわち、彩度が黄線A1より小さく平均的な路面の彩度に近い白線A2の画像部分か、平滑化前後で彩度の変化が小さい路面(部分領域C1も含む)の画像部分か、彩度が路面より小さい補修跡B1、黒点群B2の画像部分であると想定される。よって、STEP11に進み、画素値置換手段15は、彩度画像I5の画素値P5(i,j)を一定値に置換し、STEP9に戻る。STEP10の判断結果がNOの場合は、画素(i,j)が彩度が大きい黄線A1の画像部分であると想定される。よって、画素値置換手段15は、画素(i,j)の画素値を置換せずに、そのままSTEP9に戻る。 Next, in STEP 10, the pixel value replacement unit 15 determines whether or not the change degree ΔI S (i, j) of the pixel value is equal to or less than a predetermined value I Sth . The predetermined value I Sth is a value (for example, a value equal to or less than 0) determined according to a range in which the degree of change in saturation of the image portion of the lane mark (yellow line) can be taken. When the determination result in STEP 10 is YES, the pixel (i, j) is an image portion where the degree of change ΔI S (i, j) of the pixel value is small, that is, the average road surface is smaller in saturation than the yellow line A1. The image portion of the white line A2 close to saturation, the image portion of the road surface (including the partial region C1) in which the change in saturation is small before and after smoothing, or the image portion of the repair mark B1 and the sunspot group B2 whose saturation is smaller than the road surface It is assumed that Therefore, proceeding to STEP 11, the pixel value replacing unit 15 replaces the pixel value P 5 (i, j) of the saturation image I 5 with a constant value, and returns to STEP 9. When the determination result in STEP 10 is NO, it is assumed that the pixel (i, j) is an image portion of the yellow line A1 with high saturation. Therefore, the pixel value replacing unit 15 returns to STEP 9 without replacing the pixel value of the pixel (i, j).

彩度画像I5の全画素についてSTEP9〜11の処理が実行された結果として得られる、置換後の彩度画像I7を図5(f)に示す。図5(f)に示すように、置換後の彩度画像I7では、白線A2、補修跡B1、黒点群B2、路面(部分領域C1も含む)の画像部分は、一定値に置換され、黄線A1の画像部分のみが彩度画像I5の画素値のまま保持される。よって、置換後の彩度画像I7では、黄線A1の画像部分のみが残る。 FIG. 5F shows a saturation image I 7 after replacement, which is obtained as a result of executing the processing of STEPs 9 to 11 for all the pixels of the saturation image I 5. As shown in FIG. 5 (f), the saturation image I 7 after the replacement, the white line A2, repaired B1, black dots group B2, the image portion of the road surface (partial region C1 included) is replaced by a constant value, only the image portion of the yellow line A1 is kept at the pixel value of the saturation image I 5. Therefore, in the saturation image I 7 after replacement, only the image portion of the yellow line A1 remains.

次に、STEP12に進み、レーンマーク検出手段16は、STEP7で得られた置換後の輝度画像I4と、STEP11で得られた置換後の彩度画像I7から、レーンマークを検出する。置換後の輝度画像I4及び置換後の彩度画像I7では、黄線A1及び白線A2の画像部分のみが残っているので、レーンマーク検出手段16は、エッジ抽出処理等をさらに行うことなく、自車両1が走行している道路上のレーンマークを容易に検出することができる。このとき、置換後の輝度画像I4では、白線A2の画像部分のみが残っているので、レーンマーク検出手段16により、この置換後の輝度画像I4を用いてレーンマークを検出することで、白線A2が精度良く検出される。また、置換後の彩度画像I7では、黄線A1の画像部分のみが残っているので、レーンマーク検出手段16により、この置換後の彩度画像I7を用いてレーンマークを検出することで、黄線A1が精度良く検出される。 Next, proceeding to STEP 12, the lane mark detection means 16 detects a lane mark from the replaced luminance image I 4 obtained at STEP 7 and the replaced saturation image I 7 obtained at STEP 11. In the luminance image I 4 after replacement and the saturation image I 7 after replacement, only the image portions of the yellow line A1 and white line A2 remain, so the lane mark detection means 16 does not further perform edge extraction processing or the like. The lane mark on the road on which the host vehicle 1 is traveling can be easily detected. At this time, since only the image portion of the white line A2 remains in the replaced luminance image I 4 , the lane mark detection unit 16 detects the lane mark using the replaced luminance image I 4 . The white line A2 is detected with high accuracy. Further, the saturation image I 7 after the replacement, so there remains only the image portion of the yellow line A1, the lane mark detecting unit 16, detecting the lane mark by using the saturation image I 7 after the replacement Thus, the yellow line A1 is detected with high accuracy.

以上が、本実施形態の車両用画像処理装置10における車両用画像処理である。本実施形態によれば、自車両1の周辺を撮像した画像を、該画像内での輝度や色の変動の影響を低減するように処理して、該画像から自車両1が走行している道路上のレーンマークA1,A2を精度良く検出することができる。   The above is the vehicle image processing in the vehicle image processing apparatus 10 of the present embodiment. According to the present embodiment, an image obtained by capturing the periphery of the host vehicle 1 is processed so as to reduce the influence of luminance and color variations in the image, and the host vehicle 1 is traveling from the image. Lane marks A1 and A2 on the road can be detected with high accuracy.

なお、本実施形態では、変化度合算出手段14は、変化度合として画素値の差を用いたが、他の実施形態において、変化度合として、取得された画像を平滑化後の画像で除算して得られる各画素の画素値の比を用いるものとしてもよい(ΔIY(i,j)=P2(i,j)/P3(i,j)、ΔIS(i,j)=P5(i,j)/P6(i,j))。この場合、所定値IYth,ISthは、レーンマークの画像部分の画素値の変化度合が取り得る範囲に応じて定められる値(例えば、1以下の値)とする。 In the present embodiment, the degree-of-change calculating unit 14 uses the difference in pixel value as the degree of change. However, in other embodiments, the degree of change is obtained by dividing the acquired image by the smoothed image. The ratio of the pixel values of the obtained pixels may be used (ΔI Y (i, j) = P 2 (i, j) / P 3 (i, j), ΔI S (i, j) = P 5 (I, j) / P 6 (i, j)). In this case, the predetermined values I Yth and I Sth are values (for example, values of 1 or less) that are determined according to a range in which the degree of change in the pixel value of the image portion of the lane mark can be taken.

また、本実施形態において、図8に示すように、平滑化用のカーネルを、自車両1の進行方向に対応する画像上の方向Lに対する、カーネルの長辺の中心線Lの傾きが所定角度(例えば45°)となるように、カーネルの向きを設定するものとしてもよい。 In the present embodiment, as shown in FIG. 8, the smoothing kernel has a predetermined inclination of the center line L of the long side of the kernel with respect to the direction L c on the image corresponding to the traveling direction of the host vehicle 1. The orientation of the kernel may be set so as to be an angle (for example, 45 °).

また、本実施形態では、平滑化用のカーネルの形状を長方形としたが、他の実施形態として、平滑化用のカーネルの形状を台形としてもよい。   In this embodiment, the shape of the smoothing kernel is rectangular. However, as another embodiment, the shape of the smoothing kernel may be trapezoidal.

また、本実施形態では、画像取得手段11は、画素データがR値、G値、B値からなるカラー成分で構成されるカラー画像を取得するものとしたが、他の実施形態として、画素データがCMY出力等からなるカラー成分で構成されるカラー画像を取得するものとしてもよい。   In the present embodiment, the image acquisition unit 11 acquires a color image composed of color components whose pixel data includes R value, G value, and B value. However, as another embodiment, pixel data May acquire a color image composed of color components including CMY outputs.

また、本実施形態では、輝度画像と彩度画像のそれぞれについて平滑化処理・画素値置換処理を行い、その置換後の輝度画像と彩度画像からレーンマークを検出するものとしたが、いずれか一方の画像について平滑化処理・画素値置換処理を行い、その置換後の画像からレーンマークを検出するものとしてもよい。   In this embodiment, smoothing processing and pixel value replacement processing are performed for each of the luminance image and the saturation image, and the lane mark is detected from the luminance image and the saturation image after the replacement. One image may be subjected to smoothing processing and pixel value replacement processing, and lane marks may be detected from the image after the replacement.

また、本実施形態では、カメラ2を介してカラー画像を取得するものとしたが、他の実施形態として、画素データが輝度で構成されるグレースケール画像(輝度画像)を取得するものとしてもよい。この場合、取得された輝度画像について平滑化処理・画素値置換処理を行い、その置換後の画像からレーンマークを検出する。   In this embodiment, a color image is acquired via the camera 2. However, as another embodiment, a grayscale image (luminance image) in which pixel data is composed of luminance may be acquired. . In this case, smoothing processing and pixel value replacement processing are performed on the acquired luminance image, and a lane mark is detected from the image after the replacement.

また、本実施形態では、カメラ2により自車両1の前方を撮像し、車両用画像処理装置10は自車両1の前方の道路の画像からレーンマークを検出するものとしたが、他の実施形態として、カメラにより自車両1の後方を撮像し、車両用画像処理装置10は自車両1の後方の道路の画像からレーンマークを検出するものとしてもよい。   Moreover, in this embodiment, the front of the own vehicle 1 is imaged with the camera 2, and the vehicle image processing apparatus 10 detects the lane mark from the image of the road ahead of the own vehicle 1, but other embodiments. As an example, the rear of the host vehicle 1 may be captured by a camera, and the vehicle image processing apparatus 10 may detect a lane mark from an image of a road behind the host vehicle 1.

本発明の車両用画像処理装置の自車両への搭載態様を示した説明図。Explanatory drawing which showed the mounting aspect to the own vehicle of the image processing apparatus for vehicles of this invention. 本発明の車両用画像処理装置の構成図。The block diagram of the image processing apparatus for vehicles of this invention. 図2に示した車両用画像処理装置による画像処理を示すフローチャート。The flowchart which shows the image process by the image processing apparatus for vehicles shown in FIG. 図3の画像処理の処理画像例。4 is a processing image example of the image processing in FIG. 3. 図3の画像処理の処理画像例。4 is a processing image example of the image processing in FIG. 3. 図3の画像処理における平滑化用のカーネルの設定に関する説明図。FIG. 4 is an explanatory diagram regarding setting of a smoothing kernel in the image processing of FIG. 3. 図6の平滑化用のカーネルのサイズに関する説明図。Explanatory drawing regarding the size of the kernel for smoothing of FIG. 本発明の他の実施形態の車両用画像処理装置における平滑化用のカーネルの設定に関する説明図。Explanatory drawing regarding the setting of the kernel for smoothing in the image processing apparatus for vehicles of other embodiment of this invention.

符号の説明Explanation of symbols

1…車両(自車両)、2…カメラ(撮像手段)、10…車両用画像処理装置、11…画像取得手段、12…カーネル設定手段、13…平滑化手段、14…変化度合算出手段、15…画素値置換手段、16…レーンマーク検出手段。   DESCRIPTION OF SYMBOLS 1 ... Vehicle (own vehicle), 2 ... Camera (imaging means), 10 ... Image processing apparatus for vehicles, 11 ... Image acquisition means, 12 ... Kernel setting means, 13 ... Smoothing means, 14 ... Change degree calculation means, 15 ... pixel value replacement means, 16 ... lane mark detection means.

Claims (10)

車両に搭載された撮像手段を介して取得された画像を処理して、該車両が走行している道路上のレーンマークを検出する車両用画像処理装置において、
前記撮像手段を介して取得された画像に対して、所定方向の幅が、レーンマークの画像部分の該所定方向の幅よりも大きい所定範囲内となるカーネルのサイズを設定するカーネル設定手段と、
前記取得された画像を、前記カーネル設定手段により設定されたサイズの平滑化用のカーネルを用いたフィルタ処理により平滑化する平滑化手段と、
前記平滑化手段により平滑化された後の画像に対する、前記取得された画像の各画素の画素値の変化度合を算出する変化度合算出手段と、
前記取得された画像の、前記変化度合が所定値以下となる画素の画素値を、予め定められた一定値に置換する画素値置換手段と、
前記画素値置換手段により画素値が置換された後の画像から前記レーンマークを検出するレーンマーク検出手段とを備えたことを特徴とする車両用画像処理装置。
In an image processing apparatus for a vehicle that processes an image acquired via an imaging unit mounted on a vehicle and detects a lane mark on a road on which the vehicle is traveling,
Kernel setting means for setting a size of a kernel in which a width in a predetermined direction is within a predetermined range larger than a width in the predetermined direction of an image portion of a lane mark with respect to an image acquired via the imaging means;
Smoothing means for smoothing the acquired image by filter processing using a smoothing kernel of a size set by the kernel setting means;
A degree-of-change calculating means for calculating the degree of change of the pixel value of each pixel of the acquired image with respect to the image smoothed by the smoothing means;
Pixel value replacement means for replacing a pixel value of a pixel in which the degree of change of the acquired image is a predetermined value or less with a predetermined constant value;
A vehicle image processing apparatus comprising: a lane mark detection unit that detects the lane mark from an image after the pixel value is replaced by the pixel value replacement unit.
請求項1記載の車両用画像処理装置において、
前記カーネル設定手段は、前記道路の所定領域の前記車両からの距離が遠いほど、前記画像上の該所定領域の画像部分に対して設定される前記カーネルのサイズが小さくなるように、該カーネルのサイズを設定することを特徴とする車両用画像処理装置。
The vehicle image processing device according to claim 1,
The kernel setting means is configured to reduce the size of the kernel set for the image portion of the predetermined area on the image as the distance of the predetermined area of the road from the vehicle increases. An image processing apparatus for a vehicle characterized by setting a size.
請求項1又は2記載の車両用画像処理装置において、
前記カーネル設定手段は、前記カーネルの形状を長方形又は台形に設定することを特徴とする車両用画像処理装置。
The image processing apparatus for a vehicle according to claim 1 or 2,
The vehicle image processing apparatus, wherein the kernel setting means sets the shape of the kernel to a rectangle or a trapezoid.
請求項3記載の車両用画像処理装置において、
前記カーネル設定手段は、前記車両の進行方向に対応する画像上の方向に対する、前記カーネルの長辺の中心線の傾きが所定角度となるように、該カーネルの向きを設定することを特徴とする車両用画像処理装置。
The vehicle image processing device according to claim 3,
The kernel setting means sets the orientation of the kernel such that the inclination of the center line of the long side of the kernel with respect to the direction on the image corresponding to the traveling direction of the vehicle is a predetermined angle. An image processing apparatus for a vehicle.
請求項1〜4のうちいずれか記載の車両用画像処理装置において、
前記変化度合算出手段は、前記変化度合として、前記取得された画像から前記平滑化された後の画像を減算して得られる各画素の画素値の差、又は該取得された画像を該平滑化された後の画像で除算して得られる各画素の画素値の比を用いることを特徴とする車両用画像処理装置。
In the vehicle image processing device according to any one of claims 1 to 4,
The degree-of-change calculating means, as the degree of change, calculates a difference between pixel values of pixels obtained by subtracting the smoothed image from the acquired image, or smoothes the acquired image. A vehicular image processing apparatus using a ratio of pixel values of pixels obtained by division by an image after being processed.
請求項1〜5のうちいずれか記載の車両用画像処理装置において、
前記平滑化手段により平滑化される前記画像は、輝度を画素値とする画像であることを特徴とする車両用画像処理装置。
In the vehicular image processing device according to any one of claims 1 to 5,
The vehicle image processing apparatus, wherein the image smoothed by the smoothing means is an image having luminance as a pixel value.
請求項1〜5のうちいずれか記載の車両用画像処理装置において、
前記平滑化手段により平滑化される前記画像は、カラー画像のカラー成分から算出される輝度又は彩度を画素値とする画像であることを特徴とする車両用画像処理装置。
In the vehicular image processing device according to any one of claims 1 to 5,
The vehicle image processing apparatus, wherein the image smoothed by the smoothing means is an image having luminance or saturation calculated from a color component of a color image as a pixel value.
請求項1〜7のうちいずれか記載の車両用画像処理装置において、
前記画素値置換手段により置換された後の画像の、画素値が前記一定値でない画素からなる領域を、前記車両が走行している道路上のレーンマークの画像部分として検出するレーンマーク検出手段を備えることを特徴とする車両用画像処理装置。
In the vehicular image processing device according to any one of claims 1 to 7,
Lane mark detection means for detecting, as an image portion of a lane mark on a road on which the vehicle is running, an area composed of pixels whose pixel values are not the constant value of the image after being replaced by the pixel value replacement means. An image processing apparatus for a vehicle, comprising:
撮像手段を備え、該撮像手段を介して取得された画像を処理して、走行している道路上のレーンマークを検出する機能を有する車両であって、
前記撮像手段を介して取得された画像に対して、所定方向の幅が、レーンマークの画像部分の該所定方向の幅よりも大きい所定範囲内となるカーネルのサイズを設定するカーネル設定手段と、
前記取得された画像を、前記カーネル設定手段により設定されたサイズの平滑化用のカーネルを用いたフィルタ処理により平滑化する平滑化手段と、
前記平滑化手段により平滑化された後の画像に対する、前記取得された画像の各画素の画素値の変化度合を算出する変化度合算出手段と、
前記取得された画像の、前記変化度合が所定値以下となる画素の画素値を、予め定められた一定値に置換する画素値置換手段と、
前記画素値置換手段により画素値が置換された後の画像から前記レーンマークを検出するレーンマーク検出手段とを備えたことを特徴とする車両。
A vehicle having an imaging means, having a function of detecting a lane mark on a running road by processing an image acquired through the imaging means;
Kernel setting means for setting a size of a kernel in which a width in a predetermined direction is within a predetermined range larger than a width in the predetermined direction of an image portion of a lane mark with respect to an image acquired via the imaging means;
Smoothing means for smoothing the acquired image by filter processing using a smoothing kernel of a size set by the kernel setting means;
A degree-of-change calculating means for calculating the degree of change of the pixel value of each pixel of the acquired image with respect to the image smoothed by the smoothing means;
Pixel value replacement means for replacing a pixel value of a pixel in which the degree of change of the acquired image is a predetermined value or less with a predetermined constant value;
A vehicle comprising: lane mark detection means for detecting the lane mark from an image after the pixel value is replaced by the pixel value replacement means.
車両に搭載された撮像手段を介して取得された画像を処理して、該車両が走行している道路上のレーンマークを検出する処理をコンピュータに実行させる車両用画像処理プログラムであって、
前記撮像手段を介して取得された画像に対して、所定方向の幅が、レーンマークの画像部分の該所定方向の幅よりも大きい所定範囲内となるカーネルのサイズを設定するカーネル設定処理と、
前記取得された画像を、前記カーネル設定処理により設定されたサイズの平滑化用のカーネルを用いたフィルタ処理により平滑化する平滑化処理と、
前記平滑化処理により平滑化された後の画像に対する、前記取得された画像の各画素の画素値の変化度合を算出する変化度合算出処理と、
前記取得された画像の、前記変化度合が所定値以下となる画素の画素値を、予め定められた一定値に置換する画素値置換処理と、
前記画素値置換処理により画素値が置換された後の画像から前記レーンマークを検出するレーンマーク検出処理とをコンピュータに実行させる機能を有することを特徴とする車両用画像処理用プログラム。
A vehicle image processing program for processing an image acquired via an imaging means mounted on a vehicle and causing a computer to execute a process of detecting a lane mark on a road on which the vehicle is running.
A kernel setting process for setting a size of a kernel in which a width in a predetermined direction is within a predetermined range larger than a width in the predetermined direction of an image portion of a lane mark for an image acquired via the imaging unit;
A smoothing process for smoothing the acquired image by a filter process using a smoothing kernel of a size set by the kernel setting process;
A change degree calculation process for calculating a change degree of a pixel value of each pixel of the acquired image with respect to the image smoothed by the smoothing process;
A pixel value replacement process for replacing a pixel value of a pixel in which the degree of change of the acquired image is a predetermined value or less, with a predetermined constant value;
An image processing program for a vehicle having a function of causing a computer to execute a lane mark detection process for detecting the lane mark from an image after a pixel value is replaced by the pixel value replacement process.
JP2008081332A 2008-03-26 2008-03-26 VEHICLE IMAGE PROCESSING DEVICE, VEHICLE, AND VEHICLE IMAGE PROCESSING PROGRAM Expired - Fee Related JP4876277B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2008081332A JP4876277B2 (en) 2008-03-26 2008-03-26 VEHICLE IMAGE PROCESSING DEVICE, VEHICLE, AND VEHICLE IMAGE PROCESSING PROGRAM
CN2009801099079A CN101978392B (en) 2008-03-26 2009-03-24 Image processing device for vehicle
PCT/JP2009/001294 WO2009119070A1 (en) 2008-03-26 2009-03-24 Image processing device for vehicle and image processing program
EP09723985A EP2256691B1 (en) 2008-03-26 2009-03-24 Image processing device for vehicle and image processing program
US12/922,475 US8681221B2 (en) 2008-03-26 2009-03-24 Vehicular image processing device and vehicular image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008081332A JP4876277B2 (en) 2008-03-26 2008-03-26 VEHICLE IMAGE PROCESSING DEVICE, VEHICLE, AND VEHICLE IMAGE PROCESSING PROGRAM

Publications (2)

Publication Number Publication Date
JP2009237781A true JP2009237781A (en) 2009-10-15
JP4876277B2 JP4876277B2 (en) 2012-02-15

Family

ID=41251669

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008081332A Expired - Fee Related JP4876277B2 (en) 2008-03-26 2008-03-26 VEHICLE IMAGE PROCESSING DEVICE, VEHICLE, AND VEHICLE IMAGE PROCESSING PROGRAM

Country Status (1)

Country Link
JP (1) JP4876277B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012181691A (en) * 2011-03-01 2012-09-20 Yazaki Corp Method for recognizing patten on road surface, and information recording device for vehicle

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000182181A (en) * 1998-12-16 2000-06-30 Koito Ind Ltd Vehicle license plate recognition device
JP2002230530A (en) * 2000-12-27 2002-08-16 Hyundai Motor Co Ltd Method for preventing deviation from traffic lane
JP2003271930A (en) * 2002-03-13 2003-09-26 Denso Corp Lane mark recognizing device
JP2006331193A (en) * 2005-05-27 2006-12-07 Honda Motor Co Ltd Vehicle, image processing system, image processing method, and image processing program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000182181A (en) * 1998-12-16 2000-06-30 Koito Ind Ltd Vehicle license plate recognition device
JP2002230530A (en) * 2000-12-27 2002-08-16 Hyundai Motor Co Ltd Method for preventing deviation from traffic lane
JP2003271930A (en) * 2002-03-13 2003-09-26 Denso Corp Lane mark recognizing device
JP2006331193A (en) * 2005-05-27 2006-12-07 Honda Motor Co Ltd Vehicle, image processing system, image processing method, and image processing program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012181691A (en) * 2011-03-01 2012-09-20 Yazaki Corp Method for recognizing patten on road surface, and information recording device for vehicle

Also Published As

Publication number Publication date
JP4876277B2 (en) 2012-02-15

Similar Documents

Publication Publication Date Title
JP5083658B2 (en) Vehicle lane recognition device, vehicle, and vehicle lane recognition program
Wu et al. Lane-mark extraction for automobiles under complex conditions
US8005266B2 (en) Vehicle surroundings monitoring apparatus
US7957559B2 (en) Apparatus and system for recognizing environment surrounding vehicle
JP4607193B2 (en) Vehicle and lane mark detection device
KR101392850B1 (en) Method and system for lane departure warning based on image recognition
US8050456B2 (en) Vehicle and road sign recognition device
JP5402828B2 (en) Lane boundary detection device, lane boundary detection program
JP5401257B2 (en) Far-infrared pedestrian detection device
WO2010047226A1 (en) Lane line detection device, lane line detection method, and lane line detection program
WO2009119070A1 (en) Image processing device for vehicle and image processing program
WO2011039977A1 (en) Pedestrian-crossing marking detecting method and pedestrian-crossing marking detecting device
JP5166933B2 (en) Vehicle recognition device and vehicle
JP2012252501A (en) Traveling path recognition device and traveling path recognition program
JP2010061375A (en) Apparatus and program for recognizing object
JP2010286995A (en) Image processing system for vehicle
JP4876277B2 (en) VEHICLE IMAGE PROCESSING DEVICE, VEHICLE, AND VEHICLE IMAGE PROCESSING PROGRAM
JP4956841B2 (en) VEHICLE IMAGE PROCESSING DEVICE, VEHICLE, AND VEHICLE IMAGE PROCESSING PROGRAM
WO2018088262A1 (en) Parking frame recognition device
CN112784671A (en) Obstacle detection device and obstacle detection method
WO2018088263A1 (en) Parking frame recognition device
JP6729358B2 (en) Recognition device
JP5023363B2 (en) Vehicle travel support device, vehicle, vehicle travel support program
JP2018005838A (en) Section line recognition apparatus
WO2013161817A1 (en) Travel zone line recognition device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101125

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111101

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111109

R150 Certificate of patent or registration of utility model

Ref document number: 4876277

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141209

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees