KR101907852B1 - Method and Apparatus for Processing Stereo Images - Google Patents

Method and Apparatus for Processing Stereo Images Download PDF

Info

Publication number
KR101907852B1
KR101907852B1 KR1020120098990A KR20120098990A KR101907852B1 KR 101907852 B1 KR101907852 B1 KR 101907852B1 KR 1020120098990 A KR1020120098990 A KR 1020120098990A KR 20120098990 A KR20120098990 A KR 20120098990A KR 101907852 B1 KR101907852 B1 KR 101907852B1
Authority
KR
South Korea
Prior art keywords
image
stereo
camera
extraction region
slope
Prior art date
Application number
KR1020120098990A
Other languages
Korean (ko)
Other versions
KR20140032283A (en
Inventor
김주영
Original Assignee
현대모비스 주식회사
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 현대모비스 주식회사 filed Critical 현대모비스 주식회사
Priority to KR1020120098990A priority Critical patent/KR101907852B1/en
Priority to CN201310380608.7A priority patent/CN103686126B/en
Publication of KR20140032283A publication Critical patent/KR20140032283A/en
Application granted granted Critical
Publication of KR101907852B1 publication Critical patent/KR101907852B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/204Image signal generators using stereoscopic image cameras
    • H04N13/246Calibration of cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

본 발명은, 스테레오 영상에 대한 스테레오 매칭을 효율적으로 수행하도록 하는 스테레오 영상 처리 방법 및 장치에 대한 것이다.
본 발명은, 차량의 스테레오 영상을 처리하는 장치에 있어서, 스테레오 영상을 취득하는 제 1 카메라와 제 2 카메라를 포함하는 스테레오 카메라; 및 상기 스테레오 영상을 이용하여 스테레오 매칭을 수행하는 스테레오 매칭부를 포함하며, 상기 스테레오 매칭부는 상기 차량의 상태를 고려하여 설정된 상기 제 1 카메라와 상기 제 2 카메라 간의 최대 기울기를 이용하여 상기 제 1 카메라의 제 1 영상과 상기 제 2 카메라의 제 2 영상간의 평행화를 수행하는 것을 특징으로 하는 스테레오 영상 처리 장치를 제공한다.
The present invention relates to a stereo image processing method and apparatus for efficiently performing stereo matching on a stereo image.
The present invention provides an apparatus for processing a stereo image of a vehicle, comprising: a stereo camera including a first camera and a second camera for acquiring a stereo image; And a stereo matching unit configured to perform stereo matching using the stereo image, wherein the stereo matching unit adjusts the stereo matching using the maximum slope between the first camera and the second camera, And performs parallelization between the first image and the second image of the second camera.

Description

스테레오 영상 처리 방법 및 장치 {Method and Apparatus for Processing Stereo Images}[0001] Stereo image processing method and apparatus [0002]

본 발명은 스테레오 영상 처리 방법 및 장치에 대한 것이다. 더욱 상세하게는 본 발명은, 스테레오 영상에 대한 스테레오 매칭을 효율적으로 수행하도록 하는 스테레오 영상 처리 방법 및 장치에 대한 것이다. The present invention relates to a stereo image processing method and apparatus. More particularly, the present invention relates to a stereo image processing method and apparatus for efficiently performing stereo matching on a stereo image.

복수의 카메라로부터 획득된 영상을 이용하여 영상 내에 포함된 특정 지점까지의 거리를 산출하는 방법이 알려져 있다. 그 대표적인 방법으로서 스테레오 매칭(stereo matching)은 어느 하나의 카메라로부터 획득된 영상에서의 임의의 패턴을 삼차원 공간상의 같은 지점으로 매핑되는 다른 카메라의 영상에서 찾아내고, 그 패턴의 대응 관계와 삼각 기법을 이용하여 삼차원 공간상의 위치를 알아낸다. 여기서 상기 패턴은 영상에서의 픽셀, 윈도우 블록이나 feature(edge, 궤적) 등 다양한 요소들일 수 있다. A method of calculating a distance to a specific point included in an image using an image obtained from a plurality of cameras is known. As a representative method, stereo matching is a method of finding arbitrary patterns in an image obtained from any one of the cameras in an image of another camera mapped to the same point on the three-dimensional space, To determine the position on the three-dimensional space. Here, the pattern may be various elements such as a pixel in an image, a window block, or a feature (edge, trajectory).

도 1은 스테레오 매칭 기법을 이용하여 거리를 산출하는 예를 설명하기 위한 도면이다. 1 is a diagram for explaining an example of calculating a distance using a stereo matching technique.

임의의 베이스라인(b)의 거리를 두고 배치된 두 대의 카메라를 통해 촬영된 두 개 영상에서 피사체 간 거리차(변위, disparity)를 구하고, 렌즈의 초점 거리(f)를 알면 카메라로부터 피사체 사이의 거리는 도 1의 기하학적 구조를 통해 다음의 수학식 1과 같이 얻어질 수 있다. When the focal distance f of the lens is obtained from the two images captured by two cameras disposed at a certain distance from the base line b and the focal length f of the lens is known, The distance can be obtained through the geometry of FIG. 1 as: < EMI ID = 1.0 >

Figure 112012072204596-pat00001
Figure 112012072204596-pat00001

수학식 1에서, r은 피사체와 카메라와의 거리, b는 두 대 카메라 사이의 베이스 라인의 거리, f는 카메라 렌즈의 초점 거리이고, d는 두 개 영상에 맺인 동일 피사체 사이의 거리차(disparity)로서 dl-dr이다. In Equation (1), r is the distance between the subject and the camera, b is the distance between the two cameras, f is the focal length of the camera lens, d is the disparity between the same objects ) As d l -d r .

위와 같은 스테레오 매칭을 수행함에 있어서, 두 개의 영상에서 특정 피사체에 관한 패턴은 수직 방향으로는 같은 선상에 존재하는 것으로 전제(즉, 수평 방향으로의 disparity만 있다고 가정)된다. 이에 따라 두 개의 영상에서 대응되는 점을 수평 방향으로 동일 선상에서 탐색한다. 이를 위해, 두 개의 영상에서의 에피폴라(epipolar) 라인은 일치되어야 하며, 이러한 작업을 rectification이라 한다. 일반적인 경우, 영상 내의 특징점(feature)을 탐색하여 좌우 영상간의 기울기 또는 왜곡 정도를 판단한 후 회전/보정 매트릭스(matrix)를 이용하여 영상을 보정한다. In performing the above stereo matching, it is assumed that the patterns related to a specific object in two images exist on the same line in the vertical direction (assuming disparity only in the horizontal direction). Accordingly, the corresponding points on the two images are searched on the same line in the horizontal direction. To do this, the epipolar lines in the two images must be matched and this operation is called rectification. In general, a feature is searched to determine the degree of skew or distortion between the left and right images, and then the image is corrected using a rotation / correction matrix.

그런데, 종래 방법에 있어서는 하나의 영상을 기준으로 하여 다른 영상을 회전시킴에 따라 매칭 점이 변화하고 실제 disparity가 변화되는 문제점이 존재한다. 또한, 영상 내의 특징점을 탐색하고 기울기를 확인하는 과정에서 지연(delay)이 발생하는 문제점이 존재한다. 이러한 지연은 특히 즉시 처리가 요구되는 차량용 영상 스테레오 매칭에 있어서는 바람직하지 않다. However, in the conventional method, there is a problem that a matching point changes and an actual disparity changes as another image is rotated based on one image. Also, there is a problem that a delay occurs in searching for a minutia in an image and confirming a tilt. This delay is undesirable especially in vehicle image stereo matching where immediate processing is required.

본 발명은 상기한 문제점을 해결하기 위하여, 스테레오 카메라(110)로부터의 영상에 대한 스테레오 매칭을 위하여 영상을 평행화(rectification)하는 과정에서 오류를 최소화하고, 특히 차량에 적용되는 스테레오 카메라에 대하여 효과적으로 적용될 수 있는 스테레오 영상 처리 방법을 제공하는 것을 목적으로 한다. In order to solve the above problems, it is an object of the present invention to minimize errors in the process of rectifying an image for stereo matching on an image from the stereo camera 110, And to provide a stereo image processing method that can be applied.

또한, 본 발명은 상기와 같은 스테레오 영상 처리 방법을 수행하는 스테레오 영상 처리 장치를 제공하는 것을 목적으로 한다. It is another object of the present invention to provide a stereo image processing apparatus for performing the above-described stereo image processing method.

본 발명은, 차량의 스테레오 영상을 처리하는 장치에 있어서, 스테레오 영상을 취득하는 제 1 카메라와 제 2 카메라를 포함하는 스테레오 카메라; 및 상기 스테레오 영상을 이용하여 스테레오 매칭을 수행하는 스테레오 매칭부를 포함하며, 상기 스테레오 매칭부는 상기 차량의 상태를 고려하여 설정된 상기 제 1 카메라와 상기 제 2 카메라 간의 최대 기울기를 이용하여 상기 제 1 카메라의 제 1 영상과 상기 제 2 카메라의 제 2 영상간의 평행화를 수행하는 것을 특징으로 하는 스테레오 영상 처리 장치를 제공한다. The present invention provides an apparatus for processing a stereo image of a vehicle, comprising: a stereo camera including a first camera and a second camera for acquiring a stereo image; And a stereo matching unit configured to perform stereo matching using the stereo image, wherein the stereo matching unit adjusts the stereo matching using the maximum slope between the first camera and the second camera, And performs parallelization between the first image and the second image of the second camera.

일 실시예에 있어서, 상기 스테레오 매칭부는, 상기 최대 기울기를 이용하여 상기 제 1 영상과 상기 제 2 영상으로부터 상기 평행화를 위한 제 1 추출영역 및 제 2 추출영역을 각각 추출하는 픽셀 추출부; 상기 제 1 추출영역과 상기 제 2 추출영역에서 대응되는 특징점을 추출하는 특징점 매칭부; 상기 특징점을 이용하여 상기 제 1 추출영역과 상기 제 2 추출영역 간의 기울기를 산출하는 기울기 산출부; 및 상기 기울기를 이용하여 상기 제 1 영상 및 상기 제 2 영상을 평행화하고 최종 스테레오 매칭을 수행하는 영상 변환부를 포함하여 구성될 수 있다. In one embodiment, the stereo matching unit may include: a pixel extracting unit that extracts a first extraction area and a second extraction area for parallelization from the first image and the second image using the maximum slope; A feature point matching unit for extracting feature points corresponding to the first extraction region and the second extraction region; A slope calculating unit for calculating a slope between the first extraction area and the second extraction area using the feature points; And an image converting unit for parallelizing the first image and the second image using the slope and performing a final stereo matching.

또한, 상기 제 1 추출영역은 상기 제 1 영상에서 세로 방향으로 X번째 행을 추출될 수 있다. In addition, the first extraction region may extract the Xth row in the vertical direction in the first image.

또한, 상기 제 2 추출영역은 상기 제 2 영상에서 상기 최대 기울기를 고려하여 상기 X번째 행을 포함한 복수의 행을 추출한 것일 수 있다. The second extraction region may be a plurality of rows including the Xth row in consideration of the maximum slope in the second image.

또한, 본 발명은, 차량의 스테레오 영상 처리 방법에 있어서, (a) 차량의 스테레오 카메라로부터 제 1 영상 및 제 2 영상을 취득하는 단계; (b) 스테레오 매칭부의 픽셀추출부에서 상기 차량의 상태를 고려하여 설정된 상기 제 1 카메라와 상기 제 2 카메라 간의 최대 기울기를 이용하여 상기 제 1 영상과 제 2 영상에서 소정 영역을 제 1 추출영역 및 제 2 추출영역으로 추출하는 단계; (c) 상기 스테레오 매칭부에서 상기 제 1 추출영역 및 상기 제 2 추출영역에서 대응되는 특징점을 산출하고 상기 제 1 영상 및 상기 제 2 영상 간의 기울기를 산출하는 단계; 및 (d) 상기 스테레오 매칭부에서 상기 기울기를 이용하여 상기 제 1 영상 및 상기 제 2 영상을 평행화하고 최종 스테레오 매칭을 수행하는 단계를 포함하는 스테레오 영상 처리 방법을 제공한다. The present invention also provides a stereo image processing method for a vehicle, comprising the steps of: (a) acquiring a first image and a second image from a stereo camera of a vehicle; (b) a pixel extracting unit of the stereo matching unit extracts a predetermined region from the first image and the second image by using a maximum slope between the first camera and the second camera set in consideration of the state of the vehicle, Extraction into a second extraction region; (c) calculating a slope between the first image and the second image by calculating a feature point corresponding to the first extraction region and the second extraction region in the stereo matching unit; And (d) parallelizing the first image and the second image using the slope in the stereo matching unit and performing a final stereo matching.

본 발명에 따르면, 차량의 스테레오 카메라로부터 취득된 영상에 대하여 스테레오 매칭을 수행함에 있어서, 스테레오 영상 간의 평행화 과정을 영상의 전체 영역이 아니라 차량이라는 특수한 환경을 고려하여 영상의 일부 영역만을 대상으로 수행함에 따라 처리 시간을 단축하고 시스템을 단순화할 수 있는 효과가 있다. According to the present invention, in performing stereo matching on an image acquired from a stereo camera of a vehicle, a parallelization process between stereo images is performed on only a part of an image in consideration of a special environment, The processing time can be shortened and the system can be simplified.

도 1은 스테레오 매칭 기법을 이용하여 거리를 산출하는 예를 설명하기 위한 도면이다.
도 2는 본 발명의 바람직한 실시예에 따른 스테레오 영상 처리 장치의 블록도이다.
도 3은 본 발명의 바람직한 실시예에 따른 스테레오 영상 처리 장치에 있어서 스테레오 영상의 처리예를 도시한 도면이다.
도 4는 본 발명의 바람직한 실시예에 따른 스테레오 영상 처리 방법을 도시한 순서도이다.
1 is a diagram for explaining an example of calculating a distance using a stereo matching technique.
2 is a block diagram of a stereo image processing apparatus according to a preferred embodiment of the present invention.
3 is a diagram showing an example of processing of a stereo image in a stereo image processing apparatus according to a preferred embodiment of the present invention.
4 is a flowchart illustrating a stereo image processing method according to a preferred embodiment of the present invention.

이하, 본 발명의 바람직한 실시예를 첨부된 도면들을 참조하여 상세히 설명한다. 우선 각 도면의 구성 요소들에 참조 부호를 부가함에 있어서, 동일한 구성 요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다. 또한, 이하에서 본 발명의 바람직한 실시예를 설명할 것이나, 본 발명의 기술적 사상은 이에 한정하거나 제한되지 않고 당업자에 의해 변형되어 다양하게 실시될 수 있음은 물론이다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the drawings, the same reference numerals are used to designate the same or similar components throughout the drawings. In the following description of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear. In addition, the preferred embodiments of the present invention will be described below, but it is needless to say that the technical idea of the present invention is not limited thereto and can be variously modified by those skilled in the art.

도 2는 본 발명의 바람직한 실시예에 따른 스테레오 영상 처리 장치의 블록도이고, 도 3은 본 발명의 바람직한 실시예에 따른 스테레오 영상 처리 장치에 있어서 스테레오 영상의 처리예를 도시한 도면이다. FIG. 2 is a block diagram of a stereo image processing apparatus according to a preferred embodiment of the present invention, and FIG. 3 is a diagram illustrating an example of processing of a stereo image in a stereo image processing apparatus according to a preferred embodiment of the present invention.

본 발명의 바람직한 실시예에 따른 스테레오 영상 처리 장치(100)는, 차량에 구비되는 스테레오 카메라(110)와, 스테레오 매칭부(120)와, 저장부(130)를 포함한다. 또한, 상기 스테레오 영상 처리 장치는 스테레오 영상을 이용하여 차량의 각종 제어를 수행하는 전자제어장치(140)(ECU)와 연결될 수 있다. A stereo image processing apparatus 100 according to a preferred embodiment of the present invention includes a stereo camera 110, a stereo matching unit 120, and a storage unit 130 provided in a vehicle. In addition, the stereo image processing apparatus may be connected to an electronic control unit (ECU) 140 that performs various control of the vehicle using a stereo image.

스테레오 카메라(110)는 차량에 구비되며 통상적으로는 차량의 전방에 구비된다. 이러한 스테레오 카메라(110)는 제 1 카메라(110a)와 제 2 카메라(110b)를 포함하며, 상기 제 1 카메라(110a)와 제 2 카메라(110b)는 동일한 지점에 대한 영상을 취득하도록 설치될 수 있다. 다만, 본 발명의 실시에 있어서 스테레오 카메라(110)는 차량의 전방이 아니라 측방이나 후방에 설치되는 것도 가능함은 물론이다. The stereo camera 110 is provided in the vehicle and is usually provided in front of the vehicle. The stereo camera 110 includes a first camera 110a and a second camera 110b and the first camera 110a and the second camera 110b may be installed to acquire images of the same point have. However, it is needless to say that the stereo camera 110 may be installed laterally or rearwardly of the vehicle, not in front of the vehicle.

일 실시예에 있어서 스테레오 매칭부(120)는, 픽셀 추출부(122), 특징점 매칭부(124), 기울기 산출부(126), 및 영상 변환부(128)를 포함한다. In one embodiment, the stereo matching unit 120 includes a pixel extracting unit 122, a feature point matching unit 124, a slope calculating unit 126, and an image converting unit 128.

픽셀 추출부(122)는, 제 1 카메라(110a)로부터 취득한 제 1 영상(150a)과 제 2 카메라(110b)로부터 취득한 제 2 영상(150b)으로부터 매칭을 수행할 블록을 추출하는 기능을 수행한다. 도 2를 참조하면, 픽셀 추출부(122)는 차량의 운행 환경을 고려하여 제 1 카메라(110a)와 제 2 카메라(110b) 간에 발생할 수 있는 최대 기울기(A)를 설정한다. 예를 들면, 제 1 카메라(110a)와 제 2 카메라(110b)가 차량의 전방에 설치된 경우, 차량에 가해지는 충격이나 진동에 의해 제 1 카메라(110a)와 제 2 카메라(110b)가 상호 발생할 수 있는 각도차의 최대값을 최대 기울기(A)로 설정한다. 상기 최대 기울기(A)는 포장 도로에서 주행할 것으로 예상되는 승용차의 경우는 적게 설정되고, 비포장 도로에서 주행할 것으로 예상되는 오프로드 차량의 경우에는 크게 설정될 수 있다. 이러한 최대 기울기(A)는 차량 출고시에 설정될 수도 있으나, 차량의 실제 주행 조건으로부터 실시간으로 설정되는 것도 가능하다. The pixel extracting unit 122 performs a function of extracting a block to be matched from the first image 150a acquired from the first camera 110a and the second image 150b acquired from the second camera 110b . Referring to FIG. 2, the pixel extracting unit 122 sets a maximum slope A that can occur between the first camera 110a and the second camera 110b in consideration of the driving environment of the vehicle. For example, when the first camera 110a and the second camera 110b are installed in front of the vehicle, the first camera 110a and the second camera 110b mutually occur due to impact or vibration applied to the vehicle Set the maximum value of the angular difference to the maximum slope (A). The maximum slope A can be set to a small value in the case of a passenger car expected to run on a paved road and to a large value in the case of an off-road vehicle expected to run on an unpaved road. This maximum slope A may be set at the time of vehicle departure, but it may also be set in real time from the actual running condition of the vehicle.

픽셀 추출부(122)는 제 1 영상(150a)에서 수직 방향으로 X번째 픽셀의 행을 제 1 추출영역으로 추출한다. 제 1 영상(150a)과 제 2 영상(150b)이 각각 M×N의 픽셀로 이루어졌다면, 제 1 추출영역은 M×1의 픽셀을 갖게 될 것이다. The pixel extracting unit 122 extracts the row of the Xth pixel in the vertical direction from the first image 150a into the first extraction area. If the first image 150a and the second image 150b are M × N pixels, the first extraction region will have M × 1 pixels.

한편, 제 2 영상(150b)에서는 최대 기울기(A)를 고려하면 수직 방향으로 고려할 픽셀의 수(Y)를 산출할 수 있다. 상기 Y는

Figure 112012072204596-pat00002
와 같은 수식을 이용하여 산출할 수 있다. 픽셀 추출부(122)는 상기 Y를 고려하여 제 2 영상(150b)으로부터 ±Y에 해당하는 영역을 제 2 추출영역으로 추출한다. 제 2 추출영역은 제 2 영상(150b)의 X번째 행의 상하 Y개만큼의 영역을 포함하는 것으로서 M×(1+2Y)의 픽셀을 갖게 될 것이다. On the other hand, in the second image 150b, considering the maximum slope A, the number Y of pixels to be considered in the vertical direction can be calculated. Y is
Figure 112012072204596-pat00002
Can be calculated using an equation such as The pixel extracting unit 122 extracts a region corresponding to 占 from the second image 150b into the second extraction region in consideration of the Y. [ The second extraction region will have M × (1 + 2Y) pixels including the upper and lower Y regions of the Xth row of the second image 150b.

본 발명의 실시에 있어서, 상기 X는 제 1 영상(150a)과 제 2 영상(150b)에서 세로 방향으로 중앙에 위치하는 부분으로 설정될 수 있다. 다만, 상기 X는 제 1 영상(150a) 및 제 2 영상(150b)의 세로 방향 중앙이 아니라 상하로 치우쳐 설정되는 것도 가능하다. In the embodiment of the present invention, X may be set as a portion located at the center in the vertical direction in the first image 150a and the second image 150b. However, the X may be shifted up and down rather than the longitudinal center of the first image 150a and the second image 150b.

픽셀 추출부(122)에서 추출된 제 1 추출영역과 제 2 추출영역의 정보는 저장부(130)에 임시 저장될 수 있다. The information of the first extraction region and the second extraction region extracted by the pixel extracting unit 122 may be temporarily stored in the storage unit 130. [

특징점 매칭부(124)는 상기 제 1 추출영역과 제 2 추출영역을 이용하여 스테레오 매칭을 수행하여 매칭되는 대칭점을 산출한다. 일례에 있어서, 특징점 매칭부(124)는 SSD(Sum of Squared Differences), SAD(Sum of Absolute Differences), 또는NCC(Normalized Cross Correlation)와 같은 스테레오 매칭 알고리즘을 이용하여 제 1 추출영역과 제 2 추출영역의 대칭점을 산출할 수 있다. 다만, 본 발명의 실시에 있어서 스테레오 매칭 알고리즘은 상기한 바에 한정되는 것은 아니며 스테레오 매칭을 위한 다른 다양한 알고리즘을 사용할 수 있다. The feature point matching unit 124 performs stereo matching using the first extraction region and the second extraction region to calculate a matching point. In one example, the feature point matching unit 124 may use a stereo matching algorithm such as Sum of Squared Differences (SSD), Sum of Absolute Differences (SAD), or Normalized Cross Correlation (NCC) The symmetric point of the region can be calculated. However, in the practice of the present invention, the stereo matching algorithm is not limited to the above, and various other algorithms for stereo matching may be used.

본 발명에 있어서는 1행으로 이루어진 제 1 추출영역의 픽셀을 상기 제 2 추출영역의 픽셀과 대비하여 대칭점을 산출하게 되므로 종전과 비교할 때 매우 빠른 연산이 가능하게 된다. In the present invention, since the pixels of the first extraction region constituted by one row are compared with the pixels of the second extraction region, the symmetry point is calculated.

기울기 산출부(126)는 상기 특징점 매칭부(124)에서 산출된 특징점을 이용하여 제 1 추출영역과 제 2 추출영역의 영상간의 기울기를 산출한다. The slope calculating unit 126 calculates the slope between the image of the first extraction region and the image of the second extraction region using the minutiae calculated by the minutia matching unit 124. [

영상 변환부(128)는 상기 기울기 산출부(126)에서 산출된 기울기를 이용하여 제 1 영상(150a) 또는 제 2 영상(150b) 중 어느 하나의 영상을 기준으로 다른 영상을 회전시킨 후, 제 1 영상(150a)과 제 2 영상(150b) 간의 스테레오 매칭을 수행한다. The image transform unit 128 rotates another image based on any one of the first image 150a or the second image 150b using the slope calculated by the slope calculating unit 126, And performs stereo matching between the first image 150a and the second image 150b.

저장부(130)는, 상기 제 1 영상(150a)과 제 2 영상(150b)의 정보 및 상기 제 1 추출영역 및 제 2 추출영역의 정보를 임시 저장하는 기능을 수행한다. The storage unit 130 temporarily stores the information of the first image 150a and the second image 150b and the information of the first extraction area and the second extraction area.

차량의 전자제어장치(140)는 상기 영상 변환부(128)에서 최종 스테레오 매칭된 결과를 이용하여 FCW(Forward Collision Warning), LDWS(Lane Departure Warning System)과 같은 기능을 수행한다. The electronic control unit 140 of the vehicle performs functions such as Forward Collision Warning (FCW) and Lane Departure Warning System (LDWS) by using the final stereo matched result in the image conversion unit 128.

도 4는 본 발명의 바람직한 실시예에 따른 스테레오 영상 처리 방법을 도시한 순서도이다. 4 is a flowchart illustrating a stereo image processing method according to a preferred embodiment of the present invention.

차량의 스테레오 카메라(110)는 제 1 카메라(110a)와 제 2 카메라(110b)를 이용하여 제 1 영상(150a) 및 제 2 영상(150b)을 취득한다(S200). The stereo camera 110 of the vehicle acquires the first image 150a and the second image 150b using the first camera 110a and the second camera 110b (S200).

스테레오 매칭부(120)의 픽셀 추출부(122)는 차량의 최대 기울기(A)를 고려하여 제 1 영상(150a)과 제 2 영상(150b)간의 기울기를 산출하기 위한 제 1 추출영역과 제 2 추출영역을 제 1 영상(150a) 및 제 2 영상(150b)으로부터 각각 추출한다(S210). The pixel extracting unit 122 of the stereo matching unit 120 calculates the slope between the first image 150a and the second image 150b in consideration of the maximum slope A of the vehicle, The extraction region is extracted from the first image 150a and the second image 150b, respectively (S210).

특징점 매칭부(124)는 상기 제 1 추출영역과 제 2 추출영역을 비교하여 특징점을 산출한다(S220). The feature point matching unit 124 compares the first extraction region and the second extraction region to calculate feature points (S220).

기울기 산출부(126)는 상기 특징점 매칭부(124)로부터 산출된 특징점을 이용하여 제 1 추출영역과 제 2 추출영역 간의 기울기를 산출한다(S230). The slope calculating unit 126 calculates a slope between the first extraction area and the second extraction area using the minutiae calculated from the minutia matching unit 124 (S230).

영상 변환부(128)는 상기 기울기를 이용하여 제 1 영상(150a) 또는 제 2 영상(150b) 중 어느 하나를 기준으로 다른 하나의 영상을 회전시킨다(S240). The image transform unit 128 rotates the other image based on the first image 150a or the second image 150b using the slope (S240).

영상 변환부(128)는 회전된, 즉 영상 평행화가 완료된 제 1 영상(150a) 및 제 2 영상(150b)을 이용하여 제 1 영상(150a)과 제 2 영상(150b)간의 스테레오 매칭을 수행한다(S250). The image converting unit 128 performs stereo matching between the first image 150a and the second image 150b using the rotated first image 150a and the second image 150b, (S250).

영상 변환부(128)에서 최종 스테레오 매칭된 결과는 차량의 전자제어장치(140)로 전달되고, 전자제어장치(140)는 스테레오 매칭 결과를 이용하여 차량의 제어를 수행한다. The final stereo-matched result in the image converting unit 128 is transmitted to the electronic control unit 140 of the vehicle, and the electronic control unit 140 performs control of the vehicle using the stereo matching result.

이상의 설명은 본 발명의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 발명의 본질적인 특성에서 벗어나지 않는 범위 내에서 다양한 수정, 변경 및 치환이 가능할 것이다. 따라서, 본 발명에 개시된 실시예 및 첨부된 도면들은 본 발명의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예 및 첨부된 도면에 의하여 본 발명의 기술 사상의 범위가 한정되는 것은 아니다. 본 발명의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 발명의 권리범위에 포함되는 것으로 해석되어야 할 것이다.It will be apparent to those skilled in the art that various modifications, substitutions and substitutions are possible, without departing from the scope and spirit of the invention as disclosed in the accompanying claims. will be. Therefore, the embodiments disclosed in the present invention and the accompanying drawings are intended to illustrate and not to limit the technical spirit of the present invention, and the scope of the technical idea of the present invention is not limited by these embodiments and the accompanying drawings . The scope of protection of the present invention should be construed according to the following claims, and all technical ideas within the scope of equivalents should be construed as falling within the scope of the present invention.

100 : 스테레오 영상 처리 장치
110 : 스테레오 카메라
120 : 스테레오 매칭부
122 : 픽셀 추출부
124 : 특징점 매칭부
126 : 기울기 산출부
128 : 영상 변환부
130 : 저장부
140 : 전자제어장치
100: Stereo image processing device
110: Stereo camera
120: stereo matching unit
122: Pixel extraction unit
124:
126: tilt calculating section
128:
130:
140: Electronic control device

Claims (7)

차량의 스테레오 영상을 처리하는 장치에 있어서,
스테레오 영상을 취득하는 제 1 카메라와 제 2 카메라를 포함하는 스테레오 카메라; 및
상기 스테레오 영상을 이용하여 스테레오 매칭을 수행하는 스테레오 매칭부를 포함하며, 상기 스테레오 매칭부는 상기 차량의 상태를 고려하여 설정된 상기 제 1 카메라와 상기 제 2 카메라 간의 최대 기울기를 이용하여 상기 제 1 카메라의 제 1 영상과 상기 제 2 카메라의 제 2 영상간의 평행화를 수행하고,
상기 스테레오 매칭부는,
각각 M×N 픽셀로 이루어진 상기 제 1 영상과 상기 제 2 영상으로부터 평행화를 위한 제 1 추출영역 및 제 2 추출영역을 각각 추출하고, 상기 제 1 추출영역은 상기 제 1 영상에서 세로 방향으로 X번째 행을 추출한 M×1 픽셀을 포함하며, 상기 제 2 추출영역은 상기 제 2 영상에서 상기 최대 기울기를 고려하여 수직 방향으로 고려할 픽셀 수 Y를
Figure 112018047879514-pat00007
로 산출하여, 상기 X번째 행의 상하 Y개 만큼의 영역을 포함하는 M×(1+2Y)의 픽셀을 포함하는 픽셀 추출부;
상기 제 1 추출영역과 상기 제 2 추출영역에서 대응되는 특징점을 추출하는 특징점 매칭부;
상기 특징점을 이용하여 상기 제 1 추출영역과 상기 제 2 추출영역 간의 기울기를 산출하는 기울기 산출부; 및
상기 기울기를 이용하여 상기 제 1 영상 및 상기 제 2 영상을 평행화하고 최종 스테레오 매칭을 수행하는 영상 변환부;를 포함하는 것을 특징으로 하는 스테레오 영상 처리 장치.
An apparatus for processing a stereo image of a vehicle,
A stereo camera including a first camera and a second camera for acquiring stereo images; And
And a stereo matching unit configured to perform stereo matching using the stereo image, wherein the stereo matching unit adjusts the stereo camera using the maximum slope between the first camera and the second camera, 1 image and a second image of the second camera,
Wherein the stereo matching unit comprises:
Extracting a first extraction region and a second extraction region for parallelization from the first image and the second image, each of which is composed of M × N pixels, and the first extraction region extracts X And the second extraction region includes a pixel number Y to be considered as a vertical direction in consideration of the maximum slope in the second image,
Figure 112018047879514-pat00007
A pixel extracting unit that includes M x (1 + 2Y) pixels including upper and lower Y regions of the X th row;
A feature point matching unit for extracting feature points corresponding to the first extraction region and the second extraction region;
A slope calculating unit for calculating a slope between the first extraction area and the second extraction area using the feature points; And
And an image conversion unit for parallelizing the first image and the second image using the slope and performing a final stereo matching.
삭제delete 삭제delete 삭제delete 차량의 스테레오 영상 처리 방법에 있어서,
(a) 차량의 스테레오 카메라로부터 제 1 영상 및 제 2 영상을 취득하는 단계;
(b) 스테레오 매칭부의 픽셀추출부에서 상기 차량의 상태를 고려하여 설정된 상기 제 1 카메라와 상기 제 2 카메라 간의 최대 기울기를 이용하여 각각 M×N 픽셀로 이루어진 상기 제 1 영상과 제 2 영상에서 소정 영역을 제 1 추출영역 및 제 2 추출영역으로 추출하고, 상기 제 1 추출영역은 상기 제 1 영상에서 세로 방향으로 X번째 행을 추출한 M×1 픽셀을 포함하며, 상기 제 2 추출영역은 상기 제 2 영상에서 상기 최대 기울기를 고려하여 수직 방향으로 고려할 픽셀 수 Y를
Figure 112018047879514-pat00008
로 산출하여, 상기 X번째 행의 상하 Y개 만큼의 영역을 포함하는 M×(1+2Y)의 픽셀을 포함하는 단계;
(c) 상기 스테레오 매칭부에서 상기 제 1 추출영역 및 상기 제 2 추출영역에서 대응되는 특징점을 산출하고 상기 제 1 영상 및 상기 제 2 영상 간의 기울기를 산출하는 단계; 및
(d) 상기 스테레오 매칭부에서 상기 기울기를 이용하여 상기 제 1 영상 및 상기 제 2 영상을 평행화하고 최종 스테레오 매칭을 수행하는 단계
를 포함하는 스테레오 영상 처리 방법.
A method of processing a stereo image of a vehicle,
(a) acquiring a first image and a second image from a stereo camera of the vehicle;
(b) a pixel extracting unit of the stereo matching unit extracts, from the first and second images of the M × N pixels using the maximum slope between the first camera and the second camera set in consideration of the state of the vehicle, Wherein the first extraction region includes Mx1 pixels obtained by extracting an Xth row in a vertical direction in the first image, and the second extraction region includes Mx1 pixels extracted in the vertical direction from the first image, Considering the maximum slope in 2 images, let Y be the number of pixels to be considered in the vertical direction
Figure 112018047879514-pat00008
(1 + 2Y) pixels including upper and lower Y regions of the Xth row;
(c) calculating a slope between the first image and the second image by calculating a feature point corresponding to the first extraction region and the second extraction region in the stereo matching unit; And
(d) parallelizing the first image and the second image using the slope in the stereo matching unit and performing final stereo matching
/ RTI >
삭제delete 삭제delete
KR1020120098990A 2012-09-06 2012-09-06 Method and Apparatus for Processing Stereo Images KR101907852B1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
KR1020120098990A KR101907852B1 (en) 2012-09-06 2012-09-06 Method and Apparatus for Processing Stereo Images
CN201310380608.7A CN103686126B (en) 2012-09-06 2013-08-28 Stereo image processing device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020120098990A KR101907852B1 (en) 2012-09-06 2012-09-06 Method and Apparatus for Processing Stereo Images

Publications (2)

Publication Number Publication Date
KR20140032283A KR20140032283A (en) 2014-03-14
KR101907852B1 true KR101907852B1 (en) 2018-10-15

Family

ID=50322229

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120098990A KR101907852B1 (en) 2012-09-06 2012-09-06 Method and Apparatus for Processing Stereo Images

Country Status (2)

Country Link
KR (1) KR101907852B1 (en)
CN (1) CN103686126B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10063831B2 (en) 2015-02-09 2018-08-28 Samsung Electronics Co., Ltd. Method and apparatus for stereo image rectification
KR102250289B1 (en) * 2015-04-02 2021-05-11 현대자동차주식회사 Apparatus and Method for Compensating of Image Data Obtained by Stereo Camera
KR101766149B1 (en) 2016-07-05 2017-08-07 현대자동차주식회사 Apparatus and Method for Stereo Matching which needs small Computation

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008286648A (en) * 2007-05-17 2008-11-27 Sumitomo Electric Ind Ltd Distance measuring device, distance measuring system, and distance measuring method
JP2010085240A (en) 2008-09-30 2010-04-15 Mazda Motor Corp Image processing device for vehicle

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3765862B2 (en) * 1996-02-15 2006-04-12 本田技研工業株式会社 Vehicle environment recognition device
CN101354796B (en) * 2008-09-05 2010-08-11 浙江大学 Omnidirectional stereo vision three-dimensional rebuilding method based on Taylor series model
JP5404773B2 (en) * 2009-03-31 2014-02-05 パナソニック株式会社 Stereo image processing apparatus and stereo image processing method
CN102404595B (en) * 2011-08-16 2013-11-20 上海交通大学 Epipolar line rectification method capable of providing instruction for shooting of 3-dimensional programs

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008286648A (en) * 2007-05-17 2008-11-27 Sumitomo Electric Ind Ltd Distance measuring device, distance measuring system, and distance measuring method
JP2010085240A (en) 2008-09-30 2010-04-15 Mazda Motor Corp Image processing device for vehicle

Also Published As

Publication number Publication date
CN103686126B (en) 2017-05-24
KR20140032283A (en) 2014-03-14
CN103686126A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
US8867790B2 (en) Object detection device, object detection method, and program
US20150269449A1 (en) Image processing apparatus and image processing method
US9771080B2 (en) Road surface gradient detection device
US9846823B2 (en) Traffic lane boundary line extraction apparatus and method of extracting traffic lane boundary line
US10033981B2 (en) Image processing apparatus
US20150367781A1 (en) Lane boundary estimation device and lane boundary estimation method
WO2017138245A1 (en) Image processing device, object recognition device, device control system, and image processing method and program
US9747507B2 (en) Ground plane detection
US9715632B2 (en) Intersection recognizing apparatus and computer-readable storage medium
JP6723079B2 (en) Object distance detection device
CN103366155B (en) Temporal coherence in unobstructed pathways detection
WO2018211930A1 (en) Object detection device, object detection method, and computer-readable recording medium
JPWO2017115732A1 (en) Image processing apparatus, object recognition apparatus, device control system, image processing method, and image processing program
JP6903477B2 (en) Orbit identification device and program
KR101907852B1 (en) Method and Apparatus for Processing Stereo Images
KR101236223B1 (en) Method for detecting traffic lane
JP2018503195A (en) Object detection method and object detection apparatus
JP4696925B2 (en) Image processing device
JP6571492B2 (en) Corresponding point search method and distance measuring device
WO2014054124A1 (en) Road surface markings detection device and road surface markings detection method
KR101603293B1 (en) Lane recognition method
KR20090083184A (en) Method for dectecting front and rear vehicle by using image
JP6677141B2 (en) Parking frame recognition device
CN112513573B (en) Stereo camera device
KR20130059190A (en) A vehicle detection and distance measurement system and method between the vehicles using stereo vision

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant