JPH08138030A - Method and device for data conversion - Google Patents

Method and device for data conversion

Info

Publication number
JPH08138030A
JPH08138030A JP6277798A JP27779894A JPH08138030A JP H08138030 A JPH08138030 A JP H08138030A JP 6277798 A JP6277798 A JP 6277798A JP 27779894 A JP27779894 A JP 27779894A JP H08138030 A JPH08138030 A JP H08138030A
Authority
JP
Japan
Prior art keywords
data
conversion
interpolation
table memory
converted
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.)
Pending
Application number
JP6277798A
Other languages
Japanese (ja)
Inventor
Seita Masano
清太 正能
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 JP6277798A priority Critical patent/JPH08138030A/en
Publication of JPH08138030A publication Critical patent/JPH08138030A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To reduce the interpolation error in a color converter where data converted by a table memory is subjected to interpolation to perform the color conversion. CONSTITUTION: Luminance signals R, G, and B from a scanner or a personal computer are nonlinearly converted by look-up tables 1 to 3. Intervals of lattice point addresses of table memories 4 to 7 indicated by upper bit signals RU, GU, and BU of obtained signals R', G', and B' are not uniform in the color space generated by signals R, G, and B but are longer in bright parts of signals R, G, and B and are shorter in dark parts. Thus, the precision of interpolation in parts where these intervals are shorter is relatively improved, and the interpolation error is reduced as the whole.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データ変換装置および
データ変換方法に関し、詳しくは、例えば色信号を表す
3つの信号値を、別の色信号である出力信号値に変換す
る色変換処理に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data conversion device and a data conversion method, and more particularly to a color conversion process for converting three signal values representing color signals into output signal values which are different color signals. It is a thing.

【0002】[0002]

【従来の技術】従来よりこの種の色変換装置として、図
10に示すようなものが知られている。この装置は、原
稿画像等をR,G,B3色に色分解して読取ったデータ
やコンピュータ上で人工的に合成して得た画像データ
を、インクジェットプリンタなどでプリント出力するた
めの3原色であるC,M,Y信号に変換するものであ
る。
2. Description of the Related Art Conventionally, as a color conversion device of this kind, one shown in FIG. 10 has been known. This device uses three primary colors to print out the data obtained by color-separating an original image into R, G, and B colors and the image data artificially synthesized on a computer with an inkjet printer or the like. It is for converting into a certain C, M, Y signal.

【0003】図8において、信号処理回路81,82お
よび83はそれぞれ入力3原色信号R,G,Bから出力
色信号C,M,Yを生成する。例えば信号処理回路8
1,82および83ではそれぞれ次式のような、いわゆ
るマスキング演算が実行され、出力色信号C,M,Yを
得る。
In FIG. 8, signal processing circuits 81, 82 and 83 generate output color signals C, M and Y from input three primary color signals R, G and B, respectively. For example, the signal processing circuit 8
In so-called masking calculation as shown in the following equations, the output color signals C, M and Y are respectively obtained at 1, 82 and 83.

【0004】[0004]

【数1】C=A11×R+A12×G+A13×B M=A21×R+A22×G+A23×B Y=A31×R+A32×G+A33×B ここで、Aijは出力デバイスの特性等に応じて定められ
る係数である。
## EQU1 ## C = A 11 × R + A 12 × G + A 13 × B M = A 21 × R + A 22 × G + A 23 × BY Y = A 31 × R + A 32 × G + A 33 × B where A ij is the characteristic of the output device. It is a coefficient determined according to the above.

【0005】しかしながら、このような演算を行う回路
は比較的大規模となる等の問題があり、そのためこれに
代わるものとして以下のようなテーブルを用いたものも
従来より知られている。
However, a circuit for performing such an operation has a problem that it is relatively large-scaled, and therefore, an alternative to this is that a table using the following table is conventionally known.

【0006】すなわち、上述のように信号処理回路によ
る積和演算を行うのではなく、予め、R,G,Bの各値
に対応して、その演算結果をテーブルメモリに記憶して
おき、入力されるR,G,B信号値に対しその演算結果
をテーブルメモリから読み出して出力する装置である。
しかし、この装置の場合、例えば入力信号が各色8ビッ
トで表現されているとすると224個のアドレス、すなわ
ち1600万以上の記憶領域が必要となり現実的ではな
い。
That is, instead of performing the sum-of-products operation by the signal processing circuit as described above, the operation result is stored in advance in the table memory in correspondence with each value of R, G, B, and input. It is a device for reading out the calculation result of the R, G, B signal values to be output from the table memory and outputting it.
However, in the case of this device, if the input signal is represented by 8 bits for each color, 2 24 addresses, that is, a storage area of 16 million or more is required, which is not realistic.

【0007】そこで、さらに他の従来例として、図11
に示すようなものも知られている。ここでは、入力信号
R,G,Bを上位ビットデータ91と下位ビットデータ
92に分割し、テーブルメモリ93には上位ビットに対
する演算結果のみを記憶しておき、このテーブルメモリ
93からの各上位ビットデータに対応する出力値94
を、補間回路95により下位ビットデータに基づいて線
形補間し、出力信号96を得ることができる。このよう
な構成によれば、テーブルメモリの記憶領域は上位ビッ
トのビット数で定まる数のアドレスだけを有していれば
良いことになり、例えば各信号の上位ビット数として各
色3ビットとすれば、29 個のアドレス、すなわち51
2の記憶領域だけで済み、上記8ビットデータを入力す
る場合と比較して記憶領域の量を大幅に減らすことがで
きる。
Therefore, as still another conventional example, FIG.
Those shown in are also known. Here, the input signals R, G, B are divided into upper bit data 91 and lower bit data 92, only the operation result for the upper bits is stored in the table memory 93, and each upper bit from the table memory 93 is stored. Output value 94 corresponding to the data
Can be linearly interpolated by the interpolating circuit 95 based on the lower bit data to obtain the output signal 96. According to such a configuration, the storage area of the table memory needs to have only the number of addresses determined by the number of upper bits, and for example, if the number of upper bits of each signal is 3 bits for each color. 2 9 addresses, ie 51
Only two storage areas are required, and the amount of storage area can be significantly reduced as compared with the case of inputting the above 8-bit data.

【0008】[0008]

【発明が解決しようとする課題】しかしながら、上述の
ようなテーブルメモリと補間回路を組み合わせた色変換
では、複雑な非線形変換を比較的容易に実現できるとい
う利点はあるが、その程度に差があるにしても補間誤差
が発生(変換精度が低下)するという問題は避けられな
いことである。
However, in the color conversion in which the table memory and the interpolation circuit are combined as described above, there is an advantage that a complicated non-linear conversion can be realized relatively easily, but there is a difference in the degree. However, the problem that interpolation error occurs (conversion accuracy decreases) is inevitable.

【0009】この補間誤差を小さくするためには、一般
に分割により上位ビットとするビット数を大きくするこ
とが最も有効であるが、ビット数を1ビット増すと、入
力信号R,G,Bである3入力の場合、テーブルメモリ
の記憶領域が23 倍、すなわち8倍必要になる。
In order to reduce the interpolation error, it is generally most effective to increase the number of upper bits by division, but if the number of bits is increased by 1 bit, the input signals R, G and B are obtained. In the case of 3 inputs, the storage area of the table memory is required to be 2 3 times, that is, 8 times.

【0010】このように、変換精度と記憶領域の量はト
レードオフの関係にあり、メモリ量を小さくするために
は変換精度をある程度犠牲にしたビット数の設定をせざ
るを得ないという問題があった。
As described above, there is a trade-off relationship between the conversion accuracy and the amount of storage area, and in order to reduce the memory amount, it is unavoidable to set the number of bits while sacrificing the conversion accuracy to some extent. there were.

【0011】本発明は上記問題点に鑑みてなされたもの
であり、その目的とするところは、補間誤差の発生しに
くい仮想データ空間で線形補間を行うことにより十分な
変換精度を得ることができるデータ変換装置およびデー
タ変換方法を提供することにある。
The present invention has been made in view of the above problems, and an object thereof is to obtain a sufficient conversion accuracy by performing linear interpolation in a virtual data space in which an interpolation error is unlikely to occur. A data conversion device and a data conversion method are provided.

【0012】[0012]

【課題を解決するための手段】そのために本発明では、
入力データを別のデータに変換するデータ変換装置にお
いて、入力データに非線形変換を行う第1変換手段と、
該第1変換手段により変換されたデータに基づいて生成
される格子点アドレスデータに対応した関数値データを
出力するテーブルメモリ手段と、該テーブルメモリ手段
から出力される関数値データを、前記第1変換手段によ
り変換されたデータに基づいて生成される重み係数デー
タによって補間し当該補間結果として別のデータを出力
する補間手段と、を具えたことを特徴とする。
Therefore, according to the present invention,
In a data conversion device for converting input data into another data, first conversion means for performing non-linear conversion on the input data,
The table memory means for outputting the function value data corresponding to the grid point address data generated based on the data converted by the first converting means, and the function value data output from the table memory means are the first An interpolation means for interpolating the weighting coefficient data generated based on the data converted by the converting means and outputting another data as the interpolation result.

【0013】また、入力データを別のデータに変換する
データ変換方法において、入力データに第1の非線形変
換を行ない、該変換により変換されたデータに基づいて
生成される格子点アドレスデータをテーブルメモリに入
力して該格子点アドレスデータに対応した関数値データ
を出力し、前記テーブルメモリから出力される関数値デ
ータを、前記第1の非線形変換により変換されたデータ
に基づいて生成される重み係数データによって補間し、
該補間結果のデータに第2の非線形変換を行ない別のデ
ータを出力する、各工程を有したことを特徴とする。
Further, in the data conversion method for converting the input data into another data, the first non-linear conversion is performed on the input data, and the grid point address data generated based on the data converted by the conversion is stored in the table memory. To output the function value data corresponding to the grid point address data, and the function value data output from the table memory is generated based on the data converted by the first nonlinear conversion. Interpolated by the data,
A second non-linear conversion is performed on the data of the interpolation result, and another data is output, and each step is provided.

【0014】[0014]

【作用】以上の構成によれば、第1変換手段の非線形変
換によって、入力データがつくる入力データ空間に対す
る相対的な格子点アドレスデータの間隔を不均一なもの
とすることができるので、この格子点アドレスデータの
間隔で定まる補間精度を制御し、これを向上させること
が可能となる。
According to the above construction, the non-linear conversion of the first conversion means makes it possible to make the intervals of the grid point address data relative to the input data space formed by the input data nonuniform. It is possible to control and improve the interpolation accuracy determined by the interval of the point address data.

【0015】[0015]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0016】図1は、本発明の一実施例に係る色変換回
路を示すブロック図である。
FIG. 1 is a block diagram showing a color conversion circuit according to an embodiment of the present invention.

【0017】図1において、1〜3は後述されるように
それぞれR,G,B信号について非線形変換しR′,
G′,B′信号を出力するルックアップテーブルであ
り、これらの出力R′,G′,B′が仮想色空間を形成
する。4〜7は変換された信号R′,G′,B′の上位
ビットをアドレスとして補間演算における格子点データ
を読み出すテーブルメモリ、一方、8は変換された信号
R′,G′,B′の下位ビットから補間演算の係数とし
て重み係数を計算する演算器である。9は補間演算回路
であり、テーブルメモリ4〜7からの格子点データを演
算器8からの下位ビットに基づく重み係数により線形補
間する。10〜13は上記補間演算結果に対して後述の
ような非線形変換を行うルックアップテーブルである。
In FIG. 1, reference numerals 1 to 3 perform non-linear conversion on R, G, and B signals, respectively, as will be described later, and R ',
It is a look-up table that outputs G ', B'signals, and these outputs R', G ', B'form a virtual color space. Reference numerals 4 to 7 are table memories for reading out grid point data in the interpolation calculation by using the upper bits of the converted signals R ', G', B'as addresses, and 8 is a table memory of the converted signals R ', G', B '. It is an arithmetic unit that calculates a weighting coefficient from the lower bits as a coefficient of interpolation calculation. An interpolation calculation circuit 9 linearly interpolates the grid point data from the table memories 4 to 7 by the weighting coefficient from the calculator 8 based on the lower bits. Reference numerals 10 to 13 are lookup tables for performing a non-linear conversion as will be described later on the interpolation calculation result.

【0018】図2は、ルックアップテーブル1における
非線形変換を概念的に示す模式図である。
FIG. 2 is a schematic diagram conceptually showing the non-linear conversion in the lookup table 1.

【0019】ルックアップテーブル1は、信号Rを上記
線形補間において誤差の少ない仮想色空間を構成する信
号R′に変換する。具体的には、図2に示すように25
6階調のいずれかの濃度値を示す信号Rを同様に256
階調のいずれかの濃度値を示す信号R′に変換するもの
であり、ここにおいて信号R′の上位ビットで示される
テーブルメモリ4〜7のアドレス(以下、格子点アドレ
スという)の間隔が、信号Rが張る空間に対して相対的
にその明部は大きく(疎に)、暗部は小さく(密に)な
るように変換を行う。すなわち、信号R′の上位ビット
で表わされる各格子点アドレスの間隔は均一であるが、
信号Rが構成する空間に対しては、信号Rの明暗に応じ
て相対的に変化し、これにより、上記格子点アドレスの
間隔が相対的に密な部分ではより精度の高く誤差の少な
い補間演算を行うことができることになる。このような
変換のための演算としては、図2に示す曲線から理解で
きるように、例えば対数又は1/n乗の演算とすること
ができる。
The look-up table 1 converts the signal R into a signal R'constituting a virtual color space with few errors in the above linear interpolation. Specifically, as shown in FIG.
Similarly, the signal R indicating the density value of any of the 6 gradations is set to 256.
It is to be converted into a signal R'representing any density value of gradation, and the intervals of the addresses (hereinafter, referred to as grid point addresses) of the table memories 4 to 7 indicated by the upper bits of the signal R ', The conversion is performed so that the bright portion is relatively large (sparsely) and the dark portion is relatively small (dense) with respect to the space spanned by the signal R. That is, the intervals between the lattice point addresses represented by the upper bits of the signal R ′ are uniform,
The space formed by the signal R relatively changes according to the lightness and darkness of the signal R, and as a result, the interpolation calculation with higher accuracy and less error is performed in the portion where the intervals of the grid point addresses are relatively dense. Will be able to do. As the calculation for such conversion, as can be understood from the curve shown in FIG. 2, for example, logarithm or 1 / nth power calculation can be performed.

【0020】ルックアップテーブル2および3において
も同様の変換を行ない、これにより各信号G,Bは信号
G′,B′に変換される。
The same conversion is performed in the look-up tables 2 and 3, so that the signals G and B are converted into signals G'and B '.

【0021】テーブル1,2および3で変換された信号
R′,G′,B′は、以下の(1)式に示すように上位
ビットデータRU,GU,BU及び下位ビットデータR
L,GL,BLに分割される。ここで、R′,G′,
B′信号のビット数をNi、上位ビットのビット数をN
U、下位ビットのビット数をNLとしている。この場
合、明らかにNi=NU+NLである。
Signals R ', G', B'converted in Tables 1, 2 and 3 are represented by the following equation (1): upper bit data RU, GU, BU and lower bit data R.
It is divided into L, GL and BL. Where R ', G',
The number of bits of the B ′ signal is Ni, and the number of upper bits is N
U and the number of lower bits are NL. In this case, obviously Ni = NU + NL.

【0022】[0022]

【数2】 R′=RU×2NL+RL G′=GU×2NL+GL B′=BU×2NL+BL …(1) (1)式を各上位ビットデータについて整理すると、R ′ = RU × 2 NL + RL G ′ = GU × 2 NL + GL B ′ = BU × 2 NL + BL (1) When formula (1) is arranged for each upper bit data,

【0023】[0023]

【数3】RU=R′/2NL GU=G′/2NL BU=B′/2NL また、各下位ビットデータについて整理すると、RU = R ′ / 2 NL GU = G ′ / 2 NL BU = B ′ / 2 NL Further , when rearranging each lower bit data,

【0024】[0024]

【数4】RL=R′−RU×2NL GL=G′−GU×2NL BL=B′−BU×2NL テーブルメモリ4,5,6および7には、R′,G′,
B′各々の上位ビットのすべての組み合わせに対する出
力値、すなわち、補間演算を行うときの格子点(アドレ
ス)に対応する格子点データが書き込まれている。これ
をC1(i,j,k)と書くことにすると、
RL = R′−RU × 2 NL GL = G′−GU × 2 NL BL = B′−BU × 2 NL Table memories 4, 5, 6 and 7 have R ′, G ′,
Output values for all combinations of upper bits of B ', that is, grid point data corresponding to grid points (addresses) when performing interpolation calculation are written. If we write this as C1 (i, j, k),

【0025】[0025]

【数5】 C1=(i,j,k)=F(i×2NL,j×2NL,k×2NL) …(2) ただし、ここで、Fは色変換関数であり、補間の対象と
なる関数である。また、i,j,kはそれぞれ0から2
NUまでの整数である。
C1 = (i, j, k) = F (i × 2 NL , j × 2 NL , k × 2 NL ) (2) Here, F is a color conversion function and interpolation This is the target function. Further, i, j, and k are 0 to 2 respectively.
It is an integer up to NU .

【0026】各テーブルメモリ4〜7で必要な記憶容量
は、(2)式から明らかなように、(2NU+1)3 個の
アドレス、例えばNU=3の場合、729個のアドレス
である。
The storage capacity required in each of the table memories 4 to 7 is (2 NU +1) 3 addresses, for example, 729 addresses when NU = 3, as is clear from the equation (2).

【0027】上記(2)式の関係をR′,G′,B′が
つくる3次元空間上で見ると、図3に示すように、入力
信号RU,BU,GUは、2NLステップ間隔で均等に配
列する格子点に対応し、この格子点上に関数値C1が書
き込まれていることになる。そして、この図3に示す
R′,G′,B′の仮想色空間を、変換前のR,G,B
の3次元色空間から見ると、それぞれの軸方向に格子点
がゆがんだ状態となっている。すなわち、図2に示した
変換により、図3に示す格子点間隔はR,G,Bの色空
間から見れば補間の誤差の出やすい領域や視覚的に色の
弁別に厳しい領域でより小さくなっているということが
できる。
Looking at the relation of the above equation (2) in the three-dimensional space formed by R ', G', B ', as shown in FIG. 3, the input signals RU, BU, GU are at 2 NL step intervals. The function value C1 is written on the grid points corresponding to the grid points arranged evenly. The virtual color space of R ', G', B'shown in FIG. 3 is converted into R, G, B before conversion.
When viewed from the three-dimensional color space, the lattice points are distorted in the respective axial directions. That is, by the conversion shown in FIG. 2, the grid point spacing shown in FIG. 3 becomes smaller in a region where an error in interpolation is likely to occur in the R, G, and B color spaces or in a region where visual color discrimination is severe. It can be said that

【0028】次に、補間回路9における格子点データの
補間方法について、図4を参照して説明する。
Next, the method of interpolating the lattice point data in the interpolating circuit 9 will be described with reference to FIG.

【0029】図4に示す補間は、いわゆる8点補間であ
り、信号R′,G,′,B′が示す点を内部に含み、そ
れぞれ8個の頂点に格子点が対応づけられた立方体を補
間空間とするものである。具体的には、各テーブルメモ
リ4〜7からは信号R′,G,′,B′が示す点を内部
に含む8近傍の格子点データC11〜C18が読み出さ
れる。格子点データC11〜C18はR′,G,′,
B′の上位ビットデータを(2)式にあてはめて以下の
ように表わすことができる。
The interpolation shown in FIG. 4 is a so-called 8-point interpolation, and includes a cube inside which the points indicated by the signals R ', G,', and B'are contained, and each of which has eight vertices corresponding to a lattice point. The interpolation space is used. Specifically, from each of the table memories 4 to 7, the grid point data C11 to C18 of 8 neighborhoods including the points indicated by the signals R ', G,', and B'inside are read out. The grid point data C11 to C18 are R ', G,',
The upper bit data of B'can be applied to the equation (2) and expressed as follows.

【0030】[0030]

【数6】 C11=C1(RU,GU,BU) C12=C1(RU+1,GU,BU) C13=C1(RU,GU+1,BU) C14=C1(RU+1,GU+1,BU) C15=C1(RU,GU,BU+1) C16=C1(RU+1,GU,BU+1) C17=C1(RU,GU+1,BU+1) C18=C1(RU+1,GU+1,BU+1) …(3) これら格子点データC11〜C18はテーブルメモリが
1個の場合全てを同時に読み出すことはできないので時
系列的に読み出すものとする。あるいは同一内容のテー
ブルメモリを8個用意し、上記データを同時に読み出す
ようにしてもよい。
## EQU00006 ## C11 = C1 (RU, GU, BU) C12 = C1 (RU + 1, GU, BU) C13 = C1 (RU, GU + 1, BU) C14 = C1 (RU + 1, GU + 1, BU) C15 = C1 (RU, GU, BU + 1) C16 = C1 (RU + 1, GU, BU + 1) C17 = C1 (RU, GU + 1, BU + 1) C18 = C1 (RU + 1, GU + 1, BU + 1) (3) These grid point data C11 to C18 have a table memory 1 In the case of individual pieces, all of them cannot be read out at the same time, so they are read out in time series. Alternatively, eight table memories having the same content may be prepared and the above data may be read simultaneously.

【0031】これら8個の格子点データそれぞれと、各
格子点と入力信号R′,G′,B′が示す点との距離D
11〜D18は、入力信号R′,G′,B′の下位ビッ
トデータに基づき演算器8により求めることができるか
ら、求められた距離Dji(重み係数)で格子点データ
Cijに重みをつけた次の(4)式に示す補間演算によ
り、出力信号C′,M′,Y′,K′を得ることができ
る。
Each of these eight grid point data and the distance D between each grid point and the point indicated by the input signals R ', G', B '.
Since 11 to D18 can be calculated by the calculator 8 based on the lower bit data of the input signals R ', G', B ', the grid point data Cij is weighted by the calculated distance Dji (weighting coefficient). The output signals C ', M', Y ', K'can be obtained by the interpolation calculation shown in the following equation (4).

【0032】[0032]

【数7】 C′=(D11×C11 +D12 ×C12 +D13 ×C13 +D14 ×C14 +D15 ×C15 +D16 ×C16 +D17 ×C17 +D18 ×C18) ÷(D11+D12 +D13 +D14 +D15 +D16 +D17 +D18) …(4) その後、これら信号C′,M′,Y′およびK′はルッ
クアップテーブル10〜13により、実際にプリントを
行うときの信号C,M,YおよびKに変換される。
[Equation 7] C '= (D11 x C11 + D12 x C12 + D13 x C13 + D14 x C14 + D15 x C15 + D16 x C16 + D17 x C17 + D18 x C18) ÷ (D11 + D12 + D13 + D14 + D15 + D16 + D17 + D18 + D18 ... D18). The signals C ', M', Y'and K'are converted by the look-up tables 10 to 13 into the signals C, M, Y and K for actual printing.

【0033】図5は、この変換を概念的に示す模式図で
ある。
FIG. 5 is a schematic diagram conceptually showing this conversion.

【0034】すなわち、プリンタ等で用いる信号は、そ
れが示す濃度が線形的に変化するものであることが望ま
しいが、補間回路9から出力される信号C′,M′,
Y′,K′は上記ルックアップテーブル1〜3による変
換等の影響で線形性が保たれていないのが一般的であ
る。そのためルックアップテーブル10〜13では図5
に示すような変換を行ない線形性について補正を行う。
具体的には、線形性が損われ易い低濃度部を密に、ま
た、線形性が損われ難い高濃度部を疎に変換する。
That is, it is desirable that the signal used by the printer or the like be one whose density indicated by it changes linearly, but the signals C ', M', and
Generally, the linearity of Y'and K'is not maintained due to the effect of conversion by the lookup tables 1 to 3. Therefore, the lookup tables 10 to 13 in FIG.
The linearity is corrected by performing the conversion shown in.
Specifically, the low-density portion where the linearity is easily damaged is densely converted, and the high-density portion where the linearity is hard to be damaged is converted to sparse.

【0035】以上示した実施例によれば、テーブルメモ
リに入力する格子点アドレスの間隔は、入力信号R,
G,Bが張る空間に対して一様でなく、補間誤差の生じ
易さまたは誤差の目立ち易さに応じて、密若しくは疎と
なっているため、全体として補間によって生じる誤差を
小さくすることができる。
According to the embodiment described above, the intervals between the grid point addresses input to the table memory are determined by the input signals R,
It is not uniform in the space spanned by G and B, and is dense or sparse depending on the easiness of occurrence of an interpolation error or the conspicuousness of the error. Therefore, the error caused by interpolation can be reduced as a whole. it can.

【0036】図6は、上記実施例の変形例に係る色変換
回路を示すブロック図である。
FIG. 6 is a block diagram showing a color conversion circuit according to a modification of the above embodiment.

【0037】本変形例は、いわゆる5点補間を行うもの
である。図6において、201〜203は上記実施例と
同様、非線形変換を行ない仮想色空間を形成するルック
アップテーブル、204〜207は、それぞれR′,
G′,B′からC′,M′,Y′,K′に変換する色処
理回路、208〜211は上記実施例と同様非線形変換
を行ない線形性を補正するルックアップテーブルであ
る。色処理回路204は、第1のテーブルメモリ21
2、第2のテーブルメモリ213および補間回路214
を有する。不図示であるが、色処理回路205〜207
も同様の構成である。
In this modification, so-called 5-point interpolation is performed. In FIG. 6, 201 to 203 are look-up tables that perform a non-linear conversion to form a virtual color space, and 204 to 207 are R ′ and R ′, respectively.
A color processing circuit for converting G ', B'into C', M ', Y', K ', and 208 to 211 are look-up tables for performing non-linear conversion to correct linearity as in the above embodiment. The color processing circuit 204 uses the first table memory 21.
2, second table memory 213 and interpolation circuit 214
Have. Although not shown, the color processing circuits 205 to 207
Has the same configuration.

【0038】上記実施例の(2)式で表されるデータ
は、信号R′,G′,B′の3次元空間上で見ると、図
3に示すように、入力信号について2NLステップ間隔で
均等に配列する格子点上に格子点データC1が書き込ま
れている状態となっており、この状態は、第1のテーブ
ルメモリ212に記憶されている。
The data represented by the equation (2) of the above embodiment, the signal R ', G', when viewed in the three-dimensional space of the B ', as shown in FIG. 3, 2 NL step interval for the input signal In this state, the grid point data C1 is written on the grid points that are evenly arrayed in 1., and this state is stored in the first table memory 212.

【0039】一方、第2のテーブルメモリ213には図
7に示すように、これらの格子点の間を埋めるような点
の格子点データC2が記憶されている。すなわち、ある
オフセット値をδとして、次式のような関数値C2が記
憶される。
On the other hand, as shown in FIG. 7, the second table memory 213 stores grid point data C2 of points that fill the spaces between these grid points. That is, with a certain offset value as δ, the function value C2 as in the following equation is stored.

【0040】[0040]

【数8】 C2(i,j,k)=F(i×2NL+δ,j×2NL+δ,k×2NL+δ) ただしi,j,kはそれぞれ0から2NU−1までの整数 …(5) δの値は、格子点データC2が(2)式における格子点
の内部に来るように設定する必要があるが、そのために
は次の条件が成り立っていれば良い。
C2 (i, j, k) = F (i × 2 NL + δ, j × 2 NL + δ, k × 2 NL + δ) where i, j, and k are integers from 0 to 2 NU −1, respectively. (5) The value of δ needs to be set so that the grid point data C2 is inside the grid point in the equation (2), but for that purpose, the following condition may be satisfied.

【0041】[0041]

【数9】 0<δ<2NL …(6) しかし、後述する格子点の選択を簡略化するためδの値
として次式を設定する。
[Equation 9] 0 <δ <2 NL (6) However, the following equation is set as the value of δ in order to simplify the selection of lattice points described later.

【0042】[0042]

【数10】 δ=2NL/2 …(7) 第2のテーブルメモリ213で必要な記憶領域は(5)
式から明らかなように、(2NU3 個のアドレス、例え
ばNU=3の場合、512個のアドレスである。
## EQU10 ## δ = 2 NL / 2 (7) The storage area required for the second table memory 213 is (5)
As is clear from the equation, there are (2 NU ) 3 addresses, for example, 512 addresses when NU = 3.

【0043】次に、このように構成されたテーブルメモ
リの内容から出力信号を求める場合のデータの補間方法
について、図8を参照して説明する。
Next, a data interpolation method in the case of obtaining an output signal from the contents of the table memory thus constructed will be described with reference to FIG.

【0044】信号R′,G′,B′は(1)式に示した
ように上位ビットデータ、下位ビットデータに分割され
ている。第1のテーブルメモリ212からは入力信号
R′,G′,B′の値に最も近い4近傍の格子点データ
C11〜C14が読み出される。これは図8において白
丸で示すように入力R′,G′,B′信号に最も近い面
の4つの頂点の格子点データである。入力信号に最も近
い面としては入力信号を囲む6の面のいずれかが選択さ
れることになるが、入力信号値と6個の面との距離を求
めてそれが最小となるものを選ぶようにする。
The signals R ', G', B'are divided into upper bit data and lower bit data as shown in the equation (1). From the first table memory 212, grid point data C11 to C14 in the four neighborhoods closest to the values of the input signals R ', G', B'are read out. This is the grid point data of the four vertices of the surface closest to the input R ', G', B'signals, as indicated by the white circles in FIG. As the surface closest to the input signal, one of the 6 surfaces surrounding the input signal will be selected, but the distance between the input signal value and the 6 surfaces should be calculated and the one with the smallest value should be selected. To

【0045】入力信号に最も近い面が図8に示す面であ
る場合、C11〜C14はR′,G′,B′の上位ビッ
トデータを(2)式にあてはめて以下のように表せる。
When the surface closest to the input signal is the surface shown in FIG. 8, C11 to C14 can be expressed as follows by applying the higher order bit data of R ', G', and B'to the equation (2).

【0046】[0046]

【数11】 C11=C1(RU,GU,BU) C12=C1(RU+1,GU,BU) C13=C1(RU,GU+1,BU) C14=C1(RU+1,GU+1,BU) …(8) C11〜C14は全てを同時に読み出すことはできない
ので時系列的に読み出してもよいし、また同じテーブル
メモリを4個用意し並列に読み出すようにすることがで
きる。
C11 = C1 (RU, GU, BU) C12 = C1 (RU + 1, GU, BU) C13 = C1 (RU, GU + 1, BU) C14 = C1 (RU + 1, GU + 1, BU) (8) C11 ... Since all of C14 cannot be read at the same time, they may be read in time series, or four of the same table memories may be prepared and read in parallel.

【0047】次に、第2のテーブルメモリ213から入
力R′,G′,B′信号に最も近い格子点データC21
を読み出す。これは図8では黒丸で示されており、また
(5)式にあてはめると以下のように表せる。
Next, the grid point data C21 closest to the input R ', G', and B'signals from the second table memory 213.
Read out. This is indicated by a black circle in FIG. 8 and can be expressed as follows by applying it to the equation (5).

【0048】[0048]

【数12】 C21=C2(RU,GU,BU) …(9) 以上の手順で合計5個の格子点データが得られるが、δ
が(7)式のように定められているので、入力信号
R′,G′,B′の値は図9に示すように、これら5点
で作られる四角錐の内側に入ることになる。従ってこれ
ら5点それぞれと、入力信号値との距離D11〜D1
4,D21を求めれば、求められた距離Dijで格子点
データCijに重みをつけた次式のような補間演算によ
り出力信号C′を得ることができる。
[Equation 12] C21 = C2 (RU, GU, BU) (9) A total of 5 grid point data are obtained by the above procedure, but δ
Is defined by the equation (7), the values of the input signals R ', G', and B'become inside the quadrangular pyramid formed by these five points, as shown in FIG. Therefore, the distance D11 to D1 between each of these five points and the input signal value
If D4 and D21 are obtained, the output signal C ′ can be obtained by the interpolation calculation as shown in the following equation in which the grid point data Cij is weighted at the obtained distance Dij.

【0049】[0049]

【数13】 C′=(D11×C11 +D12 ×C12 +D13 ×C13 +D14 ×C14 +D21 ×C21) ÷(D11+D12 +D13 +D14 +D15 +D21) …(10)[Equation 13] C '= (D11 x C11 + D12 x C12 + D13 x C13 + D14 x C14 + D21 x C21) / (D11 + D12 + D13 + D14 + D15 + D21) (10)

【0050】[0050]

【発明の効果】以上説明したように、本発明によれば、
第1変換手段の非線形変換によって、入力データがつく
る入力データ空間に対する相対的な格子点アドレスデー
タの間隔を不均一なものとすることができるので、この
格子点アドレスデータの間隔で定まる補間精度を制御
し、これを向上させることが可能となる。
As described above, according to the present invention,
By the non-linear conversion of the first conversion means, the intervals of the grid point address data relative to the input data space created by the input data can be made non-uniform, so that the interpolation accuracy determined by the intervals of the grid point address data can be obtained. It is possible to control and improve this.

【0051】この結果、例えば誤差の少ない精度の良い
色再現が低コストで可能となる。
As a result, for example, it is possible to perform color reproduction with less error and high accuracy at low cost.

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

【図1】本発明の一実施例に係る色変換回路を示すブロ
ック図である。
FIG. 1 is a block diagram showing a color conversion circuit according to an embodiment of the present invention.

【図2】上記回路で用いられるルックアップテーブルに
よる変換を概念的に示す線図である。
FIG. 2 is a diagram conceptually showing conversion by a look-up table used in the above circuit.

【図3】上記回路における補間演算を説明する説明図で
ある。
FIG. 3 is an explanatory diagram illustrating an interpolation calculation in the above circuit.

【図4】上記補間演算の補間空間を示す模式図である。FIG. 4 is a schematic diagram showing an interpolation space of the interpolation calculation.

【図5】上記回路で用いられる他のルックアップテーブ
ルによる変換を概念的に示す線図である。
FIG. 5 is a diagram conceptually showing conversion by another lookup table used in the above circuit.

【図6】上記実施例の変形例に係る色変換回路を示すブ
ロック図である。
FIG. 6 is a block diagram showing a color conversion circuit according to a modification of the above embodiment.

【図7】上記変形例の色変換回路における補間演算を説
明する説明図である。
FIG. 7 is an explanatory diagram illustrating an interpolation calculation in the color conversion circuit of the modified example.

【図8】上記変形例の色変換回路における補間演算を説
明する説明図である。
FIG. 8 is an explanatory diagram illustrating an interpolation calculation in the color conversion circuit according to the modified example.

【図9】(a)および(b)は上記変形例における補間
空間を示す模式図である。
9A and 9B are schematic diagrams showing an interpolation space in the modification.

【図10】色変換回路の一従来例を示すブロック図であ
る。
FIG. 10 is a block diagram showing a conventional example of a color conversion circuit.

【図11】色変換回路の他の従来例を示すブロック図で
ある。
FIG. 11 is a block diagram showing another conventional example of a color conversion circuit.

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

1,2,3,201,202,203 ルックアップテ
ーブル 4,5,6,7,212,213 テーブルメモリ 8 重み係数発生演算器 9,214 補間回路 10,11,12,13,208,209,210,2
11 ルックアップテーブル 204,205,206,207 色処理回路
1, 2, 3, 201, 202, 203 Look-up table 4, 5, 6, 7, 212, 213 Table memory 8 Weight coefficient generation calculator 9, 214 Interpolation circuit 10, 11, 12, 13, 208, 209, 210, 2
11 Look-up table 204, 205, 206, 207 Color processing circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/40 D ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical indication H04N 1/40 D

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 入力データを別のデータに変換するデー
タ変換装置において、 入力データに非線形変換を行う第1変換手段と、 該第1変換手段により変換されたデータに基づいて生成
される格子点アドレスデータに対応した関数値データを
出力するテーブルメモリ手段と、 該テーブルメモリ手段から出力される関数値データを、
前記第1変換手段により変換されたデータに基づいて生
成される重み係数データによって補間し当該補間結果と
して別のデータを出力する補間手段と、 を具えたことを特徴とするデータ変換装置。
1. A data conversion device for converting input data into another data, first conversion means for performing non-linear conversion on the input data, and grid points generated based on the data converted by the first conversion means. Table memory means for outputting the function value data corresponding to the address data, and function value data output from the table memory means,
A data conversion device comprising: an interpolation unit that interpolates with weighting factor data generated based on the data converted by the first conversion unit and outputs another data as the interpolation result.
【請求項2】 入力データを別のデータに変換するデー
タ変換装置において、 入力データに非線形変換を行う第1変換手段と、 該第1変換手段により変換されたデータに基づいて生成
される格子点アドレスデータに対応した関数値データを
出力するテーブルメモリ手段と、 該テーブルメモリ手段から出力される関数値データを、
前記第1変換手段により変換されたデータに基づいて生
成される重み係数データによって補間し当該補間結果と
してデータを出力する補間手段と、 該補間手段が出力するデータに非線形変換を行ない、別
のデータとして出力する第2変換手段と、 を具えたことを特徴とするデータ変換装置。
2. A data conversion device for converting input data into another data, first conversion means for performing non-linear conversion on the input data, and grid points generated based on the data converted by the first conversion means. Table memory means for outputting the function value data corresponding to the address data, and function value data output from the table memory means,
Interpolating means for interpolating with the weighting factor data generated based on the data converted by the first converting means and outputting the data as the interpolation result, and non-linear conversion for the data output by the interpolating means, and another data And a second conversion means for outputting as a data conversion device.
【請求項3】 前記第1変換手段は、当該入力データが
つくる入力データ空間に対して当該変換データから生成
される前記格子点アドレスデータの間隔が均一でない非
線形変換を行うことを特徴とする請求項1または2に記
載のデータ変換装置。
3. The first conversion means performs a non-linear conversion in which an interval of the grid point address data generated from the conversion data is not uniform with respect to an input data space formed by the input data. Item 1. The data conversion device according to item 1 or 2.
【請求項4】 前記第1変換手段は、当該入力データが
つくる入力データ空間に対して当該変換データから生成
される前記格子点アドレスデータの間隔が均一でない非
線形変換を行ない、および前記第2変換手段は、当該出
力される別のデータの線形性を補正する変換を行うこと
を特徴とする請求項2に記載のデータ変換装置。
4. The first conversion means performs a non-linear conversion in which an interval of the grid point address data generated from the conversion data is not uniform with respect to an input data space created by the input data, and the second conversion. The data conversion device according to claim 2, wherein the means performs a conversion for correcting the linearity of the output different data.
【請求項5】 前記入力データは、3つのディジタル色
分解信号であることを特徴とする請求項1ないし4のい
ずれかに記載のデータ変換装置。
5. The data conversion apparatus according to claim 1, wherein the input data is three digital color separation signals.
【請求項6】 入力データを別のデータに変換するデー
タ変換方法において、 入力データに第1の非線形変換を行ない、 該変換により変換されたデータに基づいて生成される格
子点アドレスデータをテーブルメモリに入力して該格子
点アドレスデータに対応した関数値データを出力し、 前記テーブルメモリから出力される関数値データを、前
記第1の非線形変換により変換されたデータに基づいて
生成される重み係数データによって補間し、 該補間結果のデータに第2の非線形変換を行ない別のデ
ータを出力する、 各工程を有したことを特徴とするデータ変換方法。
6. A data conversion method for converting input data into another data, wherein a first non-linear conversion is performed on the input data, and grid point address data generated based on the converted data is stored in a table memory. To output the function value data corresponding to the grid point address data, and the function value data output from the table memory is generated based on the data converted by the first nonlinear conversion. A data conversion method comprising the steps of: interpolating with data, performing a second non-linear conversion on the interpolation result data, and outputting another data.
JP6277798A 1994-11-11 1994-11-11 Method and device for data conversion Pending JPH08138030A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6277798A JPH08138030A (en) 1994-11-11 1994-11-11 Method and device for data conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6277798A JPH08138030A (en) 1994-11-11 1994-11-11 Method and device for data conversion

Publications (1)

Publication Number Publication Date
JPH08138030A true JPH08138030A (en) 1996-05-31

Family

ID=17588434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6277798A Pending JPH08138030A (en) 1994-11-11 1994-11-11 Method and device for data conversion

Country Status (1)

Country Link
JP (1) JPH08138030A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1052597A2 (en) * 1999-05-13 2000-11-15 Eastman Kodak Company Color transformation system
US6992783B1 (en) 1998-07-02 2006-01-31 Canon Kabushiki Kaisha Image processing apparatus and method
JP2008033926A (en) * 2006-07-26 2008-02-14 Samsung Electronics Co Ltd Picture-interpolating method and device
US7502150B2 (en) 2004-05-28 2009-03-10 Sharp Kabushiki Kaisha Color converting device, image forming apparatus, color conversion method, computer program and recording medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6992783B1 (en) 1998-07-02 2006-01-31 Canon Kabushiki Kaisha Image processing apparatus and method
EP1052597A2 (en) * 1999-05-13 2000-11-15 Eastman Kodak Company Color transformation system
EP1052597A3 (en) * 1999-05-13 2003-10-29 Eastman Kodak Company Color transformation system
US7502150B2 (en) 2004-05-28 2009-03-10 Sharp Kabushiki Kaisha Color converting device, image forming apparatus, color conversion method, computer program and recording medium
JP2008033926A (en) * 2006-07-26 2008-02-14 Samsung Electronics Co Ltd Picture-interpolating method and device
KR101228110B1 (en) * 2006-07-26 2013-01-31 삼성전자주식회사 Method and apparatus for interpolating color image

Similar Documents

Publication Publication Date Title
JP3359134B2 (en) Color signal processing device
US4992861A (en) Color image reproduction apparatus having a digitally operated look-up table constructed by means of a least squares algorithm
JP3268512B2 (en) Image processing apparatus and image processing method
US4603348A (en) Method for composing addresses of a memory
US4819193A (en) Gradation processing method for color images
EP0272655A2 (en) Method and apparatus for generating look-up table data
JPH0795430A (en) Apparatus and method for conversion of color
JP3976849B2 (en) Device for generating interpolator input data
EP0310021A2 (en) Gradation converting circuit employing lookup table
US7215440B2 (en) Fast interpolation of large color lookup tables
JP2000505268A (en) Interpolation method in n-dimensional color space
JPH10166664A (en) Color printer
EP0427380A2 (en) Method of producing halftone images
JPH08138030A (en) Method and device for data conversion
US5233441A (en) Method for representing halftone dots with dot envelope parameters
JP3522147B2 (en) Half toning device and image forming device
US5491558A (en) Method and associated apparatus for writing a halftone dot having a variable density edge profile
JP2002152534A (en) Method and apparatus for converting three-dimensional signal
JP3603907B2 (en) Image data processing method and apparatus
US4903147A (en) Method and apparatus for processing an image
US5446558A (en) Apparatus and associated method for representing elliptical halftone dots
JPH10191090A (en) Apparatus and method for manufacturing color conversion table, and recording medium
JP3190545B2 (en) Interpolation calculation method and data converter
JPH10200776A (en) Color conversion device and color conversion method, and recording medium
US5673120A (en) Image output device

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20040709