Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
UNSTRUCTURED ROAD BOUNDARY DETECTION
Document Type and Number:
WIPO Patent Application WO/2015/024257
Kind Code:
A1
Abstract:
A method for detecting unstructured road boundary is provided. The method may include: obtaining a color image; selecting a candidate road region within the color image according to a road model; identifying a seed pixel from the candidate road region; obtaining a brightness threshold and a color threshold, where the brightness threshold and the color threshold are determined according to brightness distances and color distances from pixels in the candidate road region to the seed pixel; and performing road segmentation by determining whether the pixels in the candidate road region belong to a road region based on the brightness threshold and the color threshold. The amount of computation can be reduced greatly by using the improved unstructured road boundary detection method.

Inventors:
SHAO XISHENG (CN)
Application Number:
PCT/CN2013/082193
Publication Date:
February 26, 2015
Filing Date:
August 23, 2013
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
HARMAN INT IND (US)
SHAO XISHENG (CN)
International Classes:
G06V10/56; G06T7/00
Foreign References:
US20090074250A12009-03-19
Other References:
SOTELO, MIGUEL ANGEL ET AL.: "A color Vision-Based Lane Tracking System for Autonomous Driving on Unmarked Roads.", AUTONOMOUS ROBOTS., vol. 16, no. ISSUE, 31 January 2004 (2004-01-31), pages 95 - 114, XP055286204
YIN, JIAN XIN ET AL.: "Measurement Arithmetic for Unstructured Road Based on Boundary and Region.", COMPUTER ENGINEERING., vol. 34, no. 15, 31 August 2008 (2008-08-31), XP008181285
GUO, CHUN ZHAO ET AL.: "Drivable Road Boundary Detection for Intelligent Vehicles Base on Stereovision with Plane-induced Homography.", ACTA AUTOMATLCA SINICA., vol. 39, no. 4, 30 April 2013 (2013-04-30), XP055286206
See also references of EP 3036714A4
Attorney, Agent or Firm:
UNITALEN ATTORNEYS AT LAW (Scitech PlaceNo.22, Jian Guo Men Wai Ave., Chao Yang District, Beijing 4, CN)
Download PDF:
Claims:
We clai m :

1 . A method for detecting an unstructured road boundary, comprising:

obtaining a color image;

selecting a candidate road region within the color image according to a road model; identifying a seed pixel from the candidate road region;

obtaining a brightness threshold and a color threshold, where the brightness threshold and the color threshold are determined according to brightness distances and color distances from pixels in the candidate road region to the seed pixel; and

performing road segmentation by determining whether the pixels in the candidate road region belong to a road region based on the brightness threshold and the color threshold.

2. The method according to claim 1 , further comprising preprocessing the obtained color image, which comprises:

sampling the color image using a sampling frame which has a predetermined height and a predetermined width;

calculating norms of vectors, which respectively correspond to pixels in the sampling frame, where each of the vectors represents a line pointing from an original point to a point corresponding to a pixel in a color space;

identifying a first predetermined number of vectors by filtering out a first number of vectors having the maximum norms of vectors and a second number of vectors having the minimum norms of vectors;

obtaining a weighted average vector, where a mth component of the weighted average vector is obtained by calculating weighted average of mth components of the first predetermined number of vectors;

calculating norms of differences between the first predetermined number of vectors and the weighted average vector;

identifying, from the first predetermined number of vectors, a second predetermined number of vectors which have the minimum norms of differences with the weighted average vector; and

obtaining median vectors based on the second predetermined number of vectors, to obtain a preprocessed color image, where the candidate road region is selected within the preprocessed color image.

3. The method according to claim 2, where a weight value for a mth component of the first predetermined number of vectors is determined based on a distance between a pixel corresponding to the mth component of the first predetermined number of vectors and the center position of the sampling frame.

4. The method according to claim 1 , wherein a brightness threshold Τχ ιτοιη and a color threshold Tchrom are obtained according to the following equations, respectively:

T chrom = Kd chrom-rms-i

T achrom = Kd int - rms - i where M represents the number of pixels in the candidate road region; jckrom ~l represents a color distance between a pixel j and the seed pixel, djiat ~l represents an absolute value of a brightness distance between a pixel j and the seed pixel; ^chrom -™s represents the root-mean-square value of the color distance between M pixels and the seed pixel, ^™s , represents the root-mean-square value of the brightness distance between M pixels and the seed pixel, and K represents an empirical parameter.

5. The method according to claim 4, where determining whether pixels in a candidate road region belong to a road region comprises: obtaining a spatial distance between a pixel of bright color and the seed pixel;

comparing the spatial distance with the color threshold;

determining whether the pixel of bright color belongs to a road region according to the comparison;

where the spatial distance between the pixel and the seed pixel is calculated according to the following equations: d(i ) = I y + (dc y d7 = |/( - / J

H if < 180°

Θ

360° - |H H , if H, - H , > 180° where d(j,j) represents the spatial distance between a pixel j and the seed pixel i; dc represents a color distance between the pixel j and the seed pixel i in a two-dimensional color plane; d, represents the absolute value of a brightness distance between the pixel j and the seed pixel i; and Θ represents a tone difference of the pixel j and the seed pixel i in the color plane; Η, and Hj represent hue components of the seed pixel i and the pixel j in HSI color space, respectively; S, and Sj represent saturation components of the seed pixel i and the pixel j in HSI color space, respectively; I, and lj represent brightness components of the seed pixel i and the pixel j in HSI color space, respectively.

6. The method according to claim 4, wherein determining whether pixels in a candidate road region belong to a road region comprises:

obtaining a brightness distance between a pixel of dim color and the seed pixel; comparing the brightness distance with the brightness threshold;

determining whether the pixel of dim color belongs to a road region according to the comparison; where the brightness distance between the pixel j of dim color and the seed pixel i is calculated according to equation : d,= 1^ 1 s where l{ and ls represent brightness components of the seed pixel i and the pixel j in HSI color space, respectively.

7. The method according to claim 1 , further comprising determining whether the road model matches an unstructured road which is included in the color image based on a road segmentation result.

8. The method according to claim 7, wherein determining whether the road model matches the unstructured road based on the road segmentation result comprises:

calculating a percentage of the number of pixels in a region according to the road segmentation result coinciding with pixies in a corresponding region in a color image, within the number of all pixels in the corresponding region in the color image; and

if the percentage is greater than a predetermined value, determining that the selected road model matches the unstructured road.

9. A system for detecting an unstructured road boundary, comprising:

a camera for obtaining a color image; and

a processing device configured to:

select a candidate road region within the color image according to a road model ; identify a seed pixel from the candidate road region;

obtain a brightness threshold and a color threshold, where the brightness threshold and the color threshold are determined according to brightness distances and color distances from pixels in the candidate road region to the seed pixel ; and

perform road segmentation by determining whether the pixels in the candidate road region belong to a road region based on the brightness threshold and the color threshold.

10. The system according to claim 9, wherein the processing device is further configured to:

sample the color image using a sampling frame which has a predetermined height and a predetermined width;

calculate norms of vectors, which respectively correspond to pixels in the sampling frame, where each of the vectors represents a line pointing from an original point to a point corresponding to a pixel in a color space;

identify a first predetermined number of vectors by filtering out a first number of vectors having the maximum norms of vectors and a second number of vectors having the minimum norms of vectors;

obtain a weighted average vector, where a mth component of the weighted average vector is obtained by calculating weighted average of mth components of the first predetermined number of vectors;

calculate norms of differences between the first predetermined number of vectors and the weighted average vector;

identify, from the first predetermined number of vectors, a second predetermined number of vectors which have the minimum norms of differences with the weighted average vector; and

obtain median vectors based on the second predetermined number of vectors, to obtain a preprocessed color image, where the candidate road region is selected within the preprocessed color image.

11 . The system according to claim 10, where a weight value for a mth component of the first predetermined number of vectors is determined based on a distance between a pixel corresponding to the mth component of the first predetermined number of vectors and the center position of the sampling frame.

12. The system according to claim 9, wherein the brightness threshold T&chrom and the color threshold Tchrom are obtained according to the following equations, respectively: 1 chrom-rms-i

y ' _ τ ,ι

chrom chrom-rms-i

T achrom = Kd mt-rms-i where M represents the number of pixels in the candidate road region; ^m > represents a color distance between a pixel j and the seed pixel, djiat ~l represents an absolute value of a brightness distance between a pixel j and the seed pixel; ^chrom -™s represents the root-mean-square value of the color distance between M pixels and the seed pixel, ^™s , represents the root-mean-square value of the brightness distance between M pixels and the seed pixel, and K represents an empirical parameter.

13. The system according to claim 12, where for determining whether a pixel j with bright color belongs to a road region, the processing device is further configured to:

obtain a spatial distance between a pixel of bright color and the seed pixel;

compare the spatial distance with the color threshold; and

determine whether the pixel of bright color belongs to a road region according to the comparison;

where a spatial distance between the pixel j and the seed pixel is calculated according to equations: d(i, ) = )2 + )2

where d(j, j) represents the spatial distance between the pixel j and the seed pixel ; dc represents a color distance between the pixel j and the seed pixel in a two-dimensional color plane; di represents the absolute value of a brightness distance between the pixel j and the seed pixel ; and Θ represents a tone difference of the pixel j and the seed pixel in the color plane, H, and Hj represent hue components of the seed pixel i and the pixel j in HSI color space, respectively; S, and Sj represent saturation components of the seed pixel i and the pixel j in HSI color space, respectively; I, and lj represent brightness components of the seed pixel i and the pixel j in HSI color space, respectively.

14. The system according to claim 12, where for determining whether a pixel j with dim color belongs to a road region, the processing device is further configured to:

compare the brightness distance with the brightness threshold; and

determine whether the pixel of dim color belongs to a road region according to the comparison;

where the brightness distance between the pixel j of dim color and the seed pixel i is calculated according to equation : d,= 1^ 1 s where l{ and ls represent brightness components of the seed pixel i and the pixel j in HSI color space, respectively.

15. The system according to claim 9, wherein the processing device is further configured to determine whether the road model matches an unstructured road which is included in the color image based on a road segmentation result.

1 6. The system according to claim 1 5, wherein determining whether the road model matches the unstructured road based on the road segmentation result, the processing device is further configured to:

calculate a percentage of the number of pixels in a region according to the road segmentation result coinciding with pixies in a corresponding region in the color image, within the number of all pixels in the corresponding region in the color image; and if the percentage is greater than a predetermined value, determine that the selected road model matches the unstructured road.

Description:
UNSTRUCTURED ROAD BOUNDARY DETECTION

TECHNICAL FIELD

[0001] The present disclosure generally relates to unstructured road boundary detection.

BACKGROUND

[0002] Road boundary detection plays an important role in the autonomous vehicle technology. Unstructured road lacks clearly defined features in an image, which challenges the conventional edge-based approaches.

SUMMARY

[0003] In one embodiment, a method for detecting unstructured road boundary is provided. The method may include: obtaining a color image; selecting a candidate road region within the color image according to a road model; identifying a seed pixel from the candidate road region; obtaining a brightness threshold and a color threshold, where the brightness threshold and the color threshold are determined according to brightness distances and color distances from pixels in the candidate road region to the seed pixel; and performing road segmentation by determining whether the pixels in the candidate road region belong to a road region based on the brightness threshold and the color threshold.

[0004] In some embodiments, the method may further include preprocessing the obtained color image, which may include:

sampling the color image using a sampling frame which has a predetermined height and a predetermined width; calculating norms of vectors, which respectively correspond to pixels in the sampling frame, where each of the vectors represents a line pointing from an original point to a point corresponding to a pixel in a color space;

identifying a first predetermined number of vectors by filtering out a first number of vectors having the maximum norms of vectors and a second number of vectors having the minimum norms of vectors;

obtaining a weighted average vector, where a m th component of the weighted average vector may be obtained by calculating weighted average of m th components of the first predetermined number of vectors;

calculating norms of differences between the first predetermined number of vectors and the weighted average vector;

identifying, from the first predetermined number of vectors, a second predetermined number of vectors which may have the minimum norms of differences with the weighted average vector; and obtaining median vectors based on the second predetermined number of vectors, to obtain a preprocessed color image, where the candidate road region may be selected within the preprocessed color image.

[0005] In some embodiments, a vector median filtering algorithm may be used to obtain the median vectors based on the second predetermined number of vectors.

[0006] In some embodiments, a weight value for a m th component of the first predetermined number of vectors is determined based on a distance between a pixel corresponding to the m th component of the first predetermined number of vectors and the center position of the sampling frame, and the greater the distance, the higher the weight value.

[0007] In some embodiments, a brightness threshold Τ χ ιτοιη and a color threshold m a Y De obtained according to the following equations, respectively Kd c } irom . rms . \

where M represents the number of pixels in the candidate road region; jchrom ~l represents a color distance between a pixel j and the seed pixel, ^ int ! represents an absolute value of a brightness distance between a pixel j and the seed pixel; ^ chrom -™ s represents the root-mean-square value of the color distance between M pixels and the seed pixel, ^™ s , represents the root-mean-square value of the brightness distance between M pixels and the seed pixel, and K represents an empirical parameter.

[0008] In some embodiments, determining whether pixels in the candidate road region belong to a road region may include:

obtaining a spatial distance between a pixel of bright color and the seed pixel;

comparing the spatial distance with the color threshold; and

determining whether the pixel of bright color belongs to a road region according to the comparison; where the spatial distance between the pixel and the seed pixel is calculated according to the following equations: d(i,y) = VW 2 + k) 2

d, = | ,|

H if < 180°

Θ

360° - |H H , if H, - H , > 180° where d( , j) represents the spatial distance between a pixel j and the seed pixel i ; d c represents a color distance between the pixel j and the seed pixel i in a two-dimensional color plane; d, represents the absolute value of a brightness distance between the pixel j and the seed pixel i ; and Θ represents a tone difference of the pixel j and the seed pixel i in the color plane; H, and Hj represent hue components of the seed pixel i and the pixel j in HSI color space, respectively; S, and Sj represent saturation components of the seed pixel i and the pixel j in HSI color space, respectively; I, and lj represent brightness components of the seed pixel i and the pixel j in HSI color space, respectively.

[0009] In some embodiments, determining whether pixels in the candidate road region belong to a road region may include:

obtaining a brightness distance between a pixel of dim color and the seed pixel ; comparing the brightness distance with the brightness threshold;

determining whether the pixel of dim color belongs to a road region according to the comparison;

where the brightness distance between the pixel j of dim color and the seed pixel i is calculated according to equation : d,= I I. where l { and l s represent brightness components of the seed pixel i and the pixel j in HSI color space, respectively.

[0010] In some embodiments, the method may further include determining whether the road model matches an unstructured road which is included in the color image based on a road segmentation result.

[0011] In some embodiments, determining whether the road model matches the unstructured road based on the road segmentation result may include: calculating a percentage between the number of pixels in a region according to the road segmentation result coinciding with pixies in a corresponding region in a color image, and the number of all pixels in the corresponding region in the color image; and if the percentage is greater than a predetermined value, determining that the selected road model matches the unstructured road. In some embodiments, the coincidence of pixels means that one pixel may have its values of hue, saturation and brightness substantially equal to another pixel.

[0012] In some embodiments, a predetermined value may range from 85% to 90%.

[0013] In one embodiment, a system for detecting an unstructured road boundary is provided. The system may include: a camera; and a processing device configured to: select a candidate road region within a color image captured by the camera according to a road model; identify a seed pixel from the candidate road region; obtain a brightness threshold and a color threshold, where the brightness threshold and the color threshold are determined according to brightness distances and color distances from pixels in the candidate road region to the seed pixel; and perform road segmentation by determining whether the pixels in the candidate road region belong to a road region based on the brightness threshold and the color threshold.

[0014] In some embodiments, the processing device may be further configured to: sample the color image using a sampling frame which has a predetermined height and a predetermined width;

calculate norms of vectors, which respectively correspond to pixels in the sampling frame, where each of the vectors represents a line pointing from an original point to a point corresponding to a pixel in a color space;

identify a first predetermined number of vectors by filtering out a first number of vectors having the maximum norms of vectors and a second number of vectors having the minimum norms of vectors;

obtain a weighted average vector, where a m th component of the weighted average vector may be obtained by calculating weighted average of m th components of the first predetermined number of vectors;

calculate norms of differences between the first predetermined number of vectors and the weighted average vector;

identify, from the first predetermined number of vectors, a second predetermined number of vectors which may have the minimum norms of differences with the weighted average vector; and obtain median vectors based on the second predetermined number of vectors, to obtain a preprocessed color image, where the candidate road region may be selected within the preprocessed color image.

[0015] In some embodiments, a vector median filtering algorithm may be used to obtain the median vectors based on the second predetermined number of vectors.

[0016] In some embodiments, a weight value for a m th component of the first predetermined number of vectors may be determined based on a distance between a pixel corresponding to the m th component of the first predetermined number of vectors and the center position of the sampling frame.

[0017] In one embodiment, a system for detecting an unstructured road boundary is provided. The system may include: means for obtaining a color image; means for selecting a candidate road region within the color image according to a road model; means for identifying a seed pixel from the candidate road region; means for obtaining a brightness threshold and a color threshold, where the brightness threshold and the color threshold are determined according to brightness distances and color distances from pixels in the candidate road region to the seed pixel, respectively; and means for performing road segmentation by determining whether the pixels in the candidate road region belong to a road region based on the brightness threshold and the color threshold.

[0018] In one embodiment, an image processing method is provided. The image processing method may include: sampling the color image using a sampling frame which has a predetermined height and a predetermined width; calculating norms of vectors, which respectively correspond to pixels in the sampling frame, where each of the vectors represents a line pointing from an original point to a point corresponding to a pixel in a color space; identifying a first predetermined number of vectors by filtering out a first number of vectors having the maximum norms of vectors and a second number of vectors having the minimum norms of vectors; obtaining a weighted average vector, where a m th component of the weighted average vector may be obtained by calculating weighted average of m th components of the first predetermined number of vectors; calculating norms of differences between the first predetermined number of vectors and the weighted average vector; identifying, from the first predetermined number of vectors, a second predetermined number of vectors which may have the minimum norms of differences with the weighted average vector; and obtaining median vectors based on the second predetermined number of vectors, to obtain a preprocessed color image, where the candidate road region may be selected within the preprocessed color image.

[0019] In some embodiments, a vector median filtering algorithm may be used to obtain median vectors based on the second predetermined number of vectors.

BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The foregoing and other features of the present disclosure will become more fully apparent from the following description and appended claims, taken in conjunction with the accompanying drawings. Understanding that these drawings depict only several embodiments in accordance with the disclosure and are, therefore, not to be considered limiting of its scope, the disclosure will be described with additional specificity and detail through use of the accompanying drawings.

[0021] FIG. 1 illustrates a schematic flow chart of an unstructured road boundary detection method according to one embodiment;

[0022] FIG. 2 illustrates a schematic flow chart of an image processing method according to one embodiment;

[0023] FIG. 3 schematically illustrates seven road models for road segmentation according to one embodiment; [0024] FIG. 4 schematically illustrates a region of the color image in which region a seed pixel is identified according to one embodiment; and

[0025] FIG. 5 schematically illustrates a distance between two pixels in the HSI color space.

DETAILED DESCRI PTION

[0026] In the following detailed description, reference is made to the accompanying drawings, which form a part hereof. In the drawings, similar symbols typically identify similar components, unless context dictates otherwise. The illustrative embodiments described in the detailed description, drawings, and claims are not meant to be limiting. Other embodiments may be utilized, and other changes may be made, without departing from the spirit or scope of the subject matter presented here. It will be readily understood that the aspects of the present disclosure, as generally described herein, and illustrated in the Figures, can be arranged, substituted, combined, and designed in a wide variety of different configurations, all of which are explicitly contemplated and make part of this disclosure.

[0027] FIG. 1 illustrates a schematic flow chart of an unstructured road boundary detection method S1 0 according to one embodiment.

[0028] Referring to FIG. 1 , in S1 01 , obtaining a color image. In some embodiments, the color image may be captured by a camera mounted on a vehicle.

[0029] In S1 02, preprocessing the color image to suppress noise pixels' effect. Generally, the captured image tends to be affected by noise, such as speckle noise, and/or salt-and-pepper noise, which may adversely influence subsequent image feature identification. Filtering, typically a vector median filtering algorithm, may be used to remove those noise pixels from the color image. In some embodiments, an image processing method S20 may be used to suppress noise pixels' effect, which is illustrated in FIG. 2. [0030] In S201 , obtaining a vector for each pixel in the color image. A vector may correspond to a pixel, where the vector represents a line pointing from an original point to a point corresponding to the pixel in a color space. Generally, the captured color image may be constructed in a red-green-blue (RGB) color space. And, a vector of a corresponding pixel may be obtained in the RGB color space, which may include components representing color information of its corresponding pixel, such as red, green and blue. The original point may have its components all equal to zero.

[0031] In S203, sampling the color image using a sampling frame. In some embodiments, the captured color image may be sampled interlacedly, for example, only even rows and even columns are sampled. A "sampling frame" (also known as a sliding window) may be used to repeatedly apply the image processing method to pixels within the sampling frame as the sampling frame moves. The sampling frame may move across the color image in both vertical and horizontal directions, such as from the top-left corner of the color image to the bottom-right corner of the color image. Such a sampling frame may have a predetermined size (m χ n), for example a size of 3 x 3, 7 χ 7 or 11 x 11 , where m and n may be an odd number greater than 1 . In this embodiment, a set of N vectors may be sampled in the sampling frame.

[0032] A conventional vector median filtering algorithm may be used to preprocess vectors of the color image to suppress noises. However, the conventional vector median filtering algorithm may take a large amount of computation. In some embodiments, an improved image processing method is provided, which may greatly reduce complexity of computations.

[0033] In S205, calculating norms of vectors in the sampling frame.

[0034] In some embodiments, the norm S, of a vector v, may be calculated by equation

(1 ) :

[0035] Si = Equation (1 )

[0036] where represents a j th component of a vector v,, and m represents the number of components.

[0037] In S207, sorting vectors according to the calculated norms of vectors. The sampled vectors may be sorted in an ascending or descending order.

[0038] In S209, selecting a first number of vectors which have their norms distributed in a middle range of the calculated norms.

[0039] As the norm of a vector represents a distance to an original point in the coordination system in an Euclidean space, vectors having their norms distributed in a middle range of the calculated norms represent points in middle positions to the original point in the color space. That is, vectors having too large or too small norms are filtered out, which is reasonable because those are very possibly originated from noise pixels. Specifically, a first number t1 of vectors may be obtained by filtering out a number of vectors having the maximum norms and a number of vectors having the minimum norms, so as to form a new set of t1 vectors.. The value of t1 is important for filtering noise and reducing computation complexity, which may be adjusted according to the characteristics of the noise and computation requirements. For a sampling frame having a size of 3x3, the value of t1 may be set in a range of 5 to 7.

[0040] In S211 , obtaining a weighted average vector for the first number of vectors. In some embodiments, a m th component of the weighted average vector may be obtained by calculating weighted average of m th components of the first number of vectors.

[0041] In some embodiments, a weighted average of a component may be calculated by equation (2):

[0042] η = -^-∑n ; r, ; Equation (2)

[0043] where N w may be given by equation (3) : [0044] N w = ∑w j Equation (3)

[0045] where n represents a weighted average of the i th component, Wj represents a weight value for the j th vector within the t1 set, and r,j represents the i th component of the j th vector. In some embodiments, the value of Wj may be a reciprocal of a distance between a pixel corresponding to the j th vector and the central position of the sampling frame. Generally, the closer to the central position of the sampling frame, the greater the value of Wj. When a sampling frame having a smaller size is selected, the value of Wj may be set to 1 .

[0046] Thereafter, a weighted average vector V w ={η, r 2 , r m } may be obtained, where n, r 2 , and r m represents a weighted average of each component of the vector, which may be calculated according to the equation (2), and m represents the number of components of the weighted average vector.

[0047] In S213, calculating norms of differences between the first number of vectors and the weighted average vector.

[0048] In S215, identifying, from the first number of vectors, a second number of vectors having the minimum norms of differences with the weighted average vector.

[0049] Based on the calculated results in S213, a second number t2 of vectors having the minimum norms of differences with the weighted average vector may be identified from the set of t1 vectors, so as to form a new set of t2 vectors. The value of t2 is also important for filtering noise and reduction of computations complexity. For a sampling frame having a size of 3x3, the value of t2 may be set in a range of 3 to 5. A greater value of t2 may facilitate for suppressing white Gaussian noises, and a smaller value of t2 may facilitate for suppressing impulse noises.

[0050] In S217, obtaining median vectors based on the second number of vectors, to obtain a preprocessed color image.

[0051] In some embodiments, a traditional vector median filtering algorithm may be applied to the set of t2 vectors to obtain a median vector. By using the image processing method described above, the amount of computation can be reduced greatly.

[0052] In S103, converting the preprocessed color image from a RGB color space into a HSI color space.

[0053] HSI color space describes color pixels in terms of hue, saturation and illumination/brightness. Comparing with RGB color space, HSI color space relates more closely to the colors of human perception so that it is more intuitive to process and analyse image. Further, HSI color space is insensitive of light intensity variations, which may improve the data processing speed.

[0054] In some embodiments, the conversion from a RGB color space into a HSI color space may be obtained according to equations (4) to (7):

Equation (4)

Equation (5)

[0057] S = / [min(R,G,fi)] Equation (6)

(R + G + B)

[0058] l = —(R + G + B) Equation (7)

[0059] where θ ' represents an intermediate variable, R, G and B represent respectively brightness values of the three colors of red, green and blue in the RGB color space, and H, S and I represent respectively values of hue, saturation and brightness in the HSI color space.

[0060] In S105, selecting one road model within a plurality of candidate road models;

[0061] In some embodiments, seven candidate road models shown in FIG. 3 may be used for road segmentation. Road model includes most common road shape and may be used to predict next road region or boundary information. In some embodiments, a near regional road straight line model may be used to establish a model-based road boundary detection algorithm. The use of this model is mainly base on : first, the straight line model is simple and owns less computation, which can effectively improve real-time performance of the detection method; second, the road boundary is approximately a straight line limited in near region, and the near region is a decision region of Intelligent Vehicle driving.

[0062] In S106, selecting a candidate road region in the preprocessed color image according to the selected road model's boundary;

[0063] A candidate road region is selected to perform regional growth and segmentation. In some embodiments, the candidate region may have its boundary wider than the left and right road boundaries of the selected road model, respectively.

[0064] In S1 07, identifying a seed pixel from the candidate road region;

[0065] In some embodiments, the seed pixel may be obtained from a bottom and middle region of the preprocessed color image. The seed pixel may be deemed as belonging to a road region, because the bottom and middle region in the color image is generally road region closest to the vehicle in a real environment.

[0066] FIG. 4 schematically illustrates a region of the color image in which region a seed pixel is identified, which is illustrated in a rectangle. Assuming that the color image after being preprocessed has a height equal to 1 , and a width equal to 1 , where the height and width define the image in pixels. In some embodiments, referring to FIG. 4, the rectangle may have 1 /1 5 height and 1 /2 width, where its bottom side is about 1 /30 height from the image bottom, its top side is about 1 /10 height from the image bottom, its left side is about 1 /4 width from the image left side, and its right side is about 3/4 width from the image left side.

[0067] Then, a number N' of pixels in the region may be selected randomly as candidate seed pixels. In some embodiments, the number N' may be an integer from 5 to 10. The seed pixel may be obtained based on the selected candidate seed pixels by the following equations (8)~(12):

[0068] C[ =∑S t - cos(H t ) Equation (8)

[0069] - sin(H t ) Equation (9)

[0070] H = arctan(^) Equation (10)

[0071] Si Equation (11 )

[0072] 1 = -^r∑ t Equation (12)

f=i

[0073] where N' represents the number of candidate seed pixels selected in the bottom region; S,', C,' are intermediate variables, respectively; H t , S t , and l t represent values of hue, saturation and brightness of a pixel t in the number N' pixels, respectively; and, H,, Si and I, represent values of hue, saturation and brightness of a seed pixel i, respectively.

[0074] In S109, calculating a brightness threshold and a color threshold in the candidate road region, the brightness threshold and color threshold are related to mean distances between pixels in the candidate region;

[0075] The mean square distance between pixels in the candidate road region and the seed pixel i may be calculated by the following equations (13) and (14): M

[0076] chrom-rms-i —Yd 2

jchrom-i Equation (13)

M ^

[0077] d. Equation (14)

[0078] where M represents the number of pixels in the candidate road region; d jchrom-i represents a color distance between a pixel j and the seed pixel ί(Η,, S,, I,), ^ int ! represents an absolute value of a brightness distance between the pixel j and the seed pixel i (Hj, S,, I,); represents the root-mean-square value of the color distance between M pixels and the seed pixel, and ^*-™- ; represents the root-mean-square value of the brightness distance between M pixels and the seed pixel.

[0079] Then, the threshold for road segmentation on a certain time point T, for example, T=0, may be obtained by the following equations:

[0080] T chrom (Q) = Kd chrom _ rms _ i Equation (15)

[0081] T achrom (0) = Equation (1 6)

[0082] where K represents an empirical parameter, T achmm (o) represents a brightness threshold, and T chrom (o) represents a color threshold.

[0083] In S111 , performing road regional growth and segmentation to the candidate road region based on the brightness threshold and the color threshold;

[0084] Then, by calculating a distance between a pixel within the candidate road region and the seed pixel i (H,, S,, I,), and comparing with the brightness and color thresholds, the road regional growth may be performed to the candidate road region.

[0085] In HSI color space, the hue of a pixel may be unclear when its brightness is very high or low; further, the hue of a pixel may be unstable when its saturation is very low. Therefore, pixels in the image may be classified into pixels with dim color which may have brightness very high (e.g., I>90) or very low (e.g., I<1 0) or saturation very low (e.g., S<1 0), and pixels with bright color (pixels not included in dim regions). So when performing road regional growth, only brightness may be considered for pixels with dim color, and the three components H, S and I of the HSI color space should be all considered for pixels with bright color. In some embodiments, the dim color pixels' values of saturation S and brightness I may be normalized to [0, 100]. [0086] In some embodiments, for pixels with dim color, if a brightness distance between a pixel j and the seed pixel i is less than a brightness threshold, the pixel j is classified into a road region, which may be expressed as in equation (17):

[0087] /,-/,. <T m Equation (17)

[0088] where T achrom represents a brightness threshold, which may be obtained by the equation (16).

[0089] Referring to FIG. 5, for pixels with bright color, a spatial distance between a pixel j and a seed pixel i may be calculated using the HSI color cylinder according to equations (18) to (21):

[0090] d(i ) = J(d i y+(d c ) Equation (18)

[0091] d, = /,·-/, Equation (19)

[0092] d c = +iS j f -IS.S j cos0 Equation (20)

[0093] Θ Equation (21)

[0094] where d(, j) represents a spatial distance between a pixel j and the seed pixel i; d c represents a color distance between the pixel j and the seed pixel i in a two-dimensional color plane; d represents the absolute value of a brightness distance between the pixel j and the seed pixel i; and Θ represents a tone difference of the pixel j and the seed pixel i in the color plane.

[0095] In some embodiments, if d(i, j) is less than a color threshold T chrom , the pixel j may be classified into the road region, where T chrom may be obtained by the equation (15).

[0096] With respect to pixels with dim color which do not meet equation (17), and pixels with bright color which do not meet the condition that their d(i, j) are greater than or equal to the color threshold, they are not classified into the road region. That is, those pixels are classified into non-road region. By doing this, all pixels in the road candidate region are segmented into road region and non-road region.

[0097] In S113, determining whether the selected road model matches an unstructured road;

[0098] An unstructured road may be captured in the color image. After the road segmentation in S111 , a road segmentation result of the candidate road region is obtained. In some embodiments, to determine whether the selected road model matches the unstructured road, a matching degree of the selected road model with the unstructured road in the image may be calculated.

[0099] In some embodiments, a percentage of the number of pixels in a region according to the road segmentation result coinciding with pixies in corresponding region in the color image, within the number of all pixels in the corresponding region in the color image may be calculated. In some embodiments, the coincidence of pixels means that one pixel may have its values of hue, saturation and brightness substantially equal to another pixel. If the percentage is greater than a predetermined value, the selected road model is determined to match the actual unstructured road. In some embodiments, the predetermined value may be in a range from 85% to 90%.

[0100] If the road model does not match the unstructured road, the method goes to S105, a next road model within the seven road models is then tested, till a road model matching the unstructured road is determined.

[0101] In S115, estimating the unstructured road's boundary using a Kalman filter.

[0102] Based on the road segmentation, a boundary of the unstructured road may be obtained for the first time. Then a Kalman filter may be used to estimate the boundary of the unstructured road and its center line of the boundary in following color images, by tracking the previous calculation results. Assuming that there are N k p\xe\s^ Xk ' j ' yk j ^ 1 l ' 2 '--- N k) on boundaries of the road segmentation result at a time point k, the estimating equation of the Kalman filter may include:

[0103] update and forecast:

[0104] z k = H k x k ^ = H ^ Equation (22)

[0105] update state error covariance:

P k =[l-K k H k ]P k ^

[0106] Equation (23)

[0107] update state estimation:

X k = X k,k-i + K k[ Z k - H k X k,k-i

[0108] =X k _ 1 + K k [Z k -Z k ] Equation (24)

= X k -x + Pk- 1 H k T [H k P k _ 1 H k T r 1 [Z k -Z k ]

[0109] where Z,

[0110] where Xk-i represents a state estimation of the detection algorithm in the previous loop, and Pk-i represents a state error covariance of the detection algorithm in the previous loop. The state estimation of this disclosure means left and/or right boundary of the unstructured road. Specifically, with the knowledge of the left and/or right boundaries of the road segmentation result of the previous loop, and knowledge of the values of pixels on the boundaries currently, an estimation of left and/or right boundaries of the current loop can be obtained.

[0111] In some embodiments, after an estimated boundary of the unstructured road in a first color image is obtained, a percentage of the number of pixels in a region according to the estimation coinciding with pixies in a corresponding region in the color image, within the number of all pixels in the corresponding region in the color image may be calculated. If the percentage is greater than a predetermined value, e.g., 85%, the method goes to S11 5 to estimate the unstructured road's boundary in a second color image following the first image. That is, the road model which is determined previously still matches the actual unstructured road. Otherwise, the method goes to select a new road model matching the unstructured road.

[0112] It should be noted that the seed pixel required for regional growth should be updated in real-time, in order to reflect changes in road appearance and brightness. The updated seed pixel may still be calculated based on a plurality of candidate seed pixels which are selected randomly from a bottom region of a color image.

[0113] Further, as the seed pixel needs to be updated in time, the brightness threshold T achrom ancl tne color threshold T chrom are also needs to be updated to perform regional growth, which may be expressed as T chrom (i) and T^ hrom {t).

[0114] Assuming that, after a road segmentation at a first time point (t), there are a number N p of vectors within a road region which is defined according to the previous road segmentation result of the first time point. So, a brightness threshold and a color threshold of a first time point (t+1 ), expressed as T chrom (t + l) and T^^t + l), may be obtained by the following equations:

[0Π5] „„ Equation (25)

[0116] = Equation (26)

[0117] T chrom (t + l) = Kd chrom _ rms _ i Equation (27)

[0118] T achrom (t + l) = Kd jmt _ l Equation (28)

[0119] where d j ' chrom _,. represents a color distance between a pixel j and a seed pixel which may have its component values differed from that obtained at the first time point, and J . int _ ; represents an absolute value of a brightness distance between the pixel j and the seed pixel; d ' c ¾ ro »™-; represents the root-mean-square value of the color distance between N p pixels and the seed pixel, and d mt-™*-; represents the root-mean-square value of the brightness distance between N p pixels and the seed pixel; where the pixel j belongs to the number Np of vectors.

[0120] In one embodiment, a system for detecting an unstructured road boundary is provided. The system may be mounted on a vehicle. In some embodiments, the system may include: a camera for obtaining a color image; a storing device for storing a plurality of candidate road models; and a processing device configured to select in the storing device a road model for an unstructured road; identify a seed pixel from the candidate road region; obtain a brightness threshold and a color threshold, where the brightness threshold and the color threshold are determined according to brightness distances and color distances from pixels in a candidate road region to the seed pixel; perform road segmentation by determining whether the pixels in the candidate road region belong to a road region based on the brightness threshold and the color threshold; determine whether the road model matches the unstructured road based on the road segmentation result; and estimate the unstructured road's boundary if the road model matches the unstructured road.

[0121] In some embodiments, based on candidate road models stored in the storing device, the processing device may be configured to perform S101 to S115 and S201 to S217, to detect a road boundary of a color image captured by the camera.

[0122] The above embodiments provide a real-time and effective unstructured road boundary detection method based on the HSI color space. Further, by using an improved vector median filtering method, the amount of computation can be reduced greatly.

[0123] There is little distinction left between hardware and software implementations of aspects of systems; the use of hardware or software is generally a design choice representing cost vs. efficiency tradeoffs. For example, if an implementer determines that speed and accuracy are paramount, the implementer may opt for a mainly hardware and/or firmware vehicle; if flexibility is paramount, the implementer may opt for a mainly software implementation; or, yet again alternatively, the implementer may opt for some combination of hardware, software, and/or firmware.

[0124] While various aspects and embodiments have been disclosed herein, other aspects and embodiments will be apparent to those skilled in the art. The various aspects and embodiments disclosed herein are for purposes of illustration and are not intended to be limiting, with the true scope and spirit being indicated by the following claims.