JP2003125226A - Color conversion method, color converter, and color conversion processing program - Google Patents

Color conversion method, color converter, and color conversion processing program

Info

Publication number
JP2003125226A
JP2003125226A JP2001320777A JP2001320777A JP2003125226A JP 2003125226 A JP2003125226 A JP 2003125226A JP 2001320777 A JP2001320777 A JP 2001320777A JP 2001320777 A JP2001320777 A JP 2001320777A JP 2003125226 A JP2003125226 A JP 2003125226A
Authority
JP
Japan
Prior art keywords
color
hue
color conversion
signal
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.)
Withdrawn
Application number
JP2001320777A
Other languages
Japanese (ja)
Inventor
Shinichi Arasaki
真一 荒崎
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2001320777A priority Critical patent/JP2003125226A/en
Publication of JP2003125226A publication Critical patent/JP2003125226A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily convert colors with higher degree of accuracy by a color conversion matrix. SOLUTION: The color conversion method converts an output signal of a sensor such as a CCD into a hue signal in a prescribed color space where hue is an element when converting the output color signal of the sensor into a signal representing a prescribed color specified in the prescribed color space. Further, this method sets the color conversion matrix to divide the hue plane in the color space into a plurality of hue areas and to convert the hue signal belonging to each hue area as a specified RGB signal into a proper signal to each hue area. Then the method determines to which of the hue areas the hue signal belongs and converts the hue signal by using the color conversion matrix corresponding to the determined hue area. Since this method uses the color conversion matrix adapted to each hue signal among a plurality of the prepared color conversion matrix, this method can more properly implement color conversion.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、ハードウェアによ
って出力された色信号を所定の色空間に対応する色信号
に変換する色変換方法および色変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color conversion method and a color conversion device for converting a color signal output by hardware into a color signal corresponding to a predetermined color space.

【0002】[0002]

【従来の技術】従来、CCD(Charge Coupled Devic
e)やCMOS(Complementary Metal Oxide Semicondu
ctor)等を用いたカラー画像信号を出力するハードウェ
アにおいて、出力された色を適切な色に補正するため
に、ルックアップテーブル(以下、「LUT」と言
う。)を用いて色変換を行う方法や、色変換行列を用い
て色変換を行う方法が知られている。
2. Description of the Related Art Conventionally, CCD (Charge Coupled Devic)
e) and CMOS (Complementary Metal Oxide Semicondu)
In a hardware that outputs a color image signal using a Ctor) or the like, color conversion is performed using a lookup table (hereinafter, referred to as “LUT”) in order to correct the output color to an appropriate color. A method and a method of performing color conversion using a color conversion matrix are known.

【0003】ここで、LUTを用いて色変換を行う方法
は、正確な色補正が可能であるものの、色変換処理にお
いて大量のメモリを要するため、大量のメモリを持つこ
とができない画像入力センサ等の機器においては使用す
ることが困難である。なお、特開平10−271343
号公報には、サイズの小さいLUTを用意し、色変換に
おいてLUTでは不足する場合には、LUTを用いて補
間することによって色変換を行う技術が開示されてい
る。この技術によれば、LUTのみを用いて色変換を行
う場合に比べ、使用メモリを削減する効果を有する。
Here, although the method of performing color conversion using the LUT enables accurate color correction, it requires a large amount of memory for color conversion processing, so an image input sensor or the like that cannot have a large amount of memory. It is difficult to use in the equipment. Incidentally, JP-A-10-271343
The publication discloses a technique of preparing a LUT having a small size and performing color conversion by interpolating using the LUT when the LUT is insufficient for color conversion. This technique has the effect of reducing the memory used, as compared with the case where color conversion is performed using only the LUT.

【0004】しかし、色変換行列のみによって色変換を
行う場合に比べ、複雑な演算を要する。一方、色変換行
列を用いて色変換を行う方法は、色変換を少量のメモリ
でかつ高速に行うことができるため、画像入力センサ等
の機器においても使用可能である。
However, compared with the case where color conversion is performed only by the color conversion matrix, more complicated calculation is required. On the other hand, the method of performing color conversion using the color conversion matrix can be used in devices such as an image input sensor because color conversion can be performed at high speed with a small amount of memory.

【0005】色変換行列を用いた色変換方法として、例
えば、特開平3−16383号公報および特開平3−2
52268号公報には、色変換行列を所定の方法で機械
的に算出し、生成した色変換行列を用いて、入力された
色信号を所定の色空間に適合する色信号に変換する技術
が開示されている。
As a color conversion method using a color conversion matrix, for example, Japanese Patent Application Laid-Open Nos. 3-16383 and 3-2.
Japanese Patent No. 52268 discloses a technique of mechanically calculating a color conversion matrix by a predetermined method and using the generated color conversion matrix to convert an input color signal into a color signal that conforms to a predetermined color space. Has been done.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、従来の
色変換行列を用いた色変換方法においては、如何なる入
力色信号に対しても1つの色変換行列を用いて色変換を
行っていたため、変換精度が十分でない場合が発生して
いた。本発明の課題は、色変換行列によって、容易かつ
より高精度に色変換を行うことである。
However, in the conventional color conversion method using the color conversion matrix, since the color conversion is performed using one color conversion matrix for any input color signal, the conversion accuracy is improved. There was a case that was not enough. An object of the present invention is to perform color conversion easily and with high accuracy using a color conversion matrix.

【0007】[0007]

【課題を解決するための手段】以上の課題を解決するた
め、請求項1記載の発明は、入力色信号(例えば、発明
の実施の形態中の「出力信号」)を所定の色空間(例え
ば、sRGB空間)に規定される出力色信号(例えば、
発明の実施の形態中の「規定信号」)に変換する色変換
方法であって、色相を要素とする所定の色空間(例え
ば、Y・Cb・Cr空間)において色相平面内に複数の
色相領域(例えば、図1〜図4の色相領域A1〜A9)
を設け、該色相領域それぞれに対応する色変換行列を設
定し、前記入力色信号を前記所定の色空間における色信
号に変換し、該色信号が前記色相領域のいずれに属する
かを判定し、判定された色相領域に対応する前記色変換
行列を用いて前記出力色信号への色変換を行うことを特
徴としている。
In order to solve the above-mentioned problems, the invention according to claim 1 uses an input color signal (for example, "output signal" in the embodiments of the invention) in a predetermined color space (for example, , SRGB space) output color signals (for example,
A predetermined color space (for example, Y, Cb, Cr space) having a hue as an element is a plurality of hue areas in a hue plane. (For example, the hue areas A1 to A9 in FIGS. 1 to 4)
And setting a color conversion matrix corresponding to each of the hue regions, converting the input color signal to a color signal in the predetermined color space, and determining which of the hue regions the color signal belongs to, The color conversion into the output color signal is performed using the color conversion matrix corresponding to the determined hue region.

【0008】請求項2記載の発明は、請求項1記載の色
変換方法であって、前記色変換行列は、前記色信号を前
記出力色信号に変換するものであることを特徴としてい
る。請求項3記載の発明は、請求項1記載の色変換方法
であって、前記色変換行列は、前記色信号の基となる前
記入力色信号を前記出力色信号に変換するものであるこ
とを特徴としている。
According to a second aspect of the present invention, there is provided the color conversion method according to the first aspect, wherein the color conversion matrix converts the color signals into the output color signals. The invention according to claim 3 is the color conversion method according to claim 1, wherein the color conversion matrix converts the input color signal, which is a basis of the color signal, into the output color signal. It has a feature.

【0009】請求項4記載の発明は、請求項1〜3のい
ずれかに記載の色変換方法であって、前記色相領域は、
前記色相平面の原点を中心として放射状に分割された領
域により構成されることを特徴としている。請求項5記
載の発明は、請求項1〜3のいずれかに記載の色変換方
法であって、前記色相領域は、前記色相平面の原点を含
む領域と、その領域を中心として前記色相平面を放射状
に分割された領域とにより構成されることを特徴として
いる。
The invention according to claim 4 is the color conversion method according to any one of claims 1 to 3, wherein the hue region is
It is characterized in that it is composed of regions radially divided around the origin of the hue plane. The invention according to claim 5 is the color conversion method according to any one of claims 1 to 3, wherein the hue region includes a region including an origin of the hue plane and the hue plane with the region as a center. It is characterized in that it is composed of radially divided regions.

【0010】請求項6記載の発明は、請求項1〜5のい
ずれかに記載の色変換方法であって、前記色相を要素と
する所定の色空間は、R−Y・B−Y空間あるいはCb
・Cr空間であることを特徴としている。ここで、Yは
輝度、R,Bは色を表すパラメータである。
The invention according to claim 6 is the color conversion method according to any one of claims 1 to 5, wherein the predetermined color space having the hue as an element is an RY / BY space or Cb
-It is characterized by being a Cr space. Here, Y is a brightness, and R and B are parameters showing a color.

【0011】請求項7記載の発明は、入力色信号を所定
の色空間に規定される出力色信号に変換する色変換装置
であって、前記入力色信号を色相を要素とする所定の色
空間における色信号に変換し、該色信号が前記所定の色
空間において色相平面内に設けられた複数の色相領域の
いずれに属するかを判定し、前記色相領域それぞれに対
応して設定された色変換行列を用いて前記出力色信号へ
の色変換を行うことを特徴としている。
According to a seventh aspect of the present invention, there is provided a color conversion device for converting an input color signal into an output color signal defined in a predetermined color space, wherein the input color signal has a predetermined color space having a hue as an element. In the predetermined color space to determine which one of a plurality of hue areas provided in the hue plane, the color conversion set corresponding to each of the hue areas. It is characterized in that color conversion to the output color signal is performed using a matrix.

【0012】請求項8記載の発明は、請求項7記載の色
変換装置であって、前記色変換行列は、前記色信号を前
記出力色信号に変換するものであることを特徴としてい
る。請求項9記載の発明は、請求項7記載の色変換装置
であって、前記色変換行列は、前記色信号の基となる前
記入力色信号を前記出力色信号に変換するものであるこ
とを特徴としている。
An eighth aspect of the present invention is the color conversion apparatus according to the seventh aspect, wherein the color conversion matrix converts the color signals into the output color signals. The invention according to claim 9 is the color conversion device according to claim 7, wherein the color conversion matrix converts the input color signal, which is a basis of the color signal, into the output color signal. It has a feature.

【0013】請求項10記載の発明は、請求項7〜9の
いずれかに記載の色変換装置であって、前記色相領域
は、前記色相平面の原点を中心として放射状に分割され
た領域により構成されることを特徴としている。請求項
11記載の発明は、請求項7〜9のいずれかに記載の色
変換装置であって、前記色相領域は、前記色相平面の原
点を含む領域と、その領域を中心として前記色相平面を
放射状に分割された領域とにより構成されることを特徴
としている。
According to a tenth aspect of the invention, there is provided the color conversion device according to any one of the seventh to ninth aspects, in which the hue region is composed of regions radially divided about an origin of the hue plane. It is characterized by being done. The invention according to claim 11 is the color conversion device according to any one of claims 7 to 9, wherein the hue region includes a region including an origin of the hue plane and the hue plane centered on the region. It is characterized in that it is composed of radially divided regions.

【0014】請求項12記載の発明は、請求項7〜11
のいずれかに記載の色変換装置であって、前記色相を要
素とする所定の色空間は、R−Y・B−Y空間あるいは
Cb・Cr空間であることを特徴としている。請求項1
3記載の発明は、入力色信号を所定の色空間に規定され
る出力色信号に変換する色変換処理プログラムであっ
て、前記入力色信号を色相を要素とする所定の色空間に
おける色信号に変換する機能と、該色信号が前記所定の
色空間において色相平面内に設けられた複数の色相領域
のいずれに属するかを判定する機能と、前記色相領域そ
れぞれに対応して設定された色変換行列を用いて前記出
力色信号への色変換を行う機能と、をコンピュータに実
現させることを特徴としている。
The invention according to claim 12 is the invention according to claims 7 to 11.
The color conversion device according to any one of items 1 to 5, wherein the predetermined color space having the hue as an element is an RY / BY space or a Cb / Cr space. Claim 1
A third aspect of the present invention is a color conversion processing program for converting an input color signal into an output color signal defined in a predetermined color space, wherein the input color signal is converted into a color signal in a predetermined color space having a hue as an element. A function of converting, a function of determining to which of a plurality of hue regions the color signal belongs in the hue plane in the predetermined color space, and a color conversion set corresponding to each of the hue regions. The function of performing color conversion into the output color signal using a matrix is realized by a computer.

【0015】請求項14記載の発明は、請求項13記載
の色変換処理プログラムであって、前記色変換行列は、
前記色信号を前記出力色信号に変換するものであること
を特徴としている。請求項15記載の発明は、請求項1
3記載の色変換処理プログラムであって、前記色変換行
列は、前記色信号の基となる前記入力色信号を前記出力
色信号に変換するものであることを特徴としている。
The invention according to claim 14 is the color conversion processing program according to claim 13, wherein the color conversion matrix is
It is characterized in that the color signal is converted into the output color signal. The invention according to claim 15 is claim 1
3. The color conversion processing program according to 3, wherein the color conversion matrix converts the input color signal that is the basis of the color signal into the output color signal.

【0016】請求項16記載の発明は、請求項13〜1
5のいずれかに記載の色変換処理プログラムであって、
前記色相領域は、前記色相平面の原点を中心として放射
状に分割された領域により構成されることを特徴として
いる。請求項17記載の発明は、請求項13〜15のい
ずれかに記載の色変換処理プログラムであって、前記色
相領域は、前記色相平面の原点を含む領域と、その領域
を中心として前記色相平面を放射状に分割された領域と
により構成されることを特徴としている。
The invention as defined in claim 16 is based on claims 13 to 1.
5. The color conversion processing program according to any one of 5,
It is characterized in that the hue region is composed of regions radially divided around the origin of the hue plane. The invention according to claim 17 is the color conversion processing program according to any one of claims 13 to 15, wherein the hue region is a region including an origin of the hue plane, and the hue plane is centered on the region. It is characterized in that it is composed of a radially divided area.

【0017】請求項18記載の発明は、請求項13〜1
7のいずれかに記載の色変換処理プログラムであって、
前記色相を要素とする所定の色空間は、R−Y・B−Y
空間あるいはCb・Cr空間であることを特徴としてい
る。本発明によれば、CCD等のセンサによって出力さ
れる色信号を出力色信号に変換する際、センサの出力信
号を色相を要素とする所定の色空間における色信号に変
換する。
The invention described in claim 18 is according to claims 13 to 1.
7. The color conversion processing program according to any one of 7,
The predetermined color space having the hue as an element is R-Y-B-Y.
It is characterized by being a space or a Cb / Cr space. According to the present invention, when a color signal output by a sensor such as a CCD is converted into an output color signal, the output signal of the sensor is converted into a color signal in a predetermined color space having a hue as an element.

【0018】また、その色空間における色相平面を複数
の色相領域に分割し、各色相領域に属する色信号を出力
色信号に変換するための色変換行列を各色相領域に設定
する。そして、色信号がいずれの色相領域に属するかを
判定し、判定された色相領域に対応する色変換行列によ
って、その色信号あるいは入力色信号を変換する。した
がって、用意された複数の色変換行列のうち、各色信号
あるいは入力色信号に適合する色変換行列によって色変
換を行うため、従来のように1つの色変換行列によって
全ての入力色信号を色変換する場合に比べ、より適切に
色変換を行うことができる。
Further, the hue plane in the color space is divided into a plurality of hue areas, and a color conversion matrix for converting a color signal belonging to each hue area into an output color signal is set in each hue area. Then, it is determined which hue region the color signal belongs to, and the color signal or the input color signal is converted by the color conversion matrix corresponding to the determined hue region. Therefore, among the prepared color conversion matrices, color conversion is performed by using a color conversion matrix suitable for each color signal or input color signal. Therefore, all the input color signals are color converted by one color conversion matrix as in the conventional case. Color conversion can be performed more appropriately than in the case of performing.

【0019】[0019]

【発明の実施の形態】本発明を適用した色変換方法で
は、CCD等のセンサによって出力されるRGB(Red
Green Blue)やCYMG(Cyan Yellow Magenta Gree
n)といった色信号(以下、適宜「出力信号」と言
う。)を、所定の色空間(RGB、sRGB:standard
RGB、CMYK等)に規定される各色を表す色信号(以
下、適宜「規定信号」と言う。)に変換するための色変
換行列を算出し、その色変換行列によってCCD等のセ
ンサ出力を変換する。
BEST MODE FOR CARRYING OUT THE INVENTION In a color conversion method to which the present invention is applied, RGB (Red
Green Blue) and CYMG (Cyan Yellow Magenta Gree
A color signal such as n) (hereinafter, appropriately referred to as “output signal”) is transmitted in a predetermined color space (RGB, sRGB: standard).
RGB, CMYK, etc.) is used to calculate a color conversion matrix for converting each color signal (hereinafter, referred to as a “specified signal”) representing each color, and the sensor output such as CCD is converted by the color conversion matrix. To do.

【0020】ここで、本発明においては、出力信号を変
換する色変換行列を複数用意し、出力信号の色相に応じ
て、所定の色変換行列によって色変換することにより規
定信号を得る。したがって、以下、使用する色変換行列
を判定する方法について詳細に説明する。
Here, in the present invention, a plurality of color conversion matrices for converting the output signal are prepared, and the specified signal is obtained by performing the color conversion by the predetermined color conversion matrix according to the hue of the output signal. Therefore, a method for determining the color conversion matrix to be used will be described in detail below.

【0021】なお、ここでは、CCDのセンサ出力がR
GB信号(以下、「出力RGB信号」と言う。)であ
り、この信号をsRGB空間に規定されるRGB信号
(以下、「規定RGB信号」と言う。)に変換する場合
を例に挙げて説明する。初めに、出力RGB信号を色相
を要素とする色空間における色信号に変換する。ここ
で、色相を要素とする色空間としては、Lab空間、R
−Y・B−Y空間あるいはY・Cb・Cr空間等が知ら
れている。
Here, the sensor output of the CCD is R
A GB signal (hereinafter, referred to as “output RGB signal”), which is converted to an RGB signal (hereinafter, referred to as “specified RGB signal”) defined in the sRGB space, is described as an example. To do. First, the output RGB signal is converted into a color signal in a color space having hue as an element. Here, as a color space having a hue as an element, a Lab space, an R
-Y / B-Y space or Y / Cb / Cr space is known.

【0022】Lab空間は、視覚的に的確に明度、色
彩、彩度に分割できるので、Lab空間に変換すること
が好ましいが、Lab空間への変換処理は処理負荷が高
くなるため、変換処理の処理負荷が軽いY・Cb・Cr
空間あるいはR−Y・B−Y空間へ変換するものとす
る。ここでは、Y・Cb・Cr空間へ変換する場合を例
に挙げて説明する。なお、本目的に対してはLab空間
における色相とY・Cb・Cr空間等における色相は、
許容可能な程度の誤差となる。
Since the Lab space can be visually and accurately divided into lightness, color and saturation, it is preferable to convert the Lab space into the Lab space. However, since the conversion processing into the Lab space increases the processing load, the conversion processing is Y / Cb / Cr with light processing load
It shall be converted into space or RY / BY space. Here, the case of conversion to the Y, Cb, Cr space will be described as an example. For this purpose, the hue in the Lab space and the hue in the Y / Cb / Cr space are
This is an acceptable error.

【0023】出力RGB信号をY・Cb・Cr空間にお
ける色信号に変換すると(以下、出力RGB信号をY・
Cb・Cr空間における信号に変換した色信号を「色相
信号」と言う。)、色相はCb・Cr平面として表され
る。ここで、このCb・Cr平面において、色相領域を
所定の領域に分割し、各色相領域に属する色相信号を規
定RGB信号として適切なRGB信号に変換可能な色変
換行列を設定しておく。
When the output RGB signal is converted into a color signal in the Y, Cb, Cr space (hereinafter, the output RGB signal will be referred to as Y.
A color signal converted into a signal in the Cb / Cr space is called a "hue signal". ), The hue is represented as a Cb / Cr plane. Here, on this Cb / Cr plane, the hue region is divided into predetermined regions, and a hue conversion matrix that can convert the hue signals belonging to each hue region into appropriate RGB signals as the specified RGB signals is set in advance.

【0024】図1〜図4は、色相領域の分割方法の例を
示す図である。図1は、原点を中心に色相領域を4分割
する分割方法を示す図、図2は、図1の領域をさらに2
分割し、色相領域を放射状に8分割する方法を示す図で
ある。また、図3は、図1の分割方法において、彩度の
低い原点付近を更に分割して1領域とする分割方法を示
す図、図4は、図2の分割方法において、彩度の低い原
点付近を更に分割して1領域とする方法を示す図であ
る。なお、図1〜図4のA1〜A9は色相領域を示して
いる。
1 to 4 are diagrams showing an example of a method of dividing a hue area. FIG. 1 is a diagram showing a dividing method for dividing a hue area into four areas around an origin, and FIG.
It is a figure which shows the method of dividing and dividing a hue area into eight radially. Further, FIG. 3 is a diagram showing a division method in which the vicinity of the low-saturation origin is further divided into one area in the division method of FIG. 1, and FIG. 4 is a low-saturation origin in the division method of FIG. It is a figure which shows the method of further dividing the neighborhood into one area. Note that A1 to A9 in FIGS. 1 to 4 indicate hue regions.

【0025】そして、各色相信号がこれらの領域のいず
れに属するかを判定し、判定された色相領域に設定され
た色変換行列によって色変換を行う。ここで、各色相領
域に設定されている色変換行列は、色相信号を規定RG
B信号に変換するものとする。ただし、色相信号は色変
換行列の選択にのみ使用し、色変換行列は、色相信号の
基である出力RGB信号を規定RGB信号に変換するも
のとしてもよい。色変換行列が、色相信号を規定RGB
信号に変換するものである場合、(Y,Cb,Cr)→
(R,G,B)とする変換を行い、色相信号が、出力R
GB信号を規定RGB信号に変換するものである場合、
(R,G,B)→(R’,G’,B’)とする変換を行
う。
Then, it is determined which of these areas each hue signal belongs to, and color conversion is performed by the color conversion matrix set in the determined hue area. Here, the color conversion matrix set in each hue region defines the hue signal as RG.
It shall be converted into a B signal. However, the hue signal may be used only for selecting the color conversion matrix, and the color conversion matrix may convert the output RGB signal, which is the basis of the hue signal, into the specified RGB signal. The color conversion matrix defines the hue signal RGB
When converting to a signal, (Y, Cb, Cr) →
Conversion to (R, G, B) is performed, and the hue signal is output R
When converting a GB signal into a specified RGB signal,
The conversion of (R, G, B) → (R ′, G ′, B ′) is performed.

【0026】上述の色変換行列は、各色相信号あるいは
各出力RGB信号を適切に規定RGB信号に変換可能な
ものであることから、1つの色変換行列を用いて色変換
を行う場合に比べ、色変換精度の向上を実現できる。さ
らに、色相領域をより多くの領域に分割する場合の方
が、変換精度が向上することとなる。
Since the above-mentioned color conversion matrix can appropriately convert each hue signal or each output RGB signal into the specified RGB signal, compared with the case where color conversion is performed using one color conversion matrix, It is possible to improve the color conversion accuracy. Further, the conversion accuracy is improved when the hue region is divided into more regions.

【0027】以上のように、本発明を適用した色変換方
法は、CCD等のセンサによって出力される色信号を所
定の色空間に規定される所定色を表す信号に変換する
際、センサの出力信号を色相を要素とする所定の色空間
における色相信号に変換する。また、その色空間におけ
る色相平面を複数の色相領域に分割し、各色相領域に属
する色相信号を規定RGB信号として適切な信号に変換
するための色変換行列を各色相領域に設定する。そし
て、色相信号がいずれの色相領域に属するかを判定し、
判定された色相領域に対応する色変換行列によって、そ
の色相信号を変換する。
As described above, according to the color conversion method to which the present invention is applied, when the color signal output from the sensor such as CCD is converted into the signal representing the predetermined color defined in the predetermined color space, the output of the sensor The signal is converted into a hue signal in a predetermined color space having hue as an element. Further, the hue plane in the color space is divided into a plurality of hue areas, and a hue conversion matrix for converting a hue signal belonging to each hue area into a proper signal as a specified RGB signal is set in each hue area. Then, it is determined which hue region the hue signal belongs to,
The hue signal is converted by the color conversion matrix corresponding to the determined hue area.

【0028】したがって、用意された複数の色変換行列
のうち、各色相信号に適合する色変換行列によって色変
換を行うため、従来のように1つの色変換行列によって
全ての出力RGB信号を色変換する場合に比べ、より適
切に色変換を行うことができる。なお、用意する色変換
行列は、色相信号の基となる出力RGB信号を色変換す
るための色変換行列としてもよい。この場合、色相信号
は、色変換行列の選択のために使用し、色変換処理につ
いては、出力RGB信号を直接、規定RGB信号へ変換
することとなる。
Therefore, since the color conversion is performed by the color conversion matrix suitable for each hue signal among the prepared color conversion matrices, all the output RGB signals are color converted by one color conversion matrix as in the prior art. Color conversion can be performed more appropriately than in the case of performing. The prepared color conversion matrix may be a color conversion matrix for performing color conversion on the output RGB signal that is the basis of the hue signal. In this case, the hue signal is used for selecting the color conversion matrix, and in the color conversion processing, the output RGB signal is directly converted into the specified RGB signal.

【0029】また、本発明をデジタルカメラ等の機器に
適用する場合、上述した方法により算出した複数の色変
換行列を所定の記憶部に記憶しておき、CCD等のセン
サから出力される色信号を色相信号に変換して色相領域
を判定し、色変換行列を選択した後に、色相信号あるい
は出力RGB信号をその変換行列と乗算することによ
り、所定の色空間に規定される所定色を表す信号を得る
ことができる。
When the present invention is applied to a device such as a digital camera, a plurality of color conversion matrices calculated by the method described above are stored in a predetermined storage unit, and color signals output from a sensor such as a CCD are stored. To a hue signal to determine the hue region, select a color conversion matrix, and then multiply the hue signal or the output RGB signal by the conversion matrix to express a predetermined color defined in a predetermined color space. Can be obtained.

【0030】図5は、本発明を適用したデジタルカメラ
1の機能構成を示す図である。図5において、色変換部
10にはCCDからRGB信号等の色信号が入力され
る。そして、色変換部10は、入力された色信号を色相
信号に変換し、領域判定を行う。また、色変換部10
は、上述の複数の変換行列を記憶しており、領域判定の
結果に応じた所定の色変換行列によって、色相信号ある
いは入力された色信号を色変換し、所定の色信号とした
後、各機能部に出力する。
FIG. 5 is a diagram showing a functional configuration of the digital camera 1 to which the present invention is applied. In FIG. 5, color signals such as RGB signals are input from the CCD to the color conversion unit 10. Then, the color conversion unit 10 converts the input color signal into a hue signal and performs area determination. In addition, the color conversion unit 10
Stores a plurality of conversion matrices described above, and performs a color conversion of a hue signal or an input color signal by a predetermined color conversion matrix according to the result of the area determination to obtain a predetermined color signal. Output to the function section.

【0031】なお、図5において、色変換を行う色変換
部10およびこれに関連する部分のみを示し他の機能部
分は図示を省略する。また、本実施の形態において、各
色相領域に対応する色変換行列として、重回帰分析等の
多変量解析によって、各色相領域に属する色相信号ある
いはその基となる出力信号を規定信号に変換可能な行列
が算出される。このとき、出力信号にセンサのノイズが
含まれる場合あるいはホワイトバランスおよび照射光源
の変化を考慮した種々の変換行列を重回帰分析等するこ
とにより、ノイズあるいはホワイトバランスおよび照射
光源の変化の影響を受け難い色変換行列を得ることがで
きる。
In FIG. 5, only the color conversion unit 10 for performing color conversion and the parts related thereto are shown, and the other functional parts are omitted. Further, in the present embodiment, as a color conversion matrix corresponding to each hue region, a hue signal belonging to each hue region or an output signal which is a basis thereof can be converted into a prescribed signal by multivariate analysis such as multiple regression analysis. The matrix is calculated. At this time, when the output signal contains noise of the sensor or by performing multiple regression analysis of various conversion matrices considering the changes of the white balance and the irradiation light source, the influence of the noise or the change of the white balance and the irradiation light source is affected. It is possible to obtain a difficult color conversion matrix.

【0032】[0032]

【発明の効果】本発明によれば、CCD等のセンサによ
って出力される色信号を出力色信号に変換する際、セン
サの出力信号を色相を要素とする所定の色空間における
色信号に変換する。また、その色空間における色相平面
を複数の色相領域に分割し、各色相領域に属する色信号
を出力色信号に変換するための色変換行列を各色相領域
に設定する。そして、色信号がいずれの色相領域に属す
るかを判定し、判定された色相領域に対応する色変換行
列によって、その色信号あるいは入力色信号を変換す
る。
According to the present invention, when a color signal output by a sensor such as a CCD is converted into an output color signal, the output signal of the sensor is converted into a color signal in a predetermined color space having a hue as an element. . Further, the hue plane in the color space is divided into a plurality of hue regions, and a color conversion matrix for converting a color signal belonging to each hue region into an output color signal is set in each hue region. Then, it is determined which hue region the color signal belongs to, and the color signal or the input color signal is converted by the color conversion matrix corresponding to the determined hue region.

【0033】したがって、用意された複数の色変換行列
のうち、各色信号あるいは入力色信号に適合する色変換
行列によって色変換を行うため、従来のように1つの色
変換行列によって全ての入力色信号を色変換する場合に
比べ、より適切に色変換を行うことができる。
Therefore, among the prepared color conversion matrices, color conversion is performed by a color conversion matrix suitable for each color signal or input color signal. Therefore, one color conversion matrix is used for all input color signals as in the conventional case. The color conversion can be performed more appropriately as compared with the case where the color conversion is performed.

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

【図1】原点を中心に色相領域を4分割する分割方法を
示す図である。
FIG. 1 is a diagram showing a dividing method for dividing a hue region into four around an origin.

【図2】図1の領域をさらに2分割し、色相領域を放射
状に8分割する方法を示す図である。
FIG. 2 is a diagram showing a method of further dividing the area of FIG. 1 into two and radially dividing the hue area into eight.

【図3】図1の分割方法において、彩度の低い原点付近
を更に分割して1領域とする分割方法を示す図である。
FIG. 3 is a diagram showing a division method of further dividing the vicinity of an origin having low saturation into one area in the division method of FIG.

【図4】図2の分割方法において、彩度の低い原点付近
を更に分割して1領域とする方法を示す図である。
FIG. 4 is a diagram showing a method of further dividing the vicinity of an origin having low saturation into one area in the dividing method of FIG.

【図5】本発明を適用したデジタルカメラ1の機能構成
を示す図である。
FIG. 5 is a diagram showing a functional configuration of a digital camera 1 to which the present invention has been applied.

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

1 デジタルカメラ 10 色変換部 1 digital camera 10 color converter

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 9/67 H04N 1/46 Z Fターム(参考) 5B057 BA02 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC01 CE17 CE18 CH07 CH08 5C065 AA01 BB01 CC01 CC02 CC03 DD02 5C066 AA01 CA17 EE03 EE04 GA01 GA02 GA05 KF05 KM02 5C077 LL19 MP08 PP32 PP33 PP37 PQ08 PQ12 PQ23 SS01 TT09 5C079 HB01 HB02 HB11 LA31 LB02 LB04 MA04 MA11 NA03 ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 7 Identification code FI theme code (reference) H04N 9/67 H04N 1/46 ZF term (reference) 5B057 BA02 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC01 CE17 CE18 CH07 CH08 5C065 AA01 BB01 CC01 CC02 CC03 DD02 5C066 AA01 CA17 EE03 EE04 GA01 GA02 GA05 KF05 KM02 5C077 LL19 MP08 PP32 PP33 PP37 PQ08 PQ12 PQ23 SS01 TT09 5C079 HB01 HB02 HB11 LA31 04 MA02 LB02 NA04

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 入力色信号を所定の色空間に規定される
出力色信号に変換する色変換方法であって、 色相を要素とする所定の色空間において色相平面内に複
数の色相領域を設け、該色相領域それぞれに対応する色
変換行列を設定し、前記入力色信号を前記所定の色空間
における色信号に変換し、該色信号が前記色相領域のい
ずれに属するかを判定し、判定された色相領域に対応す
る前記色変換行列を用いて前記出力色信号への色変換を
行うことを特徴とする色変換方法。
1. A color conversion method for converting an input color signal into an output color signal defined in a predetermined color space, wherein a plurality of hue regions are provided in a hue plane in a predetermined color space having hue as an element. , A color conversion matrix corresponding to each of the hue regions is set, the input color signal is converted into a color signal in the predetermined color space, and it is determined which of the hue regions the color signal belongs to, The color conversion method is characterized in that the color conversion into the output color signal is performed using the color conversion matrix corresponding to the hue region.
【請求項2】 前記色変換行列は、前記色信号を前記出
力色信号に変換するものであることを特徴とする請求項
1記載の色変換方法。
2. The color conversion method according to claim 1, wherein the color conversion matrix is for converting the color signal into the output color signal.
【請求項3】 前記色変換行列は、前記色信号の基とな
る前記入力色信号を前記出力色信号に変換するものであ
ることを特徴とする請求項1記載の色変換方法。
3. The color conversion method according to claim 1, wherein the color conversion matrix converts the input color signal, which is a basis of the color signal, into the output color signal.
【請求項4】 前記色相領域は、前記色相平面の原点を
中心として放射状に分割された領域により構成されるこ
とを特徴とする請求項1〜3のいずれかに記載の色変換
方法。
4. The color conversion method according to claim 1, wherein the hue region is formed by a region radially divided around an origin of the hue plane.
【請求項5】 前記色相領域は、前記色相平面の原点を
含む領域と、その領域を中心として前記色相平面を放射
状に分割された領域とにより構成されることを特徴とす
る請求項1〜3のいずれかに記載の色変換方法。
5. The hue region is configured by a region including an origin of the hue plane and a region radially dividing the hue plane with the region as a center. The color conversion method according to any one of 1.
【請求項6】 前記色相を要素とする所定の色空間は、
R−Y・B−Y空間あるいはCb・Cr空間であること
を特徴とする請求項1〜5のいずれかに記載の色変換方
法。
6. A predetermined color space having the hue as an element,
The color conversion method according to claim 1, wherein the color conversion method is an R-Y / B-Y space or a Cb / Cr space.
【請求項7】 入力色信号を所定の色空間に規定される
出力色信号に変換する色変換装置であって、 前記入力色信号を色相を要素とする所定の色空間におけ
る色信号に変換し、該色信号が前記所定の色空間におい
て色相平面内に設けられた複数の色相領域のいずれに属
するかを判定し、前記色相領域それぞれに対応して設定
された色変換行列を用いて前記出力色信号への色変換を
行うことを特徴とする色変換装置。
7. A color conversion device for converting an input color signal into an output color signal defined in a predetermined color space, wherein the input color signal is converted into a color signal in a predetermined color space having hue as an element. , Determining which of a plurality of hue regions provided in the hue plane the color signal belongs to in the predetermined color space, and using the color conversion matrix set corresponding to each of the hue regions to output the output A color conversion device, which performs color conversion into color signals.
【請求項8】 前記色変換行列は、前記色信号を前記出
力色信号に変換するものであることを特徴とする請求項
7記載の色変換装置。
8. The color conversion device according to claim 7, wherein the color conversion matrix is for converting the color signals into the output color signals.
【請求項9】 前記色変換行列は、前記色信号の基とな
る前記入力色信号を前記出力色信号に変換するものであ
ることを特徴とする請求項7記載の色変換装置。
9. The color conversion device according to claim 7, wherein the color conversion matrix converts the input color signal, which is a basis of the color signal, into the output color signal.
【請求項10】 前記色相領域は、前記色相平面の原点
を中心として放射状に分割された領域により構成される
ことを特徴とする請求項7〜9のいずれかに記載の色変
換装置。
10. The color conversion device according to claim 7, wherein the hue region is configured by a region radially divided around an origin of the hue plane.
【請求項11】 前記色相領域は、前記色相平面の原点
を含む領域と、その領域を中心として前記色相平面を放
射状に分割された領域とにより構成されることを特徴と
する請求項7〜9のいずれかに記載の色変換装置。
11. The hue region is configured by a region including an origin of the hue plane and a region radially dividing the hue plane with the region as a center. The color conversion device according to any one of 1.
【請求項12】 前記色相を要素とする所定の色空間
は、R−Y・B−Y空間あるいはCb・Cr空間である
ことを特徴とする請求項7〜11のいずれかに記載の色
変換装置。
12. The color conversion according to claim 7, wherein the predetermined color space having the hue as an element is an R-Y / B-Y space or a Cb / Cr space. apparatus.
【請求項13】 入力色信号を所定の色空間に規定され
る出力色信号に変換する色変換処理プログラムであっ
て、 前記入力色信号を色相を要素とする所定の色空間におけ
る色信号に変換する機能と、 該色信号が前記所定の色空間において色相平面内に設け
られた複数の色相領域のいずれに属するかを判定する機
能と、 前記色相領域それぞれに対応して設定された色変換行列
を用いて前記出力色信号への色変換を行う機能と、 をコンピュータに実現させることを特徴とする色変換処
理プログラム。
13. A color conversion processing program for converting an input color signal into an output color signal defined in a predetermined color space, wherein the input color signal is converted into a color signal in a predetermined color space having hue as an element. And a function of determining to which of a plurality of hue areas the color signal belongs in the hue plane in the predetermined color space, and a color conversion matrix set corresponding to each of the hue areas. A color conversion processing program for causing a computer to realize a function of performing color conversion into the output color signal by using the computer.
【請求項14】 前記色変換行列は、前記色信号を前記
出力色信号に変換するものであることを特徴とする請求
項13記載の色変換処理プログラム。
14. The color conversion processing program according to claim 13, wherein the color conversion matrix is for converting the color signals into the output color signals.
【請求項15】 前記色変換行列は、前記色信号の基と
なる前記入力色信号を前記出力色信号に変換するもので
あることを特徴とする請求項13記載の色変換処理プロ
グラム。
15. The color conversion processing program according to claim 13, wherein the color conversion matrix is for converting the input color signal that is the basis of the color signal into the output color signal.
【請求項16】 前記色相領域は、前記色相平面の原点
を中心として放射状に分割された領域により構成される
ことを特徴とする請求項13〜15のいずれかに記載の
色変換処理プログラム。
16. The color conversion processing program according to claim 13, wherein the hue region is configured by a region radially divided around an origin of the hue plane.
【請求項17】 前記色相領域は、前記色相平面の原点
を含む領域と、その領域を中心として前記色相平面を放
射状に分割された領域とにより構成されることを特徴と
する請求項13〜15のいずれかに記載の色変換処理プ
ログラム。
17. The hue region is configured by a region including an origin of the hue plane and a region radially dividing the hue plane with the region as a center. The color conversion processing program described in any one of 1.
【請求項18】 前記色相を要素とする所定の色空間
は、R−Y・B−Y空間あるいはCb・Cr空間である
ことを特徴とする請求項13〜17のいずれかに記載の
色変換処理プログラム。
18. The color conversion according to claim 13, wherein the predetermined color space having the hue as an element is an RY / BY space or a Cb / Cr space. Processing program.
JP2001320777A 2001-10-18 2001-10-18 Color conversion method, color converter, and color conversion processing program Withdrawn JP2003125226A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001320777A JP2003125226A (en) 2001-10-18 2001-10-18 Color conversion method, color converter, and color conversion processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001320777A JP2003125226A (en) 2001-10-18 2001-10-18 Color conversion method, color converter, and color conversion processing program

Publications (1)

Publication Number Publication Date
JP2003125226A true JP2003125226A (en) 2003-04-25

Family

ID=19138114

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001320777A Withdrawn JP2003125226A (en) 2001-10-18 2001-10-18 Color conversion method, color converter, and color conversion processing program

Country Status (1)

Country Link
JP (1) JP2003125226A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005328277A (en) * 2004-05-13 2005-11-24 Sony Corp Signal processor and method, recording medium, and program
JP2007515876A (en) * 2003-11-25 2007-06-14 ソニー エレクトロニクス インク Image data conversion processing system and image data conversion processing method for effectively executing image data conversion processing
JP2007235664A (en) * 2006-03-02 2007-09-13 Seiko Epson Corp Color conversion matrix generating device, color conversion matrix generating method, color conversion matrix generating program, and image processing apparatus
KR100791373B1 (en) 2005-12-12 2008-01-07 삼성전자주식회사 Apparatus and method for converting preferred color
KR100817144B1 (en) 2005-12-27 2008-03-27 엠텍비젼 주식회사 Method and apparatus of color extraction for YUV data format
KR101075773B1 (en) 2009-01-15 2011-10-25 인하대학교 산학협력단 Calibrating method for white balance
US8363267B2 (en) 2007-06-01 2013-01-29 Samsung Electronics Co., Ltd. Image forming apparatus and color converting method thereof
KR101279086B1 (en) * 2007-06-01 2013-06-27 삼성전자주식회사 Image forming apparatus and method for color converting

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007515876A (en) * 2003-11-25 2007-06-14 ソニー エレクトロニクス インク Image data conversion processing system and image data conversion processing method for effectively executing image data conversion processing
JP2005328277A (en) * 2004-05-13 2005-11-24 Sony Corp Signal processor and method, recording medium, and program
KR100791373B1 (en) 2005-12-12 2008-01-07 삼성전자주식회사 Apparatus and method for converting preferred color
US7835575B2 (en) 2005-12-12 2010-11-16 Samsung Electronics Co., Ltd. Apparatus and method for converting preference color
KR100817144B1 (en) 2005-12-27 2008-03-27 엠텍비젼 주식회사 Method and apparatus of color extraction for YUV data format
JP2007235664A (en) * 2006-03-02 2007-09-13 Seiko Epson Corp Color conversion matrix generating device, color conversion matrix generating method, color conversion matrix generating program, and image processing apparatus
US8363267B2 (en) 2007-06-01 2013-01-29 Samsung Electronics Co., Ltd. Image forming apparatus and color converting method thereof
KR101279086B1 (en) * 2007-06-01 2013-06-27 삼성전자주식회사 Image forming apparatus and method for color converting
KR101075773B1 (en) 2009-01-15 2011-10-25 인하대학교 산학협력단 Calibrating method for white balance

Similar Documents

Publication Publication Date Title
JP4001015B2 (en) Image input apparatus and image input method
US9342872B2 (en) Color correction parameter computation method, color correction parameter computation device, and image output system
US20050280716A1 (en) Image recording apparatus, image recording method, image processing apparatus, image processing method and image processing system
US7812870B2 (en) Color space conversion in the analog domain
JPH0810940B2 (en) Luminance signal forming circuit
KR20070039032A (en) Camera color noise reduction method and circuit
KR100679048B1 (en) Method and apparatus for gamut mapping
JPWO2002021849A1 (en) Image processing apparatus and color system conversion method
JP2000224607A (en) Image processor
JP2003125226A (en) Color conversion method, color converter, and color conversion processing program
US7643681B2 (en) Color correction involving color phase detection and phase-dependent control
JP2005045446A (en) Color conversion matrix calculation method and color correction method
JP2007019970A (en) Device and method for color correction
JP3490888B2 (en) Color suppression circuit
JP2006222783A (en) Preparation of color conversion table
KR970003471B1 (en) Corol signal matrix circuits
JP2008109233A (en) Image processor, image processing program, and image processing method
JP6413210B2 (en) Image processing apparatus, imaging apparatus, and program
WO2019244691A1 (en) Color correction device
US20050018054A1 (en) Chroma compensation circuit and its method
JP2000022977A (en) Color correction circuit and its method
KR20060089094A (en) Color space converter and method coupled automatic white balance
JP3049434B2 (en) Color imaging device
JP3263925B2 (en) Primary color signal adjustment method
JPH11127442A (en) Camera signal processor and method therefor and medium for recording control program of the same device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050104