JP3205054B2 - Color image processing apparatus and method - Google Patents

Color image processing apparatus and method

Info

Publication number
JP3205054B2
JP3205054B2 JP16896892A JP16896892A JP3205054B2 JP 3205054 B2 JP3205054 B2 JP 3205054B2 JP 16896892 A JP16896892 A JP 16896892A JP 16896892 A JP16896892 A JP 16896892A JP 3205054 B2 JP3205054 B2 JP 3205054B2
Authority
JP
Japan
Prior art keywords
color
reproduction range
output device
primary
color reproduction
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.)
Expired - Lifetime
Application number
JP16896892A
Other languages
Japanese (ja)
Other versions
JPH0614183A (en
Inventor
健一 太田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP16896892A priority Critical patent/JP3205054B2/en
Priority to US08/038,898 priority patent/US5657068A/en
Publication of JPH0614183A publication Critical patent/JPH0614183A/en
Application granted granted Critical
Publication of JP3205054B2 publication Critical patent/JP3205054B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Record Information Processing For Printing (AREA)
  • Color, Gradation (AREA)
  • Processing Or Creating Images (AREA)
  • Image Generation (AREA)

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 apparatus and method for mapping color image data to a color reproduction range of an output device.

【0002】[0002]

【従来の技術】現在、カラー画像を可視化して出力する
装置として一般的なものとして、カラーCRTモニタや
カラーハードコピー装置などがある。前者は管面上の
R、G、B3色の蛍光体の発光レベルを強度変調して加
法混色により可視画像を形成する。一方後者はY(イエ
ロー)、M(マゼンタ)、C(シアン)、K(ブラッ
ク)の色材を用いて減法混色により紙上にカラー画像を
形成する。
2. Description of the Related Art At present, as a general device for visualizing and outputting a color image, there are a color CRT monitor and a color hard copy device. The former forms the visible image by additive color mixing by modulating the light emission levels of the phosphors of R, G and B colors on the tube surface. On the other hand, the latter forms a color image on paper by subtractive color mixture using Y (yellow), M (magenta), C (cyan), and K (black) color materials.

【0003】[0003]

【発明が解決しようとしている課題】以上2つの画像表
示装置は原理的に色再現能力が異なっており、第3図に
示すように一般にCRTの方がハードコピーよりも色再
現範囲が広くなる。従って、ある画像中にA点とB点の
2つの色が存在している場合、この画像をCRT上に表
示すると異なる色として再現されるが、ハードコピー出
力するとA、BともにC点として再現されてしまうため
2つの色の区別がつかなくなり、結果的に本来画像の持
っている情報が失われることになる。
The two image display devices described above have different color reproduction capabilities in principle. As shown in FIG. 3, a CRT generally has a wider color reproduction range than a hard copy. Therefore, when two colors of point A and point B exist in a certain image, when this image is displayed on a CRT, it is reproduced as a different color, but when a hard copy is output, both A and B are reproduced as point C. As a result, the two colors cannot be distinguished, and as a result, information originally possessed by the image is lost.

【0004】そこで、入力カラー画像をハードコピー出
力する場合、画像中の色信号がハードコピーの色再現範
囲に納まるように変換した後、出力するという方法が考
えられる。すなわち、第3図中でA点がD点に、B点が
E点になるような変換を行えばハードコピー上でも色の
区別がつけられることになる。しかし、このような変換
の仕方は一通りではないので、方法によっては出力画像
が全体的に不自然なものになってしまう可能性がある。
Therefore, in the case of outputting a hard copy of an input color image, a method of converting a color signal in the image so that the color signal falls within the color reproduction range of the hard copy and then outputting the converted image can be considered. That is, if the conversion is performed such that point A becomes point D and point B becomes point E in FIG. 3, the colors can be distinguished even on the hard copy. However, since such a conversion method is not unique, depending on the method, the output image may be entirely unnatural.

【0005】このような問題を解決するため、入力カラ
ー画像の変換方式として次のような提案がなされてい
る。すなわち、カラー画像の基本原色(赤、緑、青、シ
アン、マゼンタ、イエロー)を保存したまま、入力画像
に含まれる色信号情報をハードコピーの色再現範囲にマ
ッピングすることが可能である。この提案では入力画像
中に含まれる色信号の分布を参照し、最も彩度の高い色
を検出してその色をハードコピー装置の色再現範囲にマ
ッピングする構成となっているが、この彩度の検出にお
いてR、G、B信号空間上で入力カラー画像の評価を行
っている。しかしR、G、B空間には人間に視覚特性が
持つ非線形が含まれていないため、最も彩度が高い色を
検出しても、それがじっさいに人間の目で見ても最も彩
度が高い色であるという保証はない、という問題点があ
った。
In order to solve such a problem, the following proposal has been made as a conversion method of an input color image. That is, it is possible to map the color signal information included in the input image to the color reproduction range of the hard copy while preserving the basic primary colors (red, green, blue, cyan, magenta, and yellow) of the color image. This proposal refers to the distribution of color signals contained in an input image, detects the color with the highest saturation, and maps that color to the color reproduction range of a hard copy device. In the detection of, the input color image is evaluated in the R, G, B signal space. However, since the R, G, and B spaces do not include the non-linearity of human visual characteristics, even if the most saturated color is detected, even if it is actually seen by the human eye, the most saturated color is obtained. There was a problem that there was no guarantee that the color was high.

【0006】本発明は、上記課題を解決するためになさ
れたもので、入力画像の色再現範囲を示す6原色値が出
力装置の色再現範囲を示す6原色値に変換されるように
求めたマトリックス係数を用いて、入力画像を示すカラ
ー画像データを出力装置の色再現範囲内にマッピングす
るカラー画像処理装置及び方法を提供することを目的と
する。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and provides six primary color values indicating the color reproduction range of an input image.
To be converted to six primary color values that indicate the color gamut of the power device
Using the calculated matrix coefficients, a color indicating the input image
An object of the present invention is to provide a color image processing apparatus and method for mapping image data within a color reproduction range of an output device.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、入力画像を示すカラー画像データを出力
装置の色再現範囲にマッピングするカラー画像処理装置
であって、均等色空間上において、前記出力装置の色再
現範囲を示す赤、緑、青、シアン、マゼンタ、イエロー
の6原色の各方向を基準にして、前記カラー画像データ
の前記6原色の各方向における成分値を算出する算出手
段と、前記算出された成分値から、前記入力画像の色
再現範囲を示す赤、緑、青、シアン、マゼンタ、イエロ
ーの6原色値を検出する検出手段と、前記検出された入
力画像の色再現範囲を示す6原色値が前記出力装置の色
再現範囲を示す6原色値に変換されるように求めたマト
リックス係数を用いて、前記カラー画像データを前記出
力装置の色再現範囲にマッピングするマッピング手段と
を有することを特徴とする。
According to the present invention, there is provided a color image processing apparatus for mapping color image data representing an input image to a color reproduction range of an output device. Calculating the component values of the color image data in the respective directions of the six primary colors with reference to the respective directions of the six primary colors of red, green, blue, cyan, magenta, and yellow indicating the color reproduction range of the output device. a calculation unit, the component values the calculated red indicating the color gamut of the input image, green, blue, cyan, and detecting means for detecting magenta, six primary values of the yellow, the detected input image The color image data is converted to the color reproduction range of the output device by using a matrix coefficient determined so that the six primary color values indicating the color reproduction range of the output device are converted into the six primary color values indicating the color reproduction range of the output device. And having a mapping means for mapping the.

【0008】また、上記目的を達成するために、本発明
は、入力画像を示すカラー画像データを出力装置の色再
現範囲にマッピングするカラー画像処理方法であって、
均等色空間上において、前記出力装置の色再現範囲を示
す赤、緑、青、シアン、マゼンタ、イエローの6原色
方向を基準にして、前記カラー画像データの前記6原
の各方向における成分値を算出する算出工程と、前記
算出された成分値から、前記入力画像の色再現範囲を
示す赤、緑、青、シアン、マゼンタ、イエローの6原色
値を検出する検出工程と、前記検出された入力画像の色
再現範囲を示す6原色値が前記出力装置の色再現範囲を
示す6原色値に変換されるように求めたマトリックス係
数を用いて、前記カラー画像データを前記出力装置の色
再現範囲にマッピングするマッピング工程とを有するこ
とを特徴とする。
According to another aspect of the present invention, there is provided a color image processing method for mapping color image data representing an input image to a color reproduction range of an output device.
In a uniform color space, six primary colors of red, green, blue, cyan, magenta, and yellow indicating the color reproduction range of the output device are provided.
Based on each direction, a calculation step of calculating component values in each direction of the six primary colors of the color image data, and from each of the calculated component values, red, green, A detection step of detecting six primary color values of blue, cyan, magenta, and yellow; and the six primary color values indicating the color reproduction range of the detected input image are converted into six primary color values indicating the color reproduction range of the output device. A mapping step of mapping the color image data to a color reproduction range of the output device using the matrix coefficient obtained as described above.

【0009】[0009]

【実施例】以下に添付図面を参照して、本発明に係る好
適な実施例を詳細に説明する。 <第1の実施例>図1は本発明の第1の実施例によるカ
ラー画像処理装置の構成を示すブロツク図である。同図
において、101はセレクタ、102,104はバス、
103はマトリックス変換回路、105はサンプリング
回路、106はバツフアメモリ、107はCPU、10
8はCPU107を動作させるためのプログラムを格納
したROM、109は各種パラメータや各種プログラム
を格納したRAMをそれぞれ示している。
Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings. <First Embodiment> FIG. 1 is a block diagram showing a configuration of a color image processing apparatus according to a first embodiment of the present invention. In the figure, 101 is a selector, 102 and 104 are buses,
103 is a matrix conversion circuit, 105 is a sampling circuit, 106 is a buffer memory, 107 is a CPU,
Reference numeral 8 denotes a ROM that stores programs for operating the CPU 107, and 109 denotes a RAM that stores various parameters and various programs.

【0010】次に、上記構成による動作を図1を用いて
説明する。入力されるR、G、B信号は、セレクタ10
1により、画像信号圧縮を実行する場合、バス102へ
出力され、マトリックス変換回路103をへて、出力信
号R’、G’、B’となる。また入力画像中に色信号分
布を検出する場合、バス104へ出力され、サンプリン
グ回路105で所定のサンプリングピッチでサンプリン
グされ、バッファメモリ106に書き込まれる。CPU
107はバツフアメモリ106中の画像信号を順次読み
出し、後述する方法によって画像中の最も彩度の高い色
信号を検出する。検出結果からCPU107はマトリッ
クス変換係数を後述の方法で算出し、この算出された係
数をマトリックス変換回路103にセットする。
Next, the operation of the above configuration will be described with reference to FIG. The input R, G and B signals are supplied to the selector 10
1, when the image signal compression is performed, the image signal is output to the bus 102 and output to the matrix conversion circuit 103 to be output signals R ′, G ′, and B ′. When a color signal distribution is detected in an input image, the signal is output to a bus 104, sampled at a predetermined sampling pitch by a sampling circuit 105, and written to a buffer memory 106. CPU
107 sequentially reads out the image signals from the buffer memory 106 and detects the color signal having the highest saturation in the image by the method described later. From the detection result, the CPU 107 calculates a matrix conversion coefficient by a method described later, and sets the calculated coefficient in the matrix conversion circuit 103.

【0011】図2は第1の実施例によるマトリックス変
換回路103を実現する回路ブロック図である。同図に
おいて、入力カラー画像信号が図面上方から入力され
る。画像信号は図示しない駆動クロック、リセット信号
などとともに図面下方へと順次転送されていく。201
はR、G、Bのうち最小値を抽出する最小抽出回路であ
り、最小値信号X(=min(R,G,B))を出力す
る。202,203,204は入力信号と最小値信号の
差を取る減算回路である。減算回路202はR−X、減
算回路203はG−X、減算回路204はB−Xを出力
する。205,206,207は202,203,20
4の出力を一時的にラッチするラッチ回路である。20
8,209,210はR−X、G−X、B−Xの2次項
を演算する乗算回路である。乗算回路208は(R−
X)×(G−X)、乗算回路209は(G−X)×(B
−X)、乗算回路210は(B−X)×(R−X)を出
力する。211は乗算回路205〜210で得られた6
個以上の信号値をマトリックス変換するマトリックス変
換回路であり、具体的には次式(1)の演算を行い、d
R,dG,dbを出力する。すなわち、
FIG. 2 is a circuit block diagram for realizing the matrix conversion circuit 103 according to the first embodiment. In the figure, an input color image signal is input from above the figure. The image signal is sequentially transferred to the lower part of the figure together with a drive clock, a reset signal, and the like (not shown). 201
Is a minimum extraction circuit for extracting the minimum value among R, G, and B, and outputs a minimum value signal X (= min (R, G, B)). Reference numerals 202, 203, and 204 denote subtraction circuits that take the difference between the input signal and the minimum value signal. The subtraction circuit 202 outputs RX, the subtraction circuit 203 outputs GX, and the subtraction circuit 204 outputs BX. 205, 206 and 207 are 202, 203 and 20
4 is a latch circuit for temporarily latching the output of the latch circuit 4. 20
8, 209 and 210 are multiplication circuits for calculating quadratic terms of RX, GX and BX. The multiplication circuit 208 outputs (R−
X) × (G−X), and the multiplication circuit 209 calculates (G−X) × (B
−X), the multiplying circuit 210 outputs (B−X) × (R−X). 211 is 6 obtained by the multiplication circuits 205 to 210
This is a matrix conversion circuit for performing a matrix conversion of at least signal values, and specifically, performs an operation of the following equation (1),
R, dG and db are output. That is,

【0012】[0012]

【数1】 (Equation 1)

【0013】である。ここで用いられるマトリックス変
換係数aijは後述する方法で求められる。212,21
3,214は上式(1)で得られたdR,dG,dB
と、元々のR,G,B信号を加算する加算器であり、変
換後の色分解信号R’,G’,B’を出力する。すなわ
ち次の(2)式を実行する。
[0013] The matrix conversion coefficient a ij used here is obtained by a method described later. 212, 21
3,214 are dR, dG, dB obtained by the above equation (1).
And an adder for adding the original R, G, B signals, and outputs the converted color separation signals R ′, G ′, B ′. That is, the following equation (2) is executed.

【0014】[0014]

【数2】 (Equation 2)

【0015】次に、(1)式のマトリックス変換係数a
ijの求め方について説明する。マトリックス変換の目的
は入力画像に含まれる広い色範囲の色をハードコピーの
色再現範囲にマッピングすることであるが、ここではま
ず赤色の再現について考えることにする。画像信号が
R,G,B各色8ビットで表わされているとし入力画像
中に含まれる最も彩度の高い赤色がR=200,G=1
5,B=0という色信号であったとする。この色は図3
の色度図上ではRi 点にある。しかしハードコピーで再
現出来る最も彩度の高い赤色はRH 点であるので従来の
方法ではRH 点とRC 点の間にある色は図べてRH 点と
してハードコピー出力されてしまうことになる。
Next, the matrix conversion coefficient a in equation (1)
A method for obtaining ij will be described. The purpose of the matrix conversion is to map a wide color range of colors included in the input image to the color reproduction range of the hard copy. Here, the reproduction of red will be considered first. Assuming that the image signal is represented by 8 bits for each of R, G, and B, the highest saturation red included in the input image is R = 200, G = 1.
It is assumed that the color signal is 5, B = 0. This color is Figure 3
Is at the point R i on the chromaticity diagram of FIG. But most saturation red can reproduce a hard copy that would be hard copy output as the color is downy FIG R H point located between the R H point and R C point by conventional methods because it is R H point become.

【0016】逆にRH 点の色信号値をR,G,B信号で
表わすと、通常R=160,G=20,B=10程度に
なっている。従って入力される色信号R=200,G=
15,B=10となるように変換するようにすればRi
点はRH 点に変換され、その間の色はRH 点よりも内側
へマッピングされ、入力信号の原色は保存したまま、入
力画像に含まれる色再現領域をハードコピーの色再現領
域へマッピングすることが出来る。
Conversely, when the color signal value at the point R H is represented by the R, G, and B signals, usually, R = 160, G = 20, and B = 10. Therefore, the input color signals R = 200, G =
By converting so that 15, B = 10, R i
The points are converted to points R H , the colors between them are mapped inside the points R H , and the color reproduction area included in the input image is mapped to the color reproduction area of the hard copy while preserving the primary colors of the input signal. I can do it.

【0017】このような対応関係を6原色全てについて
設定すると、前記(1)式と(2)式から、18個の連
立1次方程式ができる。未知数としてaijがやはり18
個あるので一義的に解くことが出来マトリックス変数係
数が決定できる。対応関係の一例を以下に示す。
When such correspondences are set for all six primary colors, 18 simultaneous linear equations can be obtained from the above equations (1) and (2). Aij is also 18 as an unknown
Since there are a number of them, they can be uniquely solved and the matrix variable coefficients can be determined. An example of the correspondence relationship is shown below.

【0018】[0018]

【数3】 …(3) 以上の手順によって第1図の色信号変換として所望のも
のが得られる。ここで入力画像信号中に含まれる最も彩
度の高い6原色信号値((3)式の左側のR,G,B
値)を検出することが必要となる。そのための方法につ
いて以下さらに図面を用いて詳細に説明する。
(Equation 3) (3) By the above procedure, a desired color signal conversion shown in FIG. 1 is obtained. Here, the six primary color signal values having the highest saturation included in the input image signal (R, G, B on the left side of the equation (3))
Value) must be detected. The method for that will be described in detail below with reference to the drawings.

【0019】図4はCRTの色再現範囲とハードコピー
の色再現範囲をL* ,u* ,v* ,均等色空間上に模式
的にプロットした図である。L* ,u* ,v* 空間とは
CIE(国際照明委員会)で規定された均等色空間であ
り、人間の視覚特性にほぼリニアーに対応していると言
われている。R,G,B信号をL* ,u* ,v* 信号に
変換するには以下の式(4)〜(6)を用いれば良い。
FIG. 4 is a diagram in which the color reproduction range of a CRT and the color reproduction range of a hard copy are schematically plotted on L * , u * , v * and a uniform color space. The L * , u * , and v * spaces are uniform color spaces defined by the CIE (International Commission on Illumination) and are said to correspond almost linearly to human visual characteristics. The following equations (4) to (6) may be used to convert the R, G, B signals into L * , u * , v * signals.

【0020】 L* =116(Y/Y01/3 −16 u* =13L* (u−u0 ) v* =13L* (v−v0 ) …(4) ここで、 u=4X/(X+15Y+3Z) v=9Y/(X+15Y+3Z) …(5) また、 X=0.6067R+0.1736G+0.2001B Y=0.2988R+0.5868G+0.1144B Z=0.0000R+0.0661G+1.1150B …(6) 六面体401がCRTの色再現範囲、402の六面体が
ハードコピーの色再現範囲を表わしている。ここでは入
力画像中に含まれる色信号をはじめにサンプリングし、
* ,u* ,v* 色空間上で最も彩度の高い色を検出
し、この値から(1)式のマトリックス係数を決定する
ように構成する。いま入力画像中のある画素の信号値が
S ,GS ,BS であったとする。この値をL* ,u
* ,v* 値に直すと図4では403で示された点Sとな
る。求められる必要があるのは入力画像中に含まれる信
号値のうち、R,G,B,Y,M,C6原色各々の最も
彩度の高い色のRGB信号値である。そこでL* ,u
* ,v* 空間上で図5(図4の400で示した範囲の拡
大図)のようなベクトルを考える。同図ではM(マゼン
タ)方向の場合を示している。MH はハードコピーのマ
ゼンタのL* ,u* ,v*空間上の座標、MC はCRT
のL* ,u* ,v* 空間上の座標であり、図4と同一で
ある。MH から入力色SへのベクトルMH S、及びMH
からMC へのベクトルMHC をとりMH SのMHC
方向の方向余弦rM を求める。rM が大きい程入力色S
のマゼンタ方向の彩度が高いということがわかる。rM
は以下の式(3)の内積演算で求めることができる。す
なわち、
L * = 116 (Y / Y 0 ) 1/3 −16 u * = 13 L * (u−u 0 ) v * = 13 L * (v−v 0 ) (4) where u = 4X / (X + 15Y + 3Z) v = 9Y / (X + 15Y + 3Z) (5) X = 0.6767R + 0.1736G + 0.2001B Y = 0.2988R + 0.5868G + 0.1144B Z = 0.0000R + 0.0661G + 1.1150B (6) The hexahedron 401 is a CRT. A hexahedron 402 of the color reproduction range 402 represents the color reproduction range of the hard copy. Here, the color signals contained in the input image are sampled first,
The configuration is such that the color with the highest saturation in the L * , u * , v * color space is detected, and the matrix coefficient of equation (1) is determined from this value. It is assumed that the signal values of certain pixels in the input image are R S , G S , and B S. This value is L * , u
When converted into * and v * values, a point S indicated by 403 in FIG. 4 is obtained. What needs to be obtained is the RGB signal value of the color with the highest saturation among the R, G, B, Y, M, and C6 primary colors among the signal values included in the input image. Then L * , u
Consider a vector as shown in FIG. 5 (an enlarged view of the range indicated by 400 in FIG. 4) in the * and v * spaces. FIG. 3 shows the case of the M (magenta) direction. M H is the hard copy of magenta L *, u *, v * coordinates in space, M C is CRT
In L * , u * , v * space, and is the same as FIG. Vector M H S from M H to the input color S, and M H
M H M C of taking the vector M H M C to M C from M H S
Find the direction cosine r M of the direction. The input color S increases as r M increases.
It can be seen that the saturation in the magenta direction is high. r M
Can be obtained by the inner product operation of the following equation (3). That is,

【0021】[0021]

【数4】 (Equation 4)

【0022】同様にして他の原色についてもその方向の
方向余弦rR ,rG ,rB ,rY ,rC を求め、この中
から最大となるものを選べば入力色がどの方向(色相)
の色であるかがわかる。このようにして入力画像中の全
ての画素、あるいは一定間隔でサンプリングされた画素
について方向余弦の最大値を各色毎に求めれば、この最
大値を与えるときのL* ,u* ,v* 値を逆変換したR
GB信号が求めるべき色信号値となることになる。
Similarly, for the other primary colors, the direction cosines r R , r G , r B , r Y , and r C in that direction are obtained. If the largest one is selected from these, the input color can be determined in any direction (hue). )
You can see if the color is If the maximum value of the direction cosine is obtained for each color for all the pixels in the input image or the pixels sampled at a constant interval in this manner, the L * , u * , v * values at the time of giving the maximum values are obtained. Inverted R
The GB signal becomes the color signal value to be obtained.

【0023】以上の手順をフローチャートとして図6に
示す。尚、本処理の全体の制御は、CPU107に従
う。図中、Rmax ,Gmax ,Bmax ,Ymax ,Mmax
max とあるのは各原色方向の方向余弦の最大値であ
る。これらを0にセットする(ステツプS601)。次
に、入力画像中から特定画素のR,G,B値を読み出す
(ステップ602)。求められたRGBの信号値は
(3)式の原色間の対応関係の左辺のデータとして扱わ
れる。R、G、B値をL* 、u* 、v* に変換する(ス
テツプS603)。そして、6原色方向の余弦rR 、r
G 、rB 、rY 、rM 、rC を求め(ステツプS60
4)、その中から最大値を求める(ステツプS60
5)。
FIG. 6 is a flowchart showing the above procedure. Note that the overall control of this process is performed by the CPU 107. In the figure, R max , G max , B max , Y max , M max ,
C max is the maximum value of the direction cosine in each primary color direction. These are set to 0 (step S601). Next, the R, G, and B values of a specific pixel are read from the input image (step 602). The obtained RGB signal values are treated as data on the left side of the correspondence between the primary colors in the equation (3). The R, G, B values are converted into L * , u * , v * (step S603). And cosines r R , r in the six primary color directions
G, r B, r Y, r M, seek r C (step S60
4) Find the maximum value from among them (step S60)
5).

【0024】最大値がrX (XはR、G、B、Y、M、
Cのいずれか)が最大値となった場合(ステツプS60
6)、rX >Xmax の場合、Xmax をrX に置き換える
(ステツプS607)。このとき、L* 、u* 、v*
号をR、G、B信号に逆変換し、X方向の最大彩度信号
として記憶する(ステツプS608)。サンプリング対
象画素がすべて終了したら、ステツプS610へ、未終
了ではステツプS602へ進み上記処理を繰り返す。ス
テツプS610では、最大彩度信号からマトリックス変
換係数を求める。このようにして、入力画像に最適な変
換係数が得られる。 <第2の実施例>さて、前記実施例では、入力画像信号
から各原色方向の方向余弦が最大となる色(入力画像信
号403)を最大彩度色信号としたが、(入力画像信号
403)の点がハードコピーの原色とモニタの原色を結
ぶ線上(図5ではベクトルMH C )から大きく離れて
いると、この最大彩度色をハードコピーの原色へ変換し
てしまうため、色相の変化を生じてしまうことがわか
る。
The maximum value is rX (X is R, G, B, Y, M,
C has reached the maximum value (step S60).
6), rX > Xmax Xmax To rX Replace with
(Step S607). At this time, L* , U* , V* Faith
Signal is converted back to R, G, B signals, and the maximum saturation signal in the X direction
(Step S608). Sampling vs
When all the elephant pixels are completed, the process proceeds to step S610,
Upon completion, the flow advances to step S602 to repeat the above processing. S
In step S610, the maximum chroma signal is transformed into a matrix.
Find the permutation coefficient. In this way, the optimal transformation for the input image
A permutation coefficient is obtained. <Second Embodiment> In the above embodiment, the input image signal
From the color that maximizes the direction cosine in each primary color direction (input image signal
No. 403) as the maximum chroma color signal,
The point 403) connects the primary color of the hard copy with the primary color of the monitor.
(In FIG. 5, the vector MH M C Far away from
To convert this maximum saturation color to a hard copy primary
Will cause a change in hue.
You.

【0025】そこで第2の実施例としては、最大彩度色
信号として検出される色をハードコピー原色とモニタ原
色を均等色空間上で直線状の色に限定するようにする。
図7にこの様子を示す。図7は、図5と同様に、マゼン
タ方向の最大彩度色を検出する場合を示し、記号の意味
も図5と同一である。ここでも第1の実施例と同様ベク
トルMHC 方向の方向余弦が最大となる色信号Sを求
めるのであるが、Sが求められた後に実際に最大彩度色
信号となるのは図中で601で示された点Qである。Q
点はベクトルMHC 上でMH から距離rM だけ離れた
点、すなわち第1の実施例で求めた最大彩度色信号をベ
クトルMHC 上に射影した点となっている。この点6
01のL* ,u* ,v* 値は簡単なベクトル演算により
求めることができる。この値をやはりR,G,B信号に
逆変換することで求められる信号値を得ることができ
る。 <第3の実施例>以上の2つの実施例において、均等色
空間としてCIEのL* ,u* ,v* を用いたが他の均
等色空間を用いても同様の効果が得られる。
Therefore, as a second embodiment, the colors detected as the maximum chroma color signals are limited to linear colors in the hard copy primary colors and the monitor primary colors on a uniform color space.
FIG. 7 shows this state. FIG. 7 shows a case where the maximum chroma color in the magenta direction is detected, as in FIG. 5, and the meanings of the symbols are the same as in FIG. Here, as in the first embodiment, the color signal S that maximizes the direction cosine in the direction of the vector M H M C is obtained. Is the point Q indicated by 601. Q
Point has a point obtained by projecting the point at a distance r M from M H on the vector M H M C, i.e. the maximum saturation color signals obtained in the first embodiment on the vector M H M C. This point 6
The L * , u * , and v * values of 01 can be obtained by a simple vector operation. The signal value can be obtained by inverting this value again into R, G, B signals. <Third Embodiment> In the above two embodiments, the CIE L * , u * , and v * are used as the uniform color space, but the same effect can be obtained by using another uniform color space.

【0026】例えば、同じくCIEのL* ,a* ,b*
を用いることも可能である。また均等色空間への変換演
算を簡略化するためR,G,B信号をLUTなどで1/
3乗変換してR’,G’,B’としてこれを下式(4)
により略均等色空間に近い信号値(ここではL,c1,
c2と呼ぶ)に変換して扱うことも可能である。 R’=(R/255)1/3 G’=(G/255)1/3 B’=(B/255)1/3 L =100(R’+G’+B’)/3 c1=100(R’−G’) c2=100(R’/2+G’/2−B’) …(4) ここで得られるL,c1,c2は色空間の均等性として
はやや劣るが、演算が簡単なためCPUへの負担は軽く
なるというメリットがある。
For example, C * L * , a * , b *
Can also be used. Also, in order to simplify the conversion operation to the uniform color space, the R, G, and B signals are converted to 1 /
R3, G ', B' are converted to the third power, and this is expressed by the following equation (4)
, A signal value close to a substantially uniform color space (here, L, c1,
c2). R ′ = (R / 255) 1/3 G ′ = (G / 255) 1/3 B ′ = (B / 255) 1/3 L = 100 (R ′ + G ′ + B ′) / 3 c1 = 100 ( R′−G ′) c2 = 100 (R ′ / 2 + G ′ / 2−B ′) (4) L, c1 and c2 obtained here are slightly inferior in the uniformity of the color space, but the operation is simple. Therefore, there is an advantage that the load on the CPU is reduced.

【0027】尚、本発明は、複数の機器から構成される
システムに適用しても1つの機器から成る装置に適用し
ても良い。また、本発明は、システム或は装置にプログ
ラムを供給することによって達成される場合にも適用で
きることはいうまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or an apparatus.

【0028】[0028]

【発明の効果】以上説明したように、本発明によれば、
入力画像の色再現範囲を示す6原色値が出力装置の色再
現範囲を示す6原色値に変換されるように求めたマトリ
ックス係数を用いて、入力画像を示すカラー画像データ
出力装置の色再現範囲内にマッピングすることが可能
となる。よって、出力装置の色再現範囲外を含む入力画
像を良好に出力装置で再現することができる。
As described above, according to the present invention,
The six primary color values indicating the color reproduction range of the input image are
Matrices determined to be converted to six primary color values indicating the current range
Color image data representing the input image using the
Can be mapped within the color reproduction range of the output device. Therefore, an input image including an area outside the color reproduction range of the output device can be favorably reproduced by the output device.

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

【図1】本発明の第1の実施例によるカラー画像処理装
置の構成を示すブロツク図である。
FIG. 1 is a block diagram showing a configuration of a color image processing apparatus according to a first embodiment of the present invention.

【図2】第1の実施例によるマトリックス変換回路10
3を実現する回路ブロック図である。
FIG. 2 is a matrix conversion circuit 10 according to the first embodiment;
3 is a circuit block diagram for realizing No. 3.

【図3】CIExy色度図である。FIG. 3 is a CIExy chromaticity diagram.

【図4】CRTの色再現範囲とハードコピーの色再現範
囲をL* ,u* ,v* ,均等色空間上に模式的にプロッ
トした図である。
FIG. 4 is a diagram schematically plotting a color reproduction range of a CRT and a color reproduction range of a hard copy on L * , u * , v * , and a uniform color space.

【図5】図4の要部の拡大図である。FIG. 5 is an enlarged view of a main part of FIG.

【図6】本実施例による動作を説明するフローチヤート
である。
FIG. 6 is a flowchart illustrating an operation according to the present exemplary embodiment.

【図7】第2の実施例によるマゼンタ方向の最大彩度色
を検出する場合のベクトルを説明する図である。
FIG. 7 is a diagram illustrating a vector when a maximum saturation color in the magenta direction is detected according to the second embodiment.

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

101 セレクタ 102,104 バス 103 マトリックス変換回路 105 サンプリング回路 106 バツフアメモリ 107 CPU 201 最小抽出回路 202,203,204 減算回路 205,206,207 ラッチ回路 208,209,210 乗算回路 211 マトリックス変換回路 101 selector 102, 104 bus 103 matrix conversion circuit 105 sampling circuit 106 buffer memory 107 CPU 201 minimum extraction circuit 202, 203, 204 subtraction circuit 205, 206, 207 latch circuit 208, 209, 210 multiplication circuit 211 matrix conversion circuit

フロントページの続き (56)参考文献 特開 平4−119765(JP,A) 特開 昭63−35078(JP,A) 特開 昭61−214893(JP,A) 特開 平3−159475(JP,A) 特開 平2−220566(JP,A) 特開 平4−115691(JP,A) 特開 平3−83455(JP,A) 特開 平1−168454(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/60 H04N 1/46 Continuation of front page (56) References JP-A-4-119765 (JP, A) JP-A-63-35078 (JP, A) JP-A-61-214893 (JP, A) JP-A-3-159475 (JP, A) JP-A-2-220566 (JP, A) JP-A-4-1155691 (JP, A) JP-A-3-83455 (JP, A) JP-A-1-168454 (JP, A) (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/60 H04N 1/46

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力画像を示すカラー画像データを出力
装置の色再現範囲にマッピングするカラー画像処理装置
であって、 均等色空間上において、前記出力装置の色再現範囲を示
す赤、緑、青、シアン、マゼンタ、イエローの6原色
方向を基準にして、前記カラー画像データの前記6原
の各方向における成分値を算出する算出手段と、 前記算出された成分値から、前記入力画像の色再現範
囲を示す赤、緑、青、シアン、マゼンタ、イエローの6
原色値を検出する検出手段と、 前記検出された入力画像の色再現範囲を示す6原色値が
前記出力装置の色再現範囲を示す6原色値に変換される
ように求めたマトリックス係数を用いて、前記カラー画
像データを前記出力装置の色再現範囲にマッピングする
マッピング手段とを有することを特徴とするカラー画像
処理装置。
1. A color image processing device for mapping color image data representing an input image to a color reproduction range of an output device, wherein red, green, and blue representing the color reproduction range of the output device on a uniform color space. , cyan, magenta, of the six primary colors of yellow
Each direction on the basis, the calculation means for calculating the component values in each direction of the 6 primary colors of the color image data, from the component values of the calculated red indicating the color gamut of the input image, green, 6 for blue, cyan, magenta and yellow
Detecting means for detecting a primary color value; and a matrix coefficient determined so that the six primary color values indicating the color reproduction range of the detected input image are converted into six primary color values indicating the color reproduction range of the output device. And a mapping means for mapping the color image data to a color reproduction range of the output device.
【請求項2】 前記検出手段は、前記均等色空間上にお
いて、前記出力装置の色再現範囲を示す6原色の各方向
のベクトルに対する前記入力画像の色再現範囲を示す6
原色の各方向のベクトルの方向余弦の最大値を前記入力
画像の色再現範囲を示す6原色の各方向の成分値として
検出することを特徴とする請求項1に記載のカラー画像
処理装置。
2. The image processing apparatus according to claim 1, wherein the detecting unit is configured to indicate a color reproduction range of the input image with respect to a vector in each direction of six primary colors indicating a color reproduction range of the output device on the uniform color space.
2. The color image processing apparatus according to claim 1, wherein a maximum value of a direction cosine of a vector in each direction of a primary color is detected as a component value in each direction of six primary colors indicating a color reproduction range of the input image.
【請求項3】 入力画像を示すカラー画像データを出力
装置の色再現範囲にマッピングするカラー画像処理方法
であって均等色空間上において、 前記出力装置の色再現範囲を示
す赤、緑、青、シアン、マゼンタ、イエローの6原色の
各方向を基準にして、前記カラー画像データの前記6原
色の各方向における成分値を算出する算出工程と、 前記算出された各成分値から、前記入力画像の色再現範
囲を示す赤、緑、青、シアン、マゼンタ、イエローの6
原色値を検出する検出工程と、 前記検出された入力画像の色再現範囲を示す6原色値が
前記出力装置の色再現範囲を示す6原色値に変換される
ように求めたマトリックス係数を用いて、前記カラー画
像データを前記出力装置の色再現範囲にマッピングする
マッピング工程とを有する ことを特徴とするカラー画像
処理方法
3. A color image processing method for mapping color image data representing an input image to a color reproduction range of an output device.
A is, in the uniform color space, a color reproduction range of the output device shows
Red, green, blue, cyan, magenta and yellow
The six sources of the color image data with respect to each direction.
Calculating a component value in each direction of the color; and calculating a color reproduction range of the input image from the calculated component values.
Red, green, blue, cyan, magenta, and yellow 6
A detecting step of detecting primary color values, and six primary color values indicating a color reproduction range of the detected input image are
Converted to six primary color values indicating the color reproduction range of the output device
Using the matrix coefficients obtained as described above, the color image
Map image data to the color gamut of the output device
A color image processing method comprising a mapping step .
JP16896892A 1992-04-02 1992-06-26 Color image processing apparatus and method Expired - Lifetime JP3205054B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP16896892A JP3205054B2 (en) 1992-06-26 1992-06-26 Color image processing apparatus and method
US08/038,898 US5657068A (en) 1992-04-02 1993-03-29 Color image processing apparatus and conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16896892A JP3205054B2 (en) 1992-06-26 1992-06-26 Color image processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH0614183A JPH0614183A (en) 1994-01-21
JP3205054B2 true JP3205054B2 (en) 2001-09-04

Family

ID=15877911

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16896892A Expired - Lifetime JP3205054B2 (en) 1992-04-02 1992-06-26 Color image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP3205054B2 (en)

Also Published As

Publication number Publication date
JPH0614183A (en) 1994-01-21

Similar Documents

Publication Publication Date Title
EP0487304B1 (en) Color image processing
US6882445B1 (en) Color gamut compression apparatus and method
JP2004192614A (en) Image processing device, image processing method, program and recording medium
JPH0723245A (en) Picture processing unit
US6922198B2 (en) Color signal processing apparatus and method for reproducing colors on MPD
JP3560521B2 (en) Image display device
JP2876853B2 (en) Color converter
US5657068A (en) Color image processing apparatus and conversion method
JP3205054B2 (en) Color image processing apparatus and method
JP2845523B2 (en) Color estimation method
JP2001197321A (en) Color picture processing method and picture processor
JP2947015B2 (en) Color conversion device and color conversion method
JP2002094826A (en) Image processing unit, image forming unit and method for processing image
JPH0814843B2 (en) Color conversion method and color conversion device
JP2005269443A (en) Method and apparatus for image processing, program and recording medium
JP3060640B2 (en) Color converter
JPH10191089A (en) Color converter, color printer, color image data output device and recording medium
JP3382277B2 (en) Image processing apparatus and method
JP2534307B2 (en) Color conversion device
JPH10126636A (en) Color image processing method and processing unit
JP2001148794A (en) Color conversion method, color conversion table generator, color converter and recording medium
JP2686258B2 (en) Image data processing device
JPH0646251A (en) Color picture processing unit and conversion method
JPH0223776A (en) Color correcting device and data calculating device for color correction
JP2001320593A (en) Image processing unit, and image forming device provided with it, and image processing method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20001120

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010528

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

Free format text: PAYMENT UNTIL: 20080629

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090629

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090629

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100629

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110629

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120629

Year of fee payment: 11

EXPY Cancellation because of completion of term