KR20080068477A - Method and apparatus for color correction - Google Patents

Method and apparatus for color correction Download PDF

Info

Publication number
KR20080068477A
KR20080068477A KR1020070006311A KR20070006311A KR20080068477A KR 20080068477 A KR20080068477 A KR 20080068477A KR 1020070006311 A KR1020070006311 A KR 1020070006311A KR 20070006311 A KR20070006311 A KR 20070006311A KR 20080068477 A KR20080068477 A KR 20080068477A
Authority
KR
South Korea
Prior art keywords
color
input image
correction
image
corrected
Prior art date
Application number
KR1020070006311A
Other languages
Korean (ko)
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 KR1020070006311A priority Critical patent/KR20080068477A/en
Publication of KR20080068477A publication Critical patent/KR20080068477A/en

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • G09G5/06Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed using colour palettes, e.g. look-up tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/643Hue control means, e.g. flesh tone control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/646Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/06Colour space transformation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

A method and an apparatus for correcting color are provided to select a reference color, a base of color correction, according to the color of an input image, and correct the color of the input image by moving the color of the input image on a color wheel towards the selected reference color, thereby providing an image with clear color. A method for correcting color comprises the following steps of: receiving an RGB(Red, Green, Blue) image(S500); performing the RGB-HSV(Hue, Saturation, Value) converting of the received RGB image(S510); acquiring color correction information including a reference color(S520); correcting color to generate correction color(S530); and correcting the correction color again to generate a correction skin color(S540) and performing the RGB-HSV converting of the generated correction skin color to output an image(S550).

Description

색상 수정 방법 및 장치{Method and apparatus for color correction}Method and apparatus for color correction

도 1은 본 발명의 일 실시예에 따른 색상 수정 장치를 도시하는 블록도이다.1 is a block diagram illustrating a color correction apparatus according to an embodiment of the present invention.

도 2는 도 1에 도시된 기준색상 선택부의 상세한 일 예를 도시하는 블록도이다.FIG. 2 is a block diagram illustrating a detailed example of the reference color selector illustrated in FIG. 1.

도 3은 색상이 수정되지 않은 영상과 도 1에 도시된 본 발명의 일 실시예에 따른 색상 수정 장치에 의해 색상이 수정된 영상을 비교하여 도시한 도면이다.FIG. 3 is a view illustrating a comparison of an image of which color is not corrected with an image of which color is corrected by the color correction apparatus according to an exemplary embodiment of the present invention shown in FIG. 1.

도 4는 본 발명의 다른 일 실시예에 따른 색상 수정 장치를 도시하는 블록도이다.4 is a block diagram illustrating a color correction apparatus according to another embodiment of the present invention.

도 5는 도 4에 도시된 본 발명의 다른 일 실시예에 따른 색상 수정 장치에서 수행되는 색상 수정 방법을 설명하기 위한 흐름도이다.5 is a flowchart illustrating a color correction method performed in the color correction apparatus according to another embodiment of the present invention shown in FIG. 4.

본 발명은 색상 수정 방법 및 장치에 관한 것으로, 특히 입력된 영상의 색상에 따라 색상을 수정하는 색상 수정 방법 및 장치에 관한 것이다.The present invention relates to a color correction method and apparatus, and more particularly, to a color correction method and apparatus for correcting the color according to the color of the input image.

종래의 디스플레이 기기 중에는 디스플레이되는 영상에 대하여 사용자가 명도나 채도 등을 조절할 수 있도록 하는 인터페이스를 제공하는 기기들이 있다. 따 라서, 사용자는 디스플레이되는 영상의 타입, 자신의 취양 등에 따라 어느 정도 원하는 영상이 디스플레이 되도록 설정할 수 있다.Among conventional display devices, there are devices that provide an interface for allowing a user to adjust brightness, saturation, etc. with respect to the displayed image. Therefore, the user may set the desired image to be displayed to some extent according to the type of the displayed image, the user's preference, and the like.

그런데 명도의 조절은 영상의 밝고 어두운 정도만 조절할 수 있고, 채도의 조절은 영상의 붉은 색 계통의 증가시키거나 아니면 푸른 색 계통의 색농도를 증가시키는 등의 역할에 그칠 뿐, 선명한 영상을 얻는 데는 기여하지 못하는 문제점이 있다.However, brightness can only be adjusted to the light and dark levels of the image, and saturation can only increase the red color of the image or increase the color density of the blue color. There is a problem that can not be.

또한, 일부 디스플레이 기기 중에는 색상을 조절할 수 있는 기능을 제공하고 있으나, 이러한 색상 조절은 모든 색상을 일정하게 조절시킴으로써 전체 영상의 색상이 변하게 되어 사용자가 원하는 선명한 영상을 얻을 수 없는 문제점이 있다.In addition, some display devices provide a function of adjusting color. However, such color adjustment has a problem in that the color of the entire image is changed by uniformly adjusting all colors, so that a clear image desired by the user cannot be obtained.

본 발명이 이루고자 하는 기술적 과제는, 입력된 영상의 색상을 선명한 색상으로 수정함으로써 선명한 색상을 가진 영상을 사용자에게 제공할 수 있게 하는 방법 및 장치를 제공하는데 있다. 또한, 상기된 방법을 컴퓨터에서 실행시기기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체를 제공하는데 있다.An object of the present invention is to provide a method and apparatus for providing a user with an image having a vivid color by correcting the color of the input image into a vivid color. In addition, the present invention provides a computer-readable recording medium having recorded thereon a program for executing the above method on a computer.

상기 기술적 과제를 이루기 위한 본 발명에 따른 색상 수정 방법은 입력 영상의 색상(H)을 이용하여 색상 수정의 기준이 되는 색상인 기준 색상을 선택하는 단계; 및 상기 입력 영상의 색상(H)을 색상환 상에서 상기 선택된 기준 색상을 향하여 이동시킴으로써 상기 입력 영상의 색상(H)을 수정하는 단계를 포함함을 특징으로 한다.According to an aspect of the present invention, there is provided a color correction method, comprising: selecting a reference color that is a color that is a color correction standard using a color (H) of an input image; And modifying the color (H) of the input image by moving the color (H) of the input image toward the selected reference color on a color wheel.

상기 다른 기술적 과제를 이루기 위한 본 발명에 따른 색상 수정 장치는 입력 영상의 색상(H)을 이용하여 색상 수정의 기준이 되는 색상인 기준 색상을 선택하는 기준색상 선택부; 및 상기 입력 영상의 색상(H)을 색상환 상에서 상기 선택된 기준 색상을 향하여 이동시킴으로써 상기 입력 영상의 색상(H)을 수정하는 색상 수정부를 포함함을 특징으로 한다.According to another aspect of the present invention, there is provided a color correcting apparatus, including: a reference color selecting unit configured to select a reference color, which is a color used as a color correction standard, using a color H of an input image; And a color correcting unit configured to correct the color H of the input image by moving the color H of the input image toward the selected reference color on a color wheel.

상기 또 다른 기술적 과제를 해결하기 위하여, 본 발명은 상기된 색상 수정 방법을 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록 매체를 제공한다.In order to solve the above another technical problem, the present invention provides a computer-readable recording medium having recorded thereon a program for executing the color correction method on a computer.

이하, 첨부된 도면을 참조하여 본 발명에 따른 바람직한 일 실시예를 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 일 실시예에 따른 색상 수정 장치를 도시한 블록도이고, 도 2는 도 1에 도시된 기준색상 선택부의 일 예를 도시한 블록도이다. 도 1에 도시된 바와 같이, 본 발명에 따른 색상 수정 장치는 영상 변환부(100), 기준색상 선택부(110), 색상 수정부(120) 및 영상 출력부(140)를 포함하여 구성된다.1 is a block diagram showing a color correction apparatus according to an embodiment of the present invention, Figure 2 is a block diagram showing an example of the reference color selection unit shown in FIG. As shown in FIG. 1, the apparatus for correcting color according to the present invention includes an image converter 100, a reference color selector 110, a color corrector 120, and an image outputter 140.

영상 변환부(100)는 입력된 RGB영상의 한 픽셀(Pixel)에 대해 RGB-HSV 변환을 수행함으로써 색상(H:hue), 채도(S:Saturation), 명도(V:Value)를 계산한다. 그리고 이 계산과정에 RGB값과 HSV값 사이의 관계가 규정된 룩업 테이블(Look-UP Table)을 사용함으로써, 색상, 채도, 명도를 쉽고 빠르게 구할 수 있다.The image converter 100 calculates hue (H: hue), saturation (S: saturation), and brightness (V: value) by performing RGB-HSV conversion on one pixel of the input RGB image. By using a look-up table that defines the relationship between RGB and HSV values in this calculation process, color, saturation, and brightness can be obtained quickly and easily.

이때, 명도(V), 채도(S), 색상(H)와 RGB와의 관계는 다음과 같다.At this time, the relationship between the brightness (V), the saturation (S), the color (H) and RGB is as follows.

명도(V)는 색의 밝기를 나타내는데 R,G,B 세 색 중 가장 밝은 값을 따라간 다. 즉, R,G,B 가운데 최대값이 명도(V)이다.Brightness (V) represents the brightness of the color and follows the brightest value among the three colors R, G and B. That is, the maximum value among R, G, and B is brightness (V).

채도(S)는 R,G,B 세 색의 균일한 정도를 의미하는데, R,G,B가 골고루 섞여 있으면 채도가 낮고 특정 색이 다른 색보다 밝기 차이가 클수록 채도가 높다. 따라서 R,G,B 세 색 중 가장 밝은 색의 값과 가장 어두운 색의 값의 차이를 명도로 정규화(normalize)해 준 것이 채도(S)이다.Saturation (S) refers to the uniformity of the three colors of R, G, B. If R, G, B are evenly mixed, the saturation is low, and the saturation is higher as the brightness difference is greater than other colors. Therefore, saturation (S) is the difference between the brightest and the darkest of the three colors R, G, and B.

마지막으로 색상(H)은 색상환에서 위치를 나타내는데 세 개의 영역으로 나누어진 색상환 중에서, R,G,B 중 어는 한 색의 세기가 가장 크며, 가장 세기가 큰 색을 중심으로 다른 색이 섞인 정도에 따라 +60도에서 -60도까지 색상값이 변하게 된다. 여기서, 색상환은 빨간 색부터 차례대로 무지개 색 순서대로 원 위에 배열에 놓은 것을 말하고, 이 색상환 위에서 색의 위치를 각도로 표시한 것이 색상(H)이다.Lastly, the color (H) represents the position on the color wheel. Of the color wheels divided into three areas, one of R, G, and B has the greatest intensity of one color, and the degree of mixing of the other colors based on the color with the greatest intensity. Therefore, the color value changes from +60 degrees to -60 degrees. Here, the color wheel means that the colors are arranged on the circle in the order of the rainbow colors in order from the red color, and the color (H) indicates the position of the color at an angle on the color wheel.

이상 설명한 바에 따른 RGB에서 HSV로의 변환식은 다음과 같다.The conversion formula from RGB to HSV as described above is as follows.

Figure 112007005904021-PAT00001
Figure 112007005904021-PAT00001

Figure 112007005904021-PAT00002
Figure 112007005904021-PAT00002

Figure 112007005904021-PAT00003
Figure 112007005904021-PAT00003

기준색상 선택부(110)는 영상 변환부(100)로부터 색상(H)를 입력받아 색상 수정의 기준이 되는 기준 색상을 선택한다. 또한, 기준색상 선택부(110)는 색상 수 정 범위의 하한, 색상 수정 범위의 상한을 포함하는 색상 수정에 필요한 정보를 획득한다. 이때, 하한 및 상한은 각각 색상환 상에서 수정하고자 하는 영역의 하한값 및 상한값을 의미하며, 기준 색상은 색상 수정의 목표가 되는 색상을 말한다. 기준 색상은 미리 설정되어 있는데, 기준 색상으로는 보통 채도가 높은 순수한 적색(Red), 순수한 녹색(Green) 및 순수한 청색(Blue) 등이 될 수 있다.The reference color selector 110 receives a color H from the image converter 100 and selects a reference color as a reference for color correction. In addition, the reference color selection unit 110 obtains information necessary for color correction including a lower limit of the color correction range and an upper limit of the color correction range. In this case, the lower limit and the upper limit mean a lower limit value and an upper limit value of an area to be corrected on the color wheel, respectively, and the reference color refers to a color that is a target of color correction. The reference color is preset, and the reference color may be pure red, pure green, pure blue, or the like, which is usually saturated.

이러한 기준색상 선택부(110)는 수 개의 정보획득 블록들과 하나의 멀티플렉서로 구성될 수 있는데, 이 정보획득 블록의 개수는 색상환을 몇 개의 영역으로 분리하느냐에 따라 결정된다.The reference color selection unit 110 may be composed of several information acquisition blocks and one multiplexer. The number of information acquisition blocks is determined by how many areas the color wheel is divided into.

만일, 색상환을 제1 영역, 제2 영역 및 제3 영역의 3개의 영역으로 분리한다면, 각 영역당 하나의 정보획득 블록이 필요하므로, 총 3개의 정보획득 블록들이 필요하다. 이때, 3개의 정보획득 블록들을 각각 제1 정보획득 블록(200), 제2 정보획득 블록(210), 제3 정보획득 블록(220)으로 하기로 한다.If the color wheel is divided into three regions of the first region, the second region, and the third region, one information acquisition block is required for each region, so a total of three information acquisition blocks are required. In this case, the three information acquisition blocks will be referred to as a first information acquisition block 200, a second information acquisition block 210, and a third information acquisition block 220, respectively.

제1 정보획득 블록(200)은 영상 변환부(100)로부터 색상(H)을 입력받으면, 제1 영역의 기준 색상인 제1 기준 색상을 출력한다. 또한, 제1 정보획득 블록(200)은 제1 영역에 대한 상한 및 하한을 획득하여 멀티플렉서(230)에 출력한다. 마찬가지로 제2 정보획득 블록(210)은 영상 변환부(100)로부터 색상(H)을 입력받으면, 제2 영역의 기준 색상인 제2 기준 색상을 출력하고, 제2 영역에 대한 상한 및 하한을 획득하여 멀티플렉서(230)에 출력한다. 또한, 제3 정보획득 블록(220)은 영상 변환부(100)로부터 색상(H)을 입력받으면, 제3 영역의 기준 색상인 제3 기준 색상을 출력하고, 제3 영역에 대한 상한 및 하한을 획득하여 멀티플렉서(230)에 출력한다.When the color information H receives the color H from the image converter 100, the first information acquisition block 200 outputs a first reference color that is a reference color of the first area. In addition, the first information acquisition block 200 obtains an upper limit and a lower limit for the first region and outputs the upper and lower limits to the multiplexer 230. Similarly, when the second information acquisition block 210 receives the color H from the image converter 100, the second information acquisition block 210 outputs a second reference color that is a reference color of the second area, and acquires an upper limit and a lower limit for the second area. To be output to the multiplexer 230. In addition, when the third information acquisition block 220 receives the color H from the image converter 100, the third information acquisition block 220 outputs a third reference color that is a reference color of the third area, and sets an upper limit and a lower limit for the third area. Acquire and output to the multiplexer 230.

그리고 멀티플렉서(230)는 이 정보획득 블록들(200, 210, 220)이 출력한 기준 색상들, 상한들 및 하한들 중에서 입력된 색상(H)이 속하는 영역에 대한 정보획득 블록으로부터 출력된 기준 색상, 상한 및 하한을 선택하여 색상 수정부(120)에 출력한다.The multiplexer 230 outputs the reference color output from the information acquisition block for the area to which the input color H belongs among the reference colors, upper limits, and lower limits output by the information acquisition blocks 200, 210, and 220. , The upper limit and the lower limit are selected and output to the color correction unit 120.

색상 수정부(120)는 영상 변환부(100)로부터 출력된 색상(H), 기준색상 선택부(110)로부터 출력된 하한, 상한 및 기준 색상을 포함하는 색상 수정 정보를 이용하여 색상(H)을 수정함으로써 수정 색상(H1)을 생성한다. 이때, 색상 수정부(120)는 색상(H)이 색상환 상에서 하한과 상한 사이에 위치하는 경우에 한하여 색상(H)을 수정하고, 그렇지 않으면 색상을 수정하지 않는다. 만일, 색상을 수정하는 경우에 수정 색상(H1)은 색상환에서 볼 때 색상(H)에서 기준 색상을 향하여 회전 이동한 색상으로써, 그 이동 각도는 색상(H)와 기준 색상의 차이에 비례한다. 그리고 이 이동 각도는 색상(H)와 기준 색상의 차이와 이동 각도 사이의 관계를 규정하는 룩업 테이블을 사용함으로써 수정 색상(H1)을 빠르게 계산할 수 있다. 이러한 색상 수정을 통해, 색상(H)가 선명한 색상인 기준 색상에 보다 근접하게 됨으로써 선명한 색상을 가진 영상을 얻을 수 있다.The color correction unit 120 uses the color H output from the image converter 100, the color H using color correction information including a lower limit, an upper limit, and a reference color output from the reference color selector 110. By modifying the correction color H1 is generated. At this time, the color correction unit 120 corrects the color H only when the color H is located between the lower limit and the upper limit on the color wheel, and otherwise does not modify the color. If the color is corrected, the corrected color H1 is a color rotated from the color H toward the reference color when viewed from the color wheel, and the moving angle is proportional to the difference between the color H and the reference color. This shift angle can be quickly calculated using the lookup table that defines the relationship between the difference between the color H and the reference color and the shift angle. Through this color correction, the color H becomes closer to the reference color, which is a vivid color, thereby obtaining an image having a vivid color.

영상 출력부(140)는 영상 변환부(100)로부터 출력된 채도(S), 명도(V) 및 색상 수정부(120)로부터 출력된 수정 색상(H1)에 대하여 RGB-HSV 변환을 수행함으로써 R'G'B'값을 계산하고, 계산된 값들에 따른 영상을 출력한다. 이 R', G' 및 B'는 입력 영상에 대해 색상이 수정된 RGB 값이다. 이를 통해 도 3에 도시된 바와 같이, 도 3의 왼쪽에 표시된 영상에 대해 선명한 색상을 가진 도 3의 오른쪽에 표시된 영 상들을 얻을 수 있다.The image output unit 140 performs an RGB-HSV conversion on the saturation S, the brightness V, and the correction color H1 output from the color correction unit 120 output from the image conversion unit 100. The value 'G'B' is calculated and an image according to the calculated values is output. These R ', G' and B 'are RGB values whose color is corrected for the input image. As a result, as shown in FIG. 3, the images displayed on the right side of FIG. 3 having a vivid color for the image displayed on the left side of FIG. 3 may be obtained.

도 4는 본 발명의 다른 일 실시예에 따른 색상 수정 장치를 도시한 블록도이다. 도 4에 도시된 바와 같이, 본 발명에 따른 색상 수정 장치는 영상 변환부(100), 기준색상 선택부(110), 색상 수정부(120), 피부색상 수정부(130) 영상 출력부(150)를 포함하여 구성된다.4 is a block diagram showing a color correction apparatus according to another embodiment of the present invention. As shown in FIG. 4, the color correcting apparatus according to the present invention includes an image converting unit 100, a reference color selecting unit 110, a color correcting unit 120, and a skin color correcting unit 130. It is configured to include).

이때, 영상 변환부(100), 기준색상 선택부(110), 색상 수정부(120)는 도 1에서 설명한 것과 같으므로 그 설명을 생략하기로 하고, 피부색상 수정부(130)와 영상 출력부(150)에 대하여 설명하기로 한다.In this case, the image conversion unit 100, the reference color selection unit 110, and the color correction unit 120 are the same as those described with reference to FIG. 1, and thus description thereof will be omitted, and the skin color correction unit 130 and the image output unit may be omitted. 150 will be described.

피부색상 수정부(130)는 색상 수정부(120)로부터 출력된 수정 색상(H1)이 색상환 상에서 소정의 피부색 영역에 있으면, 이 수정 색상(H1)을 다시 수정함으로써 수정 피부 색상(H2)을 생성한다. 이 수정 피부 색상(H2)는 색상환에서 볼 때, 수정 색상(H1)에서 입력된 색상(H) 쪽으로 이동한 색상이다. 이는 피부색은 영상에 있어서 그 사용 빈도도 높고, 사용자가 출력된 영상의 품질을 판단하는데 민감하게 작용하므로, 피부의 색상을 원래 입력된 색상(H)에 더 가깝게 수정하기 위해서이다. 그리고 이러한 피부의 색상은 인종마다 다르므로 소정의 피부색 영역의 범위는 사용자에 의한 입력 및 변경이 가능하다.The skin color corrector 130 generates a corrected skin color H2 by correcting the corrected color H1 again when the corrected color H1 output from the color corrector 120 is in a predetermined skin color region on the color wheel. do. This corrected skin color H2 is the color shifted toward the input color H from the corrected color H1 when viewed from the color wheel. This is to correct the color of the skin closer to the original input color (H), because the skin color is frequently used in the image and the user is sensitive to judging the quality of the output image. And since the color of the skin is different for each race, the range of the predetermined skin color area can be input and changed by the user.

영상 출력부(150)는 영상 변환부(100)로부터 출력된 채도(S), 명도(V), 색상 수정부(120)로부터 생성된 수정 색상(H1) 및 피부색상 수정부(130)로부터 생성된 수정 피부 색상(H2)을 이용하여 HSV-RGB 변환을 수행함으로써 R'G'B'값을 계산하고, 계산된 값들에 따른 영상을 출력한다. 이 R', G' 및 B'는 입력된 영상에 대해 색상이 수정된 RGB 값이다.The image output unit 150 is generated from the saturation S, the brightness V, the corrected color H1 generated from the color correction unit 120, and the skin color correction unit 130 output from the image conversion unit 100. By performing HSV-RGB conversion using the corrected skin color (H2), an R'G'B 'value is calculated and an image according to the calculated values is output. These R ', G' and B 'are RGB values whose color is corrected for the input image.

도 5는 도 4에 도시된 본 발명의 일 실시예에 따른 색상 수정 장치에서 수행되는 색상 수정 방법을 설명하기 위한 흐름도이다.5 is a flowchart illustrating a color correction method performed in the color correction apparatus according to an embodiment of the present invention shown in FIG. 4.

500단계에서 색상 수정 장치는 RGB 영상을 입력 받는다.In step 500, the color correction apparatus receives an RGB image.

510단계에서 색상 수정 장치는 500단계에서 입력받은 RGB영상에 대하여 RGB-HSV 변환을 수행함으로써 색상(H:Hue), 채도(S:Saturation), 명도(V:Value)를 계산한다. 이때, RGB값에 따른 HSV값에 대한 룩업 테이블을 사용함으로써 빠르게 RGB-HSV 변환을 수행할 수 있다.In operation 510, the color correction apparatus calculates color (H: Hue), saturation (S: saturation), and brightness (V: Value) by performing RGB-HSV conversion on the RGB image input in operation 500. In this case, RGB-HSV conversion may be quickly performed by using a lookup table for HSV values according to RGB values.

520단계에서 색상 수정 장치는 510단계에서 계산된 색상(H)에 대하여 기준 색상을 포함하는 색상 수정 정보를 획득한다. 이때, 색상 수정 정보는 이때, 하한 및 상한은 각각 색상환 상에서 수정하고자 하는 영역의 하한값 및 상한값을 의미하며, 기준 색상은 색상 수정의 목표가 되는 색상을 말한다. 기준 색상은 미리 설정되어 있는데, 기준 색상으로는 보통 채도가 높은 순수한 적색(Red), 순수한 녹색(Green) 및 순수한 청색(Blue) 등이 될 수 있다. 기준 색상 외에, 색상 수정 범위의 하한, 색상 수정 범위의 상한을 포함한다. 이때에는 색상환의 색상을 수 개의 영역들로 분리하고, 각각 분리된 영역들에 대하여 하한들, 상한들 및 기준 색상들을 계산한 후, 500단계에서 계산된 색상(H)가 속하는 영역에 대한 하한, 상한, 기준 색상만을 출력하는 방법을 사용할 수 있다.In operation 520, the color correction apparatus acquires color correction information including the reference color with respect to the color H calculated in operation 510. In this case, the color correction information, in this case, the lower limit and the upper limit means a lower limit value and an upper limit value of an area to be corrected on the color wheel, respectively, and the reference color refers to a color that is a target of color correction. The reference color is preset, and the reference color may be pure red, pure green, pure blue, or the like, which is usually saturated. In addition to the reference color, the lower limit of the color correction range and the upper limit of the color correction range are included. In this case, the color of the color wheel is divided into several regions, and the lower limit, the upper limit, and the reference colors are calculated for each of the separated regions, and then the lower limit of the region to which the color H calculated in step 500 belongs, The upper limit and the method of outputting only the reference color can be used.

530단계에서 색상 수정 장치는 510단계에서 계산된 색상(H)과 520단계에서 획득된 하한, 상한 및 기준 색상을 이용하여 색상(H)를 수정함으로써 수정 색 상(H1)을 생성한다. 이때에는 색상(H)이 색상환 상에서 하한과 상한 사이에 위치하는 경우에 한하여 색상을 수정하고, 그렇지 않으면 색상을 수정하지 않는다. 만일 색상을 수정하는 경우에, 수정 색상(H1)은 색상환에서 볼 때 색상(H)에서 기준 색상을 향하여 이동한 색상으로써, 그 이동 각도는 색상(H)와 기준 색상의 차이에 비례한다. 이때, 이동 각도는 색상(H)와 기준 색상의 차이와 이동 각도에 대한 이동 각도를 규정하고 있는 룩업 테이블을 참조함으로써 수정 색상(H1)을 빠르게 계산할 수 있다. 이러한 색상 수정을 통해, 색상이 기준 색상에 보다 근접하게 됨으로써 선명한 색상을 가진 영상을 얻을 수 있다.In operation 530, the color correction apparatus generates a correction color H 1 by correcting the color H using the color H calculated in operation 510 and the lower limit, upper limit, and reference color obtained in operation 520. In this case, the color is corrected only when the color H is located between the lower limit and the upper limit on the color wheel, otherwise the color is not corrected. If the color is corrected, the corrected color H1 is the color shifted from the color H toward the reference color when viewed from the color wheel, the shift angle of which is proportional to the difference between the color H and the reference color. In this case, the correction angle H1 may be quickly calculated by referring to a lookup table that defines the difference between the color H and the reference color and the moving angle with respect to the moving angle. Through this color correction, the color is closer to the reference color, so that an image having a vivid color can be obtained.

540단계에서 색상 수정 장치는 530단계에서 생성된 수정 색상(H1)이 색상환상에서 소정의 피부색 영역에 있으면, 이 수정 색상(H1)을 다시 수정함으로써 수정 피부 색상(H2)을 생성한다. 이 수정 피부 색상(H2)는 색상환에서 볼 때, 색상(H1)에서 입력된 색상(H)을 향하여 이동한 색상이다. 이는 피부색은 영상에 있어서 그 사용 빈도도 높고, 사용자가 출력된 영상의 품질을 판단하는데 민감하게 작용하므로, 피부의 색상을 원래 입력된 색상(H)에 더 가깝게 수정하기 위해서이다. 그리고 이러한 피부의 색상은 인종마다 다르므로 소정의 피부색 영역의 범위는 사용자에 의한 입력 및 변경이 가능하다.In operation 540, if the color H1 generated in operation 530 is in a predetermined skin color region in the color ring, the color correction apparatus generates the correction skin color H2 by correcting the correction color H1 again. This corrected skin color H2 is a color shifted toward the color H input from the color H1 when viewed from the color wheel. This is to correct the color of the skin closer to the original input color (H), because the skin color is frequently used in the image and the user is sensitive to judging the quality of the output image. And since the color of the skin is different for each race, the range of the predetermined skin color area can be input and changed by the user.

550단계에서 색상 수정 장치는 510단계에서 계산된 채도(S), 명도(V)와 530단계에서 생성된 수정 색상(H1) 및 540단계에서 생성된 수정 피부 색상(H2)에 대하여 HSV-RGB 변환을 수행함으로써 R'G'B'값을 계산하고, 계산된 값들에 따른 영상을 출력한다. 이 R', G' 및 B'는 입력된 영상에 대해 색상이 수정된 RGB 값이다.In step 550, the color correction apparatus converts HSV-RGB to the saturation (S), brightness (V) calculated in step 510, the corrected color (H1) generated in step 530, and the corrected skin color (H2) generated in step 540. By calculating the R'G'B 'value, and outputs an image according to the calculated values. These R ', G' and B 'are RGB values whose color is corrected for the input image.

본 발명은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장장치 등이 있으며, 또한 캐리어 웨이브(예를 들어 인터넷을 통한 전송)의 형태로 구현되는 것도 포함한다. 또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.The invention can also be embodied as computer readable code on a computer readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage, and the like, and may also be implemented in the form of a carrier wave (for example, transmission over the Internet). Include. The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion.

이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.So far I looked at the center of the preferred embodiment for the present invention. Those skilled in the art will appreciate that the present invention can be implemented in a modified form without departing from the essential features of the present invention. Therefore, the disclosed embodiments should be considered in descriptive sense only and not for purposes of limitation. The scope of the present invention is shown in the claims rather than the foregoing description, and all differences within the scope will be construed as being included in the present invention.

본 발명에 따르면, 색상 수정 방법은 입력 영상의 색상에 따라 색상 수정의 기준이 되는 색상인 기준 색상을 선택하고, 입력 영상의 색상을 색상환 선택된 기준 색상을 향하여 이동시켜서 상기 입력 영상의 색상을 수정함으로써, 입력 영상의 색상을 선명한 색상인 기준 색상에 근접하게 수정하여 선명한 색상을 가진 생동감 있는 영상을 제공하는 효과가 있다.According to the present invention, the color correction method selects a reference color, which is a color to be a color correction reference according to the color of the input image, and corrects the color of the input image by moving the color of the input image toward the selected reference color of the color wheel. In addition, the color of the input image is corrected to the reference color, which is a vivid color, to provide a vivid image with vivid colors.

또한, 본 발명에 따르면 수정된 색상이 피부색에 해당하면 이 수정 색상을 다시 수정하여 최초 입력된 영상의 색상에 가깝게 함으로써 선명하면서도 자연스러운 피부 색상을 가지는 영상을 제공하는 효과가 있다.In addition, according to the present invention, if the corrected color corresponds to the skin color, the corrected color is corrected again to be closer to the color of the first input image, thereby providing an image having a clear and natural skin color.

Claims (12)

(a) 입력 영상의 색상(H)을 이용하여 색상 수정의 기준이 되는 색상인 기준 색상을 선택하는 단계; 및(a) selecting a reference color which is a color used as a reference for color correction using the color H of the input image; And (b) 상기 입력 영상의 색상(H)을 색상환 상에서 상기 선택된 기준 색상을 향하여 이동시킴으로써 상기 입력 영상의 색상(H)을 수정하는 단계를 포함함을 특징으로 하는 색상 수정 방법.(b) modifying the color (H) of the input image by moving the color (H) of the input image toward the selected reference color on a color wheel. 제1 항에 있어서, 상기 (b) 단계는The method of claim 1, wherein step (b) 상기 선택된 기준 색상을 향하여, 상기 입력 영상의 색상(H)과 상기 획득된 기준 색상의 색상 차이에 비례하게 이동시킴으로써 상기 입력 영상의 색상(H)를 수정하는 것을 특징으로 하는 색상 수정 방법.And correcting the color (H) of the input image by shifting the color (H) of the input image in proportion to the color difference between the color (H) of the input image and the obtained reference color toward the selected reference color. 제2 항에 있어서, 상기 (b)단계는The method of claim 2, wherein step (b) 상기 입력 영상의 색상(H)을 색상환 상에서 상기 선택된 기준 색상을 향하여 소정의 룩업 테이블을 참조하여 이동시킴으로써 상기 입력 영상의 색상(H)를 수정하는 단계이고,Modifying the color H of the input image by moving the color H of the input image with reference to a predetermined lookup table toward the selected reference color on a color wheel, 상기 소정의 룩업 테이블은 상기 입력 영상의 색상(H)과 상기 선택된 기준 색상의 색상 차이에 따른 색상의 이동 각도를 규정하는 룩업 테이블인 것을 특징으로 하는 색상 수정 방법.And the predetermined lookup table is a lookup table that defines a moving angle of a color according to a color difference between the color H of the input image and the selected reference color. 제1 항에 있어서,According to claim 1, (c) 상기 입력 영상에 대하여 RGB-HSV 변환을 수행함으로써 상기 입력된 영상의 색상(H)를 계산하고, 상기 (a)단계를 수행하는 단계를 더 포함함을 특징으로 하는 색상 수정 방법.(c) calculating a color (H) of the input image by performing RGB-HSV conversion on the input image, and performing the step (a). 제2 항에 있어서,The method of claim 2, 상기 (a) 단계는 상기 기준 색상을 선택하는 것 외에, 색상 수정 범위의 하한 및 색상 수정 범위의 상한을 포함하는 소정의 정보를 획득하고,In addition to selecting the reference color, the step (a) obtains predetermined information including a lower limit of a color correction range and an upper limit of a color correction range, 상기 (b) 단계는 상기 입력 영상의 색상(H)이 상기 색상환 상에서 상기 획득된 하한 및 상기 획득된 상한 사이에 위치하는 경우에 한하여, 상기 입력 영상의 색상을 수정하는 단계인 것을 특징으로 하는 색상 수정 방법.In the step (b), the color of the input image is modified only when the color H of the input image is located between the acquired lower limit and the acquired upper limit on the color wheel. How to fix. 제1 항에 있어서,According to claim 1, (d) 상기 수정된 색상이 색상환 상에서 소정의 피부색에 해당하면, 상기 수정된 색상을 상기 입력 영상의 색상(H)를 향하여 이동시킴으로써 상기 수정된 색상을 다시 수정하는 단계를 더 포함함을 특징으로 하는 색상 수정 방법.(d) if the corrected color corresponds to a predetermined skin color on the color wheel, further comprising correcting the corrected color by moving the corrected color toward the color H of the input image. How to fix color. 입력 영상의 색상(H)을 이용하여 색상 수정의 기준이 되는 색상인 기준 색상을 선택하는 기준색상 선택부; 및A reference color selection unit that selects a reference color that is a color that is a color correction standard using the color H of the input image; And 상기 입력 영상의 색상(H)을 색상환 상에서 상기 선택된 기준 색상을 향하여 이동시킴으로써 상기 입력 영상의 색상(H)을 수정하는 색상 수정부를 포함함을 특징으로 하는 색상 수정 장치.And a color corrector configured to correct the color (H) of the input image by moving the color (H) of the input image toward the selected reference color on a color wheel. 제7 항에 있어서, 상기 색상 수정부는The method of claim 7, wherein the color correction unit 상기 선택된 기준 색상을 향하여, 상기 입력 영상의 색상(H)과 상기 획득된 기준 색상의 색상 차이에 비례하게 이동시킴으로써 상기 입력 영상의 색상(H)를 수정하는 것을 특징으로 하는 색상 수정 장치.And a color (H) of the input image by modifying the color (H) of the input image toward the selected reference color in proportion to a color difference between the color (H) of the input image and the obtained reference color. 제 8항에 있어서, 상기 색상 수정부는The method of claim 8, wherein the color correction unit 상기 입력 영상의 색상(H)을 색상환 상에서 상기 선택된 기준 색상을 향하여 소정의 룩업 테이블을 참조하여 이동시킴으로써 상기 입력 영상의 색상(H)를 수정하고,Modifying the color H of the input image by moving the color H of the input image with reference to a predetermined lookup table toward the selected reference color on a color wheel, 상기 소정의 룩업 테이블은 상기 입력 영상의 색상(H)과 상기 선택된 기준 색상의 색상 차이에 따른 색상의 이동 각도를 규정하는 룩업 테이블인 것을 특징으로 하는 색상 수정 장치.And the predetermined lookup table is a lookup table that defines a moving angle of a color according to a color difference between the color H of the input image and the selected reference color. 제8 항에 있어서,The method of claim 8, 상기 입력 영상에 대하여 RGB-HSV 변환을 수행함으로써 상기 입력 영상의 색상(H)를 계산하는 영상 변환부를 더 포함함을 특징으로 하는 색상 수정 장치.And an image converter configured to calculate a color (H) of the input image by performing RGB-HSV conversion on the input image. 제7 항에 있어서,The method of claim 7, wherein 상기 수정된 색상이 색상환 상에서 소정의 피부색에 해당하면, 상기 수정된 색상을 상기 입력 영상의 색상(H)를 향하여 이동시킴으로써 상기 수정된 색상을 다시 수정하는 피부 색상 수정부를 더 포함함을 특징으로 하는 색상 수정 장치.If the corrected color corresponds to a predetermined skin color on the color wheel, further comprising a skin color correction unit for modifying the corrected color again by moving the corrected color toward the color (H) of the input image Color correction device. 제1 항 내지 제6 항 중 어느 한 항의 색상 수정 방법을 실행하기 위한 프로그램이 기록된 컴퓨터로 읽을 수 있는 기록 매체.A computer-readable recording medium having recorded thereon a program for executing the color correction method according to any one of claims 1 to 6.
KR1020070006311A 2007-01-19 2007-01-19 Method and apparatus for color correction KR20080068477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020070006311A KR20080068477A (en) 2007-01-19 2007-01-19 Method and apparatus for color correction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020070006311A KR20080068477A (en) 2007-01-19 2007-01-19 Method and apparatus for color correction

Publications (1)

Publication Number Publication Date
KR20080068477A true KR20080068477A (en) 2008-07-23

Family

ID=39822288

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020070006311A KR20080068477A (en) 2007-01-19 2007-01-19 Method and apparatus for color correction

Country Status (1)

Country Link
KR (1) KR20080068477A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109166550A (en) * 2018-10-10 2019-01-08 惠科股份有限公司 The driving method and display device of display device
US10777151B2 (en) 2018-10-10 2020-09-15 HKC Corporation Limited Driving method of display device and display device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109166550A (en) * 2018-10-10 2019-01-08 惠科股份有限公司 The driving method and display device of display device
US10777151B2 (en) 2018-10-10 2020-09-15 HKC Corporation Limited Driving method of display device and display device

Similar Documents

Publication Publication Date Title
KR101977066B1 (en) Method for driving image and apparatus for driving image using the same
US9142187B2 (en) Semiconductor device, image processing system, and program
EP2949120B1 (en) Global display management based light modulation
JP5481021B2 (en) Heterogeneous color gamut mapping method and apparatus
JP4906627B2 (en) Image processing apparatus, image processing method, computer program, and storage medium
US8363125B2 (en) Image processing apparatus, image processing method, and computer program product
KR100916073B1 (en) Apparatus and method of stretching histogram for enhancing contrast of image
JP6797512B2 (en) Image display device and its control method
JP5897159B2 (en) Display device and control method thereof
KR101090060B1 (en) Image forming apparatus and image forming method capable of revising gray image
JP2004208311A (en) Chrominance signal correction apparatus and method, and video signal processing system and method using the same
KR20170074909A (en) METHOD AND DEVICE FOR DISPLAYING IMAGE BASED ON METADATA, AND RECORDING MEDIUM THEREFOR
US20070229682A1 (en) Imaging apparatus, video signal processing circuit, video signal processing method and computer program product
JP2006285206A (en) Apparatus and method for adjusting brightness
JP2007215216A (en) Monotonization processing of color image
US10249031B2 (en) Image processing apparatus, image processing method, program, and non-transitory computer-readable storage medium
US20050068587A1 (en) Monotone conversion process for color images
KR101426242B1 (en) Method and apparatus for converting gray level of color image
KR20080068477A (en) Method and apparatus for color correction
EP1315142B1 (en) Environment-adapted image display system and image processing method
JP2006033212A (en) Video signal processing apparatus and television apparatus
JP2008227959A (en) Image processing device, image processing method and image processing system
JP2008530952A (en) Color correction techniques for color profiles
JP2005198343A (en) Image display unit
KR20080010832A (en) Method and apparatus for adjusting chroma

Legal Events

Date Code Title Description
WITN Withdrawal due to no request for examination