KR102017290B1 - Apparatus for changing color and operating method thereof - Google Patents

Apparatus for changing color and operating method thereof Download PDF

Info

Publication number
KR102017290B1
KR102017290B1 KR1020180056638A KR20180056638A KR102017290B1 KR 102017290 B1 KR102017290 B1 KR 102017290B1 KR 1020180056638 A KR1020180056638 A KR 1020180056638A KR 20180056638 A KR20180056638 A KR 20180056638A KR 102017290 B1 KR102017290 B1 KR 102017290B1
Authority
KR
South Korea
Prior art keywords
color
range
value
color range
pixel
Prior art date
Application number
KR1020180056638A
Other languages
Korean (ko)
Inventor
김기홍
Original Assignee
주식회사 한글과컴퓨터
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 주식회사 한글과컴퓨터 filed Critical 주식회사 한글과컴퓨터
Priority to KR1020180056638A priority Critical patent/KR102017290B1/en
Application granted granted Critical
Publication of KR102017290B1 publication Critical patent/KR102017290B1/en

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

According to the present invention, an apparatus for transforming a color and an operation method thereof may process color transformation of a digital image with high speed without transforming a color of a digital image into a LAB value by selecting a color range corresponding to a type of a color transforming instruction of the N number of color ranges and changing a color range value of a color range selected based on the color transforming instruction when the color transforming instruction is inputted.

Description

색상 변환 장치 및 이의 동작 방법{APPARATUS FOR CHANGING COLOR AND OPERATING METHOD THEREOF}Color converting device and its operation method {APPARATUS FOR CHANGING COLOR AND OPERATING METHOD THEREOF}

본 발명은 색상 변환 장치 및 이의 동작 방법에 대한 것이다.The present invention relates to a color conversion apparatus and its operation method.

최근에는 다양한 장치에서 컬러 디지털 이미지를 생성하거나 출력하고 있다. 그런데 이러한 장치들은 모두 장치적인 특성으로 인해 같은 색의 디지털 이미지를 생성하거나 출력하는 경우에도 장치에 따라 다른 색을 출력하는 문제점이 있다. 이러한 문제점을 해결하고 정확한 색상에 대한 요구가 증가되면서, 정확한 컬러를 이용하기 위한 컬러엔진이 개발되어 이용되고 있다.Recently, various devices generate or output color digital images. However, all of these devices have a problem of outputting different colors depending on the device even when generating or outputting a digital image of the same color due to the device characteristics. As the problem is solved and the demand for accurate colors is increased, a color engine for using accurate colors has been developed and used.

일반적인 컬러엔진은 16억 개 이상의 색상을 구분할 수 있는 3차원 형태의 LAB(CIE LAB 색공간)을 이용하여 이미지의 색상을 원래의 색상으로 변환한다. 이러한 LAB를 이용하는 컬러엔진은 디지털 이미지의 색상을 ICC 프로파일을 이용하여 LAB 값으로 변환하고, 다시 이를 사용할 색상 값으로 변환하며, 색상 공간을 매핑하는 방식으로 색상 변환 작업을 처리한다.A typical color engine converts the color of an image to its original color using a three-dimensional LAB (CIE LAB color space) that can distinguish more than 1.6 billion colors. The color engine using the LAB converts the color of the digital image into the LAB value using the ICC profile, converts it to the color value to be used, and processes the color conversion by mapping the color space.

이러한 과정에서는 3차원 매핑과 같은 복잡한 연산 작업을 거치게 되어, 디지털 이미지의 색상 변환에 오랜 시간이 소요되고, 장치의 고성능을 요구하는 문제점이 있다.In this process, a complex computation task such as three-dimensional mapping is required, which takes a long time for color conversion of a digital image, and requires a high performance of the device.

따라서, 디지털 이미지의 색상 변환을 고속으로 처리할 수 있는 알고리즘에 대한 연구가 필요하다.Therefore, there is a need for a study of an algorithm capable of processing color conversion of a digital image at high speed.

본 발명에 따른 색상 변환 장치 및 이의 동작 방법은 색상 변환 명령이 입력되면, 상기 N개의 색상 범위 중 상기 색상 변환 명령의 종류에 상응하는 색상 범위를 선택한 후 상기 색상 변환 변경 명령에 기초하여 상기 선택된 색상 범위의 색상 범위 값을 변경함으로써, LAB 값으로 변환하지 않으면서도, 디지털 이미지의 색상 변환을 고속으로 처리하고자 한다.In the color conversion apparatus and its operation method according to the present invention, when a color conversion command is input, a color range corresponding to the type of the color conversion command is selected from the N color ranges, and then the selected color is based on the color conversion change command. By changing the color range value of a range, one wants to process color conversion of a digital image at high speed without converting it to a LAB value.

본 발명의 일실시예에 따른 색상 변환 장치는 픽셀의 N - 상기 N은 3 이상의 정수임 - 개의 색상 성분들 각각의 색상 값에 기초하여, 상기 N개의 색상 성분들이 가질 수 있는 색상 값의 범위를 N개의 색상 범위로 구분하는 색상 범위 구분부, 색상 변환 명령이 입력되면, 상기 N개의 색상 범위 중 상기 색상 변환 명령의 종류에 상응하는 색상 범위를 선택한 후 상기 색상 변환 변경 명령에 기초하여 상기 선택된 색상 범위의 색상 범위 값을 변경하는 색상 범위 값 변경부 및 색상 범위 값이 변경된 상기 N개의 색상 범위에 기초하여 상기 픽셀의 N개의 색상 성분들 각각의 색상 값으로 변환하는 색상 변환부를 포함한다.According to an embodiment of the present invention, a color converting apparatus includes N in a range of color values that N color components may have, based on a color value of each of N color components, wherein N is an integer of 3 or more. A color range separating unit for dividing into four color ranges and a color conversion command is input, selecting a color range corresponding to the type of the color conversion command among the N color ranges, and then selecting the selected color range based on the color conversion changing command. And a color converting unit configured to change a color range value of the color range value converting unit, and a color converting unit converting each of the N color components of the pixel based on the N color ranges in which the color range value is changed.

또한, 본 발명의 일실시예에 따른 색상 변환 장치의 동작 방법은 픽셀의 N - 상기 N은 3 이상의 정수임 - 개의 색상 성분들 각각의 색상 값에 기초하여, 상기 N개의 색상 성분들이 가질 수 있는 색상 값의 범위를 N개의 색상 범위로 구분하는 단계, 색상 변환 명령이 입력되면, 상기 N개의 색상 범위 중 상기 색상 변환 명령의 종류에 상응하는 색상 범위를 선택한 후 상기 색상 변환 변경 명령에 기초하여 상기 선택된 색상 범위의 색상 범위 값을 변경하는 단계 및 색상 범위 값이 변경된 상기 N개의 색상 범위에 기초하여 상기 픽셀의 N개의 색상 성분들 각각의 색상 값으로 변환하는 단계를 포함한다.In addition, the operating method of the color conversion apparatus according to an embodiment of the present invention, the color of each of the N color components, based on the color value of each of the N-N color components of the pixel-N is an integer of 3 or more Dividing the range of values into N color ranges, and when a color conversion command is input, selects a color range corresponding to the type of the color conversion command among the N color ranges, and then selects the selected color range based on the color conversion change command. Changing a color range value of a color range and converting the color range value into a color value of each of the N color components of the pixel based on the N color ranges in which the color range value has been changed.

본 발명에 따른 색상 변환 장치 및 이의 동작 방법은 색상 변환 명령이 입력되면, 상기 N개의 색상 범위 중 상기 색상 변환 명령의 종류에 상응하는 색상 범위를 선택한 후 상기 색상 변환 변경 명령에 기초하여 상기 선택된 색상 범위의 색상 범위 값을 변경함으로써, LAB 값으로 변환하지 않으면서도, 디지털 이미지의 색상 변환을 고속으로 처리할 수 있다.In the color conversion apparatus and its operation method according to the present invention, when a color conversion command is input, a color range corresponding to the type of the color conversion command is selected from the N color ranges, and then the selected color is based on the color conversion change command. By changing the color range value of the range, it is possible to process the color conversion of the digital image at high speed without converting it to the LAB value.

도 1은 본 발명의 일실시예에 따른 색상 변환 장치의 구성을 도시한 도면이다.
도 2는 본 발명의 일실시예에 따른 색상 변환 장치의 동작 방법을 도시한 흐름도이다.
1 is a diagram illustrating a configuration of a color conversion apparatus according to an embodiment of the present invention.
2 is a flowchart illustrating a method of operating a color conversion apparatus according to an embodiment of the present invention.

이하에서는 본 발명에 따른 실시예들을 첨부된 도면을 참조하여 상세하게 설명하기로 한다. 이러한 설명은 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였으며, 다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 본 명세서 상에서 사용되는 모든 용어들은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 사람에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. This description is not intended to limit the invention to the specific embodiments, it should be understood to include all changes, equivalents, and substitutes included in the spirit and scope of the invention. In describing the drawings, similar reference numerals are used for similar components, and unless otherwise defined, all terms used in the present specification, including technical or scientific terms, may be used in the art to which the present invention pertains. It has the same meaning as is commonly understood by someone who has it.

도 1은 본 발명의 일실시예에 따른 색상 변환 장치(100)의 구성을 도시한 도면이다.1 is a diagram illustrating a configuration of a color conversion apparatus 100 according to an embodiment of the present invention.

도 1을 참조하면, 본 발명의 일실시예에 따른 색상 변환 장치(100)는 이미지 저장부(110), 이미지 로드부(120), 사용자 입력부(130), 색상 범위 구분부(140), 색상 범위 값 변경부(150) 및 색상 변환부(155)를 포함할 수 있다.Referring to FIG. 1, the color converting apparatus 100 according to an exemplary embodiment of the present invention may include an image storage unit 110, an image load unit 120, a user input unit 130, a color range separator 140, and a color. The range value changing unit 150 and the color converter 155 may be included.

먼저, 이미지 저장부(110)에는 다수의 픽셀들로 구성된 이미지를 저장할 수 있다. 여기에서, 상기 다수의 픽셀들 각각은 N개의 색상 성분들 각각의 색상 값에 대한 정보를 포함할 수 있다. 여기에서, 색상 성분들이 RGB 방식으로 표현되는 경우, 상기 N은 3이며, CMYK 방식으로 표현되는 경우, N은 4일 수 있다.First, the image storage unit 110 may store an image composed of a plurality of pixels. Here, each of the plurality of pixels may include information on color values of each of the N color components. Here, when the color components are represented by the RGB method, N is 3, and when the color components are represented by the CMYK method, N may be 4.

예를 들어, N이 3인 경우, 이미지 저장부(110)에는 다수의 픽셀들로 구성된 이미지를 하기 표 1과 같이 저장할 수 있다. For example, when N is 3, the image storage unit 110 may store an image composed of a plurality of pixels as shown in Table 1 below.

이미지image 픽셀pixel 색상 성분Color composition RR GG BB 이미지 1Image 1 픽셀 1Pixel 1 192192 128128 6464 픽셀 2Pixel 2 192192 9696 9696 픽셀 3Pixel 3 192192 9696 00 픽셀 4Pixel 4 192192 00 00 ...... ...... ...... ...... ......

여기에서, 표 1과 같이 이미지 1의 각 픽셀들의 색상 성분들 각각의 색상 값은 8비트로 표현되는 경우 0 내지 255 사이의 값을 가질 수 있다. 다음으로, 이미지 로드부(120)는 사용자 입력부(130)를 통해 선택된 이미지를 이미지 저장부(110)로부터 로드한 후 디스플레이부(125)에 전달하여, 상기 디스플레이부(125)가 전달된 이미지를 디스플레이할 수 있다.Here, as shown in Table 1, the color value of each color component of each pixel of the image 1 may have a value between 0 and 255 when expressed in 8 bits. Next, the image load unit 120 loads the image selected through the user input unit 130 from the image storage unit 110 and transfers the image to the display unit 125, the image is transmitted by the display unit 125 Can be displayed.

다음으로, 색상 범위 구분부(140)는 상기 이미지 로드부(120)가 로드한 이미지에 포함된 각 픽셀들의 색상 성분들 각각의 색상 값에 기초하여, 상기 N개의 색상 성분들이 가질 수 있는 색상 값의 범위를 N개의 색상 범위로 구분할 수 있다. 여기에서, 색상 값의 범위는, 각 픽셀들의 색상 성분들 각각의 색상 값이 8비트로 표현되는 경우, 0 내지 255일 수 있다.Next, the color range separator 140 may generate color values of the N color components based on the color values of each of the color components of the pixels included in the image loaded by the image loader 120. The range of can be divided into N color ranges. Here, the range of the color value may be 0 to 255 when the color value of each of the color components of each pixel is represented by 8 bits.

여기에서, 상기 N개의 색상 범위 각각은 2N-1개의 색상 채널 중 하나의 색상 채널을 나타낼 수 있으며, 2N-1개의 색상 채널은 상기 N개의 색상 성분들의 조합에 따른 색상을 나타낼 수 있다. 예를 들어, N이 3인 경우(즉, RGB 컬러의 경우), R 색상 채널, G 색상 채널, B 색상 채널, RG 색상 채널, RB 색상 채널, GB 색상 채널 및 RGB 색상 채널이 존재하며, 3개의 색상 범위 중 제1 색상 범위는 R 색상 채널, G 색상 채널, B 색상 채널 중 하나의 색상 채널을 나타내고, 제2 색상 범위는 RG 색상 채널, RB 색상 채널, GB 색상 채널 중 하나의 색상 채널을 나타내고, 제2 색상 범위는 RGB 색상 채널을 나타낼 수 있다. 즉, 제1 색상 범위는 한 개의 색상 성분을 포함하는 색상에 따른 색상 채널을 나타내고, 제2 색상 범위는 두 개의 색상 성분을 포함하는 색상에 따른 색상 채널을 나타내고, 제3 색상 범위는 세 개의 색상 성분을 포함하는 색상에 따른 색상 채널을 나타낼 수 있다. 이때, 하나 또는 두 개의 색상 성분을 포함하는 색상에 따른 색상 채널의 값은 채도를 나타내고, 세 개의 색상 성분을 포함하는 색상에 따른 색상 채널의 값은 명도를 나타내는 것으로 해석될 수 있다. 한편, N이 4인 경우(즉, CMYK 컬러의 경우), 하나 내지 세 개의 색상 성분을 포함하는 색상에 따른 색상 채널의 값은 채도를 나타내며, 네 개의 색상 성분을 포함하는 색상에 따른 색상 채널의 값은 명도를 나타내는 것으로 해석될 수 있다.Here, each of the N color range is 2 N -1 different colors may indicate a single color channel of the channel, 2 N -1 different color channels may exhibit a color according to combination of said N color components. For example, if N is 3 (that is, for RGB color), there are R color channels, G color channels, B color channels, RG color channels, RB color channels, GB color channels, and RGB color channels. Color range represents one color channel of the R color channel, the G color channel, and the B color channel, and the second color range represents the color channel of one of the RG color channel, the RB color channel, and the GB color channel. The second color range may represent an RGB color channel. That is, the first color range represents a color channel according to a color including one color component, the second color range represents a color channel according to a color including two color components, and the third color range represents three colors. It may represent a color channel according to the color including the component. In this case, the value of the color channel according to the color including one or two color components may represent saturation, and the value of the color channel according to the color including three color components may be interpreted to represent brightness. On the other hand, when N is 4 (that is, in the case of CMYK color), the value of the color channel according to the color including one to three color components indicates saturation, and the value of the color channel according to the color including four color components The value can be interpreted as representing brightness.

구체적으로, 색상 범위 구분부(140)는 임의 픽셀의 N개의 색상 성분들의 색상 값들 중 i 번째로 높은 색상 값을 제i 색상 범위의 상한 값으로 결정하고, 상기 임의 픽셀의 N개의 색상 성분들의 색상 값들 중 i+1 번째로 높은 색상 값을 제i 색상 범위의 하한 값으로 결정함으로써, 상기 N개의 색상 성분들이 가질 수 있는 색상 값의 범위를 N개의 색상 범위로 구분할 수 있다. 여기에서, i는 1 이상 N 이하의 정수이며, i가 N인 경우, 제N 색상 범위의 하한 값은 0으로 결정될 수 있다.Specifically, the color range separator 140 determines an i-th highest color value of the color values of the N color components of an arbitrary pixel as an upper limit value of the i-th color range, and colors the colors of the N color components of the arbitrary pixel. By determining the i + 1 th highest color value among the values as the lower limit value of the i th color range, the range of color values that the N color components may have may be divided into N color ranges. Here, i is an integer of 1 or more and N or less, and when i is N, the lower limit of the Nth color range may be determined as 0.

예를 들어, 이미지 1이 로드된 경우, 색상 범위 구분부(140)는 상기 이미지 1의 픽셀 1 내지 4의 3개의 색상 성분들이 가질 수 있는 색상 값의 범위를 하기 표 2와 같이 3개의 색상 범위로 구분할 수 있다.For example, when image 1 is loaded, the color range separator 140 sets a range of color values that three color components of pixels 1 to 4 of the image 1 may have as shown in Table 2 below. Can be divided into

픽셀pixel 제1 색상 범위First color range 제2 색상 범위Second color range 제3 색상 범위3rd color range 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 픽셀 1Pixel 1 192192 128128 128128 6464 6464 00 픽셀 2Pixel 2 192192 9696 9696 9696 9696 00 픽셀 3Pixel 3 192192 9696 9696 00 00 00 픽셀 4Pixel 4 192192 00 00 00 00 00

여기에서, 픽셀 1 내지 4의 제1 색상 범위는 R 색상 채널을 나타내고, 픽셀 1 및 3의 제2 색상 범위는 RG 색상 채널을 나타내고, 픽셀 1 및 2의 제3 색상 범위는 RGB 색상 채널을 나타낼 수 있다. 한편, 색상 범위가 0인 픽셀 2 및 4의 제2 색상 범위와 픽셀 3 및 4의 제3 색상 범위는 색상 채널을 나타내지 않으며, 추후, 색상 채널의 범위가 증가됨에 따라, 픽셀 2 및 4의 제2 색상 범위는 RG 색상 채널 또는 RB 색상 채널을 나타낼 수 있으며, 픽셀 3 및 4의 제3 색상 범위는 RGB 색상 채널을 나타낼 수 있다. 다음으로, 색상 범위 값 변경부(150)는 사용자 입력부(130)를 통해 색상 변환 명령이 입력되면, 상기 N개의 색상 범위 중 상기 색상 변환 명령의 종류에 상응하는 색상 범위를 선택한 후 상기 색상 변환 변경 명령에 기초하여 상기 선택된 색상 범위의 색상 범위 값을 변경할 수 있다. 이후, 색상 범위 값 변경부(150)는 색상 범위 값이 변경된 상기 제N 색상 범위를 색상 변환부(155)에 전달할 수 있다. 여기에서, 색상 변환부(155)는 전달받은 색상 범위 값이 변경된 상기 제N 색상 범위에 기초하여 상기 임의 픽셀의 N개의 색상 성분들의 색상 값으로 변환한 후 디스플레이부(125)에 전달함으로써, 상기 색상 변환 명령에 의해 색상 값이 변경된 이미지가 디스플레이부(125)에서 디스플레이될 수 있다. 여기에서, 상기 색상 변환 명령의 종류는 제1 채도 값 변경 명령, 제2 채도 값 변경 명령 및 명도 값 변경 명령으로 구분될 수 있으며, 상기 제1 채도 값 변경 명령은 상기 제1 채도 값 변경 명령의 대상 색상이 포함하는 색상 성분의 개수가 1개인 경우의 채도 값 변경 명령이며, 상기 제2 채도 값 변경 명령은 상기 제2 채도 값 변경 명령의 대상 색상이 포함하는 색상 성분의 개수가 2개 이상 N개 미만인 경우의 채도 값 변경 명령이다.Here, the first color range of pixels 1 to 4 represents an R color channel, the second color range of pixels 1 and 3 represents an RG color channel, and the third color range of pixels 1 and 2 represents an RGB color channel. Can be. On the other hand, the second color range of pixels 2 and 4 with color range 0 and the third color range of pixels 3 and 4 do not represent a color channel, and as the range of color channels is increased, The two color ranges may represent an RG color channel or an RB color channel, and the third color range of pixels 3 and 4 may represent an RGB color channel. Next, when a color conversion command is input through the user input unit 130, the color range value changing unit 150 selects a color range corresponding to the type of the color conversion command from the N color ranges, and then changes the color conversion. The color range value of the selected color range may be changed based on the command. Thereafter, the color range value changing unit 150 may transmit the N th color range in which the color range value is changed to the color conversion unit 155. Here, the color conversion unit 155 converts the color values of the N color components of the arbitrary pixel based on the changed Nth color range to the display unit 125 by transmitting them to the display unit 125. The image whose color value is changed by the color conversion command may be displayed on the display 125. Here, the type of the color conversion command may be divided into a first chroma value change command, a second chroma value change command, and a brightness value change command, and the first chroma value change command may include the first chroma value change command. The saturation value changing command when the number of color components included in the target color is one, and the second saturation value changing command includes two or more number of color components included in the target color of the second saturation value changing command. Command to change saturation value when less than.

구체적으로, 상기 색상 범위 값 변경부(150)는 상기 색상 변환 명령의 종류가 상기 제1 채도 값 변경 명령인 경우, 상기 N개의 색상 범위 중 상기 대상 색상이 포함하는 한 개의 색상 성분을 모두 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위에서 가장 높은 색상 범위를 선택할 수 있다. 여기에서, 보다 적은 개수의 색상 성분을 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위는 보다 많은 개수의 색상 성분을 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위보다 높은 색상 범위로 판단될 수 있다. 여기에서, 상기 제i 색상 범위의 상한 값은 상기 N개의 색상 성분들의 색상 값들 중 i번째로 높은 색상 값과 동일할 수 있다.Specifically, when the type of the color conversion command is the first saturation value changing command, the color range value changing unit 150 includes all one color component included in the target color among the N color ranges. You can select the highest color range from the color range that represents the color channels by color. Here, the color range representing the color channel according to the color including the smaller number of color components may be determined to be a higher color range than the color range representing the color channel according to the color including the greater number of color components. Here, an upper limit value of the i th color range may be equal to an i th highest color value among the color values of the N color components.

예를 들어, 이미지 1의 픽셀들의 색상 성분들이 상기 표 2와 같이 색상 범위로 구분되고, 상기 색상 변환 명령이 R 색상의 채도 값을 8만큼 상승시키라는 제1 채도 값 변경 명령인 경우, 상기 색상 범위 값 변경부(150)는 상기 대상 색상이 포함하는 R 색상 성분을 모두 포함하는 색상(R 색상, RG 색상, RB 색상 및 RGB 색상)에 따른 색상 채널(R 색상 채널, RG 색상 채널, RB 색상 채널 및 RGB 색상 채널)을 나타내는 색상 범위에서 가장 높은 색상 범위를 선택한 후 하기 표 3과 같이 선택된 색상 범위의 상한 값을 변경할 수 있다.For example, when the color components of pixels of the image 1 are divided into color ranges as shown in Table 2 above, and the color conversion command is a first chroma value changing command to increase the saturation value of the R color by 8, the color The range value changing unit 150 includes a color channel (R color channel, RG color channel, RB color) according to a color (R color, RG color, RB color, and RGB color) including all R color components included in the target color. After selecting the highest color range in the color range representing the channel and the RGB color channel), as shown in Table 3 below, the upper limit of the selected color range may be changed.

보다 구체적으로, 상기 색상 변환 명령이 R 색상의 채도 값을 8만큼 상승시키라는 제1 채도 값 변경 명령인 경우, 상기 색상 범위 값 변경부(150)는 픽셀 1 내지 4에 있어서, 상기 대상 색상이 포함하는 R 색상 성분을 모두 포함하는 색상에 따른 색상 채널을 나타내는 제1 내지 3 색상 범위에서 가장 높은 색상 범위인 제1 색상 범위를 선택한 후 하기 표 3과 같이 제1 색상 범위의 상한 값을 변경할 수 있다.More specifically, when the color conversion command is a first saturation value changing command for increasing the saturation value of the R color by 8, the color range value changing unit 150 displays the target color in pixels 1 to 4; After selecting a first color range that is the highest color range in the first to third color ranges representing color channels according to a color including all R color components, the upper limit value of the first color range can be changed as shown in Table 3 below. have.

픽셀pixel 제1 색상 범위First color range 제2 색상 범위Second color range 제3 색상 범위3rd color range 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 픽셀 1Pixel 1 200200 128128 128128 6464 6464 00 픽셀 2Pixel 2 200200 9696 9696 9696 9696 00 픽셀 3Pixel 3 200200 9696 9696 00 00 00 픽셀 4Pixel 4 200200 00 00 00 00 00

이때, 색상 변환부(155)는 색상 범위 값이 변경된 상기 제N 색상 범위를 색상 범위 값 변경부(150)로부터 전달받은 경우, 임의 픽셀의 임의 색상 성분에 대한 색상 채널들을 나타내는 색상 범위의 값을 모두 더한 값을 임의 색상 성분으로 연산함으로써, 픽셀의 N개의 색상 성분들 각각의 색상 값으로 변환할 수 있다.예를 들어, 색상 변환부(155)는 표 3과 같이 색상 범위 값이 변경된 상기 제1 내지 3 색상 범위를 색상 범위 값 변경부(150)로부터 전달받은 경우, R 색상 성분에 대한 제1 내지 3 색상 채널들을 나타내는 색상 범위의 값을 모두 더한 값을 임의 색상 성분으로 연산하고, G 색상 성분에 대한 제2 및 3 색상 채널들을 나타내는 색상 범위의 값을 모두 더한 값을 임의 색상 성분으로 연산하고, B 색상 성분에 대한 제3 색상 채널들을 나타내는 색상 범위의 값을 모두 더한 값을 임의 색상 성분으로 연산할 수 있다. 이에 따라, 픽셀 1의 R, G, B 색상 성분은 (200, 128, 64)이 되고, 픽셀 2의 R, G, B 색상 성분은 (200, 96, 96)이 되며, 픽셀 3의 R, G, B 색상 성분은 (200, 96, 0)이 되고, 픽셀 4의 R, G, B 색상 성분은 (200, 0, 0)이 될 수 있다.In this case, when the color conversion unit 155 receives the Nth color range in which the color range value is changed from the color range value changing unit 150, the color conversion unit 155 may select a value of a color range representing color channels for arbitrary color components of an arbitrary pixel. By calculating the sum of all the values as an arbitrary color component, the color values of the N color components of the pixel may be converted into color values. For example, the color converter 155 may change the color range values as shown in Table 3 below. When the 1 to 3 color ranges are received from the color range value changing unit 150, a value obtained by adding up the values of the color ranges representing the first to third color channels for the R color component is calculated as an arbitrary color component, and the G color. Computes the sum of the values of the color range representing the second and third color channels for the component as any color component, and the value of the color range representing the third color channels for the B color component Both can be calculated as a value obtained by adding the arbitrary color component. Accordingly, the R, G, and B color components of pixel 1 are (200, 128, 64), and the R, G, and B color components of pixel 2 are (200, 96, 96), and R, The G, B color components may be (200, 96, 0), and the R, G, B color components of pixel 4 may be (200, 0, 0).

또한, 예를 들어, 이미지 1의 픽셀들의 색상 성분들이 상기 표 2와 같이 색상 범위로 구분되고, 상기 색상 변환 명령이 R 색상의 채도 값을 2만큼 하강시키라는 상기 제1 채도 값 변경 명령인 경우, 상기 색상 범위 값 변경부(150)는 제1 색상 범위를 선택한 후 하기 표 4와 같이 제1 색상 범위의 상한 값을 변경할 수 있다.Further, for example, when the color components of the pixels of image 1 are divided into color ranges as shown in Table 2 above, and the color conversion command is the first chroma value changing command to lower the chroma value of the R color by 2. The color range value changing unit 150 may select a first color range and then change an upper limit value of the first color range as shown in Table 4 below.

픽셀pixel 제1 색상 범위First color range 제2 색상 범위Second color range 제3 색상 범위3rd color range 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 픽셀 1Pixel 1 190190 128128 128128 6464 6464 00 픽셀 2Pixel 2 190190 9696 9696 9696 9696 00 픽셀 3Pixel 3 190190 9696 9696 00 00 00 픽셀 4Pixel 4 190190 00 00 00 00 00

또한, 상기 색상 범위 값 변경부(150)는 상기 색상 변환 명령의 종류가 상기 제2 채도 값 변경 명령인 경우, 상기 N개의 색상 범위 중 상기 대상 색상이 포함하는 색상 성분을 모두 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위에서 가장 높은 색상 범위를 선택할 수 있다. 이때, 상기 색상 변환 명령에 의해 선택된 색상 범위의 상한 값이 변경되는 경우, 상기 색상 범위 값 변경부(150)는 상기 선택된 색상 범위보다 높은 색상 범위를 선택된 색상 범위의 상한 값의 변경 정도만큼 이동(선택된 색상 범위보다 높은 색상 범위가 상기 대상 색상이 포함하는 색상 성분 중 적어도 하나의 색상 성분을 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위인 경우)시키거나, 상기 선택된 색상 범위보다 높은 색상 범위의 하한 값을 상기 선택된 색상 범위의 상한 값으로 조정(선택된 색상 범위보다 높은 색상 범위가 상기 대상 색상이 포함하는 색상 성분 중 적어도 하나의 색상 성분을 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위가 아닌 경우)시킬 수 있다. 여기에서, 상기 선택된 색상 범위보다 높은 색상 범위가 2 이상인 경우, 상기 색상 범위 값 변경부(150)는 상기 선택된 색상 범위보다 한 단계 높은 색상 범위를 선택된 색상 범위의 상한 값의 변경 정도만큼 이동시키거나, 상기 한 단계 높은 색상 범위의 하한 값을 상기 선택된 색상 범위의 상한 값으로 조정하고, 상기 선택된 색상 범위보다 두 단계 높은 색상 범위를 선택된 색상 범위의 상한 값의 변경 정도만큼 이동시키거나, 상기 두 단계 높은 색상 범위의 하한 값을 상기 한 단계 높은 색상 범위의 상한 값으로 조정시키며, 세 단계 높은 색상 범위를 선택된 색상 범위의 상한 값의 변경 정도만큼 이동시키거나, 상기 세 단계 높은 색상 범위의 하한 값을 상기 두 단계 높은 색상 범위의 상한 값으로 조정시키는 방식으로, 상기 선택된 색상 범위보다 높은 색상 범위들 모두에 대해 이동 또는 조정시킬 수 있다. 여기에서, 색상 범위가 0인 색상 범위는 해당 색상 범위가 0이 아닐 경우 포함할 수 있는 색상 성분의 개수에 따른 색상의 색상 채널 중 해당 색상 범위보다 한 단계 높은 색상 범위가 나타내는 색상 채널의 관련 색상 채널인 것으로 해석될 수 있다. 여기에서 임의 색상 채널의 관련 색상 채널은 임의 색상 채널에 따른 색상의 색상 성분을 모두 포함하는 색상에 따른 색상 채널이다. 예컨대, 임의 색상 채널이 R 색상 채널인 경우, 관련 색상 채널은 RB 색상 채널, RG 색상 채널 및 RGB 색상 채널일 수 있다.예를 들어, 이미지 1의 픽셀들의 색상 성분들이 상기 표 2와 같이 색상 범위로 구분되고, 상기 색상 변환 명령이 RG 색상의 채도 값을 64만큼 상승시키라는 채도 값 변경 명령인 경우, 상기 색상 범위 값 변경부(150)는 상기 대상 색상이 포함하는 R 색상 성분 및 G 색상 성분을 모두 포함하는 색상(RG 색상 및 RGB 색상)에 따른 색상 채널(RG 색상 채널 및 RGB 색상 채널)을 나타내는 색상 범위에서 가장 높은 색상 범위를 선택한 후 하기 표 5와 같이 상기 선택된 색상 범위의 상한 값을 변경할 수 있다. 또한, 상기 색상 변환 명령에 의해 상기 선택된 색상 범위의 상한 값이 변경되면, 상기 색상 범위 값 변경부(150)는 하기 표 5와 같이 상기 선택된 색상 범위보다 높은 색상 범위를 상기 선택된 색상 범위의 상한 값의 변경 정도만큼 이동시키거나, 상기 선택된 색상 범위보다 높은 색상 범위의 하한 값을 상기 선택된 색상 범위의 상한 값으로 조정시킬 수 있다. 추가로, 상기 제2 채도 값 변경 명령에 따라 선택된 색상 범위의 상한 값의 변경 정도만큼 이동되는 상기 선택된 색상 범위보다 높은 색상 범위의 상한 값은 상기 N개의 색상 성분들 각각이 가질 수 있는 색상 값의 최대 값(즉, 색상 값이 8비트로 표현되는 경우, 255)으로 제한될 수 있다. 또한, 상기 제2 채도 값 변경 명령에 따라 상기 선택된 색상 범위의 상한 값이 상기 N개의 색상 성분들 각각이 가질 수 있는 색상 값의 최대 값을 가지는 경우, 상기 선택된 색상 범위보다 높은 색상 범위의 상한 값 및 하한 값은 선택된 색상 범위의 상한 값과 동일하게 변경(즉, 선택된 색상 범위보다 높은 색상 범위는 0)될 수 있다.In addition, when the type of the color conversion command is the second saturation value changing command, the color range value changing unit 150 may be configured according to a color including all color components included in the target color among the N color ranges. You can select the highest color range from the color range that represents the color channel. In this case, when the upper limit value of the color range selected by the color conversion command is changed, the color range value changing unit 150 moves a color range higher than the selected color range by the degree of change of the upper limit value of the selected color range ( A color range higher than the selected color range is a color range representing a color channel according to a color including at least one of the color components included in the target color), or a lower limit of a color range higher than the selected color range. Adjust a value to the upper limit of the selected color range (if the color range higher than the selected color range is not a color range representing a color channel according to a color that includes at least one of the color components included in the target color). You can. Here, when the color range higher than the selected color range is two or more, the color range value changing unit 150 moves the color range one step higher than the selected color range by the degree of change of the upper limit value of the selected color range. Adjust the lower limit of the one-higher color range to the upper limit of the selected color range and move the color range two steps higher than the selected color range by the degree of change of the upper limit of the selected color range; Adjust the lower limit of the higher color range to the upper limit of the next higher color range, move the three higher color ranges by the amount of change in the upper limit of the selected color range, or change the lower limit of the three higher color ranges. Higher than the selected color range in a manner that adjusts to the upper limit of the two high color ranges. For all of the color range it can be moved or adjusted. Here, a color range with a color range of zero is the related color of the color channel represented by the color range one level above that color range of the color channels of the color, depending on the number of color components that can be included if the color range is nonzero. Can be interpreted as being a channel. Here, the relevant color channel of the arbitrary color channel is the color channel according to the color including all the color components of the color according to the arbitrary color channel. For example, if any color channel is an R color channel, the relevant color channel may be an RB color channel, an RG color channel, and an RGB color channel. For example, the color components of the pixels of image 1 may have a color range as shown in Table 2 above. When the color conversion command is a saturation value changing command to increase the saturation value of the RG color by 64, the color range value changing unit 150 includes the R color component and the G color component included in the target color. Select the highest color range from the color range representing the color channels (RG color channel and RGB color channel) according to the colors (RG color and RGB color) including all of them, and then set the upper limit of the selected color range as shown in Table 5 below. You can change it. In addition, when the upper limit value of the selected color range is changed by the color conversion command, the color range value changing unit 150 sets a color range higher than the selected color range as shown in Table 5 below. The lower limit value of the color range higher than the selected color range may be adjusted by the degree of change of, or the upper limit value of the selected color range may be adjusted. In addition, the upper limit value of the color range higher than the selected color range shifted by the degree of change of the upper limit value of the selected color range according to the second saturation value change command is a value of the color value that each of the N color components may have. It may be limited to a maximum value (ie, 255 when the color value is represented by 8 bits). The upper limit value of the color range higher than the selected color range when the upper limit value of the selected color range has a maximum value of each of the N color components according to the second saturation value change command. And the lower limit value may be changed to be equal to the upper limit value of the selected color range (ie, a color range higher than the selected color range is 0).

픽셀pixel 제1 색상 범위First color range 제2 색상 범위Second color range 제3 색상 범위3rd color range 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 픽셀 1Pixel 1 255255 192192 192192 6464 6464 00 픽셀 2Pixel 2 255255 160160 160160 9696 9696 00 픽셀 3Pixel 3 255255 160160 160160 00 00 00 픽셀 4Pixel 4 255255 6464 6464 00 00 00

또한, 예를 들어, 이미지 1의 픽셀들의 색상 성분들이 상기 표 2와 같이 색상 범위로 구분되고, 상기 색상 변환 명령이 RG 색상의 채도 값을 64만큼 하강시키라는 제2 채도 값 변경 명령인 경우, 상기 색상 범위 값 변경부(150)는 상기 대상 색상이 포함하는 R 색상 성분 및 G 색상 성분을 모두 포함하는 색상(RG 색상 및 RGB 색상)에 따른 색상 채널(RG 색상 채널 및 RGB 색상 채널)을 나타내는 색상 범위에서 가장 높은 색상 범위를 선택한 후 하기 표 5와 같이 상기 선택된 색상 범위의 상한 값을 변경할 수 있다. 또한, 상기 색상 변환 명령에 의해 제2 색상 범위의 상한 값이 변경되므로, 상기 색상 범위 값 변경부(150)는 하기 표 5와 같이 상기 선택된 색상 범위보다 높은 색상 범위를 상기 선택된 색상 범위의 상한 값의 변경 정도만큼 이동시키거나, 상기 선택된 색상 범위보다 높은 색상 범위의 하한 값을 상기 선택된 색상 범위의 상한 값으로 조정시킬 수 있다. 추가로, 상기 제2 채도 값 변경 명령에 따라 하강되는 채도 값이 상기 선택된 색상 범위(즉, 상기 선택된 색상 범위의 상한 값에서 하한 값을 감한 값) 이상인 경우, 상기 색상 범위 값 변경부(150)는 상기 선택된 색상 범위를 0으로 변경(즉, 상기 선택된 색상 범위의 상한 값을 하한 값과 동일하게 변경)함으로써, 상기 제2 채도 값 변경 명령에 따른 동작을 수행할 수 있다.Further, for example, when the color components of pixels of the image 1 are divided into color ranges as shown in Table 2 above, and the color conversion command is a second saturation value changing command to lower the saturation value of the RG color by 64. The color range value changing unit 150 indicates a color channel (RG color channel and RGB color channel) according to a color (RG color and RGB color) including both the R color component and the G color component included in the target color. After selecting the highest color range in the color range, the upper limit value of the selected color range may be changed as shown in Table 5 below. In addition, since the upper limit value of the second color range is changed by the color conversion command, the color range value changing unit 150 sets a color range higher than the selected color range as shown in Table 5 below. The lower limit value of the color range higher than the selected color range may be adjusted by the degree of change of, or the upper limit value of the selected color range may be adjusted. In addition, when the saturation value lowered according to the second saturation value change command is equal to or greater than the selected color range (ie, a value obtained by subtracting a lower limit value from an upper limit value of the selected color range), the color range value changing unit 150 May change the selected color range to 0 (ie, change an upper limit value of the selected color range to be equal to a lower limit value) to perform an operation according to the second saturation value change command.

픽셀pixel 제1 색상 범위First color range 제2 색상 범위Second color range 제3 색상 범위3rd color range 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 픽셀 1Pixel 1 128128 6464 6464 6464 6464 00 픽셀 2Pixel 2 192192 9696 9696 9696 9696 00 픽셀 3Pixel 3 128128 3232 3232 00 00 00 픽셀 4Pixel 4 192192 00 00 00 00 00

또한, 상기 색상 범위 값 변경부(150)는 상기 색상 변환 명령의 종류가 상기 명도 값 변경 명령인 경우, 상기 N개의 색상 범위 중 N개의 색상 성분을 모두 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위를 선택할 수 있다. 여기에서, 상기 선택된 색상 범위의 상한 값은 상기 N개의 색상 성분들의 색상 값들 중 가장 낮은 색상 값과 동일할 수 있다. 이때, 상기 색상 변환 명령에 의해 선택된 색상 범위의 상한 값이 변경되는 경우, 상기 색상 범위 값 변경부(150)는 상기 선택된 색상 범위보다 높은 색상 범위를 상기 선택된 색상 범위의 상한 값의 변경 정도만큼 이동(선택된 색상 범위보다 높은 색상 범위가 상기 대상 색상이 포함하는 색상 성분 중 적어도 하나의 색상 성분을 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위인 경우)시키거나, 상기 선택된 색상 범위보다 높은 색상 범위의 하한 값을 상기 선택된 색상 범위의 상한 값으로 조정(선택된 색상 범위보다 높은 색상 범위가 상기 대상 색상이 포함하는 색상 성분 중 적어도 하나의 색상 성분을 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위가 아닌 경우)시킬 수 있다.예를 들어, 이미지 1의 픽셀들의 색상 성분들이 상기 표 2와 같이 색상 범위로 구분되고, 상기 색상 변환 명령이 명도 값을 64만큼 상승시키라는 명도 값 변경 명령인 경우, 상기 색상 범위 값 변경부(150)는 제3 색상 범위를 선택한 후 하기 표 7과 같이 제3 색상 범위의 상한 값을 변경할 수 있다. 또한, 상기 색상 변환 명령에 의해 제3 색상 범위의 상한 값이 변경되므로, 상기 색상 범위 값 변경부(150)는 하기 표 7과 같이 상기 제1 및 2 색상 범위를 제3 색상 범위의 상한 값의 변경 정도만큼 이동시킬 수 있다. 추가로, 예를 들어, 명도 값 변경 명령에 따라 제3 색상 범위의 상한 값의 변경 정도만큼 이동되는 상기 제1 및 2 색상 범위의 상한 값은 상기 N개의 색상 성분들이 가질 수 있는 색상 값의 최대 값(즉, 색상 값이 8비트로 표현되는 경우, 255)으로 제한될 수 있다. 또한, 명도 값 변경 명령에 따라 제3 색상 범위의 상한 값이 상기 N개의 색상 성분들이 가질 수 있는 색상 값의 최대 값을 가지는 경우, 상기 제1 및 2 색상 범위의 상한 값 및 하한 값은 제3 색상 범위의 상한 값과 동일하게 변경(즉, 제1 및 2 색상 범위는 0)될 수 있다. 마지막으로, 제3 색상 범위의 상한 값의 변경 정도를 상기 제1 색상 범위의 상한 값에 더한 값이 상기 N개의 색상 성분들이 가질 수 있는 색상 값의 최대 값(즉, 색상 값이 8비트로 표현되는 경우, 255)을 초과하면, 초과분에 해당하는 값만큼 제2 생상 범위의 상한 값을 하강시킨 후 상기 제1 색상 범위 및 초과분만큼 상한 값이 하강된 제2 색상 범위를 제3 색상 범위의 상한 값의 변경 정도만큼 이동시킬 수 있다.In addition, when the type of the color conversion command is the brightness value changing command, the color range value changing unit 150 indicates a color range representing a color channel according to a color including all N color components among the N color ranges. Can be selected. Here, the upper limit value of the selected color range may be the same as the lowest color value among the color values of the N color components. In this case, when the upper limit value of the color range selected by the color conversion command is changed, the color range value changing unit 150 moves a color range higher than the selected color range by the degree of change of the upper limit value of the selected color range. (If a color range higher than the selected color range is a color range representing a color channel according to a color including at least one of the color components included in the target color), or a color range higher than the selected color range. Adjust the lower limit to the upper limit of the selected color range (when the color range higher than the selected color range is not a color range representing a color channel according to a color comprising at least one of the color components included in the target color. For example, the color components of the pixels of image 1 are shown in Table 2 above. When the color conversion command is divided into the color range, and the color conversion command is a brightness value changing command to increase the brightness value by 64, the color range value changing unit 150 selects a third color range and then displays a third color range as shown in Table 7 below. 3 You can change the upper limit of the color range. In addition, since the upper limit value of the third color range is changed by the color conversion command, the color range value changing unit 150 sets the first and second color ranges as the upper limit value of the third color range as shown in Table 7 below. You can move it by the amount of change. In addition, an upper limit value of the first and second color ranges shifted by a degree of change of the upper limit value of the third color range according to a brightness value change command, for example, is a maximum value of color values that the N color components may have. It may be limited to a value (ie, 255 when the color value is represented by 8 bits). Further, when the upper limit value of the third color range has a maximum value of color values that the N color components may have according to the brightness value change command, the upper limit value and the lower limit value of the first and second color ranges may be determined by the third value. It may be changed to be equal to the upper limit of the color range (ie, the first and second color ranges are zero). Finally, the change in the upper limit value of the third color range plus the upper limit value of the first color range is the maximum value of the color value that the N color components can have (that is, the color value is represented by 8 bits). If more than 255), the upper limit value of the second production range is lowered by the value corresponding to the excess, and then the upper limit value of the third color range is changed to the second color range whose upper limit is lowered by the first color range and the excess. You can move it as much as you change it.

픽셀pixel 제1 색상 범위First color range 제2 색상 범위Second color range 제3 색상 범위3rd color range 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 픽셀 1Pixel 1 255255 191191 191191 128128 128128 00 픽셀 2Pixel 2 255255 159159 159159 160160 160160 00 픽셀 3Pixel 3 255255 159159 159159 6464 6464 00 픽셀 4Pixel 4 255255 6363 6363 6464 6464 00

또한, 예를 들어, 이미지 1의 픽셀들의 색상 성분들이 상기 표 2와 같이 색상 범위로 구분되고, 상기 색상 변환 명령이 명도 값을 64만큼 하강시키라는 명도 값 변경 명령인 경우, 상기 색상 범위 값 변경부(150)는 제3 색상 범위를 선택한 후 하기 표 8과 같이 제3 색상 범위의 상한 값을 변경할 수 있다. 또한, 상기 색상 변환 명령에 의해 제3 색상 범위의 상한 값이 변경되므로, 상기 색상 범위 값 변경부(150)는 하기 표 8과 같이 상기 제1 및 2 색상 범위를 제3 색상 범위의 상한 값의 변경 정도만큼 이동시킬 수 있다. 추가로, 예를 들어, 명도 값 변경 명령에 따라 하강되는 명도 값이 제3 색상 범위(즉, 제3 색상 범위의 상한 값에서 하한 값을 감한 값) 이상인 경우, 상기 색상 범위 값 변경부(150)는 제3 색상 범위를 0으로 변경(즉, 제3 색상 범위의 상한 값을 하한 값과 동일하게 변경)함으로써, 명도 값 변경 명령에 따른 동작을 수행할 수 있다.Further, for example, when the color components of the pixels of the image 1 are divided into a color range as shown in Table 2 above, and the color conversion command is a brightness value changing command to lower the brightness value by 64, the color range value change. After selecting the third color range, the unit 150 may change the upper limit of the third color range as shown in Table 8 below. In addition, since the upper limit value of the third color range is changed by the color conversion command, the color range value changing unit 150 sets the first and second color ranges as the upper limit value of the third color range as shown in Table 8 below. You can move it by the amount of change. In addition, for example, when the brightness value lowered according to the brightness value change command is equal to or greater than a third color range (ie, a value obtained by subtracting a lower limit value from an upper limit value of the third color range), the color range value changing unit 150 ) Changes the third color range to 0 (ie, changes the upper limit value of the third color range to be equal to the lower limit value), thereby performing an operation according to the brightness value change command.

픽셀pixel 제1 색상 범위First color range 제2 색상 범위Second color range 제3 색상 범위3rd color range 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 상한 값Upper limit 하한 값Lower limit 픽셀 1Pixel 1 128128 6464 6464 00 00 00 픽셀 2Pixel 2 128128 3232 3232 3232 3232 00 픽셀 3Pixel 3 192192 9696 9696 00 00 00 픽셀 4Pixel 4 192192 00 00 00 00 00

상술한 바와 같은 본 발명에 따른 색상 변환 장치는 색상 변환 명령이 입력되면, 상기 N개의 색상 범위 중 상기 색상 변환 명령의 종류에 상응하는 색상 범위를 선택한 후 상기 색상 변환 변경 명령에 기초하여 상기 선택된 색상 범위의 색상 범위 값을 변경함으로써, LAB 값을 변환하지 않으면서도, 디지털 이미지의 색상 변환을 고속으로 처리할 수 있다.도 2는 본 발명의 일실시예에 따른 색상 변환 장치의 동작 방법을 도시한 흐름도이다.As described above, when the color conversion command is input, the color conversion apparatus according to the present invention selects a color range corresponding to the type of the color conversion command from the N color ranges, and then selects the selected color based on the color conversion change command. By changing the color range value of the range, it is possible to process the color conversion of the digital image at high speed without converting the LAB value. FIG. 2 illustrates a method of operating a color conversion apparatus according to an embodiment of the present invention. It is a flow chart.

도 2를 참조하면, 단계(S210)에서는 픽셀의 N개의 색상 성분들 각각의 색상 값에 기초하여, 상기 N개의 색상 성분들이 가질 수 있는 색상 값의 범위를 N개의 색상 범위로 구분할 수 있다.Referring to FIG. 2, in step S210, a range of color values that the N color components may have is divided into N color ranges based on the color values of each of the N color components of the pixel.

단계(S220)에서는 색상 변환 명령이 입력되면, 상기 N개의 색상 범위 중 상기 색상 변환 명령의 종류에 상응하는 색상 범위를 선택한 후 상기 색상 변환 변경 명령에 기초하여 상기 선택된 색상 범위의 색상 범위 값을 변경할 수 있다. 여기에서, 상기 색상 변환 명령의 종류는 제1 채도 값 변경 명령, 제2 채도 값 변경 명령 및 명도 값 변경 명령으로 구분될 수 있다.In operation S220, when a color conversion command is input, a color range corresponding to the type of the color conversion command is selected among the N color ranges, and the color range value of the selected color range is changed based on the color conversion change command. Can be. The type of the color conversion command may be divided into a first chroma value change command, a second chroma value change command, and a brightness value change command.

상기 단계(S220)에서는 상기 색상 변환 명령의 종류가 상기 제1 채도 값 변경 명령인 경우, 상기 N개의 색상 범위 중 상기 대상 색상이 포함하는 한 개의 색상 성분을 모두 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위에서 가장 높은 색상 범위를 선택할 수 있다.In the step S220, when the type of the color conversion command is the first saturation value change command, the color channel corresponding to a color including all one color components included in the target color among the N color ranges is represented. You can select the highest color range from the color range.

상기 단계(S220)에서는 상기 색상 변환 명령의 종류가 상기 제2 채도 값 변경 명령인 경우, 상기 N개의 색상 범위 중 상기 대상 색상이 포함하는 둘 이상의 색상 성분을 모두 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위에서 가장 높은 색상 범위를 선택할 수 있다.In the step S220, when the type of the color conversion command is the second saturation value change command, the color channel indicates a color channel according to a color including all of two or more color components included in the target color among the N color ranges. You can select the highest color range from the color range.

상기 단계(S220)에서는 상기 색상 변환 명령의 종류가 상기 명도 값 변경 명령인 경우, 상기 N개의 색상 범위 중 N개의 색상 성분을 모두 포함하는 색상에 따른 색상 채널을 나타내는 색상 범위를 선택할 수 있다.In operation S220, when the type of the color conversion command is the brightness value change command, a color range indicating a color channel according to a color including all N color components among the N color ranges may be selected.

단계(S230)에서는 색상 범위 값이 변경된 상기 N개의 색상 범위에 기초하여 상기 픽셀의 N개의 색상 성분들 각각의 색상 값으로 변환할 수 있다.In operation S230, the color range values may be converted into color values of the N color components of the pixel based on the changed N color ranges.

이상, 도 2를 참조하여 본 발명의 일실시예에 따른 색상 변환 장치의 동작 방법에 대해 설명하였다. 여기서, 본 발명의 일실시예에 따른 색상 변환 장치의 동작 방법은 도 1을 이용하여 설명한 색상 변환 장치의 동작에 대한 구성과 대응될 수 있으므로, 이에 대한 보다 상세한 설명은 생략하기로 한다.In the above, the operation method of the color conversion apparatus according to the embodiment of the present invention has been described with reference to FIG. 2. Here, since the operation method of the color conversion apparatus according to an embodiment of the present invention may correspond to the configuration of the operation of the color conversion apparatus described with reference to FIG. 1, a detailed description thereof will be omitted.

본 발명의 일실시예에 따른 색상 변환 장치의 동작 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램으로 구현될 수 있다.The method of operating a color conversion apparatus according to an embodiment of the present invention may be implemented as a computer program stored in a storage medium for execution by combining with a computer.

또한, 본 발명의 일실시예에 따른 색상 변환 장치의 동작 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. In addition, the operating method of the color conversion apparatus according to an embodiment of the present invention may be implemented in the form of program instructions that may be executed by various computer means and may be recorded in a computer readable medium. The computer readable medium may include program instructions, data files, data structures, etc. alone or in combination. Program instructions recorded on the media may be those specially designed and constructed for the purposes of the present invention, or they may be of the kind well-known and available to those having skill in the computer software arts. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tape, optical media such as CD-ROMs, DVDs, and magnetic disks, such as floppy disks. Magneto-optical media, and hardware devices specifically configured to store and execute program instructions, such as ROM, RAM, flash memory, and the like. Examples of program instructions include not only machine code generated by a compiler, but also high-level language code that can be executed by a computer using an interpreter or the like.

이상과 같이 본 발명에서는 구체적인 구성 요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다. In the present invention as described above has been described by the specific embodiments, such as specific components and limited embodiments and drawings, but this is provided to help a more general understanding of the present invention, the present invention is not limited to the above embodiments. For those skilled in the art, various modifications and variations are possible from these descriptions.

따라서, 본 발명의 사상은 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.Therefore, the spirit of the present invention should not be limited to the described embodiments, and all the things that are equivalent to or equivalent to the claims as well as the following claims will belong to the scope of the present invention. .

Claims (12)

픽셀의 RGB 색상 성분들 각각의 색상 값에 기초하여, 상기 픽셀에 대한 색상 값의 범위를 제1 색상 범위 - 상기 제1 색상 범위는 상기 픽셀의 색상을 구성하는 R 색상 채널, G 색상 채널, B 색상 채널 중 하나의 색상 채널에 따른 색상 값의 범위임 - , 제2 색상 범위 - 상기 제2 색상 범위는 상기 픽셀의 색상을 구성하는 RG 색상 채널, RB 색상 채널, GB 색상 채널 중 하나의 색상 채널에 따른 색상 값의 범위임 - 및 제3 색상 범위 - 상기 제3 색상 범위는 상기 픽셀의 색상을 구성하는 RGB 색상 채널에 따른 색상 값의 범위임 - 로 구분하되, 상기 제1 색상 범위가 R 색상 채널에 따른 색상 값의 범위로 구성되고, 상기 제2 색상 범위가 RG 색상 채널에 따른 색상 값의 범위로 구성되며, 상기 제3 색상 범위가 RGB 색상 채널에 따른 색상 값의 범위로 구성되는 경우, 상기 픽셀의 R값, G값, B값 중 상기 제1 색상 범위의 상한 값을 R값으로, 하한 값을 G값으로 설정하고, 상기 제2 색상 범위의 상한 값을 G값으로, 하한 값을 B값으로 설정하며, 상기 제3 색상 범위의 상한 값을 B값으로, 하한 값을 0으로 설정하는 색상 범위 구분부;
상기 픽셀의 RGB 색상 성분들 중 R 색상 성분에 대한 제1 채도 값 변경 명령이 입력되는 경우, 상기 제1 색상 범위, 상기 제2 색상 범위, 상기 제3 색상 범위 중 상기 제1 색상 범위의 상한 값을 상기 제1 채도 값 변경 명령에 따른 조정 값으로 변경하고, 상기 픽셀의 RGB 색상 성분들 중 RG 색상 성분에 대한 제2 채도 값 변경 명령이 입력되는 경우, 상기 제1 색상 범위, 상기 제2 색상 범위, 상기 제3 색상 범위 중 상기 제2 색상 범위의 상한 값과 상기 제1 색상 범위의 하한 값을 상기 제2 채도 값 변경 명령에 따른 조정 값으로 변경하며, 상기 픽셀의 명도 값 변경 명령이 입력되는 경우, 상기 제1 색상 범위, 상기 제2 색상 범위, 상기 제3 색상 범위 중 상기 제3 색상 범위의 상한 값과 상기 제2 색상 범위의 하한 값을 상기 명도 값 변경 명령에 따른 조정 값으로 변경하는 색상 범위 값 변경부; 및
상기 제1 색상 범위, 상기 제2 색상 범위, 상기 제3 색상 범위에 대한 색상 범위 값의 변경이 완료되면, 상기 픽셀의 RGB 색상 성분들 중 R값을 상기 제1 색상 범위의 상한 값으로 변환하고, G값을 상기 제2 색상 범위의 상한 값으로 변환하며, B값을 상기 제3 색상 범위의 상한 값으로 변환함으로써, 상기 픽셀의 RGB 색상 성분들 각각의 색상 값을 변환하는 색상 변환부
를 포함하는 색상 변환 장치.
Based on a color value of each of the RGB color components of the pixel, a range of color values for the pixel, the first color range, wherein the first color range constitutes the color of the pixel; Is a range of color values according to one of the color channels,-a second color range-the second color range is one of the RG color channels, RB color channels, and GB color channels constituting the color of the pixel. And a third color range, wherein the third color range is a range of color values according to RGB color channels constituting the color of the pixel, wherein the first color range is R color. When the second color range is configured as a range of color values according to the channel, the second color range is configured as a range of color values according to the RG color channel, and the third color range is configured as a range of color values according to the RGB color channel, The pixel Among the R, G and B values, the upper limit value of the first color range is set to R value and the lower limit value is set to G value, and the upper limit value of the second color range is set to G value and the lower limit value is set to B value. A color range dividing unit configured to set an upper limit value of the third color range to a B value and a lower limit value to 0;
When the first saturation value change command for the R color component among the RGB color components of the pixel is input, an upper limit value of the first color range among the first color range, the second color range, and the third color range Is changed to an adjustment value according to the first saturation value changing command, and when a second saturation value changing command for an RG color component among the RGB color components of the pixel is input, the first color range and the second color. An upper limit value of the second color range and a lower limit value of the first color range among the third color range and the lower limit value of the first color range to an adjustment value according to the second saturation value changing command, and the brightness value changing command of the pixel is input. The upper limit value of the third color range and the lower limit value of the second color range among the first color range, the second color range, and the third color range are changed to adjustment values according to the brightness value change command. Is a portion changing color range value; And
When the change of the color range values for the first color range, the second color range, and the third color range is completed, the R value of the RGB color components of the pixel is converted into an upper limit value of the first color range. A color converting unit converting a color value of each of the RGB color components of the pixel by converting a G value to an upper limit of the second color range and converting a B value to an upper limit of the third color range
Color conversion device comprising a.
삭제delete 삭제delete 삭제delete 삭제delete 픽셀의 RGB 색상 성분들 각각의 색상 값에 기초하여, 상기 픽셀에 대한 색상 값의 범위를 제1 색상 범위 - 상기 제1 색상 범위는 상기 픽셀의 색상을 구성하는 R 색상 채널, G 색상 채널, B 색상 채널 중 하나의 색상 채널에 따른 색상 값의 범위임 - , 제2 색상 범위 - 상기 제2 색상 범위는 상기 픽셀의 색상을 구성하는 RG 색상 채널, RB 색상 채널, GB 색상 채널 중 하나의 색상 채널에 따른 색상 값의 범위임 - 및 제3 색상 범위 - 상기 제3 색상 범위는 상기 픽셀의 색상을 구성하는 RGB 색상 채널에 따른 색상 값의 범위임 - 로 구분하되, 상기 제1 색상 범위가 R 색상 채널에 따른 색상 값의 범위로 구성되고, 상기 제2 색상 범위가 RG 색상 채널에 따른 색상 값의 범위로 구성되며, 상기 제3 색상 범위가 RGB 색상 채널에 따른 색상 값의 범위로 구성되는 경우, 상기 픽셀의 R값, G값, B값 중 상기 제1 색상 범위의 상한 값을 R값으로, 하한 값을 G값으로 설정하고, 상기 제2 색상 범위의 상한 값을 G값으로, 하한 값을 B값으로 설정하며, 상기 제3 색상 범위의 상한 값을 B값으로, 하한 값을 0으로 설정하는 단계;
상기 픽셀의 RGB 색상 성분들 중 R 색상 성분에 대한 제1 채도 값 변경 명령이 입력되는 경우, 상기 제1 색상 범위, 상기 제2 색상 범위, 상기 제3 색상 범위 중 상기 제1 색상 범위의 상한 값을 상기 제1 채도 값 변경 명령에 따른 조정 값으로 변경하고, 상기 픽셀의 RGB 색상 성분들 중 RG 색상 성분에 대한 제2 채도 값 변경 명령이 입력되는 경우, 상기 제1 색상 범위, 상기 제2 색상 범위, 상기 제3 색상 범위 중 상기 제2 색상 범위의 상한 값과 상기 제1 색상 범위의 하한 값을 상기 제2 채도 값 변경 명령에 따른 조정 값으로 변경하며, 상기 픽셀의 명도 값 변경 명령이 입력되는 경우, 상기 제1 색상 범위, 상기 제2 색상 범위, 상기 제3 색상 범위 중 상기 제3 색상 범위의 상한 값과 상기 제2 색상 범위의 하한 값을 상기 명도 값 변경 명령에 따른 조정 값으로 변경하는 단계; 및
상기 제1 색상 범위, 상기 제2 색상 범위, 상기 제3 색상 범위에 대한 색상 범위 값의 변경이 완료되면, 상기 픽셀의 RGB 색상 성분들 중 R값을 상기 제1 색상 범위의 상한 값으로 변환하고, G값을 상기 제2 색상 범위의 상한 값으로 변환하며, B값을 상기 제3 색상 범위의 상한 값으로 변환함으로써, 상기 픽셀의 RGB 색상 성분들 각각의 색상 값을 변환하는 단계
를 포함하는 색상 변환 장치의 동작 방법.
Based on a color value of each of the RGB color components of the pixel, a range of color values for the pixel, the first color range, wherein the first color range constitutes the color of the pixel; Is a range of color values according to one of the color channels,-a second color range-the second color range is one of the RG color channels, RB color channels, and GB color channels constituting the color of the pixel. And a third color range, wherein the third color range is a range of color values according to RGB color channels constituting the color of the pixel, wherein the first color range is R color. When the second color range is configured as a range of color values according to the channel, the second color range is configured as a range of color values according to the RG color channel, and the third color range is configured as a range of color values according to the RGB color channel, The pixel Among the R, G and B values, the upper limit value of the first color range is set to R value and the lower limit value is set to G value, and the upper limit value of the second color range is set to G value and the lower limit value is set to B value. Setting an upper limit value of the third color range to a B value and a lower limit value to 0;
When the first saturation value change command for the R color component among the RGB color components of the pixel is input, an upper limit value of the first color range among the first color range, the second color range, and the third color range Is changed to an adjustment value according to the first saturation value changing command, and when a second saturation value changing command for an RG color component among the RGB color components of the pixel is input, the first color range and the second color. An upper limit value of the second color range and a lower limit value of the first color range among the third color range and the lower limit value of the first color range to an adjustment value according to the second saturation value changing command, and the brightness value changing command of the pixel is input. The upper limit value of the third color range and the lower limit value of the second color range among the first color range, the second color range, and the third color range are changed to adjustment values according to the brightness value change command. Step; And
When the change of the color range values for the first color range, the second color range, and the third color range is completed, the R value of the RGB color components of the pixel is converted into an upper limit value of the first color range. Converting a color value of each of the RGB color components of the pixel by converting a G value to an upper limit of the second color range and converting a B value to an upper limit of the third color range.
Operation method of a color conversion device comprising a.
삭제delete 삭제delete 삭제delete 삭제delete 제6항의 방법을 컴퓨터로 하여금 수행하도록 하는 프로그램을 기록한 컴퓨터 판독 가능 기록 매체.A computer-readable recording medium having recorded thereon a program for causing a computer to perform the method of claim 6. 제6항의 방법을 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램.A computer program stored in a storage medium for executing the method of claim 6 in combination with a computer.
KR1020180056638A 2018-05-17 2018-05-17 Apparatus for changing color and operating method thereof KR102017290B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020180056638A KR102017290B1 (en) 2018-05-17 2018-05-17 Apparatus for changing color and operating method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020180056638A KR102017290B1 (en) 2018-05-17 2018-05-17 Apparatus for changing color and operating method thereof

Publications (1)

Publication Number Publication Date
KR102017290B1 true KR102017290B1 (en) 2019-09-02

Family

ID=67951123

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180056638A KR102017290B1 (en) 2018-05-17 2018-05-17 Apparatus for changing color and operating method thereof

Country Status (1)

Country Link
KR (1) KR102017290B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101410703B1 (en) * 2013-03-26 2014-06-24 삼성전자주식회사 method and apparatus for color signal process and recording medium thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101410703B1 (en) * 2013-03-26 2014-06-24 삼성전자주식회사 method and apparatus for color signal process and recording medium thereof

Similar Documents

Publication Publication Date Title
US20060066546A1 (en) Gamma correction, image processing method and program, gamma correction circuit, image processing apparatus, and display apparatus
US9743073B2 (en) Image processing device with image compensation function and image processing method thereof
US9466260B2 (en) Conversion between color spaces
US10277783B2 (en) Method and device for image display based on metadata, and recording medium therefor
JP2010199659A (en) Image processing apparatus, and image processing method
US20210056930A1 (en) Electronic display gamma bus reference voltage generator systems and methods
US11651719B2 (en) Enhanced smoothness digital-to-analog converter interpolation systems and methods
US10152945B2 (en) Image processing apparatus capable of performing conversion on input image data for wide dynamic range
KR101788681B1 (en) Color correction to compensate for displays' luminance and chrominance transfer characteristics
JP2015154459A (en) Image processing apparatus and image processing method
RU2430487C1 (en) Video converter, video display and video conversion method
EP1990989B1 (en) Color processing apparatus and method
KR102017290B1 (en) Apparatus for changing color and operating method thereof
US11138953B1 (en) Method for performing dynamic peak brightness control in display module, and associated timing controller
US20140314317A1 (en) Method and apparatus for converting gray level of color image
US20150009228A1 (en) Image processing method and anti-saturation method for image data and image processing device
CN111385437A (en) Image device and burn-in prevention method
US9852531B2 (en) Electronic apparatus and method for controlling the same
US20080170779A1 (en) Device, method, and program storage medium for color conversion, device, method, and program storage medium for color conversion coefficient generation
US8630488B2 (en) Creating a duotone color effect using an ICC profile
JP4608509B2 (en) Composite lookup table creation device, composite lookup table creation method, and printing device
US20190188518A1 (en) Image processing circuit and associated image processing method
CN115050306B (en) Image correction method, preprocessing method thereof and image correction circuit
US20050052476A1 (en) Display color adjust
US7106345B2 (en) Mechanism for color-space neutral (video) effects scripting engine

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant