KR101374031B1 - Method and apparatus for correcting contrast - Google Patents

Method and apparatus for correcting contrast Download PDF

Info

Publication number
KR101374031B1
KR101374031B1 KR1020120067937A KR20120067937A KR101374031B1 KR 101374031 B1 KR101374031 B1 KR 101374031B1 KR 1020120067937 A KR1020120067937 A KR 1020120067937A KR 20120067937 A KR20120067937 A KR 20120067937A KR 101374031 B1 KR101374031 B1 KR 101374031B1
Authority
KR
South Korea
Prior art keywords
brightness value
correction
pixels
point
pixel
Prior art date
Application number
KR1020120067937A
Other languages
Korean (ko)
Other versions
KR20140000768A (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 KR1020120067937A priority Critical patent/KR101374031B1/en
Publication of KR20140000768A publication Critical patent/KR20140000768A/en
Application granted granted Critical
Publication of KR101374031B1 publication Critical patent/KR101374031B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/94Dynamic range modification of images or parts thereof based on local image properties, e.g. for local contrast enhancement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/40Image enhancement or restoration using histogram techniques

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

명암 보정 장치 및 방법이 개시된다. 본 발명의 명암 보정 장치는 입력영상에 포함된 화소들을 대상으로 미리 설정된 기준 이상의 밝기 값을 가지는 화소들의 밝기 값은 증가시키며, 상기 미리 설정된 기준 미만의 밝기 값을 가지는 화소들의 밝기 값은 감소시키는 커브 형태의 밝기 값 보정을 수행하는 명암대비 향상부; 및 상기 화소들 중 상기 커브의 시작점, 종료점 및 변곡점 중 적어도 하나의 지점의 밝기 값과 미리 설정된 크기만큼 차이를 갖는 보정 화소의 밝기 값을 미리 설정된 보정 파라미터를 이용하여 보정하는 명암 보정부를 포함하는 것을 특징으로 한다. 본 발명에 따르면 명암대비 향상 시 발생하는 등고선 현상의 문제를 개선할 수 있다. 또한, 본 발명에 따른 명암 보정 방법은 종래 기법들보다 연산과정이 적어 하드웨어 사양이 제한된 소형 디바이스에 효율적으로 적용될 수 있다.Disclosed are an apparatus and method for correcting contrast. In the contrast correction apparatus of the present invention, a brightness curve of pixels having a brightness value higher than or equal to a predetermined reference is increased for pixels included in an input image, and a brightness value of pixels having a brightness value lower than the predetermined reference is reduced. Contrast enhancer for performing the correction of the brightness value of the shape; And a contrast correcting unit configured to correct brightness values of a corrected pixel having a difference by a predetermined size from brightness values of at least one of a start point, an end point, and an inflection point of the curve among the pixels by using a preset correction parameter. It features. According to the present invention, it is possible to improve the problem of the contour phenomenon occurring when the contrast is improved. In addition, the contrast correction method according to the present invention can be efficiently applied to a small device of limited hardware specifications due to less computational process than conventional techniques.

Description

명암 보정 장치 및 방법{METHOD AND APPARATUS FOR CORRECTING CONTRAST}Contrast correction device and method {METHOD AND APPARATUS FOR CORRECTING CONTRAST}

본 발명의 실시예들은 명암 보정 장치 및 방법에 관한 것으로서, 더욱 상세하게는 등고선 현상을 개선하는 명암 보정 장치 및 방법에 관한 것이다.Embodiments of the present invention relate to a contrast correction apparatus and method, and more particularly to a contrast correction apparatus and method for improving the contour phenomenon.

영상의 화질을 개선하는 방법으로는 선명도 향상(Detail Enhancement)과 명암대비 향상(Contrast Enhancement), 색상 톤 향상(Color Tone Enhancement), 흰색 톤 향상(White Tone Enhancement) 및 잡음 제거(Noise Reduction) 등 많은 방법들이 있다.There are many ways to improve the picture quality, such as Detail Enhancement, Contrast Enhancement, Color Tone Enhancement, White Tone Enhancement, and Noise Reduction. There are ways.

상기 방법들 중에서도 명암대비 향상 방법은 영상의 화질 개선에 가장 뛰어난 효과를 보인다. 종래의 명암대비 향상 방법 중 히스토그램 평활화와 같은 방법들은 하드웨어로 구현 시 복잡도가 높다. 따라서, 휴대용 소형 디스플레이에 적용하기에는 하드웨어적인 부담이 큰 문제가 있다.Among the above methods, the contrast enhancement method has the most excellent effect on improving the image quality. Conventional contrast enhancement methods such as histogram smoothing have high complexity when implemented in hardware. Therefore, there is a problem in that the hardware burden is great to apply to a portable small display.

공개 논문 "휴대용 소형 디스플레이를 위한 적응적 명암대비 향상 알고리즘, 이승렬, 이성주, 전자공학회(2011.06)에는 낮은 복잡도를 가지는 명암대비 향상 알고리즘이 개시되어 있다."Adaptive Contrast Enhancement Algorithm for Portable Small Display," Lee, Seung-Ryeol, Sung Joo Lee, and Electronics Engineering (Jun. 2011) disclose a contrast enhancement algorithm with low complexity.

도 1은 종래의 명암대비 향상 알고리즘을 설명하기 위해 도시된 도면이다.1 is a diagram illustrating a conventional contrast enhancement algorithm.

도 1을 참조하면, 입력되는 영상의 히스토그램을 분석하고, 밝기 값 0부터 255방향으로, 밝기 값 255에서 0방향으로 히스토그램의 분포를 탐색하여 미리 설정된 빈도수 이상이 되는 최초의 지점을 각각 Lower Bound(LB), Upper Bound(UB)로 설정하고 LB와 UB 사이의 영역에 커브 형태의 명암대비 향상 알고리즘을 적용한다.Referring to FIG. 1, the histogram of an input image is analyzed, and the histogram is searched in the brightness value 0 to 255 direction and the brightness value 255 in the 0 direction to find the first point that is higher than or equal to a preset frequency. LB) and Upper Bound (UB) and apply the curve contrast enhancement algorithm to the area between LB and UB.

다시 말해, 입력 영상에 포함된 화소들 중 우측 영역의 높은 밝기 값을 가지는 화소들의 밝기 값은 커브 형태에 따라 증가되며, 좌측 영역의 낮은 밝기 값을 가지는 화소들의 밝기 값은 커브 형태에 따라 감소되어 명암대비가 향상되게 된다.In other words, the brightness value of the pixels having the high brightness value of the right area among the pixels included in the input image is increased according to the curve shape, and the brightness value of the pixels having the low brightness value of the left area is decreased according to the curve shape. Contrast is improved.

하지만, 커브 형태로 밝기 값을 보정하는 경우 연속적인 밝기 값이 아닌 급격한 변화를 지닌 지점이 발생한다. 즉, LB, UB, 커브의 변곡점, LB와 UB 사이의 중간지점 등에서 밝기 값의 급격한 변화로 등고선 현상이 발생하는 문제가 있다.However, when the brightness value is corrected in the form of a curve, a point with a sudden change occurs instead of a continuous brightness value. That is, there is a problem in that the contour phenomenon occurs due to the sudden change in the brightness value at the LB, UB, the inflection point of the curve, the intermediate point between the LB and UB.

상기한 바와 같은 종래기술의 문제점을 해결하기 위해, 본 발명에서는 등고선 현상을 개선할 수 있는 명암 보정 장치 및 방법을 제안하고자 한다 본 발명의 다른 목적들은 하기의 실시예를 통해 당업자에 의해 도출될 수 있을 것이다.In order to solve the problems of the prior art as described above, the present invention proposes a contrast correction apparatus and method that can improve the contour phenomenon. Other objects of the present invention can be derived by those skilled in the art through the following embodiments There will be.

상기한 목적을 달성하기 위해 본 발명의 바람직한 일 실시예에 따르면, 입력영상에 포함된 화소들을 대상으로 미리 설정된 기준 이상의 밝기 값을 가지는 화소들의 밝기 값은 증가시키며, 상기 미리 설정된 기준 미만의 밝기 값을 가지는 화소들의 밝기 값은 감소시키는 커브 형태의 밝기 값 보정을 수행하는 명암대비 향상부; 및 상기 화소들 중 상기 커브의 시작점, 종료점 및 변곡점 중 적어도 하나의 지점의 밝기 값과 미리 설정된 크기만큼 차이를 갖는 보정 화소의 밝기 값을 미리 설정된 보정 파라미터를 이용하여 보정하는 명암 보정부를 포함하는 것을 특징으로 하는 명암 보정 장치가 제공된다.According to an exemplary embodiment of the present invention, a brightness value of pixels having a brightness value higher than or equal to a predetermined reference is increased for pixels included in an input image, and a brightness value lower than the predetermined reference is increased. Contrast enhancer for performing a curve-shaped brightness value correction to reduce the brightness value of the pixel having a; And a contrast correcting unit configured to correct brightness values of a corrected pixel having a difference by a predetermined size from brightness values of at least one of a start point, an end point, and an inflection point of the curve among the pixels by using a preset correction parameter. A contrast correction device is provided.

상기 보정 파라미터는 0 또는 1의 값을 가지며, 상기 화소들 중 어느 하나의 화소에 설정되는 보정 파라미터는 상기 어느 하나의 화소의 상하좌우에 위치한 화소에 설정되는 보정 파라미터와 달리 설정될 수 있다.The correction parameter has a value of 0 or 1, and the correction parameter set in any one of the pixels may be set differently from the correction parameter set in pixels positioned above, below, left, and right of the one pixel.

상기 보정 화소는 상기 화소들 중 상기 커브의 시작점, 종료점 및 변곡점 중 적어도 하나의 지점의 밝기 값보다 미리 설정된 크기만큼 작은 밝기 값을 가지는 하나 이상의 제1 보정 화소 및 상기 화소들 중 상기 적어도 하나의 지점의 밝기 값보다 미리 설정된 크기 만큼 큰 밝기 값을 가지는 하나 이상의 제2 보정 화소를 포함할 수 있다.The at least one first correction pixel and the at least one point of the pixels may have at least one first correction pixel having a brightness value smaller than a brightness value of at least one of a start point, an end point, and an inflection point of the curve among the pixels. It may include one or more second correction pixels having a brightness value larger by a predetermined size than the brightness value of.

상기 명암 보정부는 상기 제1 보정 화소 중 상기 보정 파라미터가 1로 설정된 화소의 밝기 값을 상기 제2 보정 화소의 밝기 값으로 설정하며, 상기 제2 보정 화소 중 상기 보정 파라미터가 1로 설정된 화소의 밝기 값을 상기 제1 보정 화소의 밝기 값으로 설정할 수 있다.The contrast correction unit sets the brightness value of the pixel in which the correction parameter is set to 1 among the first correction pixels as the brightness value of the second correction pixel, and the brightness of the pixel in which the correction parameter is set to 1 among the second correction pixels. The value may be set as the brightness value of the first correction pixel.

상기 화소들에 대한 밝기 값 및 상기 밝기 값에 대한 화소 빈도수로 표현되는 히스토그램을 생성하는 히스토그램 생성부를 더 포함하되, 상기 명암대비 향상부는 상기 밝기 값 중 최소 값을 가지는 밝기 값에서 최대 값을 가지는 방향, 최대 값을 가지는 밝기 값에서 최소 값을 가지는 방향으로 상기 화소 빈도수를 탐색하여 미리 설정된 화소 빈도수 이상을 가지는 최초 지점의 밝기 값을 제1 기준점 및 제2 기준점으로 각각 설정하고, 상기 제1 기준점 및 제2 기준점 사이의 밝기 값을 대상으로 상기 커브 형태의 밝기 값 보정을 수행할 수 있다.The apparatus further includes a histogram generator configured to generate a histogram represented by a brightness value for the pixels and a pixel frequency for the brightness value, wherein the contrast enhancing unit has a maximum value in a brightness value having a minimum value among the brightness values. Search for the pixel frequency in a direction having the minimum value from a brightness value having a maximum value, and set brightness values of an initial point having a predetermined pixel frequency or more as a first reference point and a second reference point, respectively; The brightness value correction of the curve shape may be performed with respect to the brightness value between the second reference points.

상기 커브 형태는 상기 제1 기준점, 상기 제2 기준점, 상기 제1 기준점 및 상기 제2 기준점간의 중간지점, 상기 제1 기준점과 상기 중간지점 사이의 제1 변곡점 및 상기 제2 기준점과 상기 중간지점 사이의 제2 변곡점을 잇는 직선 또는 곡선으로 표현되는 형태를 가질 수 있다.The curve shape may include the first reference point, the second reference point, an intermediate point between the first reference point and the second reference point, a first inflection point between the first reference point and the intermediate point, and between the second reference point and the intermediate point. It may have a form represented by a straight line or curve connecting the second inflection point of.

본 발명의 다른 실시예에 따르면, 입력영상에 포함된 화소들을 대상으로 미리 설정된 기준 이상의 밝기 값을 가지는 화소들의 밝기 값은 증가시키며, 상기 미리 설정된 기준 미만의 밝기 값을 가지는 화소들의 밝기 값은 감소시키는 커브 형태의 밝기 값 보정을 수행하는 명암대비 향상부; 및According to another embodiment of the present invention, the brightness value of pixels having a brightness value higher than or equal to a predetermined reference is increased for the pixels included in the input image, and the brightness value of pixels having a brightness value lower than the predetermined reference is decreased. Contrast enhancer for performing a curve-shaped brightness value correction; And

상기 화소들 중 상기 커브의 시작점, 종료점 및 변곡점 중 적어도 하나의 지점의 밝기 값과 미리 설정된 크기만큼 차이를 갖는 보정 화소의 밝기 값을 보정하는 명암 보정부를 포함하는 것을 특징으로 하는 명암 보정 장치가 제공된다.And a contrast correcting unit configured to correct a brightness value of a correction pixel having a difference by a predetermined size from a brightness value of at least one of a start point, an end point, and an inflection point of the curve among the pixels. do.

본 발명의 다른 실시예에 따르면, 입력영상에 포함된 화소들을 대상으로 미리 설정된 기준 이상의 밝기 값을 가지는 화소들의 밝기 값은 증가시키며, 상기 미리 설정된 기준 미만의 밝기 값을 가지는 화소들의 밝기 값은 감소시키는 커브 형태의 밝기 값 보정을 수행하는 단계; 및 상기 화소들 중 상기 커브의 시작점, 종료점 및 변곡점 중 적어도 하나의 지점의 밝기 값과 미리 설정된 크기만큼 차이를 갖는 보정 화소의 밝기 값을 미리 설정된 보정 파라미터를 이용하여 보정하는 단계를 포함하는 것을 특징으로 하는 명암 보정 방법이 제공된다.According to another embodiment of the present invention, the brightness value of pixels having a brightness value higher than or equal to a predetermined reference is increased for the pixels included in the input image, and the brightness value of pixels having a brightness value lower than the predetermined reference is decreased. Performing brightness value correction in the form of a curve; And correcting, using a preset correction parameter, a brightness value of a correction pixel having a difference in magnitude from a brightness value of at least one of a start point, an end point, and an inflection point of the curve among the pixels by a preset size. A contrast correction method is provided.

본 발명에 따르면 명암대비 향상 시 발생하는 등고선 현상의 문제를 개선할 수 있다. 또한, 본 발명에 따른 명암 보정 방법은 종래 기법들보다 연산과정이 적어 하드웨어 사양이 제한된 소형 디바이스에 효율적으로 적용될 수 있다.According to the present invention, it is possible to improve the problem of the contour phenomenon occurring when the contrast is improved. In addition, the contrast correction method according to the present invention can be efficiently applied to a small device of limited hardware specifications due to less computational process than conventional techniques.

도 1은 종래의 명암대비 향상 알고리즘을 설명하기 위해 도시된 도면이다.
도 2는 본 발명의 일 실시예에 따른 명암 보정 장치를 도시한 블록도이다.
도 3은 본 발명의 일 실시예에 따른 히스토그램 및 명암대비 향상을 위한 명암 보정을 설명하기 위해 도시한 도면이다.
도 4는 본 발명의 일 실시예에 따른 제1 보정 화소 및 제2 보정 화소를 설명하기 위해 도시한 도면이다.
도 5는 본 발명의 일 실시예에 따른 보정 파라미터를 설명하기 위해 도시한 도면이다.
도 6은 본 발명의 보정 파라미터가 복수의 화소들에 설정되는 일례를 도시한 도면이다.
도 7은 본 발명의 일 실시예에 따른 명압 보정 방법에 대한 전체 과정을 도시한 순서도이다.
도 8은 본 발명의 일 실시예에 따른 명암 보정 방법의 효과를 설명하기 위한 도면이다.
1 is a diagram illustrating a conventional contrast enhancement algorithm.
2 is a block diagram illustrating a contrast correction apparatus according to an exemplary embodiment of the present invention.
3 is a diagram illustrating a histogram and contrast correction for improving contrast according to an embodiment of the present invention.
4 is a diagram for describing a first corrected pixel and a second corrected pixel according to an exemplary embodiment of the present invention.
5 is a diagram illustrating a correction parameter according to an embodiment of the present invention.
6 is a diagram illustrating an example in which a correction parameter of the present invention is set to a plurality of pixels.
7 is a flowchart illustrating the entire process of the pressure correction method according to an embodiment of the present invention.
8 is a view for explaining the effect of the contrast correction method according to an embodiment of the present invention.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다. While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the invention is not intended to be limited to the particular embodiments, but includes all modifications, equivalents, and alternatives falling within the spirit and scope of the invention. Like reference numerals are used for like elements in describing each drawing.

이하에서, 본 발명에 따른 실시예들을 첨부된 도면을 참조하여 상세하게 설명한다. Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings.

본 발명은 명암대비 향상에 의해 등고선 현상이 발생하는 지점의 주변 지점의 밝기 값들을 미리 설정된 조건에 따라 재 보정하여 등고선 현상을 개선하기 위한 명암 보정 장치 및 방법에 관한 것이다.The present invention relates to a contrast correction apparatus and method for improving the contour phenomenon by re-correcting the brightness values of the peripheral point of the point where the contour phenomenon occurs by the contrast enhancement according to a preset condition.

도 2는 본 발명의 일 실시예에 따른 명암 보정 장치를 도시한 블록도이다.2 is a block diagram illustrating a contrast correction apparatus according to an exemplary embodiment of the present invention.

도 2를 참조하면, 명암 보정 장치는 히스토그램 생성부(201), 명암대비 향상부(203) 및 명암 보정부(205)를 포함할 수 있다.2, the contrast correcting apparatus may include a histogram generator 201, a contrast enhancer 203, and a contrast corrector 205.

히스토그램 생성부(201)는 입력 영상에 포함되는 복수의 화소에 대한 밝기 값 및 상기 밝기 값에 대한 화소 빈도수로 표현되는 히스토그램을 생성한다.The histogram generator 201 generates a histogram represented by brightness values of a plurality of pixels included in the input image and pixel frequencies of the brightness values.

명암대비 향상부(203)는 상기 생성된 히스토그램을 이용하여 밝기 값 중 최소 값을 가지는 밝기 값에서 최대 값을 가지는 방향, 최대 값을 가지는 밝기 값에서 최소 값을 가지는 방향으로 화소 빈도수를 탐색하고, 미리 설정된 화소 빈도수 이상을 가지는 최초 지점의 밝기 값을 제1 기준점, 및 제2 기준점으로 각각 설정한다. The contrast enhancing unit 203 searches the pixel frequency in the direction having the maximum value in the brightness value having the minimum value and the minimum value in the brightness value having the maximum value using the generated histogram. The brightness value of the first point having a preset pixel frequency or more is set as the first reference point and the second reference point, respectively.

이어서, 명암대비 향상부(203)은 제1 기준점 및 제2 기준점 사이의 밝기 값을 대상으로 높은 밝기 값을 가지는 화소들의 밝기 값은 증가시키며, 낮은 밝기 값을 가지는 화소들의 밝기 값은 감소시키는 커브 형태의 밝기 값 보정을 수행한다.Subsequently, the contrast enhancer 203 is a curve that increases the brightness value of the pixels having a high brightness value and decreases the brightness value of the pixels having the low brightness value for the brightness value between the first reference point and the second reference point. Perform the brightness value correction of the shape.

도 3은 본 발명의 일 실시예에 따른 히스토그램 및 명암대비 향상을 위한 명암 보정을 설명하기 위해 도시한 도면이다.3 is a diagram illustrating a histogram and contrast correction for improving contrast according to an embodiment of the present invention.

도 3을 참조하면, 히스토그램 생성부(201)에 의해 생성되는 히스토그램(10)의 X 축은 밝기 값, Y축은 밝기 값에 대한 화소 빈도수로 표현된다. 여기서, 특정 밝기 값에 대한 화소 빈도수는 입력 영상에 포함된 화소들 중 특정 밝기 값을 가지는 화소의 수를 의미한다.Referring to FIG. 3, the X axis of the histogram 10 generated by the histogram generator 201 is expressed as a brightness value, and the Y axis is expressed as a pixel frequency with respect to the brightness value. Here, the pixel frequency with respect to the specific brightness value means the number of pixels having a specific brightness value among the pixels included in the input image.

명암대비 향상부(203)는 X 축의 좌측에서 우측 방향으로 화소 빈도수를 탐색하여, 미리 설정된 화소 빈도수(15) 이상을 가지는 최초 지점의 밝기 값을 제1 기준점(21)으로 설정한다. 또한, X 축의 좌측에서 우측 방향으로 화소 빈도수를 탐색하여, 미리 설정된 화소 빈도수(15) 이상을 가지는 최초 지점의 밝기 값을 제2 기준점(23)으로 설정한다.The contrast enhancement unit 203 searches the pixel frequency from the left to the right of the X axis to set the brightness value of the first point having the preset pixel frequency 15 or more as the first reference point 21. Further, the pixel frequency is searched from the left to the right of the X axis to set the brightness value of the first point having the preset pixel frequency 15 or more as the second reference point 23.

명암대비 향상부(203)는 제1 기준점(21)과 제2 기준점(23) 사이의 밝기 값을 가지는 화소들을 대상으로 커브 형태의 밝기 값 보정을 수행한다.The contrast enhancement unit 203 corrects the brightness value of a curve shape on pixels having a brightness value between the first reference point 21 and the second reference point 23.

본 실시예에 따르면 커브 형태는 제1 기준점(21), 제1 변곡점(27), 제1 기준점 및 제2 기준점 간의 중간지점(25), 제2 변곡점(29) 및 제2 기준점(23)을 잇는 도 3의 직선 또는 곡선으로 표현된다.According to the present exemplary embodiment, the curved shape includes the first reference point 21, the first inflection point 27, the intermediate point 25 between the first reference point and the second reference point, the second inflection point 29, and the second reference point 23. The teeth are represented by a straight line or a curve in FIG. 3.

명암대비 향상부(203)에 의한 커브 형태의 밝기 값 보정을 통해 제1 기준점(21)과 중간지점(25) 사이의 밝기 값을 가지는 화소들의 밝기 값은 감소되며, 중간지점(25)과 제2 기준점(25) 사이의 밝기 값을 가지는 화소들의 밝기 값은 증가하게 되어 명암대비가 향상된다.The brightness value of the pixels having the brightness value between the first reference point 21 and the intermediate point 25 is reduced by adjusting the brightness value of the curve shape by the contrast enhancement unit 203, and the intermediate point 25 and the zero point are reduced. The brightness value of the pixels having the brightness value between the two reference points 25 is increased to improve contrast.

명암 보정부(205)는 명암대비 향상부(203)에서 수행된 밝기 값 보정을 통해 급격하게 변하는 제1 기준점(21), 제2 기준점(23), 중간지점(25), 제1 변곡점(27) 및 제2 변곡점(29)에서 발생하는 등고선 현상을 해소하기 위한 밝기 값 보정을 수행한다.The contrast correcting unit 205 is the first reference point 21, the second reference point 23, the intermediate point 25, the first inflection point 27 that changes rapidly through the brightness value correction performed by the contrast enhancement unit 203 And the brightness value correction to solve the contour phenomenon occurring at the second inflection point 29.

보다 상세하게, 명암 보정부(205)는 제1 기준점(21), 제2 기준점(23), 중간지점(25), 제1 변곡점(27) 및 제2 변곡점(29) 중 적어도 하나의 지점의 밝기 값과 미리 설정된 크기만큼 차이를 갖는 보정 화소의 밝기 값을 보정할 수 있다.In more detail, the contrast corrector 205 may include at least one of a first reference point 21, a second reference point 23, an intermediate point 25, a first inflection point 27, and a second inflection point 29. The brightness value of the correction pixel having a difference between the brightness value and the preset size may be corrected.

여기서 보정 화소는 복수의 화소 중 제1 기준점(21), 제2 기준점(23), 중간지점(25), 제1 변곡점(27) 및 제2 변곡점(29) 중 적어도 하나의 지점의 밝기 값보다 미리 설정된 크기만큼 작은 밝기 값을 가지는 하나 이상의 제1 보정 화소 및 복수의 화소 중 상기 적어도 하나의 지점의 밝기 값보다 미리 설정된 크기 만큼 큰 밝기 값을 가지는 하나 이상의 제2 보정 화소를 포함할 수 있다.The correction pixel may have a brightness value greater than at least one of the first reference point 21, the second reference point 23, the intermediate point 25, the first inflection point 27, and the second inflection point 29 of the plurality of pixels. One or more first correction pixels having a brightness value as small as a preset size and one or more second correction pixels having a brightness value as large as a preset size than a brightness value of the at least one point among a plurality of pixels.

도 4는 본 발명의 일 실시예에 따른 제1 보정 화소 및 제2 보정 화소를 설명하기 위해 도시한 도면이다.4 is a diagram for describing a first corrected pixel and a second corrected pixel according to an exemplary embodiment of the present invention.

도 4를 참조하면, 제1 기준점(21)의 밝기 값은 10, 제1 변곡점(27)의 밝기 값은 50, 중심지점(25)의 밝기 값은 90, 제2 변곡점(29)의 밝기 값은 110, 제2 기준점(29)의 밝기 값은 170이다.Referring to FIG. 4, the brightness value of the first reference point 21 is 10, the brightness value of the first inflection point 27 is 50, the brightness value of the central point 25 is 90, and the brightness value of the second inflection point 29 is shown. Is 110 and the brightness value of the second reference point 29 is 170.

미리 설정된 크기가 1인 경우 제1 기준점(21)의 제1 보정 화소 및 제2 보정 화소의 밝기 값은 9 및 11이며, 제1 변곡점(27)의 제1 보정 화소 및 제2 보정 화소는 49 및 51이다. 또한, 중심지점(25)의 제1 보정 화소 및 제2 보정 화소의 밝기 값은 89 및 91, 제2 변곡점(29)의 제1 보정 화소 및 제2 보정 화소의 밝기 값은 109 및 111, 제2 기준점(29)의 제1 보정 화소 및 제2 보정 화소의 밝기 값은 169 및 171 이다.When the preset size is 1, the brightness values of the first correction pixel and the second correction pixel of the first reference point 21 are 9 and 11, and the first correction pixel and the second correction pixel of the first inflection point 27 are 49 And 51. The brightness values of the first and second correction pixels at the center point 25 are 89 and 91, and the brightness values of the first and second correction pixels at the second inflection point 29 are 109 and 111, respectively. The brightness values of the first correction pixel and the second correction pixel at the two reference points 29 are 169 and 171.

따라서, 명암 보정부(205)는 제1 기준점(21)의 제1 보정 화소의 밝기 값은 9이며, 제2 보정 화소의 밝기 값이 11이므로, 제1 보정 화소들의 밝기 값을 11로, 제2 보정 화소들의 밝기 값을 9로 서로 교환하여 설정할 수 있다. 또한, 명암 보정부(205)는 제2 기준점(23), 중심지점(25), 제1 변곡점(27), 제2 변곡점(29)의 제1 및 제2 보정 화소들에 대해서도 동일한 과정을 수행할 수 있다.Accordingly, since the brightness correction unit 205 has the brightness value of the first correction pixel at the first reference point 21 is 9 and the brightness value of the second correction pixel is 11, the brightness correction value of the first correction pixels is 11, The brightness values of the two correction pixels may be set to 9 interchangeably. In addition, the contrast correction unit 205 performs the same process on the first and second correction pixels of the second reference point 23, the center point 25, the first inflection point 27, and the second inflection point 29. can do.

상기와 같이 명암 보정부(205)는 제1 보정 화소의 밝기 값을 가지는 화소들과 제2 보정 화소의 밝기 값을 가지는 화소들의 밝기 값을 교환하여 설정함으로써 각 지점(21, 23, 25, 27, 29)에서 급격하게 변화는 밝기 값을 좀더 부드럽게 조정하여 등고선 현상을 해결할 수 있다.As described above, the contrast correction unit 205 exchanges and sets the brightness values of the pixels having the brightness value of the first correction pixel and the pixels having the brightness value of the second correction pixel, thereby setting the respective points 21, 23, 25, 27. , 29) can be solved by adjusting the brightness value more smoothly.

등고선 현상은 밝기 값이 급격하게 변할 때 외에도 특정 부분에 같은 패턴이 연속해서 나타남으로써 발생할 수 있다. 따라서, 연속해서 나타나는 패턴 부분을 불규칙적으로 변경함으로써 등고선 현상을 해소할 수 있다.Contour contours can occur when the same pattern appears continuously in a specific area, in addition to when the brightness value changes abruptly. Therefore, the contour phenomenon can be eliminated by irregularly changing the pattern part which appears continuously.

따라서, 본 발명의 다른 실시예에 따르면, 명암 보정부(205)는 입력 영상에 포함된 화소들에 보정 파라미터를 각각 설정하고, 보정 파라미터를 이용하여 제1 보정 화소 및 제2 보정 화소의 밝기 값을 불규칙한 패턴으로 보정할 수 있다.Therefore, according to another embodiment of the present invention, the contrast correction unit 205 sets correction parameters to pixels included in the input image, respectively, and uses brightness values to adjust brightness values of the first correction pixel and the second correction pixel. Can be corrected to irregular patterns.

도 5는 본 발명의 일 실시예에 따른 보정 파라미터를 설명하기 위해 도시한 도면이며, 도 6은 본 발명의 보정 파라미터가 화소들에 설정되는 일례를 도시한 도면이다.5 is a diagram illustrating a correction parameter according to an embodiment of the present invention, and FIG. 6 is a diagram illustrating an example in which a correction parameter of the present invention is set in pixels.

도 5를 참조하면, 보정 파라미터는 0 또는 1의 값을 가질 수 있다.Referring to FIG. 5, the correction parameter may have a value of zero or one.

화소에 설정된 보정 파라미터가 0인 경우 밝기 값은 그대로 유지되며, 1인 경우 본 발명의 명암 보정 방법이 적용된다.When the correction parameter set to 0 is 0, the brightness value is maintained as it is, and when 1, the contrast correction method of the present invention is applied.

화소들에 설정되는 보정 파라미터는 도 6과 같이 화소의 밝기 값과는 무관하게 0과 1이 반복되어 설정될 수 있다. 즉, 화소들 중 어느 하나의 화소에 설정되는 보정 파라미터는 어느 하나의 화소의 상하좌우에 위치한 화소에 설정되는 보정 파라미터와 달리 설정될 수 있다.The correction parameters set for the pixels may be repeatedly set to 0 and 1 regardless of the brightness value of the pixel as shown in FIG. 6. That is, the correction parameter set in any one of the pixels may be set differently from the correction parameter set in the pixels located above, below, left, and right of any one pixel.

명암 보정부(205)는 제1 보정 화소 중 보정 파라미터가 1로 설정된 화소들의 밝기 값을 제2 보정 화소의 밝기 값으로 설정하며, 보정 파라미터가 0으로 설정된 화소들의 밝기 값은 그대로 유지시킨다.The contrast correction unit 205 sets the brightness value of the pixels having the correction parameter set to 1 as the brightness value of the second correction pixel among the first correction pixels, and maintains the brightness values of the pixels having the correction parameter set to 0 as they are.

또한, 명암 보정부(205)는 제2 보정 화소 중 보정 파라미터가 1로 설정된 화소들의 밝기 값을 제1 보정 화소의 밝기 값으로 설정하며, 보정 파라미터가 0으로 설정된 화소들의 밝기 값을 그대로 유지시킨다.In addition, the contrast correction unit 205 sets the brightness value of the pixels of which the correction parameter is set to 1 among the second correction pixels as the brightness value of the first correction pixel and maintains the brightness values of the pixels whose correction parameter is set to 0 as it is. .

예를 들어, 제1 기준점(21)의 제1 보정 화소의 밝기 값이 9이고 제2 보정 화소의 밝기 값이 11인 경우, 명암 보정부(205)는 밝기 값이 9인 화소들 중 보정 파라미터가 1로 설정된 화소들의 밝기 값을 11로 설정한다. 또한, 밝기 값이 11인 화소들 중 보정 파라미터가 1로 설정된 화소들의 밝기 값을 9로 설정한다.For example, when the brightness value of the first correction pixel of the first reference point 21 is 9 and the brightness value of the second correction pixel is 11, the contrast correction unit 205 corrects the correction parameters among the pixels having the brightness value 9. Sets the brightness value of the pixels set to 1 to 11. In addition, among the pixels having a brightness value of 11, the brightness value of the pixels for which the correction parameter is set to 1 is set to 9.

상기에서 설명한 바와 같이 명암 보정부(205)는 각 지점(21, 23, 25, 27, 29)에 대한 제1 보정 화소 및 제2 보정 화소의 밝기 값을 가지는 화소들 중 보정 파라미터가 1로 설정된 화소들에 대해서만 밝기 값을 보정함으로써 보정되는 패턴을 불규칙하게 만들 수 있으며 이를 통해 등고선 현상이 발생하는 경계를 흐릿하게 만들 수 있다.As described above, the contrast correction unit 205 sets the correction parameter to 1 among pixels having brightness values of the first correction pixel and the second correction pixel for each of the points 21, 23, 25, 27, and 29. By correcting the brightness value only for the pixels, the pattern to be corrected can be made irregular, thereby blurring the boundary where the contour phenomenon occurs.

도 7은 본 발명의 일 실시예에 따른 명압 보정 방법에 대한 전체 과정을 도시한 순서도이다.7 is a flowchart illustrating the entire process of the pressure correction method according to an embodiment of the present invention.

먼저 단계(S700)에서, 히스토그램 생성부(201)은 입력 영상의 화소들에 대한 밝기 값 및 상기 밝기 값에 대한 화소 빈도수로 표현되는 히스토그램을 생성한다.First, in step S700, the histogram generator 201 generates a histogram represented by brightness values of pixels of an input image and pixel frequencies of the brightness values.

이어서, 단계(S705)에서 명암대비 향상부(203)는 히스토그램을 이용하여 밝기 값 중 최소 값을 가지는 밝기 값에서 최대 값을 가지는 방향, 최대 값을 가지는 밝기 값에서 최소 값을 가지는 방향으로 화소 빈도수를 탐색하여 미리 설정된 화소 빈도수 이상을 가지는 최초 지점의 밝기 값을 제1 기준점 및 제2 기준점으로 각각 설정하고, 제1 기준점 및 제2 기준점 사이의 밝기 값을 대상으로 커브 형태의 밝기 값 보정을 수행한다.Subsequently, in step S705, the contrast enhancing unit 203 uses the histogram to determine the pixel frequency in the direction having the maximum value from the brightness value having the minimum value and the direction having the minimum value from the brightness value having the maximum value. Search for and set the brightness values of the first point having a predetermined pixel frequency or more as the first reference point and the second reference point, respectively, and correct the curve-shaped brightness values with respect to the brightness values between the first reference point and the second reference point. do.

마지막으로 단계(S710)에서는 제1 보정 화소 및 제2 보정 화소에 미리 설정된 보정 파라미터를 이용하여 제1 보정 화소의 밝기 값 및 제2 보정 화소의 밝기 값을 보정한다.Finally, in step S710, the brightness value of the first correction pixel and the brightness value of the second correction pixel are corrected by using correction parameters preset to the first correction pixel and the second correction pixel.

여기서, 제1 보정 화소는 복수의 화소 중 제1 기준점(21), 제2 기준점(23), 중간지점(25), 제1 변곡점(27) 및 제2 변곡점(29) 중 적어도 하나의 지점의 밝기 값보다 미리 설정된 크기만큼 작은 밝기 값을 가지는 화소들을 의미한다. 또한, 제2 보정 화소는 복수의 화소 중 상기 적어도 하나의 지점의 밝기 값 보다 미리 설정된 크기만큼 큰 밝기 값을 가지는 화소들을 의미한다.The first correction pixel may include at least one of a first reference point 21, a second reference point 23, an intermediate point 25, a first inflection point 27, and a second inflection point 29 of the plurality of pixels. The pixels have a brightness value smaller by a predetermined size than the brightness value. In addition, the second correction pixel refers to pixels having a brightness value larger than a brightness value of the at least one point among a plurality of pixels by a predetermined size.

지금까지 본 발명에 따른 명암 보정 방법의 실시예들에 대하여 설명하였고, 앞서 도 2 내지 도 6에서 설명한 채도 보정 장치에 관한 구성이 본 실시예에도 그대로 적용이 가능하다. 이에 보다 상세한 설명은 생략하기로 한다.Embodiments of the contrast correction method according to the present invention have been described so far, and the configuration of the saturation correction device described with reference to FIGS. 2 to 6 can be applied to the present embodiment as it is. A detailed description thereof will be omitted.

도 8은 본 발명의 일 실시예에 따른 명암 보정 방법의 효과를 설명하기 위한 도면이다.8 is a view for explaining the effect of the contrast correction method according to an embodiment of the present invention.

도 8(a)는 원본 영상이며, 도 8(b)는 종래 명암대비 향상 기법의 적용에 따라 등고선 현상이 발생한 영상이다. 도 8(c)는 본 발명의 명암 보정 방법을 적용한 영상이다.FIG. 8 (a) is an original image, and FIG. 8 (b) is an image in which a contour phenomenon occurs according to the application of the conventional contrast enhancement technique. 8 (c) is an image to which the contrast correction method of the present invention is applied.

도 8(c)를 살펴보면, 도 8(b)에 비해 등고선 현상이 개선되었음을 확인할 수 있다.Looking at Figure 8 (c), it can be seen that the contour phenomenon is improved compared to Figure 8 (b).

또한, 본 발명의 명암 보정 방법은 단순한 1-bit의 보정 파라미터를 이용하여 명암 보정을 수행함으로 연산과정이 적어 하드웨어 사양이 제한된 소형 디바이스에 효율적으로 적용될 수 있다.In addition, the contrast correction method of the present invention can be efficiently applied to a small device having a limited hardware specification by performing a correction process using a simple 1-bit correction parameter.

또한, 본 발명의 실시예들은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. 상기된 하드웨어 장치는 본 발명의 일 실시예들의 동작을 수행하기 위해 적어도 하나의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.In addition, embodiments of the present invention may be implemented in the form of program instructions that can be executed through various computer means and recorded on a computer readable medium. The computer-readable medium may include program instructions, data files, data structures, and the like, alone or in combination. The program instructions recorded on the medium may be those specially designed and constructed for the present invention or may be available to those skilled in the art of computer software. Examples of computer-readable media include magnetic media such as hard disks, floppy disks, and magnetic tape; optical media such as CD-ROMs and DVDs; magnetic media such as floppy disks; Examples of program instructions, such as magneto-optical and ROM, RAM, flash memory and the like, can be executed by a computer using an interpreter or the like, as well as machine code, Includes a high-level language code. The hardware devices described above may be configured to operate as at least one software module to perform operations of one embodiment of the present invention, and vice versa.

이상과 같이 본 발명에서는 구체적인 구성 요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다. 따라서, 본 발명의 사상은 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.As described above, the present invention has been described by specific embodiments such as specific components and the like. For those skilled in the art, various modifications and variations are possible from these descriptions. Accordingly, the spirit of the present invention should not be construed as being limited to the embodiments described, and all of the equivalents or equivalents of the claims, as well as the following claims, belong to the scope of the present invention .

201: 히스토그램 생성부 203: 명암대비 향상부
205: 명암 보정부 21: 제1 기준점
23: 제2 기준점 25: 중심지점
27: 제1 변곡점 29: 제2 변곡점
201: histogram generator 203: contrast enhancement unit
205: contrast correction unit 21: first reference point
23: second reference point 25: center point
27: first inflection point 29: second inflection point

Claims (14)

입력영상에 포함된 화소들을 대상으로 미리 설정된 기준 이상의 밝기 값을 가지는 화소들의 밝기 값은 증가시키며, 상기 미리 설정된 기준 미만의 밝기 값을 가지는 화소들의 밝기 값은 감소시키는 커브 형태의 밝기 값 보정을 수행하는 명암대비 향상부; 및
상기 화소들 중 밝기 값이 최저인 지점과 대응되는 상기 커브의 시작점, 밝기 값이 최고인 지점과 대응되는 종료점 및 상기 커브의 변곡점 중 적어도 하나의 지점의 밝기 값과 미리 설정된 크기만큼 차이를 갖는 보정 화소의 밝기 값을 미리 설정된 보정 파라미터를 이용하여 보정하는 명암 보정부를 포함하는 것을 특징으로 하는 명암 보정 장치.
The brightness value of the pixels having a brightness value higher than or equal to a predetermined reference is increased for the pixels included in the input image, and the brightness value correction of a curve shape is performed to decrease the brightness value of pixels having the brightness value lower than the preset reference. Contrast enhancement unit; And
A correction pixel having a predetermined size difference from a brightness value of at least one of a start point of the curve corresponding to a point at which the brightness value is lowest among the pixels, an end point corresponding to a point at which the brightness value is highest, and an inflection point of the curve And a brightness correction unit for correcting a brightness value of the camera using a preset correction parameter.
제1항에 있어서,
상기 보정 파라미터는 0 또는 1의 값을 가지며,
상기 화소들 중 어느 하나의 화소에 설정되는 보정 파라미터는 상기 어느 하나의 화소의 가장 인접한 상하좌우에 위치한 화소에 설정되는 보정 파라미터와 달리 설정되는 것을 특징으로 하는 명암 보정 장치.
The method of claim 1,
The correction parameter has a value of 0 or 1,
The correction parameter set to any one of the pixels is different from the correction parameter set to the pixels located closest to each other adjacent to the one of the pixels.
제2항에 있어서,
상기 보정 화소는 상기 화소들 중 상기 커브의 시작점, 종료점 및 변곡점 중 적어도 하나의 지점의 밝기 값보다 미리 설정된 크기만큼 작은 밝기 값을 가지는 하나 이상의 제1 보정 화소 및 상기 화소들 중 상기 적어도 하나의 지점의 밝기 값보다 미리 설정된 크기 만큼 큰 밝기 값을 가지는 하나 이상의 제2 보정 화소를 포함하는 것을 특징으로 하는 명암 보정 장치.
3. The method of claim 2,
The at least one first correction pixel and the at least one point of the pixels may have at least one first correction pixel having a brightness value smaller than a brightness value of at least one of a start point, an end point, and an inflection point of the curve among the pixels. And at least one second correction pixel having a brightness value greater than a brightness value by a preset size.
제3항에 있어서,
상기 명암 보정부는 상기 제1 보정 화소 중 상기 보정 파라미터가 1로 설정된 화소의 밝기 값을 상기 제2 보정 화소의 밝기 값으로 설정하며,
상기 제2 보정 화소 중 상기 보정 파라미터가 1로 설정된 화소의 밝기 값을 상기 제1 보정 화소의 밝기 값으로 설정하는 것을 특징으로 하는 명암 보정 장치.
The method of claim 3,
The contrast correction unit sets a brightness value of a pixel in which the correction parameter is set to 1 among the first correction pixels as a brightness value of the second correction pixel.
And a brightness value of the pixel in which the correction parameter is set to 1 among the second correction pixels as a brightness value of the first correction pixel.
제1항에 있어서,
상기 화소들에 대한 밝기 값 및 상기 밝기 값에 대한 화소 빈도수로 표현되는 히스토그램을 생성하는 히스토그램 생성부를 더 포함하되,
상기 명암대비 향상부는 상기 밝기 값 중 최소 값을 가지는 밝기 값에서 최대 값을 가지는 방향, 최대 값을 가지는 밝기 값에서 최소 값을 가지는 방향으로 상기 화소 빈도수를 탐색하여 미리 설정된 화소 빈도수 이상을 가지는 최초 지점의 밝기 값을 제1 기준점 및 제2 기준점으로 각각 설정하고, 상기 제1 기준점 및 제2 기준점 사이의 밝기 값을 대상으로 상기 커브 형태의 밝기 값 보정을 수행하는 것을 특징으로 하는 명암 보정 장치.
The method of claim 1,
Further comprising a histogram generator for generating a histogram represented by the brightness value for the pixels and the frequency of the pixel for the brightness value,
The contrast enhancement unit searches for the pixel frequency in a direction having a maximum value from a brightness value having a minimum value among the brightness values and a direction having a minimum value from a brightness value having a maximum value, and then has an initial point having a predetermined pixel frequency or more. And setting the brightness value of the first reference point and the second reference point, respectively, and correcting the brightness value of the curve shape with respect to the brightness value between the first reference point and the second reference point.
제5항에 있어서,
상기 커브 형태는 상기 제1 기준점, 상기 제2 기준점, 상기 제1 기준점 및 상기 제2 기준점간의 중간지점, 상기 제1 기준점과 상기 중간지점 사이의 제1 변곡점 및 상기 제2 기준점과 상기 중간지점 사이의 제2 변곡점을 잇는 직선 또는 곡선으로 표현되는 형태를 가지는 것을 특징으로 하는 명암 보정 장치.
6. The method of claim 5,
The curve shape may include the first reference point, the second reference point, an intermediate point between the first reference point and the second reference point, a first inflection point between the first reference point and the intermediate point, and between the second reference point and the intermediate point. Contrast correction device characterized in that it has a form represented by a straight line or curve connecting the second inflection point.
입력영상에 포함된 화소들을 대상으로 미리 설정된 기준 이상의 밝기 값을 가지는 화소들의 밝기 값은 증가시키며, 상기 미리 설정된 기준 미만의 밝기 값을 가지는 화소들의 밝기 값은 감소시키는 커브 형태의 밝기 값 보정을 수행하는 명암대비 향상부; 및
상기 화소들 중 밝기 값이 최저인 지점과 대응되는 상기 커브의 시작점, 밝기 값이 최고인 지점과 대응되는 종료점 및 상기 커브의 변곡점 중 적어도 하나의 지점의 밝기 값과 미리 설정된 크기만큼 차이를 갖는 보정 화소의 밝기 값을 보정하는 명암 보정부를 포함하는 것을 특징으로 하는 명암 보정 장치.
The brightness value of the pixels having a brightness value higher than or equal to a predetermined reference is increased for the pixels included in the input image, and the brightness value correction of a curve shape is performed to decrease the brightness value of pixels having the brightness value lower than the preset reference. Contrast enhancement unit; And
A correction pixel having a predetermined size difference from a brightness value of at least one of a start point of the curve corresponding to a point at which the brightness value is lowest among the pixels, an end point corresponding to a point at which the brightness value is highest, and an inflection point of the curve Contrast correction device comprising a contrast correction unit for correcting the brightness value of.
제7항에 있어서,
상기 보정 화소는 상기 화소들 중 상기 커브의 시작점, 종료점 및 변곡점 중 적어도 하나의 지점의 밝기 값보다 미리 설정된 크기만큼 작은 밝기 값을 가지는 하나 이상의 제1 보정 화소 및 상기 화소들 중 상기 적어도 하나의 지점의 밝기 값보다 미리 설정된 크기 만큼 큰 밝기 값을 가지는 하나 이상의 제2 보정 화소를 포함하며,
상기 명암 보정부는 상기 제1 보정 화소의 밝기 값 및 상기 제2 보정 화소의 밝기 값을 서로 교환하여 설정하는 것을 특징으로 하는 명암 보정 장치.
8. The method of claim 7,
The at least one first correction pixel and the at least one point of the pixels may have at least one first correction pixel having a brightness value smaller than a brightness value of at least one of a start point, an end point, and an inflection point of the curve among the pixels. At least one second correction pixel having a brightness value greater than a brightness value of a preset size,
And the contrast correction unit sets the brightness value of the first correction pixel and the brightness value of the second correction pixel interchangeably.
입력영상에 포함된 화소들을 대상으로 미리 설정된 기준 이상의 밝기 값을 가지는 화소들의 밝기 값은 증가시키며, 상기 미리 설정된 기준 미만의 밝기 값을 가지는 화소들의 밝기 값은 감소시키는 커브 형태의 밝기 값 보정을 수행하는 단계; 및
상기 화소들 중 밝기 값이 최저인 지점과 대응되는 상기 커브의 시작점, 밝기 값이 최고인 지점과 대응되는 종료점 및 상기 커브의 변곡점 중 적어도 하나의 지점의 밝기 값과 미리 설정된 크기만큼 차이를 갖는 보정 화소의 밝기 값을 미리 설정된 보정 파라미터를 이용하여 보정하는 단계를 포함하는 것을 특징으로 하는 명암 보정 방법.
The brightness value of the pixels having a brightness value higher than or equal to a predetermined reference is increased for the pixels included in the input image, and the brightness value correction of a curve shape is performed to decrease the brightness value of pixels having the brightness value lower than the preset reference. Making; And
A correction pixel having a predetermined size difference from a brightness value of at least one of a start point of the curve corresponding to a point at which the brightness value is lowest among the pixels, an end point corresponding to a point at which the brightness value is highest, and an inflection point of the curve Compensating for the brightness value using a preset calibration parameter.
제9항에 있어서,
상기 커브 형태의 밝기 값 보정을 수행하는 단계 이전에 상기 화소들에 대한 밝기 값 및 상기 밝기 값에 대한 화소 빈도수로 표현되는 히스토그램을 생성하는 단계를 더 포함하되,
상기 커브 형태의 밝기 값 보정을 수행하는 단계는 상기 밝기 값 중 최소 값을 가지는 밝기 값에서 최대 값을 가지는 방향, 최대 값을 가지는 밝기 값에서 최소 값을 가지는 방향으로 상기 화소 빈도수를 탐색하여 미리 설정된 화소 빈도수 이상을 가지는 최초 지점의 밝기 값을 제1 기준점 및 제2 기준점으로 각각 설정하고, 상기 제1 기준점 및 제2 기준점 사이의 밝기 값을 대상으로 상기 커브 형태의 밝기 값 보정을 수행하는 것을 특징으로 하는 명암 보정 방법.
10. The method of claim 9,
Generating a histogram represented by brightness values for the pixels and pixel frequencies for the brightness values before performing the curve-shaped brightness value correction.
The adjusting of the brightness value of the curve shape may be performed by searching the pixel frequency in a direction having a maximum value from a brightness value having a minimum value and a direction having a minimum value from a brightness value having a maximum value. The brightness value of the first point having a pixel frequency or more is set as a first reference point and a second reference point, respectively, and the brightness value correction of the curve shape is performed on the brightness values between the first reference point and the second reference point. Contrast correction method.
제9항에 있어서,
상기 보정 파라미터는 0 또는 1의 값을 가지며,
상기 화소들 중 어느 하나의 화소에 설정되는 보정 파라미터는 상기 어느 하나의 화소의 가장 인접한 상하좌우에 위치한 화소에 설정되는 보정 파라미터와 달리 설정되는 것을 특징으로 하는 명암 보정 방법.
10. The method of claim 9,
The correction parameter has a value of 0 or 1,
The correction parameter set to any one of the pixels is different from the correction parameter set to the pixels located closest to each other adjacent to the one of the pixels.
제11항에 있어서,
상기 보정 화소는 상기 화소들 중 상기 커브의 시작점, 종료점 및 변곡점 중 적어도 하나의 지점의 밝기 값보다 미리 설정된 크기만큼 작은 밝기 값을 가지는 하나 이상의 제1 보정 화소 및 상기 화소들 중 상기 적어도 하나의 지점의 밝기 값보다 미리 설정된 크기 만큼 큰 밝기 값을 가지는 하나 이상의 제2 보정 화소를 포함하는 것을 특징으로 하는 명암 보정 방법.
12. The method of claim 11,
The at least one first correction pixel and the at least one point of the pixels may have at least one first correction pixel having a brightness value smaller than a brightness value of at least one of a start point, an end point, and an inflection point of the curve among the pixels. And at least one second correction pixel having a brightness value larger by a predetermined size than the brightness value of.
제12항에 있어서,
상기 보정하는 단계는,
상기 제1 보정 화소 중 상기 보정 파라미터가 1로 설정된 화소의 밝기 값을 상기 제2 보정 화소의 밝기 값으로 설정하며,
상기 제2 보정 화소 중 상기 보정 파라미터가 1로 설정된 화소의 밝기 값을 상기 제1 보정 화소의 밝기 값으로 설정하는 것을 특징으로 하는 명암 보정 방법.
The method of claim 12,
Wherein the correcting comprises:
A brightness value of a pixel in which the correction parameter is set to 1 among the first correction pixels is set as a brightness value of the second correction pixel,
And a brightness value of the pixel in which the correction parameter is set to 1 among the second correction pixels as a brightness value of the first correction pixel.
제9항 또는 제13항 중 어느 한 항에 따른 방법을 수행하는 프로그램이 기록된 컴퓨터 판독 가능한 기록매체.A computer-readable recording medium having recorded thereon a program for performing the method according to claim 9.
KR1020120067937A 2012-06-25 2012-06-25 Method and apparatus for correcting contrast KR101374031B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020120067937A KR101374031B1 (en) 2012-06-25 2012-06-25 Method and apparatus for correcting contrast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020120067937A KR101374031B1 (en) 2012-06-25 2012-06-25 Method and apparatus for correcting contrast

Publications (2)

Publication Number Publication Date
KR20140000768A KR20140000768A (en) 2014-01-06
KR101374031B1 true KR101374031B1 (en) 2014-03-12

Family

ID=50138509

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020120067937A KR101374031B1 (en) 2012-06-25 2012-06-25 Method and apparatus for correcting contrast

Country Status (1)

Country Link
KR (1) KR101374031B1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007183342A (en) 2006-01-05 2007-07-19 Nec Electronics Corp Data converting circuit and display device using the same
WO2009072207A1 (en) 2007-12-06 2009-06-11 Fujitsu Limited Image correction device, image correction program, and image correction method
JP2010010754A (en) 2008-06-24 2010-01-14 Sanyo Electric Co Ltd Display device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007183342A (en) 2006-01-05 2007-07-19 Nec Electronics Corp Data converting circuit and display device using the same
WO2009072207A1 (en) 2007-12-06 2009-06-11 Fujitsu Limited Image correction device, image correction program, and image correction method
JP2010010754A (en) 2008-06-24 2010-01-14 Sanyo Electric Co Ltd Display device

Also Published As

Publication number Publication date
KR20140000768A (en) 2014-01-06

Similar Documents

Publication Publication Date Title
JP3956887B2 (en) Image processing apparatus, image processing method, and image processing program
JP4523926B2 (en) Image processing apparatus, image processing program, and image processing method
CN109191395A (en) Method for enhancing picture contrast, device, equipment and storage medium
JP2017092872A (en) Image processing apparatus and image processing method
JP6287100B2 (en) Image processing apparatus, image processing method, program, and storage medium
CN106251298B (en) Method and apparatus for processing image
JP2008148316A (en) Apparatus and method for improving sharpness of image
JP6485068B2 (en) Image processing method and image processing apparatus
WO2013027723A1 (en) Noise reduction device, noise reduction method and program
US7555169B2 (en) Method and a device for reducing image noises
JP2012238171A5 (en)
KR101374031B1 (en) Method and apparatus for correcting contrast
US9524538B2 (en) Image processing apparatus
JP2017134596A (en) Image processing method and process simulation device
CN112837230B (en) Image processing apparatus, image processing method, and computer readable medium
JP2009200884A (en) Image data processor and image data processing method
JP4232831B2 (en) Image processing apparatus, image processing method, and image processing program
JP6444049B2 (en) Image processing apparatus, method, and program
JP6135937B2 (en) Image processing method and image processing apparatus
KR101422921B1 (en) apparatus and method of stretching histogram
US11032446B2 (en) Image processing device, image processing method, and program for correcting color in an image
JP5860298B2 (en) Image processing apparatus and program
TWI389571B (en) Image processing method and image processing apparatus
JP6123149B2 (en) Image processing program, image processing apparatus, and image processing method
KR101406552B1 (en) Method and apparatus for correcting color

Legal Events

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

Payment date: 20170209

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20180220

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee