KR20070068627A - Method and apparatus of color extraction for yuv data format - Google Patents

Method and apparatus of color extraction for yuv data format Download PDF

Info

Publication number
KR20070068627A
KR20070068627A KR1020050130464A KR20050130464A KR20070068627A KR 20070068627 A KR20070068627 A KR 20070068627A KR 1020050130464 A KR1020050130464 A KR 1020050130464A KR 20050130464 A KR20050130464 A KR 20050130464A KR 20070068627 A KR20070068627 A KR 20070068627A
Authority
KR
South Korea
Prior art keywords
component
color gamut
color
yuv
separated
Prior art date
Application number
KR1020050130464A
Other languages
Korean (ko)
Other versions
KR100817144B1 (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 KR1020050130464A priority Critical patent/KR100817144B1/en
Publication of KR20070068627A publication Critical patent/KR20070068627A/en
Application granted granted Critical
Publication of KR100817144B1 publication Critical patent/KR100817144B1/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

A method and an apparatus for extracting colors of a YUV image are provided to designate a correct color region with a simple circuit and small memory capacity and prevent a variation in a luminance component and image distortion. The positions of three vertexes composed of a U component corresponding to a difference between a luminance signal and a red component and a V component corresponding to a difference between the luminance signal and a blue component are designated to set a color region. U and V components are separated from inputted YUV data. It is determined whether the separated U and V components are included in the color region. When the separated U and V components are included in the color region, the U and V components are output. When the separated U and V components are not included in the color region, predetermined U and V components are output.

Description

YUV 방식에서의 색상 추출 방법 및 장치{Method and apparatus of color extraction for YUV data format} Method and apparatus for color extraction in the present method {Method and apparatus of color extraction for YUV data format}

도 1은 종래의 YUV 방식에서 색상을 추출하는 방법들을 도시한 그래프.1 is a graph illustrating methods for extracting color in a conventional YUV scheme.

도 2는 본 발명의 바람직한 제1 실시예에 따른 YUV 방식에서 색상을 추출하는 방법을 도시한 그래프.Figure 2 is a graph showing a method for extracting color in the YUV method according to a first embodiment of the present invention.

도 3은 본 발명의 바람직한 제1 실시예에 따른 YUV 방식에서 추출된 색상 영역을 확대한 그래프.3 is a graph showing an enlarged color gamut extracted by the YUV method according to the first embodiment of the present invention.

도 4는 본 발명의 바람직한 제2 실시예에 따른 YUV 방식에서 색상을 추출하는 방법을 도시한 그래프.Figure 4 is a graph showing a method for extracting color in the YUV method according to a second embodiment of the present invention.

도 5는 본 발명의 바람직한 제3 실시예에 따른 YUV 방식에서 색상을 추출하는 방법을 도시한 그래프.5 is a graph showing a method of extracting color in the YUV method according to a third embodiment of the present invention.

도6은 본 발명의 바람직한 제3 실시예에 따른 YUV 방식에서 추출된 색상 영역을 확대한 그래프.6 is an enlarged graph of the color gamut extracted by the YUV method according to the third embodiment of the present invention.

도 7은 본 발명의 바람직한 일 실시예에 따른 YUV 방식에서 추출된 색상 영역에 따라 색상을 표현하는 방법이 이루어지는 순서를 나타낸 순서도.7 is a flowchart illustrating a method of expressing a color according to a color gamut extracted in a YUV method according to an exemplary embodiment of the present invention.

도 8은 본 발명의 바람직한 일 실시예에 따른 YUV 방식에서의 색상 추출 장 치를 도시한 블록도.8 is a block diagram showing a color extraction device in a YUV method according to an embodiment of the present invention.

도 9는 본 발명의 바람직한 제3 실시에에 따른 YUV 방식에서의 색상 추출 장치를 구성하는 색상 영역 검출 논리부를 예시한 도면.9 is a diagram illustrating a color gamut detection logic that constitutes a color extraction device in a YUV system according to a third preferred embodiment of the present invention.

본 발명은 영상의 색상 추출에 관한 것으로서, 보다 상세하게는 YUV 방식에서의 색상 추출 방법 및 장치에 관한 것이다.The present invention relates to color extraction of an image, and more particularly, to a color extraction method and apparatus in the YUV method.

YUV 방식이란, TV, 컴퓨터, 휴대 단말 등의 다양한 디지털 장치의 디스플레이 화면에 색을 표현 방식으로서 현재 가장 널리 사용되는 방식이다. YUV는 휘도 신호(Y), 휘도 신호와 적색 성분의 차(U), 휘도 신호와 청색 성분의 차(V)의 3가지 정보로 색을 나타내는 형식이다. Y 성분은 오차에 민감하므로 색상 성분인 U와 V보다 많은 비트를 코딩하며, Y:U:V의 비율은 일반적으로 4:2:2이므로 YUV422로도 불리운다. 또한 적색 성분과 청색 성분을 이용하므로 색상을 지칭하는 Chroma와 합쳐져 Chroma Red, Chroma Blue의 약어을 이용하여 YcrCb로도 불리운다.The YUV method is the method most widely used as a method of expressing colors on display screens of various digital devices such as TVs, computers, and mobile terminals. YUV is a format in which color is represented by three pieces of information: a luminance signal Y, a difference U between a luminance signal and a red component, and a difference V between a luminance signal and a blue component. The Y component is sensitive to error, so it codes more bits than the color components U and V. The ratio Y: U: V is usually 4: 2: 2, so it is also called YUV422. In addition, since it uses the red component and the blue component, it is also referred to as YcrCb using the abbreviations of Chroma Red and Chroma Blue combined with Chroma, which refers to the color.

이러한 YUV 방식의 이미지나 영상 데이터에서 원하는 범위만을 설정하고 설정된 범위에서 색상을 추출하여 추출된 색상을 변환하는 작업이 색상을 보정하는 작업이나 크로마키 등의 특수 효과에 사용하기 위해 수행된다.The operation of setting only a desired range from the YUV-type image or image data and converting the extracted color by extracting a color from the set range is performed for correcting a color or for special effects such as chroma keys.

YUV 방식에서는 센서나 프로세서 등에서 생성된 YUV 방식의 이미지 또는 영 상 데이터에서 휘도와 색차를 분리하고 분리된 색차에서 색상을 추출하는 과정을 거쳐 색상의 변환 작업이 수행된다.In the YUV method, color conversion is performed by separating luminance and color differences from YUV-type image or image data generated by a sensor or a processor, and extracting colors from the separated color differences.

본 발명은 이러한 YUV 방식에서의 색상 추출 방법 및 장치에 관한 것으로서 종래의 색상 추출 방법에 대해 도 1을 참조하여 살펴본다.The present invention relates to a color extraction method and apparatus in such a YUV method with reference to Figure 1 with respect to the conventional color extraction method.

도 1은 종래의 YUV 방식에서 색상을 추출하는 방법들을 도시한 그래프이다.1 is a graph illustrating methods of extracting color in a conventional YUV method.

도 1에 도시된 바와 같이 종래의 YUV방식에서 휘도 신호와 적색 성분의 차(U), 휘도 신호와 청색 성분의 차(V)를 기준으로 하는 축을 중심으로 색상 영역을 선택한다.As shown in FIG. 1, a color gamut is selected based on an axis based on a difference U of a luminance signal and a red component and a difference V of a luminance signal and a blue component in the conventional YUV scheme.

색상 영역을 선택하고 선택된 색상 영역에서 색상을 추출하는 방법은 크게 3가지 방법이 있다.There are three ways to select a color gamut and extract colors from the selected color gamut.

먼저 방법 1은 도 1의 영역 1에 표시된 바와 같이, 각도 범위와 거리 범위를 지정하는 방법이다.First, Method 1 is a method of specifying an angular range and a distance range, as indicated by region 1 of FIG. 1.

이러한 방법은 정확한 범위를 지정할 수 있는 장점이 있는 반면 설계 회로가 복잡하고 지정되는 색상 영역의 크기가 비교적 큰 문제점이 있다.While this method has the advantage of specifying an accurate range, the design circuit is complicated and the size of the designated color gamut is relatively large.

방법 2는 도 1의 영역 2에 표시된 바와 같이, 색상 영역들을 직접 지정하는 방법이다.Method 2 is a method of directly specifying color regions, as indicated by region 2 of FIG. 1.

이 방법은 정확하면서도 다양한 범위를 지정할 수 있는 장점이 있는 반면 추출하는 색상 영역이 매우 작고 복잡한 설계 회로와 큰 용량의 메모리를 필요로 하는 단점이 있다.This method has the advantage of being able to specify a wide range while being accurate, with the disadvantage that the color gamut to extract is very small and requires complex design circuitry and large memory capacity.

방법 3은 도 1의 영역 3에 표시된 바와 같이, U와 V성분의 범위를 각각 지정 하는 방법이다.Method 3 is a method of designating a range of U and V components, respectively, as indicated by region 3 in FIG. 1.

이 방법은 설계가 간단하고 간단한 회로와 작은 메모리 용량으로도 구현이 가능한 장점이 있는 반면, 원하는 색상만을 추출하기 어려운 문제점이 있다.This method has the advantage of being simple to design, simple circuit and small memory capacity, but difficult to extract only the desired color.

이외에도 색상을 추출하는 다른 방법으로는 YUV 성분을 RGB로 변환하는 방법이 있다.Another way to extract color is to convert YUV components to RGB.

RGB란 빨간색(RED), 녹색(GREEN), 청색(BLUE)의 빛의 삼원색을 말하며 이 삼원색의 양을 조합하여 원하는 색을 얻는 방식이다.RGB refers to the three primary colors of red, green, and blue light, and combines the three primary colors to obtain a desired color.

그러나, 이 방법은 휘도 성분이 변화되고 회로의 크기가 커지며 출력된 이미지나 영상이 왜곡될 수 있는 문제점이 있다.However, this method has a problem that the luminance component is changed, the circuit size is increased, and the output image or image may be distorted.

따라서 종래의 YUV 방식에서는 색상을 추출하는 방법은 정확한 범위의 색상을 지정하여 추출할 수 있는 경우에는 회로가 복잡해지고 메모리의 용량이 증가하는 문제점이 있고, 회로가 단순하고 메모리의 용량이 작은 경우 정확한 범위의 색상을 지정하여 추출할 수 없는 문제점이 있다.Therefore, in the conventional YUV method, the color extraction method has a problem in that the circuit becomes complicated and the memory capacity increases when it is possible to designate and extract the correct range of colors, and when the circuit is simple and the memory capacity is small, There is a problem that can not be extracted by specifying the color of the range.

상기한 바와 같은 종래의 문제점을 해결하기 위해, 본 발명은 각도 범위와 거리를 지정하여 색상 영역을 설정하는 것과 같이 정확한 색상 영역을 지정할 수 있으면서도 간단한 회로와 메모리 용량이 적은 YUV 방식에서의 색상 추출 방법 및 장치를 제안하는 것이다.In order to solve the conventional problems as described above, the present invention is a color extraction method in the YUV method that can specify the exact color gamut, such as setting the color gamut by specifying the angular range and distance, but also has a simple circuit and low memory capacity. And an apparatus.

또한, 휘도 성분이 변화되고 출력된 이미지나 영상이 왜곡되지 않는 YUV 방 식에서의 색상 추출 방법 및 장치를 제안하는 것이다.In addition, the present invention proposes a color extraction method and apparatus in the YUV method in which the luminance component is changed and the output image or image is not distorted.

본 발명의 또 다른 목적들은 이하의 실시예에 대한 설명을 통해 쉽게 이해될 수 있을 것이다.Still other objects of the present invention will be readily understood through the following description of the embodiments.

상기한 바와 같은 목적을 달성하기 위해, 본 발명의 일 측면에 따르면 YUV 방식에서의 색상 추출 방법이 제공된다. In order to achieve the object as described above, according to an aspect of the present invention, a color extraction method in the YUV method is provided.

본 발명의 바람직한 일 실시예에 따르면, YUV 방식에서의 색상 추출 방법에 있어서, 휘도 신호와 적색 성분의 차이인 U성분과 휘도 신호와 청색 성분의 차이인 V성분으로 구성되는 3개의 꼭지점의 위치를 지정하여 색상 영역을 설정하는 단계(a); 입력된 YUV 방식의 데이터에서 U성분 및 V성분을 분리하는 단계(b); 및 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는지 판단하는 단계(c)를 포함하되, 상기 판단된 결과 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는 경우 상기 입력된 U성분과 V성분을 출력하고, 상기 설정된 색상 영역에 포함되지 않는 경우 미리 설정된 U성분 및 V성분을 출력하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 방법이 제공된다.According to a preferred embodiment of the present invention, in the color extraction method in the YUV method, the positions of three vertices composed of the U component that is the difference between the luminance signal and the red component and the V component that is the difference between the luminance signal and the blue component are determined. Designating and setting a color gamut; (B) separating the U component and the V component from the input YUV data; And (c) determining whether the separated U component and the V component are included in the set color gamut, and if the separated U component and V component are included in the set color gamut, the input is performed. A color extraction method in the YUV method is provided, characterized in that the outputted U component and V component are output, and the preset U component and V component are output when they are not included in the set color gamut.

본 발명의 바람직한 다른 실시예에 따르면, YUV 방식에서의 색상 추출 방법에 있어서, 휘도 신호와 적색 성분의 차이인 U성분과 휘도 신호와 청색 성분의 차이인 V성분으로 구성되는 3개의 꼭지점의 위치를 지정하여 색상 영역을 설정하는 단계(a); 입력된 YUV 방식의 데이터에서 U성분 및 V성분을 분리하는 단계(b); 및 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는지 판단하는 단계(c)를 포함하되, 상기 판단된 결과 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는 경우 미리 설정된 U성분 및 V성분을 출력하고, 상기 설정된 색상 영역에 포함되지 않는 경우 상기 입력된 U성분과 V성분을 출력하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 방법이 제공된다.According to another preferred embodiment of the present invention, in the color extraction method in the YUV method, the positions of three vertices composed of the U component that is the difference between the luminance signal and the red component and the V component that is the difference between the luminance signal and the blue component are determined. Designating and setting a color gamut; (B) separating the U component and the V component from the input YUV data; And determining (c) whether the separated U component and the V component are included in the set color gamut, and if the separated U component and V component are included in the set color gamut, A color extraction method in the YUV method is provided, characterized by outputting a U component and a V component, and outputting the input U component and the V component when the U component and the V component are not included in the set color gamut.

본 발명의 다른 측면에 의하면, YUV 방식에서의 색상 추출 장치가 제공된다.According to another aspect of the present invention, a color extraction apparatus in the YUV system is provided.

본 발명의 바람직한 일 실시예에 따르면, YUV 방식에서의 색상 추출 장치에 있어서, 휘도 신호와 적색 성분의 차이인 U성분과 휘도 신호와 청색 성분의 차이인 V성분으로 구성되는 3개의 꼭지점의 위치를 지정하여 색상 영역을 설정하는 색상 영역 설정부; YUV 방식의 데이터에서 U성분과 V성분을 분리하는 성분 분리부; 및 상기 분리된 U성분과 V성분이 상기 설정된 색상 영역에 포함되는지 여부를 판단하는 색상 영역 논리 검출부를 포함하되, 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는 경우 상기 분리된 U성분과 V성분을 출력하고, 상기 설정된 색상 영역에 포함되지 않는 경우 미리 설정된 U성분 및 V성분을 출력하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 장치가 제공된다.According to a preferred embodiment of the present invention, in the color extraction apparatus in the YUV method, the positions of the three vertices composed of the U component that is the difference between the luminance signal and the red component and the V component that is the difference between the luminance signal and the blue component A color gamut setting unit configured to set a color gamut; A component separator for separating the U component and the V component from the YUV data; And a color gamut logic detector configured to determine whether the separated U component and the V component are included in the set color gamut, and wherein the separated U component and the V component are included in the set color gamut. A color extraction apparatus in the YUV system is provided, wherein the component and the V component are output, and the preset U component and the V component are output when they are not included in the set color gamut.

본 발명의 바람직한 다른 실시예에 따르면, YUV 방식에서의 색상 추출 장치에 있어서, 휘도 신호와 적색 성분의 차이인 U성분과 휘도 신호와 청색 성분의 차이인 V성분으로 구성되는 3개의 꼭지점의 위치를 지정하여 색상 영역을 설정하는 색상 영역 설정부; YUV 방식의 데이터에서 U성분과 V성분을 분리하는 성분 분리부; 및 상기 분리된 U성분과 V성분이 상기 설정된 색상 영역에 포함되는지 여부를 판단 하는 색상 영역 논리 검출부를 포함하되, 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는 경우 미리 설정된 U성분 및 V성분을 출력하고, 상기 설정된 색상 영역에 포함되지 않는 경우 상기 분리된 U성분과 V성분을 출력하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 장치가 제공된다.According to another preferred embodiment of the present invention, in the color extraction apparatus in the YUV system, the positions of three vertices composed of the U component that is the difference between the luminance signal and the red component and the V component that is the difference between the luminance signal and the blue component are determined. A color gamut setting unit configured to set a color gamut; A component separator for separating the U component and the V component from the YUV data; And a color gamut logic detector configured to determine whether the separated U component and the V component are included in the set color gamut, and when the separated U component and V component are included in the set color gamut And outputting a V component and outputting the separated U component and the V component when the V component is not included in the set color gamut.

이하, 본 발명의 바람직한 실시예를 첨부한 도면들을 참조하여 상세히 설명하기로 한다. 본 발명을 설명함에 있어 전체적인 이해를 용이하게 하기 위하여 도면 번호에 상관없이 동일한 수단에 대해서는 동일한 참조 번호를 사용하기로 한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following description of the present invention, the same reference numerals will be used for the same means regardless of the reference numerals in order to facilitate the overall understanding.

도 2와 도 3을 참조하여 본 발명의 바람직한 제1 실시예에 따른 YUV 방식에서 색상을 추출하는 방법을 살펴본다.2 and 3, a method of extracting color in the YUV method according to the first preferred embodiment of the present invention will be described.

도 2는 본 발명의 바람직한 제1 실시예에 따른 YUV 방식에서 색상 영역을 선택하는 방법을 도시한 그래프이다.2 is a graph illustrating a method of selecting a color gamut in the YUV method according to the first embodiment of the present invention.

도 2에 도시된 바와 같이, 본 발명에 의한 YUV 방식에서 색상을 추출하기 위한 색상 영역은 UV영역에서 삼각형의 형태를 구성한다.As shown in Figure 2, the color gamut for extracting the color in the YUV method according to the present invention constitutes a triangle in the UV region.

삼각형의 색상 영역을 구성하는 3개 꼭지점은 각각 설정되며 한 개의 좌표로 설정될 수 있다.The three vertices that make up the color gamut of the triangle are set and can be set to one coordinate.

이러한 꼭지점의 위치와 순서를 구별하기 위한 방법은 다양한 방법이 가능하며, 예를 들면 포인트 1은 3개의 꼭지점 중 가장 윗쪽, 포인트 2는 3개의 꼭지점 중 가장 왼쪽, 포인트 3은 3개의 꼭지점 중 가장 오른쪽과 같은 방법에 의해 3개의 꼭지점의 구별이 가능하다.There are various ways to distinguish the positions and order of these vertices. For example, point 1 is the top of three vertices, point 2 is the leftmost of the three vertices, and point 3 is the rightmost of the three vertices. The three vertices can be distinguished by the same method.

또한, 본 발명에 의한 바람직한 일 실시예에 따른 색상 영역을 추출하는 방법에 따르면 삼각형 뿐만 아니라 두개의 삼각형으로 구성된 색상 영역을 결합하여 사각형의 형상을 가지는 색상 영역을 설정하는 것도 가능하며 꼭지점을 여러 개 지정하여 더욱 복잡한 형태의 다각형 형태의 색상 영역도 설정할 수 있음은 자명하다.In addition, according to the method of extracting a color gamut according to an exemplary embodiment of the present invention, it is also possible to set a color gamut having a rectangular shape by combining not only a triangle but also a color gamut composed of two triangles. It is obvious that a more complicated polygonal color gamut can be set.

예를 들어, 이러한 방법에 의해 설정된 꼭지점의 각각의 성분값을 간단히 표현하면 포인트 1에서의 U와 V값은 (U1, V1), 포인트 2에서의 U와 V값은 (U2, V2), 포인트 3에서의 U와 V값은 (U3, V3)으로 나타낼 수 있다. 이러한 3개의 꼭지점에 의해 생성된 삼각형의 영역이 색상 영역이 된다.For example, simply expressing each component value of a vertex set by this method, the U and V values at point 1 are (U1, V1), the U and V values at point 2 are (U2, V2), point The U and V values at 3 can be represented by (U3, V3). The area of the triangle created by these three vertices becomes the color gamut.

또한 사각형의 경우 꼭지점 두개를 동일하게 입력함으로써 결국 4개의 꼭지점으로 구성되는 사각형을 구성하는 색상 영역도 가능하다. 본 발명에 다른 일 실시예에 따라 사각형으로 구성되는 색상 영역의 설정에 대해서는 도 4에서 자세히 설명한다.In the case of a rectangle, two vertices are inputted in the same manner, and thus a color gamut constituting a rectangle composed of four vertices is also possible. According to another embodiment of the present invention, the setting of the color gamut consisting of rectangles will be described in detail with reference to FIG. 4.

색상 영역이라 함은 YUV 방식의 이미지 또는 영상 데이터에서 색보정이나 특수 효과 등을 위해 색상의 변화를 주거나 또는 주지 않는 영역을 말한다.The color gamut refers to an area that does or does not change color for color correction or special effects in YUV image or image data.

예를 들어 특수 효과에서 가장 널리 사용되고 있는 크로마키(Chroma-Key) 기법을 YUV 방식의 영상에 적용한다고 가정한다.For example, it is assumed that the chroma-key technique, which is widely used in special effects, is applied to YUV images.

크로마키 기법은 라이트블루의 스크린 앞에 인물이나 물체를 배치하고 카메라로 촬영하여 이 피사체상을 다른 화면에 끼워 맞추는 기법이다.Chroma key technique is a technique of placing a person or object in front of the screen of a light blue, shooting with a camera, and fitting this image to another screen.

이러한 크로마키 기법에서 예를 들어 촬상된 피사체의 색상은 그대로 유지하 고자 하는 경우 피사체 이미지를 구성하는 픽셀들의 각각의 색상 영역을 지정하고 이에 해당하지 않는 다른 부분들은 푸른색으로 변환 처리한다. 푸른색으로 지정된 부분은 다른 이미지 또는 영상 데이터 등으로 대체되어 새로운 이미지 또는 영상 데이터를 생성한다.In this chroma key technique, for example, if the color of the photographed subject is to be maintained, each color region of pixels constituting the subject image is designated, and other portions not corresponding to the same are converted into blue. The portion designated in blue is replaced with other image or image data to generate new image or image data.

도 3은 이러한 방법에 의해 YUV 방식에서 선택된 색상 영역을 확대한 그래프이다.3 is an enlarged graph of the color gamut selected in the YUV method by this method.

도 3에 도시된 바와 같이, 색상 영역을 구성하는 삼각형의 꼭지점의 3개 포인트는 포인트 1, 포인트 2 및 포인트 3으로 표시되며 3개의 꼭지점으로 구성된 내부 영역이 색상을 추출하는 유효 영역(Valid Region)이 된다.As shown in FIG. 3, the three points of the vertices of the triangle constituting the color gamut are represented by point 1, point 2 and point 3, and a valid region in which an inner region consisting of three vertices extracts color Becomes

3개의 꼭지점은 U와 V로 이루어진 2차원에서 각각 U와 V의 좌표값으로 표현 가능하다. 또한, 좀더 넓은 범위의 색상 영역을 설정하고자 하는 경우라면 삼각형으로 구성되는 색상 영역의 한 변이 중복되게 함으로써 사각형 형태의 색상 영역을 설정하는 것도 가능함은 전술한 바와 같다. 또한 꼭지점을 공유함으로써 사각형 이외의 다양한 형태의 다각형을 형성하여 색상 영역을 설정할 수도 있다. The three vertices can be represented by the coordinate values of U and V in two dimensions of U and V, respectively. In addition, in the case where a wider color gamut is to be set, it is also possible to set a rectangular color gamut by overlapping one side of a triangular color gamut. In addition, by sharing the vertices, it is possible to set the color gamut by forming polygons of various shapes other than quadrangles.

이하에서는 색상 영역을 2회 설정하여 사각형 형태의 색상 영역을 설정하는 방법에 대해 도 4를 참조하여 살펴본다.Hereinafter, a method of setting a rectangular color gamut by setting the color gamut twice will be described with reference to FIG. 4.

도 4는 본 발명의 바람직한 제2 실시예에 따른 YUV 방식에서 색상을 추출하는 방법을 도시한 그래프이다 .4 is a graph illustrating a method of extracting color in the YUV method according to the second embodiment of the present invention.

도 4에 도시된 바와 같이, 본 발명의 바람직한 다른 일 실시예에 따른 YUV 방식에서 색상을 추출하는 색상 영역은 사각형의 형태로 구성되는 색상 영역을 설 정할 수 있다.As shown in Figure 4, the color gamut for extracting the color in the YUV method according to another embodiment of the present invention may set a color gamut consisting of a rectangular shape.

먼저 삼각형을 구성하는 3개의 꼭지점의 좌표를 입력하여 색상 영역을 설정하고 다시 다른 삼각형의 꼭지점의 좌표를 입력하여 색상영역을 설정한다. 이 때 2회에 설정되는 삼각형의 꼭지점 중 2개의 꼭지점의 좌표를 동일한 좌표를 입력함으로써 설정되는 색상 영역은 사각형의 형태가 가능하다.First, set the color gamut by entering the coordinates of the three vertices that make up the triangle, and then set the color gamut by entering the coordinates of the vertices of the other triangles. At this time, the color gamut set by inputting the same coordinates of two vertices among the vertices of the triangle set twice can be in the form of a rectangle.

예를 들어, 먼저 설정되는 색상 영역을 구성하는 삼각형의 각각의 좌표를 포인트 1(3,7), 포인트 2(1,3), 포인트 3(6,5)라고 설정한 후 다음으로 설정하는 색상 영역을 구성하는 삼각형의 각각의 좌표를 포인트 1(6,5), 포인트 2(1,3), 포인트 3(4,2)로 설정한다. 이 경우 비록 2번의 색상 영역 설정을 위한 꼭지점의 위치를 지정하는 것이 필요하지만 먼저 입력된 포인트 3과 나중에 입력된 포인트 1 그리고 먼저 입력된 포인트 2와 나중에 입력된 포인트 2의 좌표가 동일하므로 결국 사각형 형태의 색상 영역이 설정되는 것이다.For example, the coordinates of triangles constituting the color gamut that is set first are set as point 1 (3,7), point 2 (1,3), and point 3 (6,5), and then color is set as the following. The coordinates of the triangles constituting the area are set to point 1 (6, 5), point 2 (1, 3), and point 3 (4, 2). In this case, although it is necessary to specify the position of the vertex for setting the second color gamut, the coordinates of the first point 3, the second point 1, and the second point 2 and the second point 2 are the same. The color gamut of is to be set.

이러한 색상 영역의 설정은 예시에 불과하며, 이러한 색상 영역 설정 과정을 여러 차레 반복 수행하여 다양한 다각형 형태의 색상 영역을 설정할 수 있음은 자명하다.The setting of the color gamut is merely an example, and it is obvious that various polygonal color gamuts can be set by repeatedly performing this color gamut setting process.

또한 꼭지점을 3개를 초과하여 지정함으로써 다양한 다각형의 형태로 본 발명에 따른 YUV 방식에서의 색상 추출도 가능하다.In addition, by specifying more than three vertices it is also possible to extract the color in the YUV method according to the present invention in the form of various polygons.

이하에서는 여러 다각형 중 사각형을 기준으로 본 발명에 따른 YUV 방식에서의 색상을 추출하는 방법에 대해 살펴 본다. Hereinafter, a method of extracting a color in the YUV method according to the present invention based on a quadrangle among various polygons will be described.

도 5는 본 발명의 바람직한 제3 실시예에 따른 YUV 방식에서 색상을 추출하 는 방법을 도시한 그래프이다.5 is a graph illustrating a method of extracting color in the YUV method according to a third embodiment of the present invention.

도 5에 도시된 본 발명에 의한 YUV 방식에서 색상을 추출하기 위한 색상 영역은 UV영역에서 사다리꼴 등의 사각형의 형태를 구성한다. The color gamut for extracting color in the YUV method according to the present invention shown in FIG. 5 constitutes a rectangular shape such as a trapezoid in the UV area.

사각형을 구성하는 각각의 변을 기준으로 각도 범위와 길이 범위를 지정하여 색상 영역의 범위를 정하는 것과 같이 정확한 색상 영역을 지정하기 위해 사각형의 형태는 바람직하게 원점을 기준으로 원점에 가까운 변의 길이가 맞은 편의 변의 길이보다 짧은 것이 바람직하다.In order to specify the correct color gamut, such as the range of color gamut by specifying the angular range and the length range based on each side constituting the rectangle, the shape of the rectangle is preferably the length of the side close to the origin with respect to the origin. It is preferable that it is shorter than the length of a side of a bias.

예를 들어, 이러한 방법에 의해 설정된 꼭지점의 각각의 성분값을 간단히 표현하면 포인트 1에서의 U와 V값은 (U1, V1), 포인트 2에서의 U와 V값은 (U2, V2), 포인트 3에서의 U와 V값은 (U3, V3), 포인트 4에서의 U와 V값은 (U4, V4)로 나타낼 수 있다. 이러한 4개의 꼭지점에 의해 생성된 사각형의 영역이 색상 영역이 된다.For example, simply expressing each component value of a vertex set by this method, the U and V values at point 1 are (U1, V1), the U and V values at point 2 are (U2, V2), point The U and V values at 3 can be represented as (U3, V3), and the U and V values at point 4 can be represented as (U4, V4). The area of the rectangle created by these four vertices becomes the color area.

또한 생성된 사각형에서 원점을 기준으로 포인트 2와 포인트 3으로 이루어지는 변의 길이가 포인트 1과 포인트 4로 이루어지는 변의 길이보다 짧으면 각도 범위와 거리 범위를 지정한 것과 동일하거나 불필요한 영역이 포함되지 않은 색상 영역을 지정할 수 있다.Also, in the generated rectangle, if the length of the sides consisting of points 2 and 3 from the origin is shorter than the length of the sides consisting of points 1 and 4, specify a color gamut that does not contain the same or unnecessary areas as specified by the angle range and distance range. Can be.

도6은 본 발명의 바람직한 제3 실시예에 따른 YUV 방식에서 추출된 색상 영역을 확대한 그래프로 색상영역을 구성하는 사각형의 꼭지점의 4개 포인트는 포인트 1, 포인트 2, 포인트 3 및 포인트 4로 구성되며 4개의 꼭지점으로 구성된 내부 영역이 색상을 추출하는 유효 영역(Valid Region)이 된다.6 is an enlarged graph of the color gamut extracted in the YUV method according to the third preferred embodiment of the present invention. An internal region consisting of four vertices becomes a valid region for extracting color.

이상의 실시예들은 예시에 불과하며 색상 영역을 구성하는 각각의 꼭지점들 을 지정하고 그 꼭지점들로 구성되는 삼각형 또는 사각형 등의 다각형을 색상 영역으로 지정하는 방법이라면 본 발명의 실시예에 포함될 수 있음은 자명하다.The above embodiments are merely examples, and if the method of designating each vertex constituting the color gamut and specifying a polygon such as a triangle or a square composed of the vertices as the color gamut may be included in an embodiment of the present invention, Self-explanatory

또한 상기한 바와 같이 선택된 유효 영역에서만 색을 추출하는 것도 가능하지만 유효 영역만을 제외한 영역에서 색상을 추출하는 방식도 가능하다.In addition, as described above, it is possible to extract the color only in the selected effective area, but it is also possible to extract the color in the area except the effective area.

이러한 색상 추출 과정을 도 7의 순서도를 참조하여 상세히 살펴본다.This color extraction process will be described in detail with reference to the flowchart of FIG. 7.

도 7은 본 발명의 바람직한 일 실시예에 따른 YUV 방식에서 추출된 색상 영역에 따라 색상을 표현하는 방법이 이루어지는 순서를 나타낸 순서도이다. 7 is a flowchart illustrating a method of expressing a color according to a color region extracted in a YUV method according to an exemplary embodiment of the present invention.

도 7은 삼각형을 기준으로 3개의 꼭지점을 지정하여 색상 영역을 선택하고 선택된 색상 영역에서 색상을 추출하는 경우를 예시한 것이다. FIG. 7 illustrates a case in which a color region is selected by designating three vertices based on a triangle, and a color is extracted from the selected color region.

도 7에 도시된 바와 같이, 먼저 3개의 꼭지점을 지정하여 색상 영역을 설정한다(S700).As shown in FIG. 7, first, three vertices are designated to set a color gamut (S700).

색상 보정이나 특수 효과로 처리하고자 하는 YUV 방식의 이미지 또는 영상 데이터에서 U 성분값과 V 성분값인 Uc값과 Vc값을 분리한다(S702).In the YUV image or image data to be processed by color correction or special effects, Uc and Vc values, which are U component values and V component values, are separated (S702).

분리된 Uc값과 Vc값을 이용하여 삼각형의 꼭지점을 구성하는 U값과 V값에 각각 비교하는 작업을 수행하여 분리된 Uc와 Vc값이 선택된 색상 영역 내에 존재하는지 판단한다(S704).The separated Uc and Vc values are respectively compared to the U and V values constituting the vertices of the triangle by using the separated Uc and Vc values to determine whether the separated Uc and Vc values exist in the selected color gamut (S704).

상기 판단 결과 분리된 Uc값과 Vc값이 선택된 색상 영역 내에 존재하는 경우 분리된 Uc값과 Vc값을 색상 처리부로 전송하여(S706) 특별한 연산 과정 없이 분리된 Uc값과 Vc값을 그대로 출력한다.As a result of the determination, when the separated Uc and Vc values exist in the selected color gamut, the separated Uc and Vc values are transmitted to the color processor (S706), and the separated Uc and Vc values are output as they are without a special calculation process.

반면 분리된 Uc값과 Vc값이 선택된 색상 영역 밖에 존재하는 경우 분리된 Uc값과 Vc값을 무채색 처리부로 전송하여(S708) 분리된 Uc값과 Vc값은 무채색을 나타내는 U값과 V값으로 변환된다.On the other hand, if the separated Uc and Vc values exist outside the selected color gamut, the separated Uc and Vc values are transmitted to the achromatic processing unit (S708), and the separated Uc and Vc values are converted into U and V values representing achromatic colors. do.

무채색으로 변환되어 표현되는 방식은 바람직하게는 예를 들면 (128,128)일 수 있다. (128,128)은 128비트*128비트로서 무채색들을 표현하는 방식으로 YUV 방식에서 무채색을 표현하기 위해 가장 널리 사용되는 방법이다.The manner of being converted to achromatic color can be preferably (128,128), for example. (128,128) is a 128-bit * 128-bit method that expresses achromatic colors. It is the most widely used method to express achromatic colors in the YUV method.

즉, 본 발명에 의한 색상 추출 방법에 의하면 추출하고자 하는 색상이 포함되는 색상 영역을 삼각형의 꼭지점 값으로 지정하여 입력하면 해당 꼭지점들로 구성된 삼각형의 영역 내의 색상이 입력되는 경우에는 해당 영상의 색상은 그대로 출력되지만 그 외의 영상은 무채색으로 변환되어 출력된다. 따라서 이러한 방법에 의해 영상이나 이미지 등에서 무채색으로 출력된 부분을 이용하여 색의 보정이나 크로마키와 같은 특수 효과에 이용할 수 있다.That is, according to the color extraction method according to the present invention, when a color region including a color to be extracted is designated as a vertex value of a triangle and inputted, when a color is input in the region of the triangle composed of the vertices, the color of the image is It is output as it is, but other images are converted to achromatic color and output. Therefore, this method can be used for special effects such as color correction or chroma key by using achromatic output portion of an image or image.

다만 도 7에서는 선택된 색상 영역 이외의 색상에 대해서는 명도와 채도만을 가지는 무채색으로 처리하는 것으로 도시하였으나 색보정이나 특수 효과 등의 목적에 따라 일정한 다른 색상을 지정하는 영역의 U값이나 V값으로 지정될 수 있음은 자명하다.In FIG. 7, colors other than the selected color gamut are treated as achromatic colors having only brightness and saturation, but may be designated as U values or V values of areas that specify a different color according to purposes such as color correction or special effects. It can be obvious.

이러한 방법에 의해 색상 추출이 수행되는 색상 추출 장치의 구성에 대해 도 8을 참조하여 살펴본다.A configuration of a color extraction apparatus in which color extraction is performed by this method will be described with reference to FIG. 8.

도 8은 본 발명의 바람직한 일 실시예에 따른 YUV 방식에서의 색상 추출 장치를 도시한 블록도이다.8 is a block diagram showing a color extraction apparatus in a YUV method according to an embodiment of the present invention.

도 8에 도시된 바와 같이, 본 발명의 바람직한 일 실시예에 따른 YUV 방식에서의 색상 추출 장치(800)는 색상 영역 설정부(810), 성분 분리부(820), 색상 영역 검출 논리부(830)를 포함할 수 있다. 색상 추출 장치(800) 내의 각 구성 요소는 소프트웨어 프로그램의 형태로 구현될 수 있음은 자명하다.As shown in FIG. 8, the color extraction apparatus 800 in the YUV method according to the exemplary embodiment of the present invention includes a color gamut setting unit 810, a component separator 820, and a color gamut detection logic unit 830. ) May be included. Obviously, each component in the color extraction apparatus 800 may be implemented in the form of a software program.

색상 영역 설정부(810)는 휘도 신호와 적색 성분의 차이인 U성분과 휘도 신호와 청색 성분의 차이인 V성분으로 꼭지점의 위치를 설정함으로써 색상 영역을 설정한다. 색상 영역을 설정하는 꼭지점의 위치는 사용자 색보정이나 특수 효과 등의 목적에 따라 입력하거나 미리 설정될 수 있다. The color gamut setting unit 810 sets the color gamut by setting positions of vertices to U components, which are the difference between the luminance signal and the red component, and V components, which are the difference between the luminance signal and the blue component. The position of the vertex for setting the color gamut may be input or preset according to a user color correction or a special effect.

U성분과 V성분으로 꼭지점의 위치를 설정하는 방법은 바람직하게는 U성분과 V성분을 축으로 하는 2차원상에서 U성분과 V성분을 각각 좌표로 이용하는 방법일 수 있다.The method of setting the positions of the vertices with the U component and the V component may be a method of using the U component and the V component as coordinates, respectively, on a two-dimensional image having the U component and the V component as axes.

성분 분리부(820)는 색보정이나 특수 효과 등을 처리할 YUV 방식의 이미지 또는 영상 데이터에서 휘도 신호와 적색 성분의 차이인 U 성분과 휘도 신호와 청색 성분의 차이인 V 성분을 분리한다.The component separator 820 separates the U component, which is the difference between the luminance signal and the red component, and the V component, which is the difference between the luminance signal and the blue component, from the YUV image or image data to process color correction or special effects.

색상 추출을 위해서 YUV 방식의 데이터에서 휘도 신호인 Y와 색차 신호인 UV를 먼저 분리하고 색차 신호인 UV에서 다시 U 및 V 성분으로 분리한다. 상기 성분 분리부(820)는 분리된 색차 신호인 UV에서 다시 U 및 V 성분을 분리하며 휘도 신호와 색차 신호를 분리하는 기능을 함께 수행할 수 있음은 자명하다.For color extraction, Y, which is a luminance signal, and UV, which is a chrominance signal, are first separated from YUV data, and then U and V components are separated from UV, which is a chrominance signal. It is apparent that the component separator 820 may perform the function of separating the U and V components again from the separated color difference signal UV and separating the luminance signal and the color difference signal.

색상 영역 검출 논리부(830)는 성분 분리부(820)에서 분리된 U성분과 V성분을 입력받아 색상 영역 설정부(810)에서 설정된 색상 영역에 포함되는지 여부를 판 단한다.The color gamut detection logic unit 830 receives the U component and the V component separated by the component separator 820 and determines whether the color gamut detection logic 830 is included in the color gamut set by the color gamut setting unit 810.

분리된 U 및 V성분이 설정된 색상 영역에 포함되는지 여부를 판단하는 방법은 다양하게 구현 가능하다.Various methods may be used to determine whether the separated U and V components are included in the set color gamut.

분리되어 입력된 U 및 V성분이 삼각형으로 설정된 색상 영역에서 포함되는지 여부를 판단하는 방법은 아래 수학식 1과 같이 간단한 수학식에 의해서도 가능하다.The method of determining whether the separately inputted U and V components are included in the color gamut set by the triangle may be performed by a simple equation as shown in Equation 1 below.

[수학식 1][Equation 1]

{(x3-x1)(y1-y2)-(y3-y1)(x1-x2)}{(u-x1)(y1-y2)-(v-y1)(x1-x2)}> 0{(x3-x1) (y1-y2)-(y3-y1) (x1-x2)} {(u-x1) (y1-y2)-(v-y1) (x1-x2)}> 0

andand

{(x1-x2)(y2-y3)-(y1-y2)(x2-x3)}{(u-x2)(y2-y3)-(v-y2)(x2-x3)}>0{(x1-x2) (y2-y3)-(y1-y2) (x2-x3)} {(u-x2) (y2-y3)-(v-y2) (x2-x3)}> 0

andand

{(x2-x3)(y3-y1)-(y2-y3)(x3-x1)}{(u-x3)(y3-y1)-(v-y3)(x3-x1)}>0{(x2-x3) (y3-y1)-(y2-y3) (x3-x1)} {(u-x3) (y3-y1)-(v-y3) (x3-x1)}> 0

상기 수학식에서 x1, y1은 삼각형을 구성하는 꼭지점 포인트 1의 U값과 V값을, x2, y2는 삼각형을 구성하는 꼭지점 포인트 2의 U값과 V값을 x3, y3은 삼각형을 구성하는 포인트 3의 U값과 V값을 각각 나타낸다.In the above equation, x1 and y1 are U and V values of vertex point 1 constituting the triangle, x2 and y2 are U values and V values of vertex point 2 constituting the triangle, and x3 and y3 are point 3 constituting the triangle. Denotes U and V values, respectively.

또한, u, v는 성분 분리부(520)에서 분리되어 색상 영역 검출 논리부(530)로 입력되는 U성분값 및 V성분값을 나타낸다.In addition, u and v represent U component values and V component values which are separated by the component separator 520 and input to the color gamut detection logic 530.

상기 수학식 1에 의한 연산 결과가 1이면 상기 삼각형 형태로 설정된 색상 영역의 내에 있는 것이고, 결과가 0이면 상기 삼각형 형태로 설정된 색상 영역의 밖에 값이 존재하는 하는 것이다.If the result of the calculation according to Equation 1 is 1, the result is within the color gamut set in the triangular form. If the result is 0, the value exists outside the color gamut set in the triangular form.

이러한 구성을 가지는 색상 영역 검출 논리부를 참조하면 나눗셈의 연산이나 참고표 등이 필요하지 않은 간단한 계산식으로 구성된다.Referring to the color gamut detection logic having such a configuration, it is composed of a simple calculation formula that does not require a division operation or a reference table.

또한 본 발명의 바람직한 제3 실시예에 의해 꼭지점을 4개를 지정하는 경우 색상 영역 검출 논리부의 구성예시를 도9를 참조하여 살펴본다.In addition, a configuration example of the color gamut detection logic unit when four vertices are designated according to the third preferred embodiment of the present invention will be described with reference to FIG.

도 9는 본 발명의 바람직한 제3 실시예에 따른 YUV 방식에서의 색상 추출 장치를 구성하는 색상 영역 검출 논리부(830)를 예시한 도면이다.9 is a diagram illustrating a color gamut detection logic unit 830 constituting a color extraction apparatus in a YUV system according to a third embodiment of the present invention.

도 9는 사각형을 기준으로 4개의 꼭지점을 지정하여 색상 영역을 선택하고 선택된 색상 영역에서 색상을 추출하는 경우를 예시한 것으로 이하의 설명에서는 입력되는 U 성분값과 V 성분값을 Uc와 Vc라 한다.FIG. 9 illustrates an example in which a color gamut is selected by specifying four vertices based on a rectangle and color is extracted from the selected color gamut. In the following description, the U component value and the V component value to be input are referred to as Uc and Vc. .

또한 전술한 예시와 같이 각각의 꼭지점에서 포인트 1은 4개의 꼭지점 중 가장 윗쪽, 포인트 2는 꼭지점 중 가장 왼쪽, 포인트 3은 4개의 꼭지점 중 가장 아래쪽, 포인트 4는 꼭지점 중 가장 오른쪽인 경우로 가정한다.Also, as in the above example, it is assumed that at each vertex, point 1 is the highest of four vertices, point 2 is the leftmost of the vertices, point 3 is the lowest of the four vertices, and point 4 is the rightmost of the vertices. .

설정된 꼭지점의 각각의 성분값은 포인트 1에서의 U와 V값은 (U1, V1), 포인트 2에서의 U와 V값은 (U2, V2), 포인트 3에서의 U와 V값은 (U3, V3), 포인트 4에서의 U와 V값은 (U4, V4)로 간단히 예시한다.Each component value of the set vertex is U and V at point 1 (U1, V1), U and V at point 2 is (U2, V2), and U and V at point 3 is (U3, V3), the U and V values at point 4 are simply illustrated as (U4, V4).

도 9에 도시된 바와 같이, 본 발명의 바람직한 일 실시예에 따른 YUV 방식에서 색상 추출하는 색상 영역 검출 논리부(830)는 비교부(900a, 900b), 최소 V값 설정부(910), 최대 V값 설정부(920), 조건적용부(930)를 포함할 수 있다.As shown in FIG. 9, the color gamut detection logic unit 830 for color extraction in the YUV method according to an exemplary embodiment of the present invention includes a comparator 900a and 900b, a minimum V value setting unit 910, and a maximum. The V value setting unit 920 and the condition applying unit 930 may be included.

무채색 처리부(940)와 색상 처리부(950)는 본 발명에 의한 색상 영역 검출 논리부(830)에 포함되지 않고 색상영역 검출 논리부(830)에서 신호를 수신하여 처리하는 별도의 회로 또는 장치로 구현될 수 있다. 물론, 무채색 처리부(940)와 색상 처리부(950)가 색상영역 검출 논리부(830)에 포함될 수도 있음은 자명하다.The achromatic processing unit 940 and the color processing unit 950 are not included in the color gamut detection logic unit 830 according to the present invention and implemented as separate circuits or devices that receive and process signals from the color gamut detection logic unit 830. Can be. Of course, the achromatic processing unit 940 and the color processing unit 950 may be included in the color gamut detection logic unit 830.

비교부(900a, 900b)는 하나 이상의 비교기(902)를 포함하며 비교부1(900a)은 꼭지점 4개의 U값과 YUV 방식의 데이터에서 분리된 U값을 비교하는 적어도 4개의 비교기를 포함한다.Comparators 900a and 900b include one or more comparators 902, and comparator 1 900a includes at least four comparators for comparing U values of four vertices and U values separated from YUV data.

비교기1(902a)은 꼭지점 1의 U값과, 비교기2(902b)는 꼭지점 2의 U값과, 비교기3(902c)은 꼭지점 3의 U값과, 비교기4(902d)는 꼭지점 4의 U값 각각에 대해 분리된 U값을 비교하는 기능을 수행한다. 비교부2(900b)도 비교기(902)를 포함하며 최대 V값과 최소 V값을 분리된 V값의 최대 조건 범위와 최소 조건 범위와 비교하는 적어도 2개의 비교기를 포함한다.Comparator 1 (902a) is the U value of vertex 1, Comparator 2 (902b) is the U value of vertex 2, Comparator 3 (902c) is the U value of vertex 3, and Comparator 4 (902d) is the U value of vertex 4 It compares the separated U values for each. Comparator 2 900b also includes a comparator 902 and includes at least two comparators for comparing the maximum and minimum V values with the maximum and minimum condition ranges of the separated V values.

비교기5(902e)는 최대 V값과 분리된 V값의 최대 조건 범위를 비교하고, 비교기6(902f)는 최소 V값과 분리된 V값의 최소 조건 범위를 비교한다. 최대 V값과 최소 V값은 색상 영역을 구성하는 꼭지점들의 좌표들의 위치에 따라 결정되며, 분리된 V값의 최대 조건 범위와 최소 조건 범위는 색상 영역을 구성하는 꼭지점들의 좌표들의 위치의 차이에 의해 결정된다.Comparator 5 902e compares the maximum condition value of the maximum V value and the separated V value, and comparator 6 902f compares the minimum condition value of the minimum V value and the separated V value. The maximum V and minimum V values are determined by the positions of the coordinates of the vertices constituting the color gamut, and the maximum and minimum condition ranges of the separated V values are determined by the difference in the positions of the coordinates of the vertices constituting the gamut. Is determined.

최소 V값 설정부(910)는 색상 영역을 구성하는 꼭지점들의 좌표들을 비교한 결과를 이용하여 색상 영역에서의 최소 V값을 설정하고 최대 V값 설정부(920)는 색상 영역을 구성하는 꼭지점들의 좌표들을 비교한 결과를 이용하여 색상 영역에서의 최대 V값을 설정한다.The minimum V value setting unit 910 sets the minimum V value in the color gamut using the result of comparing the coordinates of the vertices constituting the color gamut, and the maximum V value setting unit 920 sets the minimum V value of the vertices composing the gamut. The maximum V value in the color gamut is set using the result of comparing the coordinates.

조건적용부(930)는 분리되어 입력되는 V값의 최대 조건 범위와 최소 조건 범위를 설정한다. 조건적용부(930)는 분리되어 입력되는 V값인 Vc값과 최소 V 조건 설정부(910)와 최대 V 조건 설정부(920)에서 설정된 최대 또는 최소 V값에 따라 Vc값의 최대 조건 범위와 최소 조건 범위를 설정함으로써 Vc값이 선택된 색상영역 내에 존재하는지 판단할 수 있게 한다.The condition applying unit 930 sets the maximum condition range and the minimum condition range of the input V value separately. The condition applying unit 930 separates the maximum condition range and minimum of the Vc value according to the maximum or minimum V value set by the Vc value and the minimum V condition setting unit 910 and the maximum V condition setting unit 920 which are input separately. By setting the condition range, it is possible to determine whether the Vc value exists in the selected color gamut.

입력된 Uc값과 Vc값을 처리하는 회로를 수학식으로 나타내면 다음과 같이 수학식 2와 같이 나타낼 수 있다. A circuit for processing the input Uc and Vc values may be represented by Equation 2 as follows.

[수학식 2] [Equation 2]

(A) if Uc < U2 then (128, 128)(A) if Uc <U2 then (128, 128)

(B) if Uc < U4 then (128, 128)(B) if Uc <U4 then (128, 128)

(C) if Uc < U1 then Va = V2, Vb = V1, Ua = U1, Ub = U2(C) if Uc <U1 then Va = V2, Vb = V1, Ua = U1, Ub = U2

(D) if Uc > U1 then Va = V1, Vb = V2, Ua = U2, Ub = U1(D) if Uc> U1 then Va = V1, Vb = V2, Ua = U2, Ub = U1

(E) max_range = Ua - Ub(E) max_range = Ua-Ub

(F) MAX_V = Va*(Ua - Uc) + Vb*(Uc -Ub)(F) MAX_V = Va * (Ua-Uc) + Vb * (Uc -Ub)

(G) if Vc*max_range > MAX_V then (128,128)(G) if Vc * max_range> MAX_V then (128,128)

(H) if Uc < U3 then Va = V2, Vb = V3, Ua = U3, Ub = U2(H) if Uc <U3 then Va = V2, Vb = V3, Ua = U3, Ub = U2

(I) if Uc > U3 then Va = V3, Vb = V4, Ua = U4, Ub = U3(I) if Uc> U3 then Va = V3, Vb = V4, Ua = U4, Ub = U3

(J) min_range = Ua - Ub(J) min_range = Ua-Ub

(K) min_V = Va*(Ua - Uc) + Vb*(Uc - Ub)(K) min_V = Va * (Ua-Uc) + Vb * (Uc-Ub)

(L) if Vc*min_range < min_V then (128,128)(L) if Vc * min_range <min_V then (128,128)

즉 위의 계산식에 의해 Uc값과 Vc값이 설정된 색상 영역에 속하지 않는 경우라면 Uc, Vc값은 선택된 색상 영역인 사각형의 범위 내에 있는 영역으로 인식하여 Uc과 Vc이 각각 U값 및 V값으로 출력되도록 한다.In other words, if the Uc and Vc values do not belong to the set color area according to the above formula, the Uc and Vc values are recognized as the area within the rectangle, which is the selected color area, and Uc and Vc are output as U and Vc values, respectively. Be sure to

이러한 연산 과정을 예를 들어 설명한다.This calculation process will be described by way of example.

예를 들어 U값을 X축이라 하고, V값을 Y축이라고 하고, 각 꼭지점의 좌표를 포인트 1(3,6), 포인트 2(1,4) 포인트 3(2,1) 포인트 4(5,3)이라고 가정하면 사용자 미리 지정하거나 미리 설정된 포인트에 따라 색상 영역 설정부(510)에서 색상 영역을 설정한다.For example, the U value is called the X axis, the V value is called the Y axis, and the coordinates of each vertex are point 1 (3, 6), point 2 (1, 4) point 3 (2, 1) point 4 (5). 3), the color gamut setting unit 510 sets the color gamut according to a user predefined or preset point.

성분 분리부(520)에서 색보정이나 특수 효과 처리를 할 YUV 방식의 데이터에서 U값과 V값을 분리한다. 분리되어 입력되는 U값과 V값인 Uc, Vc값을 (4,3)이라고 가정하고 (4,3)이 설정된 색상 영역에 포함되는지 판단한다.The component separator 520 separates the U value and the V value from the YUV data to perform color correction or special effect processing. It is assumed that Uc and Vc, which are separately inputted U and V values, are (4, 3) and determine whether (4, 3) is included in the set color gamut.

먼저 Uc값을 꼭지점 1의 U값인 U1을 비교기1에서 각각 비교하면 U1보다 Uc가 크므로 최대 V값 설정부에서 Va = 6, Vb = 4, Ua = 1, Ub = 3로 설정되고(수학식 2의 (D)), 최대 V값은 MAX_V= 6*(1-4)+4*(4-3)으로 -14가 된다(수학식 2의 (F)).First, if Uc is compared to U1, which is the U value of vertex 1, in Comparator 1, Uc is larger than U1, so Va = 6, Vb = 4, Ua = 1, and Ub = 3 in the maximum V value setting unit (Equation 1) 2 (D)), the maximum V value becomes -14 with MAX_V = 6 * (1-4) + 4 * (4-3) (Equation 2 (F)).

최대 범위 조건은 max_range=1-3으로 -2가 되며(수학식 2의 (E)) 비교기5에서 Vc*-2는 -8로 MAX_V인 18보다 크므로(수학식 2의 (G)) 색상 처리부로 Uc, Vc를 전송한다.The maximum range condition is -2 with max_range = 1-3 ((E) in Equation 2) and Vc * -2 in comparator 5 is -8, which is greater than 18, which is MAX_V ((G) in Equation 2). Send Uc and Vc to the processor.

U2를 비교기2에서 Uc와 비교하면 U2<Uc이므로(수학식 2의 (A)) 색상 처리부 로 Uc, Vc를 전송한다.When U2 is compared with Uc in Comparator 2, U2 <Uc (Equation 2 (A)), so Uc and Vc are transmitted to the color processor.

U3을 비교기3에서 Uc와 비교하면 U3<Uc이므로 Va = 1, Vb = 3, Ua = 5, Ub = 2로 설정되고(수학식 2의 (I)) 최소 V값은 min_V= 1*(5-4)+3*(4-2)으로 7이 된다(수학식 2의 (K)).If U3 is compared with Uc in Comparator 3, U3 <Uc, so that Va = 1, Vb = 3, Ua = 5, Ub = 2 ((I) in Equation 2) and the minimum V value is min_V = 1 * (5 -4) + 3 * (4-2) becomes 7 ((K) in Equation 2).

최소 범위 조건은 min_range=5-2으로 3이 되며(수학식 2의 (J)) Vc*3는 9이므로 min_V인 7보다 크므로(수학식 2의 (L)) 색상 처리부로 Uc, Vc를 전송한다.The minimum range condition is 3 with min_range = 5-2 ((J) in Equation 2) and Vc * 3 is 9, so it is larger than 7, which is min_V ((L) in Equation 2). send.

U4를 비교기4에서 Uc와 비교하면 U4>Uc이므로(수학식 2의 (B)) 색상 처리부로 Uc, Vc를 전송한다. 따라서 상기 수학식 2에 의해 (4,3)은 포인트 1(3,6), 포인트 2(1,4) 포인트 3(2,1) 포인트 4(5,3)으로 설정된 색상 영역 내에 포함되는 것이다.When U4 is compared with Uc in comparator 4, U4 > Uc (Equation 2 (B)), so Uc and Vc are transmitted to the color processor. Therefore, according to Equation 2, (4,3) is included in the color gamut set to point 1 (3,6), point 2 (1,4), point 3 (2,1) and point 4 (5,3). .

따라서 이 경우 입력된 Uc와 Vc값 모두 무채색으로 변환되는 과정을 거치지 않고 입력된 Uc와 Vc값으로 출력되게 된다.Therefore, in this case, both the input Uc and Vc values are outputted as the input Uc and Vc values without undergoing a process of converting to achromatic color.

이러한 구성을 가지는 색상 영역 검출 논리부를 참조하면 곱셈기는 MAX_V와 min_V 연산에 필요한 각각 2개와 조건 적용부에서 적용되는 Vc*max_range와 Vc*min_range의 2개를 고려하면 모두 6개만 구비되면 충분하다.Referring to the color gamut detection logic having such a configuration, only six multipliers are needed considering two of each required for the MAX_V and min_V operations and two of the Vc * max_range and Vc * min_range applied to the condition applying unit.

각 곱셈기는 nxm 크기의 데이터를 처리할 수 있다. 여기서, n과 m은 8일 수 있다. 따라서 작은 연산 회로의 구성과 간단한 구성의 비교 회로를 포함하여 구성되므로 적은 비용으로도 정확한 색상 영역을 선택하여 지정하고 선택된 색상 영역에서 색상을 추출할 수 있는 색상 영역 검출 논리부를 구성할 수 있다.Each multiplier can process nxm data. Here, n and m may be 8. Therefore, since it is configured to include a comparison circuit of a small calculation circuit and a simple configuration, it is possible to configure a color gamut detection logic that can select and designate an accurate color gamut at a low cost and extract color from the selected color gamut.

이상의 예시에 의한 색상 영역을 추출하는 장치의 구성에 의하면 작은 연산 회로의 구성과 간단한 구성의 비교 회로를 포함하여 구성되므로 적은 비용으로도 정확한 색상 영역을 선택하여 지정하고 선택된 색상 영역에서 색상을 추출할 수 있는 색상 영역 검출 논리부를 구성할 수 있다.According to the configuration of the apparatus for extracting the color gamut according to the above example, it is configured to include a comparison circuit of a small computational circuit and a simple configuration, so that an accurate color gamut can be selected and designated at a low cost, and color can be extracted from the selected color gamut. Color gamut detection logic may be configured.

상기한 과정과 구성 요소의 구성 등은 색상 영역을 선택하고 입력된 U값과 V값을 이용하여 선택된 색상 영역에 U값과 V값이 존재하는 경우 해당 U값과 V값을 출력하게 하여 해당 색상을 추출하게 하는 방법이다.The above process and the configuration of the component is selected by selecting a color gamut and using the input U value and V value, if there is a U value and a V value in the selected color gamut, the corresponding U value and V value are outputted to the corresponding color. This is how you extract it.

그러나, 선택된 영역만의 색상을 변환하고 선택되지 않은 영역은 그대로 출력하게 하는 방법으로 색상을 추출하는 방법도 가능하며, 특히 크로마키 등의 특수 효과의 경우 선택된 영역만을 예를 들면 크로마키 기법에서 가장 널리 사용되는 청색으로 변환하여 청색으로 변환된 영역에 다른 영상을 합성하는 방법 등에 이용될 수 있다.However, it is also possible to extract the color by converting the color of the selected area and outputting the unselected area as it is.In particular, in the case of special effects such as chroma key, only the selected area is best used in the chroma key technique. The present invention may be used for a method of synthesizing another image in a region converted to blue by converting to blue, which is widely used.

상기한 본 발명의 바람직한 실시예는 예시의 목적을 위해 개시된 것이고, 본 발명에 대해 통상의 지식을 가진 당업자라면 본 발명의 사상과 범위 안에서 다양한 수정, 변경, 부가가 가능할 것이며, 이러한 수정, 변경 및 부가는 하기의 특허청구범위에 속하는 것으로 보아야 할 것이다.Preferred embodiments of the present invention described above are disclosed for purposes of illustration, and those skilled in the art will be able to make various modifications, changes, and additions within the spirit and scope of the present invention. Additions should be considered to be within the scope of the following claims.

이상에서 설명한 바와 같이, 본 발명에 의한 YUV 방식에서의 색상 추출 방법 및 장치에 의하면, 각도 범위와 거리를 지정하여 색상 영역을 설정하는 것과 같이 정확한 색상 영역을 지정할 수 있으면서도 간단한 회로와 메모리 용량이 적은 장점이 있다.As described above, according to the method and apparatus for color extraction in the YUV method according to the present invention, it is possible to specify an accurate color gamut, such as setting a color gamut by specifying an angle range and a distance, but with a simple circuit and a small memory capacity. There is an advantage.

또한, 휘도 성분이 변화되거나 출력된 이미지나 영상이 왜곡되지 않는 장점이 있다. In addition, there is an advantage that the luminance component is changed or the output image or image is not distorted.

Claims (16)

YUV 방식에서의 색상 추출 방법에 있어서,In the color extraction method in the YUV method, 휘도 신호와 적색 성분의 차이인 U성분과 휘도 신호와 청색 성분의 차이인 V성분으로 구성되는 적어도 3개의 꼭지점의 위치를 지정하여 색상 영역을 설정하는 단계(a);Setting a color gamut by specifying positions of at least three vertices composed of a U component that is a difference between the luminance signal and a red component and a V component that is a difference between the luminance signal and a blue component; 입력된 YUV 방식의 데이터에서 U성분 및 V성분을 분리하는 단계(b); 및(B) separating the U component and the V component from the input YUV data; And 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는지 판단하는 단계(c)를 포함하되,(C) determining whether the separated U and V components are included in the set color gamut, 상기 판단된 결과 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는 경우 상기 입력된 U성분과 V성분을 출력하고, 상기 설정된 색상 영역에 포함되지 않는 경우 미리 설정된 U성분 및 V성분을 출력하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 방법.The determined U component and the V component are output when the separated U component and the V component are included in the set color gamut, and the preset U component and V component are output when the separated U component and V component are not included in the set color gamut. Color extraction method in the YUV method characterized in that the output. YUV 방식에서의 색상 추출 방법에 있어서,In the color extraction method in the YUV method, 휘도 신호와 적색 성분의 차이인 U성분과 휘도 신호와 청색 성분의 차이인 V성분으로 구성되는 적어도 3개의 꼭지점의 위치를 지정하여 색상 영역을 설정하는 단계(a);Setting a color gamut by specifying positions of at least three vertices composed of a U component that is a difference between the luminance signal and a red component and a V component that is a difference between the luminance signal and a blue component; 입력된 YUV 방식의 데이터에서 U성분 및 V성분을 분리하는 단계(b); 및(B) separating the U component and the V component from the input YUV data; And 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는지 판단하는 단계(c)를 포함하되,(C) determining whether the separated U and V components are included in the set color gamut, 상기 판단된 결과 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는 경우 미리 설정된 U성분 및 V성분을 출력하고, 상기 설정된 색상 영역에 포함되지 않는 경우 상기 입력된 U성분과 V성분을 출력하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 방법.As a result of the determination, when the separated U component and the V component are included in the set color gamut, the preset U component and V component are output. When the separated U component and V component are not included in the set color gamut, the input U component and the V component are output. Color extraction method in the YUV method characterized in that the output. 제1항 또는 제2항에 있어서,The method according to claim 1 or 2, 상기 적어도 3개의 꼭지점으로 구성되는 다각형은 U성분과 V성분으로 구성되는 좌표의 원점을 기준으로 외변의 길이가 더 긴 다각형인 것을 특징으로 하는 YUV 방식에서의 색상 추출 방법. The polygon consisting of the at least three vertices is a polygon extraction method in the YUV method characterized in that the longer side of the polygon with respect to the origin of the coordinate consisting of the U component and the V component. 제1항 또는 제2항에 있어서,The method according to claim 1 or 2, 상기 적어도 3개의 꼭지점으로 구성되는 다각형은 4개의 꼭지점의 위치를 지정하여 구성되는 사각형이되, 상기 사각형은 U성분과 V성분으로 구성되는 좌표의 원점을 기준으로 외변의 길이가 더 긴 사각형인 것을 특징으로 하는 YUV 방식에서의 색상 추출 방법. The polygon consisting of the at least three vertices is a quadrangle configured by designating the positions of the four vertices, wherein the quadrangle is a quadrangle having a longer outer side based on the origin of the coordinates composed of the U component and the V component. Color extraction method in the YUV method characterized in that. 제1항 또는 제2항에 있어서,The method according to claim 1 or 2, 상기 단계(c)는,Step (c) is, 상기 분리된 U성분 및 V성분을 상기 꼭지점들의 위치를 지정하는 U성분 및 V성분과 각각 비교하여 상기 설정된 색상 영역에 포함되는지 여부를 판단하는 단계인 것을 특징으로 하는 YUV 방식에서의 색상 추출 방법.And comparing the separated U component and the V component with the U component and the V component designating the positions of the vertices, respectively, to determine whether the included U component and the V component are included in the set color gamut. 제1항 또는 제2항에 있어서,The method according to claim 1 or 2, 상기 미리 설정된 U성분 및 V성분은 무채색의 U성분 및 V성분인 것을 특징으로 하는 YUV 방식에서의 색상 추출 방법.The predetermined U component and the V component is a color extraction method in the YUV method, characterized in that the achromatic U component and V component. 제1항 또는 제2항에 있어서,The method according to claim 1 or 2, 상기 단계(c)는,Step (c) is, 상기 단계(a)를 적어도 2회 수행한 후 수행되는 것을 특징으로 하는 YUV 방식에서의 색상 추출 방법.Color extraction method in the YUV method, characterized in that performed after performing the step (a) at least twice. 제6항에 있어서,The method of claim 6, 상기 단계(a)를 2회 이상 수행함에 의해 , 두번째 이후 설정되는 색상 영역은 이미 존재하는 어느 하나의 색상 영역과 2 이상의 꼭지점을 공유하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 방법.By performing the step (a) two or more times, the color gamut set after the second is a color extraction method in the YUV method, characterized in that sharing two or more vertices with any one of the existing color gamut. YUV 방식에서의 색상 추출 장치에 있어서,In the color extraction apparatus in the YUV system, 휘도 신호와 적색 성분의 차이인 U성분과 휘도 신호와 청색 성분의 차이인 V성분으로 구성되는 3개의 꼭지점의 위치를 지정하여 색상 영역을 설정하는 색상 영역 설정부;A color gamut setting unit configured to set a color gamut by designating positions of three vertices including a U component that is a difference between the luminance signal and a red component and a V component that is a difference between the luminance signal and a blue component; YUV 방식의 데이터에서 U성분과 V성분을 분리하는 성분 분리부; 및A component separator for separating the U component and the V component from the YUV data; And 상기 분리된 U성분과 V성분이 상기 설정된 색상 영역에 포함되는지 여부를 판단하는 색상 영역 논리 검출부를 포함하되,A color gamut logic detector configured to determine whether the separated U and V components are included in the set color gamut; 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는 경우 상기 분리된 U성분과 V성분을 출력하고, 상기 설정된 색상 영역에 포함되지 않는 경우 미리 설정된 U성분 및 V성분을 출력하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 장치.Outputting the separated U component and the V component when the separated U component and the V component are included in the set color gamut, and outputting the preset U component and the V component when the separated U component and the V component are not included in the set color gamut Color extraction apparatus in the YUV system. YUV 방식에서의 색상 추출 장치에 있어서,In the color extraction apparatus in the YUV system, 휘도 신호와 적색 성분의 차이인 U성분과 휘도 신호와 청색 성분의 차이인 V 성분으로 구성되는 3개의 꼭지점의 위치를 지정하여 색상 영역을 설정하는 색상 영역 설정부;A color gamut setting unit configured to set a color gamut by designating positions of three vertices including a U component that is a difference between the luminance signal and a red component and a V component that is a difference between the luminance signal and a blue component; YUV 방식의 데이터에서 U성분과 V성분을 분리하는 성분 분리부; 및A component separator for separating the U component and the V component from the YUV data; And 상기 분리된 U성분과 V성분이 상기 설정된 색상 영역에 포함되는지 여부를 판단하는 색상 영역 논리 검출부를 포함하되,A color gamut logic detector configured to determine whether the separated U and V components are included in the set color gamut; 상기 분리된 U성분 및 V성분이 상기 설정된 색상 영역에 포함되는 경우 미리 설정된 U성분 및 V성분을 출력하고, 상기 설정된 색상 영역에 포함되지 않는 경우 상기 분리된 U성분과 V성분을 출력하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 장치.Outputting a predetermined U component and a V component when the separated U component and the V component are included in the set color gamut, and outputting the separated U component and V component when the separated U component and the V component are not included in the set color gamut Color extraction apparatus in the YUV system. 제9항 또는 제10항에 있어서,The method of claim 9 or 10, 상기 적어도 3개의 꼭지점으로 구성되는 다각형은 U성분과 V성분으로 구성되는 좌표의 원점을 기준으로 외변의 길이가 더 긴 다각형인 것을 특징으로 하는 YUV 방식에서의 색상 추출 장치. The polygon consisting of the at least three vertices is a color extraction device in the YUV method, characterized in that the longer side of the polygon with respect to the origin of the coordinates consisting of the U component and the V component. 제9항 또는 제10항에 있어서,The method of claim 9 or 10, 상기 적어도 3개의 꼭지점으로 구성되는 다각형은 4개의 꼭지점의 위치를 지정하여 구성되는 사각형이되, 상기 사각형은 U성분과 V성분으로 구성되는 좌표의 원점을 기준으로 외변의 길이가 더 긴 사각형인 것을 특징으로 하는 YUV 방식에서의 색상 추출 장치. The polygon consisting of the at least three vertices is a quadrangle configured by designating the positions of the four vertices, wherein the quadrangle is a quadrangle having a longer outer side based on the origin of the coordinates composed of the U component and the V component. Color extraction apparatus in the YUV system characterized in that. 제9항 또는 제10항에 있어서,The method of claim 9 or 10, 상기 색상 영역 검출 논리부는,The color gamut detection logic unit, 상기 분리된 U성분 및 V성분을 상기 꼭지점들의 위치를 지정하는 U성분 및 V성분과 각각 비교하여 상기 설정된 색상 영역에 포함되는지 여부를 판단하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 장치.And comparing the separated U component and the V component with the U component and the V component designating the positions of the vertices, respectively, to determine whether the included U component and the V component are included in the set color gamut. 제9항 또는 제10항에 있어서,The method of claim 9 or 10, 상기 미리 설정된 U성분 및 V성분은 무채색의 U성분 및 V성분인 것을 특징으로 하는 YUV 방식에서의 색상 추출 장치.The predetermined U component and the V component is a color extraction apparatus in the YUV system, characterized in that the achromatic U component and V component. 제9항 또는 제10항에 있어서,The method of claim 9 or 10, 상기 색상 영역 설정부는,The color gamut setting unit, 2회 이상 색상 영역을 설정하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 장치.Color extraction apparatus in the YUV method characterized in that the color gamut is set more than two times. 제15항에 있어서,The method of claim 15, 상기 색상 영역 설정부는,The color gamut setting unit, 상기 2회 이상 색상 영역을 설정함에 있어서, 두번째 이후 설정되는 색상 영역은 이미 존재하는 어느 하나의 색상 영역과 2 이상의 꼭지점을 공유하는 것을 특징으로 하는 YUV 방식에서의 색상 추출 장치.In setting the color gamut two or more times, the color gamut set after the second is a color extraction apparatus in the YUV method, characterized in that sharing the two or more vertices with any one of the existing color gamut.
KR1020050130464A 2005-12-27 2005-12-27 Method and apparatus of color extraction for YUV data format KR100817144B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020050130464A KR100817144B1 (en) 2005-12-27 2005-12-27 Method and apparatus of color extraction for YUV data format

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020050130464A KR100817144B1 (en) 2005-12-27 2005-12-27 Method and apparatus of color extraction for YUV data format

Publications (2)

Publication Number Publication Date
KR20070068627A true KR20070068627A (en) 2007-07-02
KR100817144B1 KR100817144B1 (en) 2008-03-27

Family

ID=38504506

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020050130464A KR100817144B1 (en) 2005-12-27 2005-12-27 Method and apparatus of color extraction for YUV data format

Country Status (1)

Country Link
KR (1) KR100817144B1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08102958A (en) * 1994-09-30 1996-04-16 Sony Corp Specific hue detection circuit
JP2001128189A (en) 1999-10-26 2001-05-11 Victor Co Of Japan Ltd Color correcting circuit
JP2002369215A (en) * 2001-06-04 2002-12-20 Sony Corp Image processing equipment and method of processing image, recording medium, and program
JP2003125226A (en) 2001-10-18 2003-04-25 Seiko Epson Corp Color conversion method, color converter, and color conversion processing program
JP4042736B2 (en) 2004-02-19 2008-02-06 ソニー株式会社 Image processing apparatus and image processing method

Also Published As

Publication number Publication date
KR100817144B1 (en) 2008-03-27

Similar Documents

Publication Publication Date Title
US10319085B2 (en) Metadata-based image processing method and apparatus
US9472162B2 (en) Method of mapping source colors from a source color gamut into a target color gamut
CN110865856B (en) Interface element color display method and device
KR101927968B1 (en) METHOD AND DEVICE FOR DISPLAYING IMAGE BASED ON METADATA, AND RECORDING MEDIUM THEREFOR
US7301573B2 (en) Apparatus for and method of edge enhancement in image processing
US9307213B2 (en) Robust selection and weighting for gray patch automatic white balancing
US20200314402A1 (en) Image processing method and device for auto white balance
KR101985880B1 (en) Display device and control method thereof
WO2000052938A1 (en) Method of selective color control of digital video images
CN1655626B (en) System and method for clipping values of pixels
US20230086775A1 (en) Efficient and flexible color processor
KR20070082727A (en) Apparatus for gamut mapping and method for generating gamut boundary using the same
US8373718B2 (en) Method and system for color enhancement with color volume adjustment and variable shift along luminance axis
CN107295255B (en) Shooting mode determining method and device and terminal
EP3437066A1 (en) Method for detection of saturated pixels in an image
KR100817144B1 (en) Method and apparatus of color extraction for YUV data format
KR102160247B1 (en) Electronic apparatus and Method for controlling the electronic apparatus thereof
JP4528805B2 (en) Image forming apparatus, image processing method, and image processing program
JP2002335536A (en) Luminance adjusting device and its operation control method
JP5026731B2 (en) On-screen display translucent realization apparatus, realization system and realization method
US10455125B2 (en) Image processing method and device
JP4137779B2 (en) Video signal processing apparatus and electronic apparatus
KR101212026B1 (en) Apparatus and method for adaptively compositing image using chroma key
KR100771618B1 (en) Apparatus and Method for Mediation Color
JP6403811B2 (en) Image processing apparatus and program

Legal Events

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

Payment date: 20130221

Year of fee payment: 6

FPAY Annual fee payment

Payment date: 20140303

Year of fee payment: 7

FPAY Annual fee payment

Payment date: 20150302

Year of fee payment: 8

FPAY Annual fee payment

Payment date: 20180226

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20190225

Year of fee payment: 12