KR101164535B1 - Adaptive image compensating device and method thereof - Google Patents

Adaptive image compensating device and method thereof Download PDF

Info

Publication number
KR101164535B1
KR101164535B1 KR1020100127496A KR20100127496A KR101164535B1 KR 101164535 B1 KR101164535 B1 KR 101164535B1 KR 1020100127496 A KR1020100127496 A KR 1020100127496A KR 20100127496 A KR20100127496 A KR 20100127496A KR 101164535 B1 KR101164535 B1 KR 101164535B1
Authority
KR
South Korea
Prior art keywords
compensation
pixel
brightness
weight
value
Prior art date
Application number
KR1020100127496A
Other languages
Korean (ko)
Other versions
KR20120066250A (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 KR1020100127496A priority Critical patent/KR101164535B1/en
Publication of KR20120066250A publication Critical patent/KR20120066250A/en
Application granted granted Critical
Publication of KR101164535B1 publication Critical patent/KR101164535B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/01Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
    • H04N7/0135Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving interpolation processes
    • H04N7/0145Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving interpolation processes the interpolation being class adaptive, i.e. it uses the information of class which is determined for a pixel based upon certain characteristics of the neighbouring pixels
    • G06T5/80
    • G06T5/94
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20004Adaptive image processing
    • G06T2207/20012Locally adaptive
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows

Abstract

영역별로 밝기의 선명도를 향상시키는 적응적 영상 보상 장치 및 방법이 개시된다. 이전 프레임의 영역별 평균 밝기로부터 현재 프레임의 각 화소의 지역 밝기값을 예측하는 지역 밝기 예측부 및 상기 지역 밝기값을 기초하여 화소별 가중치를 계산하고, 상기 화소별 가중치에 따라 저조도 영역 보상 혹은 고조도 영역 보상을 수행하는 지역 보상부를 포함하는 적응적 영상 보상 장치에 의하면, 입력 영상으로부터 각각 어두운 영역과 밝은 영역의 밝기가 보상된 두 장의 영상을 획득한 뒤 지역 밝기값에 따라 변하는 가중치 함수에 근거하여 두 장의 영상을 합성함으로써 어두운 영역과 밝은 영역의 명도 및/또는 채도가 모두 보상된 한 장의 결과 영상을 획득하는 것이 가능하다.Disclosed is an apparatus and method for adaptive image compensating for improving brightness sharpness for each region. An area brightness predicting unit predicts an area brightness value of each pixel of the current frame from the area average brightness of the previous frame, and calculates a pixel-by-pixel weight based on the area brightness value, and compensates or increases the low light area according to the pixel-by-pixel weight. According to an adaptive image compensator including an area compensator for performing region compensation, an image is obtained based on a weight function that is changed according to an area brightness value after acquiring two images of brightness of a dark area and a bright area respectively obtained from an input image. By synthesizing the two images, it is possible to obtain a single result image in which both brightness and / or saturation of the dark region and the bright region are compensated for.

Description

적응적 영상 보상 장치 및 그 방법{Adaptive image compensating device and method thereof}Adaptive image compensating device and method

본 발명은 영역별로 밝기의 선명도를 향상시키는 적응적 영상 보상 장치 및 방법에 관한 것이다.
The present invention relates to an adaptive image compensation device and method for improving the sharpness of brightness for each region.

최근 디지털 카메라, 캠코더 또는 휴대폰에 장착된 카메라 등과 같이 영상 처리 장치를 필요로 하는 전자기기들이 다수 사용되고 있다. 이러한 영상 처리 장치를 이용하여 콘트라스트(contrast)가 심한 영상을 촬영하는 경우 어두운 쪽이나 밝은 쪽에 치우친 영상이 획득되는 경향이 있다. Recently, many electronic devices that require an image processing device such as a digital camera, a camcorder, or a camera mounted on a mobile phone have been used. When photographing an image with high contrast using such an image processing apparatus, an image biased toward a dark side or a bright side tends to be acquired.

영상의 다이나믹 레인지(dynamic range)가 큰 경우 사람 눈으로 실제 보는 것과 다른 영상이 영상 처리 장치에 의해 얻어지는데, 여기서 영상의 다이나믹 레인지란 영상에서 가장 어두운 부분과 가장 밝은 부분 사이의 밝기의 범위를 의미한다. 예를 들어, 밝은 창가에 서있는 사람을 카메라로 찍을 경우, 사람 눈으로는 구별되었던 모습들이 밝은 창에 검게 서 있는 사람의 모습으로 찍힌다. 이러한 문제점을 해결하기 위해 레티넥스(Retinex) 알고리즘 등의 영상 개선 알고리즘이 활용되고 있다. If the dynamic range of the image is large, an image that is different from what is actually seen by the human eye is obtained by the image processing device, where the dynamic range of the image means the range of brightness between the darkest and the brightest parts of the image. do. For example, if you take a picture of a person standing by a bright window with a camera, the images that were distinguished by the human eye are taken as a person standing black in a bright window. In order to solve this problem, image enhancement algorithms such as Retinex algorithm are used.

컬러 복원을 포함하는 멀티스케일 레티넥스(MSRCR: multi-scale retinex with color restoration)에 따른 영상 밝기 조절은 하기의 수학식 1에 따라 이루어진다. Image brightness adjustment according to multi-scale retinex with color restoration (MSRCR) including color restoration is performed according to Equation 1 below.

Figure 112010082262702-pat00001
Figure 112010082262702-pat00001

여기서, i는 스펙트럼 밴드(spectral band)의 순서를 나타내고, S는 1인 경우에 흑백 영상(gray image)을 나타내고 3인 경우에 컬러 영상(color image)을 나타내는 인자이며, (x1, x2)는 영상의 좌표를, I는 입력 영상을, R은 MSRCR 처리에 따른 출력 영상을, Fk는 k번째 가우시안 서라운드 함수(gaussian surround function)를, σk는 k번째 가우시안 서라운드의 표준 편차를, Wk는 Fk와 관련된 가중치(weight)(일반적으로, 1/K)를, K는 서라운드 함수의 수를, αi는 i번째 스펙트럼 밴드 내의 컬러 복원 계수(color restoration coefficient)를 의미한다. Here, i denotes an order of spectral bands, S denotes a gray image when 1, and 3 denotes a color image when (x 1 , x 2). ) Denotes the coordinates of the image, I denotes the input image, R denotes the output image according to the MSRCR process, F k denotes the kth Gaussian surround function, σ k denotes the standard deviation of the kth Gaussian surround, W k denotes a weight associated with F k (generally 1 / K), K denotes a number of surround functions, and α i denotes a color restoration coefficient in the i th spectral band.

상기 수학식 1에 따른 영상 밝기 조절 방법에 의하면 주파수 도메인에서 동작 수행되기 때문에 퓨리에 변환을 해야 하는 계산상 번거로움이 있다. 그리고 입력 영상과 가우시안 함수들을 저장하기 위해서는 다수의 프레임 메모리가 필요하며, 로그 연산을 위한 테이블을 저장해 두기 위해 추가 메모리가 필요하다. 또한, 실시간으로 연산을 처리할 수 없기 때문에 후 처리로만 적용이 가능한 문제점이 있다.According to the image brightness adjusting method according to Equation 1, since the operation is performed in the frequency domain, there is a computational trouble to perform Fourier transform. In addition, a large number of frame memories are required to store the input image and Gaussian functions, and additional memory is required to store a table for log operation. In addition, since the operation cannot be processed in real time, there is a problem that can be applied only to post processing.

전술한 배경기술은 발명자가 본 발명의 도출을 위해 보유하고 있었거나, 본 발명의 도출 과정에서 습득한 기술 정보로서, 반드시 본 발명의 출원 전에 일반 공중에게 공개된 공지기술이라 할 수는 없다.
The above-described background technology is technical information that the inventor holds for the derivation of the present invention or acquired in the process of deriving the present invention, and can not necessarily be a known technology disclosed to the general public prior to the filing of the present invention.

본 발명은 입력 영상으로부터 각각 어두운 영역과 밝은 영역의 밝기가 보상된 두 장의 영상을 획득한 뒤 지역 밝기값에 따라 변하는 가중치 함수에 근거하여 두 장의 영상을 합성함으로써 어두운 영역과 밝은 영역의 명도 및/또는 채도가 모두 보상된 한 장의 결과 영상을 획득하는 것이 가능한 적응적 영상 보상 장치 및 그 방법을 제공하기 위한 것이다. According to the present invention, two images obtained by compensating the brightness of a dark region and a bright region, respectively, are obtained from an input image, and then the two images are synthesized based on a weight function that changes according to the local brightness value. Another object of the present invention is to provide an adaptive image compensating device and a method capable of acquiring a resultant image in which saturation is all compensated.

또한, 본 발명은 이전 영상 프레임으로부터 획득한 정보를 이용하여 현재 영상 프레임에 화소 단위로 톤 매핑(tone mapping)을 수행할 수 있어 실시간 적용이 가능한 적응적 영상 보상 장치 및 그 방법을 제공하기 위한 것이다. Another object of the present invention is to provide an adaptive image compensation apparatus and method capable of real-time application by performing tone mapping on a pixel basis for a current image frame using information obtained from a previous image frame. .

또한, 본 발명은 노이즈가 적고 보다 자연스러운 화질의 결과 영상을 획득하며, 계산상의 번거로움을 제거하고, 최소한의 메모리 공간만을 이용함으로써 메모리 측면에서 최적화된 적응적 영상 보상 장치 및 그 방법을 제공하기 위한 것이다. In addition, the present invention is to provide an adaptive image compensation device and method optimized in terms of memory by obtaining a result image of less noise, more natural image quality, eliminating computational hassle, and using only a minimum memory space will be.

본 발명의 이외의 목적들은 하기의 설명을 통해 쉽게 이해될 수 있을 것이다.
Other objects of the present invention will be readily understood through the following description.

본 발명의 일 측면에 따르면, 입력 영상의 밝기 선명도를 보상하는 적응적 영상 보상 장치로서, 이전 프레임의 영역별 평균 밝기로부터 현재 프레임의 각 화소의 지역 밝기값을 예측하는 지역 밝기 예측부 및 상기 지역 밝기값을 기초하여 화소별 가중치를 계산하고, 상기 화소별 가중치에 따라 저조도 영역 보상 혹은 고조도 영역 보상을 수행하는 지역 보상부를 포함하는 적응적 영상 보상 장치가 제공된다. According to an aspect of the present invention, an adaptive image compensator for compensating brightness sharpness of an input image, the apparatus comprising: an area brightness predictor and an area predicting an area brightness value of each pixel of a current frame from an average brightness of each area of a previous frame; An adaptive image compensating device including a local compensator for calculating a pixel-specific weight based on a brightness value and performing low illumination region compensation or high illumination region compensation according to the pixel-specific weight is provided.

상기 입력 영상을 동일 크기의 복수의 블록으로 영역을 구분하고, 각 영역 내에 속하는 화소들의 밝기값 평균을 영역별 평균 밝기로 산출하는 영역별 평균 밝기 산출부를 더 포함하되, N(자연수)번째 프레임의 영역별 평균 밝기는 메모리에 저장되어 (N+1)번째 프레임의 지역 밝기값 예측 시 이용될 수 있다. The apparatus may further include an area average brightness calculator configured to classify the input image into a plurality of blocks having the same size, and calculate an average brightness value of pixels belonging to each area as the average brightness for each area, wherein an N (natural number) frame of the N (natural number) frame is included. The average brightness of each area is stored in the memory and used to predict the local brightness value of the (N + 1) th frame.

상기 지역 밝기 예측부는 상기 이전 프레임의 영역별 평균 밝기로부터 바이리니어 보간법(bi-linear interpolation)에 의해 상기 지역 밝기값을 예측할 수 있다. The local brightness predicting unit may predict the local brightness value by bi-linear interpolation from the average brightness of each region of the previous frame.

상기 지역 보상부는, 상기 지역 밝기값에 따라 변하는 가중치 함수를 이용하여 상기 각 화소에 대한 화소별 가중치를 계산하는 가중치 계산 모듈과, 상기 화소별 가중치에 따라 저조도 영역 명도 보상 혹은 고조도 영역 명도 보상을 수행하는 명도 보상 모듈을 포함할 수 있다. The area compensator may include a weight calculation module that calculates a pixel-by-pixel weight value for each pixel using a weight function that changes according to the area brightness value, and compensates for low light area brightness compensation or high light area brightness compensation according to the pixel weight. It may include a brightness compensation module to perform.

상기 가중치 계산 모듈은 하기 수학식에 따라 상기 화소별 가중치를 계산할 수 있다. The weight calculation module may calculate the weight for each pixel according to the following equation.

Figure 112010082262702-pat00002
Figure 112010082262702-pat00002

여기서, WL(x,y)는 화소(x,y)의 가중치이며, L(x,y)는 화소(x,y)의 지역 밝기값, σw는 가중 영역 결정 파라미터이다.Here, W L (x, y) is a weight of the pixel (x, y), L (x, y) is a local brightness value of the pixel (x, y), and sigma w is a weighted area determination parameter.

상기 명도 보상 모듈은, 상기 화소별 가중치를 미리 지정된 값과 비교한 결과에 따라 해당 화소가 저조도 영역 혹은 고조도 영역 중 어디에 속하는지를 판단하는 영역 판단부와, 제1 맵핑 함수에 따라 상기 해당 화소의 입력 밝기값이 밝기 보상된 중간 저조도 보상 밝기값을 구하고, 상기 화소별 가중치를 이용하여 최종 저조도 보상 밝기값을 계산하여 출력하는 저조도 영역 명도 보상부와, 제2 맵핑 함수에 따라 상기 해당 화소의 입력 밝기값이 밝기 보상된 중간 고조도 보상 밝기값을 구하고, 상기 화소별 가중치를 이용하여 최종 고조도 보상 밝기값을 계산하여 출력하는 고조도 영역 명도 보상부를 포함하되, 상기 영역 판단부의 판단 결과에 따라 상기 저조도 영역 명도 보상부와 상기 고조도 영역 명도 보상부 중 하나가 동작될 수 있다. The brightness compensation module may further include: an area determining unit determining whether the pixel belongs to a low light area or a high light area according to a result of comparing the weight value of each pixel with a predetermined value; and a brightness determining module of the pixel according to a first mapping function. A low light area brightness compensation unit for obtaining an intermediate low light compensation brightness value having an input brightness value compensated for brightness and calculating and outputting a final low light compensation brightness value using the weight for each pixel; and inputting the corresponding pixel according to a second mapping function And a high illuminance region brightness compensator for calculating an intermediate high illuminance compensation brightness value having a brightness value compensated for brightness and calculating and outputting a final high illuminance compensation brightness value using the weight of each pixel, according to a determination result of the area determination unit. One of the low light area brightness compensator and the high light area brightness compensator may be operated.

상기 저조도 영역 명도 보상부는 하기 두 수학식에 따라 상기 최종 저조도 보상 밝기값을 계산할 수 있다. The low light area brightness compensator may calculate the final low light compensation brightness value according to the following two equations.

Figure 112010082262702-pat00003
,
Figure 112010082262702-pat00003
,

Figure 112010082262702-pat00004
Figure 112010082262702-pat00004

여기서, Vin(x,y)는 상기 해당 화소(x,y)의 입력 밝기값이며, Vl(x,y)는 상기 해당 화소(x,y)의 중간 저조도 보상 밝기값이고, Vout(x,y)는 상기 해당 화소(x,y)의 최종 저조도 보상 밝기값이며, α는 Vl(x,y)의 밝기 향상의 강도를 조절하는 파라미터이고, σl은 보상 폭 결정 파라미터이며, gl은 보상 기울기 결정 파라미터이고, WL은 상기 화소별 가중치이다.Here, V in (x, y) is an input brightness value of the corresponding pixel (x, y), V l (x, y) is an intermediate low light compensation brightness value of the corresponding pixel (x, y), and V out (x, y) is the final low light compensation brightness value of the corresponding pixel (x, y), α is a parameter for adjusting the intensity of brightness enhancement of V l (x, y), σ l is a compensation width determining parameter , g l is a compensation slope determination parameter, and W L is the pixel-specific weight.

상기 고조도 영역 명도 보상부는 하기 두 수학식에 따라 상기 최종 고조도 보상 밝기값을 계산할 수 있다. The high illuminance region brightness compensator may calculate the final high illuminance compensation brightness value according to the following two equations.

Figure 112010082262702-pat00005
,
Figure 112010082262702-pat00005
,

Figure 112010082262702-pat00006
Figure 112010082262702-pat00006

여기서, Vin(x,y)는 상기 해당 화소(x,y)의 입력 밝기값이며, Vh(x,y)는 상기 해당 화소(x,y)의 중간 고조도 보상 밝기값이고, Vout(x,y)는 상기 해당 화소(x,y)의 최종 고조도 보상 밝기값이며, α는 Vh(x,y)의 밝기 향상의 강도를 조절하는 파라미터이고, σh은 보상 폭 결정 파라미터이며, gh은 보상 기울기 결정 파라미터이고, WL은 상기 화소별 가중치이다. Here, V in (x, y) is an input brightness value of the corresponding pixel (x, y), V h (x, y) is an intermediate high intensity compensation brightness value of the corresponding pixel (x, y), and V out (x, y) is the final high intensity compensation brightness value of the corresponding pixel (x, y), α is a parameter for adjusting the intensity of brightness enhancement of V h (x, y), and σ h is the compensation width determination. Parameter, g h is a compensation gradient determination parameter, and W L is the pixel-specific weight.

상기 지역 보상부는 상기 가중치에 따라 저조도 영역 채도 보상 혹은 고조도 영역 채도 보상을 수행하는 채도 보상 모듈을 더 포함할 수 있다. The area compensation unit may further include a saturation compensation module that performs low illumination area chroma compensation or high illumination area chroma compensation according to the weight.

또는 상기 지역 보상부는, 상기 지역 밝기값에 따라 변하는 가중치 함수를 이용하여 상기 각 화소에 대한 화소별 가중치를 계산하는 가중치 계산 모듈과, 상기 화소별 가중치에 따라 저조도 영역 채도 보상 혹은 고조도 영역 채도 보상을 수행하는 채도 보상 모듈을 포함할 수 있다. Alternatively, the area compensator may include a weight calculation module configured to calculate a pixel-by-pixel weight value for each pixel using a weight function that changes according to the area brightness value, and a low light area chroma compensation or high light area chroma compensation according to the pixel weight. It may include a saturation compensation module to perform the.

상기 가중치 계산 모듈은 하기 수학식에 따라 상기 화소별 가중치를 계산할 수 있다. The weight calculation module may calculate the weight for each pixel according to the following equation.

Figure 112010082262702-pat00007
Figure 112010082262702-pat00007

여기서, WL(x,y)는 화소(x,y)의 가중치이며, L(x,y)는 화소(x,y)의 지역 밝기값, σw는 가중 영역 결정 파라미터이다.Here, W L (x, y) is a weight of the pixel (x, y), L (x, y) is a local brightness value of the pixel (x, y), and sigma w is a weighted area determination parameter.

상기 채도 보상 모듈은, 상기 화소별 가중치를 미리 지정된 값과 비교한 결과에 따라 해당 화소가 저조도 영역 혹은 고조도 영역 중 어디에 속하는지를 판단하는 영역 판단부와, 상기 화소별 가중치를 이용하여 저조도 보상 채도값을 계산하여 출력하는 저조도 영역 채도 보상부와, 상기 화소별 가중치를 이용하여 고조도 보상 채도값을 계산하여 출력하는 고조도 영역 채도 보상부를 포함하되, 상기 영역 판단부의 판단 결과에 따라 상기 저조도 영역 채도 보상부와 상기 고조도 영역 채도 보상부 중 하나가 동작될 수 있다. The saturation compensation module may include a region determination unit that determines whether the pixel belongs to a low illumination region or a high illumination region according to a result of comparing the pixel-specific weight with a predetermined value, and the low-light compensation saturation using the pixel-specific weight. A low illuminance region saturation compensator for calculating and outputting a value, and a high illuminance region saturation compensating unit for calculating and outputting a high illuminance compensation saturation value using the weight for each pixel, wherein the low illuminance region is determined according to a determination result of the region determination unit. One of the chroma compensator and the high illuminance region chroma compensator may be operated.

상기 저조도 영역 채도 보상부는 하기 수학식에 따라 상기 저조도 보상 채도값을 계산할 수 있다. The low light area chroma compensation unit may calculate the low light compensation chroma value according to the following equation.

Figure 112010082262702-pat00008
Figure 112010082262702-pat00008

여기서, Sin(x,y)는 상기 해당 화소(x,y)의 입력 채도값이고, Sout(x,y)는 상기 해당 화소(x,y)의 저조도 보상 채도값이며, γ는 상기 저조도 영역에서 채도 보상 강도를 조절하는 파라미터이고, WL은 상기 화소별 가중치이다. Here, S in (x, y) is an input saturation value of the corresponding pixel (x, y), S out (x, y) is a low illumination compensation saturation value of the corresponding pixel (x, y), and γ is A parameter for adjusting the saturation compensation intensity in the low light region, and W L is a weight for each pixel.

상기 고조도 영역 채도 보상부는 하기 수학식에 따라 상기 고조도 보상 채도값을 계산할 수 있다. The high illuminance region saturation compensator may calculate the high illuminance compensation saturation value according to the following equation.

Figure 112010082262702-pat00009
Figure 112010082262702-pat00009

여기서, Sin(x,y)는 상기 해당 화소(x,y)의 입력 채도값이고, Sout(x,y)는 상기 해당 화소(x,y)의 고조도 보상 채도값이며, λ는 고조도 영역에서 채도 보상 강도를 조절하는 파라미터이고, WL은 상기 화소별 가중치이다.
Here, S in (x, y) is an input saturation value of the corresponding pixel (x, y), S out (x, y) is a high illuminance compensation saturation value of the corresponding pixel (x, y), and λ is A parameter for adjusting saturation compensation intensity in a high illuminance region, and W L is a weight for each pixel.

한편 본 발명의 다른 측면에 따르면, 입력 영상의 밝기 선명도를 보상하는 적응적 영상 보상 방법 및 이를 수행하기 위한 프로그램이 기록된 기록매체가 제공된다. Meanwhile, according to another aspect of the present invention, an adaptive image compensation method for compensating for brightness clarity of an input image and a recording medium on which a program for performing the same are recorded are provided.

일 실시예에 따른 적응적 영상 보상 방법은, 이전 프레임의 영역별 평균 밝기로부터 현재 프레임의 각 화소의 지역 밝기값을 예측하는 단계 및 상기 지역 밝기값을 기초하여 화소별 가중치를 계산하고, 상기 화소별 가중치에 따라 저조도 영역 보상 혹은 고조도 영역 보상을 수행하는 단계를 포함할 수 있다. The adaptive image compensation method according to an embodiment may include estimating an area brightness value of each pixel of a current frame from an average brightness of each area of a previous frame, calculating a weight value for each pixel based on the area brightness value, and The method may include performing low light region compensation or high light region compensation according to the star weight.

상기 입력 영상을 동일 크기의 복수의 블록으로 영역을 구분하고, 각 영역 내에 속하는 화소들의 밝기값 평균을 영역별 평균 밝기로 산출하는 단계를 더 포함하되, N(자연수)번째 프레임의 영역별 평균 밝기는 메모리에 저장되어 (N+1)번째 프레임의 지역 밝기값 예측 시 이용될 수 있다. The method may further include: dividing the input image into a plurality of blocks having the same size, and calculating average brightness values of pixels belonging to each area as the average brightness for each region, wherein the average brightness for each region of the N (natural number) frame is included. May be stored in the memory and used to predict the local brightness of the (N + 1) th frame.

상기 지역 밝기값 예측 단계는 상기 이전 프레임의 영역별 평균 밝기로부터 바이리니어 보간법에 의해 상기 지역 밝기값을 예측할 수 있다. The local brightness value predicting step may predict the local brightness value by bilinear interpolation from the average brightness of each region of the previous frame.

상기 저조도 영역 보상 혹은 고조도 영역 보상을 수행하는 단계는, 상기 지역 밝기값에 따라 변하는 가중치 함수를 이용하여 상기 각 화소에 대한 화소별 가중치를 계산하는 단계와, 상기 화소별 가중치에 따라 저조도 영역 명도 보상 혹은 고조도 영역 명도 보상을 수행하는 단계를 포함할 수 있다. The performing of the low illuminance region compensation or the high illuminance region compensation may include calculating a pixel-by-pixel weight for each pixel using a weight function that changes according to the local brightness value, and low-light region brightness according to the pixel-specific weight. The method may include performing compensation or high intensity region brightness compensation.

상기 화소별 가중치 계산 단계는 하기 수학식에 따라 상기 화소별 가중치를 계산할 수 있다. In the step of calculating the weight for each pixel, the weight for each pixel may be calculated according to the following equation.

Figure 112010082262702-pat00010
Figure 112010082262702-pat00010

여기서, WL(x,y)는 화소(x,y)의 가중치이며, L(x,y)는 화소(x,y)의 지역 밝기값, σw는 가중 영역 결정 파라미터이다.Here, W L (x, y) is a weight of the pixel (x, y), L (x, y) is a local brightness value of the pixel (x, y), and sigma w is a weighted area determination parameter.

상기 명도 보상 단계는, (a) 상기 화소별 가중치를 미리 지정된 값과 비교한 결과에 따라 해당 화소가 저조도 영역 혹은 고조도 영역 중 어디에 속하는지를 판단하는 단계와, (b) 제1 맵핑 함수에 따라 상기 해당 화소의 입력 밝기값이 밝기 보상된 중간 저조도 보상 밝기값을 구하고, 상기 화소별 가중치를 이용하여 최종 저조도 보상 밝기값을 계산하여 출력하는 단계와, (c) 제2 맵핑 함수에 따라 상기 해당 화소의 입력 밝기값이 밝기 보상된 중간 고조도 보상 밝기값을 구하고, 상기 화소별 가중치를 이용하여 최종 고조도 보상 밝기값을 계산하여 출력하는 단계를 포함하되, 상기 단계 (a)에서의 판단 결과에 따라 상기 단계 (b) 혹은 상기 단계 (c) 중 하나가 수행될 수 있다.The brightness compensation step may include (a) determining whether the pixel belongs to a low or high illumination area based on a result of comparing the weight for each pixel with a predetermined value, and (b) according to the first mapping function. Obtaining an intermediate low light compensation brightness value of which the input brightness value of the corresponding pixel is brightness compensated, calculating and outputting a final low light compensation brightness value using the weight of each pixel, and (c) the corresponding mapping function according to a second mapping function; Obtaining an intermediate high illuminance compensated brightness value at which the input brightness value of the pixel is brightness compensated, and calculating and outputting a final high illuminance compensated brightness value using the weight for each pixel, wherein the determination result in step (a) According to the step (b) or one of the step (c) can be performed.

상기 단계 (b)는 하기 두 수학식에 따라 상기 최종 저조도 보상 밝기값을 계산할 수 있다. Step (b) may calculate the final low light compensation brightness value according to the following two equations.

Figure 112010082262702-pat00011
,
Figure 112010082262702-pat00011
,

Figure 112010082262702-pat00012
Figure 112010082262702-pat00012

여기서, Vin(x,y)는 상기 해당 화소(x,y)의 입력 밝기값이며, Vl(x,y)는 상기 해당 화소(x,y)의 중간 저조도 보상 밝기값이고, Vout(x,y)는 상기 해당 화소(x,y)의 최종 저조도 보상 밝기값이며, α는 Vl(x,y)의 밝기 향상의 강도를 조절하는 파라미터이고, σl은 보상 폭 결정 파라미터이며, gl은 보상 기울기 결정 파라미터이고, WL은 상기 화소별 가중치이다. Here, V in (x, y) is an input brightness value of the corresponding pixel (x, y), V l (x, y) is an intermediate low light compensation brightness value of the corresponding pixel (x, y), and V out (x, y) is the final low light compensation brightness value of the corresponding pixel (x, y), α is a parameter for adjusting the intensity of brightness enhancement of V l (x, y), σ l is a compensation width determining parameter , g l is a compensation slope determination parameter, and W L is the pixel-specific weight.

상기 단계 (c)는 하기 두 수학식에 따라 상기 최종 고조도 보상 밝기값을 계산할 수 있다. Step (c) may calculate the final high illuminance compensation brightness value according to the following two equations.

Figure 112010082262702-pat00013
,
Figure 112010082262702-pat00013
,

Figure 112010082262702-pat00014
Figure 112010082262702-pat00014

여기서, Vin(x,y)는 상기 해당 화소(x,y)의 입력 밝기값이며, Vh(x,y)는 상기 해당 화소(x,y)의 중간 고조도 보상 밝기값이고, Vout(x,y)는 상기 해당 화소(x,y)의 최종 고조도 보상 밝기값이며, α는 Vh(x,y)의 밝기 향상의 강도를 조절하는 파라미터이고, σh은 보상 폭 결정 파라미터이며, gh은 보상 기울기 결정 파라미터이고, WL은 상기 화소별 가중치이다. Here, V in (x, y) is an input brightness value of the corresponding pixel (x, y), V h (x, y) is an intermediate high intensity compensation brightness value of the corresponding pixel (x, y), and V out (x, y) is the final high intensity compensation brightness value of the corresponding pixel (x, y), α is a parameter for adjusting the intensity of brightness enhancement of V h (x, y), and σ h is the compensation width determination. Parameter, g h is a compensation gradient determination parameter, and W L is the pixel-specific weight.

상기 화소별 가중치에 따라 저조도 영역 채도 보상 혹은 고조도 영역 채도 보상을 수행하는 단계를 더 포함할 수 있다. The method may further include performing low illumination region chroma compensation or high illumination region chroma compensation according to the pixel-specific weight.

또는 상기 저조도 영역 보상 혹은 고조도 영역 보상을 수행하는 단계는, 상기 지역 밝기값에 따라 변하는 가중치 함수를 이용하여 상기 각 화소에 대한 화소별 가중치를 계산하는 단계와, 상기 화소별 가중치에 따라 저조도 영역 채도 보상 혹은 고조도 영역 채도 보상을 수행하는 단계를 포함할 수 있다. Alternatively, the performing of the low illuminance region compensation or the high illuminance region compensation may include calculating a pixel-by-pixel weight for each pixel by using a weight function that changes according to the local brightness value, and low-light region according to the pixel-specific weights. Performing saturation compensation or high illumination region saturation compensation.

상기 화소별 가중치 계산 단계는 하기 수학식에 따라 상기 화소별 가중치를 계산할 수 있다. In the step of calculating the weight for each pixel, the weight for each pixel may be calculated according to the following equation.

Figure 112010082262702-pat00015
Figure 112010082262702-pat00015

여기서, WL(x,y)는 화소(x,y)의 가중치이며, L(x,y)는 화소(x,y)의 지역 밝기값, σw는 가중 영역 결정 파라미터이다.Here, W L (x, y) is a weight of the pixel (x, y), L (x, y) is a local brightness value of the pixel (x, y), and sigma w is a weighted area determination parameter.

상기 채도 보상 단계는, (a) 상기 화소별 가중치를 미리 지정된 값과 비교한 결과에 따라 해당 화소가 저조도 영역 혹은 고조도 영역 중 어디에 속하는지를 판단하는 단계와, (b) 상기 화소별 가중치를 이용하여 저조도 보상 채도값을 계산하여 출력하는 단계와, (c) 상기 화소별 가중치를 이용하여 고조도 보상 채도값을 계산하여 출력하는 단계를 포함하되, 상기 단계 (a)에서의 판단 결과에 따라 상기 단계 (b) 혹은 상기 단계 (c) 중 하나가 수행될 수 있다. The saturation compensating step may include (a) determining whether the pixel belongs to a low or high illumination region according to a result of comparing the pixel-specific weight with a predetermined value, and (b) using the pixel-specific weight. And calculating and outputting a low illumination compensation saturation value, and (c) calculating and outputting a high illumination compensation saturation value using the pixel-specific weights, according to the determination result in step (a). Step (b) or one of step (c) may be performed.

상기 단계 (b)는 하기 수학식에 따라 상기 저조도 보상 채도값을 계산할 수 있다. Step (b) may calculate the low light compensation saturation value according to the following equation.

Figure 112010082262702-pat00016
Figure 112010082262702-pat00016

여기서, Sin(x,y)는 상기 해당 화소(x,y)의 입력 채도값이고, Sout(x,y)는 상기 해당 화소(x,y)의 저조도 보상 채도값이며, γ는 상기 저조도 영역에서 채도 보상 강도를 조절하는 파라미터이고, WL은 상기 화소별 가중치이다. Here, S in (x, y) is an input saturation value of the corresponding pixel (x, y), S out (x, y) is a low illumination compensation saturation value of the corresponding pixel (x, y), and γ is A parameter for adjusting the saturation compensation intensity in the low light region, and W L is a weight for each pixel.

상기 단계 (c)는 하기 수학식에 따라 상기 고조도 보상 채도값을 계산할 수 있다.Step (c) may calculate the high illumination compensation saturation value according to the following equation.

Figure 112010082262702-pat00017
Figure 112010082262702-pat00017

여기서, Sin(x,y)는 상기 해당 화소(x,y)의 입력 채도값이고, Sout(x,y)는 상기 해당 화소(x,y)의 고조도 보상 채도값이며, λ는 고조도 영역에서 채도 보상 강도를 조절하는 파라미터이고, WL은 상기 화소별 가중치이다. Here, S in (x, y) is an input saturation value of the corresponding pixel (x, y), S out (x, y) is a high illuminance compensation saturation value of the corresponding pixel (x, y), and λ is A parameter for adjusting saturation compensation intensity in a high illuminance region, and W L is a weight for each pixel.

전술한 것 외의 다른 측면, 특징, 이점이 이하의 도면, 특허청구범위 및 발명의 상세한 설명으로부터 명확해질 것이다.
Other aspects, features, and advantages will become apparent from the following drawings, claims, and detailed description of the invention.

본 발명의 실시예에 따르면, 입력 영상으로부터 각각 어두운 영역과 밝은 영역의 밝기가 보상된 두 장의 영상을 획득한 뒤 지역 밝기값에 따라 변하는 가중치 함수에 근거하여 두 장의 영상을 합성함으로써 어두운 영역과 밝은 영역의 명도 및/또는 채도가 모두 보상된 한 장의 결과 영상을 획득하는 것이 가능하다. According to an exemplary embodiment of the present invention, two images obtained by compensating for brightness of a dark region and a bright region, respectively, are obtained from an input image, and then two images are synthesized based on a weighting function that changes according to a local brightness value. It is possible to acquire one resultant image in which both brightness and / or saturation of the region are compensated.

또한, 이전 영상 프레임으로부터 획득한 정보를 이용하여 현재 영상 프레임에 화소 단위로 톤 매핑을 수행할 수 있어 실시간 적용이 가능하다. In addition, tone mapping may be performed on a pixel-by-pixel basis to a current image frame using information obtained from a previous image frame, thereby enabling real-time application.

또한, 하나의 곡선을 이용하여 영상 전체의 밝기 선명도를 향상시키는 방법에 비해 향상된 선명도를 가지며, 원본 영상의 노이즈 정도를 감안하여 입력 변수를 조절함으로써 노이즈가 적고 보다 자연스러운 화질의 결과 영상을 획득할 수 있고, 퓨리에 변환과 가은 계산상의 번거로움을 제거하고, 여러 장의 프레임 메모리 없이 최소한의 메모리 공간만을 이용함으로써 메모리 측면에서 최적화된 효과가 있다.
In addition, compared to the method of improving the brightness clarity of the entire image using a single curve, it has improved clarity, and by adjusting the input variable in consideration of the noise level of the original image, it is possible to obtain a result image with less noise and more natural image quality. In addition, the Fourier transform eliminates the computational hassle and uses minimal memory space without multiple frame memories, thereby optimizing the memory.

도 1은 본 발명의 일 실시예에 따른 영상 처리 장치의 개략적인 구성도,
도 2는 본 발명의 일 실시예에 따른 영역별 평균 밝기를 구하기 위한 입력 영상 및 평균 테이블을 나타낸 도면,
도 3은 본 발명의 일 실시예에 따른 평균 테이블을 이용하여 지역 밝기를 예측하는 원리를 설명하기 위한 도면,
도 4는 본 발명의 일 실시예에 따른 지역 보상부의 개략적인 구성도,
도 5는 본 발명의 일 실시예에 따른 저조도 영역의 밝기 보상 그래프,
도 6은 본 발명의 일 실시예에 따른 고조도 영역의 밝기 보상 그래프,
도 7은 본 발명의 일 실시예에 따른 적응적 영상 보상 방법의 순서도,
도 8은 본 발명의 일 실시예에 따른 적응적 영상 보상 수행 전과 후의 영상을 비교한 도면.
1 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention;
2 is a diagram illustrating an input image and an average table for obtaining average brightness for each region according to an exemplary embodiment of the present invention;
3 is a view for explaining a principle of predicting local brightness using an average table according to an embodiment of the present invention;
4 is a schematic structural diagram of a regional compensation unit according to an embodiment of the present invention;
5 is a brightness compensation graph of a low light area according to an embodiment of the present invention,
6 is a brightness compensation graph of a high illuminance region according to an embodiment of the present invention;
7 is a flowchart of an adaptive image compensation method according to an embodiment of the present invention;
8 is a view comparing images before and after performing adaptive image compensation according to an embodiment of the present invention.

본 발명은 다양한 변환을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변환, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 본 발명을 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다.BRIEF DESCRIPTION OF THE DRAWINGS The present invention is capable of various modifications and various embodiments, and specific embodiments are illustrated in the drawings and described in detail in the detailed description. It is to be understood, however, that the invention is not to be limited to the specific embodiments, but includes all modifications, equivalents, and alternatives falling within the spirit and scope of the invention. In the following description of the present invention, if it is determined that the detailed description of the related known technology may obscure the gist of the present invention, the detailed description thereof will be omitted.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. The terms first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another.

본 명세서에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. As used herein, the terms "comprise" or "have" are intended to indicate that there is a feature, number, step, action, component, part, or combination thereof described on the specification, and one or more other features. It is to be understood that the present invention does not exclude the possibility of the presence or the addition of numbers, steps, operations, components, components, or a combination thereof.

또한, 명세서에 기재된 "…부", "…모듈" 등의 용어는 적어도 하나의 기능이나 동작을 처리하는 단위를 의미하며, 이는 하드웨어나 소프트웨어 또는 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다.Also, the terms " part, "" module," and the like, which are described in the specification, refer to a unit for processing at least one function or operation, and may be implemented by hardware or software or a combination of hardware and software.

또한, 본 발명을 설명함에 있어서 관련된 공지 기술에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우 그 상세한 설명을 생략한다. In the following description, well-known functions or constructions are not described in detail since they would obscure the invention in unnecessary detail.

이하, 본 발명의 실시예에 대해 관련 도면들을 참조하여 상세히 설명하기로 한다.
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 일 실시예에 따른 영상 처리 장치의 개략적인 구성도이고, 도 2는 본 발명의 일 실시예에 따른 영역별 평균 밝기를 구하기 위한 입력 영상 및 평균 테이블을 나타낸 도면이며, 도 3은 본 발명의 일 실시예에 따른 평균 테이블을 이용하여 지역 밝기를 예측하는 원리를 설명하기 위한 도면이며, 도 4는 본 발명의 일 실시예에 따른 지역 보상부의 개략적인 구성도이고, 도 5는 본 발명의 일 실시예에 따른 저조도 영역의 밝기 보상 그래프이며, 도 6은 본 발명의 일 실시예에 따른 고조도 영역의 밝기 보상 그래프이다. 1 is a schematic configuration diagram of an image processing apparatus according to an embodiment of the present invention, FIG. 2 is a diagram illustrating an input image and an average table for obtaining average brightness for each region according to an embodiment of the present invention. 3 is a view for explaining the principle of predicting the brightness of the area using the average table according to an embodiment of the present invention, Figure 4 is a schematic configuration diagram of the area compensation unit according to an embodiment of the present invention, Figure 5 Is a brightness compensation graph of the low illumination region according to an embodiment of the present invention, Figure 6 is a brightness compensation graph of the high illumination region according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 일 실시예에 따른 영상 처리 장치(100)는 RGB-HSV 변환부(110), 적응적 영상 보상 장치(120), HSV-RGB 변환부(130), 메모리(140)를 포함한다. Referring to FIG. 1, an image processing apparatus 100 according to an exemplary embodiment of the present invention may include an RGB-HSV converter 110, an adaptive image compensator 120, an HSV-RGB converter 130, and a memory ( 140).

영상 처리 장치(100)는 RGB 타입의 입력 영상 데이터를 HSV 타입의 데이터로 변환하고 영상 밝기 보상을 수행한 후 다시 RGB 타입의 출력 영상 데이터로 변환함으로써, 어두운 영역(저조도 영역)과 밝은 영역(고조도 영역)의 명도 및/또는 채도가 모두 보상된 결과 영상을 획득하도록 한다. The image processing apparatus 100 converts RGB-type input image data into HSV-type data, performs image brightness compensation, and then converts the RGB-type input image data into RGB-type output image data. To obtain a resultant image of which both brightness and / or saturation of the degree region are compensated.

RGB-HSV 변환부(110)는 입력 영상의 RGB 데이터(R, G, B)를 HSV 데이터로 변환한다. 이는 일반적으로 입력 영상은 각 화소들에 대한 영상 정보로 RGB 데이터를 가지고 있으며, 본 발명에 따른 적응적 영상 보상 수행을 위해서는 영상 정보를 HSV 색모델 환경에서 적용시킬 필요가 있기 때문이다. The RGB-HSV converter 110 converts RGB data R, G, and B of the input image into HSV data. This is because the input image generally has RGB data as image information for each pixel, and in order to perform adaptive image compensation according to the present invention, it is necessary to apply image information in an HSV color model environment.

RGB 색모델은 빛의 삼원색인 적(R), 녹(G), 청(B)의 3가지 색의 합성 성분으로써 임의의 색을 표현한다. 즉, 임의의 색에 대하여 R, G, B의 세 값으로 표현하게 되며, 가산혼합의 원리를 적용하여 R, G, B의 세 값이 0이면 검은색이 된다. The RGB color model represents an arbitrary color as a composite component of three colors of red (R), green (G), and blue (B), which are three primary colors of light. That is, three colors of R, G, and B are expressed with respect to an arbitrary color. When the three values of R, G, and B are 0 by applying the principle of addition and mixing, the color becomes black.

CMY 색모델은 색의 삼원색인 청록(Cyan), 마젠타(Magenta), 노랑(Yellow)의 세 색을 기본색으로 하고, 임의의 색을 이 세 색의 조합으로 표현한다. 이 경우에는 색을 합성할수록 어두워지는 감산혼합의 원리를 적용하여 C, M, Y의 세 값이 0이면 흰색이 된다. The CMY color model uses three colors, Cyan, Magenta, and Yellow, which are the three primary colors of the color, as the primary colors, and an arbitrary color is expressed by a combination of these three colors. In this case, if the three values of C, M, and Y are 0 by applying the principle of subtractive mixing, which becomes dark as the color is synthesized, the color becomes white.

HSV 색모델은 인간의 색에 대한 감각과 비교적 일치하는 색모델이다. RYGCBM의 여섯 색상을 기본으로 하여 이들을 원주 상에 60도 간격으로 배치하고, 이들을 등간격으로 분할한 색을 인접 기본색의 합성으로 만들어 냄으로써 전체 원주를 완성하는데, 이를 색상환(色相環)이라고 한다. 이러한 색상환에서의 위치를 색상(Hue)의 H 값으로 한다. 채도(Saturation)의 S 값은 CIE 색도(CIE xyY Chromaticity Diagram)에서 가장자리로 갈수록 큰 값을 가지고, 이 값이 0인 경우 중심의 흰색이 된다. 그리고 명도(Value)의 V 값은 색의 밝기를 나타낸다. The HSV color model is a color model that is relatively consistent with the human sense of color. Based on the six colors of the RYGCBM, they are arranged at intervals of 60 degrees on the circumference, and the entire circumference is completed by creating a composite of adjacent primary colors by dividing them at equal intervals, which is called a color wheel. The position on this color wheel is taken as the H value of Hue. The S value of saturation has a larger value toward the edge in the CIE chromaticity diagram, and when this value is 0, it becomes the white of the center. The V value of brightness represents the brightness of the color.

RGB-HSV 변환부(110)는 RGB 색모델에 대응되는 입력 영상의 화소값(R, G, B 값)을 HSV 색모델에 대응되는 화소값(H, S, V 값)으로 변환한다. The RGB-HSV converter 110 converts pixel values (R, G, B values) of the input image corresponding to the RGB color model into pixel values (H, S, V values) corresponding to the HSV color model.

H 값은 색상 즉, 색 종류(빨강, 노랑 또는 파랑 같은 색 성분)를 나타내며, 표현 가능한 모든 색을 0 내지 360 영역에서 표현한다. S 값은 채도 즉, 색의 선명도를 나타내며, 0 내지 100% 범위에서 나타내고, 값이 작을수록 무채색에 가까운 것을 의미한다. V 값은 명도 즉, 색의 밝기를 나타내고, 0 내지 100% 범위에서 나타내며, 낮은 값일수록 저조도 영역을 의미하고 높은 값일수록 고조도 영역을 의미한다. The H value represents a color, that is, a color type (a color component such as red, yellow, or blue), and expresses all possible colors in the 0 to 360 range. The S value represents the saturation, that is, the sharpness of the color, is expressed in the range of 0 to 100%, and the smaller the value is, the closer the achromatic color is. The V value represents the brightness, that is, the brightness of the color, and is expressed in the range of 0 to 100%. A lower value means a low illuminance region, and a higher value means a high illuminance region.

하기의 수학식 2를 이용하여 RGB-HSV 변환부(110)는 RGB-HSV 변환을 수행한다. By using Equation 2 below, the RGB-HSV converter 110 performs RGB-HSV conversion.

Figure 112010082262702-pat00018
Figure 112010082262702-pat00018

여기서, MAX는 입력 영상의 각 화소별 R, G, B 값 중 최대값을 나타내고, MIN은 입력 영상의 각 화소별 R, G, B 값 중 최소값을 나타낸다. 여기서, H는 0 내지 360 사이의 값을 가지고, S와 V는 0 내지 1 사이에서 변화한다. Here, MAX represents the maximum value among the R, G, and B values of each pixel of the input image, and MIN represents the minimum value among the R, G, and B values of each pixel of the input image. Where H has a value between 0 and 360, and S and V vary between 0 and 1.

만약 MAX와 MIN이 동일하면(MAX = MIN, 즉 S=0), H는 정의되지 않는다. 이는 S 값이 0인 경우 무채색으로 색상 성분이 없기 때문이다. 또한, MAX가 0인 경우 S는 정의되지 않는다. 이는 V 값이 0인 경우 순수한 검정색으로 색상 성분, 채도 성분을 가지고 있지 않기 때문이다. If MAX and MIN are equal (MAX = MIN, ie S = 0), H is undefined. This is because if the S value is 0, there is no color component in achromatic color. Also, if MAX is 0, S is undefined. This is because when the value of V is 0, it is pure black and has no color component or saturation component.

상기 수학식 2에 의한 변환 공식에 따라 입력 영상의 각 화소별 H, S, V 값을 획득할 수 있다. H, S, and V values of respective pixels of the input image may be obtained according to the conversion formula of Equation 2.

적응적 영상 보상 장치(120)는 RGB-HSV 변환부(110)에서 획득한 입력 영상의 각 화소별 H, S, V 값 중 V 값(Vin) 및 S 값(Sin)을 이용하여 영상 전체에 대한 밝기의 선명도를 조절한다. The adaptive image compensator 120 uses the V value (V in ) and the S value (S in ) among H, S, and V values of each pixel of the input image acquired by the RGB-HSV converter 110. Adjust the brightness of the overall brightness.

적응적 영상 보상 장치(120)는 영역별 평균 밝기 산출부(122), 지역 밝기 예측부(124), 지역 보상부(126)를 포함한다. 영역별 평균 밝기 산출부(122)는 입력 영상의 현재 프레임에서 동일한 크기를 가지도록 구분된 각 영역에 대한 영역별 평균 밝기를 산출하여 저장한다. 지역 밝기 예측부(124)는 메모리(140)에 저장된 이전 프레임의 영역별 평균 밝기로부터 현재 프레임의 각 화소에 대한 지역 밝기를 예측한다. 지역 보상부(126)는 각 화소의 지역 밝기를 이용하여 가중치를 결정하고, 가중치에 따라 그 명도 및 채도를 보상하여 출력한다. 이 과정 중에 저조도 영역은 밝으면서도 낮은 채도를 가지고 고조도 영역은 어두우면서도 높은 채도를 가지도록 보상이 수행되어 밝기의 선명도가 향상된다. 이러한 적응적 영상 보상 장치(120)에 대해서는 추후 도 2 이하의 도면을 참조하여 상세히 설명하기로 한다. The adaptive image compensator 120 includes an average brightness calculator 122 for each region, a local brightness predictor 124, and a region compensator 126. The average brightness calculator 122 for each region calculates and stores the average brightness for each region for each region divided to have the same size in the current frame of the input image. The local brightness predicting unit 124 predicts the local brightness of each pixel of the current frame from the average brightness of each region of the previous frame stored in the memory 140. The local compensator 126 determines a weight using local brightness of each pixel, and compensates and outputs the brightness and saturation according to the weight. During this process, compensation is performed such that the low light region has a bright and low saturation, and the high light region has a dark and high saturation, thereby improving the brightness of the brightness. The adaptive image compensation device 120 will be described in detail later with reference to the drawings of FIG. 2.

HSV-RGB 변환부(130)는 적응적 영상 보상 장치(120)에 의해 V 값(명도 성분) 및 S 값(채도 성분)이 조절된 영상의 각 화소별 H, S, V 값을 R, G, B 값으로 변환한다. 이는 RGB-HSV 변환부(110)에서 이루어지는 변환의 역에 해당하며, 영상 처리 장치(100)는 RGB 타입의 입력 영상 데이터를 역시 동일한 RGB 타입의 출력 영상 데이터로 출력할 수 있게 된다. The HSV-RGB converter 130 adjusts the H, S, and V values of each pixel of the image in which the V value (brightness component) and S value (saturation component) are adjusted by the adaptive image compensator 120. , Convert to B value. This corresponds to the inverse of the conversion performed by the RGB-HSV converter 110, and the image processing apparatus 100 may output the RGB type input image data as the same RGB type output image data.

HSV-RGB 변환의 일례는 다음과 같다. An example of the HSV-RGB conversion is as follows.

(1) S가 0인 경우 색은 무채색 계열로, R, G, B는 V 값을 따른다. (1) If S is 0, the color is achromatic series, and R, G, and B follow the V value.

(2) S가 0이 아닌 경우 하기 수학식 3에 따른다. (2) When S is not 0, the following Equation 3 is used.

Figure 112010082262702-pat00019
Figure 112010082262702-pat00019

여기서, mod N은 N으로 나눈 나머지를 나타내는 함수이다. Here mod N is a function representing the remainder divided by N.

본 발명의 일 실시예에 따른 적응적 영상 보상 장치(120)는 HSV 색모델에 관한 HSV 데이터 중 명도 성분인 V 값 및 채도 성분인 S 값을 이용하여 영상 전체 밝기의 선명도를 조절하고 있으며, 이하 그 구성 및 기능에 대하여 상세히 설명하기로 한다. The adaptive image compensator 120 according to an exemplary embodiment of the present invention adjusts the sharpness of the overall brightness of the image by using a V value, which is a brightness component, and an S value, which is a saturation component, among HSV data of the HSV color model. Its configuration and function will be described in detail.

앞서 설명한 것과 같이 적응적 영상 보상 장치(120)는 지역 밝기 예측부(124)와 지역 보상부(126)를 포함한다. 또한, 적응적 영상 보상 장치(120)는 영역별 평균 밝기 산출부(122)를 더 포함할 수 있다. As described above, the adaptive image compensator 120 includes a local brightness predictor 124 and a local compensator 126. In addition, the adaptive image compensator 120 may further include an average brightness calculator 122 for each region.

영역별 평균 밝기 산출부(122)는 입력 영상을 소정 크기를 가지는 영역들로 구분하고, 각 영역 내 화소들의 밝기값 평균을 해당 영역의 영역별 평균 밝기로 산출한다. The average brightness calculator 122 for each region divides the input image into regions having a predetermined size, and calculates an average of brightness values of pixels in each region as the average brightness for each region of the corresponding region.

도 2를 참조하면, 입력 영상(10)은 가로 화소 수(width)와 세로 화소 수(height)의 곱에 해당하는 개수(width*height)의 화소를 가지고 있다. 입력 영상(10)을 소정 크기의 영역들(11, 12, 13, 14)로 구분하고, 각 영역(11, 12, 13, 14) 내에 있는 화소들의 밝기값 평균(av1, av2, av3, av4)을 해당 영역의 영역별 평균 밝기로 산출한다. 여기서, 소정 크기의 영역들(11, 12, 13, 14)은 가로와 세로가 mask_s로 동일한 정사각형 영역일 수 있다. Referring to FIG. 2, the input image 10 includes pixels having a number of widths * height corresponding to a product of a width of a horizontal pixel and a height of a vertical pixel. The input image 10 is divided into regions 11, 12, 13, and 14 of a predetermined size, and the average values of brightness values av1, av2, av3, and av4 of pixels in each region 11, 12, 13, and 14 are determined. ) Is calculated as the average brightness for each area of the area. Here, the regions 11, 12, 13, and 14 of a predetermined size may be square regions having the same width as the mask_s.

각 영역별 평균 밝기는 평균 테이블(Mean_table)(20) 형태로 메모리(140)에 저장된다. The average brightness of each region is stored in the memory 140 in the form of an average table 20.

다시 도 1을 참조하면, 지역 밝기 예측부(124)는 메모리(140)로부터 이전 프레임에 대하여 산출된 영역별 평균 밝기를 독출한다. 그리고 이전 프레임의 영역별 평균 밝기로부터 현재 프레임의 각 화소에 대한 지역 밝기값을 예측한다. Referring back to FIG. 1, the local brightness predictor 124 reads the average brightness of each region calculated for the previous frame from the memory 140. The local brightness value of each pixel of the current frame is predicted from the average brightness of each region of the previous frame.

여기서, 현재 보상 대상으로 입력된 입력 영상이 N번째 프레임(Nth frame)인 경우, (N-1)번째 프레임((N-1)th frame)에 대하여 영역별 평균 밝기 산출부(122)에서 산출하였던 영역별 평균 밝기를 이용한다. 연속된 프레임 간에는 밝기 변화가 크지 않은 특성에 기초하여 이전 프레임에 대한 영역별 평균 밝기를 이용함으로써 실시간으로 영상 처리가 가능하도록 한 것이다. Here, when the input image input as the current compensation target is the Nth frame, the average brightness calculator 122 calculates the average brightness of the (N-1) th frame ((N-1) th frame). Use the average brightness of each area. Based on the characteristic that the brightness change is not large between successive frames, the image processing can be performed in real time by using the average brightness of each region for the previous frame.

현재 프레임에 대한 영역별 평균 밝기는 다음 프레임에 대한 영상 처리 시 이용될 수 있도록 전술한 영역별 평균 밝기 산출부(122)가 후술할 지역 밝기 예측부(124) 및 지역 보상부(126)와 독립적으로 동작하여 메모리(140)에 그 결과를 저장하게 된다. The average brightness for each region for the current frame is independent of the region brightness predictor 124 and the region compensator 126, which will be described later, by the region-specific average brightness calculator 122 described above, so that the average brightness for each region may be used for image processing for the next frame. Operation to store the result in the memory 140.

지역 밝기 예측부(124)에서 현재 프레임에 대한 각 화소의 지역 밝기값을 예측하는 방법은 바이리니어 보간법(bi-linear interpolation), 양방향 필터(bilateral filter) 혹은 가우시안(gaussian filter)를 이용한 방법 등이 이용될 수 있다. The local brightness predicting unit 124 estimates the local brightness value of each pixel of the current frame using a bi-linear interpolation, a bilateral filter, or a Gaussian filter. Can be used.

도 3에는 바이리니어 보간법에 의해 지역 밝기를 예측하는 과정이 도시되어 있다. 지역 밝기를 예측하고자 하는 화소(30)의 위치를 (x, y)로 가정한다. 이 경우 해당 화소(30)가 그 내부에 위치하도록 하는, 영역별 평균 밝기 산출부(122)에 의해 구분된 각 영역들의 중심을 잇는 사각형(40)을 찾는다. 도 3에 예시된 도면에서는, 사각형(40)이 제1 영역(11), 제2 영역(12), 제3 영역(13) 및 제4 영역(14)의 중심(31, 32, 33, 34)을 잇는 사각형이고, 제1 내지 제4 영역(11 내지 14)의 영역별 평균 밝기는 이전 프레임((N-1)th frame)에 대한 것으로서 각각 av1, av2, av3, av4인 것으로 가정한다. 3 shows a process of predicting local brightness by bilinear interpolation. Assume that the position of the pixel 30 for which local brightness is to be predicted is (x, y). In this case, the quadrangle 40 connecting the centers of the respective regions divided by the average brightness calculator 122 for each region to locate the corresponding pixel 30 is found. In the diagram illustrated in FIG. 3, the rectangle 40 is the center 31, 32, 33, 34 of the first region 11, the second region 12, the third region 13 and the fourth region 14. ) And the average brightness of each of the first to fourth regions 11 to 14 is assumed to be av1, av2, av3, and av4, respectively, for the previous frame (N-1) th frame.

메모리(140)에 저장된 평균 테이블(20)로부터 제1 내지 제4 영역(11 내지 14)의 영역별 평균 밝기를 획득하고, 하기 수학식 4에 따라 현재 화소(30)의 위치 좌표(x, y)로부터 사각형(40)의 변까지의 거리 비(x_length, y_length)를 구한다. 여기서, 거리 비라 함은 사각형(40)의 4개의 변 중 화소(x,y)로부터 가장 가까운 2개의 변까지의 거리를 0 내지 1 사이의 비율로 나타낸 값이다. The average brightness of each of the first to fourth regions 11 to 14 is obtained from the average table 20 stored in the memory 140, and the position coordinates (x, y) of the current pixel 30 are obtained according to Equation 4 below. ), The distance ratios (x_length, y_length) from the sides of the rectangle 40 are obtained. Here, the distance ratio is a value representing the distance from the pixels (x, y) of the four sides of the rectangle 40 to the two closest sides in a ratio between 0 and 1.

Figure 112010082262702-pat00020
Figure 112010082262702-pat00020

여기서, %는 나머지를 구하는 연산이고, /는 나누기 연산이다. Where% is the remainder operation and / is the division operation.

그리고 하기의 수학식 5에 따라 거리 비로부터 보간에 의해 2개의 가상 평균(av5, av6)을 획득한다. Two virtual averages av5 and av6 are obtained by interpolation from the distance ratio according to Equation 5 below.

Figure 112010082262702-pat00021
Figure 112010082262702-pat00021

그리고 하기의 수학식 6에 따라 2개의 가상 평균으로부터 지역 밝기값(L(x,y))을 예측한다. The local brightness value L (x, y) is predicted from the two virtual averages according to Equation 6 below.

Figure 112010082262702-pat00022
Figure 112010082262702-pat00022

여기서, 수학식 5와 6에서 x_length와 y_length는 서로 바뀔 수도 있다. Here, in Equations 5 and 6, x_length and y_length may be interchanged.

지역 밝기 예측부(124)는 입력 영상의 현재 프레임의 모든 화소에 대하여 전술한 과정(수학식 4 내지 6)을 통해 지역 밝기값을 예측하는 것이 가능하다. The local brightness predicting unit 124 may predict the local brightness through the above-described process (Equations 4 to 6) for all pixels of the current frame of the input image.

다시 도 1을 참조하면, 지역 보상부(126)는 지역 밝기 예측부(124)에서 예측된 지역 밝기값을 이용하여 가중치를 결정하고, 저조도 영역의 명도 및 채도를 보상함과 함께 고조도 영역의 명도 및 채도도 보상하여 밝기의 선명도가 향상된 출력 영상 데이터를 생성한다. Referring back to FIG. 1, the area compensator 126 determines weights using the area brightness values predicted by the area brightness predictor 124, compensates for brightness and saturation of the low light area, and compensates for the high light area. Brightness and saturation are compensated for to produce output image data with improved brightness.

도 4를 참조하면, 지역 보상부(126)는 가중치 계산 모듈(210), 명도 보상 모듈(220), 채도 보상 모듈(230)을 포함한다. Referring to FIG. 4, the local compensation unit 126 includes a weight calculation module 210, a brightness compensation module 220, and a saturation compensation module 230.

가중치 계산 모듈(210)은 지역 밝기값에 따라 변하는 가중치 함수를 이용하여 각 화소의 화소별 가중치를 계산한다. 가중치 함수의 일 실시예가 하기 수학식 7에 기재되어 있다. The weight calculation module 210 calculates a weight for each pixel of each pixel by using a weight function that changes according to a local brightness value. One embodiment of a weight function is described in Equation 7 below.

Figure 112010082262702-pat00023
Figure 112010082262702-pat00023

여기서, WL(x,y)는 화소(x,y)의 가중치이며, L(x,y)는 화소(x,y)의 지역 밝기값, σw는 가중 영역 결정 파라미터이다. σw가 큰 경우 저조도 영역의 가중치가 커지게 되고, σw가 작은 경우 고조도 영역의 가중치가 커지게 되며, 본 실시예에서는 σw=0.5인 경우를 가정한다. Here, W L (x, y) is a weight of the pixel (x, y), L (x, y) is a local brightness value of the pixel (x, y), and sigma w is a weighted area determination parameter. If sigma w is large, the weight of the low illuminance region is increased, and if sigma w is small, the weight of the high illuminance region is increased, and in this embodiment, it is assumed that sigma w = 0.5.

상기 수학식 7과 같은 수식에 의해 계산된 화소별 가중치는 저조도 영역에 대한 명도 및/또는 채도 보상과 관련된 값(예를 들어, 후술할 제1 맵핑 함수)과 고조도 영역에 대한 명도 및/또는 채도 보상과 관련된 값(예를 들어, 후술할 제2 맵핑 함수)을 합성하여 최종적인 보상 데이터를 생성함에 있어서 저조도 영역에 관한 값과 고조도 영역에 관한 값의 합성에 따른 가중치를 결정하는데 사용될 수 있다. The pixel-weighted weight calculated by the equation such as Equation 7 may be a value related to brightness and / or saturation compensation for the low light area (eg, a first mapping function to be described later) and brightness and / or for the high light area. In synthesizing a value related to saturation compensation (for example, a second mapping function to be described later) to generate final compensation data, it may be used to determine a weight according to a combination of a value related to a low illumination region and a value related to a high illumination region. have.

명도 보상 모듈(220)은 가중치 계산 모듈(210)에 의해 계산된 화소별 가중치를 이용하여 각 화소의 명도, 즉 밝기를 보상한다. 명도 보상 모듈(220)은 영역 판단부(222), 저조도 영역 명도 보상부(224), 고조도 영역 명도 보상부(226)를 포함한다. The brightness compensation module 220 compensates for brightness, that is, brightness, of each pixel by using the pixel-by-pixel weight calculated by the weight calculation module 210. The brightness compensation module 220 includes an area determiner 222, a low light area brightness compensator 224, and a high light area brightness compensator 226.

영역 판단부(222)는 가중치 계산 모듈(210)에 의해 계산된 화소별 가중치를 이용하여 해당 화소가 저조도 영역 혹은 고조도 영역 중 어디에 속하는지를 판단하고, 저조도 영역 명도 보상부(224) 혹은 고조도 영역 명도 보상부(226) 중 하나를 동작시킨다. The area determining unit 222 determines whether the pixel belongs to the low or high illumination area by using the pixel-specific weight calculated by the weight calculation module 210, and the low light area brightness compensation unit 224 or the high light intensity is determined. One of the area brightness compensators 226 is operated.

저조도 영역 명도 보상부(224)는 제1 맵핑 함수(mapping function)를 적용하여 입력 밝기값(Vin)이 밝기 보상된 중간 저조도 보상 밝기값(Vl)을 구하고, 화소별 가중치를 이용하여 최종 저조도 보상 밝기값(Vout)을 계산하여 출력한다. The low light area brightness compensator 224 applies a first mapping function to obtain an intermediate low light compensation brightness value V l of which the input brightness value V in is brightness compensated, and then uses a weight for each pixel to obtain a final low brightness compensation brightness value V l . Calculate and output the low light compensation brightness value (V out ).

여기서, 제1 맵핑 함수는 하기 수학식 8과 같다. Here, the first mapping function is expressed by Equation 8 below.

Figure 112010082262702-pat00024
Figure 112010082262702-pat00024

Vin(x,y)는 화소(x,y)의 입력 밝기값이고, Vl(x,y)는 화소(x,y)의 중간 저조도 보상 밝기값이며, α는 Vl(x,y)의 밝기 향상의 강도를 조절하는 파라미터이고, σl은 보상 폭 결정 파라미터이며, gl은 보상 기울기 결정 파라미터이다. V in (x, y) is the input brightness value of pixel (x, y), V l (x, y) is the intermediate low light compensation brightness value of pixel (x, y), and α is V l (x, y) ) Is a parameter for adjusting the intensity of brightness enhancement, σ l is a compensation width determination parameter, and g l is a compensation slope determination parameter.

도 5를 참조하면, 밝기 향상의 강도를 조절하는 파라미터의 크기 변화에 따른 제1 맵핑 함수의 다양한 보상 그래프(σl=0.4이고, gl=1.2인 경우)가 도시되어 있다. 보상 그래프를 통해 저조도 영역에 속하는 화소에 대하여 보다 밝게 보상된 중간 저조도 보상 밝기값이 보상에 이용됨을 알 수 있다. 여기서, 보상 그래프의 위로 볼록한 부분의 간격이 보상 폭으로서 σl에 의해 결정되며, 보상 그래프의 최초 기울기가 보상 기울기로서 gl에 의해 결정된다. Referring to FIG. 5, various compensation graphs (first case σ l = 0.4 and g l = 1.2) of the first mapping function according to a change in the size of a parameter adjusting the intensity of brightness enhancement are shown. Through the compensation graph, it can be seen that the brighter value of the intermediate low light compensation brightness value which is brighter compensated for the pixel belonging to the low light area is used for the compensation. Here, the spacing of the upwardly convex portion of the compensation graph is determined by σ l as the compensation width, and the initial slope of the compensation graph is determined by g l as the compensation slope.

입력 밝기값(Vin), 중간 저조도 보상 밝기값(Vl), 화소별 가중치(WL)를 이용하여 하기 수학식 9에 따라 최종 저조도 보상 밝기값(Vout)을 계산한다. The final low light compensation brightness value V out is calculated according to Equation 9 using the input brightness value V in , the medium low light compensation brightness value V l , and the pixel-specific weight W L.

Figure 112010082262702-pat00025
Figure 112010082262702-pat00025

고조도 영역 명도 보상부(226)는 제2 맵핑 함수를 적용하여 입력 밝기값(Vin)이 밝기 보상된 중간 고조도 보상 밝기값(Vh)을 구하고, 화소별 가중치를 이용하여 최종 고조도 보상 밝기값(Vout)을 계산하여 출력한다. The high illuminance region brightness compensator 226 applies a second mapping function to obtain an intermediate high illuminance compensated brightness value V h at which the input brightness value V in is brightness compensated, and the final high illuminance using pixel-by-pixel weights. Compute and output the compensation brightness value (V out ).

여기서, 제2 맵핑 함수는 하기 수학식 10과 같다. Here, the second mapping function is expressed by Equation 10 below.

Figure 112010082262702-pat00026
Figure 112010082262702-pat00026

Vin(x,y)는 화소(x,y)의 입력 밝기값이고, Vh(x,y)는 화소(x,y)의 중간 고조도 보상 밝기값이며, β는 Vh(x,y)의 밝기 향상의 강도를 조절하는 파라미터이고, σh은 보상 폭 결정 파라미터이며, gh은 보상 기울기 결정 파라미터이다. V in (x, y) is the input brightness value of the pixel (x, y), V h (x, y) is the intermediate high illuminance compensation brightness value of the pixel (x, y), and β is V h (x, y). y) is a parameter for adjusting the intensity of brightness enhancement, sigma h is a compensation width determination parameter, and g h is a compensation slope determination parameter.

도 6을 참조하면, 밝기 향상의 강도를 조절하는 파라미터의 크기 변화에 따른 제2 맵핑 함수의 다양한 보상 그래프(σh=0.4이고, gh=1.2인 경우)가 도시되어 있다. 보상 그래프를 통해 고조도 영역에 속하는 화소에 대하여 보다 어둡게 보상된 중간 고조도 보상 밝기값이 보상에 이용됨을 알 수 있다. 여기서, 보상 그래프의 아래로 볼록한 부분의 간격이 보상 폭으로서 σh에 의해 결정되며, 보상 그래프의 최초 기울기가 보상 기울기로서 gh에 의해 결정된다. Referring to FIG. 6, various compensation graphs (when σ h = 0.4 and g h = 1.2) of the second mapping function according to a change in the size of a parameter for adjusting the intensity of brightness enhancement are shown. It can be seen from the compensation graph that the darker compensation intensity value, which is darker, is compensated for the pixels belonging to the high illumination area. Here, the spacing of the downwardly convex portions of the compensation graph is determined by σ h as the compensation width, and the initial slope of the compensation graph is determined by g h as the compensation slope.

입력 밝기값(Vin), 중간 고조도 보상 밝기값(Vh), 화소별 가중치(WL)를 이용하여 하기 수학식 11에 따라 최종 고조도 보상 밝기값(Vout)을 계산한다. The final high luminance compensation brightness value V out is calculated using the input brightness value V in , the intermediate high illumination compensation brightness value V h , and the pixel-specific weight W L according to Equation 11 below.

Figure 112010082262702-pat00027
Figure 112010082262702-pat00027

즉, 명도 보상 모듈(220)은 저조도 영역과 고조도 영역에 대하여 서로 다른 맵핑 함수를 적용함으로써 저조도 영역에 대해서는 밝게 고조도 영역에 대해서는 어둡게 보상이 이루어지도록 한다. 예를 들면, 화소별 가중치가 1보다 크거나 같은 경우에는 해당 화소가 저조도 영역에 속하는 것으로 판단하고, 화소별 가중치가 1보다 작은 경우에는 해당 화소가 고조도 영역에 속하는 것으로 판단하여 서로 다른 맵핑 함수를 적용할 수 있을 것이다. That is, the brightness compensation module 220 applies a different mapping function to the low light area and the high light area to make the low light area dark and the high light area dark. For example, if the weight for each pixel is greater than or equal to 1, it is determined that the pixel belongs to the low illumination area, and if the weight for each pixel is less than 1, it is determined that the pixel belongs to the high illumination area and thus different mapping functions. Will be applicable.

다시 도 4를 참조하면, 채도 보상 모듈(230)은 가중치 계산 모듈(210)에 의해 계산된 화소별 가중치를 이용하여 각 화소의 채도, 즉 선명도를 보상한다. 채도 보상 모듈(230)은 영역 판단부(232), 저조도 영역 채도 보상부(234), 고조도 영역 채도 보상부(236)를 포함한다. Referring back to FIG. 4, the saturation compensation module 230 compensates the saturation, that is, the sharpness, of each pixel using the pixel-specific weights calculated by the weight calculation module 210. The saturation compensation module 230 includes an area determination unit 232, a low illumination area chroma compensation unit 234, and a high illumination area chroma compensation unit 236.

영역 판단부(232)는 가중치 계산 모듈(210)에 의해 계산된 화소별 가중치를 이용하여 해당 화소가 저조도 영역 혹은 고조도 영역 중 어디에 속하는지를 판단하고, 저조도 영역 채도 보상부(234) 혹은 고조도 영역 채도 보상부(236) 중 하나를 동작시킨다. The area determining unit 232 determines whether the pixel belongs to a low light area or a high light area by using the pixel-specific weights calculated by the weight calculation module 210, and the low light area chroma saturation compensator 234 or the high light intensity. One of the region saturation compensators 236 is operated.

저조도 영역 채도 보상부(234)는 하기 수학식 12에 따라 입력 채도값(Sin)이 보상된 저조도 보상 채도값(Sout)을 계산하여 출력하며, 고조도 영역 채도 보상부(236)는 하기 수학식 13에 따라 입력 채도값(Sin)이 보상된 고조도 보상 채도값(Sout)을 계산하여 출력한다. The low illuminance region chroma compensator 234 calculates and outputs the low illuminance chroma saturation value S out for which the input saturation value S in is compensated according to Equation 12, and the high illuminance region saturation compensator 236 According to Equation 13, the high saturation compensation saturation value S out of which the input saturation value S in is compensated is calculated and output.

Figure 112010082262702-pat00028
Figure 112010082262702-pat00028

Figure 112010082262702-pat00029
Figure 112010082262702-pat00029

여기서, γ는 저조도 영역에서 채도 보상 강도를 조절하는 파라미터이고, λ는 고조도 영역에서 채도 보상 강도를 조절하는 파라미터로서, 예를 들면, γ<0이고, λ>0일 수 있다. Here, γ is a parameter for adjusting the saturation compensation intensity in the low illuminance region, and λ is a parameter for adjusting the saturation compensation intensity in the high illuminance region. For example, γ may be γ <0 and λ> 0.

본 실시예에서 명도 보상 모듈(220) 및 채도 보상 모듈(230) 중 하나 이상이 동작할 수 있다. 즉, 지역 보상부(126)는 저조도 영역과 고조도 영역에 대해서 밝기 보상된 두 장의 영상을 획득한 뒤 지역 밝기값에 따라 변하는 가중치에 근거하여 두 장의 영상을 합성함으로써 저조도 영역과 고조도 영역의 명도 및/또는 채도가 모두 보상된 한 장의 결과 영상을 생성하여 출력한다.
In the present embodiment, one or more of the brightness compensation module 220 and the chroma compensation module 230 may operate. That is, the area compensator 126 obtains two images with brightness compensation for the low light area and the high light area, and then synthesizes the two pictures based on a weight that changes according to the local brightness value. A result image of which both brightness and / or saturation are compensated for is generated and output.

이하 도 7을 참조하여 적응적 영상 보상 장치(120)에서 영상의 밝기의 선명도를 향상시키는 방법, 즉 적응적 영상 보상 방법에 대하여 설명하기로 한다. Hereinafter, a method of improving the brightness of the image brightness, that is, the adaptive image compensation method, in the adaptive image compensation apparatus 120 will be described with reference to FIG. 7.

도 7은 본 발명의 일 실시예에 따른 적응적 영상 보상 방법의 순서도이다. 이하에서 설명되는 각각의 단계는 적응적 영상 보상 장치(120)의 각 내부 구성요소에 의해 수행될 수 있다.7 is a flowchart illustrating an adaptive image compensation method according to an embodiment of the present invention. Each step described below may be performed by each internal component of the adaptive image compensation device 120.

단계 S300에서 적응적 영상 보상 장치(120)는 현재 프레임(Nth frame)의 HSV 데이터를 입력받는다. HSV 데이터는 전단의 RGB-HSV 변환부(110)에 의해 RGB 데이터가 변환된 데이터일 수 있다. In operation S300, the adaptive image compensating apparatus 120 receives HSV data of a current frame. The HSV data may be data obtained by converting RGB data by the RGB-HSV converter 110 of the previous stage.

단계 S310에서 영역별 평균 밝기 산출부(122)는 입력된 현재 프레임의 HSV 데이터에 대하여 영역별 평균 밝기를 산출한다. 영역별 평균 밝기는 입력 영상을 동일한 크기의 복수의 영역으로 구분한 뒤 각 영역 내에 속하는 화소들의 밝기값을 평균함으로써 획득될 수 있으며, 도 2를 참조하여 상세히 설명하였다. In operation S310, the average brightness calculator 122 for each area calculates an average brightness for each area of the input HSV data of the current frame. The average brightness for each region may be obtained by dividing the input image into a plurality of regions having the same size and then averaging the brightness values of pixels within each region, as described in detail with reference to FIG. 2.

단계 S320에서 영역별 평균 밝기 산출부(122)는 현재 프레임의 모든 영역에 대한 영역별 평균 밝기를 메모리(140)에 저장한다. 예를 들면, 영역별 평균 밝기는 평균 테이블 형태로 저장될 수 있다. In operation S320, the average brightness calculator 122 for each region stores the average brightness for each region of the current frame in the memory 140. For example, the average brightness for each region may be stored in the form of an average table.

단계 S330에서 지역 밝기 예측부(124)는 메모리(140)에 저장되어 있는 이전 프레임((N-1)th frame)에 대한 영역별 평균 밝기를 독출하고, 이를 이용하여 화소(x,y)의 지역 밝기를 예측한다. 여기서, 해당 화소(x,y)가 그 내부에 위치하도록 하는, 이웃하는 영역들의 중심을 잇는 사각형이 포함되는 영역들의 영역별 평균 밝기가 독출될 수 있다. 그리고 독출된 영역별 평균 밝기로부터 수학식 4 내지 6에 의해 해당 화소의 지역 밝기(L(x,y))가 예측될 수 있다. In operation S330, the local brightness predicting unit 124 reads an average brightness of each region of the previous frame (N-1) th frame stored in the memory 140, and uses the same to determine the pixel (x, y) of the pixel (x, y). Predict local brightness. Here, the average brightness of each region of regions including a rectangle connecting the centers of neighboring regions, in which the corresponding pixels (x, y) are located therein, may be read. The local brightness L (x, y) of the corresponding pixel may be predicted from Equations 4 to 6 from the average brightness of each read area.

단계 S340에서 지역 보상부(126)는 해당 화소의 지역 밝기를 이용하여 저조도 영역의 명도는 높이고 채도는 낮추며, 고조도 영역의 명도는 낮추고 채도는 높이는 지역 보상을 수행한다. In operation S340, the area compensator 126 performs area compensation by increasing the brightness of the low light area and decreasing the saturation, and decreasing the brightness of the high light area and increasing the saturation by using the area brightness of the corresponding pixel.

우선 지역 밝기값으로부터 해당 화소의 가중치를 계산한다(단계 S342). 가중치 계산은 수학식 7에 따라 수행될 수 있다. First, the weight of the pixel is calculated from the local brightness value (step S342). The weight calculation may be performed according to Equation 7.

계산된 가중치를 이용하여 해당 화소가 저조도 영역에 속하는지 혹은 고조도 영역에 속하는지를 판단하여 저조도 영역 보상이 수행(단계 S344)되거나 고조도 영역 보상이 수행(단계 S346)되도록 한다. 저조도 영역에서의 보상(단계 S344)은 수학식 8 및 9에 의해 명도 보상이 수행되고, 수학식 12에 의해 채도 보상이 수행될 수 있다. 그리고 고조도 영역에서의 보상(단계 S346)은 수학식 10 및 11에 의해 명도 보상이 수행되고, 수학식 13에 의해 채도 보상이 수행될 수 있다. Using the calculated weights, it is determined whether the corresponding pixel belongs to the low illuminance region or the high illuminance region to perform low illuminance region compensation (step S344) or high illuminance region compensation (step S346). In the low light region compensation (step S344), brightness compensation may be performed by equations (8) and (9), and saturation compensation may be performed by equation (12). In the high illuminance region (step S346), brightness compensation may be performed by equations (10) and (11), and chroma compensation may be performed by equation (13).

단계 S350에서 명도 보상에 따른 결과값(최종 저조도 보상 밝기값 혹은 최종 고조도 보상 밝기값)과 채도 보상에 따른 결과값(저조도 보상 채도값 혹은 고조도 보상 채도값)을 보상 데이터로 후단의 HSV-RGB 변환부(130)로 출력한다. In step S350, the result value according to the brightness compensation (final low light compensation brightness value or the final high illumination compensation brightness value) and the resultant value according to the chroma compensation (low light compensation chroma value or high illumination compensation chroma value) are used as compensation data. Output to the RGB converter 130.

본 실시예에서 단계 S310 및 S320의 수행과는 독립적으로 단계 S330 이하의 단계가 수행될 수 있다. 이는 단계 S330 이하의 단계가 이전 프레임에 대하여 이미 산출된 영역별 평균 밝기를 이용하기 때문이다. In the present embodiment, steps below step S330 may be performed independently of performing steps S310 and S320. This is because a step below step S330 uses the average brightness for each region already calculated for the previous frame.

또한, 단계 S330 이하의 단계는 화소 단위로 수행될 수 있어 실시간 영상 처리가 가능한 장점이 있다. In addition, the steps below the step S330 may be performed in units of pixels, thereby enabling real-time image processing.

상술한 적응적 영상 보상 방법은 적응적 영상 보상 장치(120)에 내장된 소프트웨어 프로그램 등에 의해 시계열적 순서에 따른 자동화된 절차로 수행될 수도 있음은 자명하다. 상기 프로그램을 구성하는 코드들 및 코드 세그먼트들은 당해 분야의 컴퓨터 프로그래머에 의하여 용이하게 추론될 수 있다. 또한, 상기 프로그램은 컴퓨터가 읽을 수 있는 정보저장매체에 저장되고, 컴퓨터에 의하여 읽혀지고 실행됨으로써 상기 방법을 구현한다. 상기 정보저장매체는 자기 기록매체, 광 기록매체 및 캐리어 웨이브 매체를 포함한다.
It is apparent that the above-described adaptive image compensation method may be performed by an automated procedure according to a time series sequence by a software program or the like embedded in the adaptive image compensation apparatus 120. Codes and code segments constituting the program can be easily inferred by a computer programmer in the art. The program is also stored in a computer readable information storage medium, and read and executed by the computer to implement the method. The information storage medium includes a magnetic recording medium, an optical recording medium and a carrier wave medium.

도 8은 본 발명의 일 실시예에 따른 적응적 영상 보상 수행 전과 후의 영상을 비교한 도면이다. 도 8의 (a1), (b1), (c1)은 적응적 영상 보상 수행 전의 영상이며, 도 8의 (a2), (b2), (c2)는 적응적 영상 보상 수행 후의 영상이다. 8 is a diagram comparing images before and after performing adaptive image compensation according to an embodiment of the present invention. (A1), (b1) and (c1) of FIG. 8 are images before performing adaptive image compensation, and (a2), (b2) and (c2) of FIG. 8 are images after performing adaptive image compensation.

(a1), (b1), (c1)의 영상의 저조도 영역 및 고조도 영역이 (a2), (b2), (c2)의 영상에서는 그 선명도가 향상됨으로써 피사체의 구분이 용이함을 확인할 수 있다. In the (a2), (b2), and (c2) images of the low and high illumination regions of the images of (a1), (b1), and (c1), the sharpness is improved, and thus, it is possible to identify the subjects easily.

상기에서는 본 발명의 실시예를 참조하여 설명하였지만, 해당 기술 분야에서 통상의 지식을 가진 자라면 하기의 특허 청구의 범위에 기재된 본 발명의 사상 및 영역으로부터 벗어나지 않는 범위 내에서 본 발명을 다양하게 수정 및 변경시킬 수 있음을 이해할 수 있을 것이다.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit or scope of the invention as defined in the following claims And changes may be made without departing from the spirit and scope of the invention.

100: 영상 처리 장치 110: RGB-HSV 변환부
120: 적응적 영상 보상 장치 130: HSV-RGB 변환부
140: 메모리 122: 영역별 평균 밝기 산출부
124: 지역 밝기 예측부 126: 지역 보상부
210: 가중치 계산 모듈 220: 명도 보상 모듈
222: 영역 판단부 224: 저조도 영역 명도 보상부
226: 고조도 영역 명도 보상부 230: 채도 보상 모듈
232: 영역 판단부 234: 저조도 영역 채도 보상부
236: 고조도 영역 채도 보상부
100: image processing apparatus 110: RGB-HSV conversion unit
120: adaptive image compensation device 130: HSV-RGB converter
140: memory 122: average brightness calculator for each area
124: local brightness prediction unit 126: regional compensation unit
210: weight calculation module 220: brightness compensation module
222: region determination unit 224: low light region brightness compensation unit
226: High illumination region brightness compensation unit 230: Saturation compensation module
232: region determination unit 234: low light region saturation compensation unit
236: high intensity region saturation compensation unit

Claims (32)

입력 영상의 밝기 선명도를 보상하는 적응적 영상 보상 장치로서,
이전 프레임의 영역별 평균 밝기로부터 현재 프레임의 각 화소의 지역 밝기값을 예측하는 지역 밝기 예측부; 및
상기 지역 밝기값을 기초하여 화소별 가중치를 계산하고, 상기 화소별 가중치에 따라 저조도 영역 보상 혹은 고조도 영역 보상을 수행하는 지역 보상부를 포함하되,
상기 지역 보상부는, 상기 지역 밝기값에 따라 변하는 가중치 함수를 이용하여 상기 각 화소에 대한 화소별 가중치를 계산하는 가중치 계산 모듈과, 상기 화소별 가중치에 따라 저조도 영역 명도 보상 혹은 고조도 영역 명도 보상을 수행하는 명도 보상 모듈을 포함하고,
상기 명도 보상 모듈은,
상기 화소별 가중치를 미리 지정된 값과 비교한 결과에 따라 해당 화소가 저조도 영역 혹은 고조도 영역 중 어디에 속하는지를 판단하는 영역 판단부와,
제1 맵핑 함수에 따라 상기 해당 화소의 입력 밝기값이 밝기 보상된 중간 저조도 보상 밝기값을 구하고, 상기 화소별 가중치를 이용하여 최종 저조도 보상 밝기값을 계산하여 출력하는 저조도 영역 명도 보상부와,
제2 맵핑 함수에 따라 상기 해당 화소의 입력 밝기값이 밝기 보상된 중간 고조도 보상 밝기값을 구하고, 상기 화소별 가중치를 이용하여 최종 고조도 보상 밝기값을 계산하여 출력하는 고조도 영역 명도 보상부를 포함하되,
상기 영역 판단부의 판단 결과에 따라 상기 저조도 영역 명도 보상부와 상기 고조도 영역 명도 보상부 중 하나가 동작되는 것을 특징으로 하는 적응적 영상 보상 장치.
An adaptive image compensation device for compensating for brightness clarity of an input image,
An area brightness predicting unit predicting an area brightness value of each pixel of the current frame from the mean brightness of each area of the previous frame; And
Comprising an area compensation unit for calculating a weight for each pixel based on the area brightness value, and performs a low light area compensation or high light area compensation according to the weight of each pixel,
The area compensator may include a weight calculation module that calculates a pixel-by-pixel weight value for each pixel using a weight function that changes according to the area brightness value, and compensates for low light area brightness compensation or high light area brightness compensation according to the pixel weight. Includes a brightness compensation module to perform,
The brightness compensation module,
An area determination unit that determines whether the pixel belongs to a low or high illumination area according to a result of comparing the weight for each pixel with a predetermined value;
A low light intensity brightness compensator configured to obtain an intermediate low light compensation brightness value at which the input brightness value of the corresponding pixel is brightness compensated according to a first mapping function, and calculate and output a final low light compensation brightness value using the weight for each pixel;
A high illuminance region brightness compensator for obtaining an intermediate high illuminance compensation brightness value of which the input brightness value of the corresponding pixel is brightness compensated according to a second mapping function, and calculating and outputting the final high illuminance compensation brightness value using the weight for each pixel. Including,
And one of the low illuminance region brightness compensator and the high illuminance region brightness compensator is operated according to a determination result of the region determiner.
제1항에 있어서,
상기 입력 영상을 동일 크기의 복수의 블록으로 영역을 구분하고, 각 영역 내에 속하는 화소들의 밝기값 평균을 영역별 평균 밝기로 산출하는 영역별 평균 밝기 산출부를 더 포함하되,
N(자연수)번째 프레임의 영역별 평균 밝기는 메모리에 저장되어 (N+1)번째 프레임의 지역 밝기값 예측 시 이용되는 것을 특징으로 하는 적응적 영상 보상 장치.
The method of claim 1,
The apparatus may further include a region average brightness calculator configured to classify the input image into a plurality of blocks having the same size, and calculate an average brightness value of pixels belonging to each region as the average brightness for each region.
The average brightness per region of the N (natural number) frame is stored in the memory and used to predict the local brightness value of the (N + 1) -th frame.
제1항에 있어서,
상기 지역 밝기 예측부는 상기 이전 프레임의 영역별 평균 밝기로부터 바이리니어 보간법(bi-linear interpolation)에 의해 상기 지역 밝기값을 예측하는 것을 특징으로 하는 적응적 영상 보상 장치.
The method of claim 1,
And the local brightness predicting unit predicts the local brightness value by bi-linear interpolation from the average brightness of each region of the previous frame.
삭제delete 제1항에 있어서,
상기 가중치 계산 모듈은 하기 수학식에 따라 상기 화소별 가중치를 계산하는 것을 특징으로 하는 적응적 영상 보상 장치.
[수학식]
Figure 112012017605725-pat00056

여기서, WL(x,y)는 화소(x,y)의 가중치이며, L(x,y)는 화소(x,y)의 지역 밝기값, σw는 가중 영역 결정 파라미터임.

The method of claim 1,
And the weight calculation module calculates the weight for each pixel according to the following equation.
[Equation]
Figure 112012017605725-pat00056

Here, W L (x, y) is a weight of the pixel (x, y), L (x, y) is a local brightness value of the pixel (x, y), and σ w is a weighted area determination parameter.

삭제delete 제1항에 있어서,
상기 저조도 영역 명도 보상부는 하기 두 수학식에 따라 상기 최종 저조도 보상 밝기값을 계산하는 것을 특징으로 하는 적응적 영상 보상 장치.
[수학식]
Figure 112012017605725-pat00057
,
Figure 112012017605725-pat00058

여기서, Vin(x,y)는 상기 해당 화소(x,y)의 입력 밝기값이며, Vl(x,y)는 상기 해당 화소(x,y)의 중간 저조도 보상 밝기값이고, Vout(x,y)는 상기 해당 화소(x,y)의 최종 저조도 보상 밝기값이며, α는 Vl(x,y)의 밝기 향상의 강도를 조절하는 파라미터이고, σl은 보상 폭 결정 파라미터이며, gl은 보상 기울기 결정 파라미터이고, WL은 상기 화소별 가중치임
The method of claim 1,
The low light area brightness compensation unit calculates the final low light compensation brightness value according to the following two equations.
[Equation]
Figure 112012017605725-pat00057
,
Figure 112012017605725-pat00058

Here, V in (x, y) is an input brightness value of the corresponding pixel (x, y), V l (x, y) is an intermediate low light compensation brightness value of the corresponding pixel (x, y), and V out (x, y) is the final low light compensation brightness value of the corresponding pixel (x, y), α is a parameter for adjusting the intensity of brightness enhancement of V l (x, y), σ l is a compensation width determining parameter , g l is a compensation slope determination parameter, and W L is the pixel-specific weight
제1항에 있어서,
상기 고조도 영역 명도 보상부는 하기 두 수학식에 따라 상기 최종 고조도 보상 밝기값을 계산하는 것을 특징으로 하는 적응적 영상 보상 장치.
[수학식]
Figure 112012017605725-pat00059
,
Figure 112012017605725-pat00060

여기서, Vin(x,y)는 상기 해당 화소(x,y)의 입력 밝기값이며, Vh(x,y)는 상기 해당 화소(x,y)의 중간 고조도 보상 밝기값이고, Vout(x,y)는 상기 해당 화소(x,y)의 최종 고조도 보상 밝기값이며, α는 Vh(x,y)의 밝기 향상의 강도를 조절하는 파라미터이고, σh은 보상 폭 결정 파라미터이며, gh은 보상 기울기 결정 파라미터이고, WL은 상기 화소별 가중치임
The method of claim 1,
The high illuminance region brightness compensator calculates the final high illuminance compensation brightness value according to the following two equations.
[Equation]
Figure 112012017605725-pat00059
,
Figure 112012017605725-pat00060

Here, V in (x, y) is an input brightness value of the corresponding pixel (x, y), V h (x, y) is an intermediate high intensity compensation brightness value of the corresponding pixel (x, y), and V out (x, y) is the final high intensity compensation brightness value of the corresponding pixel (x, y), α is a parameter for adjusting the intensity of brightness enhancement of V h (x, y), and σ h is the compensation width determination. Parameter, g h is a compensation gradient determination parameter, and W L is the pixel-specific weight
제1항에 있어서,
상기 지역 보상부는 상기 가중치에 따라 저조도 영역 채도 보상 혹은 고조도 영역 채도 보상을 수행하는 채도 보상 모듈을 더 포함하는 것을 특징으로 하는 적응적 영상 보상 장치.
The method of claim 1,
And the area compensator further comprises a saturation compensation module for performing low illumination region chroma compensation or high illumination region chroma compensation according to the weight.
제1항에 있어서,
상기 지역 보상부는,
상기 지역 밝기값에 따라 변하는 가중치 함수를 이용하여 상기 각 화소에 대한 화소별 가중치를 계산하는 가중치 계산 모듈과,
상기 화소별 가중치에 따라 저조도 영역 채도 보상 혹은 고조도 영역 채도 보상을 수행하는 채도 보상 모듈을 포함하는 것을 특징으로 하는 적응적 영상 보상 장치.
The method of claim 1,
The area compensation unit,
A weight calculation module that calculates a weight for each pixel for each pixel by using a weight function that changes according to the local brightness value;
And a chroma compensation module configured to perform low illumination region chroma compensation or high illumination region chroma compensation according to the pixel-specific weights.
제10항에 있어서,
상기 가중치 계산 모듈은 하기 수학식에 따라 상기 화소별 가중치를 계산하는 것을 특징으로 하는 적응적 영상 보상 장치.
[수학식]
Figure 112010082262702-pat00035

여기서, WL(x,y)는 화소(x,y)의 가중치이며, L(x,y)는 화소(x,y)의 지역 밝기값, σw는 가중 영역 결정 파라미터임.
The method of claim 10,
And the weight calculation module calculates the weight for each pixel according to the following equation.
[Equation]
Figure 112010082262702-pat00035

Here, W L (x, y) is a weight of the pixel (x, y), L (x, y) is a local brightness value of the pixel (x, y), and σ w is a weighted area determination parameter.
제9항 또는 제10항 중 어느 한 항에 있어서,
상기 채도 보상 모듈은,
상기 화소별 가중치를 미리 지정된 값과 비교한 결과에 따라 해당 화소가 저조도 영역 혹은 고조도 영역 중 어디에 속하는지를 판단하는 영역 판단부와,
상기 화소별 가중치를 이용하여 저조도 보상 채도값을 계산하여 출력하는 저조도 영역 채도 보상부와,
상기 화소별 가중치를 이용하여 고조도 보상 채도값을 계산하여 출력하는 고조도 영역 채도 보상부를 포함하되,
상기 영역 판단부의 판단 결과에 따라 상기 저조도 영역 채도 보상부와 상기 고조도 영역 채도 보상부 중 하나가 동작되는 것을 특징으로 하는 적응적 영상 보상 장치.
The method according to any one of claims 9 to 10,
The saturation compensation module,
An area determination unit that determines whether the pixel belongs to a low or high illumination area according to a result of comparing the weight for each pixel with a predetermined value;
A low illuminance region saturation compensator for calculating and outputting a low illuminance compensated saturation value using the pixel-specific weights;
A high illuminance region chroma compensator configured to calculate and output a high illuminance compensation saturation value using the pixel-specific weights;
And one of the low illuminance region saturation compensator and the high illuminance region saturation compensator is operated according to a determination result of the region determination unit.
제12항에 있어서,
상기 저조도 영역 채도 보상부는 하기 수학식에 따라 상기 저조도 보상 채도값을 계산하는 것을 특징으로 하는 적응적 영상 보상 장치.
[수학식]
Figure 112010082262702-pat00036

여기서, Sin(x,y)는 상기 해당 화소(x,y)의 입력 채도값이고, Sout(x,y)는 상기 해당 화소(x,y)의 저조도 보상 채도값이며, γ는 상기 저조도 영역에서 채도 보상 강도를 조절하는 파라미터이고, WL은 상기 화소별 가중치임
The method of claim 12,
The low light area chroma compensation unit calculates the low light compensation chroma value according to the following equation.
[Equation]
Figure 112010082262702-pat00036

Here, S in (x, y) is an input saturation value of the corresponding pixel (x, y), S out (x, y) is a low illumination compensation saturation value of the corresponding pixel (x, y), and γ is Is a parameter for adjusting the saturation compensation intensity in the low light region, and W L is the weight for each pixel.
제12항에 있어서,
상기 고조도 영역 채도 보상부는 하기 수학식에 따라 상기 고조도 보상 채도값을 계산하는 것을 특징으로 하는 적응적 영상 보상 장치.
[수학식]
Figure 112010082262702-pat00037

여기서, Sin(x,y)는 상기 해당 화소(x,y)의 입력 채도값이고, Sout(x,y)는 상기 해당 화소(x,y)의 고조도 보상 채도값이며, λ는 고조도 영역에서 채도 보상 강도를 조절하는 파라미터이고, WL은 상기 화소별 가중치임
The method of claim 12,
The high illuminance region chroma compensation unit calculates the high illuminance compensation chroma value according to the following equation.
[Equation]
Figure 112010082262702-pat00037

Here, S in (x, y) is an input saturation value of the corresponding pixel (x, y), S out (x, y) is a high illuminance compensation saturation value of the corresponding pixel (x, y), and λ is Is a parameter for adjusting saturation compensation intensity in a high illuminance region, and W L is a weight for each pixel.
입력 영상의 밝기 선명도를 보상하는 적응적 영상 보상 방법으로서,
이전 프레임의 영역별 평균 밝기로부터 현재 프레임의 각 화소의 지역 밝기값을 예측하는 단계; 및
상기 지역 밝기값을 기초하여 화소별 가중치를 계산하고, 상기 화소별 가중치에 따라 저조도 영역 보상 혹은 고조도 영역 보상을 수행하는 단계를 포함하되,
상기 저조도 영역 보상 혹은 고조도 영역 보상을 수행하는 단계는,
상기 지역 밝기값에 따라 변하는 가중치 함수를 이용하여 상기 각 화소에 대한 화소별 가중치를 계산하는 단계와,
상기 화소별 가중치에 따라 저조도 영역 명도 보상 혹은 고조도 영역 명도 보상을 수행하는 단계를 포함하고,
상기 명도 보상 단계는,
(a) 상기 화소별 가중치를 미리 지정된 값과 비교한 결과에 따라 해당 화소가 저조도 영역 혹은 고조도 영역 중 어디에 속하는지를 판단하는 단계와,
(b) 제1 맵핑 함수에 따라 상기 해당 화소의 입력 밝기값이 밝기 보상된 중간 저조도 보상 밝기값을 구하고, 상기 화소별 가중치를 이용하여 최종 저조도 보상 밝기값을 계산하여 출력하는 단계와,
(c) 제2 맵핑 함수에 따라 상기 해당 화소의 입력 밝기값이 밝기 보상된 중간 고조도 보상 밝기값을 구하고, 상기 화소별 가중치를 이용하여 최종 고조도 보상 밝기값을 계산하여 출력하는 단계를 포함하되,
상기 단계 (a)에서의 판단 결과에 따라 상기 단계 (b) 혹은 상기 단계 (c) 중 하나가 수행되는 것을 특징으로 하는 적응적 영상 보상 방법.
An adaptive image compensation method for compensating for brightness clarity of an input image,
Predicting a local brightness value of each pixel of the current frame from the average brightness per area of the previous frame; And
Computing a weight for each pixel based on the local brightness value, and performing a low illumination region compensation or a high illumination region compensation according to the pixel-specific weight,
The performing of the low light area compensation or the high light area compensation may include:
Calculating a weight for each pixel for each pixel using a weight function that changes according to the local brightness value;
Performing low light intensity brightness compensation or high light intensity brightness compensation according to the pixel-specific weights;
The brightness compensation step,
(a) determining whether the pixel belongs to a low illumination region or a high illumination region according to a result of comparing the weight for each pixel with a predetermined value;
(b) obtaining an intermediate low light compensation brightness value of which the input brightness value of the corresponding pixel is brightness compensated according to a first mapping function, calculating and outputting a final low light compensation brightness value using the weight of each pixel;
(c) obtaining an intermediate high illuminance compensation brightness value at which the input brightness value of the corresponding pixel is brightness compensated according to a second mapping function, and calculating and outputting a final high illumination compensation brightness value using the weight of each pixel; But
Adaptive image compensation method characterized in that the step (b) or one of the step (c) is performed according to the determination result in the step (a).
제15항에 있어서,
상기 입력 영상을 동일 크기의 복수의 블록으로 영역을 구분하고, 각 영역 내에 속하는 화소들의 밝기값 평균을 영역별 평균 밝기로 산출하는 단계를 더 포함하되,
N(자연수)번째 프레임의 영역별 평균 밝기는 메모리에 저장되어 (N+1)번째 프레임의 지역 밝기값 예측 시 이용되는 것을 특징으로 하는 적응적 영상 보상 방법.
16. The method of claim 15,
The method may further include dividing the input image into a plurality of blocks having the same size, and calculating average brightness values of pixels belonging to each area as average brightness for each region.
The average brightness per region of the N (natural number) frame is stored in the memory and used to predict the local brightness value of the (N + 1) -th frame.
제15항에 있어서,
상기 지역 밝기값 예측 단계는 상기 이전 프레임의 영역별 평균 밝기로부터 바이리니어 보간법(bi-linear interpolation)에 의해 상기 지역 밝기값을 예측하는 것을 특징으로 하는 적응적 영상 보상 방법.
16. The method of claim 15,
In the predicting the local brightness value, the adaptive brightness compensation method comprises predicting the local brightness value by bi-linear interpolation from the average brightness of each region of the previous frame.
삭제delete 제15항에 있어서,
상기 화소별 가중치 계산 단계는 하기 수학식에 따라 상기 화소별 가중치를 계산하는 것을 특징으로 하는 적응적 영상 보상 방법.
[수학식]
Figure 112012017605725-pat00061

여기서, WL(x,y)는 화소(x,y)의 가중치이며, L(x,y)는 화소(x,y)의 지역 밝기값, σw는 가중 영역 결정 파라미터임.

16. The method of claim 15,
In the step of calculating the weight for each pixel, the weight for each pixel is calculated according to the following equation.
[Equation]
Figure 112012017605725-pat00061

Here, W L (x, y) is a weight of the pixel (x, y), L (x, y) is a local brightness value of the pixel (x, y), and σ w is a weighted area determination parameter.

삭제delete 제15항에 있어서,
상기 단계 (b)는 하기 두 수학식에 따라 상기 최종 저조도 보상 밝기값을 계산하는 것을 특징으로 하는 적응적 영상 보상 방법.
[수학식]
Figure 112012017605725-pat00062
,
Figure 112012017605725-pat00063

여기서, Vin(x,y)는 상기 해당 화소(x,y)의 입력 밝기값이며, Vl(x,y)는 상기 해당 화소(x,y)의 중간 저조도 보상 밝기값이고, Vout(x,y)는 상기 해당 화소(x,y)의 최종 저조도 보상 밝기값이며, α는 Vl(x,y)의 밝기 향상의 강도를 조절하는 파라미터이고, σl은 보상 폭 결정 파라미터이며, gl은 보상 기울기 결정 파라미터이고, WL은 상기 화소별 가중치임
16. The method of claim 15,
In the step (b), the final low light compensation brightness value is calculated according to the following two equations.
[Equation]
Figure 112012017605725-pat00062
,
Figure 112012017605725-pat00063

Here, V in (x, y) is an input brightness value of the corresponding pixel (x, y), V l (x, y) is an intermediate low light compensation brightness value of the corresponding pixel (x, y), and V out (x, y) is the final low light compensation brightness value of the corresponding pixel (x, y), α is a parameter for adjusting the intensity of brightness enhancement of V l (x, y), σ l is a compensation width determining parameter , g l is a compensation slope determination parameter, and W L is the pixel-specific weight
제15항에 있어서,
상기 단계 (c)는 하기 두 수학식에 따라 상기 최종 고조도 보상 밝기값을 계산하는 것을 특징으로 하는 적응적 영상 보상 방법.
[수학식]
Figure 112012017605725-pat00064
,
Figure 112012017605725-pat00065

여기서, Vin(x,y)는 상기 해당 화소(x,y)의 입력 밝기값이며, Vh(x,y)는 상기 해당 화소(x,y)의 중간 고조도 보상 밝기값이고, Vout(x,y)는 상기 해당 화소(x,y)의 최종 고조도 보상 밝기값이며, α는 Vh(x,y)의 밝기 향상의 강도를 조절하는 파라미터이고, σh은 보상 폭 결정 파라미터이며, gh은 보상 기울기 결정 파라미터이고, WL은 상기 화소별 가중치임
16. The method of claim 15,
In the step (c), the final high illuminance compensation brightness value is calculated according to the following two equations.
[Equation]
Figure 112012017605725-pat00064
,
Figure 112012017605725-pat00065

Here, V in (x, y) is an input brightness value of the corresponding pixel (x, y), V h (x, y) is an intermediate high intensity compensation brightness value of the corresponding pixel (x, y), and V out (x, y) is the final high intensity compensation brightness value of the corresponding pixel (x, y), α is a parameter for adjusting the intensity of brightness enhancement of V h (x, y), and σ h is the compensation width determination. Parameter, g h is a compensation gradient determination parameter, and W L is the pixel-specific weight
제15항에 있어서,
상기 화소별 가중치에 따라 저조도 영역 채도 보상 혹은 고조도 영역 채도 보상을 수행하는 단계를 더 포함하는 것을 특징으로 하는 적응적 영상 보상 방법.
16. The method of claim 15,
And performing low light intensity chroma saturation compensation or high light intensity chroma saturation compensation according to the pixel-specific weights.
제23항에 있어서,
상기 채도 보상 단계는,
(a) 상기 화소별 가중치를 미리 지정된 값과 비교한 결과에 따라 해당 화소가 저조도 영역 혹은 고조도 영역 중 어디에 속하는지를 판단하는 단계와,
(b) 상기 화소별 가중치를 이용하여 저조도 보상 채도값을 계산하여 출력하는 단계와,
(c) 상기 화소별 가중치를 이용하여 고조도 보상 채도값을 계산하여 출력하는 단계를 포함하되,
상기 단계 (a)에서의 판단 결과에 따라 상기 단계 (b) 혹은 상기 단계 (c) 중 하나가 수행되는 것을 특징으로 하는 적응적 영상 보상 방법.
The method of claim 23, wherein
The saturation compensation step,
(a) determining whether the pixel belongs to a low illumination region or a high illumination region according to a result of comparing the weight for each pixel with a predetermined value;
(b) calculating and outputting a low light compensation saturation value using the weight for each pixel;
(c) calculating and outputting a high illumination compensation saturation value using the weight for each pixel,
Adaptive image compensation method characterized in that the step (b) or one of the step (c) is performed according to the determination result in the step (a).
제24항에 있어서,
상기 단계 (b)는 하기 수학식에 따라 상기 저조도 보상 채도값을 계산하는 것을 특징으로 하는 적응적 영상 보상 방법.
[수학식]
Figure 112010082262702-pat00043

여기서, Sin(x,y)는 상기 해당 화소(x,y)의 입력 채도값이고, Sout(x,y)는 상기 해당 화소(x,y)의 저조도 보상 채도값이며, γ는 상기 저조도 영역에서 채도 보상 강도를 조절하는 파라미터이고, WL은 상기 화소별 가중치임
25. The method of claim 24,
In the step (b), the low illumination compensation saturation value is calculated according to the following equation.
[Equation]
Figure 112010082262702-pat00043

Here, S in (x, y) is an input saturation value of the corresponding pixel (x, y), S out (x, y) is a low illumination compensation saturation value of the corresponding pixel (x, y), and γ is Is a parameter for adjusting the saturation compensation intensity in the low light region, and W L is the weight for each pixel.
제24항에 있어서,
상기 단계 (c)는 하기 수학식에 따라 상기 고조도 보상 채도값을 계산하는 것을 특징으로 하는 적응적 영상 보상 방법.
[수학식]
Figure 112010082262702-pat00044

여기서, Sin(x,y)는 상기 해당 화소(x,y)의 입력 채도값이고, Sout(x,y)는 상기 해당 화소(x,y)의 고조도 보상 채도값이며, λ는 고조도 영역에서 채도 보상 강도를 조절하는 파라미터이고, WL은 상기 화소별 가중치임
25. The method of claim 24,
In the step (c), the high illuminance compensation saturation value is calculated according to the following equation.
[Equation]
Figure 112010082262702-pat00044

Here, S in (x, y) is an input saturation value of the corresponding pixel (x, y), S out (x, y) is a high illuminance compensation saturation value of the corresponding pixel (x, y), and λ is Is a parameter for adjusting saturation compensation intensity in a high illuminance region, and W L is a weight for each pixel.
제15항에 있어서,
상기 저조도 영역 보상 혹은 고조도 영역 보상을 수행하는 단계는,
상기 지역 밝기값에 따라 변하는 가중치 함수를 이용하여 상기 각 화소에 대한 화소별 가중치를 계산하는 단계와,
상기 화소별 가중치에 따라 저조도 영역 채도 보상 혹은 고조도 영역 채도 보상을 수행하는 단계를 포함하는 것을 특징으로 하는 적응적 영상 보상 방법.
16. The method of claim 15,
The performing of the low light area compensation or the high light area compensation may include:
Calculating a weight for each pixel for each pixel using a weight function that changes according to the local brightness value;
And performing low illumination region chroma compensation or high illumination region chroma compensation according to the pixel-specific weights.
제27항에 있어서,
상기 화소별 가중치 계산 단계는 하기 수학식에 따라 상기 화소별 가중치를 계산하는 것을 특징으로 하는 적응적 영상 보상 방법.
[수학식]
Figure 112010082262702-pat00045

여기서, WL(x,y)는 화소(x,y)의 가중치이며, L(x,y)는 화소(x,y)의 지역 밝기값, σw는 가중 영역 결정 파라미터임.
The method of claim 27,
In the step of calculating the weight for each pixel, the weight for each pixel is calculated according to the following equation.
[Equation]
Figure 112010082262702-pat00045

Here, W L (x, y) is a weight of the pixel (x, y), L (x, y) is a local brightness value of the pixel (x, y), and σ w is a weighted area determination parameter.
제27항에 있어서,
상기 채도 보상 단계는,
(a) 상기 화소별 가중치를 미리 지정된 값과 비교한 결과에 따라 해당 화소가 저조도 영역 혹은 고조도 영역 중 어디에 속하는지를 판단하는 단계와,
(b) 상기 화소별 가중치를 이용하여 저조도 보상 채도값을 계산하여 출력하는 단계와,
(c) 상기 화소별 가중치를 이용하여 고조도 보상 채도값을 계산하여 출력하는 단계를 포함하되,
상기 단계 (a)에서의 판단 결과에 따라 상기 단계 (b) 혹은 상기 단계 (c) 중 하나가 수행되는 것을 특징으로 하는 적응적 영상 보상 방법.
The method of claim 27,
The saturation compensation step,
(a) determining whether the pixel belongs to a low illumination region or a high illumination region according to a result of comparing the weight for each pixel with a predetermined value;
(b) calculating and outputting a low light compensation saturation value using the weight for each pixel;
(c) calculating and outputting a high illumination compensation saturation value using the weight for each pixel,
Adaptive image compensation method characterized in that the step (b) or one of the step (c) is performed according to the determination result in the step (a).
제29항에 있어서,
상기 단계 (b)는 하기 수학식에 따라 상기 저조도 보상 채도값을 계산하는 것을 특징으로 하는 적응적 영상 보상 방법.
[수학식]
Figure 112010082262702-pat00046

여기서, Sin(x,y)는 상기 해당 화소(x,y)의 입력 채도값이고, Sout(x,y)는 상기 해당 화소(x,y)의 저조도 보상 채도값이며, γ는 상기 저조도 영역에서 채도 보상 강도를 조절하는 파라미터이고, WL은 상기 화소별 가중치임
The method of claim 29,
In the step (b), the low illumination compensation saturation value is calculated according to the following equation.
[Equation]
Figure 112010082262702-pat00046

Here, S in (x, y) is an input saturation value of the corresponding pixel (x, y), S out (x, y) is a low illumination compensation saturation value of the corresponding pixel (x, y), and γ is Is a parameter for adjusting the saturation compensation intensity in the low light region, and W L is the weight for each pixel.
제29항에 있어서,
상기 단계 (c)는 하기 수학식에 따라 상기 고조도 보상 채도값을 계산하는 것을 특징으로 하는 적응적 영상 보상 방법.
[수학식]
Figure 112010082262702-pat00047

여기서, Sin(x,y)는 상기 해당 화소(x,y)의 입력 채도값이고, Sout(x,y)는 상기 해당 화소(x,y)의 고조도 보상 채도값이며, λ는 고조도 영역에서 채도 보상 강도를 조절하는 파라미터이고, WL은 상기 화소별 가중치임
The method of claim 29,
In the step (c), the high illuminance compensation saturation value is calculated according to the following equation.
[Equation]
Figure 112010082262702-pat00047

Here, S in (x, y) is an input saturation value of the corresponding pixel (x, y), S out (x, y) is a high illuminance compensation saturation value of the corresponding pixel (x, y), and λ is Is a parameter for adjusting saturation compensation intensity in a high illuminance region, and W L is a weight for each pixel.
제15항 내지 제17항, 제19항, 제21항 내지 제31항 중 어느 한 항에 기재된 적응적 영상 보상 방법을 수행하기 위해 디지털 처리 장치에 의해 실행될 수 있는 명령어들의 프로그램이 유형적으로 구현되어 있으며 디지털 처리 장치에 의해 판독될 수 있는 기록매체. 32. A program of instructions that can be executed by a digital processing apparatus to perform the adaptive image compensation method according to any one of claims 15 to 17, 19 and 21 to 31 is tangibly implemented. And a record carrier that can be read by a digital processing device.
KR1020100127496A 2010-12-14 2010-12-14 Adaptive image compensating device and method thereof KR101164535B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020100127496A KR101164535B1 (en) 2010-12-14 2010-12-14 Adaptive image compensating device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020100127496A KR101164535B1 (en) 2010-12-14 2010-12-14 Adaptive image compensating device and method thereof

Publications (2)

Publication Number Publication Date
KR20120066250A KR20120066250A (en) 2012-06-22
KR101164535B1 true KR101164535B1 (en) 2012-07-10

Family

ID=46685667

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020100127496A KR101164535B1 (en) 2010-12-14 2010-12-14 Adaptive image compensating device and method thereof

Country Status (1)

Country Link
KR (1) KR101164535B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9774781B2 (en) 2014-11-05 2017-09-26 Samsung Electronics Co., Ltd. Local tone mapping circuits and mobile computing devices including the same
US10692466B2 (en) 2017-07-27 2020-06-23 Samsung Electronics Co., Ltd. Display apparatus and control method thereof

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102323358B1 (en) 2014-11-06 2021-11-09 삼성디스플레이 주식회사 Organic Light Emitting Display Device and Display Method Thereof
KR102436954B1 (en) * 2015-11-24 2022-08-29 삼성전자주식회사 Image photographing apparatus and method of controlling thereof
KR102355420B1 (en) * 2015-12-11 2022-01-26 현대자동차주식회사 Image improving method and computer readable recording medium
KR102022234B1 (en) * 2018-03-20 2019-11-04 주식회사 만도 Apparatus for image enhancement and method thereof
KR102207441B1 (en) * 2019-06-03 2021-01-25 창원대학교 산학협력단 The apparatus and method of HDR imaging generation
KR102397097B1 (en) * 2020-11-09 2022-05-12 한국광기술원 Display-based screen communication system and method, display-based screen transmission and reception method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9774781B2 (en) 2014-11-05 2017-09-26 Samsung Electronics Co., Ltd. Local tone mapping circuits and mobile computing devices including the same
US10692466B2 (en) 2017-07-27 2020-06-23 Samsung Electronics Co., Ltd. Display apparatus and control method thereof

Also Published As

Publication number Publication date
KR20120066250A (en) 2012-06-22

Similar Documents

Publication Publication Date Title
KR101164535B1 (en) Adaptive image compensating device and method thereof
US11849224B2 (en) Global tone mapping
US8731322B2 (en) Image brightness controlling apparatus and method thereof
EP1746539B1 (en) Gradation correcting apparatus, mobile terminal device, image pickup apparatus, mobile telephone, gradation correcting method, and program
US8526729B2 (en) Image processing apparatus and method, and program
US8199227B2 (en) Image-signal processing apparatus for performing space-variant image-signal processing
US8831346B2 (en) Image processing apparatus and method, and program
JP2003230160A (en) Color picture saturation adjustment apparatus and method therefor
JP2008205691A (en) Image processor and image processing method, recording medium, and program
JP5901667B2 (en) Image processing apparatus and method, image processing program, and imaging apparatus
JP4021261B2 (en) Image processing device
JP4810473B2 (en) Image processing apparatus and image processing program
JP2001169135A (en) Method and device for color correction and recording medium with color correction control program recorded thereon
KR100888429B1 (en) Image brightness controlling apparatus and method thereof
JP5911525B2 (en) Image processing apparatus and method, image processing program, and imaging apparatus
KR101349968B1 (en) Image processing apparatus and method for automatically adjustment of image
JP4664938B2 (en) Image processing apparatus, image processing method, and program
JP4769332B2 (en) Image processing apparatus, image processing method, and program
CN105631812B (en) Control method and control device for color enhancement of display image
JP5494249B2 (en) Image processing apparatus, imaging apparatus, and image processing program
KR20120083671A (en) Low illumination intensity image enhancement method and apparatus using histogram normalization and gamma correction
JP2012010227A (en) Image processing apparatus, and image processing method
KR100892078B1 (en) Image brightness controlling apparatus and method thereof
JP2008312177A (en) Apparatus, method and program, for converting gradation of video image
JP2013106314A (en) Image processing apparatus, image processing method and image processing program

Legal Events

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

Payment date: 20150629

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20160630

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20180627

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20190625

Year of fee payment: 8