KR102279177B1 - Apparatus and method for subpixel line localization - Google Patents

Apparatus and method for subpixel line localization Download PDF

Info

Publication number
KR102279177B1
KR102279177B1 KR1020190080859A KR20190080859A KR102279177B1 KR 102279177 B1 KR102279177 B1 KR 102279177B1 KR 1020190080859 A KR1020190080859 A KR 1020190080859A KR 20190080859 A KR20190080859 A KR 20190080859A KR 102279177 B1 KR102279177 B1 KR 102279177B1
Authority
KR
South Korea
Prior art keywords
line
pixel
sub
gradient
pixels
Prior art date
Application number
KR1020190080859A
Other languages
Korean (ko)
Other versions
KR20210005413A (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 KR1020190080859A priority Critical patent/KR102279177B1/en
Publication of KR20210005413A publication Critical patent/KR20210005413A/en
Application granted granted Critical
Publication of KR102279177B1 publication Critical patent/KR102279177B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)

Abstract

영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 효율적으로 결정할 수 있는 서브픽셀 라인위치 결정 장치 및 방법, 기록 매체가 개시된다. 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법은, 영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 상기 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 결정하는 서브픽셀 라인위치 결정 방법으로서, 그래디언트 산출부에 의해, 상기 라인픽셀 및 상기 라인픽셀에 인접한 주변픽셀들을 포함하는 픽셀들에 대해, 인접한 픽셀들 간의 픽셀값 차이와 관련된 그래디언트들을 산출하는 단계; 정규화부에 의해, 상기 픽셀들의 그래디언트들의 크기들을 산출하고, 상기 라인픽셀의 위치에 대한 서브픽셀 레벨 변위를 산출하기 위해 상기 픽셀들의 그래디언트들의 크기들을 기반으로 상기 픽셀들의 그래디언트들을 정규화하는 단계; 및 서브픽셀 라인위치 결정부에 의해, 상기 라인픽셀의 위치 및 상기 서브픽셀 레벨 변위를 기반으로 서브픽셀 레벨로 상기 라인점의 위치를 결정하는 단계를 포함한다.Disclosed are a sub-pixel line positioning apparatus and method, and a recording medium capable of efficiently determining a position of a line point corresponding to a line at a sub-pixel level from a position of a line pixel determined by a pixel level related to a line in an image. The sub-pixel line position determining method according to an embodiment of the present invention determines the sub-pixel line position by determining the position of the line point corresponding to the line at the sub-pixel level from the position of the line pixel determined by the pixel level related to the line in the image. A method comprising: calculating, by a gradient calculator, gradients related to a pixel value difference between the adjacent pixels for the pixels including the line pixel and adjacent pixels adjacent to the line pixel; calculating, by a normalizer, magnitudes of the gradients of the pixels, and normalizing the gradients of the pixels based on the magnitudes of the gradients of the pixels to calculate a sub-pixel level displacement with respect to the position of the line pixel; and determining the position of the line point on a sub-pixel level based on the position of the line pixel and the displacement of the sub-pixel level by a sub-pixel line position determining unit.

Description

서브픽셀 라인위치 결정 장치 및 방법{APPARATUS AND METHOD FOR SUBPIXEL LINE LOCALIZATION}Apparatus and method for determining sub-pixel line position {APPARATUS AND METHOD FOR SUBPIXEL LINE LOCALIZATION}

본 발명은 서브픽셀 라인위치 결정 장치 및 방법에 관한 것으로, 보다 상세하게는 영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 상기 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 결정하는 서브픽셀 라인위치 결정 장치 및 방법에 관한 것이다.The present invention relates to an apparatus and method for determining a sub-pixel line position, and more particularly, to a sub-pixel level for determining a position of a line point corresponding to a line from a position of a line pixel determined by a pixel level related to a line in an image at a sub-pixel level. The present invention relates to a pixel line positioning apparatus and method.

영상 처리 용어 중 라인(line)은 양측의 주변 보다 밝거나 어두운 밝기를 가지고 기하학적으로 가늘고 긴 모양을 가지는 부분을 의미한다. 실내 영상화, 건물 외관 영상화, 위성 영상화, 의료 영상화, 및 도로 영상화를 포함한 다양한 영상화 기술에서 가장 중요하고 빈번하게 관찰되는 특징들 중 하나로서, 라인 특징이 영상에서 장면(scene)을 분석하고 해석하는데 사용된다. 따라서, 영상 처리 및 컴퓨터 비전 분야에서 정확한 라인 추출이 중요하다.In image processing terms, a line refers to a part having a geometrically long and slender shape with a brightness that is brighter or darker than that around both sides. As one of the most important and frequently observed features in various imaging technologies, including indoor imaging, building exterior imaging, satellite imaging, medical imaging, and road imaging, line features are used to analyze and interpret scenes in images. do. Therefore, accurate line extraction is important in image processing and computer vision fields.

최근, 자율 주행을 위한 차선 추출, 의료 영상에서 혈관 추출, 및 위성 영상에서 도로 추출을 포함한 다양한 응용분야의 발전에 따라, 영상으로부터 라인 특징의 효율적 추출에 대한 요구가 급속도로 증가하고 있다. 선형 특징들의 위치를 고품질로 결정하기 위해, 선형 특징들의 위치를 서브픽셀 수준으로 결정할 필요가 있다. Steger는 표면 밝기(surface intensity)의 테일러 급수 근사법(TA; Taylor series Approximation)과 헤시안 행렬(Hessian matrix)에서 파생된 법선 벡터(normal vector)를 기반으로 하는 서브픽셀 라인 위치 결정 방법을 제안하였다. 그러나, 이 방법은 약한 라인 신호와 높은 노이즈 수준 하에서 선형 특징들의 위치가 불안정하게 결정되는 문제가 있다. 또한, Steger가 제안한 방법은 현재의 라인 확산 방향의 부근에 있는 3개의 픽셀들 내에 있는 위치들 만을 확인하여 위치들을 연결하므로, 라인 특징들이 높은 곡률을 가지는 경우에 라인 위치들을 제대로 연결하지 못하게 되는 문제가 있다.Recently, with the development of various application fields including lane extraction for autonomous driving, blood vessel extraction from medical images, and road extraction from satellite images, the demand for efficient extraction of line features from images is rapidly increasing. In order to determine the position of the linear features with high quality, it is necessary to determine the position of the linear features at the sub-pixel level. Steger proposed a subpixel line positioning method based on a Taylor series approximation (TA) of surface intensity and a normal vector derived from a Hessian matrix. However, this method has a problem in that the positions of linear features are unstable under weak line signals and high noise levels. In addition, since the method proposed by Steger connects positions by checking only positions within three pixels in the vicinity of the current line diffusion direction, the problem that line positions cannot be properly connected when line features have high curvature there is

C. Steger, "An unbiased detector of curvilinear structures", IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 20, no. 2, pp. 113-125, 1998.C. Steger, “An unbiased detector of curvilinear structures”, IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 20, no. 2, pp. 113-125, 1998.

본 발명은 영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 효율적으로 결정할 수 있는 서브픽셀 라인위치 결정 장치 및 방법, 기록 매체를 제공하기 위한 것이다.The present invention is to provide an apparatus and method for determining a sub-pixel line position, and a recording medium, which can efficiently determine the position of a line point corresponding to a line at a sub-pixel level from the position of a line pixel determined by a pixel level related to a line in an image. will be.

또한, 본 발명은 직진성(straightness)과 전방위성(omni-directionality)을 갖도록 라인점들을 연결하여 라인을 생성할 수 있는 서브픽셀 라인위치 결정 장치 및 방법, 기록 매체를 제공하기 위한 것이다.Another object of the present invention is to provide an apparatus and method for determining a sub-pixel line position and a recording medium capable of generating a line by connecting line points to have straightness and omni-directionality.

또한, 본 발명은 라인 특징들이 높은 곡률을 가지는 경우에도 라인점들을 정확하게 연결하여 영상에서 라인들을 고품질로 추출할 수 있는 서브픽셀 라인위치 결정 장치 및 방법, 기록 매체를 제공하기 위한 것이다.Another object of the present invention is to provide a sub-pixel line positioning apparatus and method, and a recording medium capable of extracting lines from an image with high quality by accurately connecting line points even when line features have high curvature.

또한, 본 발명은 적은 연산 처리량으로, 고속으로 고품질의 라인들을 추출할 수 있는 서브픽셀 라인위치 결정 장치 및 방법, 기록 매체를 제공하기 위한 것이다.Another object of the present invention is to provide an apparatus and method for determining a sub-pixel line position and a recording medium capable of extracting high-quality lines at high speed with a small amount of processing.

본 발명이 해결하고자 하는 과제는 이상에서 언급된 과제로 제한되지 않는다. 언급되지 않은 다른 기술적 과제들은 이하의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The problems to be solved by the present invention are not limited to the problems mentioned above. Other technical problems not mentioned will be clearly understood by those of ordinary skill in the art to which the present invention belongs from the following description.

본 발명의 일 측면에 따른 서브픽셀 라인위치 결정 방법은, 영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 상기 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 결정하는 서브픽셀 라인위치 결정 방법으로서, 그래디언트 산출부에 의해, 상기 라인픽셀 및 상기 라인픽셀에 인접한 주변픽셀들을 포함하는 픽셀들에 대해, 인접한 픽셀들 간의 픽셀값 차이와 관련된 그래디언트들을 산출하는 단계; 정규화부에 의해, 상기 픽셀들의 그래디언트들의 크기들을 산출하고, 상기 라인픽셀의 위치에 대한 서브픽셀 레벨 변위를 산출하기 위해 상기 픽셀들의 그래디언트들의 크기들을 기반으로 상기 픽셀들의 그래디언트들을 정규화하는 단계; 및 서브픽셀 라인위치 결정부에 의해, 상기 라인픽셀의 위치 및 상기 서브픽셀 레벨 변위를 기반으로 서브픽셀 레벨로 상기 라인점의 위치를 결정하는 단계를 포함한다.In a method for determining a sub-pixel line position according to an aspect of the present invention, a sub-pixel line position determination method determines a position of a line point corresponding to the line at a sub-pixel level from a position of a line pixel determined by a pixel level related to a line in an image. A method comprising: calculating, by a gradient calculating unit, gradients related to a pixel value difference between adjacent pixels for pixels including the line pixel and adjacent pixels adjacent to the line pixel; calculating, by a normalizer, magnitudes of the gradients of the pixels, and normalizing the gradients of the pixels based on the magnitudes of the gradients of the pixels to calculate a sub-pixel level displacement with respect to the position of the line pixel; and determining the position of the line point on a sub-pixel level based on the position of the line pixel and the displacement of the sub-pixel level by a sub-pixel line position determining unit.

상기 라인점의 위치를 결정하는 단계는, 상기 라인픽셀의 위치와 상기 서브픽셀 레벨 변위를 합산하여 상기 라인점의 위치를 서브픽셀 레벨로 결정하는 단계를 포함할 수 있다.The determining of the position of the line point may include determining the position of the line point as a sub-pixel level by summing the position of the line pixel and the displacement at the sub-pixel level.

상기 픽셀들의 그래디언트들을 정규화하는 단계는, 그래디언트 합산부에 의해, 상기 픽셀들의 그래디언트들을 합산하여 합산 그래디언트를 산출하는 단계; 그래디언트 크기 산출부에 의해, 상기 픽셀들의 그래디언트들의 크기들을 산출하는 단계; 그래디언트 크기 합산부에 의해, 상기 픽셀들의 그래디언트들의 크기들을 합산하여 그래디언트 합산 크기를 산출하는 단계; 및 서브픽셀 변위 산출부에 의해, 상기 그래디언트 합산 크기에 의해 상기 합산 그래디언트를 정규화하여 상기 서브픽셀 레벨 변위를 산출하는 단계를 포함할 수 있다.The normalizing of the gradients of the pixels may include calculating, by a gradient summing unit, the gradients of the pixels to calculate a summed gradient; calculating, by a gradient size calculator, sizes of the gradients of the pixels; calculating a gradient sum size by summing the gradient sizes of the pixels by a gradient size summing unit; and calculating the subpixel level displacement by normalizing the summed gradient by the gradient summation size by a subpixel displacement calculator.

본 발명에 따른 서브픽셀 라인위치 결정 방법은, 윈도우 설정부에 의해, 상기 영상에서 상기 라인픽셀의 위치로부터 상기 라인점의 위치를 결정하기 위한 픽셀들을 결정하는 단계를 더 포함할 수 있다. 상기 픽셀들을 결정하는 단계는 상기 라인픽셀을 중심으로 (2K + 1) × (2K + 1) 픽셀 크기(K는 양의 정수)를 가지는 윈도우를 설정하고, 상기 윈도우 내의 픽셀들을 결정하는 단계를 포함할 수 있다.The method for determining a sub-pixel line position according to the present invention may further include, by a window setting unit, determining pixels for determining the position of the line point from the position of the line pixel in the image. The determining of the pixels includes setting a window having a size of (2K + 1) × (2K + 1) pixels (K being a positive integer) around the line pixel, and determining the pixels within the window. can do.

상기 합산 그래디언트를 산출하는 단계는, 행 방향 그래디언트 합산부에 의해, 상기 픽셀들의 행 방향 그래디언트들을 합산하여 행 방향 합산 그래디언트를 산출하는 단계; 및 열 방향 그래디언트 합산부에 의해, 상기 픽셀들의 열 방향 그래디언트들을 합산하여 열 방향 합산 그래디언트를 산출하는 단계를 포함할 수 있다. 상기 그래디언트들의 크기들을 산출하는 단계는 상기 행 방향 그래디언트들의 크기들 및 상기 열 방향 그래디언트들의 크기들을 산출할 수 있다. 상기 그래디언트 합산 크기를 산출하는 단계는 상기 행 방향 그래디언트들의 크기들 및 상기 열 방향 그래디언트들의 크기들을 기반으로 상기 그래디언트 합산 크기를 산출할 수 있다. 상기 서브픽셀 레벨 변위를 산출하는 단계는, 행 방향 변위 산출부에 의해, 상기 행 방향 합산 그래디언트를 상기 그래디언트 합산 크기로 나누어 행 방향 서브픽셀 레벨 변위를 산출하는 단계; 및 열 방향 변위 산출부에 의해, 상기 열 방향 합산 그래디언트를 상기 그래디언트 합산 크기로 나누어 열 방향 서브픽셀 레벨 변위를 산출하는 단계를 포함할 수 있다. 상기 라인점의 위치를 결정하는 단계는, 상기 라인픽셀의 행 방향 위치와 상기 행 방향 서브픽셀 레벨 변위를 합산하여 상기 라인점의 행 방향 위치를 서브픽셀 레벨로 결정하는 단계; 및 상기 라인픽셀의 열 방향 위치와 상기 열 방향 서브픽셀 레벨 변위를 합산하여 상기 라인점의 열 방향 위치를 서브픽셀 레벨로 결정하는 단계를 포함할 수 있다.Calculating the summed gradient may include calculating a row-direction summed gradient by summing the row-direction gradients of the pixels by a row-direction gradient summation unit; and calculating the column-direction summed gradient by summing the column-direction gradients of the pixels by a column-direction gradient summing unit. The calculating of the magnitudes of the gradients may include calculating the magnitudes of the row-direction gradients and the magnitudes of the column-direction gradients. The calculating of the gradient sum size may include calculating the gradient sum size based on the magnitudes of the row-direction gradients and the magnitudes of the column-direction gradients. The calculating of the subpixel level displacement may include: calculating the row direction subpixel level displacement by dividing the row direction sum gradient by the gradient sum size by a row direction displacement calculator; and calculating, by the column-direction displacement calculator, the column-direction sub-pixel level displacement by dividing the column-direction sum gradient by the gradient sum size. The determining of the position of the line point may include: determining the row position of the line point as a sub-pixel level by adding up the row position of the line pixel and the displacement of the sub-pixel level in the row direction; and determining the column-direction position of the line point as a sub-pixel level by summing the column-direction position of the line pixel and the column-direction sub-pixel level displacement.

상기 픽셀들의 그래디언트들을 정규화하는 단계는, 상기 라인픽셀의 상태가 릿지(ridge)인 경우, 상기 그래디언트 합산 크기에 제1 부호를 적용하여 상기 픽셀들의 그래디언트들을 정규화하는 단계; 및 상기 라인픽셀의 상태가 밸리(valley)인 경우, 상기 그래디언트 합산 크기에 상기 제1 부호와 상이한 제2 부호를 적용하여 상기 픽셀들의 그래디언트들을 정규화하는 단계를 포함할 수 있다.Normalizing the gradients of the pixels may include: when the state of the line pixel is a ridge, applying a first sign to the gradient sum size to normalize the gradients of the pixels; and when the state of the line pixel is a valley, normalizing the gradients of the pixels by applying a second sign different from the first sign to the gradient sum size.

상기 합산 그래디언트를 산출하는 단계는 하기의 수식 1에 따라 상기 행 방향 합산 그래디언트 및 상기 열 방향 합산 그래디언트를 산출할 수 있다. 상기 그래디언트 합산 크기를 산출하는 단계는 하기의 수식 2에 따라 상기 그래디언트 합산 크기를 산출할 수 있다. 상기 서브픽셀 레벨 변위를 산출하는 단계는 하기의 수식 3 및 수식 4에 따라 상기 서브픽셀 레벨 변위를 산출할 수 있다. 상기 라인점의 위치를 결정하는 단계는 하기의 수식 5에 따라 상기 라인점의 위치를 결정할 수 있다.The calculating of the summation gradient may include calculating the summation gradient in the row direction and the summation gradient in the column direction according to Equation 1 below. In the calculating of the gradient summation size, the gradient summation size may be calculated according to Equation 2 below. The calculating of the sub-pixel level displacement may include calculating the sub-pixel level displacement according to Equations 3 and 4 below. In the determining of the position of the line point, the position of the line point may be determined according to Equation 5 below.

[수식 1][Formula 1]

Figure 112019068809869-pat00001
Figure 112019068809869-pat00001

[수식 2][Formula 2]

Figure 112019068809869-pat00002
Figure 112019068809869-pat00002

[수식 3][Equation 3]

Figure 112019068809869-pat00003
Figure 112019068809869-pat00003

[수식 4][Equation 4]

Figure 112019068809869-pat00004
Figure 112019068809869-pat00004

[수식 5][Equation 5]

Figure 112019068809869-pat00005
Figure 112019068809869-pat00005

상기 수식 1 내지 수식 5에서,

Figure 112019068809869-pat00006
는 상기 행 방향 합산 그래디언트,
Figure 112019068809869-pat00007
는 상기 열 방향 합산 그래디언트,
Figure 112019068809869-pat00008
는 행 방향 그래디언트,
Figure 112019068809869-pat00009
는 열 방향 그래디언트,
Figure 112019068809869-pat00010
는 상기 그래디언트 합산 크기,
Figure 112019068809869-pat00011
는 상기 라인픽셀의 상태가 릿지인지 밸리인지를 나타내는 정보,
Figure 112019068809869-pat00012
는 상기 행 방향 서브픽셀 레벨 변위,
Figure 112019068809869-pat00013
는 상기 열 방향 서브픽셀 레벨 변위, c는 상기 라인픽셀의 열 방향 픽셀값, r은 상기 라인픽셀의 행 방향 픽셀값,
Figure 112019068809869-pat00014
는 상기 라인점의 행 방향 위치,
Figure 112019068809869-pat00015
는 상기 라인점의 열 방향 위치를 나타낸다.In Equations 1 to 5,
Figure 112019068809869-pat00006
is the row-wise summation gradient,
Figure 112019068809869-pat00007
is the column-wise summation gradient,
Figure 112019068809869-pat00008
is the row direction gradient,
Figure 112019068809869-pat00009
is the column direction gradient,
Figure 112019068809869-pat00010
is the gradient sum size,
Figure 112019068809869-pat00011
is information indicating whether the state of the line pixel is a ridge or a valley;
Figure 112019068809869-pat00012
is the row-direction sub-pixel level displacement,
Figure 112019068809869-pat00013
is the column-direction sub-pixel level displacement, c is the column-direction pixel value of the line pixel, r is the row-direction pixel value of the line pixel,
Figure 112019068809869-pat00014
is the row direction position of the line point,
Figure 112019068809869-pat00015
denotes the column direction position of the line point.

본 발명에 따른 서브픽셀 라인위치 결정 방법은, 라인 연결부에 의해, 상기 영상에서 라인을 생성하기 위해 상기 라인점들을 연결하는 단계를 더 포함할 수 있다. 상기 라인점들을 연결하는 단계는, 상기 라인에 포함된 제1 라인점과, 상기 라인점들 중 상기 제1 라인점 근방의 제2 라인점들 간의 좌표 거리들, 그리고 상기 제1 라인점과 상기 제2 라인점들 간의 각도들을 기반으로 상기 제2 라인점들 중 상기 제1 라인점과 연결할 라인점을 결정할 수 있다.The subpixel line positioning method according to the present invention may further include connecting the line points to generate a line in the image by a line connecting unit. Connecting the line points may include: coordinate distances between a first line point included in the line, second line points near the first line point among the line points, and the first line point and the first line point A line point to be connected to the first line point among the second line points may be determined based on angles between the second line points.

상기 라인점들을 연결하는 단계는, 거리 산출부에 의해, 상기 라인에 포함된 제1 라인점과, 상기 라인점들 중 상기 제1 라인점 근방의 제2 라인점 간의 좌표 거리를 산출하는 단계; 각도 산출부에 의해, 상기 제1 라인점에서의 상기 라인의 제1 각도를 산출하고, 상기 제1 라인점과 상기 제2 라인점 간의 제2 각도를 산출하는 단계; 각도차 산출부에 의해, 상기 제1 각도와 상기 제2 각도 간의 각도차를 산출하는 단계; 연결거리 산출부에 의해, 상기 좌표 거리 및 상기 각도차를 기반으로 상기 제1 라인점과 상기 제2 라인점 간의 연결거리를 산출하는 단계; 및 라인점 결정부에 의해, 상기 제2 라인점들 중 상기 제1 라인점과 가장 연결거리가 작은 라인점을 결정하여 상기 제1 라인점과 연결하는 단계를 포함할 수 있다.The connecting of the line points may include calculating, by a distance calculator, a coordinate distance between a first line point included in the line and a second line point near the first line point among the line points; calculating, by an angle calculator, a first angle of the line at the first line point, and calculating a second angle between the first line point and the second line point; calculating an angle difference between the first angle and the second angle by an angle difference calculator; calculating, by a connection distance calculator, a connection distance between the first line point and the second line point based on the coordinate distance and the angle difference; and determining, by a line point determining unit, a line point having the smallest connection distance from the first line point among the second line points, and connecting to the first line point.

상기 좌표 거리를 산출하는 단계는 하기의 수식 6에 따라 상기 좌표 거리를 산출할 수 있다. 상기 제2 각도를 산출하는 단계는 하기의 수식 7에 따라 상기 제2 각도를 산출할 수 있다. 상기 각도차를 산출하는 단계는 하기의 수식 8에 따라 상기 각도차를 산출할 수 있다. 상기 연결거리를 산출하는 단계는 하기의 수식 9 및 수식 10에 따라 상기 연결거리를 산출할 수 있다.The calculating of the coordinate distance may include calculating the coordinate distance according to Equation 6 below. The calculating of the second angle may include calculating the second angle according to Equation 7 below. The calculating of the angle difference may include calculating the angle difference according to Equation 8 below. In the calculating of the connection distance, the connection distance may be calculated according to Equations 9 and 10 below.

[수식 6][Equation 6]

Figure 112019068809869-pat00016
Figure 112019068809869-pat00016

[수식 7][Equation 7]

Figure 112019068809869-pat00017
Figure 112019068809869-pat00017

[수식 8][Equation 8]

Figure 112019068809869-pat00018
Figure 112019068809869-pat00018

[수식 9][Equation 9]

Figure 112019068809869-pat00019
Figure 112019068809869-pat00019

[수식 10][Equation 10]

Figure 112019068809869-pat00020
Figure 112019068809869-pat00020

상기 수식 6 내지 수식 10에서,

Figure 112019068809869-pat00021
은 상기 좌표 거리,
Figure 112019068809869-pat00022
는 상기 제1 라인점의 행 방향 좌표,
Figure 112019068809869-pat00023
는 상기 제1 라인점의 열 방향 좌표,
Figure 112019068809869-pat00024
는 상기 제2 라인점의 행 방향 좌표,
Figure 112019068809869-pat00025
는 상기 제2 라인점의 열 방향 좌표,
Figure 112019068809869-pat00026
는 상기 각도차,
Figure 112019068809869-pat00027
는 상기 제1 각도,
Figure 112019068809869-pat00028
는 상기 제2 각도,
Figure 112019068809869-pat00029
는 설정된 각도차 반영 인자,
Figure 112019068809869-pat00030
는 상기 각도차에 따라 결정되는 각도거리,
Figure 112019068809869-pat00031
는 상기 연결거리를 나타낸다.In Equations 6 to 10,
Figure 112019068809869-pat00021
is the coordinate distance,
Figure 112019068809869-pat00022
is the row direction coordinate of the first line point,
Figure 112019068809869-pat00023
is the column direction coordinates of the first line point,
Figure 112019068809869-pat00024
is the row direction coordinate of the second line point,
Figure 112019068809869-pat00025
is the column direction coordinates of the second line point,
Figure 112019068809869-pat00026
is the angle difference,
Figure 112019068809869-pat00027
is the first angle,
Figure 112019068809869-pat00028
is the second angle,
Figure 112019068809869-pat00029
is the set angle difference reflection factor,
Figure 112019068809869-pat00030
is an angular distance determined according to the angular difference,
Figure 112019068809869-pat00031
represents the connection distance.

본 발명의 다른 측면에 따르면, 상기 서브픽셀 라인위치 결정 방법을 실행하기 위한 프로그램이 기록된 컴퓨터로 판독 가능한 기록 매체가 제공된다.According to another aspect of the present invention, there is provided a computer-readable recording medium in which a program for executing the sub-pixel line positioning method is recorded.

본 발명의 또 다른 측면에 따른 서브픽셀 라인위치 결정 장치는, 영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 상기 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 결정하기 위한 서브픽셀 라인위치 결정 장치로서, 상기 라인픽셀 및 상기 라인픽셀에 인접한 주변픽셀들을 포함하는 픽셀들에 대해, 인접한 픽셀들 간의 픽셀값 차이와 관련된 그래디언트들을 산출하는 그래디언트 산출부; 상기 픽셀들의 그래디언트들의 크기들을 산출하고, 상기 라인픽셀의 위치에 대한 서브픽셀 레벨 변위를 산출하기 위해 상기 픽셀들의 그래디언트들의 크기들을 기반으로 상기 픽셀들의 그래디언트들을 정규화하는 정규화부; 및 상기 라인픽셀의 위치 및 상기 서브픽셀 레벨 변위를 기반으로 서브픽셀 레벨로 상기 라인점의 위치를 결정하는 서브픽셀 라인위치 결정부를 포함한다.A sub-pixel line positioning apparatus according to another aspect of the present invention is a sub-pixel line for determining a position of a line point corresponding to a line at a sub-pixel level from a position of a line pixel determined by a pixel level related to a line in an image. A positioning device comprising: a gradient calculator for calculating gradients related to a pixel value difference between the adjacent pixels for the pixels including the line pixel and adjacent pixels adjacent to the line pixel; a normalizer for calculating the magnitudes of the gradients of the pixels and normalizing the gradients of the pixels based on the magnitudes of the gradients of the pixels to calculate a sub-pixel level displacement with respect to the position of the line pixel; and a sub-pixel line position determiner configured to determine a position of the line point on a sub-pixel level based on the position of the line pixel and the displacement of the sub-pixel level.

상기 정규화부는, 상기 픽셀들의 그래디언트들을 합산하여 합산 그래디언트를 산출하는 그래디언트 합산부; 상기 픽셀들의 그래디언트들의 크기들을 산출하는 그래디언트 크기 산출부; 상기 픽셀들의 그래디언트들의 크기들을 합산하여 그래디언트 합산 크기를 산출하는 그래디언트 크기 합산부; 및 상기 그래디언트 합산 크기에 의해 상기 합산 그래디언트를 정규화하여 상기 서브픽셀 레벨 변위를 산출하는 서브픽셀 변위 산출부를 포함할 수 있다. 상기 서브픽셀 라인위치 결정부는, 상기 라인픽셀의 위치와 상기 서브픽셀 레벨 변위를 합산하여 상기 라인점의 위치를 서브픽셀 레벨로 결정할 수 있다.The normalization unit may include: a gradient summing unit configured to calculate a summed gradient by summing the gradients of the pixels; a gradient size calculator for calculating sizes of the gradients of the pixels; a gradient size summing unit calculating a gradient sum size by summing the gradient sizes of the pixels; and a subpixel displacement calculator configured to calculate the subpixel level displacement by normalizing the summed gradient by the gradient summed size. The sub-pixel line position determiner may determine the position of the line point as the sub-pixel level by adding up the position of the line pixel and the displacement of the sub-pixel level.

본 발명에 따른 서브픽셀 라인위치 결정 장치는, 상기 영상에서 상기 라인픽셀의 위치로부터 상기 라인점의 위치를 결정하기 위한 픽셀들을 결정하는 윈도우 설정부를 더 포함할 수 있다. 상기 윈도우 설정부는, 상기 라인픽셀을 중심으로 (2K + 1) × (2K + 1) 픽셀 크기(K는 양의 정수)를 가지는 윈도우를 설정하고, 상기 윈도우 내의 픽셀들을 결정할 수 있다.The apparatus for determining a sub-pixel line position according to the present invention may further include a window setting unit for determining pixels for determining the position of the line point from the position of the line pixel in the image. The window setting unit may set a window having a size of (2K+1)×(2K+1) pixels (K being a positive integer) based on the line pixel, and determine pixels within the window.

상기 그래디언트 합산부는, 상기 픽셀들의 행 방향 그래디언트들을 합산하여 행 방향 합산 그래디언트를 산출하는 행 방향 그래디언트 합산부; 및 상기 픽셀들의 열 방향 그래디언트들을 합산하여 열 방향 합산 그래디언트를 산출하는 열 방향 그래디언트 합산부를 포함할 수 있다. 상기 그래디언트 크기 산출부는 상기 행 방향 그래디언트들의 크기들 및 상기 열 방향 그래디언트들의 크기들을 산출할 수 있다. 상기 그래디언트 크기 합산부는 상기 행 방향 그래디언트들의 크기들 및 상기 열 방향 그래디언트들의 크기들을 기반으로 상기 그래디언트 합산 크기를 산출할 수 있다. 상기 서브픽셀 변위 산출부는, 상기 행 방향 합산 그래디언트를 상기 그래디언트 합산 크기로 나누어 행 방향 서브픽셀 레벨 변위를 산출하는 행 방향 변위 산출부; 및 상기 열 방향 합산 그래디언트를 상기 그래디언트 합산 크기로 나누어 열 방향 서브픽셀 레벨 변위를 산출하는 열 방향 변위 산출부를 포함할 수 있다. 상기 서브픽셀 라인위치 결정부는, 상기 라인픽셀의 행 방향 위치와 상기 행 방향 서브픽셀 레벨 변위를 합산하여 상기 라인점의 행 방향 위치를 서브픽셀 레벨로 결정하고; 그리고 상기 라인픽셀의 열 방향 위치와 상기 열 방향 서브픽셀 레벨 변위를 합산하여 상기 라인점의 열 방향 위치를 서브픽셀 레벨로 결정할 수 있다.The gradient summing unit may include: a row-direction gradient summing unit configured to calculate a row-direction summed gradient by summing the row-direction gradients of the pixels; and a column-direction gradient summing unit configured to calculate a column-direction summed gradient by summing the column-direction gradients of the pixels. The gradient magnitude calculator may calculate magnitudes of the row-direction gradients and magnitudes of the column-direction gradients. The gradient size summing unit may calculate the gradient summation size based on the magnitudes of the row-direction gradients and the magnitudes of the column-direction gradients. The sub-pixel displacement calculator may include: a row-direction displacement calculator configured to calculate a row-direction sub-pixel level displacement by dividing the row-direction summed gradient by the gradient summed size; and a column-direction displacement calculator configured to calculate column-direction sub-pixel level displacement by dividing the column-direction summed gradient by the gradient summation size. the subpixel line position determining unit determines the row direction position of the line point as a subpixel level by adding up the row direction position of the line pixel and the row direction subpixel level displacement; The column direction position of the line point may be determined as a subpixel level by summing the column direction position of the line pixel and the column direction subpixel level displacement.

상기 정규화부는, 상기 라인픽셀의 상태가 릿지(ridge)인 경우, 상기 그래디언트 합산 크기에 제1 부호를 적용하여 상기 픽셀들의 그래디언트들을 정규화하고; 그리고 상기 라인픽셀의 상태가 밸리(valley)인 경우, 상기 그래디언트 합산 크기에 상기 제1 부호와 상이한 제2 부호를 적용하여 상기 픽셀들의 그래디언트들을 정규화할 수 있다.The normalizer may be configured to, when the state of the line pixel is a ridge, apply a first sign to the gradient sum size to normalize the gradients of the pixels; And when the state of the line pixel is a valley, the gradients of the pixels may be normalized by applying a second sign different from the first sign to the gradient sum size.

본 발명에 따른 서브픽셀 라인위치 결정 장치는, 상기 영상에서 라인을 생성하기 위해 상기 라인점들을 연결하는 라인 연결부를 더 포함할 수 있다. 상기 라인 연결부는, 상기 라인에 포함된 제1 라인점과, 상기 라인점들 중 상기 제1 라인점 근방의 제2 라인점들 간의 좌표 거리들, 그리고 상기 제1 라인점과 상기 제2 라인점들 간의 각도들을 기반으로 상기 제2 라인점들 중 상기 제1 라인점과 연결할 라인점을 결정할 수 있다.The apparatus for determining a sub-pixel line position according to the present invention may further include a line connector connecting the line points to generate a line in the image. The line connection unit may include a first line point included in the line, coordinate distances between second line points near the first line point among the line points, and the first line point and the second line point. A line point to be connected to the first line point among the second line points may be determined based on the angles between them.

상기 라인 연결부는, 상기 라인에 포함된 제1 라인점과, 상기 라인점들 중 상기 제1 라인점 근방의 제2 라인점 간의 좌표 거리를 산출하는 거리 산출부; 상기 제1 라인점에서의 상기 라인의 제1 각도를 산출하고, 상기 제1 라인점과 상기 제2 라인점 간의 제2 각도를 산출하는 각도 산출부; 상기 제1 각도와 상기 제2 각도 간의 각도차를 산출하는 각도차 산출부; 상기 좌표 거리 및 상기 각도차를 기반으로 상기 제1 라인점과 상기 제2 라인점 간의 연결거리를 산출하는 연결거리 산출부; 및 상기 제2 라인점들 중 상기 제1 라인점과 가장 연결거리가 작은 라인점을 상기 제1 라인점과 연결하는 라인점 결정부를 포함할 수 있다.The line connecting unit may include: a distance calculating unit calculating a coordinate distance between a first line point included in the line and a second line point near the first line point among the line points; an angle calculating unit calculating a first angle of the line at the first line point and calculating a second angle between the first line point and the second line point; an angle difference calculator for calculating an angle difference between the first angle and the second angle; a connection distance calculator configured to calculate a connection distance between the first line point and the second line point based on the coordinate distance and the angular difference; and a line point determining unit connecting a line point having the smallest connection distance to the first line point among the second line points with the first line point.

본 발명의 실시예에 의하면, 영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 효율적으로 결정할 수 있는 서브픽셀 라인위치 결정 장치 및 방법, 기록 매체가 제공된다.According to an embodiment of the present invention, an apparatus and method for determining a sub-pixel line position, which can efficiently determine a position of a line point corresponding to a line at a sub-pixel level from a position of a line pixel determined by a pixel level related to a line in an image, and recording method media is provided.

또한, 본 발명의 실시예에 의하면, 직진성(straightness)과 전방위성(omni-directionality)을 갖도록 라인점들을 연결할 수 있고 라인 특징들이 높은 곡률을 가지는 경우에도 라인점들을 정확하게 연결할 수 있으며, 적은 연산 처리량으로, 고속으로 고품질의 라인들을 추출할 수 있다.In addition, according to an embodiment of the present invention, line points can be connected to have straightness and omni-directionality, and even when line features have high curvature, line points can be accurately connected, and low computational throughput Therefore, high-quality lines can be extracted at high speed.

본 발명의 효과는 상술한 효과들로 제한되지 않는다. 언급되지 않은 효과들은 본 명세서 및 첨부된 도면으로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확히 이해될 수 있을 것이다.The effects of the present invention are not limited to the effects described above. Effects not mentioned will be clearly understood by those of ordinary skill in the art to which the present invention pertains from this specification and the accompanying drawings.

도 1은 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법의 흐름도이다.
도 2는 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 장치의 구성도이다.
도 3a는 본 발명의 실시예에 따라 설정된 윈도우를 예시한 도면이다.
도 3b는 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 장치를 구성하는 그래디언트 산출부의 구성도이다.
도 4는 도 1의 단계 S300의 흐름도이다.
도 5는 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 장치를 구성하는 정규화부의 구성도이다.
도 6은 도 5의 단계 S360의 순서도이다.
도 7은 도 1의 단계 S500의 흐름도이다.
도 8a는 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 장치를 구성하는 라인 연결부의 구성도이다.
도 8b는 본 발명의 실시예에 따라 라인점과 후보 라인점 간의 연결 거리를 산출하는 과정을 설명하기 위한 도면이다.
도 9는 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법의 연결거리 특성을 보여주는 도면이다.
도 10은 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법의 성능을 평가하는데 사용된 다양한 라인 특징들을 포함하는 영상들을 예시한 도면이다.
도 11은 본 발명의 실시예에 따라 서브픽셀 단위로 위치 결정된 라인점들을 나타낸 도면이다.
도 12는 본 발명의 실시예와 비교예의 제곱근 평균 오차 성능을 비교하여 나타낸 도면이다.
도 13은 다양한 노이즈 크기와 라인 두께를 가지는 영상들에 대해 본 발명의 실시예와 비교예의 평균 오차 성능을 비교하여 나타낸 도면이다.
도 14는 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법의 성능을 검증하기 위한 실험에 사용된 자연 이미지들(natural images)을 나타낸 도면이다.
도 15는 본 발명의 실시예에 따라 자연 이미지들에서 검출한 라인 픽셀들을 나타낸 것이다.
도 16은 자연 이미지들에 대한 본 발명의 실시예와 비교예의 라인점 위치 결정 결과를 나타낸 도면이다.
도 17은 노이즈가 추가된 자연 이미지들에 대한 본 발명의 실시예와 비교예의 라인점 위치 결정 결과를 나타낸 도면이다.
도 18은 본 발명의 실시예와 비교예에 따라 라인점들을 연결하여 라인을 생성한 결과를 나타낸 도면이다.
1 is a flowchart of a method for determining a sub-pixel line position according to an embodiment of the present invention.
2 is a block diagram of an apparatus for determining a sub-pixel line position according to an embodiment of the present invention.
3A is a diagram illustrating a window set according to an embodiment of the present invention.
3B is a block diagram of a gradient calculator constituting an apparatus for determining a sub-pixel line position according to an embodiment of the present invention.
4 is a flowchart of step S300 of FIG. 1 .
5 is a block diagram of a normalization unit constituting an apparatus for determining a sub-pixel line position according to an embodiment of the present invention.
6 is a flowchart of step S360 of FIG. 5 .
7 is a flowchart of step S500 of FIG. 1 .
8A is a block diagram of a line connection unit constituting a sub-pixel line positioning device according to an exemplary embodiment of the present invention.
8B is a diagram for explaining a process of calculating a connection distance between a line point and a candidate line point according to an embodiment of the present invention.
9 is a diagram illustrating a connection distance characteristic of a method for determining a sub-pixel line position according to an embodiment of the present invention.
10 is a diagram illustrating images including various line features used to evaluate the performance of a subpixel line positioning method according to an embodiment of the present invention.
11 is a diagram illustrating line points positioned in units of sub-pixels according to an embodiment of the present invention.
12 is a view showing the comparison of the root mean square error performance of the embodiment of the present invention and the comparative example.
FIG. 13 is a diagram illustrating comparison of average error performance of an embodiment of the present invention and a comparative example for images having various noise levels and line thicknesses.
14 is a diagram illustrating natural images used in an experiment for verifying the performance of the sub-pixel line positioning method according to an embodiment of the present invention.
15 shows line pixels detected in natural images according to an embodiment of the present invention.
16 is a view showing the results of determining the position of the line point in the embodiment of the present invention and the comparative example with respect to natural images.
17 is a view showing the results of determining the position of a line point in the embodiment of the present invention and the comparative example for natural images to which noise is added.
18 is a view showing a result of generating a line by connecting line points according to an embodiment and a comparative example of the present invention.

본 발명의 다른 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술하는 실시예를 참조하면 명확해질 것이다. 그러나 본 발명은 이하에서 개시되는 실시예에 한정되지 않으며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다. 만일 정의되지 않더라도, 여기서 사용되는 모든 용어들(기술 혹은 과학 용어들을 포함)은 이 발명이 속한 종래 기술에서 보편적 기술에 의해 일반적으로 수용되는 것과 동일한 의미를 갖는다. 공지된 구성에 대한 일반적인 설명은 본 발명의 요지를 흐리지 않기 위해 생략될 수 있다. 본 발명의 도면에서 동일하거나 상응하는 구성에 대하여는 가급적 동일한 도면부호가 사용된다. 본 발명의 이해를 돕기 위하여, 도면에서 일부 구성은 다소 과장되거나 축소되어 도시될 수 있다.Other advantages and features of the present invention, and a method of achieving them, will become apparent with reference to the embodiments described below in detail in conjunction with the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, and the present invention is only defined by the scope of the claims. Unless defined, all terms (including technical or scientific terms) used herein have the same meaning as commonly accepted by common skill in the prior art to which this invention belongs. A general description of known configurations may be omitted so as not to obscure the gist of the present invention. In the drawings of the present invention, the same reference numerals are used as far as possible for the same or corresponding components. In order to help the understanding of the present invention, some components in the drawings may be shown exaggerated or reduced to some extent.

본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다", "가지다" 또는 "구비하다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부분품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부분품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terms used in the present application are only used to describe specific embodiments, and are not intended to limit the present invention. The singular expression includes the plural expression unless the context clearly dictates otherwise. In the present application, terms such as "comprise", "have" or "have" are intended to designate that a feature, number, step, operation, component, part, or combination thereof described in the specification exists, but one It should be understood that it does not preclude the possibility of the presence or addition of or more other features or numbers, steps, operations, components, parts, or combinations thereof.

본 명세서 전체에서 사용되는 '~부'는 적어도 하나의 기능이나 동작을 처리하는 단위로서, 예를 들어 소프트웨어, FPGA 또는 ASIC과 같은 하드웨어 구성요소를 의미할 수 있다. 그렇지만 '~부'가 소프트웨어 또는 하드웨어에 한정되는 의미는 아니다. '~부'는 어드레싱할 수 있는 저장 매체에 있도록 구성될 수도 있고 하나 또는 그 이상의 프로세서들을 재생시키도록 구성될 수도 있다. 일 예로서 '~부'는 소프트웨어 구성요소들, 객체지향 소프트웨어 구성요소들, 클래스 구성요소들 및 태스크 구성요소들과 같은 구성요소들과, 프로세스들, 함수들, 속성들, 프로시저들, 서브루틴들, 프로그램 코드의 세그먼트들, 드라이버들, 펌웨어, 마이크로 코드, 회로, 데이터, 데이터베이스, 데이터 구조들, 테이블들, 어레이들 및 변수들을 포함할 수 있다. 구성요소와 '~부'에서 제공하는 기능은 복수의 구성요소 및 '~부'들에 의해 분리되어 수행될 수도 있고, 다른 추가적인 구성요소와 통합될 수도 있다.As used throughout this specification, '~ unit' is a unit that processes at least one function or operation, and may refer to, for example, a hardware component such as software, FPGA, or ASIC. However, '~part' is not meant to be limited to software or hardware. The '~ unit' may be configured to reside on an addressable storage medium or may be configured to refresh one or more processors. As an example, '~ part' denotes components such as software components, object-oriented software components, class components, and task components, processes, functions, properties, procedures, and sub It may include routines, segments of program code, drivers, firmware, microcode, circuitry, data, databases, data structures, tables, arrays, and variables. A function provided by a component and '~ unit' may be performed separately by a plurality of components and '~ unit', or may be integrated with other additional components.

본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법은 영상에서 미리 검출되어 픽셀 레벨로 결정된 라인픽셀에 근접한 픽셀들의 그래디언트 합의 정규화(RSG; Regularized Sum of Gradients)를 기반으로 서브픽셀 라인위치를 추정함으로써, 정확하고 빠르게 그리고 적은 연산 처리량으로 라인 위치를 서브픽셀 정확도로 결정할 수 있으며, 약한 라인신호 조건이나 강한 노이즈 조건에서도 강건하고 정확하게 서브픽셀 정확도로 라인 위치를 결정할 수 있다. 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법은 픽셀 레벨로 결정된 라인픽셀의 이웃에 있는 픽셀들의 그래디언트 벡터들의 합을 픽셀들의 그래디언트 크기들의 합으로 나누는 RSG 처리를 기반으로 라인에 속하는 라인점들의 위치를 서브픽셀 레벨로 정확하게 결정할 수 있다.The method for determining sub-pixel line positions according to an embodiment of the present invention is performed by estimating a sub-pixel line position based on a Regularized Sum of Gradients (RSG) of pixels adjacent to a line pixel that is detected in advance from an image and determined at a pixel level. , it can accurately and quickly determine the line position with sub-pixel accuracy with low computational throughput, and can determine the line position with sub-pixel accuracy robustly and accurately even under weak line signal conditions or strong noise conditions. The method for determining sub-pixel line positions according to an embodiment of the present invention is based on RSG processing that divides the sum of gradient vectors of pixels adjacent to a line pixel determined at the pixel level by the sum of gradient sizes of the pixels. The position can be accurately determined at the subpixel level.

본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법은 라인에 속하는 라인점(제1 라인점)과, 후보 라인점들(제2 라인점들) 간의 좌표 거리 및 각도차를 기반으로 제1 라인점과 제2 라인점 간의 연결 거리를 산출하고, 좌표 거리 및 각도차를 기반으로 산출된 연결 거리를 기반으로 제2 라인점들 중 제1 라인점에 연결될 제2 라인점을 결정하여 연결할 수 있다. 본 발명의 실시예에 의하면, 직진성(straightness)과 전방위성(omni-directionality)을 갖도록 라인점들을 연결하여 라인을 생성할 수 있으며, 라인 특징들이 높은 곡률을 가지는 경우에도 라인점들을 정확하게 연결함으로써, 영상에서 라인들을 고품질로 추출할 수 있다.The subpixel line position determination method according to an embodiment of the present invention provides a first line position based on a coordinate distance and an angle difference between a line point belonging to a line (a first line point) and candidate line points (second line points). The connection distance between the point and the second line point may be calculated, and a second line point to be connected to the first line point among the second line points may be determined and connected based on the connection distance calculated based on the coordinate distance and the angle difference. . According to an embodiment of the present invention, a line can be created by connecting line points to have straightness and omni-directionality, and by accurately connecting line points even when line features have a high curvature, Lines can be extracted with high quality from the image.

도 1은 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법의 흐름도이다. 도 2는 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 장치의 구성도이다. 도 1 및 도 2를 참조하면, 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 장치(10)는 영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 결정하기 위한 것으로, 윈도우 설정부(100), 그래디언트 산출부(200), 정규화부(300), 서브픽셀 라인위치 결정부(400) 및 라인 연결부(500)를 포함할 수 있다.1 is a flowchart of a method for determining a sub-pixel line position according to an embodiment of the present invention. 2 is a block diagram of an apparatus for determining a sub-pixel line position according to an embodiment of the present invention. 1 and 2 , the sub-pixel line positioning apparatus 10 according to an embodiment of the present invention subordinates the position of the line point corresponding to the line from the position of the line pixel determined by the pixel level related to the line in the image. It is for determining the pixel level, and may include a window setting unit 100 , a gradient calculating unit 200 , a normalizing unit 300 , a sub-pixel line position determining unit 400 , and a line connecting unit 500 .

윈도우 설정부(100)는 영상에서 픽셀 레벨로 검출된 라인픽셀의 위치로부터 라인점의 위치를 결정하기 위한 픽셀들을 결정할 수 있다(S100). 윈도우 설정부(100)는 라인픽셀을 중심으로 (2K + 1) × (2K + 1) 픽셀 크기(K는 양의 정수)를 가지는 윈도우(local window)를 설정하고, 윈도우 내의 (2K + 1) × (2K + 1) 개의 픽셀들을 결정할 수 있다.The window setting unit 100 may determine pixels for determining the position of the line point from the position of the line pixel detected at the pixel level in the image ( S100 ). The window setting unit 100 sets a window having a (2K + 1) × (2K + 1) pixel size (K is a positive integer) centered on the line pixel, and (2K + 1) within the window. x (2K + 1) pixels can be determined.

도 3a는 본 발명의 실시예에 따라 설정된 윈도우를 예시한 도면이다. 도 1 내지 도 3a를 참조하면, 라인픽셀(LP)에 대한 서브픽셀 레벨 라인 위치를 결정하기 위하여, 윈도우 설정부(100)는 (r,c) 좌표에 해당하는 라인픽셀(LP)을 중심으로 (2K + 1) × (2K + 1) 픽셀 크기(K는 양의 정수)를 가지는 윈도우(LW)를 설정하여, 라인픽셀(LP)과 라인픽셀(LP)에 이웃한 4K(K+1) 개의 주변픽셀들(PP)을 포함하여 총 (2K + 1) × (2K + 1) 개의 픽셀들을 선택할 수 있다.3A is a diagram illustrating a window set according to an embodiment of the present invention. 1 to 3A , in order to determine a sub-pixel level line position with respect to the line pixel LP, the window setting unit 100 centered on the line pixel LP corresponding to the (r,c) coordinates. (2K + 1) × (2K + 1) Set a window (LW) having a pixel size (K is a positive integer), so that the line pixel (LP) and the 4K (K+1) adjacent to the line pixel (LP) are A total of (2K + 1) × (2K + 1) pixels may be selected including the surrounding pixels PP.

도 3a에는 K = 1 인 윈도우(LW)의 예, 즉 3×3 픽셀 크기의 윈도우(LW)가 도시되어 있으나, 윈도우 설정부(100)는 윈도우(LW)의 K 값을 2 이상으로 설정하여 라인픽셀(LP) 부근의 픽셀들을 추출할 수도 있다. 또한, 윈도우 설정부(100)는 반드시 정방형의 윈도우(LW)를 설정하지 않고, 직사각형 또는 사각 이상의 다각형 구조의 윈도우를 설정하여 라인픽셀(LP) 부근의 픽셀들을 추출할 수도 있다.3A shows an example of a window LW in which K = 1, that is, a window LW having a size of 3×3 pixels, but the window setting unit 100 sets the K value of the window LW to 2 or more. Pixels near the line pixel LP may be extracted. Also, the window setting unit 100 may not necessarily set the square window LW, but may set a window having a rectangular or rectangular or more polygonal structure to extract pixels near the line pixel LP.

그래디언트 산출부(200)는 라인픽셀(LP) 및 라인픽셀(LP)에 인접한 주변픽셀들(PP)을 포함하는 픽셀들에 대해, 인접한 픽셀들 간의 픽셀값 차이와 관련된 그래디언트들을 산출할 수 있다(S200). 도 3b는 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 장치를 구성하는 그래디언트 산출부의 구성도이다. 도 1 내지 도 3b를 참조하면, 그래디언트 산출부(200)는 행방향 그래디언트 산출부(220)와, 열방향 그래디언트 산출부(240)를 포함할 수 있다.The gradient calculator 200 may calculate gradients related to the pixel value difference between the adjacent pixels for the pixels including the line pixel LP and the peripheral pixels PP adjacent to the line pixel LP ( S200). 3B is a block diagram of a gradient calculator constituting an apparatus for determining a sub-pixel line position according to an embodiment of the present invention. 1 to 3B , the gradient calculator 200 may include a row-direction gradient calculator 220 and a column-direction gradient calculator 240 .

행방향 그래디언트 산출부(220)는 행 방향으로 인접한 픽셀들 간의 픽셀값 차이를 산출하여 행 방향 그래디언트를 산출할 수 있다. 열방향 그래디언트 산출부(240)는 열 방향으로 인접한 픽셀들 간의 픽셀값 차이를 산출하여 열 방향 그래디언트를 산출할 수 있다.The row-direction gradient calculator 220 may calculate a row-direction gradient by calculating a pixel value difference between pixels adjacent in the row direction. The column-direction gradient calculator 240 may calculate a column-direction gradient by calculating a pixel value difference between pixels adjacent in the column direction.

정규화부(300)는 픽셀들의 그래디언트들의 크기들을 산출하고, 라인픽셀의 위치에 대한 서브픽셀 레벨 변위를 산출하기 위해 픽셀들의 그래디언트들의 크기들을 기반으로 픽셀들의 그래디언트들을 정규화할 수 있다(S300). 도 4는 도 1의 단계 S300의 흐름도이다. 도 5는 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 장치를 구성하는 정규화부의 구성도이다. 도 4 및 도 5를 참조하면, 정규화부(300)는 그래디언트 합산부(320), 그래디언트 크기 산출부(340), 그래디언트 크기 합산부(360) 및 서브픽셀 변위 산출부(380)를 포함할 수 있다.The normalizer 300 may calculate the magnitudes of the gradients of the pixels and normalize the gradients of the pixels based on the magnitudes of the gradients of the pixels in order to calculate the sub-pixel level displacement with respect to the position of the line pixel ( S300 ). 4 is a flowchart of step S300 of FIG. 1 . 5 is a block diagram of a normalization unit constituting an apparatus for determining a sub-pixel line position according to an embodiment of the present invention. Referring to FIGS. 4 and 5 , the normalization unit 300 may include a gradient summing unit 320 , a gradient size calculating unit 340 , a gradient size summing unit 360 , and a sub-pixel displacement calculating unit 380 . have.

그래디언트 합산부(320)는 픽셀들의 그래디언트들을 합산하여 합산 그래디언트를 산출할 수 있다(S320). 그래디언트 합산부(320)는 행 방향 그래디언트 합산부(322)와, 열 방향 그래디언트 합산부(324)를 포함할 수 있다. 행 방향 그래디언트 합산부(322)는 픽셀들의 행 방향 그래디언트들을 합산하여 행 방향 합산 그래디언트를 산출할 수 있다. 열 방향 그래디언트 합산부(324)는 픽셀들의 열 방향 그래디언트들을 합산하여 열 방향 합산 그래디언트를 산출할 수 있다. 실시예에서, 그래디언트 합산부(320)는 하기의 수식 1에 따라 행 방향 합산 그래디언트 및 열 방향 합산 그래디언트를 산출할 수 있다.The gradient summing unit 320 may calculate the summed gradient by summing the gradients of pixels ( S320 ). The gradient summation unit 320 may include a row direction gradient summation unit 322 and a column direction gradient summation unit 324 . The row-direction gradient summing unit 322 may calculate the row-direction summed gradient by summing the row-direction gradients of pixels. The column-direction gradient summing unit 324 may calculate the column-direction summed gradient by summing the column-direction gradients of pixels. In an embodiment, the gradient summation unit 320 may calculate the summation gradient in the row direction and the summation gradient in the column direction according to Equation 1 below.

[수식 1][Formula 1]

Figure 112019068809869-pat00032
Figure 112019068809869-pat00032

수식 1에서,

Figure 112019068809869-pat00033
는 행 방향 합산 그래디언트,
Figure 112019068809869-pat00034
는 열 방향 합산 그래디언트,
Figure 112019068809869-pat00035
는 행 방향 그래디언트,
Figure 112019068809869-pat00036
는 열 방향 그래디언트를 나타낸다. (r,c)는 라인픽셀의 좌표이다. 그래디언트 합산부(320)는 (2K + 1) × (2K + 1) 개(K는 양의 정수)의 픽셀들의 크기를 가지는 로컬 윈도우(local window) 내에서 행 방향 그래디언트들의 합인 행 방향 합산 그래디언트
Figure 112019068809869-pat00037
와, 열 방향 그래디언트들의 합인 열 방향 합산 그래디언트
Figure 112019068809869-pat00038
를 각각 계산할 수 있다.In Equation 1,
Figure 112019068809869-pat00033
is the row-wise summation gradient,
Figure 112019068809869-pat00034
is the column-wise summation gradient,
Figure 112019068809869-pat00035
is the row direction gradient,
Figure 112019068809869-pat00036
represents the column direction gradient. (r,c) is the coordinates of the line pixel. The gradient summation unit 320 generates a row-direction summation gradient that is a sum of row-direction gradients within a local window having a size of (2K + 1) × (2K + 1) pixels (K is a positive integer).
Figure 112019068809869-pat00037
and a column-direction summed gradient that is the sum of the column-direction gradients
Figure 112019068809869-pat00038
can be calculated individually.

그래디언트 크기 산출부(340)는 픽셀들의 그래디언트들의 크기들을 산출할 수 있다(S340). 그래디언트 크기 산출부(340)는 행 방향 그래디언트들의 크기들 및 열 방향 그래디언트들의 크기들을 산출할 수 있다. 그래디언트 크기 합산부(360)는 픽셀들의 그래디언트들의 크기들을 합산하여 그래디언트 합산 크기를 산출할 수 있다(S360). 그래디언트 크기 합산부(360)는 행 방향 그래디언트들의 크기들 및 열 방향 그래디언트들의 크기들을 기반으로 그래디언트 합산 크기를 산출할 수 있다. 실시예에서, 그래디언트 크기 합산부(360)는 하기의 수식 2에 따라 로컬 윈도우 내의 그래디언트 크기들의 합을 계산하여 그래디언트 합산 크기를 산출할 수 있다.The gradient size calculator 340 may calculate the sizes of the gradients of the pixels ( S340 ). The gradient size calculator 340 may calculate the magnitudes of the row-direction gradients and the magnitudes of the column-direction gradients. The gradient size summing unit 360 may calculate the gradient sum size by summing the sizes of the gradients of the pixels ( S360 ). The gradient size summing unit 360 may calculate the gradient summation size based on the magnitudes of the row-direction gradients and the magnitudes of the column-direction gradients. In an embodiment, the gradient size summing unit 360 may calculate the gradient sum size by calculating the sum of the gradient sizes in the local window according to Equation 2 below.

[수식 2][Formula 2]

Figure 112019068809869-pat00039
Figure 112019068809869-pat00039

수식 2에서,

Figure 112019068809869-pat00040
는 행 방향 그래디언트,
Figure 112019068809869-pat00041
는 열 방향 그래디언트,
Figure 112019068809869-pat00042
는 그래디언트 합산 크기를 나타낸다. (r,c)는 라인픽셀의 좌표이다. 그래디언트 합산 크기
Figure 112019068809869-pat00043
는 서브픽셀 라인 위치들의 그래디언트들의 합(합산 그래디언트)을 정규화하는데 사용된다.In Equation 2,
Figure 112019068809869-pat00040
is the row direction gradient,
Figure 112019068809869-pat00041
is the column direction gradient,
Figure 112019068809869-pat00042
represents the gradient summation size. (r,c) is the coordinates of the line pixel. Gradient sum size
Figure 112019068809869-pat00043
is used to normalize the sum (sum gradient) of the gradients of subpixel line positions.

도 6은 도 5의 단계 S360의 순서도이다. 도 2 및 도 6을 참조하면, 정규화부(300)는 라인픽셀의 상태가 릿지(ridge)인 경우, 그래디언트 합산 크기에 제1 부호를 적용하여 픽셀들의 그래디언트들을 정규화하고(S362), 라인픽셀의 상태가 밸리(valley)인 경우, 그래디언트 합산 크기에 제1 부호와 상이한 제2 부호를 적용하여 픽셀들의 그래디언트들을 정규화할 수 있다(S364).6 is a flowchart of step S360 of FIG. 5 . 2 and 6, when the state of the line pixel is a ridge, the normalizer 300 normalizes the gradients of the pixels by applying the first sign to the gradient summed size (S362), and When the state is valley, the gradients of the pixels may be normalized by applying a second sign different from the first sign to the gradient sum size ( S364 ).

다시 도 4 및 도 5를 참조하면, 서브픽셀 변위 산출부(380)는 그래디언트 합산 크기에 의해 합산 그래디언트를 정규화하여 서브픽셀 레벨 변위를 산출할 수 있다(S380). 서브픽셀 변위 산출부(380)는 행 방향 변위 산출부(382)와, 열 방향 변위 산출부(384)를 포함할 수 있다. 행 방향 변위 산출부(382)는 행 방향 합산 그래디언트를 그래디언트 합산 크기로 나누어 행 방향 서브픽셀 레벨 변위를 산출할 수 있다. 열 방향 변위 산출부(384)는 열 방향 합산 그래디언트를 그래디언트 합산 크기로 나누어 열 방향 서브픽셀 레벨 변위를 산출할 수 있다. 실시예에서, 서브픽셀 변위 산출부(380)는 하기의 수식 3 및 수식 4에 따라 서브픽셀 레벨 변위를 산출할 수 있다.Referring back to FIGS. 4 and 5 , the sub-pixel displacement calculator 380 may calculate the sub-pixel-level displacement by normalizing the summed gradient by the gradient sum size ( S380 ). The sub-pixel displacement calculator 380 may include a row-direction displacement calculator 382 and a column-direction displacement calculator 384 . The row-direction displacement calculator 382 may calculate the row-direction sub-pixel level displacement by dividing the row-direction summed gradient by the gradient summation size. The column-direction displacement calculator 384 may calculate the column-direction sub-pixel level displacement by dividing the column-direction summed gradient by the gradient summation size. In an embodiment, the sub-pixel displacement calculator 380 may calculate the sub-pixel-level displacement according to Equations 3 and 4 below.

[수식 3][Equation 3]

Figure 112019068809869-pat00044
Figure 112019068809869-pat00044

[수식 4][Equation 4]

Figure 112019068809869-pat00045
Figure 112019068809869-pat00045

수식 3 및 수식 4에서,

Figure 112019068809869-pat00046
는 행 방향 합산 그래디언트,
Figure 112019068809869-pat00047
는 열 방향 합산 그래디언트,
Figure 112019068809869-pat00048
는 라인픽셀의 상태가 릿지인지 밸리인지를 나타내는 정보,
Figure 112019068809869-pat00049
는 행 방향 서브픽셀 레벨 변위,
Figure 112019068809869-pat00050
는 열 방향 서브픽셀 레벨 변위, c는 라인픽셀의 열 방향 좌표, r은 라인픽셀의 행 방향 좌표를 나타낸다. 라인픽셀의 상태를 결정하기 위하여, 아래와 같이 2개의 커널(kernel)이 정의되고, 2개의 커널을 기반으로 하기의 수식에 따라
Figure 112019068809869-pat00051
가 산출될 수 있다.In Equation 3 and Equation 4,
Figure 112019068809869-pat00046
is the row-wise summation gradient,
Figure 112019068809869-pat00047
is the column-wise summation gradient,
Figure 112019068809869-pat00048
is information indicating whether the state of the line pixel is a ridge or a valley,
Figure 112019068809869-pat00049
is the row-wise subpixel level displacement,
Figure 112019068809869-pat00050
is a column-direction sub-pixel level displacement, c is a column-direction coordinate of a line pixel, and r is a row-direction coordinate of a line pixel. In order to determine the state of the line pixel, two kernels are defined as follows, and based on the two kernels, according to the following equation
Figure 112019068809869-pat00051
can be calculated.

Figure 112019068809869-pat00052
,
Figure 112019068809869-pat00053
Figure 112019068809869-pat00052
,
Figure 112019068809869-pat00053

Figure 112019068809869-pat00054
Figure 112019068809869-pat00054

Figure 112019068809869-pat00055
값이 0 보다 크면 라인픽셀은 릿지로 분류되고, 그렇지 않으면 라인픽셀은 밸리로 분류될 수 있다. 서브픽셀 변위 산출부(380)는
Figure 112019068809869-pat00056
값을 기반으로 수식 3에 따라 정규화값의 부호를 결정하여 그래디언트 합산 크기에 제1 부호(예를 들어, 양의 부호) 또는 제2 부호(예를 들어, 음의 부호)를 적용하고, 수식 4에 따라 행 방향 합산 그래디언트 및 열 방향 합산 그래디언트를 각각 정규화값의 부호가 적용된 그래디언트 합산 크기 D(r,c)로 나누어 정규화함으로써, 서브픽셀 레벨 변위를 산출할 수 있다. 서브픽셀 레벨 변위
Figure 112019068809869-pat00057
,
Figure 112019068809869-pat00058
Figure 112019068809869-pat00059
,
Figure 112019068809869-pat00060
, 및
Figure 112019068809869-pat00061
에 따라 결정될 수 있다. 서브픽셀 레벨 변위는 라인픽셀의 중심에 대한 상대 변위값을 의미한다.
Figure 112019068809869-pat00055
If the value is greater than 0, the line pixel may be classified as a ridge, otherwise the line pixel may be classified as a valley. The sub-pixel displacement calculator 380 is
Figure 112019068809869-pat00056
Based on the value, the sign of the normalized value is determined according to Equation 3 to apply a first sign (eg, a positive sign) or a second sign (eg, a negative sign) to the gradient sum size, and Equation 4 Sub-pixel level displacement can be calculated by dividing the summation gradient in the row direction and the summation gradient in the column direction by the gradient summation size D(r,c) to which the sign of the normalized value is applied. Subpixel level displacement
Figure 112019068809869-pat00057
,
Figure 112019068809869-pat00058
is
Figure 112019068809869-pat00059
,
Figure 112019068809869-pat00060
, and
Figure 112019068809869-pat00061
can be determined according to The sub-pixel level displacement means a displacement value relative to the center of the line pixel.

서브픽셀 라인위치 결정부(400)는 라인픽셀의 위치 및 서브픽셀 레벨 변위를 기반으로 서브픽셀 레벨로 라인점의 위치를 결정할 수 있다(S400). 서브픽셀 라인위치 결정부(400)는 라인픽셀의 위치와 서브픽셀 레벨 변위를 합산하여 라인점의 위치를 서브픽셀 레벨로 결정할 수 있다. 서브픽셀 라인위치 결정부(400)는 라인픽셀의 행 방향 위치와 행 방향 서브픽셀 레벨 변위를 합산하여 라인점의 행 방향 위치를 서브픽셀 레벨로 결정하고, 라인픽셀의 열 방향 위치와 열 방향 서브픽셀 레벨 변위를 합산하여 라인점의 열 방향 위치를 서브픽셀 레벨로 결정할 수 있다. 실시예에서, 서브픽셀 라인위치 결정부(400)는 하기의 수식 5에 따라 라인점의 위치(서브픽셀 라인좌표)를 결정할 수 있다.The sub-pixel line position determiner 400 may determine the position of the line point at the sub-pixel level based on the position of the line pixel and the displacement of the sub-pixel level ( S400 ). The sub-pixel line position determiner 400 may determine the position of the line point as the sub-pixel level by adding up the position of the line pixel and the displacement at the sub-pixel level. The subpixel line position determining unit 400 determines the row direction position of the line point as the subpixel level by adding up the row direction position of the line pixel and the row direction subpixel level displacement, and the column direction position of the line pixel and the column direction sub By summing the pixel-level displacements, the column-wise position of the line point may be determined at the sub-pixel level. In an embodiment, the sub-pixel line position determiner 400 may determine the position of the line point (sub-pixel line coordinates) according to Equation 5 below.

[수식 5][Equation 5]

Figure 112019068809869-pat00062
Figure 112019068809869-pat00062

수식 5에서, c는 라인픽셀의 열 방향 좌표, r은 라인픽셀의 행 방향 좌표,

Figure 112019068809869-pat00063
는 행 방향 서브픽셀 레벨 변위,
Figure 112019068809869-pat00064
는 열 방향 서브픽셀 레벨 변위,
Figure 112019068809869-pat00065
는 라인점의 행 방향 위치,
Figure 112019068809869-pat00066
는 라인점의 열 방향 위치를 나타낸다.In Equation 5, c is the column direction coordinate of the line pixel, r is the row direction coordinate of the line pixel,
Figure 112019068809869-pat00063
is the row-wise subpixel level displacement,
Figure 112019068809869-pat00064
is the column-wise subpixel level displacement,
Figure 112019068809869-pat00065
is the row position of the line point,
Figure 112019068809869-pat00066
indicates the column direction position of the line point.

라인 연결부(500)는 영상에서 라인을 생성하기 위해 라인점들을 연결할 수 있다. 라인 연결부(500)는 라인에 포함된 제1 라인점과, 라인점들 중 제1 라인점 근방의 제2 라인점들 간의 좌표 거리들, 그리고 제1 라인점과 제2 라인점들 간의 각도들을 기반으로 제2 라인점들 중 제1 라인점과 연결할 라인점을 결정할 수 있다.The line connecting unit 500 may connect line points to generate a line in the image. The line connecting unit 500 calculates the coordinate distances between the first line point included in the line, the second line points in the vicinity of the first line point among the line points, and the angles between the first line point and the second line points. Based on the second line point, a line point to be connected to the first line point may be determined.

도 7은 도 1의 단계 S500의 흐름도이다. 도 8a는 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 장치를 구성하는 라인 연결부의 구성도이다. 도 8b는 본 발명의 실시예에 따라 라인점과 후보 라인점 간의 연결 거리를 산출하는 과정을 설명하기 위한 도면이다. 도 7 내지 도 8b를 참조하면, 라인 연결부(500)는 거리 산출부(510), 각도 산출부(520), 각도차 산출부(530), 연결거리 산출부(540) 및 라인점 결정부(550)를 포함할 수 있다.7 is a flowchart of step S500 of FIG. 1 . 8A is a block diagram of a line connection unit constituting a sub-pixel line positioning device according to an exemplary embodiment of the present invention. 8B is a diagram for explaining a process of calculating a connection distance between a line point and a candidate line point according to an embodiment of the present invention. 7 to 8B , the line connecting unit 500 includes a distance calculating unit 510 , an angle calculating unit 520 , an angle difference calculating unit 530 , a connecting distance calculating unit 540 and a line point determining unit ( 550) may be included.

거리 산출부(510)는 라인(LN)에 포함된 제1 라인점(P1)과, 라인점들 중 제1 라인점(P1) 근방의 각 제2 라인점(P2, P3) 간의 좌표 거리를 산출할 수 있다(S510). 거리 산출부(510)는 하기의 수식 6에 따라 좌표 거리를 산출할 수 있다.The distance calculator 510 calculates the coordinate distance between the first line point P1 included in the line LN and each of the second line points P2 and P3 near the first line point P1 among the line points. can be calculated (S510). The distance calculator 510 may calculate the coordinate distance according to Equation 6 below.

[수식 6][Equation 6]

Figure 112019068809869-pat00067
Figure 112019068809869-pat00067

수식 6에서,

Figure 112019068809869-pat00068
은 좌표 거리,
Figure 112019068809869-pat00069
는 제1 라인점(P1)의 행 방향 좌표,
Figure 112019068809869-pat00070
는 제1 라인점(P1)의 열 방향 좌표,
Figure 112019068809869-pat00071
는 제2 라인점(후보 라인점)(P2, P3)의 행 방향 좌표,
Figure 112019068809869-pat00072
는 제2 라인점(P2, P3)의 열 방향 좌표를 나타낸다.
Figure 112019068809869-pat00073
는 제1 라인점(P1)의 좌표이고,
Figure 112019068809869-pat00074
는 제2 라인점(P2, P3)의 좌표이다.In Equation 6,
Figure 112019068809869-pat00068
is the coordinate distance,
Figure 112019068809869-pat00069
is the row direction coordinate of the first line point P1,
Figure 112019068809869-pat00070
is the column direction coordinate of the first line point P1,
Figure 112019068809869-pat00071
is the row direction coordinates of the second line point (candidate line point) (P2, P3),
Figure 112019068809869-pat00072
represents the column direction coordinates of the second line points P2 and P3.
Figure 112019068809869-pat00073
is the coordinates of the first line point P1,
Figure 112019068809869-pat00074
is the coordinates of the second line points P2 and P3.

각도 산출부(520)는 제1 라인점(P1)에서의 라인(LN)의 제1 각도를 산출하고, 제1 라인점(P1)과 제2 라인점(P2, P3) 간의 제2 각도를 산출할 수 있다(S520). 실시예에서, 각도 산출부(520)는 하기의 수식 7에 따라 제2 각도(후보 방향 각도)를 산출할 수 있다.The angle calculator 520 calculates a first angle of the line LN at the first line point P1 and calculates a second angle between the first line point P1 and the second line points P2 and P3. can be calculated (S520). In an embodiment, the angle calculator 520 may calculate the second angle (candidate direction angle) according to Equation 7 below.

[수식 7][Equation 7]

Figure 112019068809869-pat00075
Figure 112019068809869-pat00075

수식 7에서,

Figure 112019068809869-pat00076
는 제1 라인점(P1)의 행 방향 좌표,
Figure 112019068809869-pat00077
는 제1 라인점(P1)의 열 방향 좌표,
Figure 112019068809869-pat00078
는 제2 라인점(P2, P3)의 행 방향 좌표,
Figure 112019068809869-pat00079
는 제2 라인점(P2, P3)의 열 방향 좌표,
Figure 112019068809869-pat00080
는 제2 각도를 나타낸다. 각도차 산출부(530)는 제1 각도(현재 라인의 방향 각도)와 제2 각도(후보 방향 각도) 간의 각도차를 산출할 수 있다(S530). 각도차 산출부(530)는 하기의 수식 8에 따라 각도차를 산출할 수 있다.In Equation 7,
Figure 112019068809869-pat00076
is the row direction coordinate of the first line point P1,
Figure 112019068809869-pat00077
is the column direction coordinate of the first line point P1,
Figure 112019068809869-pat00078
is the row direction coordinates of the second line point (P2, P3),
Figure 112019068809869-pat00079
is the column direction coordinates of the second line point (P2, P3),
Figure 112019068809869-pat00080
represents the second angle. The angle difference calculator 530 may calculate an angle difference between the first angle (the angle in the direction of the current line) and the second angle (the angle in the direction of the candidate) ( S530 ). The angle difference calculator 530 may calculate the angle difference according to Equation 8 below.

[수식 8][Equation 8]

Figure 112019068809869-pat00081
Figure 112019068809869-pat00081

수식 8에서,

Figure 112019068809869-pat00082
는 각도차,
Figure 112019068809869-pat00083
는 제1 각도,
Figure 112019068809869-pat00084
는 제2 각도를 나타낸다. 연결거리 산출부(540)는 좌표 거리 및 각도차를 기반으로 제1 라인점(P1)과 제2 라인점(P2, P3) 간의 연결거리를 산출할 수 있다(S540). 연결거리 산출부(540)는 하기의 수식 9 및 수식 10에 따라 연결거리를 산출할 수 있다.In Equation 8,
Figure 112019068809869-pat00082
is the angle difference,
Figure 112019068809869-pat00083
is the first angle,
Figure 112019068809869-pat00084
represents the second angle. The connection distance calculator 540 may calculate the connection distance between the first line point P1 and the second line point P2 and P3 based on the coordinate distance and the angle difference (S540). The connection distance calculation unit 540 may calculate the connection distance according to Equations 9 and 10 below.

[수식 9][Equation 9]

Figure 112019068809869-pat00085
Figure 112019068809869-pat00085

[수식 10][Equation 10]

Figure 112019068809869-pat00086
Figure 112019068809869-pat00086

수식 9 및 수식 10에서,

Figure 112019068809869-pat00087
는 각도차,
Figure 112019068809869-pat00088
는 설정된 각도차 반영 인자,
Figure 112019068809869-pat00089
는 각도차(
Figure 112019068809869-pat00090
)에 따라 결정되는 각도거리,
Figure 112019068809869-pat00091
는 연결거리를 나타낸다.
Figure 112019068809869-pat00092
는 연결 거리에 대한 각도 거리의 영향을 조절하기 위한 인자이다.
Figure 112019068809869-pat00093
는 예를 들어, 3.0으로 설정될 수 있다. 라인점 결정부(550)는 제2 라인점들(후보 라인점들) 중 제1 라인점(P1)과 가장 연결거리가 작은 라인점(최소 연결거리를 가지는 라인점)을 제1 라인점(P1)과 연결할 수 있다(S550). 다음으로, 선택된 제2 라인점의 방향 및 위치(좌표)는 다음 라인점을 연결을 위한 제1 라인점의 방향 및 위치로 갱신될 수 있다.In Equation 9 and Equation 10,
Figure 112019068809869-pat00087
is the angle difference,
Figure 112019068809869-pat00088
is the set angle difference reflection factor,
Figure 112019068809869-pat00089
is the angle difference (
Figure 112019068809869-pat00090
), the angular distance determined by
Figure 112019068809869-pat00091
represents the connection distance.
Figure 112019068809869-pat00092
is a factor for controlling the effect of the angular distance on the connection distance.
Figure 112019068809869-pat00093
may be set to 3.0, for example. The line point determiner 550 selects the line point having the smallest connection distance from the first line point P1 among the second line points (candidate line points) (the line point having the minimum connection distance) to the first line point ( P1) and can be connected (S550). Next, the direction and location (coordinates) of the selected second line point may be updated with the direction and location of the first line point for connecting the next line point.

도 9는 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법의 연결거리 특성을 보여주는 도면이다. 도 9의 (a)는 Steger 방법에 의한 연결거리 특성을 나타낸 도면이고, 도 9의 (b)는 상기 수식 10에 따른 연결거리 특성을 나타낸 도면이다. 도 9의 (b)에 도시된 그래프에서 가로축은 좌표거리(기하거리)

Figure 112019068809869-pat00094
, 세로축은 각도차(각도거리)
Figure 112019068809869-pat00095
, 색상 스케일은 연결거리 d를 나타낸다. 반투명한 백색 영역은 연결거리가 3.0 이하인 영역을 나타낸다. 도 9의 (b)에 도시된 바와 같이, 본 발명의 실시예에 따른 방법은 좌표거리
Figure 112019068809869-pat00096
가 커질수록(예를 들어, 0.8 픽셀보다 큰 경우), 좌표거리
Figure 112019068809869-pat00097
보다 직진성(straightness)을 더 중요한 인자로 고려한다.9 is a diagram illustrating a connection distance characteristic of a method for determining a sub-pixel line position according to an embodiment of the present invention. Fig. 9 (a) is a diagram showing the connection distance characteristic by the Steger method, and Fig. 9 (b) is a diagram showing the connection distance characteristic according to Equation 10 above. In the graph shown in (b) of FIG. 9, the horizontal axis is the coordinate distance (geometric distance)
Figure 112019068809869-pat00094
, the vertical axis is the angle difference (angle distance)
Figure 112019068809869-pat00095
, the color scale represents the connection distance d. A translucent white area indicates an area with a connection distance of 3.0 or less. As shown in (b) of Figure 9, the method according to the embodiment of the present invention is a coordinate distance
Figure 112019068809869-pat00096
The larger (for example, greater than 0.8 pixels), the greater the coordinate distance.
Figure 112019068809869-pat00097
Consider straightness as a more important factor.

또한, Steger 방법은 현재 라인 방향으로부터 90° 이상 벗어난 라인점들을 후보 연결 위치들로 고려하지 않지만, 본 발명은 현재 라인점과의 기하 거리가 비교적 작은 라인점들(예를 들어, 0.8 픽셀 미만)인 경우에는 이러한 라인점들이 현재 라인점의 라인 방향으로부터 90° 이상 벗어나 있더라도 후보 연결 위치들로 고려할 수 있다. 따라서, 직진성(straightness)과 전방위성(omni-directionality)을 갖도록 라인점들을 연결하여 라인점들이 끊어지는 현상을 방지할 수 있다.In addition, the Steger method does not consider line points deviated by more than 90° from the current line direction as candidate connection positions, but the present invention provides line points with a relatively small geometric distance from the current line point (eg, less than 0.8 pixels). In the case of , these line points may be considered as candidate connection positions even if they are more than 90° away from the line direction of the current line point. Accordingly, it is possible to prevent a phenomenon in which the line points are cut by connecting the line points to have straightness and omni-directionality.

본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법의 성능을 평가하기 위한 시뮬레이션을 수행하였다. 서브픽셀 라인위치 결정 방법의 테스트를 위해, 도 10에 도시된 바와 같이, 블러 인자(blurring factor)가 1 을 가지고, 다양한 라인 두께들, 라인 각도(line normal angle), 노이즈 세기(noise strength)를 가지는 라인 특징들을 포함하도록 영상들을 생성하였다. 도 10은 101×101 픽셀 크기를 가지는 4개의 모의 라인 이미지들의 예시도이다. 도 10의 (a) 내지 (d)에 도시된 4개의 모의 라인 이미지들의 라인 두께는 6 픽셀 크기, 노이즈 세기는 8/255, 라인 각도는 각각 0°, 23°, 47°, 82°이다. A simulation was performed to evaluate the performance of the sub-pixel line positioning method according to the embodiment of the present invention. For testing the sub-pixel line positioning method, as shown in FIG. 10 , a blurring factor of 1 was used, and various line thicknesses, line normal angles, and noise strength were measured. Images were generated to include line features with branches. 10 is an exemplary diagram of four simulated line images having a size of 101×101 pixels. The line thickness of the four simulated line images shown in FIGS. 10A to 10D is 6 pixel size, the noise intensity is 8/255, and the line angles are 0°, 23°, 47°, and 82°, respectively.

실험에 앞서, 먼저 영상 내 픽셀들의 그래디언트들을 기반으로 라인 픽셀들을 검출하였다. 일 예로, 라인 픽셀들은 인접한 픽셀들의 그래디언트 각도 차들의 합을 기반으로 선정될 수 있으나, 라인 픽셀들은 이러한 방법에 제한되지 않고 다양한 방법으로 선정될 수 있다. 라인 픽셀들은 픽셀 단위의 위치로 결정될 수 있다. 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법(이하, 'RSG'로 약칭될 수 있음)과의 비교를 위해, "An unbiased detector of curvilinear structures" (IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 20, no. 2, pp. 113-125, 1998, C. Steger)에 개시된 테일러 급수 근사법(Taylor series Approximation)(이하, 'TA'로 약칭될 수 있음)을 비교예로 하여 서브픽셀 라인위치를 결정하였다.Prior to the experiment, line pixels were first detected based on the gradients of pixels in the image. For example, line pixels may be selected based on the sum of gradient angle differences of adjacent pixels, but line pixels are not limited to this method and may be selected in various ways. Line pixels may be determined in pixel units. For comparison with the subpixel line positioning method (hereinafter, may be abbreviated as 'RSG') according to an embodiment of the present invention, "An unbiased detector of curvilinear structures" (IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 20, no. 2, pp. 113-125, 1998, C. Steger), using the Taylor series approximation (hereinafter, may be abbreviated as 'TA') as a comparative example, sub-pixel line positions was decided.

도 11은 본 발명의 실시예에 따라 서브픽셀 단위로 위치 결정된 라인점들을 나타낸 도면이다. 도 11의 (a) 내지 (f)는 각각 라인 두께가 1, 2, 3, 4, 6, 8 인 모의 영상들로, 노이즈 세기는 모두 30/255 이다. 도 11의 (a) 내지 (f)에서 라인 각도는 각각 0°, 15°, 30°, 45°, 60°, 75° 이다. 도 11의 (a) 내지 (f)에 도시된 영상들에서 적색 세모들은 본 발명의 실시예(RSG)에 따라 서브픽셀 단위로 위치 결정된 라인점들, 청색 네모들은 비교예(TA)에 따라 서브픽셀 단위로 위치 결정된 라인점들, 녹색 화살표들은 그레디언트 벡터들을 나타낸 것이다.11 is a diagram illustrating line points positioned in units of sub-pixels according to an embodiment of the present invention. 11 (a) to (f) are simulation images having line thicknesses of 1, 2, 3, 4, 6, and 8, respectively, and the noise intensity is 30/255. In (a) to (f) of FIG. 11 , the line angles are 0°, 15°, 30°, 45°, 60°, and 75°, respectively. In the images shown in (a) to (f) of FIG. 11 , red triangles are line points positioned in sub-pixel units according to the embodiment (RSG) of the present invention, and blue squares are sub-pixels according to the comparative example (TA). Line dots positioned in units of pixels, green arrows indicate gradient vectors.

도 11에 도시된 결과로부터 본 발명의 실시예에 따른 서브픽셀 라인위치 결정 방법이 다양한 경우들에서 비교예(TA) 보다 우수한 라인점 위치 결정 성능을 갖는 것을 알 수 있다. 특히 라인 두께가 8 픽셀이고, 라인 각도가 75°인 도 11의 (f)와 같이 라인 신호가 상대적으로 약한 경우, 본 발명의 실시예에 따른 방법은 비교예보다 직진성을 가지는 것으로 정확하게 라인점들을 결정하였으며, 비교예보다 훨씬 높은 정확성을 가지는 것을 알 수 있다.It can be seen from the results shown in FIG. 11 that the subpixel line positioning method according to the embodiment of the present invention has superior line point positioning performance than the comparative example TA in various cases. In particular, when the line signal is relatively weak as shown in FIG. 11(f) where the line thickness is 8 pixels and the line angle is 75°, the method according to the embodiment of the present invention accurately determines the line points by having straightness than the comparative example. was determined, and it can be seen that it has much higher accuracy than the comparative example.

제곱근 평균 오차(RMSE; root mean squared errors)를 기반으로 본 발명의 실시예(RSG)와 비교예(TA)의 성능을 비교하여 도 12에 나타내었다. 도 12의 (a) 내지 (d)는 노이즈 크기가 10/255 인 경우이고, 도 12의 (e) 내지 (h)는 노이즈 크기가 30/255 인 경우이고, 도 12의 (i) 내지 (l)은 노이즈 크기가 60/255 인 경우이다. 도 12의 (a), (e), (i)는 라인 두께가 2 픽셀인 경우이고, 도 12의 (b), (f), (j)는 라인 두께가 4 픽셀인 경우이고, 도 12의 (c), (g), (k)는 라인 두께가 6 픽셀인 경우이고, 도 12의 (d), (h), (l)은 라인 두께가 8 픽셀인 경우이다. 본 발명의 실시예에 따른 방법(RSG)은 다양한 경우들에서 비교예(TA) 보다 낮은 RMSE를 나타냈으며, 특히 라인 두께가 크고 노이즈 크기가 커서 라인 특징이 상대적으로 약한 열악한 경우들에서 비교예(TA) 보다 라인점들의 위치들을 서브픽셀 단위로 보다 정확하게 측정하였다.The performance of the example (RSG) of the present invention and the comparative example (TA) are compared based on root mean squared errors (RMSE) and are shown in FIG. 12 . 12 (a) to (d) are cases in which the noise level is 10/255, FIGS. 12 (e) to (h) are cases in which the noise level is 30/255, and FIGS. 12 (i) to ( l) is a case where the noise level is 60/255. 12(a), (e), and (i) show a case where the line thickness is 2 pixels, FIGS. 12(b), (f), and (j) show a case where the line thickness is 4 pixels, and FIG. 12 (c), (g), and (k) of FIG. 12 show a case where the line thickness is 6 pixels, and (d), (h) and (l) of FIG. 12 show a case where the line thickness is 8 pixels. The method (RSG) according to the embodiment of the present invention exhibited a lower RMSE than that of the comparative example (TA) in various cases, and in particular, the comparative example ( TA), the positions of the line points were more accurately measured in units of sub-pixels.

본 발명의 실시예에 따른 방법(RGS)와 비교예(TA)의 성능 평가를 위한 모의 실험을 하였다. 다양한 노이즈 크기와 라인 두께에 대해 RMSE들의 평균을 산출하여 도 13에 도시하였다. 도 13의 첫번째 열에 도시된 (a), (d), (g), (j)는 비교예(TA)에 대한 결과이고, 도 13의 두번째 열에 도시된 (b), (e), (h), (k)는 본 발명의 실시예(RSG)에 대한 결과이다. 도 13의 세번째 열에 도시된 (c), (f), (i), (l)은 비교예(TA)와 본 발명의 실시예(RSG)의 RMSE 평균값의 차이로서, Z축 값이 클수록 본 발명의 실시예(RSG)의 RMSE 평균값이 낮은 것, 다시 말해 본 발명의 실시예(RSG)의 성능이 비교예(TA) 보다 우수한 것을 의미한다.A simulation experiment was performed to evaluate the performance of the method (RGS) and the comparative example (TA) according to the embodiment of the present invention. The average of the RMSEs for various noise levels and line thicknesses was calculated and shown in FIG. 13 . (a), (d), (g), and (j) shown in the first column of FIG. 13 are results for the comparative example (TA), and (b), (e), (h) shown in the second column of FIG. 13 ) and (k) are results for Example (RSG) of the present invention. (c), (f), (i), and (l) shown in the third column of FIG. 13 are the differences between the RMSE average values of the comparative example (TA) and the example (RSG) of the present invention. It means that the RMSE average value of the inventive example (RSG) is low, that is, the performance of the inventive example (RSG) is superior to that of the comparative example (TA).

도 13의 (a), (b), (c)는 평활 인자(smoothing factor)를 0.5 로 한 경우이고, 도 13의 (d), (e), (f)는 평활 인자를 0.75 로 한 경우이고, 도 13의 (g), (h), (i)는 평활 인자를 1.0 으로 한 경우이고, 도 13의 (j), (k), (l)은 평활 인자를 1.25 로 한 경우이다. 도 13에서 2개의 가로/세로 축들(σn, w)은 노이즈 크기와 라인 두께이다. 도 13의 도시로부터, 다양한 경우들에서 본 발명의 실시예에 따른 방법(RSG)이 비교예(TA) 보다 정확하게 라인점들의 위치를 결정할 수 있는 것을 알 수 있다. 본 발명의 실시예에 따른 방법(RSG)은 특히 노이즈 크기가 높은 경우에 비교예(TA) 보다 월등히 높은 성능을 나타내었다.13(a), (b), and (c) are the cases where the smoothing factor is 0.5, and FIGS. 13(d), (e) and (f) are the cases where the smoothing factor is 0.75. , (g), (h), and (i) of FIG. 13 are cases where the smoothing factor is 1.0, and (j), (k) and (l) of FIG. 13 are cases where the smoothing factor is 1.25. The two horizontal/vertical axes σ n , w in FIG. 13 are noise magnitude and line thickness. From the illustration of FIG. 13 , it can be seen that in various cases, the method RSG according to the embodiment of the present invention can determine the position of the line points more accurately than the comparative example TA. The method (RSG) according to the embodiment of the present invention exhibited significantly higher performance than the comparative example (TA), especially when the noise level was high.

Figure 112019068809869-pat00098
Figure 112019068809869-pat00098

표 1은 다양한 평활 인자(σs)에 대하여, 본 발명의 실시예에 따른 방법(RSG)과 비교예(TA)의 연산 시간 성능과 RMSE 평균을 비교하여 나타낸 것이다. 평활 인자를 증가시킬수록, 연산 시간과 RMSE가 감소하는 이점이 있으나, 평활 인자를 증가시키면 영상에서의 특징들이 감소하게 되는 문제가 있다. 본 발명의 실시예에 따른 방법(RSG)은 특히 평활 인자가 낮은 경우에 비교예(TA) 보다 20% 이상 빠르고, 40% 이상 정확하게 서브픽셀 단위로 라인점들의 위치를 결정하였다. 따라서 본 발명의 실시예에 의하면, 낮은 평활 인자를 적용하여 영상에서 특징들이 손상되는 것을 방지하면서 라인들을 정확하게 검출할 수 있다.Table 1 shows the comparison of the calculation time performance and the RMSE average of the method (RSG) according to the embodiment of the present invention and the comparative example (TA) for various smoothing factors (σ s ). As the smoothing factor increases, there is an advantage in that the calculation time and the RMSE decrease. However, there is a problem in that the image features decrease when the smoothing factor is increased. The method (RSG) according to the embodiment of the present invention determined the position of the line points in sub-pixel units more than 20% faster and 40% or more accurately than the comparative example (TA), especially when the smoothing factor was low. Accordingly, according to an embodiment of the present invention, it is possible to accurately detect lines while preventing features from being damaged in an image by applying a low smoothing factor.

도 14에 도시된 자연 이미지들(natural images)을 이용하여 본 발명의 서브픽셀 라인위치 결정 방법의 성능을 검증하기 위한 실험을 하였다. 도 14의 (a), (b)는 각각 잘 알려져 있는 "Lena" 이미지와, "Barbara" 이미지이다. 도 14의 (c), (d)는 DSLR 카메라로 각각 관목과, 건물 외관을 촬영한 "Shrub" 이미지와, "Facade" 이미지이다. 4개의 이미지들의 픽셀값 범위는 [0, 255] 이다. 자연 이미지들에 대한 서브픽셀 라인 위치 결정 실험을 하기에 앞서, 먼저 그래디언트 각도차들의 합을 기반으로 하는 라인 검출 방법으로 픽셀 단위의 라인 픽셀들을 검출하였다. 도 15는 본 발명의 실시예에 따라 검출된 라인 픽셀들을 나타낸 것이다. 흑색 세모들은 릿지에 해당하는 라인 픽셀들, 백색 세모들은 밸리에 해당하는 라인 픽셀들을 나타낸 것이다. 표 2는 검출된 라인 픽셀들의 개수를 나타낸 것이다.An experiment was conducted to verify the performance of the sub-pixel line positioning method of the present invention using natural images shown in FIG. 14 . 14 (a) and (b) are well-known images of "Lena" and "Barbara", respectively. 14 (c) and (d) are a "Shrub" image and a "Facade" image of a shrub and a building exterior, respectively, with a DSLR camera. The pixel value range of the four images is [0, 255]. Before performing subpixel line positioning experiments on natural images, line pixels were detected in units of pixels by a line detection method based on the sum of gradient angle differences. 15 illustrates detected line pixels according to an embodiment of the present invention. Black triangles indicate line pixels corresponding to ridges, and white triangles indicate line pixels corresponding to valleys. Table 2 shows the number of detected line pixels.

Figure 112019068809869-pat00099
Figure 112019068809869-pat00099

도 15에 도시된 바와 같이, 픽셀 정확도로 검출된 라인 특징들은 전형적으로 지그재그 형태를 갖는다. 본 발명의 실시예에 따른 방법(RSG)과 비교예의 방법(TA)으로 각각 자연 이미지들에 대해 검출된 라인 픽셀들을 기반으로 서브픽셀 라인위치를 결정하는 실험을 하였다. 이미지들은 1.0의 평활 인자로 노이즈 제거되었다. Sobel 연산자를 이용한 평활화된 이미지들의 컨볼루션에 의해 그래디언트들(1차 차분들)을 산출하였으며, Sobel 연산자를 이용한 1차 차분 이미지들의 컨볼루션에 의해 2차 차분들을 산출하였다.As shown in FIG. 15 , line features detected with pixel accuracy typically have a zigzag shape. An experiment was conducted to determine sub-pixel line positions based on line pixels detected for natural images, respectively, using the method (RSG) according to the embodiment of the present invention and the method (TA) of the comparative example. Images were denoised with a smoothing factor of 1.0. Gradients (primary differences) were calculated by convolution of smoothed images using Sobel operator, and secondary differences were calculated by convolution of first-order difference images using Sobel operator.

도 16은 본 발명의 실시예와 비교예의 라인 위치결정 결과를 나타낸 도면이다. 도 16에서 상/하방을 향하는 적색 세모들은 본 발명의 실시예(RSG)에 따라 검출된 라인점들, 상/하방을 향하는 청색 세모들은 비교예(TA)에 따라 검출된 라인점들이다. 또한, 도 16에서 상방을 향하는 청색/적색 세모들은 릿지 라인의 라인점들, 하방을 향하는 청색/적색 세모들은 밸리 라인의 라인점들이다. 본 발명의 실시예(RSG)는 라인점들이 연속적으로 이어지는 형태로 검출되었으며, 라인점들의 위치가 지그재그 형태가 아닌 직진성을 나타내는 위치들로 검출되었다.16 is a view showing results of line positioning in Examples and Comparative Examples of the present invention. In FIG. 16 , red triangles pointing up/down are line points detected according to the embodiment of the present invention (RSG), and blue triangles pointing up/down are line points detected according to the comparative example (TA). Also, in FIG. 16 , the blue/red triangles pointing upward are line points of the ridge line, and the blue/red triangles pointing downward are line points of the valley line. In the embodiment of the present invention (RSG), the line points were detected in a continuous manner, and the positions of the line points were detected as positions indicating straightness rather than a zigzag form.

심한 노이즈 조건 하에서 본 발명의 실시예(RSG)와 비교예(TA)의 성능 비교를 위해, 노이즈 크기가 10인 랜덤 가우시안 노이즈를 원본 이미지들에 추가한 다음, 노이즈 이미지들을 1.0의 평활 인자로 평활화하였다. 이어서, 본 발명의 실시예(RSG)와 비교예(TA)에 의해, 평활화된 이미지들에 대해 서브픽셀 라인위치를 검출하였으며, 검출된 라인점들을 도 17에 도시하였다. 도 17에서 상/하방을 향하는 적색 세모들은 본 발명의 실시예(RSG)에 따라 검출된 라인점들, 상/하방을 향하는 청색 세모들은 비교예(TA)에 따라 검출된 라인점들이다. 또한, 도 17에서 상방을 향하는 청색/적색 세모들은 릿지 라인의 라인점들, 하방을 향하는 청색/적색 세모들은 밸리 라인의 라인점들이다.In order to compare the performance of the example (RSG) and the comparative example (TA) of the present invention under severe noise conditions, random Gaussian noise with a noise size of 10 was added to the original images, and then the noise images were smoothed with a smoothing factor of 1.0. did. Then, according to the example (RSG) and the comparative example (TA) of the present invention, sub-pixel line positions were detected for the smoothed images, and the detected line points are shown in FIG. 17 . In FIG. 17 , red triangles pointing up/down are line points detected according to the embodiment (RSG) of the present invention, and blue triangles pointing up/down are line points detected according to the comparative example (TA). Also, in FIG. 17 , the blue/red triangles pointing upward are line points of the ridge line, and the blue/red triangles pointing downward are line points of the valley line.

도 17에 도시된 바와 같이, 본 발명의 실시예(RSG)에 따라 서브픽셀 라인위치를 검출한 경우, 라인점들의 위치가 평활화된 이미지에서 시각적으로 검출될 수 있는 라인 특징들에 잘 부합하였다. 노이즈 레벨의 변동에 의한 영향을 평가하기 위하여, 랜덤 가우시안 노이즈를 추가하여 다양한 노이즈 레벨(5, 10, 15, 20, 30)을 갖는 노이즈 이미지들을 생성하였다. 표 3은 자연 이미지들에 대한 평균 거리를 나타낸 것이다.As shown in FIG. 17 , when sub-pixel line positions are detected according to the embodiment (RSG) of the present invention, the positions of the line points correspond well to line characteristics that can be visually detected in the smoothed image. In order to evaluate the effect of the variation of the noise level, noise images having various noise levels (5, 10, 15, 20, 30) were generated by adding random Gaussian noise. Table 3 shows the average distances for natural images.

Figure 112019068809869-pat00100
Figure 112019068809869-pat00100

d1 내지 d6는 각각 아래의 수식과 같다. d1 to d6 are respectively represented by the following equations.

Figure 112019068809869-pat00101
Figure 112019068809869-pat00101

Figure 112019068809869-pat00102
은 노이즈가 없는 이미지에 대해 비교예(TA)에 의해 검출한 라인점의 위치,
Figure 112019068809869-pat00103
은 노이즈가 없는 이미지에 대해 본 발명의 실시예(RSG)에 의해 검출한 라인점의 위치,
Figure 112019068809869-pat00104
은 노이즈가 있는 이미지에 대해 비교예(TA)에 의해 검출한 라인점의 위치,
Figure 112019068809869-pat00105
은 노이즈가 없는 이미지에 대해 본 발명의 실시예(RSG)에 의해 검출한 라인점의 위치를 나타낸다. 표 3에서, d1 내지 d6 앞에 기재된 'R', 'V'는 각각 릿지 라인과 밸리 라인을 나타낸다. 표 3에 도시된 바와 같이, 평균 거리 d1 은 Lena, Barbara, Shrub 이미지들에서 약 0.5 픽셀, Facade 이미지에서 약 0.36 이었다. 평균 거리 d3 은 모든 노이즈 및 자연 이미지들에서 평균 거리 d2 보다 약 30% 정도 작고, 평균 거리 d5 는 모든 경우에서 평균 거리 d4 보다 작으며, 평균 거리 d6은 0.52 ~ 1.17 픽셀 범위인 것을 알 수 있다. 이는 본 발명의 실시예(RSG)에 의하면 다양한 노이즈 레벨에서 비교예(TA) 보다 정확하고 안정적으로 라인위치를 결정할 수 있으며, 다양한 신호 및 노이즈 레벨 하에서 정확한 이미지 처리가 가능한 것을 의미한다.
Figure 112019068809869-pat00102
is the position of the line point detected by the comparative example (TA) for an image without noise,
Figure 112019068809869-pat00103
is the position of the line point detected by the embodiment of the present invention (RSG) for an image without noise,
Figure 112019068809869-pat00104
is the position of the line point detected by the comparative example (TA) for the image with noise,
Figure 112019068809869-pat00105
denotes the position of the line point detected by the embodiment (RSG) of the present invention with respect to the noise-free image. In Table 3, 'R' and 'V' described before d1 to d6 represent a ridge line and a valley line, respectively. As shown in Table 3, the average distance d1 was about 0.5 pixels in Lena, Barbara, and Shrub images and about 0.36 in Facade images. It can be seen that the average distance d3 is about 30% smaller than the average distance d2 in all noise and natural images, the average distance d5 is less than the average distance d4 in all cases, and the average distance d6 ranges from 0.52 to 1.17 pixels. This means that according to the embodiment (RSG) of the present invention, the line position can be determined more accurately and stably than in the comparative example (TA) at various noise levels, and accurate image processing is possible under various signal and noise levels.

Lena 이미지와 Barbara 이미지에 대해 라인점들을 연결하는 실험을 수행하였다. 도 18은 본 발명의 실시예와 비교예에 따라 라인점들을 연결하여 라인을 생성한 결과를 나타낸 도면이다. 도 18에서 상부의 4개의 이미지들은 비교예(TA)에 의해 라인점들을 연결하여 생성된 라인들을 나타낸 것이고, 하부의 4개의 이미지들은 본 발명의 실시예(RSG)에 의해 라인점들을 연결하여 생성된 라인들을 나타낸 것이다. 도 18에서 녹색선은 릿지 라인, 황색선은 밸리 라인을 나타낸다. 5개 보다 작은 라인점들로 이루어진 라인들은 도 18에 도시하지 않았다.An experiment was performed to connect the line points on the Lena image and the Barbara image. 18 is a view showing a result of generating a line by connecting line points according to an embodiment and a comparative example of the present invention. In FIG. 18 , the upper four images represent lines generated by connecting line points according to the comparative example (TA), and the lower four images are generated by connecting line points according to the exemplary embodiment (RSG) of the present invention. lines are shown. In FIG. 18 , a green line indicates a ridge line, and a yellow line indicates a valley line. Lines made up of less than 5 line points are not shown in FIG. 18 .

도 18의 도시로부터, 본 발명의 실시예에 따라 라인점들을 연결하여 라인들을 연결한 경우, 비교예(TA)에 의해 생성된 라인들 보다 긴 라인들을 생성할 수 있음을 알 수 있다. 비교예(TA)의 경우, 본 발명의 실시예와 비교하여 라인들이 생략된 부분들이 다수 발견된다. 본 발명의 실시예에 의해 생성된 라인들이 비교예의 경우보다 긴 이유는 비교예 보다 높은 직진성(straightnes) 및 전방향성(omni-directionality)을 갖기 때문이다.From the illustration of FIG. 18 , it can be seen that when lines are connected by connecting line points according to an embodiment of the present invention, lines longer than those generated by the comparative example TA can be generated. In the case of the comparative example TA, a number of portions in which lines are omitted are found as compared with the embodiment of the present invention. The reason that the lines generated by the embodiment of the present invention are longer than those of the comparative example is because they have higher straightness and omni-directionality than the comparative example.

본 발명의 실시예에 따른 방법 중 적어도 일부는 컴퓨터에서 실행될 수 있는 프로그램으로 작성 가능하고, 컴퓨터로 읽을 수 있는 기록매체를 이용하여 상기 프로그램을 동작시키는 범용 디지털 컴퓨터에서 구현될 수 있다. 컴퓨터로 읽을 수 있는 기록매체는 SRAM(Static RAM), DRAM(Dynamic RAM), SDRAM(Synchronous DRAM) 등과 같은 휘발성 메모리, ROM(Read Only Memory), PROM(Programmable ROM), EPROM(Electrically Programmable ROM), EEPROM(Electrically Erasable and Programmable ROM), 플래시 메모리 장치, PRAM(Phase-change RAM), MRAM(Magnetic RAM), RRAM(Resistive RAM), FRAM(Ferroelectric RAM)과 같은 불휘발성 메모리, 플로피 디스크, 하드 디스크 또는 광학적 판독 매체 예를 들어 시디롬, 디브이디 등과 같은 형태의 저장매체일 수 있으나, 이에 제한되지는 않는다.At least some of the methods according to an embodiment of the present invention can be written as a program that can be executed on a computer, and can be implemented in a general-purpose digital computer that operates the program using a computer-readable recording medium. Computer-readable recording media include volatile memory such as SRAM (Static RAM), DRAM (Dynamic RAM), SDRAM (Synchronous DRAM), ROM (Read Only Memory), PROM (Programmable ROM), EPROM (Electrically Programmable ROM), Nonvolatile memory such as Electrically Erasable and Programmable ROM (EEPROM), flash memory device, phase-change RAM (PRAM), magnetic RAM (MRAM), resistive RAM (RRAM), ferroelectric RAM (FRAM), floppy disk, hard disk, or The optical reading medium may be, for example, a storage medium such as a CD-ROM or DVD, but is not limited thereto.

이상의 실시예들은 본 발명의 이해를 돕기 위하여 제시된 것으로, 본 발명의 범위를 제한하지 않으며, 이로부터 다양한 변형 가능한 실시예들도 본 발명의 범위에 속하는 것임을 이해하여야 한다. 본 발명의 기술적 보호범위는 청구범위의 기술적 사상에 의해 정해져야 할 것이며, 본 발명의 기술적 보호범위는 청구범위의 문언적 기재 그 자체로 한정되는 것이 아니라 실질적으로는 기술적 가치가 균등한 범주의 발명까지 미치는 것임을 이해하여야 한다.The above embodiments are presented to help the understanding of the present invention, and do not limit the scope of the present invention, and it should be understood that various modifications are also included in the scope of the present invention. The technical protection scope of the present invention should be defined by the technical spirit of the claims, and the technical protection scope of the present invention is not limited to the literal description of the claims itself, but an invention of a substantially equivalent scope of technical value. It should be understood that it extends to

10: 서브픽셀 라인위치 결정 장치
100: 윈도우 설정부
200: 그래디언트 산출부
300: 정규화부
320: 그래디언트 합산부
340: 그래디언트 크기 산출부
360: 그래디언트 크기 합산부
380: 서브픽셀 변위 산출부
400: 서브픽셀 라인위치 결정부
500: 라인 연결부
510: 거리 산출부
520: 각도 산출부
530: 각도차 산출부
540: 연결거리 산출부
550: 라인점 결정부
10: sub-pixel line positioning device
100: window setting unit
200: gradient calculator
300: normalization unit
320: gradient summation unit
340: gradient size calculator
360: Gradient size summing part
380: sub-pixel displacement calculator
400: sub-pixel line position determining unit
500: line connection
510: distance calculator
520: angle calculation unit
530: angle difference calculator
540: connection distance calculation unit
550: line point determining unit

Claims (18)

삭제delete 영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 상기 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 결정하는 서브픽셀 라인위치 결정 방법으로서,
그래디언트 산출부에 의해, 상기 라인픽셀 및 상기 라인픽셀에 인접한 주변픽셀들을 포함하는 픽셀들에 대해, 인접한 픽셀들 간의 픽셀값 차이와 관련된 그래디언트들을 산출하는 단계;
정규화부에 의해, 상기 픽셀들의 그래디언트들의 크기들을 산출하고, 상기 라인픽셀의 위치에 대한 서브픽셀 레벨 변위를 산출하기 위해 상기 픽셀들의 그래디언트들의 크기들을 기반으로 상기 픽셀들의 그래디언트들을 정규화하는 단계; 및
서브픽셀 라인위치 결정부에 의해, 상기 라인픽셀의 위치 및 상기 서브픽셀 레벨 변위를 기반으로 서브픽셀 레벨로 상기 라인점의 위치를 결정하는 단계를 포함하며,
상기 라인점의 위치를 결정하는 단계는,
상기 라인픽셀의 위치와 상기 서브픽셀 레벨 변위를 합산하여 상기 라인점의 위치를 서브픽셀 레벨로 결정하는 단계를 포함하는 서브픽셀 라인위치 결정 방법.
A sub-pixel line position determination method for determining a position of a line point corresponding to the line at a sub-pixel level from a position of a line pixel determined by a pixel level related to a line in an image, the method comprising:
calculating, by a gradient calculator, gradients related to a pixel value difference between adjacent pixels for the pixels including the line pixel and adjacent pixels adjacent to the line pixel;
calculating, by a normalizer, magnitudes of the gradients of the pixels and normalizing the gradients of the pixels based on the magnitudes of the gradients of the pixels to calculate a sub-pixel level displacement with respect to the position of the line pixel; and
determining, by a sub-pixel line position determining unit, the position of the line point on a sub-pixel level based on the position of the line pixel and the sub-pixel level displacement;
Determining the position of the line point comprises:
and determining the position of the line point as a sub-pixel level by summing the position of the line pixel and the displacement of the sub-pixel level.
영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 상기 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 결정하는 서브픽셀 라인위치 결정 방법으로서,
그래디언트 산출부에 의해, 상기 라인픽셀 및 상기 라인픽셀에 인접한 주변픽셀들을 포함하는 픽셀들에 대해, 인접한 픽셀들 간의 픽셀값 차이와 관련된 그래디언트들을 산출하는 단계;
정규화부에 의해, 상기 픽셀들의 그래디언트들의 크기들을 산출하고, 상기 라인픽셀의 위치에 대한 서브픽셀 레벨 변위를 산출하기 위해 상기 픽셀들의 그래디언트들의 크기들을 기반으로 상기 픽셀들의 그래디언트들을 정규화하는 단계; 및
서브픽셀 라인위치 결정부에 의해, 상기 라인픽셀의 위치 및 상기 서브픽셀 레벨 변위를 기반으로 서브픽셀 레벨로 상기 라인점의 위치를 결정하는 단계를 포함하며,
상기 픽셀들의 그래디언트들을 정규화하는 단계는,
그래디언트 합산부에 의해, 상기 픽셀들의 그래디언트들을 합산하여 합산 그래디언트를 산출하는 단계;
그래디언트 크기 산출부에 의해, 상기 픽셀들의 그래디언트들의 크기들을 산출하는 단계;
그래디언트 크기 합산부에 의해, 상기 픽셀들의 그래디언트들의 크기들을 합산하여 그래디언트 합산 크기를 산출하는 단계; 및
서브픽셀 변위 산출부에 의해, 상기 그래디언트 합산 크기에 의해 상기 합산 그래디언트를 정규화하여 상기 서브픽셀 레벨 변위를 산출하는 단계를 포함하는 서브픽셀 라인위치 결정 방법.
A sub-pixel line position determination method for determining a position of a line point corresponding to the line at a sub-pixel level from a position of a line pixel determined by a pixel level related to a line in an image, the method comprising:
calculating, by a gradient calculator, gradients related to a pixel value difference between adjacent pixels for the pixels including the line pixel and adjacent pixels adjacent to the line pixel;
calculating, by a normalizer, magnitudes of the gradients of the pixels and normalizing the gradients of the pixels based on the magnitudes of the gradients of the pixels to calculate a sub-pixel level displacement with respect to the position of the line pixel; and
determining, by a sub-pixel line position determining unit, the position of the line point on a sub-pixel level based on the position of the line pixel and the sub-pixel level displacement;
Normalizing the gradients of the pixels comprises:
calculating a summed gradient by summing the gradients of the pixels by a gradient summing unit;
calculating, by a gradient size calculator, sizes of the gradients of the pixels;
calculating a gradient sum size by summing the gradient sizes of the pixels by a gradient size summing unit; and
and calculating, by a sub-pixel displacement calculating unit, the sub-pixel level displacement by normalizing the summed gradient by the gradient summed size.
제3항에 있어서,
윈도우 설정부에 의해, 상기 영상에서 상기 라인픽셀의 위치로부터 상기 라인점의 위치를 결정하기 위한 픽셀들을 결정하는 단계를 더 포함하고,
상기 픽셀들을 결정하는 단계는 상기 라인픽셀을 중심으로 (2K + 1) × (2K + 1) 픽셀 크기를 가지는 윈도우를 설정하고, 상기 윈도우 내의 픽셀들을 결정하는 단계를 포함하고, 상기 K는 양의 정수인 서브픽셀 라인위치 결정 방법.
4. The method of claim 3,
Further comprising, by a window setting unit, determining pixels for determining the position of the line point from the position of the line pixel in the image,
The determining of the pixels includes setting a window having a size of (2K + 1) × (2K + 1) pixels around the line pixel, and determining the pixels in the window, wherein K is a positive How to determine the subpixel line position that is an integer.
제4항에 있어서,
상기 합산 그래디언트를 산출하는 단계는,
행 방향 그래디언트 합산부에 의해, 상기 픽셀들의 행 방향 그래디언트들을 합산하여 행 방향 합산 그래디언트를 산출하는 단계; 및
열 방향 그래디언트 합산부에 의해, 상기 픽셀들의 열 방향 그래디언트들을 합산하여 열 방향 합산 그래디언트를 산출하는 단계를 포함하고,
상기 그래디언트들의 크기들을 산출하는 단계는 상기 행 방향 그래디언트들의 크기들 및 상기 열 방향 그래디언트들의 크기들을 산출하고,
상기 그래디언트 합산 크기를 산출하는 단계는 상기 행 방향 그래디언트들의 크기들 및 상기 열 방향 그래디언트들의 크기들을 기반으로 상기 그래디언트 합산 크기를 산출하고,
상기 서브픽셀 레벨 변위를 산출하는 단계는,
행 방향 변위 산출부에 의해, 상기 행 방향 합산 그래디언트를 상기 그래디언트 합산 크기로 나누어 행 방향 서브픽셀 레벨 변위를 산출하는 단계; 및
열 방향 변위 산출부에 의해, 상기 열 방향 합산 그래디언트를 상기 그래디언트 합산 크기로 나누어 열 방향 서브픽셀 레벨 변위를 산출하는 단계를 포함하고,
상기 라인점의 위치를 결정하는 단계는,
상기 라인픽셀의 행 방향 위치와 상기 행 방향 서브픽셀 레벨 변위를 합산하여 상기 라인점의 행 방향 위치를 서브픽셀 레벨로 결정하는 단계; 및
상기 라인픽셀의 열 방향 위치와 상기 열 방향 서브픽셀 레벨 변위를 합산하여 상기 라인점의 열 방향 위치를 서브픽셀 레벨로 결정하는 단계를 포함하는 서브픽셀 라인위치 결정 방법.
5. The method of claim 4,
Calculating the summed gradient comprises:
calculating a row-direction summed gradient by summing the row-direction gradients of the pixels by a row-direction gradient summing unit; and
calculating a column-direction summed gradient by summing the column-direction gradients of the pixels by a column-direction gradient summing unit,
The calculating of the magnitudes of the gradients includes calculating the magnitudes of the row-direction gradients and the magnitudes of the column-direction gradients,
The calculating of the gradient summation size comprises calculating the gradient summation size based on the magnitudes of the row-direction gradients and the magnitudes of the column-direction gradients,
Calculating the sub-pixel level displacement comprises:
calculating, by a row-direction displacement calculator, the row-direction sub-pixel level displacement by dividing the row-direction summed gradient by the gradient summed size; and
calculating, by a column-direction displacement calculator, the column-direction summed gradient by the gradient summed size to calculate column-direction sub-pixel level displacement;
Determining the position of the line point comprises:
determining the row-direction position of the line point as a sub-pixel level by summing the row-direction position of the line pixel and the row-direction sub-pixel level displacement; and
and determining the column-direction position of the line point as a sub-pixel level by summing the column-direction position of the line pixel and the column-direction sub-pixel level displacement.
제5항에 있어서,
상기 픽셀들의 그래디언트들을 정규화하는 단계는,
상기 라인픽셀의 상태가 릿지(ridge)인 경우, 상기 그래디언트 합산 크기에 제1 부호를 적용하여 상기 픽셀들의 그래디언트들을 정규화하는 단계; 및
상기 라인픽셀의 상태가 밸리(valley)인 경우, 상기 그래디언트 합산 크기에 상기 제1 부호와 상이한 제2 부호를 적용하여 상기 픽셀들의 그래디언트들을 정규화하는 단계를 포함하는 서브픽셀 라인위치 결정 방법.
6. The method of claim 5,
Normalizing the gradients of the pixels comprises:
normalizing the gradients of the pixels by applying a first sign to the gradient sum size when the state of the line pixel is a ridge; and
and normalizing the gradients of the pixels by applying a second sign different from the first sign to the gradient sum size when the state of the line pixel is a valley.
제6항에 있어서,
상기 합산 그래디언트를 산출하는 단계는 하기의 수식 1에 따라 상기 행 방향 합산 그래디언트 및 상기 열 방향 합산 그래디언트를 산출하고,
상기 그래디언트 합산 크기를 산출하는 단계는 하기의 수식 2에 따라 상기 그래디언트 합산 크기를 산출하고,
상기 서브픽셀 레벨 변위를 산출하는 단계는 하기의 수식 3 및 수식 4에 따라 상기 서브픽셀 레벨 변위를 산출하고,
상기 라인점의 위치를 결정하는 단계는 하기의 수식 5에 따라 상기 라인점의 위치를 결정하고,
[수식 1]
Figure 112019068809869-pat00106

[수식 2]
Figure 112019068809869-pat00107

[수식 3]
Figure 112019068809869-pat00108

[수식 4]
Figure 112019068809869-pat00109

[수식 5]
Figure 112019068809869-pat00110

상기 수식 1 내지 수식 5에서,
Figure 112019068809869-pat00111
는 상기 행 방향 합산 그래디언트,
Figure 112019068809869-pat00112
는 상기 열 방향 합산 그래디언트,
Figure 112019068809869-pat00113
는 행 방향 그래디언트,
Figure 112019068809869-pat00114
는 열 방향 그래디언트,
Figure 112019068809869-pat00115
는 상기 그래디언트 합산 크기,
Figure 112019068809869-pat00116
는 상기 라인픽셀의 상태가 릿지인지 밸리인지를 나타내는 정보,
Figure 112019068809869-pat00117
는 상기 행 방향 서브픽셀 레벨 변위,
Figure 112019068809869-pat00118
는 상기 열 방향 서브픽셀 레벨 변위, c는 상기 라인픽셀의 열 방향 좌표, r은 상기 라인픽셀의 행 방향 좌표,
Figure 112019068809869-pat00119
는 상기 라인점의 행 방향 위치,
Figure 112019068809869-pat00120
는 상기 라인점의 열 방향 위치를 나타내는 서브픽셀 라인위치 결정 방법.
7. The method of claim 6,
The calculating of the summation gradient includes calculating the summation gradient in the row direction and the summation gradient in the column direction according to Equation 1 below,
In the calculating of the gradient summed size, the gradient summed size is calculated according to Equation 2 below,
The calculating of the sub-pixel level displacement includes calculating the sub-pixel level displacement according to Equations 3 and 4 below;
In the step of determining the position of the line point, the position of the line point is determined according to Equation 5 below,
[Formula 1]
Figure 112019068809869-pat00106

[Formula 2]
Figure 112019068809869-pat00107

[Equation 3]
Figure 112019068809869-pat00108

[Equation 4]
Figure 112019068809869-pat00109

[Equation 5]
Figure 112019068809869-pat00110

In Equations 1 to 5,
Figure 112019068809869-pat00111
is the row-wise summation gradient,
Figure 112019068809869-pat00112
is the column-wise summation gradient,
Figure 112019068809869-pat00113
is the row direction gradient,
Figure 112019068809869-pat00114
is the column direction gradient,
Figure 112019068809869-pat00115
is the gradient sum size,
Figure 112019068809869-pat00116
is information indicating whether the state of the line pixel is a ridge or a valley;
Figure 112019068809869-pat00117
is the row-direction sub-pixel level displacement,
Figure 112019068809869-pat00118
is the column-direction sub-pixel level displacement, c is the column-direction coordinate of the line pixel, r is the row-direction coordinate of the line pixel,
Figure 112019068809869-pat00119
is the row direction position of the line point,
Figure 112019068809869-pat00120
is a subpixel line position determining method indicating the column direction position of the line point.
영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 상기 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 결정하는 서브픽셀 라인위치 결정 방법으로서,
그래디언트 산출부에 의해, 상기 라인픽셀 및 상기 라인픽셀에 인접한 주변픽셀들을 포함하는 픽셀들에 대해, 인접한 픽셀들 간의 픽셀값 차이와 관련된 그래디언트들을 산출하는 단계;
정규화부에 의해, 상기 픽셀들의 그래디언트들의 크기들을 산출하고, 상기 라인픽셀의 위치에 대한 서브픽셀 레벨 변위를 산출하기 위해 상기 픽셀들의 그래디언트들의 크기들을 기반으로 상기 픽셀들의 그래디언트들을 정규화하는 단계; 및
서브픽셀 라인위치 결정부에 의해, 상기 라인픽셀의 위치 및 상기 서브픽셀 레벨 변위를 기반으로 서브픽셀 레벨로 상기 라인점의 위치를 결정하는 단계를 포함하며,
라인 연결부에 의해, 상기 영상에서 라인을 생성하기 위해 상기 라인점들을 연결하는 단계를 더 포함하고,
상기 라인점들을 연결하는 단계는,
상기 라인에 포함된 제1 라인점과, 상기 라인점들 중 상기 제1 라인점 근방의 제2 라인점들 간의 좌표 거리들, 그리고 상기 제1 라인점과 상기 제2 라인점들 간의 각도들을 기반으로 상기 제2 라인점들 중 상기 제1 라인점과 연결할 라인점을 결정하는 서브픽셀 라인위치 결정 방법.
A sub-pixel line position determination method for determining a position of a line point corresponding to the line at a sub-pixel level from a position of a line pixel determined by a pixel level related to a line in an image, the method comprising:
calculating, by a gradient calculator, gradients related to a pixel value difference between adjacent pixels for the pixels including the line pixel and adjacent pixels adjacent to the line pixel;
calculating, by a normalizer, magnitudes of the gradients of the pixels and normalizing the gradients of the pixels based on the magnitudes of the gradients of the pixels to calculate a sub-pixel level displacement with respect to the position of the line pixel; and
determining, by a sub-pixel line position determining unit, the position of the line point on a sub-pixel level based on the position of the line pixel and the sub-pixel level displacement;
Connecting the line points to create a line in the image by means of a line connector,
The step of connecting the line points is
Based on coordinate distances between a first line point included in the line, second line points near the first line point among the line points, and angles between the first line point and the second line points to determine a line point to be connected to the first line point from among the second line points.
제8항에 있어서,
상기 라인점들을 연결하는 단계는,
거리 산출부에 의해, 상기 라인에 포함된 제1 라인점과, 상기 라인점들 중 상기 제1 라인점 근방의 제2 라인점 간의 좌표 거리를 산출하는 단계;
각도 산출부에 의해, 상기 제1 라인점에서의 상기 라인의 제1 각도를 산출하고, 상기 제1 라인점과 상기 제2 라인점 간의 제2 각도를 산출하는 단계;
각도차 산출부에 의해, 상기 제1 각도와 상기 제2 각도 간의 각도차를 산출하는 단계;
연결거리 산출부에 의해, 상기 좌표 거리 및 상기 각도차를 기반으로 상기 제1 라인점과 상기 제2 라인점 간의 연결거리를 산출하는 단계; 및
라인점 결정부에 의해, 상기 제2 라인점들 중 상기 제1 라인점과 가장 연결거리가 작은 라인점을 결정하여 상기 제1 라인점과 연결하는 단계를 포함하는 서브픽셀 라인위치 결정 방법.
9. The method of claim 8,
The step of connecting the line points is
calculating, by a distance calculator, a coordinate distance between a first line point included in the line and a second line point near the first line point among the line points;
calculating, by an angle calculator, a first angle of the line at the first line point, and calculating a second angle between the first line point and the second line point;
calculating an angle difference between the first angle and the second angle by an angle difference calculator;
calculating, by a connection distance calculator, a connection distance between the first line point and the second line point based on the coordinate distance and the angle difference; and
and determining, by a line point determining unit, a line point having the smallest connection distance from the first line point among the second line points, and connecting the line point with the first line point.
제9항에 있어서,
상기 좌표 거리를 산출하는 단계는 하기의 수식 6에 따라 상기 좌표 거리를 산출하고,
상기 제2 각도를 산출하는 단계는 하기의 수식 7에 따라 상기 제2 각도를 산출하고,
상기 각도차를 산출하는 단계는 하기의 수식 8에 따라 상기 각도차를 산출하고,
상기 연결거리를 산출하는 단계는 하기의 수식 9 및 수식 10에 따라 상기 연결거리를 산출하고,
[수식 6]
Figure 112019068809869-pat00121

[수식 7]
Figure 112019068809869-pat00122

[수식 8]
Figure 112019068809869-pat00123

[수식 9]
Figure 112019068809869-pat00124

[수식 10]
Figure 112019068809869-pat00125

상기 수식 6 내지 수식 10에서,
Figure 112019068809869-pat00126
은 상기 좌표 거리,
Figure 112019068809869-pat00127
는 상기 제1 라인점의 행 방향 좌표,
Figure 112019068809869-pat00128
는 상기 제1 라인점의 열 방향 좌표,
Figure 112019068809869-pat00129
는 상기 제2 라인점의 행 방향 좌표,
Figure 112019068809869-pat00130
는 상기 제2 라인점의 열 방향 좌표,
Figure 112019068809869-pat00131
는 상기 각도차,
Figure 112019068809869-pat00132
는 상기 제1 각도,
Figure 112019068809869-pat00133
는 상기 제2 각도,
Figure 112019068809869-pat00134
는 설정된 각도차 반영 인자,
Figure 112019068809869-pat00135
는 상기 각도차에 따라 결정되는 각도거리,
Figure 112019068809869-pat00136
는 상기 연결거리를 나타내는 서브픽셀 라인위치 결정 방법.
10. The method of claim 9,
The step of calculating the coordinate distance is calculating the coordinate distance according to Equation 6 below,
In the calculating of the second angle, the second angle is calculated according to Equation 7 below,
The step of calculating the angle difference is calculating the angle difference according to Equation 8 below,
In the calculating of the connection distance, the connection distance is calculated according to Equations 9 and 10 below,
[Equation 6]
Figure 112019068809869-pat00121

[Equation 7]
Figure 112019068809869-pat00122

[Equation 8]
Figure 112019068809869-pat00123

[Equation 9]
Figure 112019068809869-pat00124

[Equation 10]
Figure 112019068809869-pat00125

In Equations 6 to 10,
Figure 112019068809869-pat00126
is the coordinate distance,
Figure 112019068809869-pat00127
is the row direction coordinate of the first line point,
Figure 112019068809869-pat00128
is the column direction coordinates of the first line point,
Figure 112019068809869-pat00129
is the row direction coordinate of the second line point,
Figure 112019068809869-pat00130
is the column direction coordinates of the second line point,
Figure 112019068809869-pat00131
is the angle difference,
Figure 112019068809869-pat00132
is the first angle,
Figure 112019068809869-pat00133
is the second angle,
Figure 112019068809869-pat00134
is the set angle difference reflection factor,
Figure 112019068809869-pat00135
is an angular distance determined according to the angular difference,
Figure 112019068809869-pat00136
is a sub-pixel line position determining method indicating the connection distance.
제2항 내지 제10항 중 어느 한 항에 기재된 서브픽셀 라인위치 결정 방법을 실행하기 위한 프로그램이 기록된 컴퓨터로 판독 가능한 기록 매체.
A computer-readable recording medium in which a program for executing the sub-pixel line positioning method according to any one of claims 2 to 10 is recorded.
삭제delete 영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 상기 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 결정하기 위한 서브픽셀 라인위치 결정 장치로서,
상기 라인픽셀 및 상기 라인픽셀에 인접한 주변픽셀들을 포함하는 픽셀들에 대해, 인접한 픽셀들 간의 픽셀값 차이와 관련된 그래디언트들을 산출하는 그래디언트 산출부;
상기 픽셀들의 그래디언트들의 크기들을 산출하고, 상기 라인픽셀의 위치에 대한 서브픽셀 레벨 변위를 산출하기 위해 상기 픽셀들의 그래디언트들의 크기들을 기반으로 상기 픽셀들의 그래디언트들을 정규화하는 정규화부; 및
상기 라인픽셀의 위치 및 상기 서브픽셀 레벨 변위를 기반으로 서브픽셀 레벨로 상기 라인점의 위치를 결정하는 서브픽셀 라인위치 결정부를 포함하며,
상기 정규화부는,
상기 픽셀들의 그래디언트들을 합산하여 합산 그래디언트를 산출하는 그래디언트 합산부;
상기 픽셀들의 그래디언트들의 크기들을 산출하는 그래디언트 크기 산출부;
상기 픽셀들의 그래디언트들의 크기들을 합산하여 그래디언트 합산 크기를 산출하는 그래디언트 크기 합산부; 및
상기 그래디언트 합산 크기에 의해 상기 합산 그래디언트를 정규화하여 상기 서브픽셀 레벨 변위를 산출하는 서브픽셀 변위 산출부를 포함하고,
상기 서브픽셀 라인위치 결정부는,
상기 라인픽셀의 위치와 상기 서브픽셀 레벨 변위를 합산하여 상기 라인점의 위치를 서브픽셀 레벨로 결정하는 서브픽셀 라인위치 결정 장치.
A sub-pixel line positioning device for determining a position of a line point corresponding to the line at a sub-pixel level from a position of a line pixel determined by a pixel level related to a line in an image, the sub-pixel line positioning device comprising:
a gradient calculator for calculating gradients related to a pixel value difference between adjacent pixels for the line pixel and pixels including adjacent pixels adjacent to the line pixel;
a normalizer for calculating the magnitudes of the gradients of the pixels and normalizing the gradients of the pixels based on the magnitudes of the gradients of the pixels to calculate a sub-pixel level displacement with respect to the position of the line pixel; and
and a sub-pixel line position determiner configured to determine a position of the line point at a sub-pixel level based on the position of the line pixel and the displacement of the sub-pixel level;
The normalization unit,
a gradient summing unit calculating a sum gradient by summing the gradients of the pixels;
a gradient size calculator for calculating sizes of the gradients of the pixels;
a gradient size summing unit calculating a gradient sum size by summing the gradient sizes of the pixels; and
and a sub-pixel displacement calculator configured to calculate the sub-pixel-level displacement by normalizing the summed gradient by the gradient summed size;
The sub-pixel line position determining unit,
A sub-pixel line position determining device for determining the position of the line point as a sub-pixel level by adding up the position of the line pixel and the displacement of the sub-pixel level.
제13항에 있어서,
상기 영상에서 상기 라인픽셀의 위치로부터 상기 라인점의 위치를 결정하기 위한 픽셀들을 결정하는 윈도우 설정부를 더 포함하고,
상기 윈도우 설정부는, 상기 라인픽셀을 중심으로 (2K + 1) × (2K + 1) 픽셀 크기를 가지는 윈도우를 설정하고, 상기 윈도우 내의 픽셀들을 결정하고, 상기 K는 양의 정수인 서브픽셀 라인위치 결정 장치.
14. The method of claim 13,
Further comprising a window setting unit for determining pixels for determining the position of the line point from the position of the line pixel in the image,
The window setting unit sets a window having a size of (2K + 1) × (2K + 1) pixels around the line pixel, determines pixels in the window, and determines a sub-pixel line position where K is a positive integer Device.
제14항에 있어서,
상기 그래디언트 합산부는,
상기 픽셀들의 행 방향 그래디언트들을 합산하여 행 방향 합산 그래디언트를 산출하는 행 방향 그래디언트 합산부; 및
상기 픽셀들의 열 방향 그래디언트들을 합산하여 열 방향 합산 그래디언트를 산출하는 열 방향 그래디언트 합산부를 포함하고,
상기 그래디언트 크기 산출부는 상기 행 방향 그래디언트들의 크기들 및 상기 열 방향 그래디언트들의 크기들을 산출하고,
상기 그래디언트 크기 합산부는 상기 행 방향 그래디언트들의 크기들 및 상기 열 방향 그래디언트들의 크기들을 기반으로 상기 그래디언트 합산 크기를 산출하고,
상기 서브픽셀 변위 산출부는,
상기 행 방향 합산 그래디언트를 상기 그래디언트 합산 크기로 나누어 행 방향 서브픽셀 레벨 변위를 산출하는 행 방향 변위 산출부; 및
상기 열 방향 합산 그래디언트를 상기 그래디언트 합산 크기로 나누어 열 방향 서브픽셀 레벨 변위를 산출하는 열 방향 변위 산출부를 포함하고,
상기 서브픽셀 라인위치 결정부는,
상기 라인픽셀의 행 방향 위치와 상기 행 방향 서브픽셀 레벨 변위를 합산하여 상기 라인점의 행 방향 위치를 서브픽셀 레벨로 결정하고; 그리고
상기 라인픽셀의 열 방향 위치와 상기 열 방향 서브픽셀 레벨 변위를 합산하여 상기 라인점의 열 방향 위치를 서브픽셀 레벨로 결정하는 서브픽셀 라인위치 결정 장치.
15. The method of claim 14,
The gradient summing unit,
a row-direction gradient summing unit for calculating a row-direction summed gradient by summing the row-direction gradients of the pixels; and
a column-direction gradient summing unit for calculating a column-direction summed gradient by summing the column-direction gradients of the pixels;
The gradient size calculator calculates the magnitudes of the row-direction gradients and the magnitudes of the column-direction gradients,
The gradient size summing unit calculates the gradient summation size based on the magnitudes of the row-direction gradients and the magnitudes of the column-direction gradients,
The sub-pixel displacement calculator comprises:
a row-direction displacement calculator configured to calculate a row-direction sub-pixel level displacement by dividing the row-direction summed gradient by the gradient summation size; and
and a column-direction displacement calculator configured to calculate column-direction sub-pixel level displacement by dividing the column-direction summed gradient by the gradient summed size;
The sub-pixel line position determining unit,
summing the row-direction position of the line pixel and the row-direction sub-pixel level displacement to determine the row direction position of the line point as a sub-pixel level; And
a sub-pixel line position determining device for determining the column-direction position of the line point as a sub-pixel level by summing the column-direction position of the line pixel and the column-direction sub-pixel level displacement.
제15항에 있어서,
상기 정규화부는,
상기 라인픽셀의 상태가 릿지(ridge)인 경우, 상기 그래디언트 합산 크기에 제1 부호를 적용하여 상기 픽셀들의 그래디언트들을 정규화하고; 그리고
상기 라인픽셀의 상태가 밸리(valley)인 경우, 상기 그래디언트 합산 크기에 상기 제1 부호와 상이한 제2 부호를 적용하여 상기 픽셀들의 그래디언트들을 정규화하는 서브픽셀 라인위치 결정 장치.
16. The method of claim 15,
The normalization unit,
when the state of the line pixel is a ridge, applying a first sign to the gradient summed size to normalize the gradients of the pixels; And
When the state of the line pixel is a valley, a sub-pixel line positioning apparatus for normalizing the gradients of the pixels by applying a second sign different from the first sign to the gradient sum size.
영상에서 라인에 관련된 픽셀 레벨로 결정된 라인픽셀의 위치로부터 상기 라인에 대응되는 라인점의 위치를 서브픽셀 레벨로 결정하기 위한 서브픽셀 라인위치 결정 장치로서,
상기 라인픽셀 및 상기 라인픽셀에 인접한 주변픽셀들을 포함하는 픽셀들에 대해, 인접한 픽셀들 간의 픽셀값 차이와 관련된 그래디언트들을 산출하는 그래디언트 산출부;
상기 픽셀들의 그래디언트들의 크기들을 산출하고, 상기 라인픽셀의 위치에 대한 서브픽셀 레벨 변위를 산출하기 위해 상기 픽셀들의 그래디언트들의 크기들을 기반으로 상기 픽셀들의 그래디언트들을 정규화하는 정규화부; 및
상기 라인픽셀의 위치 및 상기 서브픽셀 레벨 변위를 기반으로 서브픽셀 레벨로 상기 라인점의 위치를 결정하는 서브픽셀 라인위치 결정부를 포함하며,
상기 영상에서 라인을 생성하기 위해 상기 라인점들을 연결하는 라인 연결부를 더 포함하고,
상기 라인 연결부는,
상기 라인에 포함된 제1 라인점과, 상기 라인점들 중 상기 제1 라인점 근방의 제2 라인점들 간의 좌표 거리들, 그리고 상기 제1 라인점과 상기 제2 라인점들 간의 각도들을 기반으로 상기 제2 라인점들 중 상기 제1 라인점과 연결할 라인점을 결정하는 서브픽셀 라인위치 결정 장치.
A sub-pixel line positioning device for determining a position of a line point corresponding to the line at a sub-pixel level from a position of a line pixel determined by a pixel level related to a line in an image, the sub-pixel line positioning device comprising:
a gradient calculator for calculating gradients related to a pixel value difference between adjacent pixels for the line pixel and pixels including adjacent pixels adjacent to the line pixel;
a normalizer for calculating the magnitudes of the gradients of the pixels and normalizing the gradients of the pixels based on the magnitudes of the gradients of the pixels to calculate a sub-pixel level displacement with respect to the position of the line pixel; and
and a sub-pixel line position determiner configured to determine a position of the line point at a sub-pixel level based on the position of the line pixel and the displacement of the sub-pixel level;
Further comprising a line connector connecting the line points to generate a line in the image,
The line connection part,
Based on coordinate distances between a first line point included in the line, second line points in the vicinity of the first line point among the line points, and angles between the first line point and the second line points to determine a line point to be connected to the first line point among the second line points.
제17항에 있어서,
상기 라인 연결부는,
상기 라인에 포함된 제1 라인점과, 상기 라인점들 중 상기 제1 라인점 근방의 제2 라인점 간의 좌표 거리를 산출하는 거리 산출부;
상기 제1 라인점에서의 상기 라인의 제1 각도를 산출하고, 상기 제1 라인점과 상기 제2 라인점 간의 제2 각도를 산출하는 각도 산출부;
상기 제1 각도와 상기 제2 각도 간의 각도차를 산출하는 각도차 산출부;
상기 좌표 거리 및 상기 각도차를 기반으로 상기 제1 라인점과 상기 제2 라인점 간의 연결거리를 산출하는 연결거리 산출부; 및
상기 제2 라인점들 중 상기 제1 라인점과 가장 연결거리가 작은 라인점을 상기 제1 라인점과 연결하는 라인점 결정부를 포함하는 서브픽셀 라인위치 결정 장치.
18. The method of claim 17,
The line connection part,
a distance calculator for calculating a coordinate distance between a first line point included in the line and a second line point near the first line point among the line points;
an angle calculating unit calculating a first angle of the line at the first line point and calculating a second angle between the first line point and the second line point;
an angle difference calculator for calculating an angle difference between the first angle and the second angle;
a connection distance calculator configured to calculate a connection distance between the first line point and the second line point based on the coordinate distance and the angular difference; and
and a line point determining unit connecting a line point having the smallest connection distance to the first line point among the second line points with the first line point.
KR1020190080859A 2019-07-04 2019-07-04 Apparatus and method for subpixel line localization KR102279177B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020190080859A KR102279177B1 (en) 2019-07-04 2019-07-04 Apparatus and method for subpixel line localization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020190080859A KR102279177B1 (en) 2019-07-04 2019-07-04 Apparatus and method for subpixel line localization

Publications (2)

Publication Number Publication Date
KR20210005413A KR20210005413A (en) 2021-01-14
KR102279177B1 true KR102279177B1 (en) 2021-07-20

Family

ID=74142086

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020190080859A KR102279177B1 (en) 2019-07-04 2019-07-04 Apparatus and method for subpixel line localization

Country Status (1)

Country Link
KR (1) KR102279177B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117237441B (en) * 2023-11-10 2024-01-30 湖南科天健光电技术有限公司 Sub-pixel positioning method, sub-pixel positioning system, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011133954A (en) 2009-12-22 2011-07-07 3D Media Co Ltd Edge extraction method and edge extraction device
JP2013200648A (en) * 2012-03-23 2013-10-03 Toyota Auto Body Co Ltd Edge extraction method of gray image, edge extraction device and edge extraction program of gray image

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914830B (en) * 2014-02-22 2017-02-01 小米科技有限责任公司 Straight line detection method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011133954A (en) 2009-12-22 2011-07-07 3D Media Co Ltd Edge extraction method and edge extraction device
JP2013200648A (en) * 2012-03-23 2013-10-03 Toyota Auto Body Co Ltd Edge extraction method of gray image, edge extraction device and edge extraction program of gray image

Also Published As

Publication number Publication date
KR20210005413A (en) 2021-01-14

Similar Documents

Publication Publication Date Title
CN112348815B (en) Image processing method, image processing apparatus, and non-transitory storage medium
WO2020258793A1 (en) Target detection and training of target detection network
CN101673397B (en) Digital camera nonlinear calibration method based on LCDs
US10127679B2 (en) Image alignment method and apparatus
Kumar Mishra et al. A review of optical imagery and airborne lidar data registration methods
US8406535B2 (en) Invariant visual scene and object recognition
CN111754536B (en) Image labeling method, device, electronic equipment and storage medium
US11176425B2 (en) Joint detection and description systems and methods
KR101032446B1 (en) Apparatus and method for detecting a vertex on the screen of a mobile terminal
CN105488501A (en) Method for correcting license plate slant based on rotating projection
CN110807459B (en) License plate correction method and device and readable storage medium
CN105005981B (en) Based on multiple dimensioned Light stripes center extraction method and device
US20140081605A1 (en) Dtm estimation method, dtm estimation program, dtm estimation device, and method for creating 3-dimensional building model, and region extraction method, region extraction program, and region extraction device
CN107341824B (en) Comprehensive evaluation index generation method for image registration
CN111192194A (en) Panoramic image splicing method for curtain wall building vertical face
CN111539238A (en) Two-dimensional code image restoration method and device, computer equipment and storage medium
KR102279177B1 (en) Apparatus and method for subpixel line localization
CN113744142A (en) Image restoration method, electronic device and storage medium
CN104268550A (en) Feature extraction method and device
KR102214482B1 (en) Apparatus and method for line linking
CN109496326B (en) Image processing method, device and system
CN116206139A (en) Unmanned aerial vehicle image upscaling matching method based on local self-convolution
CN113222028B (en) Image feature point real-time matching method based on multi-scale neighborhood gradient model
CN105184252A (en) Water bloom identification method and device based on high-spatial-resolution image
CN115861792A (en) Multi-mode remote sensing image matching method for weighted phase orientation description

Legal Events

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