KR102091641B1 - Method and apparatus for adjusting chroma in rgb color space - Google Patents

Method and apparatus for adjusting chroma in rgb color space Download PDF

Info

Publication number
KR102091641B1
KR102091641B1 KR1020140029021A KR20140029021A KR102091641B1 KR 102091641 B1 KR102091641 B1 KR 102091641B1 KR 1020140029021 A KR1020140029021 A KR 1020140029021A KR 20140029021 A KR20140029021 A KR 20140029021A KR 102091641 B1 KR102091641 B1 KR 102091641B1
Authority
KR
South Korea
Prior art keywords
data
color space
saturation
pixel
rgb color
Prior art date
Application number
KR1020140029021A
Other languages
Korean (ko)
Other versions
KR20150106666A (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 KR1020140029021A priority Critical patent/KR102091641B1/en
Publication of KR20150106666A publication Critical patent/KR20150106666A/en
Application granted granted Critical
Publication of KR102091641B1 publication Critical patent/KR102091641B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/68Circuits for processing colour signals for controlling the amplitude of colour signals, e.g. automatic chroma control circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Algebra (AREA)
  • Computational Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Analysis (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)

Abstract

RGB 색 공간에서 채도 조절 방법 및 장치가 제공된다. 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법은, RGB 색 공간에서 R, G, B 데이터를 획득하는 단계; 상기 R, G, B 데이터를 평균하여 평균치를 연산하는 단계; 및 상기 각각의 R, G, B 데이터와 상기 평균치를 기초로 가중 인자 α를 이용하여 채도 조절된 R, G, B 데이터를 산출하는 단계를 포함한다.A method and apparatus for adjusting saturation in an RGB color space is provided. A saturation control method in an RGB color space according to an embodiment of the present invention includes: obtaining R, G, and B data in an RGB color space; Calculating the average value by averaging the R, G, and B data; And calculating saturation-adjusted R, G, and B data using a weighting factor α based on the respective R, G, and B data and the average value.

Description

RGB 색 공간에서 채도 조절 방법 및 장치{METHOD AND APPARATUS FOR ADJUSTING CHROMA IN RGB COLOR SPACE}METHOD AND APPARATUS FOR ADJUSTING CHROMA IN RGB COLOR SPACE}

본 발명은 RGB 색 공간에서 채도 조절 방법 및 장치에 관한 것으로, 보다 상세하게는 HSI 색 공간 또는 YCbCr 색 공간으로의 변환과정 없이 RGB 색 공간에서 직접 R, G, B 데이터를 가지고 명도는 유지하면서, 채도를 조절할 수 있는 RGB 색 공간에서 채도 조절 방법 및 장치에 관한 것이다.The present invention relates to a method and apparatus for adjusting saturation in an RGB color space, and more specifically, while maintaining the brightness with R, G, B data directly in the RGB color space without conversion to an HSI color space or a YCbCr color space, A method and apparatus for adjusting saturation in an RGB color space capable of adjusting saturation.

카메라, 디스플레이(display) 등과 같은 영상 장치에 적용되는 일련의 color image processing(eg. Color complements, Tone and color correction, Smoothing, Histogram equalization, etc)이 존재한다. 그 중에 많이 사용되는 기능 중 하나는 영상의 채도(Chroma, Saturation)를 조절하는 기능이다.There is a series of color image processing (eg. Color complements, Tone and color correction, Smoothing, Histogram equalization, etc) applied to imaging devices such as cameras and displays. One of the frequently used functions is to adjust the saturation (Chroma, Saturation) of the image.

일반적으로, 채도(chroma) 조절은 HSI(Hue/Saturation/Intensity) 색 공간(color space) 또는 YCbCr(Luma component/Chrominance blue/Chrominance red) 색 공간(color space)에서 색(color) 성분에 해당하는 S(Saturation, 채도)와 Cb(blue-differnce, Chrominance blue)/Cr(red-difference, Chrominance red)을 조절하는 방식이었다.In general, the saturation (chroma) adjustment corresponds to a color component in the HSI (Hue / Saturation / Intensity) color space or YCbCr (Luma component / Chrominance blue / Chrominance red) color space. S (Saturation, saturation) and Cb (blue-differnce, Chrominance blue) / Cr (red-difference, Chrominance red) were controlled.

도 1은 HSI 색 공간을 도시한 도면이다.1 is a diagram showing an HSI color space.

도 1을 참조하면, HSI는 두 개의 원뿔을 상하로 붙여놓은 형태로 정의할 수 있다. 여기에서 색상(Hue)은 원형으로 정의되기 때문에 0~360도의 각도로 표현되며, 명도(Intensity)는 원뿔의 아래 꼭지점에서 최소값 0을 갖고, 위쪽 꼭지점에서 최대값 1을 갖는다. 채도(Saturation)는 명도를 고정하였을 때 나타나는 원형의 모양에서 원의 중심으로부터의 방사형으로 뻗어가는 거리로 표현하며 0~1사이의 값을 갖는다. 그리고, 0°~120°는 빨간색 계열(R)을 의미하고, 120°~ 240°는 녹색 계열(G), 240°~360°는 파란색 계열(B)을 의미한다. RGB를 HSI로 변환하는 경우 Hue(색상), Saturation(채도), Intensity(명도)의 변환 수식은 각각 아래의 수학식 1 내지 3과 같다.Referring to FIG. 1, HSI may be defined in a form in which two cones are pasted up and down. Since the color (Hue) is defined as a circle, it is expressed as an angle of 0 to 360 degrees, and the intensity (Intensity) has a minimum value of 0 at the lower vertex of the cone and a maximum value of 1 at the upper vertex. Saturation is expressed as the distance extending radially from the center of the circle in the shape of a circle that appears when the brightness is fixed, and has a value between 0 and 1. In addition, 0 ° to 120 ° means a red series (R), 120 ° to 240 ° means a green system (G), and 240 ° to 360 ° means a blue system (B). When RGB is converted to HSI, the conversion formulas of Hue (saturation), Saturation, and Intensity are as shown in Equations 1 to 3 below.

Figure 112014023949590-pat00001
Figure 112014023949590-pat00001

Figure 112014023949590-pat00002
Figure 112014023949590-pat00002

Figure 112014023949590-pat00003
Figure 112014023949590-pat00003

도 2는 YCbCr 색 공간을 도시한 도면이다. 또한, 도 3은 HSI 색 공간의 색(color)에 관한 정보인 채도(Saturation), 색상(Hue)와 YCbCr 색 공간의 색(color)에 관한 정보인 Chromaticity(Cb, Cr)의 관계를 도시한 도면이다.2 is a diagram illustrating a YCbCr color space. In addition, FIG. 3 shows the relationship between saturation (Hue), which is information about the color of the HSI color space, and Chromaticity (Cb, Cr), which is information about the color of the YCbCr color space. It is a drawing.

도 2를 참조하면, Y(Luminance), Cb(Chrominance blue), Cr(Chrominance red)을 3차원 그래프화하여 도시하였고, 아래의 수학식 4는 RGB를 YCbCr로 변환하는 경우, Y, Cb, Cr을 나타낸 것이다.Referring to FIG. 2, Y (Luminance), Cb (Chrominance blue), and Cr (Chrominance red) are illustrated by three-dimensional graphing, and Equation 4 below converts RGB to YCbCr, Y, Cb, Cr It shows.

Figure 112014023949590-pat00004
Figure 112014023949590-pat00004

여기에서, 도 3을 참조하면, HSI 색 공간(color space)의 색(color)에 관한 정보인 채도(Saturation) 및 색상(Hue)과, YCbCr 색 공간(color space)의 색(color)에 관한 정보인 Chromaticity(Cb, Cr)의 관계가 도시되어 있다.Here, referring to FIG. 3, Saturation and Hue, which are information on the color of the HSI color space, and the color of the YCbCr color space The relationship of information Chromaticity (Cb, Cr) is shown.

도 4는 종래의 일반적인 채도 조절 방식을 도시한 도면이다.4 is a view showing a conventional general saturation control method.

종래의 일반적인 채도 조절 방식은 HIS 또는 YCbCr 색 공간(color space)에서 S 또는 CbCr을 제어하여 조절하였다. 예를 들어, 도 4에 도시한 바와 같이, 입력된 영상(A1)에서 쉽게 접할 수 있는 RGB 색 공간(color space)에서 채도 조절이 필요한 경우, RGB 색 공간(color space)에서 HSI 또는 YCbCr 색 공간으로 변환하여(S1), 채도 조절을 한 후(S3), HSI 또는 YCbCr 색 공간에서 RGB 색 공간으로 변환(S5)하는 과정이 필요하다.Conventional general saturation control method was controlled by controlling S or CbCr in HIS or YCbCr color space. For example, as illustrated in FIG. 4, when saturation adjustment is required in the RGB color space easily accessible in the input image A1, HSI or YCbCr color space in the RGB color space After converting to (S1), after adjusting the saturation (S3), a process of converting from HSI or YCbCr color space to RGB color space (S5) is required.

그런데, 이러한 색 공간을 변환하는 과정에서, 정보의 손실이 발생하고, 연산량이 증가하는 문제가 불가피하므로, 이를 해결하기 위한 방안이 요구된다.However, in the process of converting such a color space, a loss of information occurs and a problem that an amount of computation increases is inevitable, so a method for solving this is required.

대한민국 공개특허 제2011-0047669호 (2011.05.09. 공개)Republic of Korea Patent Publication No. 2011-0047669 (2011.05.09. Published) 일본 공개특허 특개2002-330299호 (2002.11.15. 공개)Japanese Patent Application Publication No. 2002-330299 (November 15, 2002) 일본 공개특허 특개평8-275010호 (1996.10.18. 공개)Japanese Patent Application Publication No. 8-275010 (released on October 18, 1996)

본 발명은 상기 문제점을 해결하기 위한 것으로, 별도의 색 공간 변환 과정을 거치지 않고, RGB 색 공간에서 R/G/B 데이터를 이용하여 명암은 유지하면서 채도를 제어할 수 있는 RGB 색 공간에서 채도 조절 방법 및 장치를 제공한다.The present invention is to solve the above problem, without going through a separate color space conversion process, using the R / G / B data in the RGB color space, saturation adjustment in the RGB color space that can control the saturation while maintaining the contrast Methods and apparatus.

본 발명이 해결하고자 하는 과제들은 이상에서 언급한 과제들로 제한되지 않으며, 언급되지 않은 또 다른 과제들은 아래의 기재로부터 당업자에게 명확하게 이해될 수 있을 것이다.The problems to be solved by the present invention are not limited to the problems mentioned above, and other problems not mentioned will be clearly understood by those skilled in the art from the following description.

상기 과제를 달성하기 위한 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법은, RGB 색 공간에서 R, G, B 데이터를 획득하는 단계; 상기 R, G, B 데이터를 평균하여 평균치를 연산하는 단계; 및 상기 각각의 R, G, B 데이터와 상기 평균치를 기초로 가중 인자 α를 이용하여 채도 조절된 R, G, B 데이터를 산출하는 단계를 포함한다.A method for adjusting saturation in an RGB color space according to an embodiment of the present invention for achieving the above problems includes: obtaining R, G, and B data in an RGB color space; Calculating the average value by averaging the R, G, and B data; And calculating saturation-adjusted R, G, and B data using a weighting factor α based on the respective R, G, and B data and the average value.

상기 과제를 달성하기 위한 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 장치는, RGB 색 공간에서 R, G, B 데이터를 획득하는 데이터 획득부; 상기 R, G, B 데이터를 평균하여 평균치를 연산하는 평균치 연산부; 및 상기 각각의 R, G, B 데이터와 상기 평균치를 기초로 가중 인자 α를 이용하여 채도 조절된 R, G, B 데이터를 산출하는 데이터 보정부를 포함한다.A saturation control apparatus in an RGB color space according to an embodiment of the present invention for achieving the above object includes: a data acquisition unit that acquires R, G, and B data in an RGB color space; An average value calculating unit that averages the R, G, and B data to calculate an average value; And a data correction unit that calculates R, G, and B data that is saturated by using a weighting factor α based on the respective R, G, and B data and the average value.

본 발명의 기타 구체적인 사항들은 상세한 설명 및 도면들에 포함되어 있다.Other specific matters of the present invention are included in the detailed description and drawings.

본 발명에 따르면, HSI 색 공간 또는 YCbCr 색 공간으로의 변환과정 없이 RGB 색 공간에서 직접 R, G, B 데이터를 가지고 명도는 유지하면서, 채도를 조절할 수 있다.According to the present invention, the saturation can be adjusted while maintaining the brightness with R, G, and B data directly in the RGB color space without conversion to the HSI color space or YCbCr color space.

도 1은 HSI 색 공간을 도시한 도면이다.
도 2는 YCbCr 색 공간을 도시한 도면이다.
도 3은 HSI 색 공간의 색(color)에 관한 정보인 채도(Saturation), 색상(Hue)와 YCbCr 색 공간의 색(color)에 관한 정보인 Chromaticity(Cb, Cr)의 관계를 도시한 도면이다.
도 4는 종래의 일반적인 채도 조절 방식을 도시한 도면이다.
도 5는 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법의 순서도이다.
도 6은 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 장치의 구성도이다.
도 7a 내지 도 7g는 가중 인자 α를 점점 감소시키는 경우, 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법에 의한 영상을 도시한 도면이다.
도 8a 내지 도 8e는 가중 인자 α를 점점 증가시키는 경우, 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법에 의한 영상을 도시한 도면이다.
1 is a diagram showing an HSI color space.
2 is a diagram illustrating a YCbCr color space.
FIG. 3 is a diagram illustrating a relationship between saturation (Hue), which is information on the color of the HSI color space, and Chromaticity (Cb, Cr), which is information on the color of the YCbCr color space. .
4 is a view showing a conventional general saturation control method.
5 is a flowchart of a method for adjusting saturation in an RGB color space according to an embodiment of the present invention.
6 is a configuration diagram of a saturation control device in an RGB color space according to an embodiment of the present invention.
7A to 7G are diagrams illustrating an image by a saturation control method in an RGB color space according to an embodiment of the present invention when the weighting factor α is gradually decreased.
8A to 8E are views illustrating an image by a saturation control method in an RGB color space according to an embodiment of the present invention when the weighting factor α is gradually increased.

본 발명의 이점 및 특징, 그리고 그것들을 달성하는 방법은 첨부되는 도면과 함께 상세하게 후술되어 있는 실시예들을 참조하면 명확해질 것이다. 그러나 본 발명은 이하에서 개시되는 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 구현될 것이며, 단지 본 실시예들은 본 발명의 개시가 완전하도록 하며, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 발명의 범주를 완전하게 알려주기 위해 제공되는 것이며, 본 발명은 청구항의 범주에 의해 정의될 뿐이다. 명세서 전체에 걸쳐 동일 참조 부호는 동일 구성 요소를 지칭한다.Advantages and features of the present invention, and methods for achieving them will be clarified with reference to embodiments described below in detail together with the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below, but will be implemented in various different forms, and only the present embodiments allow the disclosure of the present invention to be complete, and the ordinary knowledge in the technical field to which the present invention pertains. It is provided to fully inform the holder of the scope of the invention, and the invention is only defined by the scope of the claims. The same reference numerals refer to the same components throughout the specification.

비록 제1, 제2 등이 다양한 소자, 구성요소 및/또는 섹션들을 서술하기 위해서 사용되나, 이들 소자, 구성요소 및/또는 섹션들은 이들 용어에 의해 제한되지 않음은 물론이다. 이들 용어들은 단지 하나의 소자, 구성요소 또는 섹션들을 다른 소자, 구성요소 또는 섹션들과 구별하기 위하여 사용하는 것이다. 따라서, 이하에서 언급되는 제1 소자, 제1 구성요소 또는 제1 섹션은 본 발명의 기술적 사상 내에서 제2 소자, 제2 구성요소 또는 제2 섹션일 수도 있음은 물론이다.Although the first, second, etc. are used to describe various elements, components and / or sections, it goes without saying that these elements, components and / or sections are not limited by these terms. These terms are only used to distinguish one element, component or section from another element, component or section. Accordingly, it goes without saying that the first element, the first component or the first section mentioned below may be the second element, the second component or the second section within the technical spirit of the present invention.

본 명세서에서 사용된 용어는 실시예들을 설명하기 위한 것이며 본 발명을 제한하고자 하는 것은 아니다. 본 명세서에서, 단수형은 문구에서 특별히 언급하지 않는 한 복수형도 포함한다. 명세서에서 사용되는 "포함한다(comprises)" 및/또는 "이루어지다(made of)"는 언급된 구성요소, 단계, 동작 및/또는 소자는 하나 이상의 다른 구성요소, 단계, 동작 및/또는 소자의 존재 또는 추가를 배제하지 않는다. The terminology used herein is for describing the embodiments and is not intended to limit the present invention. In this specification, the singular form also includes the plural form unless otherwise specified in the phrase. As used herein, "comprises" and / or "made of" mentioned components, steps, operations, and / or elements are those of one or more other components, steps, operations, and / or elements. Presence or addition is not excluded.

다른 정의가 없다면, 본 명세서에서 사용되는 모든 용어(기술 및 과학적 용어를 포함)는 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 공통적으로 이해될 수 있는 의미로 사용될 수 있을 것이다. 또 일반적으로 사용되는 사전에 정의되어 있는 용어들은 명백하게 특별히 정의되어 있지 않는 한 이상적으로 또는 과도하게 해석되지 않는다. Unless otherwise defined, all terms (including technical and scientific terms) used in the present specification may be used as meanings commonly understood by those skilled in the art to which the present invention pertains. In addition, terms defined in the commonly used dictionary are not ideally or excessively interpreted unless specifically defined.

이하, 본 발명에 대하여 첨부된 도면에 따라 보다 상세히 설명한다.Hereinafter, the present invention will be described in more detail according to the accompanying drawings.

도 5는 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법의 순서도이다.5 is a flowchart of a method for adjusting saturation in an RGB color space according to an embodiment of the present invention.

도 5를 참조하면, 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법은, RGB 색 공간에서 R, G, B 데이터를 획득하여(S10), 상기 R, G, B 데이터를 평균하여 평균치를 연산하고(S20), 상기 각각의 R, G, B 데이터와 상기 평균치를 기초로 가중 인자 α를 이용하여 채도 조절된 R, G, B 데이터를 산출한다(S30). 이때, 가중 인자(weighting factor) α는 R, G, B 데이터와 명도(brightness)를 선형적으로 연결하는 역할을 한다. 따라서, RGB 색 공간(color space)에서 R, G, B 값만을 가지고 색(color) 성분을 제어할 수 있게 된다. 또한, 가중 인자 α는 0에서 1 사이의 값을 가지는 것이 바람직하나, 이에만 제한되지 않고 사용자에 의해 소정의 값이 설정될 수 있음은 당업자에게 자명하다 할 것이다.5, the saturation control method in the RGB color space according to an embodiment of the present invention, by obtaining R, G, B data in the RGB color space (S10), by averaging the R, G, B data The average value is calculated (S20), and the saturation-adjusted R, G, and B data is calculated using the respective R, G, and B data and a weighting factor α based on the average value (S30). At this time, the weighting factor α serves to linearly connect the R, G, and B data and the brightness. Therefore, it is possible to control the color component with only R, G, and B values in the RGB color space. In addition, it is preferable that the weighting factor α has a value between 0 and 1, but it is not limited thereto, and it will be apparent to those skilled in the art that a predetermined value can be set by the user.

여기에서, R, G, B 데이터를 평균하여 평균치를 구함에 있어, 아래의 수학식 5를 이용할 수 있다.Here, in obtaining the average value by averaging R, G, and B data, Equation 5 below may be used.

Figure 112014023949590-pat00005
Figure 112014023949590-pat00005

상기 수학식 5는 전술하여 살펴 본 HSI 색 공간에서의 I(Intensity)와 동일하며, 명도(Brightness)를 나타낸다.Equation 5 is the same as I (Intensity) in the HSI color space as described above, and represents the brightness.

또한, 채도 조절된 R, G, B 데이터를 산출함에 있어, 아래의 수학식 6 내지 8을 이용할 수 있다.In addition, in calculating the saturation-adjusted R, G, and B data, Equations 6 to 8 below may be used.

Figure 112014023949590-pat00006
Figure 112014023949590-pat00006

Figure 112014023949590-pat00007
Figure 112014023949590-pat00007

Figure 112014023949590-pat00008
Figure 112014023949590-pat00008

여기에서, 상기

Figure 112014023949590-pat00009
,
Figure 112014023949590-pat00010
,
Figure 112014023949590-pat00011
는 각각 채도 조절된 R, G, B 데이터이며, 상기
Figure 112014023949590-pat00012
는 상기 수학식 5의 평균치를 의미한다. 즉, 상기
Figure 112014023949590-pat00013
,
Figure 112014023949590-pat00014
,
Figure 112014023949590-pat00015
는 각각 채도(Saturation) 및 Chromaticity가 조절된 후의 R, G, B 값을 나타낸다. 이때, 명도(Brightness)의 경우, 특별한 변환 과정 없이 R, G, B의 평균으로 간단하게 연산될 수 있는 점을 이용하였다.Here, above
Figure 112014023949590-pat00009
,
Figure 112014023949590-pat00010
,
Figure 112014023949590-pat00011
Are R, G, and B data with saturation adjusted, respectively.
Figure 112014023949590-pat00012
Means the average value of Equation 5 above. That said
Figure 112014023949590-pat00013
,
Figure 112014023949590-pat00014
,
Figure 112014023949590-pat00015
Indicates R, G, and B values after saturation and Chromaticity are adjusted, respectively. In this case, in the case of brightness, a point that can be simply calculated as the average of R, G, and B without using a special conversion process was used.

위의 세 수학식 6, 7, 8을 살펴 보면, 상수의 값에 따라 각 성분이 가지고 있는 색(color)에 대한 성분이 제어됨을 알 수 있다. 즉, 가중 인자 α는 R, G, B 성분과 평균치인 I를 linear하게 연결하는 weight역할을 한다. 따라서 가중 인자 α가 작아질수록 R, G, B에 적용되는 weight가 작아지고 I의 weight가 커지므로 색(color)성분이 줄어들고, 상대적으로 명암(Intensity) 성분이 증가하게 된다. 반면에, 가중 인자 α가 증가하면 R, G, B의 weight가 커지게 되어 색(color, chromaticity) 성분이 강하게 들어가게 된다.Looking at the above three equations 6, 7, and 8, it can be seen that the components for the color of each component are controlled according to the constant value. That is, the weighting factor α serves as a weight that linearly connects the R, G, and B components and the average I. Therefore, as the weighting factor α decreases, the weight applied to R, G, and B decreases and the weight of I increases, so the color component decreases and the intensity component increases relatively. On the other hand, as the weighting factor α increases, the weights of R, G, and B increase, and color and chromaticity components strongly enter.

가중 인자 α가 0이 된다면, R, G, B의 값은 모두 I로 수렴하여 색(color) 성분이 완전히 빠져 명도의 정보만 남게 되며, 반대로 가중 인자 α가 1이라면 R, G, B는 본래의 값을 갖게 된다. 결과적으로, R, G, B 색 공간에서 R, G, B 값만을 가지고 색(color) 성분을 제어할 수 있게 된다.If the weighting factor α becomes 0, the values of R, G, and B all converge to I, and the color component is completely missing, leaving only the information of brightness. Conversely, if the weighting factor α is 1, R, G, and B are inherently Will have the value of As a result, it is possible to control the color component with only R, G, and B values in the R, G, and B color spaces.

아래의 수학식 9는 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법으로 색(color, chroma) 성분을 제어한 후에도 제어하기 전후 명도(Brightness)의 변화는 생기지 않는 것을 나타낸다.Equation (9) below shows that there is no change in brightness before and after control even after controlling the color (chrom) component using the saturation control method in the RGB color space according to an embodiment of the present invention.

Figure 112014023949590-pat00016
Figure 112014023949590-pat00016

Figure 112014023949590-pat00017
Figure 112014023949590-pat00017

상기 수학식 9에서 증명된 바와 같이, 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법으로 색(color, chroma) 성분을 제어한 후에도 제어하기 전후 I값의 변화는 생기지 않음을 알 수 있다.As demonstrated in Equation 9 above, it can be seen that the change of the I value before and after the control does not occur even after controlling the color (chrom) component by the saturation adjustment method in the RGB color space according to an embodiment of the present invention. have.

도 6은 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 장치의 구성도이다.6 is a block diagram of an apparatus for adjusting saturation in an RGB color space according to an embodiment of the present invention.

도 6을 참조하면, 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 장치는, RGB 색 공간에서 R, G, B 데이터를 획득하는 데이터 획득부(10), 상기 R, G, B 데이터를 평균하여 평균치를 연산하는 평균치 연산부(20), 및 상기 각각의 R, G, B 데이터와 상기 평균치를 기초로 가중 인자 α를 이용하여 채도 조절된 R, G, B 데이터를 산출하는 데이터 보정부(30)를 포함한다.Referring to FIG. 6, the saturation adjusting device in the RGB color space according to an embodiment of the present invention includes a data acquisition unit 10 for acquiring R, G, and B data in the RGB color space, and the R, G, and B data An average value calculation unit 20 for calculating an average value by averaging, and a data correction unit for calculating saturation-controlled R, G, B data using a weighting factor α based on the respective R, G, B data and the average value 30.

데이터 획득부(10)에서 R, G, B 데이터를 획득하고, 평균치 연산부(20)에서 상기 수학식 5에 의해 평균치 I를 연산하고, 데이터 보정부(30)에서 상기 수학식 6 내지 8에 의해 채도 조절된 R, G, B 데이터인

Figure 112014023949590-pat00018
,
Figure 112014023949590-pat00019
,
Figure 112014023949590-pat00020
를 산출하게 된다. 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 장치의 구체적인 채도 조절 과정은 전술한 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법과 실질적으로 동일하므로 생략하도록 한다.The data acquisition unit 10 acquires R, G, and B data, and the average value calculation unit 20 calculates the average value I by Equation 5, and the data correction unit 30 by Equations 6 to 8 Saturation adjusted R, G, B data
Figure 112014023949590-pat00018
,
Figure 112014023949590-pat00019
,
Figure 112014023949590-pat00020
Will yield The specific saturation adjustment process of the saturation adjusting device in the RGB color space according to an embodiment of the present invention is substantially the same as the saturation adjustment method in the RGB color space according to an embodiment of the present invention, so it will be omitted.

도 7a 내지 도 7f는 가중 인자 α를 점점 감소시키는 경우, 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법에 의한 영상을 도시한 도면이다. 또한, 도 8a 내지 도 8e는 가중 인자 α를 점점 증가시키는 경우, 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법에 의한 영상을 도시한 도면이다.7A to 7F are views illustrating an image by a saturation control method in an RGB color space according to an embodiment of the present invention when the weighting factor α is gradually decreased. 8A to 8E are diagrams showing an image by a saturation control method in an RGB color space according to an embodiment of the present invention when the weighting factor α is gradually increased.

도 7a 내지 도 7f를 참조하면, 순서대로 원본 영상(도 7a) 및, 가중 인자 α가각각 1(도 7b), 0.8(도 7c), 0.5(도 7d), 0.3(도 7e), 0.1(도 7f), 0(도 7g) 일 때의 결과 영상이다. 도 7b는 가중 인자 α가 1이어서 원본 영상이 되며, 가중 인자 α가 감소될수록 색(color, chromaticity) 성분이 줄어들고, 명도 성분이 증가함을 알 수 있다.Referring to FIGS. 7A to 7F, the original images (FIG. 7A) and the weighting factors α are 1 (FIG. 7B), 0.8 (FIG. 7C), 0.5 (FIG. 7D), 0.3 (FIG. 7E), and 0.1 (in order) 7F) and 0 (FIG. 7G). It can be seen from FIG. 7B that the weighting factor α is 1, resulting in an original image, and as the weighting factor α decreases, a color (chromaticity) component decreases and a brightness component increases.

또한, 도 8a 내지 도 8e를 참조하면, 순서대로 원본 영상(도 8a) 및, 가중 인자 α가 각각 1.2(도 8b), 1.5(도 8c), 1.8(도 8d), 2.0(도 8e)일 때의 결과 영상이다. 가중 인자 α가 증가할수록, R, G, B의 weight가 커지게 되어 색(color, chromaticity) 성분이 강해짐을 알 수 있다.8A to 8E, the original images (FIG. 8A) and the weighting factor α in order are 1.2 (FIG. 8B), 1.5 (FIG. 8C), 1.8 (FIG. 8D), and 2.0 (FIG. 8E). It is the result video of the time. It can be seen that as the weighting factor α increases, the weights of R, G, and B increase, and color and chromaticity components become stronger.

따라서, 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법 및 장치를 통해, HSI 색 공간이나 YCbCr 색 공간으로의 변환과정을 거치지 않고, RGB 색 공간에서 직접 R, G, B 데이터를 채도를 조절할 수 있다. 이러한 RGB 색 공간에서 채도 조절은 모든 영상 시스템 내의 영상 처리 부분에서 사용될 수 있음은 당업자에게 자명하다 할 것이다. 예를 들어, 감시용 카메라, 스마트폰 등의 모바일 기기용 카메라, 캠코더 등 당업자가 채택 가능한 모든 영상 장치에서 적용될 수 있다 할 것이다.Accordingly, R, G, and B data are saturated directly in the RGB color space without undergoing a conversion process to an HSI color space or a YCbCr color space through a saturation adjustment method and apparatus in the RGB color space according to an embodiment of the present invention. Can be adjusted. It will be apparent to those skilled in the art that saturation adjustment in such an RGB color space can be used in the image processing portion in all imaging systems. For example, it can be applied to any video device that can be adopted by a person skilled in the art, such as a camera for surveillance, a camera for a mobile device such as a smartphone, and a camcorder.

한편, 본 발명의 일 실시예에 따른 RGB 색 공간에서 채도 조절 방법 및 장치는 소프트웨어 및 하드웨어에 의해 하나의 모듈로 구현 가능하며, 전술한 본 발명의 실시예들은 컴퓨터에서 실행될 수 있는 프로그램으로 작성 가능하고, 컴퓨터로 읽을 수 있는 기록매체를 이용하여 상기 프로그램을 동작시키는 범용 컴퓨터에서 구현될 수 있다. 상기 컴퓨터로 읽을 수 있는 기록매체는 롬(ROM), 플로피 디스크, 하드 디스크 등의 자기적 매체, CD, DVD 등의 광학적 매체 및 인터넷을 통한 전송과 같은 캐리어 웨이브와 같은 형태로 구현된다. 또한, 컴퓨터가 읽을 수 있는 기록매체는 네크워크로 연결된 컴퓨터 시스템에 분산되어 분산 방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다.On the other hand, the saturation control method and apparatus in the RGB color space according to an embodiment of the present invention can be implemented as one module by software and hardware, and the above-described embodiments of the present invention can be written as a program that can be executed on a computer And, it may be implemented in a general-purpose computer that operates the program using a computer-readable recording medium. The computer-readable recording medium is embodied in the form of a magnetic wave such as a ROM, floppy disk, or hard disk, an optical medium such as a CD or DVD, and a carrier wave such as transmission through the Internet. In addition, the computer-readable recording medium may be distributed over a networked computer system so that the computer-readable code is stored and executed in a distributed manner.

이상 첨부된 도면을 참조하여 본 발명의 실시예를 설명하였지만, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 본 발명이 그 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적이 아닌 것으로 이해해야만 한다.Although the embodiments of the present invention have been described with reference to the accompanying drawings, those skilled in the art to which the present invention pertains may implement the present invention in other specific forms without changing its technical spirit or essential features. You will understand. Therefore, it should be understood that the embodiments described above are illustrative in all respects and not restrictive.

10: 데이터 획득부
20: 평균치 연산부
30: 데이터 보정부
10: data acquisition unit
20: average value calculation unit
30: data correction unit

Claims (3)

RGB 색 공간에서 픽셀별 R, G, B 데이터를 획득하는 단계;
상기 픽셀별 R, G, B 데이터를 평균하여 픽셀별 평균치를 연산하는 단계; 및
가중 인자 α를 이용하여 상기 픽셀별 R, G, B 데이터와 상기 픽셀별 평균치 사이의 가중 평균을 계산함에 의해, 채도 조절된 픽셀별 R, G, B 데이터를 산출하는 단계를 포함하되,
상기 획득된 픽셀별 R, G, B 데이터의 평균과 상기 채도 조절된 픽셀별 R, G, B 데이터의 평균은 동일한, RGB 색 공간에서 채도 조절 방법.
Obtaining R, G, and B data for each pixel in the RGB color space;
Calculating the average value of each pixel by averaging the R, G, and B data for each pixel; And
Comprising the step of calculating the saturation-controlled R, G, B data by calculating a weighted average between the R, G, B data for each pixel and the average value for each pixel using a weighting factor α,
A method of adjusting saturation in an RGB color space, wherein the average of the obtained R, G, and B data for each pixel and the average of the adjusted R, G, and B data for each pixel are the same.
제 1항에 있어서,
상기 채도 조절된 픽셀별 R, G, B 데이터를 산출하는 단계는,
Figure 112020015225056-pat00021
,
Figure 112020015225056-pat00022
,
Figure 112020015225056-pat00023
에 의해 산출되며,
여기에서, 상기
Figure 112020015225056-pat00024
,
Figure 112020015225056-pat00025
,
Figure 112020015225056-pat00026
는 각각 채도 조절된 픽셀별 R, G, B 데이터이며, 상기 I는 상기 픽셀별 평균치인, RGB 색 공간에서 채도 조절 방법.
According to claim 1,
The calculating the R, G, and B data for each pixel of which the saturation is adjusted is,
Figure 112020015225056-pat00021
,
Figure 112020015225056-pat00022
,
Figure 112020015225056-pat00023
Is calculated by,
Here, above
Figure 112020015225056-pat00024
,
Figure 112020015225056-pat00025
,
Figure 112020015225056-pat00026
Is R, G, and B data for each saturation-adjusted pixel, wherein I is the average value for each pixel, and the saturation adjustment method in the RGB color space.
RGB 색 공간에서 픽셀별 R, G, B 데이터를 획득하는 데이터 획득부;
상기 픽셀별 R, G, B 데이터를 평균하여 픽셀별 평균치를 연산하는 평균치 연산부; 및
가중 인자 α를 이용하여 상기 픽셀별 R, G, B 데이터와 상기 픽셀별 평균치 사이의 가중 평균을 계산함에 의해, 채도 조절된 픽셀별 R, G, B 데이터를 산출하는 데이터 보정부를 포함하되,
상기 획득된 픽셀별 R, G, B 데이터의 평균과 상기 채도 조절된 픽셀별 R, G, B 데이터의 평균은 동일한, RGB 색 공간에서 채도 조절 장치.
A data acquisition unit that acquires R, G, and B data for each pixel in the RGB color space;
An average value calculating unit that averages the R, G, and B data for each pixel to calculate an average value for each pixel; And
A data correction unit for calculating R, G, and B data for each saturation-adjusted pixel by calculating a weighted average between the R, G, and B data for each pixel and the average value for each pixel using a weighting factor α,
The saturation adjustment device in the RGB color space, wherein the average of the obtained R, G, and B data for each pixel and the average of the saturation-adjusted R, G, and B data for each pixel are the same.
KR1020140029021A 2014-03-12 2014-03-12 Method and apparatus for adjusting chroma in rgb color space KR102091641B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020140029021A KR102091641B1 (en) 2014-03-12 2014-03-12 Method and apparatus for adjusting chroma in rgb color space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020140029021A KR102091641B1 (en) 2014-03-12 2014-03-12 Method and apparatus for adjusting chroma in rgb color space

Publications (2)

Publication Number Publication Date
KR20150106666A KR20150106666A (en) 2015-09-22
KR102091641B1 true KR102091641B1 (en) 2020-03-20

Family

ID=54245424

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020140029021A KR102091641B1 (en) 2014-03-12 2014-03-12 Method and apparatus for adjusting chroma in rgb color space

Country Status (1)

Country Link
KR (1) KR102091641B1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3360476B2 (en) 1995-03-30 2002-12-24 セイコーエプソン株式会社 Image processing method and apparatus
JPH11266369A (en) * 1998-03-17 1999-09-28 Fuji Photo Film Co Ltd Method for adjusting lightness of image and its device
JP2002330299A (en) 2001-05-01 2002-11-15 Seiko Epson Corp Image processor, image processing method, program and recording medium
KR101611907B1 (en) 2009-10-30 2016-04-12 엘지디스플레이 주식회사 Method and apparatus for correcting color of display device

Also Published As

Publication number Publication date
KR20150106666A (en) 2015-09-22

Similar Documents

Publication Publication Date Title
KR100983037B1 (en) Method for controlling auto white balance
US7697044B2 (en) Image processing apparatus and image processing method
US9997133B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP2015156615A (en) Image processing system, image processing method, control program, and recording medium
WO2013187133A1 (en) Image processing device and image processing method
US20130100310A1 (en) Image processing device, imaging device, and image processing program
WO2018100950A1 (en) Image processing device, digital camera, image processing program, and recording medium
US9053552B2 (en) Image processing apparatus, image processing method and non-transitory computer readable medium
JP2014220815A (en) Image color adjusting method and electronic device using the same
WO2012099165A1 (en) Image processing device, and image processing program product
WO2012153661A1 (en) Image correction device, image correction display device, image correction method, program, and recording medium
US20140292801A1 (en) Color signal processing method and apparatus, and storage medium for performing the method
KR102091641B1 (en) Method and apparatus for adjusting chroma in rgb color space
KR101874538B1 (en) Method and Apparatus for Processing Image to Simultaneously Enhance Contrast and Saturation of Image
JP6346431B2 (en) Image processing apparatus and image processing method
KR101180409B1 (en) Low illumination intensity image enhancement method and apparatus using histogram normalization and gamma correction
WO2012099013A1 (en) Image correction device, image correction display device, image correction method, program, and recording medium
US11580620B2 (en) Image processing apparatus, image processing method, and non-transitory computer-readable medium
JP2009296172A (en) Image processing apparatus, image capturing apparatus, method of controlling image processing apparatus, method of controlling image capturing apparatus, program, and recording medium
WO2006106750A1 (en) Image processing device, image processing method, and image processing program
JP6276564B2 (en) Image processing apparatus and image processing method
US9083919B2 (en) Method and apparatus for enhancing chroma of input image
US20140028871A1 (en) Image capturing apparatus, control method therefor, and non-transitory computer readable storage medium
EP2209298A1 (en) Method for adjusting white balance
KR20160025876A (en) Method and apparatus for intensificating contrast in image

Legal Events

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