[go: up one dir, main page]

JP2000175061A - Color transformation processing method and device - Google Patents

Color transformation processing method and device

Info

Publication number
JP2000175061A
JP2000175061A JP10346429A JP34642998A JP2000175061A JP 2000175061 A JP2000175061 A JP 2000175061A JP 10346429 A JP10346429 A JP 10346429A JP 34642998 A JP34642998 A JP 34642998A JP 2000175061 A JP2000175061 A JP 2000175061A
Authority
JP
Japan
Prior art keywords
color
color conversion
input
component
color space
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
JP10346429A
Other languages
Japanese (ja)
Other versions
JP3796990B2 (en
Inventor
Noriaki Seki
範顕 関
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP34642998A priority Critical patent/JP3796990B2/en
Publication of JP2000175061A publication Critical patent/JP2000175061A/en
Application granted granted Critical
Publication of JP3796990B2 publication Critical patent/JP3796990B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an excellent device to transform an input color in a prescribed color space into an output color in other color space by separating an input color image into a luminance component and a chrominance component, using the chrominance component to obtain a color transformation function where the luminance component is an input and an output color space is an output, and applying the luminance component to the color transformation function. SOLUTION: A color transformation processor consists of an input buffer 2, an output buffer 3, a color transformation function decision means 1 and a color transformation means 22. The color transformation processor receives a color image where a chrominance component is down-sampled and stores an input color space value to the input buffer 2 tentatively. The color transformation function decision means 1 uses the chrominance component other than a luminance component to obtain a color transformation function, where the luminance component is an input and an output color space is an output. The color transformation means 22 applies the color transformation function obtained by the color transformation function decision means 1 to the luminance component of a sampling factor to transform the color.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、ある色空間の入力
色を別の色空間の出力色に変換するカラー画像の色変換
処理方法及び装置に係り、特に、圧縮された画像を伸長
してフルカラー画像に変換するための色変換処理方法及
び装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color image processing method and apparatus for converting an input color in a certain color space into an output color in another color space, and more particularly, to a method for expanding a compressed image. The present invention relates to a color conversion processing method and apparatus for converting into a full-color image.

【0002】更に詳しくは、本発明は、カラー画像の色
空間を明るさ成分とクロミナンス成分とに分離し且つク
ロミナンス成分をダウンサンプリングして圧縮された画
像を伸長してフルカラー画像に変換する色変換処理方法
及び装置に関する。
More specifically, the present invention relates to a color conversion for separating a color space of a color image into a brightness component and a chrominance component, and down-sampling the chrominance component to expand a compressed image to convert it into a full-color image. The present invention relates to a processing method and apparatus.

【0003】[0003]

【従来の技術】近年の情報処理及び情報通信技術の発展
に伴ない、キャラクタ・ベースのコンピュータ・データ
の他に、画像や音声などの各種データもコンピュータ・
システム上で扱うようになってきた。
2. Description of the Related Art With the recent development of information processing and information communication technology, in addition to character-based computer data, various types of data such as images and voices are also stored in computer data.
It began to be handled on the system.

【0004】ところが、写真などをデジタル化したフル
カラー画像はデータ量が大きいため、例えば画像データ
を記憶装置に蓄積する場合には大きな記憶容量を要して
しまう。あるいは、LAN(Local Area N
etwork)などのネットワークを介して独立したコ
ンピュータ・システム間で画像データを伝送するような
場合には、ネットワーク負荷が高く、帯域幅を消費した
り転送時間などが大きくなるなどの欠点がある。そこ
で、データ量を削減するために、最近では、JPEG
(Joint Photographic Expe
rts Group)などの非可逆形式の圧縮画像フォ
ーマットが一般的に用いられている。
However, since a full-color image obtained by digitizing a photograph or the like has a large data amount, a large storage capacity is required when, for example, storing image data in a storage device. Alternatively, LAN (Local Area N)
In the case where image data is transmitted between independent computer systems via a network such as a network, the network load is high, the bandwidth is consumed, and the transfer time is increased. To reduce the amount of data, recently, JPEG
(Joint Photographic Expe
An irreversible compressed image format such as “rts Group” is generally used.

【0005】JPEGについては、例えば、James
D. Murray and William va
nRyper著”Encyclopedia of G
raphics File Formats”, O’
Reilly & Associates, 199
4, p.159−171などに記載されている。
Regarding JPEG, for example, James
D. Murray and William va
"Encyclopedia of G" by nRyper
graphics File Formats ", O '
Reilly & Associates, 199
4, p. 159-171.

【0006】ここで、JPEGフォーマットでの圧縮伸
長処理について、図1を参照しながら説明する。
Here, the compression / expansion processing in the JPEG format will be described with reference to FIG.

【0007】原画像データすなわち非圧縮のカラー画像
に対して、まず色変換部53において色変換が施され
る。色変換とは、ある特定の色空間(例えばRGB)の
入力色を別の色空間の出力色(例えばYCrCb)に変
換する処理のことを言う。
The original image data, that is, the uncompressed color image is first subjected to color conversion in the color conversion section 53. Color conversion refers to a process of converting an input color in a specific color space (for example, RGB) into an output color (for example, YCrCb) in another color space.

【0008】次いで、ダウンサンプリング部54におい
てダウンサンプリングを行なう。JPEGフォーマット
などでは、データ圧縮率を高めるために、カラー画像の
色空間を、明るさ成分と明るさ以外のクロミナンス成分
とに分離して、人間の視覚には劣化が目立ちにくいクロ
ミナンス成分の画素数を一般的に4分の1あるいは2分
の1にダウンサンプリングすることが行なわれている。
YCrCb形式の色空間の場合、明るさ成分はYに該当
し、明るさ以外のクロミナンス成分はCrとCbに該当
する。図1において、破線で囲われた部分50は、色変
換処理装置を構成する。
Next, down-sampling is performed in the down-sampling section 54. In the JPEG format, the color space of a color image is separated into a brightness component and a chrominance component other than brightness in order to increase the data compression rate. Is generally down-sampled to a quarter or a half.
In the case of the YCrCb format color space, the brightness component corresponds to Y, and the chrominance components other than brightness correspond to Cr and Cb. In FIG. 1, a portion 50 surrounded by a broken line constitutes a color conversion processing device.

【0009】次いで、ダウンサンプリングされた画像デ
ータは、n×n(例えば8×8)画素ブロックを1つの
処理単位として、DCT(Discrete Cosi
neTransform:離散コサイン変換)、量子
化、及び符号化という手順に従って符号化圧縮される。
ここで、DCTとは、画素ブロックに対してDCT関数
を適用して、画像に関する情報を周波数成分に関する情
報に変換する直交変換符号方式のことであり、DCT部
55によって実行される。また、量子化とは、各DCT
係数をそれぞれに対応する量子化閾値で逐次除算して量
子化する処理のことであり、高い符号化効率を得るため
に量子化部56において行なわれる。また、符号化と
は、所定の符号テーブルを用いて、量子化された各DC
T係数の系列に符号割当てを施す処理のことであり、符
号化部57において行なわれる。符号化の一例はハフマ
ン符号化である。
[0009] Next, the down-sampled image data is processed by using a DCT (Discrete Cos
neTransform (discrete cosine transform), quantization, and encoding.
Here, the DCT is an orthogonal transform coding system that converts information about an image into information about a frequency component by applying a DCT function to a pixel block, and is executed by the DCT unit 55. In addition, quantization refers to each DCT
This is a process in which coefficients are sequentially divided by corresponding quantization thresholds and quantized, and are performed in the quantization unit 56 in order to obtain high encoding efficiency. In addition, encoding means that each of the quantized DCs is encoded using a predetermined code table.
This is a process of assigning a code to a series of T coefficients, and is performed by the encoding unit 57. One example of encoding is Huffman encoding.

【0010】符号化部57が出力するJPEG圧縮カラ
ー画像は、ハード・ディスク装置などの大容量記憶装置
に蓄積されたり、あるいは、LANなどの伝送媒体を介
して他の装置に転送される。
The JPEG compressed color image output from the encoding unit 57 is stored in a large-capacity storage device such as a hard disk device, or transferred to another device via a transmission medium such as a LAN.

【0011】一方、JPEGフォーマットで圧縮された
画像を伸長してフルカラー画像に変換する場合には、上
述の符号化時とはほぼ逆の手順により実現される。すな
わち、復号化部58において符号化圧縮画像を復号化し
て量子化されたDCT係数に戻し、これを逆量子化部5
9において逆量子化し、さらに、IDCT部60におい
てIDCT(逆離散コサイン変換)を適用して、元のn
×n画素ブロックの画像データに復元する。
On the other hand, when an image compressed in the JPEG format is decompressed and converted into a full-color image, it is realized by a procedure substantially opposite to that in the above-described encoding. That is, the decoding unit 58 decodes the coded compressed image to return to the quantized DCT coefficients,
9 and inverse IDCT (inverse discrete cosine transform) in the IDCT unit 60 to obtain the original n
Restore to image data of × n pixel blocks.

【0012】次いで、アップサンプリングを行なう。こ
れは、JPEGフォーマットで圧縮された画像はクロミ
ナンス成分がダウンサンプリングされているからである
(前述)。アップサンプリング部61において、4倍あ
るいは2倍にアップサンプリングすることで、クロミナ
ンス成分は明るさ成分と同じ画素数に戻される。
Next, upsampling is performed. This is because the chrominance component is downsampled in the image compressed in the JPEG format (described above). The chrominance component is returned to the same number of pixels as the brightness component by up-sampling four or two times in the up-sampling unit 61.

【0013】従来は、アップサンプリングには、画素を
コピーするだけの単純な方式を用いるのが一般的であっ
た。
Conventionally, a simple method of copying pixels has been generally used for upsampling.

【0014】アップサンプリングの後、下式(1)に示
すような変換関数を用いて色空間変換を行なうことによ
り、YCrCb色空間値をRGB色空間値に変換する
(但し、YCrCb、RGBの各色空間値は、ともに8
ビットの符号なし整数で表されているものとする)。
After up-sampling, the color space conversion is performed by using a conversion function as shown in the following equation (1), thereby converting the YCrCb color space value into the RGB color space value (however, each color of YCrCb and RGB is converted). Spatial values are both 8
Bit unsigned integer).

【0015】[0015]

【数1】 (Equation 1)

【0016】しかしながら、従来方式では4分の1にダ
ウンサンプリング(サンプリング・ファクタSF=4)
されている場合には、アップサンプリングして4画素分
の色空間変換をするために、1組のクロミナンス成分を
例えば3回ずつ計6回コピーしていたので、コピーする
という無駄な処理があった。
However, in the conventional method, downsampling is reduced to one fourth (sampling factor SF = 4).
In this case, one set of chrominance components is copied three times, for example, six times in total in order to perform upsampling and color space conversion for four pixels. Was.

【0017】また、上式(1)に記述した演算を遂行す
るためには、数多くの乗算を実行しなければならず、計
算の負荷が高かった。演算量が多ければ、必然的に、演
算時間が長くなる。また、色空間変換処理をLSI(L
arge Scale Integration)で実
装した場合、乗算器はより多くのゲート数を要するた
め、回路規模が肥大化し、製造コストも高くなる。
Further, in order to perform the operation described in the above equation (1), a large number of multiplications have to be performed, and the calculation load is high. If the amount of calculation is large, the calculation time inevitably becomes long. Further, the color space conversion processing is performed by an LSI (L
In the case of implementation using “Arrange Scale Integration”, since the multiplier requires a larger number of gates, the circuit scale is enlarged and the manufacturing cost is increased.

【0018】[0018]

【発明が解決しようとする課題】本発明の目的は、ある
特定の色空間(例えばRGB)の入力色を別の色空間の
出力色(例えばYCrCb)に変換するための、優れた
色変換処理方法及び装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide an excellent color conversion process for converting an input color in one specific color space (for example, RGB) into an output color (for example, YCrCb) in another color space. It is to provide a method and an apparatus.

【0019】本発明の更なる目的は、圧縮された画像を
伸長してフルカラー画像に変換するための、優れた色変
換処理方法及び装置を提供することにある。
It is a further object of the present invention to provide an excellent color conversion processing method and apparatus for decompressing a compressed image and converting it to a full color image.

【0020】本発明の更なる目的は、カラー画像の色空
間を明るさ成分とクロミナンス成分とに分離し且つクロ
ミナンス成分をダウンサンプリングして圧縮された画像
を伸長してフルカラー画像に変換する、優れた色変換処
理方法及び装置を提供することにある。
A further object of the present invention is to separate the color space of a color image into a brightness component and a chrominance component, downsample the chrominance component, expand the compressed image, and convert it to a full-color image. To provide a color conversion processing method and apparatus.

【0021】本発明の更なる目的は、JPEGフォーマ
ットで圧縮された画像を伸長した後、高速且つ低コスト
でフルカラー画像に変換することができる、色変換処理
方法及び装置を提供することにある。
It is a further object of the present invention to provide a color conversion processing method and apparatus which can convert an image compressed in the JPEG format into a full-color image at high speed and at low cost after decompression.

【0022】[0022]

【課題を解決するための手段及び作用】本発明は、上記
課題を参酌してなされたものであり、その第1の側面
は、ある特定の色空間の入力色を別の色空間の出力色に
変換する色変換処理方法又は装置であって、入力カラー
画像は明るさ成分Lとクロミナンス成分Cに分離され且
つクロミナンス成分Cがダウンサンプリングされてお
り、(a)入力色空間値の明るさ成分Lを入力とし出力
色空間値を出力とする色変換関数を、入力色空間値のう
ち明るさ成分L以外のクロミナンス成分Cを用いて求め
る色変換関数決定ステップ又は手段と、(b)サンプリ
ング・ファクタSF個の明るさ成分Lを前記色変換関数
決定ステップにより求められた色変換関数に適用して色
変換する色変換ステップ又は手段と、を備えることを特
徴とするものである。
SUMMARY OF THE INVENTION The present invention has been made in consideration of the above problems, and a first aspect of the present invention is to convert an input color in a specific color space into an output color in another color space. Wherein the input color image is separated into a brightness component L and a chrominance component C, and the chrominance component C is downsampled, and (a) a brightness component of the input color space value A color conversion function determining step or means for obtaining a color conversion function using L as an input and an output color space value as an output using a chrominance component C other than the brightness component L in the input color space value; A color conversion step or means for performing color conversion by applying the brightness components L of the factor SF to the color conversion function obtained in the color conversion function determination step.

【0023】本発明の第1の側面に係る色変換処理方法
又は装置は、入力カラー画像として例えばJPEG(J
oint Photographic Experts
Group)フォーマットで圧縮された画像を扱うこ
とができる。
The color conversion processing method or apparatus according to the first aspect of the present invention uses, for example, JPEG (JPEG) as an input color image.
point Photographic Experts
(Group) format.

【0024】また、本発明の第2の側面は、ある特定の
色空間の入力色を別の色空間の出力色に変換する色変換
処理方法又は装置であって、入力画像は第1の成分と第
2の成分に分離され且つ第2の成分がダウンサンプリン
グされており、(a)入力色空間値の第1の成分を入力
とし出力色空間値を出力とする色変換関数を、入力色空
間値の第2の成分を用いて求める色変換関数決定ステッ
プ又は手段と、(b)サンプリング・ファクタSF個の
第1の成分を前記色変換関数決定ステップにより求めら
れた色変換関数に適用して色変換する色変換ステップ又
は手段と、を備えることを特徴とするものである。
According to a second aspect of the present invention, there is provided a color conversion method or apparatus for converting an input color in a specific color space into an output color in another color space, wherein the input image has a first component. And (a) a color conversion function that takes the first component of the input color space value as an input and outputs the output color space value as an input color A color conversion function determining step or means determined by using the second component of the spatial value; and (b) applying the first components of the SF sampling factors to the color conversion function determined by the color conversion function determining step. And a color conversion step or means for color conversion.

【0025】[0025]

【作用】本発明は、上式(1)を下式(2)に変換でき
る性質を利用したものである。
The present invention utilizes the property that the above equation (1) can be converted into the following equation (2).

【0026】[0026]

【数2】 (Equation 2)

【0027】上式(2)を、より一般的に、明るさ成分
とクロミナンス成分とに分離された入力色空間から出力
色空間への変換と考えると、下式(3)のように表され
る。
If the above equation (2) is more generally considered to be a conversion from an input color space separated into a brightness component and a chrominance component to an output color space, it can be expressed as the following equation (3). You.

【0028】[0028]

【数3】 (Equation 3)

【0029】本発明では、JPEGなどのクロミナンス
成分Cがダウンサンプリングされているカラー画像にお
いて、明るさ成分Lを入力とし出力色空間値を出力とす
る色変換関数を、伸長時に1組のクロミナンス成分Cか
ら求める色変換関数決定ステップ(又は手段)が備えら
れている。そして、色変換ステップ(又は手段)におい
て、サンプリング・ファクタSF個の明るさ成分Lを、
この色変換関数に適用することで、色空間変換が達成さ
れる。
According to the present invention, in a color image in which a chrominance component C such as JPEG is down-sampled, a color conversion function having a brightness component L as an input and an output color space value as an output is converted into a set of chrominance components at the time of decompression. A step (or means) for determining a color conversion function obtained from C is provided. Then, in the color conversion step (or means), the brightness components L of the sampling factors SF are
Color space conversion is achieved by applying this color conversion function.

【0030】本発明によれば、伸長時にアップサンプリ
ングが不要となるため、高速且つ低コストなカラー画像
処理が実現できる訳である。
According to the present invention, since upsampling is not required at the time of decompression, high-speed and low-cost color image processing can be realized.

【0031】本発明のさらに他の目的、特徴や利点は、
後述する本発明の実施例や添付する図面に基づくより詳
細な説明によって明らかになるであろう。
Still other objects, features and advantages of the present invention are:
It will become apparent from the following more detailed description based on the embodiments of the present invention and the accompanying drawings.

【0032】[0032]

【発明の実施の形態】以下、図面を参照しながら本発明
の実施例を詳解する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0033】《実施例1》まず、YCrCb色空間にお
いて、クロミナンス成分Cr及びCbがそれぞれ明るさ
成分Yに対して水平垂直両方向に2分の1ずつ計4分の
1にダウンサンプリングされた(言い換えればサンプリ
ング・ファクタSFが4)JPEGフォーマットの圧縮
画像をRGBフルカラー画像に伸長する場合を例にして
説明する。
Embodiment 1 First, in the YCrCb color space, the chrominance components Cr and Cb are down-sampled by a factor of two each in both the horizontal and vertical directions with respect to the brightness component Y (in other words, a quarter). For example, a case will be described in which the sampling factor SF is 4) a compressed image in the JPEG format is expanded into an RGB full-color image.

【0034】本明細書中では、逆離散コサイン変換(I
nverse DiscreteCosine Tra
nsform:IDCT)して復元されたされた8×8
画素ブロックを、最小符号化単位(Minimum C
oded Unit:以下、”MCU”と呼ぶ)と呼ぶ
ことにする。
In this specification, the inverse discrete cosine transform (I
nverse DiscreteCosine Tra
nsform: IDCT) and restored 8 × 8
A pixel block is defined as a minimum coding unit (Minimum C)
oded Unit (hereinafter, referred to as “MCU”).

【0035】図2に示すように、圧縮前のカラー画像の
RGB各成分は、それぞれ16×16画素ブロック、す
なわち4個のMCUで構成されている。これらRGB原
画像の16×16画素ブロックに対して色空間変換を施
した直後のYCrCb色空間は、4個のMCUからなる
明るさ成分Yと、4個のMCUからなるクロミナンス成
分とで構成される。さらに、ダウンサンプリングを施す
ことにより、クロミナンス成分CrとCbは、それぞれ
1個のMCUにダウンサイズされる。
As shown in FIG. 2, each of the RGB components of the color image before compression is composed of a 16 × 16 pixel block, that is, four MCUs. The YCrCb color space immediately after the color space conversion is performed on the 16 × 16 pixel block of the RGB original image includes a brightness component Y composed of four MCUs and a chrominance component composed of four MCUs. You. Further, by performing downsampling, the chrominance components Cr and Cb are downsized to one MCU each.

【0036】図3には、本発明の実施に供される色変換
処理装置100の構成を概略的に示している。色変換処
理装置100は、入力バッファ2と、出力バッファ3
と、色変換関数決定手段1と、色変換手段22とで構成
される。以下、各部について説明する。
FIG. 3 schematically shows a configuration of a color conversion processing apparatus 100 used in the embodiment of the present invention. The color conversion processing device 100 includes an input buffer 2 and an output buffer 3
And a color conversion function determining unit 1 and a color conversion unit 22. Hereinafter, each unit will be described.

【0037】色変換処理装置100は、クロミナンス成
分Cがダウンサンプリングされたカラー画像を入力とし
て持ち、入力色空間値は入力バッファ2に一時格納され
る。
The color conversion processing device 100 has as input a color image in which the chrominance component C has been downsampled, and the input color space values are temporarily stored in the input buffer 2.

【0038】色変換関数決定手段1は、明るさ成分L以
外のクロミナンス成分Cを用いて、明るさ成分Lを入力
とし出力色空間値を出力とする色変換関数を求めるよう
になっている。出力色空間がRGB形式であれば、求め
られた色変換関数は上式(2)のように記述される。ま
た、色変換関数を、上式(3)に示したような一般式で
表すこともできる。
The color conversion function determining means 1 uses a chrominance component C other than the brightness component L to obtain a color conversion function that inputs the brightness component L and outputs the output color space value. If the output color space is in the RGB format, the obtained color conversion function is described as in the above equation (2). Further, the color conversion function can be represented by a general expression as shown in the above expression (3).

【0039】色変換手段22は、サンプリング・ファク
タSF個の明るさ成分Lに対して色変換関数決定手段1
により求められた色変換関数を適用することで、入力画
像を色変換するようになっている。
The color conversion means 22 is a color conversion function determining means 1 for the brightness components L of the sampling factor SF.
The color conversion of the input image is performed by applying the color conversion function obtained by (1).

【0040】色変換後の出力色空間値は、出力バッファ
3に一時格納されてから、装置100の外に出力され
る。
The output color space value after the color conversion is temporarily stored in the output buffer 3 and then output outside the device 100.

【0041】図4には、色変換処理装置100が実行す
る色変換処理手順をフローチャートの形式で示してい
る。以下、各ステップについて説明する。
FIG. 4 is a flowchart showing a color conversion processing procedure executed by the color conversion processing apparatus 100. Hereinafter, each step will be described.

【0042】まず、ステップS1で初期化を行う。初期
化処理には、入力バッファ2中に格納された各入力色空
間値Y、Cr、Cbのアドレッシングなどが含まれる。
First, initialization is performed in step S1. The initialization processing includes addressing of the input color space values Y, Cr, and Cb stored in the input buffer 2.

【0043】次いで、ステップS2では、入力された色
空間値について全て色変換したかどうかをチェックす
る。色変換が完了していれば、分岐Yesに進んで、図
4に示す本処理手順を終了する。他方、完了していなけ
れば、分岐Noに抜けて、次ステップS3に進む。
Next, in step S2, it is checked whether or not all of the input color space values have undergone color conversion. If the color conversion has been completed, the process proceeds to Yes, and the processing procedure illustrated in FIG. 4 ends. On the other hand, if not completed, the process goes to the branch No and proceeds to the next step S3.

【0044】ステップS3では、色変換関数決定手段1
が、入力バッファ2から、入力色空間値のうちクロミナ
ンス成分Cr及びCbの各値を取り出して、それぞれの
アドレスを1ずつ進める。
In step S3, the color conversion function determining means 1
Extracts the respective values of the chrominance components Cr and Cb from the input color space value from the input buffer 2, and advances each address by one.

【0045】ステップS4では、色変換関数を決定す
る。本実施例では、色変換関数は上式(2)に基づいて
いるので、クロミナンス成分CrとCbに変換係数をそ
れぞれ掛け合わせて各定数ConstR,Const
G,ConstBを求める必要がある。例えば、Cr=
50、Cb=212とした場合、ConstR=−10
9.356、ConstG=26.796、Const
B=148.848となる。上式(2)に示したような
色変換関数によれば、入力色空間値のうちの明るさ成分
Yのみを入力として、RGB出力色空間を求めることが
できる。
In step S4, a color conversion function is determined. In this embodiment, since the color conversion function is based on the above equation (2), the constants ConstR and ConstR are calculated by multiplying the chrominance components Cr and Cb by the conversion coefficients.
It is necessary to find G and ConstB. For example, Cr =
50, Cb = 212, ConstR = −10
9.356, ConstG = 26.796, Const
B = 148.848. According to the color conversion function as shown in the above equation (2), the RGB output color space can be obtained by using only the brightness component Y of the input color space values as input.

【0046】次いで、ステップS5では、ステップS4
で求めた定数を色変換手段22にセットする。
Next, in step S5, step S4
Is set in the color conversion means 22.

【0047】次いで、ステップS6では、ループ・カウ
ンタiをゼロに初期化する。
Next, in step S6, the loop counter i is initialized to zero.

【0048】次いで、ステップS7では、ループ・カウ
ンタiとサンプリングファクタSF(この例ではSF=
4)とを比較する。ループ・カウンタiの方が小さけれ
ば、次ステップS8に進み、そうでなければステップS
2に復帰して上記と同様の処理を繰り返す。
Next, in step S7, the loop counter i and the sampling factor SF (in this example, SF =
4) is compared. If the loop counter i is smaller, the process proceeds to the next step S8; otherwise, the process proceeds to the step S8.
2 and the same processing as described above is repeated.

【0049】ステップS8では、色変換手段22は入力
バッファ2から明るさ成分Yの値を1個だけ取り出す。
In step S8, the color conversion means 22 takes out only one value of the brightness component Y from the input buffer 2.

【0050】次いで、ステップS9では、取り出した明
るさ成分Yの値を用いて上式(2)に適用して、RGB
出力色空間値を求める。
Next, in step S9, using the value of the extracted brightness component Y and applying it to the above equation (2),
Find output color space values.

【0051】ステップS10では、RGB出力色空間値
を出力バッファ3にセットし、明るさ成分Yの格納位置
を指すアドレスおよびループ・カウンタiをそれぞれ1
ずつ進めた後、ステップS7に復帰して上記と同様の処
理を繰り返す。
In step S10, the RGB output color space value is set in the output buffer 3, and the address indicating the storage position of the brightness component Y and the loop counter i are each set to 1
Then, the process returns to step S7 to repeat the same processing as described above.

【0052】次に、従来例に対する本実施例の改善効果
について説明する。
Next, the improvement effect of the present embodiment over the conventional example will be described.

【0053】図5は、4画素分のRGB出力色空間値を
求めるために必要なオペレーションの主なものとその回
数を、従来例と本実施例とで比較して示した表である。
FIG. 5 is a table showing the main operations required to obtain the RGB output color space values for four pixels and the number of operations in the conventional example and the present embodiment.

【0054】従来例では、クロミナンス成分Cr及びC
bをそれぞれ3回ずつ計6回だけコピーする必要があっ
た。これに対し、本実施例では、コピー回数はゼロであ
る。また、従来例では16回の乗算が必要であったのに
対して、本実施例では4回と大幅に削減できる。
In the conventional example, the chrominance components Cr and C
b had to be copied three times each, for a total of six times. On the other hand, in the present embodiment, the number of times of copying is zero. Further, in the conventional example, 16 multiplications are required, whereas in the present embodiment, the number can be greatly reduced to 4 times.

【0055】《実施例2》第1の実施例ではYCrCb
を成分とする色空間を入力とし、RGBを成分とする色
空間を出力とした場合に特化して説明してきた。これに
対し、第2の実施例では、明るさ成分Lとクロミナンス
成分Cとが分離された任意の色空間(CIEL*a*b
*などを含む)を入力とし、任意の色空間を出力として
いる。
<< Embodiment 2 >> In the first embodiment, YCrCb
Has been specifically described in the case where a color space having a color component as an input and a color space having a color component of RGB as an output. On the other hand, in the second embodiment, an arbitrary color space (CIEL * a * b) in which the brightness component L and the chrominance component C are separated.
*, Etc.) as input and an arbitrary color space as output.

【0056】これは、要言すれば、上式(3)に示され
た任意の色変換関数fCを用いる場合である。
In short, this is a case where an arbitrary color conversion function f C shown in the above equation (3) is used.

【0057】一般に、色変換関数fCは、入力色空間値
の明るさ成分Lに対して緩やかな変化をする傾向があ
る。この性質を利用して、本出願人に既に譲渡されてい
る特願平10−289153号明細書に記載の「色変換
装置」に示した多項式近似によるものを、色変換手段2
2として用いることができる。
Generally, the color conversion function f C tends to change gradually with respect to the brightness component L of the input color space value. Utilizing this property, the color conversion means 2 is obtained by using the polynomial approximation shown in the "color conversion apparatus" described in Japanese Patent Application No. 10-289153 already assigned to the present applicant.
2 can be used.

【0058】[追補]以上、特定の実施例を参照しなが
ら、本発明について詳解してきた。しかしながら、本発
明の要旨を逸脱しない範囲で当業者が該実施例の修正や
代用を成し得ることは自明である。すなわち、例示とい
う形態で本発明を開示してきたのであり、限定的に解釈
されるべきではない。本発明の要旨を判断するために
は、冒頭に記載した特許請求の範囲の欄を参酌すべきで
ある。
[Supplement] The present invention has been described in detail with reference to the specific embodiments. However, it is obvious that those skilled in the art can modify or substitute the embodiment without departing from the spirit of the present invention. That is, the present invention has been disclosed by way of example, and should not be construed as limiting. In order to determine the gist of the present invention, the claims described at the beginning should be considered.

【0059】[0059]

【発明の効果】以上詳記したように、本発明によれば、
ある特定の色空間(例えばRGB)の入力色を別の色空
間の出力色(例えばYCrCb)に変換するための、優
れた色変換処理方法及び装置を提供することができる。
As described above in detail, according to the present invention,
An excellent color conversion processing method and apparatus for converting an input color in a specific color space (for example, RGB) into an output color (for example, YCrCb) in another color space can be provided.

【0060】また、本発明によれば、圧縮された画像を
伸長してフルカラー画像に変換するための、優れた色変
換処理方法及び装置を提供することができる。
Further, according to the present invention, it is possible to provide an excellent color conversion processing method and apparatus for decompressing a compressed image and converting it to a full-color image.

【0061】また、本発明によれば、カラー画像の色空
間を明るさ成分とクロミナンス成分とに分離し且つクロ
ミナンス成分をダウンサンプリングして圧縮された画像
を伸長してフルカラー画像に変換する、優れた色変換処
理方法及び装置を提供することができる。
Further, according to the present invention, there is provided a method for separating a color space of a color image into a brightness component and a chrominance component, down-sampling the chrominance component, expanding the compressed image, and converting the compressed image into a full-color image. Color conversion processing method and apparatus can be provided.

【0062】また、本発明によれば、JPEGフォーマ
ットで圧縮された画像を伸長してフルカラー画像に変換
する、高速且つ低コストな色変換処理方法及び装置を提
供することができる。
Further, according to the present invention, it is possible to provide a high-speed and low-cost color conversion processing method and apparatus for expanding an image compressed in the JPEG format and converting the image into a full-color image.

【0063】本発明では、明るさ成分Lを入力とし出力
色空間値を出力とする色変換関数を、明るさ成分L以外
のクロミナンス成分Cから求めるようにしている。そし
て、サンプリング・ファクタSF個の明るさ成分Lを色
変換関数に適用して、色変換するようになっている。し
たがって、本発明に係る色変換処理方法及び装置によれ
ば、伸長時にアップサンプリングが不要となるため、高
速に色変換処理することができ、且つ、演算量が少ない
低いコストの色変換処理を実現することができる。
In the present invention, a color conversion function that receives a brightness component L as an input and an output color space value as an output is obtained from a chrominance component C other than the brightness component L. Then, color conversion is performed by applying the brightness components L of the sampling factors SF to the color conversion function. Therefore, according to the color conversion processing method and apparatus of the present invention, upsampling is not required at the time of decompression, so that color conversion processing can be performed at high speed, and low-cost color conversion processing with a small amount of calculation is realized. can do.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 JPEG圧縮の手順を示した図である。FIG. 1 is a diagram showing a procedure of JPEG compression.

【図2】 クロミナンス成分のサンプリングを示した図
である。
FIG. 2 is a diagram showing sampling of a chrominance component.

【図3】 本発明の実施に供される色変換処理装置10
0の概略的構成を示したブロック図である。
FIG. 3 is a color conversion processing apparatus 10 provided for implementing the present invention.
FIG. 2 is a block diagram showing a schematic configuration of a zero.

【図4】 本実施例に係る色変換処理装置100おける
処理手順を示したフローチャートである。
FIG. 4 is a flowchart illustrating a processing procedure in the color conversion processing apparatus 100 according to the present embodiment.

【図5】 第1の実施例における演算回数を示した図で
ある。
FIG. 5 is a diagram showing the number of operations in the first embodiment.

【符号の説明】[Explanation of symbols]

1…色変換関数決定手段、2…入力バッファ、3…出力
バッファ、22…色変換手段、100…色変換処理装
置。
DESCRIPTION OF SYMBOLS 1 ... Color conversion function determination means, 2 ... Input buffer, 3 ... Output buffer, 22 ... Color conversion means, 100 ... Color conversion processing device.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】ある特定の色空間の入力色を別の色空間の
出力色に変換する色変換処理方法であって、入力カラー
画像は明るさ成分Lとクロミナンス成分Cに分離され且
つクロミナンス成分Cがダウンサンプリングされてお
り、(a)入力色空間値の明るさ成分Lを入力とし出力
色空間値を出力とする色変換関数を、入力色空間値のう
ち明るさ成分L以外のクロミナンス成分Cを用いて求め
る色変換関数決定ステップと、(b)サンプリング・フ
ァクタSF個の明るさ成分Lを前記色変換関数決定ステ
ップにより求められた色変換関数に適用して色変換する
色変換ステップと、を備えることを特徴とする色変換処
理方法。
1. A color conversion processing method for converting an input color in a specific color space into an output color in another color space, wherein an input color image is separated into a brightness component L and a chrominance component C and a chrominance component C is down-sampled, and (a) a color conversion function that receives a brightness component L of an input color space value as an input and outputs an output color space value as a chrominance component of the input color space value other than the brightness component L A color conversion function determining step obtained by using C; and (b) a color conversion step of performing color conversion by applying the brightness components L of the sampling factors SF to the color conversion function obtained by the color conversion function determining step. And a color conversion processing method.
【請求項2】入力カラー画像はJPEG(Joint
Photographic Experts Grou
p)フォーマットで圧縮された画像であることを特徴と
する請求項1に記載の色変換処理方法。
2. An input color image is a JPEG (Joint) image.
Photographic Experts Grou
The color conversion processing method according to claim 1, wherein the image is an image compressed in p) format.
【請求項3】ある特定の色空間の入力色を別の色空間の
出力色に変換する色変換処理方法であって、入力カラー
画像は第1の成分と第2の成分に分離され且つ第2の成
分がダウンサンプリングされており、(a)入力色空間
値の第1の成分を入力とし出力色空間値を出力とする色
変換関数を、入力色空間値の第2の成分を用いて求める
色変換関数決定ステップと、(b)サンプリング・ファ
クタSF個の第1の成分を前記色変換関数決定ステップ
により求められた色変換関数に適用して色変換する色変
換ステップと、を備えることを特徴とする色変換処理方
法。
3. A color conversion processing method for converting an input color in a specific color space into an output color in another color space, wherein the input color image is separated into a first component and a second component, and 2 is down-sampled, and (a) a color conversion function using the first component of the input color space value as an input and the output color space value as an output using the second component of the input color space value Determining a color conversion function to be determined, and (b) performing a color conversion by applying the first components of the sampling factor SF to the color conversion function determined by the color conversion function determination step. A color conversion processing method.
【請求項4】ある特定の色空間の入力色を別の色空間の
出力色に変換する色変換処理装置であって、入力カラー
画像は明るさ成分Lとクロミナンス成分Cに分離され且
つクロミナンス成分Cがダウンサンプリングされてお
り、(a)入力色空間値の明るさ成分Lを入力とし出力
色空間値を出力とする色変換関数を、入力色空間値のう
ち明るさ成分L以外のクロミナンス成分Cを用いて求め
る色変換関数決定手段と、(b)サンプリング・ファク
タSF個の明るさ成分Lを前記色変換関数決定手段によ
り求められた色変換関数に適用して色変換する色変換手
段と、を備えることを特徴とする色変換処理装置。
4. A color conversion processing device for converting an input color in a specific color space into an output color in another color space, wherein the input color image is separated into a brightness component L and a chrominance component C and a chrominance component. C is down-sampled, and (a) a color conversion function that receives a brightness component L of an input color space value as an input and outputs an output color space value as a chrominance component of the input color space value other than the brightness component L C: a color conversion function deciding means obtained by using C; and (b) a color conversion means for performing color conversion by applying the brightness components L of the sampling factors SF to the color conversion function obtained by the color conversion function deciding means. And a color conversion processing device.
【請求項5】入力カラー画像はJPEG(Joint
Photographic Experts Grou
p)フォーマットで圧縮された画像であることを特徴と
する請求項4に記載の色変換処理装置。
5. An input color image is JPEG (Joint).
Photographic Experts Grou
The color conversion processing device according to claim 4, wherein the image is an image compressed in p) format.
【請求項6】ある特定の色空間の入力色を別の色空間の
出力色に変換する色変換処理装置であって、入力カラー
画像は第1の成分と第2の成分に分離され且つ第2の成
分がダウンサンプリングされており、(a)入力色空間
値の第1の成分を入力とし出力色空間値を出力とする色
変換関数を、入力色空間値の第2の成分を用いて求める
色変換関数決定手段と、(b)サンプリング・ファクタ
SF個の第1の成分を前記色変換関数決定ステップによ
り求められた色変換関数に適用して色変換する色変換手
段と、を備えることを特徴とする色変換処理装置。
6. A color conversion processing apparatus for converting an input color in a specific color space into an output color in another color space, wherein the input color image is separated into a first component and a second component, and 2 is down-sampled, and (a) a color conversion function using the first component of the input color space value as input and outputting the output color space value as output using the second component of the input color space value Color conversion function determining means to be obtained; and (b) color conversion means for performing color conversion by applying the SF first components to the color conversion function obtained in the color conversion function determining step. A color conversion processing device characterized by the above-mentioned.
JP34642998A 1998-12-07 1998-12-07 Color conversion processing method and apparatus Expired - Fee Related JP3796990B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34642998A JP3796990B2 (en) 1998-12-07 1998-12-07 Color conversion processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34642998A JP3796990B2 (en) 1998-12-07 1998-12-07 Color conversion processing method and apparatus

Publications (2)

Publication Number Publication Date
JP2000175061A true JP2000175061A (en) 2000-06-23
JP3796990B2 JP3796990B2 (en) 2006-07-12

Family

ID=18383369

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34642998A Expired - Fee Related JP3796990B2 (en) 1998-12-07 1998-12-07 Color conversion processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3796990B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7394470B2 (en) 2003-01-22 2008-07-01 Ricoh Company, Ltd. Method for reversibly transforming data format, image processing apparatus, program for reversibly transforming data format, and computer-readable recording medium thereof
US7719711B2 (en) 2006-03-30 2010-05-18 Kabushiki Kaisha Toshiba Image data processing apparatus and method
CN114025168A (en) * 2021-09-30 2022-02-08 浙江大华技术股份有限公司 Video image processing method, processing device, electronic device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7394470B2 (en) 2003-01-22 2008-07-01 Ricoh Company, Ltd. Method for reversibly transforming data format, image processing apparatus, program for reversibly transforming data format, and computer-readable recording medium thereof
US7719711B2 (en) 2006-03-30 2010-05-18 Kabushiki Kaisha Toshiba Image data processing apparatus and method
CN114025168A (en) * 2021-09-30 2022-02-08 浙江大华技术股份有限公司 Video image processing method, processing device, electronic device and storage medium

Also Published As

Publication number Publication date
JP3796990B2 (en) 2006-07-12

Similar Documents

Publication Publication Date Title
JP3224926B2 (en) Quantization / inverse quantization circuit
US6285796B1 (en) Pseudo-fixed length image compression scheme
JP3830009B2 (en) Data processing system and color conversion method
US5506621A (en) Image processing method and apparatus
US6859561B2 (en) Faster lossless rotation of JPEG images
JPH10112796A (en) Device for rotating image with small memory by using jpeg compression
JPH118849A (en) Picture encoding method and device therefor
JP2009177802A (en) Apparatus and method for encoding and computing discrete cosine transform using butterfly processor
US6563946B2 (en) Image processing apparatus and method
JP2003348358A (en) Image processing apparatus
WO2005079054A1 (en) Image compression device
US7076105B2 (en) Circuit and method for performing a two-dimensional transform during the processing of an image
KR20010083718A (en) Method and apparatus for transformation and inverse transformation of image for image compression coding
JP3105906B2 (en) Image processing device
JP2008527809A (en) Process for image compression and decompression acceleration
JP2000175061A (en) Color transformation processing method and device
WO2003081898A1 (en) Image data compression device, image data compression method, recording medium, and program
JPH1175183A (en) Image signal processing method and device and storage medium
JP2001145107A (en) Signal processing device and image compression device using DCT
JP3198996B2 (en) Image size conversion method for orthogonally coded images
JP2000165861A (en) Moving image decoding device
JP3781012B2 (en) Image data compression method, image data expansion method, and image data expansion circuit
JPH08180194A (en) Encoding apparatus and method
JP2002135771A (en) Image coding apparatus
JPH0646269A (en) Still image data decompression method, compression method and corresponding apparatus therefor

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051212

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051220

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060328

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060410

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100428

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110428

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120428

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees