JP3337697B2 - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JP3337697B2 JP3337697B2 JP00284291A JP284291A JP3337697B2 JP 3337697 B2 JP3337697 B2 JP 3337697B2 JP 00284291 A JP00284291 A JP 00284291A JP 284291 A JP284291 A JP 284291A JP 3337697 B2 JP3337697 B2 JP 3337697B2
- Authority
- JP
- Japan
- Prior art keywords
- color
- color space
- point
- angle
- data
- 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 - Fee Related
Links
Landscapes
- Dot-Matrix Printers And Others (AREA)
- Color, Gradation (AREA)
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、カラー画像データの色
空間をカラー画像出力装置の色再現範囲に応じて変換す
る画像処理方法に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method for converting a color space of color image data according to a color reproduction range of a color image output device.
【0002】[0002]
【従来の技術】従来より、カラースキャナよりのカラー
画像データ(多値データ)を入力し、そのカラー画像デ
ータに基づいて、カラープリンタによりカラー記録を行
う装置がある。この場合、カラースキャナの色特性(読
取り色特性)とプリンタにおける色再生特性(色再現範
囲)とが一致しない場合がある。このような場合でも、
例えばスキャナよりの多値画像データ(8ビット)の取
り得る値(0〜255)が、色空間上のどの範囲を示し
ているか定めることなく、プリンタ側が自機で扱える色
空間範囲に適合した画像データであると解釈して、その
多値画像データを基に記録していた。2. Description of the Related Art Conventionally, there is an apparatus which inputs color image data (multi-valued data) from a color scanner and performs color recording by a color printer based on the color image data. In this case, the color characteristics (reading color characteristics) of the color scanner and the color reproduction characteristics (color reproduction range) of the printer may not match. Even in such a case,
For example, an image conforming to a color space range that can be handled by the printer side by itself without deciding which range in the color space the possible value (0 to 255) of the multi-valued image data (8 bits) from the scanner indicates. It was interpreted as data and recorded based on the multi-valued image data.
【0003】[0003]
【発明が解決しようとする課題】このため従来では、原
稿画像のハードコピーやソフトコピー等を行う場合、オ
リジナル原稿や、オリジナルの画像データの色が、プリ
ンタ側で忠実に再生されずに、原稿画像と異なる色で再
生されてしまうという問題があつた。Therefore, conventionally, when performing hard copy or soft copy of an original image, the original original or the color of the original image data is not faithfully reproduced on the printer side, and the original original is not reproduced. There was a problem that the image was reproduced in a different color from the image.
【0004】本発明は上記従来例に鑑みてなされたもの
で、カラー画像出力装置の色再現範囲外の色を含む入力
カラーデータを、そのカラー画像出力装置で良好に再現
する画像処理方法を提供することを目的とする。The present invention has been made in view of the above conventional example, and provides an image processing method for satisfactorily reproducing input color data including colors outside the color reproduction range of a color image output device by the color image output device. The purpose is to do.
【0005】[0005]
【課題を解決するための手段】上記目的を達成するため
に本発明の画像処理方法は以下のような工程を備える。
即ち、入力カラーデータをカラー画像出力装置の色再現
範囲に応じて変換する画像処理方法であって、彩度に応
じて、均等知覚色空間上の色相を変化させる非線形ライ
ンを、前記均等知覚色空間上の複数の異なる色相の夫々
について用意し、前記入力カラーデータの均等知覚色空
間上の色相に対応する前記非線形ラインを用いて、前記
入力カラーデータを前記カラー画像出力装置の色再現範
囲内に変換することを特徴とする。In order to achieve the above object, an image processing method according to the present invention comprises the following steps.
That is, an image processing method for converting input color data according to a color reproduction range of a color image output device, wherein a non-linear line that changes a hue on a uniform perceived color space according to saturation is converted to the uniform perceived color. For each of a plurality of different hues on the space, prepare the input color data within the color reproduction range of the color image output device using the nonlinear line corresponding to the hue on the uniform perceived color space of the input color data. It is characterized by being converted into.
【0006】[0006]
【0007】[0007]
【0008】[0008]
【実施例】以下、添付図面を参照して本発明の好適な実
施例を詳細に説明する。 <色空間の変換例の説明 (図2、図3)>図2は色空
間の範囲を示す図である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below in detail with reference to the accompanying drawings. <Description of Color Space Conversion Example (FIGS. 2 and 3)> FIG. 2 is a diagram showing the range of the color space.
【0009】図2において、点Fを含む閉曲線201
は、全色空間の外縁を示しており、点Eを含む閉曲線2
02は、プリンタが色再現可能な範囲の色空間の外縁を
示している。本実施例では、点Fを含む閉曲線201
内、即ち、全色空間(閉曲線201)を点Eを含む閉曲
線202の色空間内へ空間圧縮することにより、プリン
タにおける色再現性を向上しようとするものである。In FIG. 2, a closed curve 201 including a point F is shown.
Indicates the outer edge of the full color space, and indicates the closed curve 2 including the point E.
02 indicates the outer edge of the color space within a range in which the printer can reproduce colors. In the present embodiment, the closed curve 201 including the point F
In other words, the color reproducibility of the printer is improved by spatially compressing the entire color space (closed curve 201) into the color space of the closed curve 202 including the point E.
【0010】本実施例において、図2(A)はL,a,
b,Y,I,Q等の均等知覚色空間を示しているが、別
の色空間であつても構わない。図2(A)における色空
間を切断曲線203で切断した時、その断面の色空間圧
縮がどのようになつているかを示したのが図2(B)で
ある。図2(B)において、Fは全色空間の外縁を示
し、Eはプリンタによる色再現が可能な範囲の外縁、D
はプリンタによる色ずれが発生しない再現範囲、そして
Cは色空間の中心を示している。In this embodiment, FIG. 2A shows L, a,
Although the uniform perceived color space such as b, Y, I, and Q is shown, another color space may be used. FIG. 2B shows how the color space is compressed in the cross section when the color space in FIG. 2A is cut along the cutting curve 203. In FIG. 2B, F indicates the outer edge of the entire color space, E indicates the outer edge of a range in which color reproduction by a printer is possible, and D indicates
Indicates a reproduction range in which color shift does not occur by the printer, and C indicates the center of the color space.
【0011】閉曲線201(図2(B)のFに相当)で
示された全色空間の内、点Dを通る閉曲線204で囲ま
れる色空間に含まれる色情報は、そのままプリンタで再
現される。そして、閉曲線204と閉曲線201で囲ま
れる色空間にある色をプリンタで再現する場合には、閉
曲線202で囲まれた色空間内に圧縮して、プリンタで
再生する。これを示したのが図2(B)で、切断線上の
線分DFは線分DEに圧縮され、線分DF上の各点はそ
れぞれ均等な割合で線分DE上に圧縮される。なお、図
2に示されたC点は、本実施例の均等色空間の中心位置
を示し、その色は白色である。The color information contained in the color space surrounded by the closed curve 204 passing through the point D in the entire color space indicated by the closed curve 201 (corresponding to F in FIG. 2B) is reproduced by the printer as it is. . When a color in the color space surrounded by the closed curves 204 and 201 is reproduced by the printer, the colors are compressed in the color space surrounded by the closed curves 202 and reproduced by the printer. This is shown in FIG. 2B, in which the line segment DF on the cutting line is compressed into a line segment DE, and each point on the line segment DF is compressed on the line segment DE at a uniform rate. The point C shown in FIG. 2 indicates the center position of the uniform color space according to the present embodiment, and its color is white.
【0012】図3は色空間の変換例を示す図で、ここ
で、与えられた全色空間の各色成分を8ビット(25
5)とした場合をS1で示している。そして、これを同
じ条件で図2(B)の如く空間圧縮した時の各色成分の
取り得る値の範囲をS2で示している。また、S3はプ
リンタにおける色再現が可能な範囲を8ビット最大限に
活用した場合を示し、最終的には全色空間の点Di はプ
リンタにおける色再現が可能なDf へ、全色空間の点F
i はEf に変換されれば良いことになる。FIG. 3 is a diagram showing an example of color space conversion. Here, each color component of a given full color space is represented by 8 bits (25 bits).
The case of 5) is indicated by S1. The range of possible values of each color component when this is spatially compressed as shown in FIG. 2B under the same conditions is indicated by S2. Further, S3 denotes a case utilizing a range capable of color reproduction of the printer to 8 bit full, to a final D i terms of total color space to the possible color reproduction of the printer of D f, the total color space Point F
i only needs to be converted to E f .
【0013】また図2(C)に示したように、切断線2
03により切断される線上の色は、同じ色相の色を示し
ている。Further, as shown in FIG.
The colors on the line cut by 03 indicate colors of the same hue.
【0014】ところが図2(B)において、切断線20
3を示す線分CDEFは、図2(A)に示すように実際
には曲線であるので、この切断線203上の各点の位置
の、点Cより水平に右に引いた水平線205に対する位
相角度(これを均等色空間の色相という)は、少しずつ
異なっている。そこで、線分CFのからの位相ずれの角
度を点SSでθA、点SEでθBとすれば、もし色空間
圧縮で点SSの位置の色が位相を変えずに点SEの点に
圧縮されるならば、このときの位相角度は原理的に(θ
B−θA)だけ大きくすれば良いことがわかる。However, in FIG.
2 is actually a curve as shown in FIG. 2 (A), and therefore, the phase of each point on the cutting line 203 with respect to the horizontal line 205 drawn horizontally to the right from the point C is shown. The angle (this is called the hue of the uniform color space ) is slightly different. Therefore, the angle of the phase shift of the color of the line segment CF at point SS theta A, if theta B at point SE, if the color of the position of the point SS in the color space compression is the point of the point SE without changing the phase If compressed, the phase angle at this time is in principle (θ
It can be seen that B- [ theta] A ) should be increased.
【0015】又、直線分C,SSの距離をrSS、直線分
C,SEの距離をrSEとし、曲線分C,SSの長さをR
SS、曲線分のC,SEの長さをRSEとすれば、RSSとR
SEの比はrSSとrSEとの比に近似して考えても実用上問
題ない。従って、本実施例では、点Cからの点SS及び
点SEまでの直線距離rSS,rSE等を用いて、色空間に
おける座標を決定することにする。The distance between the straight lines C and SS is r SS , the distance between the straight lines C and SE is r SE, and the length of the curved lines C and SS is R
If SS and the length of C and SE of the curve are R SE , then R SS and R
There is no practical problem even if the ratio of SE is approximated to the ratio of r SS to r SE . Therefore, in this embodiment, the coordinates in the color space are determined using the linear distances r SS and r SE from the point C to the point SS and the point SE.
【0016】図11は色相補正テーブル(色相補正テー
ブル1)のデータ構成を示す図で、このテーブルには、
前述した位相角度θA やθB 等に相当するデータが書き
込まれている。即ち、図2の水平線205からの角度θ
n と中心点Cからの直線距離rn で規定される切断線2
03上の点Pの位置(rn ,θn )の、直線CFからの
位相角度の差をθ(rn ,θn )としたとき、各点に対
する距離rn と、これに対応した位相角度θとの差を示
すデータ(角度)がテーブルとして書込まれている。例
えば、θ(r1 ,0)は、水平線205からの角度0°
と中心点Cからの直線距離r1 で規定される切断線上の
点Pの位置(r1 ,0)を、この点に対応する角度が0
°の直線上の点に移動するときの位相角度差を示してい
る。FIG. 11 is a diagram showing a data structure of a hue correction table (hue correction table 1).
Data corresponding to the above-described phase angle theta A and theta B and the like are written. That is, the angle θ from the horizontal line 205 in FIG.
defined by a linear distance r n from n and center point C cutting line 2
Position of the point P on 03 (r n, θ n) of, when the difference in phase angle from a straight line CF was θ (r n, θ n) , and the distance r n for each point, the phase corresponding thereto Data (angle) indicating the difference from the angle θ is written as a table. For example, θ (r 1 , 0) is an angle 0 ° from the horizontal line 205.
And the position (r 1 , 0) of the point P on the cutting line defined by the linear distance r 1 from the center point C, and the angle corresponding to this point is 0
The phase angle difference when moving to a point on the straight line of ° is shown.
【0017】また、特に図示しないが、図11と同様な
テーブル(色相補正テーブル2と呼ぶ)が設けられてお
り、この色補正テーブル2には直線FC上の点SE′か
ら曲線分上の点SEの同位相線へ戻す時の角度θB に相
当するものが書き込まれていて、そのデータはθ′(r
n ,θn )として記述される。Although not particularly shown, a table similar to that shown in FIG. 11 (referred to as a hue correction table 2) is provided. An angle corresponding to the angle θ B when the SE is returned to the same phase line is written, and the data is θ ′ (r
n , θ n ).
【0018】従って、色空間圧縮の手順としては、図1
1に示す色相補正テーブル1よりθ A を検索して、切断
曲線203上の点SSより直線CF上の点SS′の位置
を仮想する。次に、直線CF上の点SS′より同じ直線
上の点SE′を距離圧縮により導く。次に、点SE′よ
り曲線分203の点SEを求めるために、色相補正テー
ブル2よりθB を検索して、点SEの位相角を求める。
これにより、曲線分203上の点SSを空間圧縮した点
SEを求めることができる。Therefore, the procedure of the color space compression is shown in FIG.
From the hue correction table 1 shown in FIG. A Find and disconnect
Position of point SS 'on straight line CF from point SS on curve 203
Virtual. Next, the same straight line from the point SS 'on the straight line CF
The upper point SE 'is derived by distance compression. Next, point SE '
Hue correction table to determine the point SE of the
Than bull 2B To find the phase angle of the point SE.
As a result, a point obtained by spatially compressing the point SS on the curve segment 203
SE can be determined.
【0019】また、この色相補正テーブル1,2のテー
ブルのデータ容量を減らすためには、データを荒いきざ
み幅で持ち、処理時(検索時)に補間したデータを作成
すれば良いことは容易に推測できる。又、これら位相角
度の差をデータとして記憶するのでなく、この位相角度
の差を求めるための関数を用意してもよい。例えば、図
12(A)に示すような、距離rと位相各θとの関係を
示す関数を位相角ごとに設けても良く、また図12
(B)に示すように、全ての位相角に対して距離rと位
相角度θとの関係を示す1つの関数を設けて、計算によ
りこれらの値を求めるようにしてもよい。図12(B)
は、縦軸が補正角(θ)で、横軸がr/Fθとなってい
る。ここで、Fθは色空間の最外縁を示すので、最高値
が位相角度に依存せずに必ず“1”となる。Further, in order to reduce the data capacity of the hue correction tables 1 and 2, it is easy to generate data interpolated at the time of processing (at the time of retrieval) with data having a coarse step width. I can guess. Further, instead of storing these phase angle differences as data, a function for obtaining the phase angle differences may be prepared. For example, a function indicating the relationship between the distance r and each phase θ as shown in FIG. 12A may be provided for each phase angle.
As shown in (B), a single function indicating the relationship between the distance r and the phase angle θ may be provided for all the phase angles, and these values may be obtained by calculation. FIG. 12 (B)
Is the correction angle (θ) on the vertical axis and r / Fθ on the horizontal axis. Here, since Fθ indicates the outermost edge of the color space, the maximum value is always “1” without depending on the phase angle.
【0020】本実施例では、前述した色補正テーブル
1,2を用いた例を説明する。 <画像変換回路の説明 (図1)>図1は以上説明した
色空間圧縮を実現するための、本実施例の画像変換回路
の構成を示すブロツク図である。In this embodiment, an example using the above-described color correction tables 1 and 2 will be described. <Description of Image Conversion Circuit (FIG. 1)> FIG. 1 is a block diagram showing a configuration of an image conversion circuit of the present embodiment for realizing the above-described color space compression.
【0021】101は色変換部で、順次入力されるR,
G,Bの画像データをY,I,Qの色空間に変換してい
る。ここではR,G,Bの画像データをLab空間に変
換し、YとL、Iとa、Qとbを同様に扱うことも可能
であるが、ここではその説明を省略する。色変換部10
1でY,I,Qの色空間に変換された画像データは、角
度計算部102に入力される。この角度計算部102で
は、図4に示すようにI,Qの直交座標系にある画像デ
ータの画素データPが、Q軸より何度回転しているかを
示す角度θを求める。これは画素データP(I,Q)座
標を(i,q)とすれば、 tan-1 i/q (q≠0)、又は sin-1 i/(i2+q2 )1/2 cos-1q/( i2+q2 )1/2 [(i2+q2 )1/2 ≠0] の内、いずれかの式を用いることにより角度θを求める
ことができる。Reference numeral 101 denotes a color conversion unit which sequentially inputs R,
The G and B image data are converted into Y, I and Q color spaces. Here, it is possible to convert the R, G, and B image data into a Lab space and treat Y and L, I and a, and Q and b in the same manner, but the description is omitted here. Color converter 10
The image data converted into the Y, I, and Q color spaces in 1 is input to the angle calculation unit 102. The angle calculation unit 102 obtains an angle θ indicating how many times the pixel data P of the image data in the I and Q orthogonal coordinate systems is rotated from the Q axis as shown in FIG. This means that, if the coordinates of the pixel data P (I, Q) are (i, q), tan -1 i / q (q ≠ 0) or sin -1 i / (i 2 + q 2 ) 1/2 cos The angle θ can be obtained by using any one of −1 q / (i 2 + q 2 ) 1/2 [(i 2 + q 2 ) 1/2 ≠ 0].
【0022】また、色変換部101の出力はr計算部1
03にも入力されており、このr計算部103では、r
=(i2 +q2 )1/2 が計算されるとともに、色空間の
中心位置Cからの距離が計算される。これにより、極座
標系での画像データPの座標(r,θ)が求められる。
また、直交座標系では(i,q)=(rsin θ,rcos
θ)としても表わせる。The output of the color conversion unit 101 is output from the r calculation unit 1
03 is input to the r calculation unit 103.
= (I 2 + q 2 ) 1/2 and the distance from the center position C of the color space is calculated. Thereby, the coordinates (r, θ) of the image data P in the polar coordinate system are obtained.
In the orthogonal coordinate system, (i, q) = (rsin θ, rcos
θ).
【0023】角度計算部102の出力θは、色補正テー
ブル1(121)に入力され、切断曲線上の点から直線
CFへの位相角度の差が求められる。この差と角度計算
部102で求められた角度θとが加算器122で加算さ
れ、切断線203上の点の位置が直線CF上の位置に変
換される。この変換された位相差角度は、Dテーブル1
04、積算係数aテーブル105及び日積算係数bテー
ブル106に入力される。また、この加算器122の出
力は色相補正テーブル2(123)に入力されている。
この補正テーブル2(123)により、直線上の点の座
標を切断曲線上の点に変換するための角度が求められ、
加算器124により直線上の点が曲線上の点の位置に戻
される。また、この補正テーブル2(123)には、後
述するセレクタ112の出力であるr3が入力されてい
るため、直線上において距離圧縮された点の曲線上への
変換を行うことができる。The output θ of the angle calculation unit 102 is input to the color correction table 1 (121), and the phase angle difference from a point on the cutting curve to the straight line CF is obtained. This difference and the angle θ obtained by the angle calculation unit 102 are added by the adder 122, and the position of a point on the cutting line 203 is converted to a position on the straight line CF. This converted phase difference angle can be obtained from the D table 1
04, input to the accumulation coefficient a table 105 and the day accumulation coefficient b table 106. The output of the adder 122 is input to the hue correction table 2 (123).
From the correction table 2 (123), an angle for converting the coordinates of a point on the straight line into a point on the cutting curve is obtained.
The point on the straight line is returned to the position of the point on the curve by the adder 124. Further, since r3, which is the output of the selector 112 described later, is input to the correction table 2 (123), it is possible to convert a point whose distance has been compressed on a straight line into a curve.
【0024】なお、図3における全色空間の値Fi ,E
i ,Di は、角度θにより異なり、またプリンタの色再
現範囲Ef ,Df も角度θにより異なる。この角度θ毎
に、実際の全色空間範囲における色を示したのが、図5
のDi ,Ei ,Fi である。ここで、角度θに対するD
i ,Ei ,Fi のそれぞれを、Di(θ),Ei(θ),F
i(θ) で表わしている。Note that the values F i , E of the entire color space in FIG.
i and D i differ depending on the angle θ, and the color reproduction ranges E f and D f of the printer also differ depending on the angle θ. FIG. 5 shows the colors in the actual full color space range for each angle θ.
D i , E i , and F i . Here, D with respect to the angle θ
i , E i , and F i are represented by D i (θ), E i (θ), F
i (θ).
【0025】図5において、F(0) 〜F(359) の内、最
大のものが8ビットの場合、“255”となる。ここ
で、角度θの最小単位を1°としたがこれに限定され
ず、これよりも小さくても、或いは大きくても良い。ま
た、この角度θの差は均一でなくても良い。In FIG. 5, if the largest one of F (0) to F (359) is 8 bits, it becomes "255". Here, the minimum unit of the angle θ is 1 °, but is not limited thereto, and may be smaller or larger. Further, the difference between the angles θ may not be uniform.
【0026】この実施例では、各角度に対応して、プリ
ンタによる色再現範囲内の量子化データを求めている。
各角度θに対するDf ,Ef をプリンタの色再現の特性
の測定等により求める。こうして、bテーブル106に
は角度θに対するDf /Diが書き込まれ、またaテー
ブル105には角度θごとに(Ef −Df )/(Fi−
Di )の値が書き込まれている。In this embodiment, quantized data within the color reproduction range of the printer is obtained for each angle.
D f and E f for each angle θ are determined by measuring the color reproduction characteristics of the printer. Thus, D f / D i for the angle θ is written in the b table 106, and (E f −D f ) / (F i −) for the angle θ in the a table 105.
D i ) has been written.
【0027】r計算部103の出力rは比較器108に
入力されると共に、減算部107において、r2=r−
Di(θ) が計算される。ここで、Di(θ) はDテーブル
104より出力されるデータで、角度θに対するDi を
示している。この計算結果であるr2(=r−Di(θ)
)は乗算器109に入力され、積係数aテーブル10
5の出力と乗算される。そして、この乗算器109の出
力は、加算器111で乗算器117の出力と加算され
る。The output r of the r calculation unit 103 is input to the comparator 108, and the subtraction unit 107 outputs r2 = r−
D i (θ) is calculated. Here, D i (θ) is data output from the D table 104 and indicates D i with respect to the angle θ. This calculation result, r2 (= r−D i (θ))
) Is input to the multiplier 109 and the product coefficient a table 10
5 multiplied by the output. Then, the output of the multiplier 109 is added to the output of the multiplier 117 by the adder 111.
【0028】乗算器117では、Dテーブル104の出
力Di(θ)と積係数bテーブル106よりのDf(θ) /
Di(θ) が入力され、その結果としてDf(θ) が出力さ
れる。こうして、加算器111の出力は、画素データP
(r,θ)の色空間圧縮後のP(r′,θ)となる。但
し、画素データP(r,θ)のrがFi(θ) ≧r≧D i
の場合である。In the multiplier 117, the output of the D table 104 is output.
Force Di(θ) and D from product coefficient b table 106f(θ) /
Di(θ) is input, resulting in Df(θ) is output
It is. Thus, the output of the adder 111 is the pixel data P
P (r ′, θ) after color space compression of (r, θ). However
And r of the pixel data P (r, θ) is Fi(θ) ≧ r ≧ D i
Is the case.
【0029】一方、積係数bテーブル106の出力は乗
算器110に与えられて、ここで画像データP(r,
θ)のrと乗算される。その結果、Di(θ) ≧rの場合
の色空間圧縮後の画像データP(r″,θ)のr″が求
められる。これらのr′,r″はセレクタ112に入力
されて、どちらか一方が選択されてr3として出力され
る。On the other hand, the output of the product coefficient b table 106 is given to the multiplier 110, where the image data P (r,
θ) is multiplied by r. As a result, r ″ of the image data P (r ″, θ) after color space compression when D i (θ) ≧ r is obtained. These r 'and r "are input to the selector 112, one of them is selected and output as r3.
【0030】r計算部103の出力rは比較器108に
入力され、ここでDi(θ) ≧rか否か比較され、その比
較結果がセレクタ112の選択信号として与えられてい
る。これにより、Di(θ) ≧rの時、r3=r″となる
ように選択され、それ以外ではr3=r′となるように
選択される。The output r of the r calculator 103 is input to a comparator 108, where it is compared whether or not D i (θ) ≧ r, and the comparison result is given as a selection signal of a selector 112. Thus, when D i (θ) ≧ r, r3 = r ″ is selected, and otherwise, r3 = r ′.
【0031】このようにして得られた色空間圧縮後のデ
ータr3と、色相補正テーブル2(123)と加算器1
24とで得られた位相により空間圧縮後の最終的位相が
決定されるので、合成部113でP(r3,θ)として
1つのデータになる。色算出部114は、P(r3,
θ)より、I=r3・sinθ,Q=r3・cosθを
求め、更に色変換部101よりのYデータを受ける。こ
のようにして揃ったY,I,Qデータは、逆色変換部1
15により、Y,I,QからR,G,B信号に変換され
る。The color space compressed data r3 thus obtained, the hue correction table 2 (123) and the adder 1
Since the final phase after spatial compression is determined by the phase obtained in step 24, the combining unit 113 forms one data as P (r3, θ). The color calculation unit 114 calculates P (r3,
θ), I = r3 · sin θ, Q = r3 · cos θ, and further receives Y data from the color conversion unit 101. The Y, I, and Q data prepared in this manner is output to the inverse color conversion unit 1.
15 converts the Y, I, and Q signals into R, G, and B signals.
【0032】なお、ここで色変換部101、逆色変換部
115におけるR,G,B、Y,I,Q間の変換は線形
1次変換であり、Here, the conversion between R, G, B, Y, I, and Q in the color conversion unit 101 and the inverse color conversion unit 115 is a linear first-order conversion.
【0033】[0033]
【数1】 以上のようなマトリクス演算で表わせる。そして、この
演算は乗算器、加算器を用いた積和演算で実現できる。
又、その一部分の積和をROMに代用させる手法は、一
般的に知られているところである。(Equation 1) It can be expressed by the above matrix operation. This operation can be realized by a product-sum operation using a multiplier and an adder.
Further, a method of substituting the sum of products of the part for the ROM is generally known.
【0034】又、図1の破線で示すように、輝度信号Y
によりI,Q空間幅が変わるので、図1破線で示すよう
に、Yに応じてDテーブル104,積係数aテーブル1
05,積係数bテーブル106の複数のテーブルを切換
えて、その出力値を変更するのがより望ましい。 <他の実施例 (図6)>図6は本発明の他の実施例に
おける色空間圧縮を示すもので、プリンタの色再現範囲
の限界点Eを含む閉曲線202(図2)内はそのまま再
現し、それ以外の色空間に関しては、限界点Eを含む閉
曲線202上に変換するものである。Also, as shown by the broken line in FIG.
, The I and Q space widths change, so that the D table 104 and the product coefficient a table 1
05, it is more desirable to switch a plurality of tables of the product coefficient b table 106 to change the output value. <Another Embodiment (FIG. 6)> FIG. 6 shows a color space compression in another embodiment of the present invention, in which a closed curve 202 (FIG. 2) including a limit point E of a color gamut of a printer is reproduced as it is. The other color spaces are converted on the closed curve 202 including the limit point E.
【0035】図10は前述の第1の実施例の図3に対応
するもので、Eiを色空間の中心点Cからの距離で表わ
し、これを8ビットとする。そしてこの距離は、プリン
タ再現範囲における中心点CからEf に変換されれば良
いことになる。こうして、E i 〜Ef の線分上の点は全
てEf となる。FIG. 10 corresponds to FIG. 3 of the first embodiment.
EiIs represented by the distance from the center point C of the color space.
Then, this is set to 8 bits. And this distance is pudding
Center point C to E in the reproduction rangef Should be converted to
Will be. Thus, E i ~ Ef The points on the line segment are all
Ef Becomes
【0036】図8はこの色空間圧縮を実現する第2の実
施例の画像処理回路を示すブロツク図で、前述の第1実
施例と共通する部分は同じ番号で示し、それらの説明を
省略する。FIG. 8 is a block diagram showing an image processing circuit according to a second embodiment for realizing this color space compression. Portions common to those in the first embodiment are designated by the same reference numerals, and description thereof will be omitted. .
【0037】この第2実施例ではDテーブル104の代
りにEテーブル402が使用される。このEテーブル4
02は図5に示したデータを格納しているテーブルであ
る。そして、比較器108で、P(r,θ)のrがE
i(θ)<rであれば、セレクタ112よりEテーブル4
02の出力r5=Ei(θ) が選択されて、合成部113
に入力される。In the second embodiment, an E table 402 is used instead of the D table 104. This E table 4
02 is a table storing the data shown in FIG. In the comparator 108, r of P (r, θ) is E
If i (θ) <r, selector 112 selects E table 4
02, the output r5 = E i (θ) is selected, and the combining unit 113
Is input to
【0038】また、角度計算部102の出力θは、色相
補正テーブル1(121)と加算器122によりFθの
角度が求められ、それが積係数Cテーブル602に与え
られて、Y及びθにより積係数が出力される。この積係
数は、θに対するEf(θ) /Ei(θ) なる値として出力
され、これらは各角度θに対してテーブルとして記憶さ
れている。又、輝度信号Yに応じて別テーブルを持つて
も良い。The angle θ of Fθ is obtained from the output θ of the angle calculation unit 102 by the hue correction table 1 (121) and the adder 122, and the angle is given to the product coefficient C table 602, and is multiplied by Y and θ. The coefficients are output. This product coefficient is output as a value of E f (θ) / E i (θ) with respect to θ, and these are stored as a table for each angle θ. Further, another table may be provided according to the luminance signal Y.
【0039】従って、乗算器110では画素データP
(r,θ)に対し、r6=r×Ef(θ) /Ei(θ) なる
演算を施して色空間圧縮後のデータが得られる。従っ
て、Ei(θ) ≧rの場合に、比較器108の結果がセレ
クタ112を制御して、乗算器110の出力r6を、r
3=r6として出力する。Therefore, in the multiplier 110, the pixel data P
An operation of r6 = r × E f (θ) / E i (θ) is performed on (r, θ) to obtain data after color space compression. Therefore, when E i (θ) ≧ r, the result of the comparator 108 controls the selector 112 to output the output r6 of the multiplier 110 to r
Output as 3 = r6.
【0040】図7は本発明の第3の実施例における色空
間圧縮を示すもので、全色空間の最外縁Fを含む閉曲線
内に均等に圧縮するものである。FIG. 7 shows color space compression according to the third embodiment of the present invention, in which compression is performed uniformly within a closed curve including the outermost edge F of the entire color space.
【0041】図9は、この色空間圧縮を実現する画像処
理回路の構成を示すブロック図である。FIG. 9 is a block diagram showing the configuration of an image processing circuit for realizing this color space compression.
【0042】r計算部103からの出力は、乗算器12
1で乗算され、合成部113に色空間圧縮後のデータと
して与えられる。従って、乗算器121の出力は、全色
空間を8ビット(0〜255)としたとき、プリンタに
よる色再現空間である8ビット(0〜255)に変換す
る時の変換比となる。この変換比は、積係数dテーブル
603より供給される。この積係数dテーブル603の
内容は、図10に示したEf(θ) ,Fi(θ) を使うと、
Ef(θ) /Fi(θ) となつている。また、この積係数d
テーブル603は輝度信号Y毎に持つても良く、Y情報
とθ情報により、1つのテーブル内容が読出されて決定
される。また、Ef(θ),Fi(θ) の取り得る値は、最
大値が“255”であつて、角度情報θや輝度情報Yに
より“255”以下の値をとる。The output from the r calculator 103 is output to the multiplier 12
The result is multiplied by 1 and given to the combining unit 113 as data after color space compression. Therefore, the output of the multiplier 121 is the conversion ratio when converting the total color space to 8 bits (0 to 255), which is the color reproduction space by the printer, when the entire color space is 8 bits (0 to 255). This conversion ratio is supplied from the product coefficient d table 603. The contents of the product coefficient d table 603 are obtained by using E f (θ) and F i (θ) shown in FIG.
E f (θ) / F i (θ). Also, this product coefficient d
The table 603 may be provided for each luminance signal Y, and one table content is read and determined based on the Y information and the θ information. The maximum value of E f (θ) and F i (θ) is “255”, and takes a value of “255” or less according to the angle information θ and the luminance information Y.
【0043】ところで、本発明の実施例や他の実施例に
おいて、色空間圧縮する部分は全て乗算器を用いて、色
空間の中心位置からの距離に比例させる均等的な圧縮を
行つたが、本発明はこれに限定されるものでなく、例え
ば、中心位置からの距離rにより色空間圧縮での色差が
異なるようにしても良い。また、角度θによりその圧縮
の程度を異ならしめても良い。さらに、輝度成分Yに関
してもYによつて全色空間が異なるために、圧縮度合を
異なるようにしても良い。By the way, in the embodiment of the present invention and other embodiments, all the portions to be compressed in the color space are uniformly compressed using a multiplier in proportion to the distance from the center position of the color space. The present invention is not limited to this. For example, the color difference in the color space compression may be changed depending on the distance r from the center position. Further, the degree of the compression may be varied depending on the angle θ. Furthermore, since the entire color space of the luminance component Y differs depending on Y, the degree of compression may be different.
【0044】また、図において、点Cを中心として点D
を含む閉曲線において、線分CEと線分CDとの比が一
定になるようにしても構わないし、線分CDは常に一定
でDを含む閉曲線は点Cを中心とする正円になるように
設定してもよい。Further, in FIG.
May be made constant in the ratio between the line segment CE and the line segment CD. The closed curve including the line segment CD is always constant, and the closed curve including D is a perfect circle centered on the point C. May be set.
【0045】以上説明したように本実施例によれば、プ
リンタ等の色再現範囲の大部分を忠実に色再現し、一部
分は全色空間の圧縮空間となる処理することにより、プ
リンタの忠実な色再現をほぼ満足し、かつ色再現範囲外
の色も連続性を保つて記録・再生できる。As described above, according to the present embodiment, most of the color reproduction range of a printer or the like is faithfully reproduced, and a part of the color reproduction range is processed as a compression space of the entire color space. It is possible to record / reproduce while maintaining color continuity with almost satisfying color reproduction and maintaining color continuity.
【0046】また、本実施例によれば、プリンタの色再
現範囲の全てを忠実に色再現し、それ以外の色をプリン
タの再現色範囲の外縁に近似させたり、色空間全体をプ
リンタ色再現範囲に圧縮したりすることができる。しか
も、同じ色相線上で色空間圧縮ができるので、この色空
間圧縮により色相の微妙なずれを生じることがなくな
る。Further, according to this embodiment, the entire color reproduction range of the printer is faithfully reproduced, other colors are approximated to the outer edge of the color reproduction range of the printer, or the entire color space is reproduced in the printer color reproduction range. Or can be compressed to a range. In addition, since color space compression can be performed on the same hue line, a slight shift in hue does not occur due to the color space compression.
【0047】なお、本実施例において、rは彩度方向を
示し、θは色相を示している。このため本実施例ではr
を変換し、θ成分は変換しないようにして、色空間圧縮
により色相を変化させずに、彩度のみを変換することが
できる。In this embodiment, r indicates the saturation direction, and θ indicates the hue. Therefore, in this embodiment, r
And the θ component is not converted, and only the saturation can be converted without changing the hue by the color space compression.
【0048】[0048]
【発明の効果】以上説明したように本発明によれば、均
等知覚色空間上の複数の異なる色相の夫々について用意
された非線形ラインを用いて、入力カラーデータをカラ
ー画像出力装置の色再現範囲に変換するので、そのカラ
ー画像出力装置の色再現範囲外の色を含むカラーデータ
を入力しても、そのカラー画像出力装置で良好に出力で
きるという効果がある。As described above, according to the present invention, the input color data is converted into the color reproduction range of the color image output device by using the non-linear lines prepared for each of a plurality of different hues in the uniform perceived color space. Therefore, even if color data including a color outside the color reproduction range of the color image output device is input, the color image output device can output well.
【図1】本発明の第1の実施例の画像処理回路の構成を
示すブロツク図である。FIG. 1 is a block diagram showing a configuration of an image processing circuit according to a first embodiment of the present invention.
【図2A】色空間の範囲を示した図である。FIG. 2A is a diagram showing a range of a color space.
【図2B】色空間の変換例を示した図である。FIG. 2B is a diagram showing an example of color space conversion.
【図2C】色空間の範囲を示した図である。FIG. 2C is a diagram showing a range of a color space.
【図3】色空間の変換例を示した図である。FIG. 3 is a diagram showing a conversion example of a color space.
【図4】色空間の範囲を示した図である。FIG. 4 is a diagram showing a range of a color space.
【図5】各角度に対応した各種テーブルのデータ内容を
説明するための図である。FIG. 5 is a diagram for explaining data contents of various tables corresponding to each angle.
【図6】色空間の変換例を示した図である。FIG. 6 is a diagram showing a conversion example of a color space.
【図7】色空間の変換例を示した図である。FIG. 7 is a diagram showing an example of color space conversion.
【図8】第2の実施例の画像処理回路の構成を示すブロ
ツク図である。FIG. 8 is a block diagram illustrating a configuration of an image processing circuit according to a second embodiment.
【図9】第3の実施例の画像処理回路の構成を示すブロ
ツク図である。FIG. 9 is a block diagram illustrating a configuration of an image processing circuit according to a third embodiment.
【図10】色空間の変換例を示した図である。FIG. 10 is a diagram showing an example of color space conversion.
【図11】色相補正テーブルの構成例を示す図である。FIG. 11 is a diagram illustrating a configuration example of a hue correction table.
【図12】色相補正データを関数で示した図である。FIG. 12 is a diagram showing hue correction data as a function.
101 色変換部 102 角度計算部 103 r計算部 104 Dテーブル 105 積係数aテーブル 106 積係数bテーブル 107 減算部 108 比較器 109,110 乗算器 111,122,123 加算器 112 セレクタ 113 合成部 114 色算出部 115 逆色変換部 117 乗算器 121 色補正テーブル1 123 色補正テーブル2 Reference Signs List 101 color conversion unit 102 angle calculation unit 103 r calculation unit 104 D table 105 product coefficient a table 106 product coefficient b table 107 subtraction unit 108 comparator 109, 110 multiplier 111, 122, 123 adder 112 selector 113 synthesis unit 114 color Calculation unit 115 Inverse color conversion unit 117 Multiplier 121 Color correction table 1 123 Color correction table 2
Claims (1)
の色再現範囲に応じて変換する画像処理方法であって、彩度に応じて、均等知覚色空間上の色相を変化させる非
線形ラインを、前記均等知覚色空間上の複数の異なる色
相の夫々について用意し、 前記入力カラーデータの均等知覚色空間上の色相に対応
する前記非線形ラインを用いて、前記入力カラーデータ
を前記カラー画像出力装置の色再現範囲内に 変換するこ
とを特徴とする画像処理方法。1. An image processing method for converting input color data according to a color reproduction range of a color image output device, wherein a hue on a uniform perceived color space is changed according to saturation.
A linear line is represented by a plurality of different colors on the uniform perceived color space.
Prepare for each of the phases , corresponding to the hue in the uniform perceived color space of the input color data
The input color data using the nonlinear line
In the color reproduction range of the color image output device .
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP00284291A JP3337697B2 (en) | 1991-01-14 | 1991-01-14 | Image processing method |
US08/370,354 US5933252A (en) | 1990-11-21 | 1995-01-09 | Color image processing method and apparatus therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP00284291A JP3337697B2 (en) | 1991-01-14 | 1991-01-14 | Image processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH05115000A JPH05115000A (en) | 1993-05-07 |
JP3337697B2 true JP3337697B2 (en) | 2002-10-21 |
Family
ID=11540667
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP00284291A Expired - Fee Related JP3337697B2 (en) | 1990-11-21 | 1991-01-14 | Image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3337697B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010147548A (en) * | 2008-12-16 | 2010-07-01 | Seiko Epson Corp | Method for creating lookup table and printer |
US8031965B2 (en) | 2006-08-21 | 2011-10-04 | Fuji Xerox Co., Ltd. | Image processor, computer readable medium storing image processing program, and image processing method |
US8111423B2 (en) | 2007-11-13 | 2012-02-07 | Ricoh Company, Ltd. | Image processing device and image processing method |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3209402B2 (en) * | 1996-11-01 | 2001-09-17 | 富士ゼロックス株式会社 | Image processing device |
JP4557171B2 (en) * | 2006-02-08 | 2010-10-06 | 富士ゼロックス株式会社 | Image processing apparatus, image processing method, image processing program, and recording medium |
-
1991
- 1991-01-14 JP JP00284291A patent/JP3337697B2/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8031965B2 (en) | 2006-08-21 | 2011-10-04 | Fuji Xerox Co., Ltd. | Image processor, computer readable medium storing image processing program, and image processing method |
US8111423B2 (en) | 2007-11-13 | 2012-02-07 | Ricoh Company, Ltd. | Image processing device and image processing method |
JP2010147548A (en) * | 2008-12-16 | 2010-07-01 | Seiko Epson Corp | Method for creating lookup table and printer |
Also Published As
Publication number | Publication date |
---|---|
JPH05115000A (en) | 1993-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3683397B2 (en) | Color image data interpolation method and apparatus | |
US5930388A (en) | Color image processing apparatus | |
JP3219180B2 (en) | Color correction method and apparatus | |
CA1225739A (en) | Non-linear emphasis circuit | |
JPH0686059A (en) | Method and device for color conversion | |
US6788811B1 (en) | Coding apparatus, decoding apparatus, coding method, decoding method, amd computer-readable recording medium for executing the methods | |
US5533173A (en) | Method and apparatus for processing a color map using discrete cosine transforms | |
JP3337697B2 (en) | Image processing method | |
US6157414A (en) | Image display apparatus for enlargement or reduction of an image using an interpolation process | |
JPS6038972A (en) | Input display device | |
JPS59200585A (en) | Device for generating interpolating signal | |
JPS60176365A (en) | Compressing method of picture signal | |
JPH0832838A (en) | Gradation correction method and gradation correction device | |
JPH0918727A (en) | Color reproducing processor | |
JPH04186968A (en) | Method and device for processing color image | |
JP2810363B2 (en) | Color image coding device | |
JP2004199193A (en) | Image processing method and image processing device | |
JPH1011573A (en) | Image processor | |
JP5633242B2 (en) | Color correction coefficient generating apparatus and program | |
JPH11275375A (en) | Color converting device and method therefor | |
JP4478258B2 (en) | Image processing device | |
JP2000253267A (en) | Method and device for color image processing | |
JPH0223776A (en) | Color correcting device and data calculating device for color correction | |
JP2005167503A (en) | Image processor and image forming apparatus provided with the same | |
JP2807231B2 (en) | Pixel density conversion method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20020715 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070809 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080809 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080809 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090809 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090809 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100809 Year of fee payment: 8 |
|
LAPS | Cancellation because of no payment of annual fees |