KR20030019797A - Rgb format converter for image processing - Google Patents

Rgb format converter for image processing Download PDF

Info

Publication number
KR20030019797A
KR20030019797A KR1020010053123A KR20010053123A KR20030019797A KR 20030019797 A KR20030019797 A KR 20030019797A KR 1020010053123 A KR1020010053123 A KR 1020010053123A KR 20010053123 A KR20010053123 A KR 20010053123A KR 20030019797 A KR20030019797 A KR 20030019797A
Authority
KR
South Korea
Prior art keywords
rgb
image processing
conversion circuit
adders
ycbcr
Prior art date
Application number
KR1020010053123A
Other languages
Korean (ko)
Other versions
KR100416229B1 (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 KR10-2001-0053123A priority Critical patent/KR100416229B1/en
Publication of KR20030019797A publication Critical patent/KR20030019797A/en
Application granted granted Critical
Publication of KR100416229B1 publication Critical patent/KR100416229B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Image Communication Systems (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

PURPOSE: An RGB conversion circuit in a color image processing system is provided to convert YCbCr into RGB with only serial connection of adders without having bit extension and multipliers. CONSTITUTION: An RGB conversion circuit in a color image processing system, which converts YCbCr format into RGB format includes 2M sign bit extension units, 3M adders(100), and M NOT-gates(200). The 2M sign bit extension units shift bit values of YCbCr component to the right n times and extend sign bits. The 3M adders are connected to the sign bit extension units and approximate the bit values, shifted to the right n times, to an added value of the bit values. The M NOT-gates are connected to the 3M adders.

Description

컬러 영상 처리 시스템에서의 알.지.비 변환 회로{RGB FORMAT CONVERTER FOR IMAGE PROCESSING}R.G./N. Conversion circuit in color image processing system {RGB FORMAT CONVERTER FOR IMAGE PROCESSING}

본 발명은 RGB 변환 회로에 관한 것으로, 특히, 컬러 영상 처리를 위한 표준 포맷인 YCbCr 포맷을 또 다른 표준 포맷인 RGB 포맷으로 실시간 변환시키는데 적합한 컬러 영상 처리 시스템에서의 RGB 변환 회로에 관한 것이다.The present invention relates to an RGB conversion circuit, and more particularly, to an RGB conversion circuit in a color image processing system suitable for real-time conversion of the YCbCr format, which is a standard format for color image processing, to an RGB format, which is another standard format.

통상적인 YCbCr-RGB 변환기는 자체의 변환 행렬내의 계수를 근사화하여 곱셈기와 덧셈기의 조합을 통해 구현된다.A typical YCbCr-RGB converter is implemented through a combination of multipliers and adders by approximating the coefficients in their transformation matrix.

그러나, 이러한 구현 방식에서는 곱셈기가 필수적으로 구비되어야만 하고, 부동 소수점 연산 과정이 필요한 바, 연산 시간과 소프트웨어 개발 시간이 필요 이상 늘어난다는 문제가 제기되었다.However, in such an implementation method, a multiplier must be provided and a floating point arithmetic process is required, which increases computation time and software development time.

본 발명은 상술한 문제들을 해결하기 위해 안출한 것으로, 2진수 체계의 특성을 이용하여 각 비트의 교차 연결, 비트 확장, 곱셈기 없이 덧셈기의 직렬 연결만으로 YCbCr-RGB 변환을 구현하도록 한 컬러 영상 처리 시스템에서의 RGB 변환 회로를 제공하는데 그 목적이 있다.The present invention has been made to solve the above-described problems, color image processing system to implement the YCbCr-RGB conversion only by the serial connection of the adder without cross linking, bit expansion, multiplier of each bit using the characteristics of the binary system Its purpose is to provide an RGB conversion circuit in.

이러한 목적을 달성하기 위한 본 발명은, YCbCr 포맷을 RGB 포맷으로 변환하는 컬러 영상 처리 시스템에서의 RGB 변환 회로에 있어서, YCbCr 성분의 비트값을 n회 우측으로 시프트하고 부호 비트 확장하는 2M개의 부호 비트 확장 수단과; 부호 비트 확장 수단과 연결되며, n회 우측으로 시프트한 비트값 간을 상호 덧셈값으로 근사화하는 3M개의 덧셈기와; 3M개의 덧셈기와 연결되는 M개의 NOT-게이트로 이루어지는 것을 특징으로 하는 컬러 영상 처리 시스템에서의 RGB 변환 회로를 제공한다.In order to achieve the above object, the present invention provides an RGB conversion circuit in a color image processing system that converts a YCbCr format into an RGB format, wherein 2M code bits shift the bit value of the YCbCr component to the right by n times and sign-bit extend. Expansion means; 3M adders connected to the sign bit expansion means and approximating the bit values shifted to the right n times by mutual addition values; An RGB conversion circuit in a color image processing system comprising M NOT-gates connected to 3M adders is provided.

도 1은 본 발명의 바람직한 실시예에 따른 RGB 변환 회로도.1 is an RGB conversion circuit diagram according to a preferred embodiment of the present invention.

<도면의 주요 부분에 대한 부호의 설명><Explanation of symbols for the main parts of the drawings>

100 : 덧셈기100: adder

200 : NOT 게이트200: NOT gate

이하, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 대하여 상세하게 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail a preferred embodiment of the present invention.

먼저, 본 발명은 YCbCr-RGB 변환 행렬에서 각 계수들과 변수간의 곱셈을, 1.0과 변수간의 곱셈값을 우측으로 n회 시프트한 것간의 상호 덧셈으로 근사화시킨다는 것으로, 이러한 기술적 사상으로부터 본 발명의 목적으로 하는 바를 용이하게 달성할 수 있을 것이다.First, the present invention approximates the multiplication between the coefficients and the variables in the YCbCr-RGB transformation matrix by mutual addition between shifting the multiplication value between 1.0 and the variable to the right n times. It will be easy to achieve what is meant by.

도 1은 본 발명의 바람직한 실시예에 따른 RGB 변환 회로도로서,YCbCr포맷(Cb, Cr, Y), 부호 비트 확장기(w3, w4, w1, w7), 6개의 덧셈기(100), 2개의 NOT 게이트(200), 그리고, RGB 포맷(R, G, B)으로 구성된다.1 is a RGB conversion circuit according to an embodiment of the present invention, YCbCr format (Cb, Cr, Y), the sign bit expander (w 3, w 4, w 1, w 7), 6 adders 100, It consists of two NOT gates 200 and RGB formats (R, G, B).

이러한 도 1의 하드웨어 구조를 변환 행렬 형태로 표현하면 다음 수학식 1과 같다.When the hardware structure of FIG. 1 is expressed in the form of a transformation matrix, Equation 1 is obtained.

R = 1.0Y + 0.0Cb + 1.0CrR = 1.0Y + 0.0Cb + 1.0Cr

G = 1.0·Y - (w3+w4)·Cb - (w1+w7)·CrG = 1.0 Y-(w 3 + w 4 ) Cb-(w 1 + w 7 ) Cr

B = 1.0·Y + 1.0·CbB = 1.0 Y + 1.0 Cb

이하에서는, 수학식 1과 같은 본 발명에 따른 RGB 변환 회로를 나타내는 변환 행렬을 구현하는 과정을 보다 구체적으로 설명하기로 한다Hereinafter, a process of implementing the conversion matrix representing the RGB conversion circuit according to the present invention as shown in Equation 1 will be described in more detail.

먼저, 일반적인 YCbCr-RGB 변환 행렬은 다음 수학식 2와 같이 표현될 수 있다.First, a general YCbCr-RGB conversion matrix may be expressed as Equation 2 below.

R = 1.0·Y + 0.0·Cb + 1.0·CrR = 1.0 Y + 0.0 Cb + 1.0 Cr

G = 1.0·Y - 0.1864·Cb - 0.5085·CrG = 1.0 Y-0.1864 Cb-0.5085 Cr

B = 1.0·Y + 1.0·CbB = 1.0 Y + 1.0 Cb

이러한 수학식 2를 1.0과 변수간의 곱셈값을 우측으로 n회 시프트한 것간의 상호 덧셈으로 근사화시킨다.Equation 2 is approximated by mutual addition between 1.0 and a multiplication of the variable n times to the right.

예를 들어, 0.5625·Y는 1.0·Y를 1회 우측으로 시프트한 경우와 4회 우측으로 시프트한 경우간의 합으로 파악될 수 있다. 이때, 비어지게 되는 상위 비트들은 최고차 비트로 채워 넣는 부호 비트 확장으로 구현한다. 이는 다음 수학식 3으로 표현될 수 있다.For example, 0.5625 · Y can be regarded as the sum of the case where 1.0 · Y is shifted to the right once and the case of shifting to the right four times. At this time, the upper bits that become empty are implemented by sign bit extension filling the highest order bits. This can be expressed by the following equation (3).

0.5625·Y = 0.5·Y + 0.0625·Y0.5625 Y = 0.5 Y + 0.0625 Y

여기서, 우측으로 1회 시프트한 경우와 우측으로 4회 시프트한 경우를 살펴보면, 1회 우측으로 시프트할 때마다 2-1씩 변수를 곱하는 것과 같은 효과를 가짐을 알 수 있다.Here, looking at the case of shifting to the right once and the case of shifting to the right four times, it can be seen that the effect of multiplying the variable by 2 −1 every time the shift to the right one time is performed.

따라서, n회 우측으로 시프트하고 부호 비트 확장을 한 경우를 wn이라 가정하면, 수학식 3은 다음 수학식 4와 같이 변환될 수 있다.Accordingly, assuming that w n is shifted to the right n times and code bit extended, w3 may be converted to the following equation (4).

0.5625·Y = w1·Y + w4·Y 0.5625 · Y = w 1 · Y + w 4 · Y

본 발명에서는 8비트 YCbCr 포맷을 대상으로 하고 있으므로 n이 1부터 7까지의 값을 가질 때 wn값을 살펴보면 다음 표 1과 같다.In the present invention, since the 8-bit YCbCr format is targeted, the value of w n when n has a value from 1 to 7 is shown in Table 1 below.

w1 w 1 w2 w 2 w3 w 3 w4 w 4 w5 w 5 w6 w 6 w7 w 7 계수값Counting value 0.50.5 0.250.25 0.1250.125 0.06250.0625 0.031250.03125 0.0156250.015625 0.00781250.0078125

따라서, 수학식 2에 나타나는 YCbCr-RGB 변환식은, 0.1864의 경우 0.125와 0.0625와의 합인 0.1875로 근사화 될 수 있고, 0.5085는 0.5와 0.0078125로 근사화 될 수 있는 바, 상술한 바와 같은 수학식 1로 구현될 수 있는 것이다.Accordingly, the YCbCr-RGB conversion equation shown in Equation 2 may be approximated to 0.1875, which is a sum of 0.125 and 0.0625 for 0.1864, and 0.5085 may be approximated to 0.5 and 0.0078125, and thus may be implemented as Equation 1 as described above. It can be.

이상 설명한 기술 사상을 토대로 YCbCr-RGB 변환기를 VHDL 코드의 합성을 통해 구현할 수 있을 것이다.Based on the technical idea described above, the YCbCr-RGB converter can be implemented by synthesizing the VHDL code.

이상, 본 발명을 실시예에 근거하여 구체적으로 설명하였지만, 본 발명은 이러한 실시예에 한정되는 것이 아니라, 그 요지를 벗어나지 않는 범위내에서 여러 가지 변형이 가능한 것은 물론이다.As mentioned above, although this invention was concretely demonstrated based on the Example, this invention is not limited to this Example, Of course, various changes are possible within the range which does not deviate from the summary.

따라서, 본 발명은 YCbCr-RGB 변환을 FPGA 상에서 효과적으로 구현할 수 있으며, 부동 소수점 연산 과정이 생략되므로 연산 시간과 소프트웨어 개발 시간을 줄일 수 있는 효과가 있다.Therefore, the present invention can effectively implement the YCbCr-RGB conversion on the FPGA, and since the floating point operation is omitted, the operation time and software development time can be reduced.

Claims (2)

YCbCr 포맷을 RGB 포맷으로 변환하는 컬러 영상 처리 시스템에서의 RGB 변환 회로에 있어서,An RGB conversion circuit in a color image processing system for converting a YCbCr format into an RGB format, YCbCr 성분의 비트값을 n회(n은 1 내지 7) 우측으로 시프트하고 부호 비트 확장하는 2M개의 부호 비트 확장 수단과;2M sign bit expansion means for shifting the bit value of the YCbCr component n times (n is 1 to 7) to the right and sign bit expanding; 상기 부호 비트 확장 수단과 연결되며, 상기 n회 우측으로 시프트한 비트값 간을 상호 덧셈값으로 근사화하는 3M개의 덧셈기와;3M adders connected to the code bit expansion means and approximating the bit values shifted to the right n times by mutual addition values; 상기 3M개의 덧셈기와 연결되는 M개의 NOT-게이트로 이루어지는 것을 특징으로 하는 컬러 영상 처리 시스템에서의 RGB 변환 회로.RGB conversion circuit in a color image processing system comprising M NOT-gates connected to the 3M adders. 제 1 항에 있어서,The method of claim 1, 상기 RGB 변환 회로의 변환 행렬은,The conversion matrix of the RGB conversion circuit is R = 1.0·Y + 0.0·Cb + 1.0·CrR = 1.0 Y + 0.0 Cb + 1.0 Cr G = 1.0·Y - (w3+w4)·Cb - (w1+w7)·CrG = 1.0 Y-(w 3 + w 4 ) Cb-(w 1 + w 7 ) Cr B = 1.0·Y + 1.0·CbB = 1.0 Y + 1.0 Cb 로 구현되는 것을 특징으로 하는 컬러 영상 처리 시스템에서의 RGB 변환 회로.RGB conversion circuit in a color image processing system, characterized in that implemented by.
KR10-2001-0053123A 2001-08-31 2001-08-31 Rgb format converter for image processing KR100416229B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2001-0053123A KR100416229B1 (en) 2001-08-31 2001-08-31 Rgb format converter for image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2001-0053123A KR100416229B1 (en) 2001-08-31 2001-08-31 Rgb format converter for image processing

Publications (2)

Publication Number Publication Date
KR20030019797A true KR20030019797A (en) 2003-03-07
KR100416229B1 KR100416229B1 (en) 2004-01-31

Family

ID=27721761

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2001-0053123A KR100416229B1 (en) 2001-08-31 2001-08-31 Rgb format converter for image processing

Country Status (1)

Country Link
KR (1) KR100416229B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030048674A (en) * 2001-12-12 2003-06-25 삼성전자주식회사 Digital signal processing system and processing method
KR100800740B1 (en) * 2006-02-11 2008-02-01 삼성전자주식회사 Apparatus and method for converting red, green, blue data in wirelessterminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR0114433Y1 (en) * 1991-11-19 1998-04-16 백중영 Video signal converting circuit
KR0126108B1 (en) * 1994-05-27 1997-12-19 아더 와이. 씨. 치아오 Color space conversion method & its apparatus
JPH11164160A (en) * 1997-11-28 1999-06-18 Matsushita Electric Ind Co Ltd Image processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030048674A (en) * 2001-12-12 2003-06-25 삼성전자주식회사 Digital signal processing system and processing method
KR100800740B1 (en) * 2006-02-11 2008-02-01 삼성전자주식회사 Apparatus and method for converting red, green, blue data in wirelessterminal

Also Published As

Publication number Publication date
KR100416229B1 (en) 2004-01-31

Similar Documents

Publication Publication Date Title
US5506799A (en) Booth array multiplying circuit having carry correction
KR100416229B1 (en) Rgb format converter for image processing
JP2938115B2 (en) Color signal conversion circuit
KR100324313B1 (en) Multiplier that operates on n bits and n / 2 bits
US5153850A (en) Method and apparatus for modifying two&#39;s complement multiplier to perform unsigned magnitude multiplication
US6415311B1 (en) Sign extension circuit and method for unsigned multiplication and accumulation
US6161119A (en) Hardware multiplication of scaled integers
US6028590A (en) Color conversion for processors
JPH0645948A (en) Orthogonal converter and reverse orthogonal converter
CN210666873U (en) Color space conversion circuit
JP4023267B2 (en) Color image processing apparatus and color image processing method
US5831687A (en) Color video signal processing method and apparatus for converting digital color difference component signals into digital RGB component signals by a digital conversion
Hoang et al. Efficient LUT-based truncated multiplier and its application in RGB to YCbCr Color space conversion
KR100536703B1 (en) Color signal conversion apparatus and method for video
CN109636863B (en) Color space conversion circuit
KR100431354B1 (en) The multiplier circuit
JPH0619686A (en) Multiplying circuit and picture processor equipped with the same
KR0157527B1 (en) Matrix embodiment circuit of image signal
KR100200610B1 (en) Color compensation method and circuit due to luminance transform
Smitha et al. Low power realization and synthesis of higher-order FIR filters using an improved common subexpression elimination method
KR0185437B1 (en) Multiplier having double edge clock structure and digital color space converter
JPH04149728A (en) Rom type digital arithmetic circuit
KR0135717B1 (en) Digital color space converter
JPH02276349A (en) Code converter
JPH11212764A (en) Code conversion circuit

Legal Events

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

Payment date: 20090102

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee