JP3341688B2 - Control method for image processing apparatus and image processing apparatus controlled by the method - Google Patents

Control method for image processing apparatus and image processing apparatus controlled by the method

Info

Publication number
JP3341688B2
JP3341688B2 JP29917498A JP29917498A JP3341688B2 JP 3341688 B2 JP3341688 B2 JP 3341688B2 JP 29917498 A JP29917498 A JP 29917498A JP 29917498 A JP29917498 A JP 29917498A JP 3341688 B2 JP3341688 B2 JP 3341688B2
Authority
JP
Japan
Prior art keywords
data
color
grid point
grid
offset
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
Application number
JP29917498A
Other languages
Japanese (ja)
Other versions
JPH11191848A (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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP29917498A priority Critical patent/JP3341688B2/en
Publication of JPH11191848A publication Critical patent/JPH11191848A/en
Application granted granted Critical
Publication of JP3341688B2 publication Critical patent/JP3341688B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、所定次元の座標空
間に離散的に存在する点に対応して記憶された被補間デ
ータを、前記座標値の組み合わせに応じて補間する補間
演算を用いて装置を制御する制御方法に関する。また、
入力された画像データの色補正を前記補間演算を適用し
て実行する画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention uses an interpolation operation for interpolating interpolated data stored corresponding to points discretely existing in a predetermined dimensional coordinate space in accordance with a combination of the coordinate values. The present invention relates to a control method for controlling a device. Also,
The present invention relates to an image processing device that executes color correction of input image data by applying the interpolation operation.

【0002】[0002]

【従来の技術】離散的な座標値に対応して所定のデータ
を記憶したテーブルを補間して、任意の座標値に対応し
たデータを得る技術、いわゆるデータ補間が従来より種
々の装置の制御に適用されている。データ補間は、関数
化することが困難なデータを扱う場合に非常に有効であ
る。また、データ補間を適用すれば、テーブルに予め記
憶しておくデータ量を減らすことができるという利点も
ある。かかる利点を活かした具体例として、カラー原稿
等を、スキャナ等の画像入力部を用いて読み取り、読み
取られた画像データを、例えばCRTなどのディスプレ
イや、カラープリンタ等を用いて再生表示させる画像処
理装置の制御処理、即ち色補正処理が挙げられる。
2. Description of the Related Art A technique of interpolating a table storing predetermined data corresponding to discrete coordinate values to obtain data corresponding to an arbitrary coordinate value, that is, a so-called data interpolation has been conventionally used for controlling various devices. Have been applied. Data interpolation is very effective when dealing with data that is difficult to function. Also, applying data interpolation has the advantage that the amount of data stored in the table in advance can be reduced. As a specific example taking advantage of such an advantage, image processing for reading a color original or the like using an image input unit such as a scanner, and reproducing and displaying the read image data using a display such as a CRT or a color printer or the like. A control process of the device, that is, a color correction process is included.

【0003】ディスプレイやカラープリンタなどの画像
出力装置は、それぞれ特有の色再現特性を有する。スキ
ャナ等を用いて入力したカラー画像の色を、出力装置に
応じて良好に再生するための技術として、使用する画像
出力装置の色再現特性に応じてカラー画像を色補正する
処理を行う手法が提案されている。このような色補正手
法の一つとして、例えば特開昭63−2669号公報に
示された技術がある。この技術では、レッド(以下、R
と記す)、グリーン(以下、Gと記す)、ブルー(以
下、Bと記す)の3色の階調値の全ての組み合わせに対
応した色補正テーブルを用意している。この色補正テー
ブルは、3次元座標で表わされた色空間内の総ての位置
についての色補正内容を予め記憶している。画像処理装
置は、この色補正テーブルを参照することによって色補
正を行う。
[0003] Image output devices such as displays and color printers have unique color reproduction characteristics. As a technique for properly reproducing the color of a color image input using a scanner or the like according to an output device, there is a method of performing a color correction process on a color image according to the color reproduction characteristics of an image output device to be used. Proposed. As one of such color correction techniques, for example, there is a technique disclosed in Japanese Patent Application Laid-Open No. 63-2669. In this technology, red (hereinafter referred to as R
), Green (hereinafter, referred to as G), and blue (hereinafter, referred to as B) are prepared. This color correction table stores in advance color correction contents for all positions in a color space represented by three-dimensional coordinates. The image processing apparatus performs color correction by referring to the color correction table.

【0004】この色補正手法は、使用する色補正テーブ
ルの記憶容量が膨大なものとなってしまうため、実用性
が十分ではなかった。例えば、入力される原カラー画像
データがR,G,B各色毎に8ビット(256階調)の
階調数をもつ場合、色数は256の3乗で約1678万
色にもなる。色補正後のデータも同じく8ビットだとす
ると、R,G,B3色分では、色補正テーブルとして4
8メガバイトもの記憶容量が必要となる。
[0004] This color correction method is not practical because the storage capacity of the color correction table to be used becomes enormous. For example, when the input original color image data has a gradation number of 8 bits (256 gradations) for each of R, G, and B colors, the number of colors is 256 to the third power, which is about 16.78 million colors. Assuming that the data after color correction is also 8 bits, for the three colors R, G, and B, 4
It requires as much as 8 megabytes of storage capacity.

【0005】一方、色補正テーブルの容量を抑えること
により、記憶容量に関する課題を解決した技術として、
色空間を所定の間隔で分割し、この分割により得られた
格子点についてのみ用意された色補正データを用いる画
像処理方法が提案されている。こうした画像処理方法の
一つとして、データ補間による処理、例えば、特開平4
−144481号公報記載の処理方法および特開平4−
185075号公報記載の処理方法がある。これらの方
法は、上記格子点以外の画像データに関しては、格子点
のデータを利用して補間演算を行うことにより色補正デ
ータを求め、色補正処理を行うものである。
On the other hand, as a technique for solving the problem relating to the storage capacity by suppressing the capacity of the color correction table,
An image processing method has been proposed in which a color space is divided at predetermined intervals and color correction data prepared only for grid points obtained by the division is used. As one of such image processing methods, there is a processing by data interpolation.
And a processing method described in JP-A-144481.
There is a processing method described in 185075. In these methods, for image data other than the above-mentioned grid points, color correction data is obtained by performing an interpolation operation using the data of the grid points, and a color correction process is performed.

【0006】具体的に、3次元の色空間における画像デ
ータの近傍に存在する8つの格子点について用意された
色補正データを用いて補間する場合を考える。8つの格
子点は、画像データまわりの格子点により形成される立
方体(以下、小格子と呼ぶ)の各頂点に相当する。8つ
の格子点における色補正データをT(a,b,c)、・
・・T(a+1,b+1,c+1)とすると、画像デー
タに対応した色補正データTは、次式により求められ
る。 T=(1−γa)(1−γb)(1−γc)T(a ,b ,c ) + γa・(1−γb)(1−γc)T(a+1,b ,c ) +(1−γa)・ γb・(1−γc)T(a ,b+1,c ) +(1−γa)(1−γb)・ γc・T(a ,b ,c+1) + γa・ γb・(1−γc)T(a+1,b+1,c ) + γa・(1−γb)・ γc・T(a+1,b ,c+1) +(1−γa)・ γb・ γc・T(a ,b+1,c+1) + γa・ γb・ γc・T(a+1,b+1,c+1) ここで、γa、γb、γcはそれぞれ画像データと各格
子点との間の色空間上の距離に応じて定まる重み係数で
ある。この他に、画像データ近傍の4つの格子点を用い
て補間する方法もある。この方法では、上記小格子中に
おける画像データの位置関係に応じて、その小格子の頂
点から4つを選択して補間演算を行うのである。
Specifically, a case is considered in which interpolation is performed using color correction data prepared for eight grid points existing near image data in a three-dimensional color space. The eight grid points correspond to vertices of a cube (hereinafter referred to as a small grid) formed by grid points around the image data. The color correction data at eight grid points is represented by T (a, b, c),.
.. T (a + 1, b + 1, c + 1), the color correction data T corresponding to the image data is obtained by the following equation. T = (1−γa) (1−γb) (1−γc) T (a, b, c) + γa · (1−γb) (1−γc) T (a + 1, b, c) + (1−γb) γa) · γb · (1-γc) T (a, b + 1, c) + (1-γa) (1-γb) · γc · T (a, b, c + 1) + γa · γb · (1-γc) T (a + 1, b + 1, c) + γa · (1-γb) · γc · T (a + 1, b, c + 1) + (1-γa) · γb · γc · T (a, b + 1, c + 1) + γa · γb .Gamma.c.T (a + 1, b + 1, c + 1) Here, .gamma.a, .gamma.b, and .gamma.c are weighting factors determined according to the distance in the color space between the image data and each grid point. In addition, there is a method of performing interpolation using four grid points near image data. According to this method, interpolation calculation is performed by selecting four vertices of the small lattice according to the positional relationship of the image data in the small lattice.

【0007】かかる処理を行うものとすれば、前述のよ
うな膨大な色補正テーブルを用意する必要がない。ま
た、補間演算により一つ一つの画素について比較的小さ
い誤差で色補正データを求めることができるため、特別
な対策を施さなくても十分良好な画像が得られる利点も
ある。このようにデータの記憶量を減らすことができる
利点に鑑み、データ補間の技術は種々の装置の制御処理
において適用されている。
If such processing is performed, there is no need to prepare an enormous color correction table as described above. Further, since color correction data can be obtained with a relatively small error for each pixel by interpolation, there is an advantage that a sufficiently good image can be obtained without taking special measures. In view of the advantage that the storage amount of data can be reduced in this way, the technique of data interpolation is applied to control processing of various devices.

【0008】[0008]

【発明が解決しようとする課題】しかし、データ補間に
よる制御処理においては、任意の座標値の組み合わせに
対応したデータを得るために、複雑な補間演算処理を実
行する必要がある。例えば、上述した画像データ近傍の
8つの格子点を用いて補間する方法においては、各画素
の一色成分の補間につき24回の乗算と7回の加算を必
要とする。全画素、全色成分について補間演算を行う場
合には、膨大な演算が必要となる。一般に、データ補間
は頻繁に繰り返し実行されるため、全体として膨大な演
算が必要になることが多い。
However, in the control processing by data interpolation, it is necessary to execute complicated interpolation calculation processing in order to obtain data corresponding to an arbitrary combination of coordinate values. For example, in the above-described method of interpolating using eight grid points near the image data, interpolation of one color component of each pixel requires 24 multiplications and 7 additions. When performing an interpolation operation for all pixels and all color components, an enormous amount of operation is required. In general, data interpolation is frequently and repeatedly performed, and thus an enormous amount of calculation is often required as a whole.

【0009】また、データを記憶したテーブルの次元が
上がるにつれて、一つのデータを得るための処理内容も
複雑になる傾向がある。例えば、上述した画像処理装置
のように3次元のデータを補間する場合、画像データ近
傍の4つの格子点を用いて補間演算を行う際には、画像
データの位置関係に応じて、その小格子の頂点から4つ
を選択する条件分岐が必要となる。例えば、RGBの3
次元の色空間において、画像データ近傍に図1に示す通
りK,R,G,B,C,M,Y,Wの8つの格子点が存
在している場合を考える。これらの格子点で形成される
立方体は、図1に示すTetra0〜Tetra5の6
つの四面体に分割することができる。4つの格子点を用
いて補間演算を行う場合には、まず画像データのR成
分、G成分およびB成分の大小関係に基づいて、画像デ
ータがこれらの6つの四面体のいずれに属するかを判断
する必要があるのである。なお、この判断方法について
は、後で詳述する。補間するテーブルの次元がさらに上
がれば、処理内容はさらに複雑なものとなる。
Further, as the dimension of a table storing data increases, the processing content for obtaining one data tends to become more complicated. For example, when three-dimensional data is interpolated as in the above-described image processing apparatus, when an interpolation operation is performed using four grid points near the image data, the small grid is used in accordance with the positional relationship of the image data. Requires a conditional branch to select four from the vertices. For example, RGB 3
It is assumed that eight grid points of K, R, G, B, C, M, Y, and W exist near the image data in the dimensional color space as shown in FIG. Cubes formed by these lattice points are 6 of Tetra0 to Tetra5 shown in FIG.
Can be divided into four tetrahedra. When performing an interpolation operation using four grid points, first, it is determined to which of these six tetrahedrons the image data belongs based on the magnitude relation between the R component, the G component, and the B component of the image data. We need to do that. Note that this determination method will be described later in detail. If the dimension of the table to be interpolated further increases, the processing content becomes more complicated.

【0010】以上の原因により、データ補間には、非常
に長い処理時間を要していた。画像処理装置に関して言
えば、最近では出力画像の高解像度化が進み画素数が増
大する傾向にあるため、画像処理に要する時間はますま
す増大していた。近年、CPUの処理速度が著しく向上
しているものの、これだけでは画像処理速度の十分な改
善は図れない状況であった。データ補間を適用するその
他種々の制御処理においても同様の傾向にあった。
[0010] For the above reasons, data interpolation requires a very long processing time. As for the image processing apparatus, recently, the resolution of the output image has been increased and the number of pixels tends to increase, so that the time required for the image processing has been further increased. In recent years, although the processing speed of the CPU has been remarkably improved, the image processing speed cannot be sufficiently improved by this alone. There is a similar tendency in various other control processes to which data interpolation is applied.

【0011】本発明は、これらの問題を解決し、装置の
制御処理におけるデータ補間の処理時間を短縮し得る技
術を提供することを第1の目的とする。また、画像処理
における色補正に該技術を適用して、色補正誤差を増大
させることなく、色補正の処理時間を短くする技術を提
供することを第2の目的とする。
It is a first object of the present invention to solve these problems and to provide a technique capable of shortening the data interpolation processing time in the control processing of the apparatus. It is a second object of the present invention to provide a technique for applying the technique to color correction in image processing and shortening the color correction processing time without increasing a color correction error.

【0012】[0012]

【課題を解決するための手段およびその作用・効果】上
記課題を解決するために、本発明では次の構成を採っ
た。本発明の制御方法は、所定次元の座標空間に離散的
に存在する格子点に対応して記憶された装置の制御処理
に関与するパラメータを、前記座標値の組み合わせに応
じて補間演算することによって、該装置の制御処理を行
う制御方法であって、(a) 前記座標空間の前記各次元ごとに離散的に設定
された座標値の組み合わせによって定義される格子点に
対応して前記パラメータを記憶した被補間テーブルと、
前記被補間テーブルを補間して前記入力データに対応す
る値を演算する際に必要となる補間演算データをオフセ
ット座標値に対応して記憶する、前記小格子の数よりも
少ない種類のオフセット補正テーブルとを予め用意する
工程と、 (b) 前記座標空間において、前記各次元ごとに予め
有限個に設定された座標値の組み合わせからなる入力デ
ータを入力する工程と、 (c) 隣接する前記格子点によって前記次元で形成さ
れる複数の小格子のうち、前記入力データがいずれの小
格子に属するかを判定する工程と、 (d) 前記入力データを、該入力データが属する小格
子の格子点のうち基準となる基準格子点の座標値と、前
記各次元について該入力データと該基準格子点の座標値
との偏差を表すオフセット座標値とに変換する工程と、 (e) 前記オフセット座標値に対応した補間演算デー
タを前記オフセット補正テーブルから読み出すととも
に、前記基準格子点および該基準格子点に隣接する所定
の格子点に対応した前記パラメータを前記被補間テーブ
ルから読み出し、前記補間演算データを用いて該被補間
データの補間演算を行う工程とを備え、前記補間演算デ
ータは、前記補間演算に用いられる所定の格子点を前記
基準格子点との相対的な関係で特定する格子点特定デー
タと、前記補間演算において前記被補間データに乗ぜら
れる重み係数データとを含むデータであることを要旨と
する。前記工程(a)は、さらに、前記座標空間の前記
各次元ごとに離散的に設定された座標値の組み合わせに
よって定義される格子点について、該座標値の組み合わ
せからなる格子点情報を記憶した格子点情報テーブルを
も予め用意する工程であり、前記工程(c)は、前記判
定を前記格子点情報に基づいて行う工程であるものとし
てもよい。また、前記工程(a)で用意されるオフセッ
ト補正テーブルは、複数種類用意してもよいし、全小格
子に共通の単一種類のテーブルであるものとしてもよ
い。
Means for Solving the Problems and Their Functions / Effects In order to solve the above problems, the present invention has the following configuration. The control method according to the present invention interpolates parameters related to control processing of the device stored in correspondence with grid points discretely existing in a coordinate space of a predetermined dimension in accordance with a combination of the coordinate values. A control method for performing control processing of the apparatus, wherein: (a) discretely setting each of the dimensions of the coordinate space;
Grid point defined by the combination of
An interpolated table storing the parameters correspondingly;
The interpolation calculation data necessary for calculating the value corresponding to the input data by interpolating the interpolated table is offset.
A step of preparing in advance an offset correction table of a type smaller than the number of small grids stored in correspondence with the set coordinate values ; and (b) setting a finite number of sets in advance for each of the dimensions in the coordinate space. And (c) inputting any one of a plurality of small grids formed in the dimension by the adjacent grid points.
Determining whether the input data belongs to a grid; (d) converting the input data into coordinate values of a reference grid point serving as a reference among the grid points of the small grid to which the input data belongs; (E) reading the interpolation calculation data corresponding to the offset coordinate value from the offset correction table, and converting the reference grid point and the reference value. reading the parameters corresponding to a predetermined grid point adjacent to the grid point from the object interpolation table, and a step of performing interpolation calculation該被interpolated data by using the interpolation operation data, the interpolation operation de
A predetermined grid point used for the interpolation
Grid point specifying data specified by the relative relationship with the reference grid point
Multiplying the interpolated data in the interpolation calculation.
It is the gist of the data including the weight coefficient data to be processed . The step (a) further includes the step of:
To a combination of coordinate values set discretely for each dimension
For a grid point defined by
Grid point information table that stores grid point information
Is also prepared in advance, and the step (c) is performed
Is performed based on the grid point information.
You may. Further, the offset prepared in the step (a) is used.
A plurality of correction tables may be prepared.
May be a single type of table common to children
No.

【0013】この制御方法では補間演算において、各格
子点に対応した被補間テーブルを補間する際、入力デー
タを、該データが属する小格子の基準点の座標値とオフ
セット座標値に変換する。このオフセット座標値に対応
して補間演算データを与えるオフセット補正テーブルが
用意されているため、該テーブルを参照することで補間
演算データを容易に求めることができる。従来はオフセ
ット座標値に応じて、複雑に条件分けをした上で処理し
ていた補間演算がオフセット補正テーブルを参照するだ
けで実行できるようになるのである。当然、補間演算に
要する演算量も減少する。この結果、上述の補間演算で
は、補間演算の誤差を増大させることなく、その処理速
度を向上することができ、制御処理全体の速度を向上す
ることができる。
In this control method, in the interpolation operation, when interpolating the interpolated table corresponding to each grid point, the input data is converted into the coordinate value and the offset coordinate value of the reference point of the small grid to which the data belongs. Since the offset correction table for providing the interpolation calculation data corresponding to the offset coordinate values is prepared, the interpolation calculation data can be easily obtained by referring to the table. Conventionally, an interpolation operation that has been processed after complicatedly dividing conditions according to an offset coordinate value can be executed simply by referring to an offset correction table. Naturally, the amount of calculation required for the interpolation calculation also decreases. As a result, in the above-described interpolation calculation, the processing speed can be improved without increasing the error of the interpolation calculation, and the speed of the entire control process can be improved.

【0014】本発明の制御方法は、以下に示す種々の態
様で適用することができる。第1の態様として、前記装
置は、画像の色データの色補正を行う画像処理装置であ
り、前記入力データは、2次元以上の色空間における階
調値の組み合わせによって色成分を表す色データであ
り、前記被補間テーブルは、入力データとは異なる色系
で表された色成分と、入力データとの対応を示す色補正
テーブルであるものとすることができる。
The control method of the present invention can be applied in the following various modes. As a first aspect, the device is an image processing device that performs color correction of color data of an image, and the input data is color data representing a color component by a combination of gradation values in a two-dimensional or more color space. In addition, the table to be interpolated may be a color correction table indicating a correspondence between the input data and a color component expressed in a color system different from that of the input data.

【0015】こうすれば、画像データの色成分を他の色
系で表された色成分に変換する色補正処理を高速に実行
することができる。例えば、色補正処理としては、RG
Bの3次元で表された色成をシアン、マゼンダ、イエ
ロ、ブラックの4色で表された色系に補正する処理が挙
げられる。
This makes it possible to execute the color correction processing for converting the color components of the image data into the color components represented by another color system at a high speed. For example, as the color correction processing, RG
There is a process of correcting the color representation expressed in three dimensions of B into a color system expressed in four colors of cyan, magenta, yellow, and black.

【0016】第2の態様として、前記入力データは、該
装置の運転状態に関与するパラメータの組み合わせから
なるデータであり、前記被補間テーブルは、該装置の制
御量に関与するパラメータを記憶したテーブルであるも
のとすることもできる。
According to a second aspect, the input data is data comprising a combination of parameters related to an operation state of the device, and the interpolated table is a table storing parameters related to a control amount of the device. May be used.

【0017】運転状態に関与するパラメータや制御量に
関与するパラメータは、制御対象となる装置によって種
々のパラメータを選択可能である。例えば、制御対象が
ジェットエンジンである場合、運転状態に関与するパラ
メータとして、ジェットエンジンが運転される高度や速
度、スロットルレイティングなどを選択することができ
る。また、制御量に関与するパラメータとして推力を選
択することができる。もちろん、これらのパラメータに
は相関があるから両者の一部を入れ替え、運転状態に関
与するパラメータとして高度、速度、推力を選択し、制
御量に関与するパラメータとしてスロットルレイティン
グを選択するものとしてもよい。
Various parameters can be selected as parameters relating to the operating state and parameters relating to the control amount depending on the device to be controlled. For example, when the control target is a jet engine, the altitude and speed at which the jet engine is operated, the throttle rating, and the like can be selected as parameters related to the operating state. Further, thrust can be selected as a parameter related to the control amount. Of course, since these parameters have a correlation, a part of them may be replaced, altitude, speed, and thrust may be selected as parameters related to the driving state, and throttle rating may be selected as a parameter related to the control amount. .

【0018】制御対象となる装置としては、エンジンや
輸送機器、産業機械など種々の装置が挙げられる。ま
た、このように機械的に動作する装置のみならず、電気
回路や光学系など種々の装置も制御対象となる。なお、
第2の態様は、前記装置を実際に制御する処理のみなら
ず、該装置の運転状態のシミュレーションにおいて適用
することもできる。
As devices to be controlled, there are various devices such as engines, transportation equipment, and industrial machines. In addition, various devices such as an electric circuit and an optical system are to be controlled in addition to the devices that operate mechanically as described above. In addition,
The second aspect can be applied not only to the process of actually controlling the device, but also to a simulation of the operating state of the device.

【0019】第3の態様として、本発明を装置のファジ
ィ制御に適用する場合には、前記入力データは、前記制
御に関わる状態量を表すパラメータの値であり、前記被
補間テーブルは、メンバシップ値を記憶したテーブルで
あるものとすることもできる。
As a third aspect, when the present invention is applied to fuzzy control of a device, the input data is a value of a parameter representing a state quantity related to the control, and the interpolated table includes a membership table. It may be a table storing values.

【0020】ファジィ制御とは、流動性を含んだ、あい
まいなパラメータに基づく制御理論をいう。車両の速度
制御を例に説明する。ファジィ制御では、「車両が遅け
れば加速する」というタイプの制御がなされる。車両を
ある特定の速度に一致させる制御ではなく、「遅い」と
いうあいまいなパラメータを用いて制御するのである。
このようなあいまいなパラメータを数理的に表した関数
はメンバシップ関数と呼ばれ、該関数の関数値はメンバ
シップ値と呼ばれる。「遅い」というあいまいなパラメ
ータを用いて制御する場合、メンバシップ関数は、車両
の速度に対して「遅い」と認識される確率を0〜1.0
の実数値で与える関数となる。
The fuzzy control refers to a control theory based on ambiguous parameters including fluidity. A description will be given of a vehicle speed control as an example. In the fuzzy control, control of the type "accelerates if the vehicle is slow" is performed. Instead of controlling the vehicle to match a certain speed, the vehicle is controlled using an ambiguous parameter of “slow”.
A function that mathematically represents such an ambiguous parameter is called a membership function, and the function value of the function is called a membership value. When controlling using the ambiguous parameter of “slow”, the membership function sets the probability of being recognized as “slow” with respect to the speed of the vehicle from 0 to 1.0.
Is a function given by the real value of.

【0021】ファジイ制御では、テーブルとして記憶さ
れたメンバシップ関数を制御に関わる状態量に応じて補
間することによって、制御量を求める。メンバシップ関
数の補間はファジイ制御において頻繁に行われる。従っ
て、本発明の制御方法を上述の態様でメンバシップ関数
の補間に適用すれば、ファジィ制御の処理を非常に高速
に実行することができる。
In the fuzzy control, a control amount is obtained by interpolating a membership function stored as a table according to a state amount related to the control. Interpolation of membership functions is frequently performed in fuzzy control. Therefore, if the control method of the present invention is applied to the interpolation of the membership function in the above-described manner, the processing of fuzzy control can be executed at a very high speed.

【0022】第4の態様として、装置の制御処理におい
て、第1の座標系で表されたデータを第2の座標系に座
標変換する処理が行われる場合には、前記入力データ
は、前記第1の座標系における座標値の組み合わせから
なるデータであり、前記被補間テーブルは、各格子点を
前記座標変換した場合の第2の座標系の座標値を記憶し
たテーブルであるものとすることもできる。
According to a fourth aspect, in a control process of the apparatus, when a process of performing coordinate conversion from data represented by a first coordinate system to a second coordinate system is performed, the input data is converted to the second coordinate system. The data to be interpolated may be data comprising a combination of coordinate values in one coordinate system, and the interpolated table may be a table storing coordinate values in a second coordinate system when the respective grid points are subjected to the coordinate conversion. it can.

【0023】こうすれば、座標変換を高速に行うことが
できる。第1および第2の座標系としては、種々の座標
系を選択することができる。例えば、第1の座標系とし
て、3次元の直交座標系(x、y、z)を選択し、第2
の座標系として3次元の極座標系(r、θ、φ)を選択
した場合を考える。直交座標系から極座標系への変換
は、平方根および三角関数を含んだ次式(1)により行
われる。平方根および三角関数は時間を要する演算であ
る。 r=√(x×x+y×y+z×z); θ(rad)=cos−1(x/√(x×x+y×y)); φ(rad)=cos−1(z/√(x×x+y×y+z×z))・・・(1 );
This makes it possible to perform the coordinate conversion at a high speed. Various coordinate systems can be selected as the first and second coordinate systems. For example, a three-dimensional orthogonal coordinate system (x, y, z) is selected as a first coordinate system, and a second coordinate system is selected.
Let us consider a case in which a three-dimensional polar coordinate system (r, θ, φ) is selected as the coordinate system of. The conversion from the rectangular coordinate system to the polar coordinate system is performed by the following equation (1) including a square root and a trigonometric function. Square root and trigonometric functions are time-consuming operations. r = √ (xx × + y × y + z × z); θ (rad) = cos−1 (x / √ (xx × y × y)); φ (rad) = cos−1 (z / √ (xx × + y × y + z × z)) (1);

【0024】かかる演算によれば、例えば第1の座標系
におけるA点(1,0,0)およびB点(1,1,0)
は次の通り変換される。 A:(1,0,0) → Ap:(r、θ、φ)=(1, 0,π/2); B:(1,1,0) → Bp:(r、θ、φ)=(2,π/4,π/2);
According to such calculation, for example, point A (1, 0, 0) and point B (1, 1, 0) in the first coordinate system
Is transformed as follows: A: (1, 0, 0) → Ap: (r, θ, φ) = (1, 0, π / 2); B: (1, 1, 0) → Bp: (r, θ, φ) = (2, π / 4, π / 2);

【0025】上記第4の態様による補間演算を適用した
座標変換では、いくつかの代表的な点について、第1の
座標系における座標値と第2の座標系における座標値と
をテーブルとして記憶する。このテーブルを補間するこ
とにより、座標変換を行うのである。上述の例でいえ
ば、A点とB点の中間に位置するC点(1,0.5,
0)に対応する第2の座標系での座標値は、Ap,Bp
点の座標値を補間することにより求めることができる。
上記第4の態様では、この補間演算を高速に行うことが
できるため、第1の座標系から第2の座標系への変換を
高速で実行することができ、制御処理を高速に行うこと
ができる。
In the coordinate conversion to which the interpolation calculation according to the fourth aspect is applied, coordinate values in the first coordinate system and coordinate values in the second coordinate system are stored as tables for some representative points. . Coordinate conversion is performed by interpolating this table. In the above example, point C (1,0.5,
0) in the second coordinate system are Ap, Bp
It can be obtained by interpolating the coordinate values of the points.
In the fourth aspect, since the interpolation operation can be performed at high speed, the conversion from the first coordinate system to the second coordinate system can be performed at high speed, and the control processing can be performed at high speed. it can.

【0026】なお、第1の座標系と第2の座標系が直交
座標系と極座標系である場合のように、線形変換によっ
て変換可能な関係にない場合には、上記第4の態様によ
る座標変換には若干の誤差が含まれる。かかる誤差は補
間される被補間テーブル中の格子点の間隔によって変化
する。従って、座標変換時の誤差が十分許容範囲に入る
間隔で被補間テーブルを設定しておくことが望ましい。
When the first coordinate system and the second coordinate system are not in a relationship that can be converted by linear conversion, such as when the first coordinate system and the second coordinate system are a rectangular coordinate system and a polar coordinate system, the coordinates according to the fourth aspect are used. The conversion contains some errors. Such an error varies depending on the interval between grid points in the table to be interpolated. Therefore, it is desirable to set the table to be interpolated at intervals in which the error at the time of coordinate conversion falls within a sufficiently allowable range.

【0027】上記態様において、第1の座標系、第2の
座標系には種々の座標系を適用することができるのは、
いうまでもない。また、両座標系に一義的な対応関係が
存在すれば、必ずしも両座標系の次元が一致している必
要もない。例えば、第1の座標系を3次元の直交座標系
とし、第2の座標系を2次元の直交座標系として、第1
の座標系で表される座標を第2の座標系で表される平面
に投影する変換を行う際に、上記態様による補間演算を
適用することも可能である。
In the above embodiment, various coordinate systems can be applied to the first coordinate system and the second coordinate system.
Needless to say. Further, if there is a unique correspondence between the two coordinate systems, the dimensions of the two coordinate systems do not necessarily need to match. For example, the first coordinate system is a three-dimensional rectangular coordinate system, the second coordinate system is a two-dimensional rectangular coordinate system, and the first coordinate system is a three-dimensional rectangular coordinate system.
It is also possible to apply the interpolation calculation according to the above-described mode when performing the conversion of projecting the coordinates represented by the coordinate system of (1) onto the plane represented by the second coordinate system.

【0028】第5の態様として、装置の制御処理におい
て、第1の座標系で表されたデータを線形変換により第
2の座標系で表されたデータに変換を行う場合には、前
記入力データは、前記線形変換を特定するパラメータの
組み合わせからなるデータであり、前記被補間テーブル
は、前記線形変換において、前記第1の座標系で表され
たデータに乗ぜられる係数を記憶したテーブルであるも
のとすることもできる。
According to a fifth aspect, in the control process of the apparatus, when the data represented by the first coordinate system is converted into the data represented by the second coordinate system by linear transformation, the input data Is data comprising a combination of parameters for specifying the linear transformation, and the interpolated table is a table storing coefficients multiplied by the data represented by the first coordinate system in the linear transformation. It can also be.

【0029】こうすれば座標の線形変換を非常に高速に
実行することができる。代表的な線形変換としては、座
標の回転が挙げられる。かかる場合には、線形変換を特
定するパラメータとして、座標の回転角度を選択するこ
とができる。例えば、Xe軸、Ye軸、Ze軸からなる
第1の直交座標系における座標値(xe,ye,ze)
を回転して、Xb軸,Yb軸,Zb軸からなる第2の直
交座標系における座標値(xb,yb,zb)に変換す
る場合を考える。図33に示すように、第1の直交座標
系を、最初にZe軸周りにψ(rad)回転し、次にY
e軸周りにθ(rad)回転し、最後にXe軸周りにφ
(rad)回転して第2の座標系に変換するものとす
る。ψ、θ、φは座標変換に関し、いわゆるオイラー角
と呼ばれる角度である。かかる線形変換は3×3の変換
マトリックスを第1の座標系における座標値に乗じた次
式(2)により行うことができる。変換マトリックスの
9つの成分a11〜a33は、上述のオイラー角に応じ
て周知の設定される。
In this way, the linear transformation of the coordinates can be executed at a very high speed. A typical linear transformation includes rotation of coordinates. In such a case, the rotation angle of the coordinates can be selected as a parameter for specifying the linear transformation. For example, coordinate values (xe, ye, ze) in a first orthogonal coordinate system including the Xe axis, the Ye axis, and the Ze axis
Is converted to coordinate values (xb, yb, zb) in the second orthogonal coordinate system including the Xb axis, the Yb axis, and the Zb axis. As shown in FIG. 33, the first orthogonal coordinate system is first rotated by ψ (rad) about the Ze axis, and then Y
θ (rad) rotation around the e-axis and finally φ around the Xe-axis
(Rad) It is assumed that the image is rotated and converted into the second coordinate system. ψ, θ, and φ are angles referred to as so-called Euler angles regarding coordinate conversion. Such a linear transformation can be performed by the following equation (2) in which a 3 × 3 transformation matrix is multiplied by a coordinate value in the first coordinate system. The nine components a11 to a33 of the transformation matrix are set in a known manner according to the above-described Euler angles.

【0030】 xb=sinθcosψ・xe+(-sinθsinψ)・ye+cosθ・ze =a11・xe+a12・ye+a13・ze; yb=(-sinφcosθcosψ+cosφsinψ)・xe +(sinφcosθsinψ+cosφcosψ)・ye+sinφsinθ・ze =a21・xe+a22・ye+a23・ze; zb=(cosφcosθcosψ+sinφsinψ)・xe +(-cosφcosθsinψ+sinφcosψ)・ye+(-cosφsinθ)・ze =a31・xe+a32・ye+a33・ze; ・・・(2 )Xb = sinθcosψ ・ xe + (-sinθsinψ) ・ ye + cosθ ・ ze = a11 ・ xe + a12 ・ ye + a13 ・ ze; yb = (-sinφcosθcosψ + cosφsinψ) ・ xe + (sinφcosθsinψ + cosφcosψ) ・ ye + sinφsinθ ・ ze = a21 ・ xe + a22 ・ ye + a23 ・ ze; zb = (cosφcosθcosψ + sinφsinψ) ・ xe + (-cosφcosθsinψ + sinφcosψ) ・ ye + (-cosφsinθ) ・ ze = a31 ・ xe + a32 ・ ye + a33・ Ze; ・ ・ ・ (2)

【0031】第5の態様による補間演算を適用した座標
変換処理では、オイラー角ψ、θ、φの組み合わせに対
し、上記9つの成分a11〜a33を与えるテーブルを
被補間テーブルとして記憶する。座標変換処理において
与えられたオイラー角に応じて、被補間テーブルを補間
することによって上記9つの成分a11〜a33を求め
ることができる。第5の態様による補間演算によれば、
かかる補間演算を高速で実行することができるため、座
標変換を高速で行うことができ、制御を高速に行うこと
ができる。なお、第5の態様によるデータ補間は、種々
の次元の座標変換に適用可能であるし、直交座標系以外
の座標系にも適用可能であることはもちろんである。
In the coordinate conversion processing to which the interpolation operation is applied according to the fifth mode, a table that gives the nine components a11 to a33 for the combination of the Euler angles ψ, θ, and φ is stored as an interpolated table. The nine components a11 to a33 can be obtained by interpolating the interpolated table according to the Euler angles given in the coordinate conversion processing. According to the interpolation calculation according to the fifth aspect,
Since such interpolation calculation can be performed at high speed, coordinate conversion can be performed at high speed, and control can be performed at high speed. It should be noted that the data interpolation according to the fifth aspect can be applied to coordinate transformation of various dimensions, and can be applied to a coordinate system other than the rectangular coordinate system.

【0032】先に第1の態様で説明した通り、本発明の
制御方法は、画像処理装置を制御して、画像データの色
補正を行う処理に適用することが可能である。また、こ
の処理では、処理対象となるデータ量が膨大であるた
め、本発明の制御方法を特に有効に活用することができ
る。本発明は、以下に示す通り、上述した制御方法を適
用した画像処理装置として構成することもできる。
As described above in the first embodiment, the control method of the present invention can be applied to a process of controlling an image processing device and performing color correction of image data. In this process, since the amount of data to be processed is enormous, the control method of the present invention can be particularly effectively used. The present invention can be configured as an image processing apparatus to which the above-described control method is applied, as described below.

【0033】本発明の画像処理装置は、2次元以上の色
空間において各次元ごとに予め定めた階調数に対応した
座標値を用いて表された多色の画像を色補正して出力す
る画像処理装置であって、前記画像の各画素について、
前記座標値からなるカラー画像データを入力する入力手
段と、前記色空間を前記各次元ごとに前記階調数よりも
少ない数に分割することにより得られた格子点に対応し
て、色の補正量に関する色補正データを色補正テーブル
として記憶した色補正テーブルメモリと、隣接する前記
格子点によって前記次元に対応して形成される複数の小
格子のうち、前記カラー画像データがいずれの小格子に
属するかを判定する小格子判定手段と、前記カラー画像
データを、該カラー画像データが属する小格子の基準と
なる基準格子点の座標値と、前記各次元ごとに該カラー
画像データと該基準格子点の座標値との偏差を表すオフ
セット座標値とに変換する画像データ変換手段と、前記
カラー画像データに対応する色補正データを前記色補正
テーブルを補間して求める際に必要となる補間演算デー
タと前記オフセット座標値との対応を、前記小格子の数
よりも少ない種類のオフセット補正テーブルとして記憶
するオフセット補正テーブルメモリと、前記オフセット
座標値に対応した補間演算データを前記オフセット補正
テーブルから読み出すとともに、前記基準格子点および
該基準格子点に隣接する所定の格子点に対応した色補正
データを前記色補正テーブルから読み出し、該補間演算
データを用いて該色補正データの補間演算を行い、該演
算結果を補正済みのカラー画像データとして出力する色
補正手段とを備え、前記補間演算データは、前記補間演
算に用いられる所定の格子点を前記基準格子点との相対
的な関係で特定する格子点特定データと、前記補間演算
において前記色補正データに乗ぜられる重み係数データ
とを含むデータであることを要旨とする。さらに、前記
色空間を前記各次元ごとに前記階調数よりも少ない数に
分割することにより得られた格子点の座標値からなる格
子点情報を格子点情報テーブルとして記憶する格子点情
報テーブルメモリを備え、前記小格子判定手段は、前記
判定を前記格子点情報に基づいて行う手段であるものと
してもよい。また、この場合においても、前記オフセッ
ト補正テーブルは、複数種類のテーブルとしてもよい
し、全小格子に共通の単一種類のテーブルとしてもよ
い。
The image processing apparatus of the present invention color-corrects and outputs a multicolor image represented by using coordinate values corresponding to a predetermined number of gradations for each dimension in a color space of two or more dimensions. An image processing apparatus, wherein for each pixel of the image,
Input means for inputting color image data consisting of the coordinates, than the number of gradations of the color space for each of the each dimension
Corresponding to the grid points obtained by dividing
Color correction data relating to the amount of color correction
The color image data is stored in any one of a plurality of small lattices formed corresponding to the dimension by the adjacent lattice points.
A small grid determination unit for determining whether the color image data belongs to the color image data; a coordinate value of a reference grid point serving as a reference of the small grid to which the color image data belongs; and the color image data and the reference grid for each dimension. Image data conversion means for converting the image data into offset coordinate values representing deviations from the coordinate values of points; and interpolation calculation data necessary for obtaining color correction data corresponding to the color image data by interpolating the color correction table. And an offset correction table memory storing the correspondence between the offset coordinate values and the number of types of offset correction tables smaller than the number of small grids, and reading out interpolation calculation data corresponding to the offset coordinate values from the offset correction table. And color correction data corresponding to the reference grid point and a predetermined grid point adjacent to the reference grid point. Read from the table, performs interpolation calculation of the color correction data with the interpolation operation data, and a color correction means for outputting the operation result as the corrected color image data, the interpolation operation data, the interpolation Starring
The predetermined grid point used in the calculation is relative to the reference grid point.
Point specifying data specified by a dynamic relationship and the interpolation calculation
Weighting factor data multiplied by the color correction data in
It is assumed that the data includes the following. In addition,
Reduce the color space for each dimension to a number smaller than the number of gradations
A case consisting of the coordinate values of the grid points obtained by dividing
Grid point information that stores child point information as a grid point information table
Information table memory, and the small grid determination means
Means for making a determination based on the grid point information.
May be. Also in this case, the offset
The correction table may be a plurality of types of tables.
And a single type of table common to all small grids
No.

【0034】このように画像処理装置を構成すれば、先
に制御方法において説明した作用に基づき、補間演算の
誤差を増大させることなく色補正テーブルの補間処理を
高速で実行することができ、画像処理の速度を向上する
ことができる。
With the above-described image processing apparatus, the color correction table can be interpolated at a high speed without increasing the error of the interpolation operation based on the operation described in the control method. Processing speed can be improved.

【0035】ここで、二次元以上の色空間としては、R
GBやCMY系の色空間のみならず、XYZ表色系で表
わされた色空間、L*a*b*表色系、L*C*h表色
系、マンセル表色系など、種々の色空間を考えることが
できる。階調数としては、これらの座標値がnビット数
のディジタルな情報により表現されている場合には、2
のn乗(例えば8ビットなら256)の階調により表現
されることが多いが、100階調や17階調など、2の
n乗以外の階調数であっても差し支えない。
Here, as a color space of two or more dimensions, R
Not only GB and CMY color spaces, but also various color spaces represented by XYZ color system, L * a * b * color system, L * C * h color system, Munsell color system, etc. You can think of a color space. When these coordinate values are represented by n-bit digital information, the number of gradations is 2
(For example, 256 for 8 bits). However, the number of gradations other than 2 to the nth power, such as 100 gradations or 17 gradations, may be used.

【0036】なお、上記発明における格子点は、色空間
を各次元について階調数よりも少ない数に分割した場合
の交点として得られるものであるが、該分割は一定間隔
の区間により分割されている必要はない。これは、各次
元について低濃度領域から高濃度領域まで一定間隔で分
割する必要はないことを意味する他、次元間の統一も不
要であることを意味する。つまり、ある次元(例えばR
GBの色空間におけるR方向)については一定間隔で分
割し、他の次元(G,B方向)については不均一な間隔
で分割するものであってもよい。さらに、各次元間で分
割数が統一されている必要もない。また、オフセット補
正テーブルは単一の種類のテーブルとすることが好まし
いが、上記色空間の分割に応じて、複数種のテーブルを
類用意するものとしてもよい。
The grid points in the above invention are obtained as intersections when the color space is divided into a number smaller than the number of gradations in each dimension, and the division is made by sections at regular intervals. You don't need to be. This means that it is not necessary to divide each dimension from a low-density area to a high-density area at a constant interval, and that it is not necessary to unify dimensions. That is, a certain dimension (for example, R
The image may be divided at regular intervals in the RGB color space (R direction), and may be divided at non-uniform intervals in the other dimensions (G and B directions). Further, the number of divisions does not need to be unified among the dimensions. Although the offset correction table is preferably a single type of table, a plurality of types of tables may be prepared according to the division of the color space.

【0037】上記画像処理装置において、前記色空間の
分割は、前記色補正テーブルに記憶された色補正データ
のデータ量と前記オフセット補正テーブルに記憶された
補間演算データのデータ量とが略同一になる分割である
ことが望ましい。
In the above image processing apparatus, the color space is divided so that the data amount of the color correction data stored in the color correction table and the data amount of the interpolation calculation data stored in the offset correction table are substantially the same. It is desirable that the division be made.

【0038】このように色空間を分割することにより、
色補正データの記憶に要するメモリ量と補間演算データ
の記憶に要するメモリ量の総計を概ね最小に抑えること
ができる。この点について、各次元についてL階調を有
するn次元の色空間を等間隔に分割した場合を例にとっ
て説明する。このとき、全ての小格子は同一のものとな
るため、オフセット補正テーブルが単一のテーブルとな
る。色空間をm階調からなる間隔で分割するとすれば、
色空間は各次元ごとに(L/m)個の区間に分割され
る。色補正データが各格子点に対してA個ずつ用意され
るとすれば、そのデータ量は次式(3)で表される。 色補正データのデータ量=A・(L/m)^n・・・(3) ここで、^はべき剰演算子を表すものとする。
By dividing the color space as described above,
The total amount of memory required for storing the color correction data and the amount of memory required for storing the interpolation calculation data can be suppressed to a minimum. This point will be described by taking as an example a case where an n-dimensional color space having L gradations in each dimension is divided at equal intervals. At this time, since all the small grids are the same, the offset correction table is a single table. If the color space is divided at intervals of m gradations,
The color space is divided into (L / m) sections for each dimension. Assuming that A pieces of color correction data are prepared for each grid point, the data amount is represented by the following equation (3). Data amount of color correction data = A · (L / m) ^ n (3) Here, ^ represents a power remainder operator.

【0039】一方、オフセット補正データが、小格子に
含まれる各次元についてm個ずつの座標値に対応してB
個ずつ用意されるとすれば、そのデータ量は次式(4)
で表される。 オフセット補正データ量=B・m^n・・・(4) 両者の総計を上式(3)および(4)により求め、これ
らによく知られている数学定理である相加・相乗平均の
定理を適用すると、次式(5)からなる関係が成立す
る。 データの総計=A・(L/m)^n+B・m^n ≧2√(A・(L/m)^n・B・m^n) =2√(A・B・L^n)・・・(5) 相加・相乗平均の定理によれば、上式(5)においてデ
ータの総計が最小値2√(A・B・L^n)となるの
は、相加平均を与える2つの項、つまりA・(L/m)
^n(色補正データのデータ量)とB・m^n(オフセ
ット補正データ量)が等しいときである。従って、色補
正データのデータ量とオフセット補正データのデータ量
が等しい場合に、データを記憶するためのメモリ容量が
最小となることが分かる。以上よりメモリ容量を最小と
する色空間の分割間隔mは、 A・(L/m)^n=B・m^n なる方程式を解くことにより与えられ、その解をmxと
すれば、 mx=(A・L^n/B)^(1/2n) である。
On the other hand, the offset correction data corresponds to B coordinate values corresponding to m coordinate values for each dimension included in the small grid.
Assuming that the data is prepared individually, the data amount is given by the following equation (4).
It is represented by Offset correction data amount = B · m ^ n (4) The sum of the two is obtained by the above equations (3) and (4), and the well-known mathematical theorem, the addition and geometric mean theorem, is obtained. Is applied, a relationship represented by the following equation (5) is established. Total data = A ・ (L / m) ^ n + B ・ m ^ n ≧ 2√ (A ・ (L / m) ^ n ・ B ・ m ^ n) = 2√ (A ・ B ・ L ^ n) ・(5) According to the arithmetic / arithmetic mean theorem, the sum of the data in Equation (5) above becomes the minimum value 2√ (A ・ B ・ L ^ n) because the arithmetic mean 2 Term, A · (L / m)
^ n (the amount of color correction data) and B · m ^ n (the amount of offset correction data) are equal. Accordingly, it can be seen that when the data amount of the color correction data is equal to the data amount of the offset correction data, the memory capacity for storing the data is minimized. From the above, the division space m of the color space that minimizes the memory capacity is given by solving the following equation: A ・ (L / m) ^ n = B ^ m ^ n. If the solution is mx, then mx = (A · L ^ n / B) ^ (1 / n).

【0040】ここで、上式における階調数L、mおよび
色空間の次元nは、整数であり階調mxは整数解が存在
するとは限らないため、色補正データのデータ量とオフ
セット補正データのデータ量が厳密に等しくなる関係、
つまり階調数m=mxなる関係は、成立し難い。また、
実際には階調数はビットで表すことが多いため、m=2
^X(Xは整数)なる関係も成立することが望ましい。
従って、色補正データのデータ量とオフセット補正デー
タのデータ量が厳密に等しくなくても、両者が略同一と
なる様に色空間を分割しておけば、両者のデータを記憶
するメモリ容量を概ね最小に抑えることができる。具体
的には、上記階調mxに対し、 mx/2≦m≦2・mx なる範囲で2^X(Xは整数)なる条件を満足する階調
数mを求めればよい。また、色補正データの各格子点あ
たりのデータ数Aとオフセット補正データの各座標点あ
たりのデータ数Bとが概ね等しい場合において、色空間
が各次元についてNビットからなる階調数を有している
とすれば、分割の階調数mを(N/2)ビットからなる
間隔とするときに上記データ量の総計は最小となる。
Here, since the number of gradations L and m and the dimension n of the color space in the above equation are integers and the gradation mx does not always have an integer solution, the data amount of the color correction data and the offset correction data Relationship where the amount of data is exactly equal,
That is, the relationship of the number of gradations m = mx is hardly established. Also,
Actually, since the number of gradations is often represented by bits, m = 2
It is desirable that the relationship of ^ X (X is an integer) also be established.
Therefore, even if the data amount of the color correction data and the data amount of the offset correction data are not strictly equal, if the color space is divided so that the two are substantially the same, the memory capacity for storing both data is approximately the same. Can be kept to a minimum. Specifically, the number of gradations m that satisfies the condition of 2 ^ X (X is an integer) in the range of mx / 2 ≦ m ≦ 2 · mx with respect to the gradation mx may be obtained. Further, when the number A of data per grid point of the color correction data is substantially equal to the number B of data per coordinate point of the offset correction data, the color space has a gradation number of N bits for each dimension. If the number of gradations m of the division is set to an interval consisting of (N / 2) bits, the total of the data amount becomes minimum.

【0041】前記色空間が3次元の色空間である場合に
は、前記格子点特定データは、前記オフセット座標値に
応じて、前記補間演算に用いられる4つの格子点の少な
くとも一部を特定するデータであり、前記重み係数デー
タは、前記オフセット座標値に応じて、前記補間演算に
おいて、前記各格子点に対応した前記色補正データに乗
ぜられる係数データであることが望ましい。
When the color space is a three-dimensional color space,
Indicates that the grid point specifying data corresponds to the offset coordinate value.
Accordingly, a small number of four grid points used for the interpolation
At least part of the data is specified, and the weighting coefficient data is coefficient data multiplied by the color correction data corresponding to each of the grid points in the interpolation calculation according to the offset coordinate value. desirable.

【0042】かかる構成を採ることにより、該オフセッ
ト補正テーブルは、基準格子点と他の3点からなる4点
を用いた補間演算(以下、四面体法と呼ぶ)に適用する
ことができる。四面体法は、色空間が3次元である場合
に最も演算量が少なくて済む補間演算方法として知られ
るものである。四面体法ではオフセット座標に応じて補
間演算に用いる4つの格子点を選択する処理が必要とな
るが、上記構成におけるオフセット補正テーブルは該格
子点の少なくとも一部を格子点特定データとして記憶し
ている。従って、該テーブルを参照することにより格子
点の選択をすることができる。この結果、格子点を選択
する処理が簡略化されたものとなり、3次元からなる色
空間に関する画像処理を非常に高速で実施することがで
きる。なお、重み係数データは、色補正データに直接乗
ぜられるデータとしてもよいし、色補正データに乗ぜら
れる係数の算出に用いられるデータとしてもよい。
By adopting such a configuration, the offset correction table can be applied to an interpolation operation (hereinafter, referred to as a tetrahedron method) using four points including a reference grid point and other three points. The tetrahedron method is known as an interpolation calculation method that requires the least amount of calculation when the color space is three-dimensional. In the tetrahedron method, it is necessary to select four grid points to be used for the interpolation operation according to the offset coordinates. However, the offset correction table in the above configuration stores at least a part of the grid points as grid point specifying data. I have. Therefore, a grid point can be selected by referring to the table. As a result, the process of selecting grid points is simplified, and image processing for a three-dimensional color space can be performed at a very high speed. The weight coefficient data may be data directly multiplied by the color correction data or data used for calculating a coefficient multiplied by the color correction data.

【0043】色空間が均一な間隔で分割されていない場
合においては、前記格子点の各間隔が前記各次元におい
てそれぞれ一定の仮想格子点間隔となるように座標変換
する正規化手段を備え、前記画像データ変換手段は、前
記カラー画像データが属する小格子についてその基準と
なる基準格子点の座標値と、前記各次元について該カラ
ー画像データと該基準格子点の座標値との偏差を前記正
規化手段により変換された座標において表すオフセット
座標値とに変換する手段とすることが望ましい。
When the color space is not divided at uniform intervals, a normalizing means for performing coordinate conversion so that each interval between the lattice points is a constant virtual lattice point interval in each dimension is provided. The image data conversion means normalizes the coordinate value of a reference grid point serving as a reference for the small grid to which the color image data belongs and the deviation between the color image data and the coordinate value of the reference grid point for each dimension. It is desirable that the means be converted to an offset coordinate value represented by coordinates converted by the means.

【0044】かかる構成を採ることにより、仮想格子点
間隔からなる小格子についてオフセット補正テーブルを
用意すれば、該テーブルを全ての小格子について適用す
ることができる。この結果、色空間が均一な間隔で分割
されていない場合でも、オフセット補正テーブルを一種
類に統一することができ、補間演算データを記憶するメ
モリ容量を少なくすることができる。また、カラー画像
データが属する格子に応じて、条件分岐してオフセット
補正テーブルを使い分ける必要がなくなるため、画像処
理を高速に行うことができる。
By adopting such a configuration, if an offset correction table is prepared for a small grid consisting of virtual grid point intervals, the table can be applied to all the small grids. As a result, even when the color space is not divided at uniform intervals, the offset correction table can be unified into one type, and the memory capacity for storing the interpolation calculation data can be reduced. In addition, it is not necessary to use the offset correction table by performing conditional branching according to the grid to which the color image data belongs, so that image processing can be performed at high speed.

【0045】なお、補間演算における色補正誤差を最も
小さくするため、上記仮想格子点間隔は色空間の分割に
応じて数種類存在する格子点間隔のうち、最も多数とな
る間隔と一致させることが望ましい。具体的に、色空間
が間隔aおよび間隔bの2種類の間隔で分割されている
場合に、間隔aからなる格子点間隔が全体の90%を占
め、残りの10%の格子点間隔が間隔bであるときは、
仮想格子点間隔を間隔aに設定することが望ましい。も
っとも、仮想格子点間隔はいずれかの格子点間隔と一致
している必要はなく、自由に設定することができる。従
って、例えば、オフセット補正テーブルのデータ容量が
比較的少なくなるように、格子点間隔よりもやや小さい
間隔を設定するものとしてもよい。
In order to minimize the color correction error in the interpolation operation, it is desirable that the above-mentioned virtual grid point interval coincides with the largest one among several types of grid point intervals according to the division of the color space. . Specifically, when the color space is divided by two types of intervals a and b, 90% of the entire grid point interval consisting of the interval a occupies 90% of the total, and the remaining 10% grid point interval is the interval. If b
It is desirable to set the virtual grid point interval to the interval a. However, the virtual grid point interval does not need to match any of the grid point intervals, and can be set freely. Therefore, for example, an interval slightly smaller than the lattice point interval may be set so that the data capacity of the offset correction table is relatively small.

【0046】上記正規化手段を備える場合には、前記正
規化後の間隔は、前記色空間の所定の低濃度領域におけ
る前記格子点の間隔の整数倍となっていることが望まし
い。
When the above-mentioned normalizing means is provided, it is preferable that the interval after the normalization is an integral multiple of the interval between the lattice points in a predetermined low density area of the color space.

【0047】かかる構成とすれば、正規化処理を介して
色補正データの補間演算をする際に生じる誤差による画
質の低下を抑えることができる。カラー画像データは色
空間の各次元ごとに所定の階調数に対応した整数からな
る座標値を有しているが、不均一な格子点間隔で分割さ
れた色空間に前記正規化手段による座標変換を施した場
合、カラー画像データの座標値は整数値ではない可能性
がある。ここで、オフセット補正テーブルは、整数で表
された座標値に対応して用意されているため、座標変換
後のカラー画像データを整数値に丸める必要があり、こ
のときいわゆる丸め誤差を生じることになる(上記座標
変換および整数化をまとめて、以下、「正規化処理」と
いう)。前述の通り、この誤差は、低濃度領域で画質を
低下させる原因ともなる。しかし、上記構成によれば、
色空間の低濃度領域においては、格子点の間隔と仮想格
子点間隔との比(仮想格子点間隔/格子点間隔)が必ず
整数となるため、正規化処理を行っても丸め誤差を生じ
ず、良好な画質を得ることができる。
With this configuration, it is possible to suppress a decrease in image quality due to an error that occurs when performing interpolation calculation of color correction data through normalization processing. The color image data has coordinate values composed of integers corresponding to a predetermined number of gradations for each dimension of the color space. When the conversion is performed, the coordinate values of the color image data may not be integer values. Here, since the offset correction table is prepared corresponding to the coordinate value represented by an integer, it is necessary to round the color image data after the coordinate conversion to an integer value, which causes a so-called rounding error. (The coordinate conversion and integer conversion are collectively referred to as “normalization processing” below). As described above, this error causes the image quality to deteriorate in the low density area. However, according to the above configuration,
In the low-density region of the color space, the ratio between the grid point interval and the virtual grid point interval (virtual grid point interval / grid point interval) is always an integer, so that even if the normalization processing is performed, no rounding error occurs, Good image quality can be obtained.

【0048】ここで、本発明における低濃度領域とは、
出力された画像の色が薄い領域という意味ではなく、画
像出力装置に出力されるドットの密度が低い領域を言
う。例えば、最終的な画像の出力がドットのオン・オフ
により階調を表現するインクジェットプリンタである場
合には、CMYなどのインクのドットの密度か低い領域
を言う。また、出力装置がCRT等である場合には、白
ドットに着目すれば白ドットがまばらに分布する領域
(色が濃い領域)であり、黒ドットに着目すれば黒ドッ
トがまばらに分布する領域(色が薄い領域)である。ま
た、同一色について濃度の高いインクと濃度の低いイン
クを備え、濃ドットと淡ドットを打ち分けるようなプリ
ンタであれば、淡ドットがまばらに分布する領域(色が
薄い領域)のみならず、濃ドットがまばらに分布する領
域(色が濃い領域)も、そのインクについての低濃度領
域に該当する。
Here, the low concentration region in the present invention is defined as
This does not mean an area where the color of the output image is light, but an area where the density of dots output to the image output device is low. For example, when the final image output is an ink jet printer that expresses a gradation by turning on and off dots, it refers to a region where the density of ink dots such as CMY is low. When the output device is a CRT or the like, an area where white dots are sparsely distributed (a dark color area) when attention is paid to white dots, and an area where black dots are sparsely distributed when attention is paid to black dots. (Light-colored area). In addition, if a printer is provided with high-density ink and low-density ink for the same color and separates dark dots and light dots, not only areas where light dots are sparsely distributed (areas with light colors), An area where dark dots are sparsely distributed (a dark area) also corresponds to a low-density area for the ink.

【0049】また、前記正規化処理を伴う画像処理装置
においては、前記画像データ変換手段は、前記カラー画
像データに応じて、該カラー画像データが属する小格子
についてその基準となる基準格子点の座標値を記憶する
基準格子点テーブルと、前記カラー画像データに応じ
て、前記各次元について該カラー画像データと該基準格
子点の座標値との偏差を前記正規化手段により変換され
た座標において表すオフセット座標値とを記憶するオフ
セット座標テーブルとのうち少なくとも一方を備え、前
記カラー画像データから基準格子点の座標値およびオフ
セット座標値への変換の少なくとも一方を、前記カラー
画像データに対応したデータを該基準格子点テーブルも
しくは該オフセット座標テーブルから読み込むことによ
り行う手段とすることも望ましい。
In the image processing apparatus having the normalization processing, the image data converting means may determine, based on the color image data, coordinates of a reference grid point serving as a reference for a small grid to which the color image data belongs. A reference grid point table for storing values, and an offset representing a deviation between the color image data and the coordinate value of the reference grid point in the coordinates converted by the normalization means for each dimension according to the color image data. And at least one of an offset coordinate table for storing coordinate values, and converting at least one of the conversion from the color image data to the coordinate values of the reference grid points and the offset coordinate values to data corresponding to the color image data. Means for reading from the reference grid point table or the offset coordinate table. It is also desirable.

【0050】前記正規化処理を伴う場合には、正規化処
理における演算が複雑なものとなり、画像処理を高速で
実行する際の妨げとなる可能性がある。例えば、カラー
画像データがいずれの小格子に属しているかを判定する
ために、各次元ごとにカラー画像データの座標値と格子
点の座標値との大小関係を一つ一つ比較する必要があ
る。また、正規化されたオフセット座標値を得る際に、
座標値を整数にする丸め処理を行う必要もある。上記構
成によれば、正規化処理に伴うこれらの処理を基準格子
点テーブルおよびオフセット座標テーブルを参照するこ
とで実行できるため、画像処理を高速で実施することが
できる。
When the above-described normalization process is involved, the calculation in the normalization process becomes complicated, which may hinder image processing at high speed. For example, in order to determine which small grid the color image data belongs to, it is necessary to compare the magnitude relationship between the coordinate values of the color image data and the grid points one by one for each dimension. . Also, when obtaining the normalized offset coordinate values,
It is also necessary to perform a rounding process for converting the coordinate values to integers. According to the above configuration, since these processes accompanying the normalization process can be executed by referring to the reference grid point table and the offset coordinate table, image processing can be performed at high speed.

【0051】なお、処理の高速化の観点からは、基準格
子点テーブルおよびオフセット座標テーブルの双方を有
していることが望ましいが、これらのデータを記憶する
メモリ容量に応じて、いずれか一方のテーブルのみを用
意するものとしてもよい。また、これらのテーブルは、
色空間の全ての次元について用意することが望ましい
が、一部の次元についてのみ用意するものとしてもよい
し、複数の次元で共有のテーブルとしてもよい。
From the viewpoint of speeding up the processing, it is desirable to have both the reference grid point table and the offset coordinate table, but depending on the memory capacity for storing these data, one of them is required. Only a table may be prepared. Also, these tables
Although it is desirable to prepare for all the dimensions of the color space, it may be prepared for only some of the dimensions, or a table shared by a plurality of dimensions may be used.

【0052】また、本発明は以下に示す通り、コンピュ
ータプログラム等を記録したコンピュータ読みとり可能
な記録媒体としての態様を採ることもできる。本発明の
第1の記録媒体は、2次元以上の色空間において各次元
ごとに予め定めた階調数に対応した座標値を用いて表さ
れた多色の画像を色補正して出力する画像処理をコンピ
ュータに実現させるプログラムを記録したコンピュータ
読みとり可能な記録媒体であって、前記画像の各画素に
ついて、前記座標値からなるカラー画像データを入力す
る機能と、前記色空間を前記各次元について、前記階調
数よりも少ない数に分割することにより得られた格子点
の座標値からなる格子点情報を、前記色空間について記
憶した格子点情報テーブルを参照する機能と、該各格子
点に対応して、色の補正量に関する色補正データを記憶
した色補正テーブルを参照する機能と、隣接する前記格
子点によって前記次元に対応して形成される複数の小格
子のうち、前記カラー画像データがいずれの小格子に属
するかを、前記格子点情報に基づいて判定する機能と、
前記カラー画像データを、該カラー画像データが属する
小格子についてその基準となる基準格子点の座標値と、
前記各次元について該カラー画像データと該基準格子点
の座標値との偏差を表すオフセット座標値とに変換する
機能と、前記色補正テーブルを補間して前記カラー画像
データに対応する色補正データを演算する際に必要とな
る補間演算データとして、該補間演算に用いられる所定
の格子点を前記基準格子点との相対的な関係で特定する
格子点特定データと、該補間演算において前記所定の格
子点に対応して記憶された色補正データに乗ぜられる重
み係数データとを含むデータを前記オフセット座標値に
対応して記憶するオフセット補正テーブルを参照する機
能と、前記オフセット座標値に対応した補間演算データ
を前記オフセット補正テーブルから読み出すとともに、
前記基準格子点および該基準格子点に隣接する所定の格
子点に対応した色補正データを前記色補正テーブルから
読み出し、該補間演算データを用いて該色補正データの
補間演算を行い、該演算結果を補正済みのカラー画像デ
ータとして出力する機能とをコンピュータにより実現さ
せるプログラムを記録した記録媒体である。
Further, as shown below, the present invention may take an embodiment as a computer-readable recording medium on which a computer program or the like is recorded. The first recording medium of the present invention is an image for performing color correction on a multicolor image represented by using coordinate values corresponding to a predetermined number of gradations for each dimension in a two-dimensional or more color space, and outputting the image. A computer-readable recording medium that records a program that causes a computer to perform the processing, and for each pixel of the image, a function of inputting color image data including the coordinate values, and the color space for each of the dimensions. A function of referencing a grid point information table stored for the color space with grid point information comprising coordinate values of grid points obtained by dividing the grid point into a number smaller than the number of gradations, and corresponding to each grid point. A function of referring to a color correction table storing color correction data relating to a color correction amount; and a function of referring to a plurality of small grids formed corresponding to the dimension by the adjacent grid points. It belongs to a small grid of any said color image data, a function of determining, based on the lattice point information,
The color image data, the coordinate value of a reference grid point as a reference for the small grid to which the color image data belongs,
A function of converting the color image data into an offset coordinate value representing a deviation between the coordinate value of the reference grid point and the color correction data corresponding to the color image data by interpolating the color correction table; The interpolation calculation data necessary for the calculation includes a predetermined value used for the interpolation calculation.
Grid point is specified by a relative relation with the reference grid point.
Grid point specifying data and the predetermined case in the interpolation calculation.
Weight multiplied by the color correction data stored corresponding to the child point
A function of referring to an offset correction table that stores data including only coefficient data in correspondence with the offset coordinate value, and reading out interpolation calculation data corresponding to the offset coordinate value from the offset correction table,
The color correction data corresponding to the reference grid point and a predetermined grid point adjacent to the reference grid point is read from the color correction table, and the color correction data is subjected to an interpolation calculation using the interpolation calculation data. And a function of outputting as corrected color image data by a computer.

【0053】このような記録媒体に記録されたプログラ
ムがコンピュータにより実行されると、コンピュータが
上記各機能を実現する結果、先に述べた画像処理を行う
ことができる。なお、記録媒体としては、フレキシブル
ディスクやCD−ROM、光磁気ディスク、ICカー
ド、ROMカートリッジ、パンチカード、バーコードな
どの符号が印刷された印刷物、コンピュータの内部記憶
装置(RAMやROMなどのメモリ)および外部記憶装
置等の、コンピュータが読取り可能な種々の媒体を利用
できる。また、コンピュータに上記の発明の各工程また
は各手段の機能を実現させるコンピュータプログラムを
通信経路を介して供給するプログラム供給装置としての
態様とすることもできる。
When the program recorded on such a recording medium is executed by a computer, the computer realizes each of the above functions, and as a result, can perform the above-described image processing. Examples of the recording medium include a flexible disk, a CD-ROM, a magneto-optical disk, an IC card, a ROM cartridge, a punched card, a printed matter on which a code such as a barcode is printed, and an internal storage device of a computer (a memory such as a RAM or a ROM). And various computer-readable media such as external storage devices). The present invention can also be configured as a program supply device that supplies, via a communication path, a computer program that causes a computer to realize the functions of each step or each unit of the above invention.

【0054】本発明の第2の記録媒体は、2次元以上の
色空間において各次元ごとに予め定めた階調数に対応し
た座標値を用いて表された多色の画像を、前記色空間を
分割して得られる格子点に対応して用意された所定のデ
ータを用いることにより、色補正して出力する画像処理
装置に用いられるデータを記録したコンピュータ読みと
り可能な記録媒体であって、2次元以上の色空間の各次
元を、各次元ごとに予め定めた階調数よりも少ない数に
分割することにより得られた格子点の座標値からなる格
子点情報を、前記色空間について記憶した格子点情報テ
ーブルと、該各格子点に対応して、色の補正量に関する
色補正データを記憶した色補正テーブルと、前記色補正
テーブルを補間して前記カラー画像データに対応する色
補正データを演算する際に必要となる補間演算データ
を、前記カラー画像データに隣接する前記格子点によっ
て前記色空間の次元に対応して形成される小格子の基準
となる基準格子点の座標値に対する該カラー画像データ
の偏差を前記各次元について表したオフセット座標値に
対応して記憶するオフセット補正テーブルとを記録した
記録媒体である。
According to the second recording medium of the present invention, a multicolor image represented by using coordinate values corresponding to a predetermined number of gradations for each dimension in a color space of two or more dimensions is converted into the color space. Is a computer-readable recording medium on which data used in an image processing apparatus for performing color correction and outputting by using predetermined data prepared corresponding to grid points obtained by dividing Grid point information consisting of coordinate values of grid points obtained by dividing each dimension of the color space of dimensions or more into smaller numbers than the predetermined number of gradations for each dimension was stored for the color space. A grid point information table, a color correction table storing color correction data relating to a color correction amount corresponding to each grid point, and a color correction data corresponding to the color image data by interpolating the color correction table. Calculation The interpolation calculation data required when the color image data is coordinated with the coordinate values of a reference grid point serving as a reference of a small grid formed in correspondence with the dimensions of the color space by the grid points adjacent to the color image data. An offset correction table for storing a deviation of data in correspondence with an offset coordinate value represented for each dimension.

【0055】先に述べた通り、本発明の画像処理装置
は、上記格子点情報テーブル、色補正テーブルおよびオ
フセット補正テーブルを使用してカラー画像データの色
補正を行う。これらのデータが上述した本発明の第2の
記録媒体の形式て提供される場合には、コンピュータは
該データを読み込むことにより、画像処理装置としての
機能を実現することができる。
As described above, the image processing apparatus of the present invention performs color correction of color image data using the grid point information table, the color correction table, and the offset correction table. When the data is provided in the form of the above-described second recording medium of the present invention, the computer can realize the function as the image processing apparatus by reading the data.

【0056】なお、この記録媒体に記録されるデータの
うち、オフセット補正テーブルは、画像処理に用いられ
るデータとして本出願人が初めて提供する特殊な構造を
有するデータである。また、格子点情報テーブルおよび
色補正テーブル自身は従来より画像処理において用いら
れてきたものではあるが、本発明においては、オフセッ
ト補正データと非常に密接なものである。従って、これ
らのデータを記録した本発明の第2の記録媒体は、単に
既存のデータを記録したものではなく、本発明において
最も特徴的な部分を特殊な構造を有するデータとして記
録したものである。
Among the data recorded on this recording medium, the offset correction table is data having a special structure provided by the present applicant for the first time as data used for image processing. Although the grid point information table and the color correction table themselves have been used in image processing, they are very close to the offset correction data in the present invention. Therefore, the second recording medium of the present invention in which these data are recorded is not merely a recording of existing data, but a recording of the most characteristic part in the present invention as data having a special structure. .

【0057】前記記録媒体においては、前記色補正テー
ブルに記憶された色補正データのデータ量と前記オフセ
ット補正テーブルに記憶された補間演算データのデータ
量とが略同一であることが望ましい。こうすることによ
り、色補正テーブルとオフセット補正テーブルのデータ
量を略同一のサイズで記憶するものであるため、先に述
べた通り記録容量を最小限に抑えることができる。上記
記録媒体によれば、いわゆるフレキシブルディスクのよ
うに、記録容量が比較的小さい値に制限されている媒体
も有効に活用することができる。
In the recording medium, it is desirable that the data amount of the color correction data stored in the color correction table and the data amount of the interpolation calculation data stored in the offset correction table are substantially the same. By doing so, since the data amounts of the color correction table and the offset correction table are stored with substantially the same size, the recording capacity can be minimized as described above. According to the recording medium, a medium whose recording capacity is limited to a relatively small value, such as a so-called flexible disk, can be effectively used.

【0058】本発明における補間演算は、装置の制御処
理以外にも幅広く適用することが可能である。従って、
本発明は、コンピュータを用いてより汎用的に補間演算
を行う補間方法の発明として構成することもできる。つ
まり、本発明の補間方法は、予め定めた一連の処理にお
いて用いられ、所定次元の座標空間に離散的に存在する
格子点に対応して記憶された装置の制御処理に関与する
パラメータを、コンピュータを用いて前記座標値の組み
合わせに応じて補間するデータ補間方法であって、 (a) 前記座標空間の前記各次元ごとに離散的に設定
された座標値の組み合わせによって定義される格子点に
ついて、該座標値の組み合わせからなる格子点情報を記
憶した格子点情報テーブルと、前記各格子点に対応して
前記パラメータを記憶した被補間テーブルと、前記被補
間テーブルを補間して前記入力データに対応する値を演
算する際に必要となる補間演算データを前記オフセット
座標値に対応して記憶する、前記小格子の数よりも少な
い種類のオフセット補正テーブルとを前記コンピュータ
のメモリ空間上に予め用意する工程と、 (b) 前記座標空間において、前記各次元ごとに予め
有限個に設定された座標値の組み合わせからなる入力デ
ータを入力する工程と、 (c) 隣接する前記格子点によって前記次元で形成さ
れる複数の小格子のうち、前記入力データがいずれの小
格子に属するかを、前記格子点情報に基づいて判定する
工程と、 (d) 前記入力データを、該入力データが属する小格
子の格子点のうち基準となる基準格子点の座標値と、前
記各次元について該入力データと該基準格子点の座標値
との偏差を表すオフセット座標値とに変換する工程と、 (e) 前記オフセット座標値に対応した補間演算デー
タを前記オフセット補正テーブルから読み出すととも
に、前記基準格子点および該基準格子点に隣接する所定
の格子点に対応した前記パラメータを前記被補間テーブ
ルから読み出し、前記補間演算データを用いて該被補間
データの補間演算を行う工程とを備え、前記補間演算デ
ータは、前記補間演算に用いられる所定の格子点を前記
基準格子点との相対的な関係で特定する格子点特定デー
タと、前記補間演算において前記被補間データに乗ぜら
れる重み係数データとを含むデータである補間方法であ
る。
The interpolation operation in the present invention can be widely applied to other than the control processing of the apparatus. Therefore,
The present invention can also be configured as an invention of an interpolation method for performing a general-purpose interpolation operation using a computer. In other words, the interpolation method of the present invention is used in a series of predetermined processes, and stores parameters related to the control process of the device, which are stored in correspondence with grid points discretely existing in a predetermined dimensional coordinate space, on a computer. (A) a grid point defined by a combination of coordinate values discretely set for each of the dimensions of the coordinate space, A grid point information table storing grid point information including a combination of the coordinate values, an interpolated table storing the parameters corresponding to the respective grid points, and interpolating the interpolated table to correspond to the input data. The number of types of offsets smaller than the number of the small grids, in which interpolation calculation data required when calculating the value to be stored is stored corresponding to the offset coordinate value. (B) inputting input data consisting of a combination of a finite number of coordinate values set in advance for each of the dimensions in the coordinate space; (C) determining, based on the grid point information, to which of the plurality of small grids formed in the dimension by the adjacent grid points the input data belongs, based on the grid point information; An offset representing the deviation between the coordinate value of the reference grid point serving as a reference among the grid points of the small grid to which the input data belongs and the coordinate value of the input data and the coordinate value of the reference grid point for each dimension. (E) reading interpolation calculation data corresponding to the offset coordinate value from the offset correction table, Reading the parameters corresponding to a predetermined lattice points adjoining to the reference lattice point from said target interpolation table, and a step of performing interpolation calculation該被interpolated data by using the interpolation operation data, the interpolation operation de
A predetermined grid point used for the interpolation
Grid point specifying data specified by the relative relationship with the reference grid point
Multiplying the interpolated data in the interpolation calculation.
This is an interpolation method which is data including weight coefficient data .

【0059】かかる補間方法によれば、先に制御方法等
で説明した作用に基づき、コンピュータのハードウェア
資源を有効に活用して、高速で補間演算を実行すること
ができる。当然、これらの補間方法を実現するプログラ
ムを記録した記録媒体として、発明を構成することも可
能である。
According to such an interpolation method, the interpolation operation can be executed at high speed by effectively utilizing the hardware resources of the computer based on the operation described in the control method and the like. Naturally, the invention can be configured as a recording medium on which a program for realizing these interpolation methods is recorded.

【0060】[0060]

【発明の実施の形態】以下、本発明の実施の形態を実施
例に基づいて説明する。最初に本発明のデータ補間装置
をカラー画像処理装置に適用した場合を例にとって説明
する。図1は、本発明の実施例としてのカラー画像処理
装置が行う色補正データの補間方法の概要を示す説明図
であり、図2は該カラー画像処理装置を用いたカラー画
像処理システムの構成を示すブロック図である。 (1)画像出力装置の構成:説明の便宜上、まず図2を
用いてカラー画像処理システムの全体構成から説明す
る。このカラー画像処理システムは、画像入力装置とし
てのスキャナ12と、パーソナルコンピュータ90と、
画像出力装置としてのカラープリンタ22とを有してい
る。また、パーソナルコンピュータ90は、カラーディ
スプレイ21とキーボード、マウス等からなる入力部9
2を備えている。画像入力装置としてのスキャナ12
は、カラー原稿からカラー画像データを読み取り、R,
G,Bの3色の色成分からなる原カラー画像データOR
Gをコンピュータ90に供給する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below based on examples. First, an example in which the data interpolation apparatus of the present invention is applied to a color image processing apparatus will be described. FIG. 1 is an explanatory diagram showing an outline of a color correction data interpolation method performed by a color image processing apparatus as an embodiment of the present invention, and FIG. 2 shows a configuration of a color image processing system using the color image processing apparatus. FIG. (1) Configuration of Image Output Device: For convenience of description, the overall configuration of a color image processing system will be described first with reference to FIG. The color image processing system includes a scanner 12 as an image input device, a personal computer 90,
A color printer 22 as an image output device. The personal computer 90 includes a color display 21 and an input unit 9 including a keyboard, a mouse, and the like.
2 is provided. Scanner 12 as image input device
Reads color image data from a color original,
Original color image data OR consisting of three color components of G and B
G is supplied to the computer 90.

【0061】なお、本実施例では、R,G,Bの各色
は、各8ビットのディジタルデータで表現されており、
階調数は256である。各画素の色は、R,G,Bの各
色を座標軸とする三次元の色空間内の存在位置を示す座
標値により表現されている。なお、色空間が他の形式、
例えばL*a*b*などいかなる表色系を採用しても、
各画素の色は、その色空間内の存在位置を示す座標値と
して表現することができる。画像処理装置としてのコン
ピュータ90は、各画素毎にこのように表された座標値
をカラー画像データとして入力する。なお、カラー画像
データの入力は、このようなスキャナ12以外に、例え
ば、ビデオカメラ、コンピュータグラフィック作成用の
ホストコンピュータ、その他の手段を用いるものとして
もよい。
In this embodiment, each color of R, G, B is represented by 8-bit digital data.
The number of gradations is 256. The color of each pixel is represented by a coordinate value indicating an existing position in a three-dimensional color space using the R, G, and B colors as coordinate axes. Note that the color space is in other formats,
For example, even if any color system such as L * a * b * is adopted,
The color of each pixel can be represented as a coordinate value indicating a position in the color space. The computer 90 as an image processing device inputs the coordinate values represented in each pixel as color image data. The input of the color image data may use, for example, a video camera, a host computer for creating computer graphics, or other means in addition to the scanner 12.

【0062】次に、画像処理装置を構成するコンピュー
タ90の概略について説明する。このコンピュータ90
の内部には、図示しないCPU,RAM,ROM等が備
えられており、所定のオペレーティングシステムの元
で、アプリケーションプログラム95が動作している。
本実施例では、CPUとしてPentiumII(In
tel社登録商標)を用いている。オペレーティングシ
ステムには、ビデオドライバ91やプリンタドライバ9
6が組み込まれており、アプリケーションプログラム9
5からはこれらのドライバを介して、最終カラー画像デ
ータFNLが出力されることになる。画像のレタッチな
どを行うアプリケーションプログラム95は、スキャナ
12から画像を読み込み、これに対して所定の処理を行
いつつビデオドライバ91を介してCRTディスプレイ
21に画像を表示している。このアプリケーションプロ
グラム95が、印刷命令を発行すると、コンピュータ9
0のプリンタドライバ96が、画像情報をアプリケーシ
ョンプログラム95から受け取り、これをプリンタ22
が印字可能な信号(ここではCMYについての2値化さ
れた信号)に変換している。
Next, the outline of the computer 90 constituting the image processing apparatus will be described. This computer 90
Are provided with a CPU, a RAM, a ROM, and the like (not shown), and an application program 95 operates under a predetermined operating system.
In the present embodiment, Pentium II (In
tel). The operating system includes a video driver 91 and a printer driver 9.
6 is incorporated and an application program 9
5, the final color image data FNL is output via these drivers. An application program 95 for retouching an image reads an image from the scanner 12 and displays the image on the CRT display 21 via the video driver 91 while performing predetermined processing on the image. When the application program 95 issues a print command, the computer 9
0 receives the image information from the application program 95 and sends it to the printer 22.
Is converted into a printable signal (here, a binarized signal for CMY).

【0063】図2に示した例では、プリンタドライバ9
6の内部には、アプリケーションプログラム95が扱っ
ているカラー画像データをドット単位の画像データに変
換するラスタライザ97、ドット単位の画像データに対
して画像出力装置(ここではプリンタ22)が使用する
インク色CMYおよび発色の特性に応じた色補正を行う
色補正モジュール98、色補正モジュール98が参照す
る色補正テーブルCTおよびオフセット補正テーブルO
T、色補正された後の画像情報からドット単位でのイン
クの有無によってある面積での濃度を表現するいわゆる
ハーフトーンの画像情報を生成するハーフトーンモジュ
ール99が備えられている。
In the example shown in FIG. 2, the printer driver 9
6, a rasterizer 97 that converts color image data handled by the application program 95 into dot-based image data, and an ink color used by an image output device (here, the printer 22) for the dot-based image data. A color correction module 98 that performs color correction according to CMY and color development characteristics, and a color correction table CT and an offset correction table O referenced by the color correction module 98
T, a halftone module 99 is provided that generates so-called halftone image information that expresses density in a certain area based on the presence or absence of ink in dot units from the image information after color correction.

【0064】コンピュータ90は、入力された原カラー
画像データORGをプリンタ22等の画像出力装置の色
再現特性に合わせる画像処理として、色補正と階調数変
換を行っている。色補正は、例えばガンマ補正など、画
像出力装置の出力特性に併せて色を補正する処理であ
る。また、階調数変換とは、プリンタ22等の画像出力
装置の出力可能な階調数が原カラー画像データORGの
階調数よりも小さい場合に、カラー画像データを画像出
力装置で出力可能な階調数に変換する処理である。本実
施例ではスキャナ12から読み込んだ画像データORG
はR,G,Bの各色について階調数が256(8ビット
分)であるが、対するプリンタ22はインクのオン・オ
フにより2階調しか出力できないインクジェットプリン
タであるため、コンピュータ90は、256階調の画像
データを2階調に階調数変換し、最終カラー画像データ
FNLとして画像出力装置へ向け出力する。なお、画像
出力装置としては、プリンタ22以外に、例えばカラー
ディスプレイ21等も用いるものとしてもよい。本明細
書におけるデータ補間装置には、図2における色補正モ
ジュール98、色補正テーブルCT、オフセット補正テ
ーブルOTおよび図示していないが色補正モジュールへ
のデータ入出力部が相当する。
The computer 90 performs color correction and gradation conversion as image processing for matching the input original color image data ORG with the color reproduction characteristics of an image output device such as the printer 22. The color correction is a process of correcting a color according to the output characteristics of the image output device, such as gamma correction. Further, the gradation number conversion means that if the number of gradations that can be output by an image output device such as the printer 22 is smaller than the number of gradations of the original color image data ORG, the color image data can be output by the image output device. This is a process of converting into the number of gradations. In this embodiment, the image data ORG read from the scanner 12 is read.
Has 256 gradations (8 bits) for each of the colors R, G, and B. On the other hand, since the printer 22 is an inkjet printer that can output only two gradations by turning on and off the ink, the computer 90 has 256 colors. The image data of the gradation is converted into two gradations and output as final color image data FNL to the image output device. As the image output device, for example, a color display 21 or the like may be used in addition to the printer 22. The data interpolation device in this specification corresponds to the color correction module 98, the color correction table CT, the offset correction table OT, and a data input / output unit to the color correction module (not shown) in FIG.

【0065】次に、画像出力装置であるプリンタ22の
構造について簡単に説明する。図3は、プリンタ22の
概略構成図である。図示するように、このプリンタ22
は、紙送りモータ23によって用紙Pを搬送する機構
と、キャリッジモータ24によってキャリッジ31をプ
ラテン26の軸方向に往復動させる機構と、キャリッジ
31に搭載された印字ヘッド28を駆動してインクの吐
出およびドット形成を制御する機構と、これらの紙送り
モータ23,キャリッジモータ24,印字ヘッド28お
よび操作パネル32との信号のやり取りを司る制御回路
40とから構成されている。
Next, the structure of the printer 22 as an image output device will be briefly described. FIG. 3 is a schematic configuration diagram of the printer 22. As shown in FIG.
Is a mechanism for transporting the paper P by the paper feed motor 23, a mechanism for reciprocating the carriage 31 in the axial direction of the platen 26 by the carriage motor 24, and a mechanism for driving the print head 28 mounted on the carriage 31 to eject ink. And a mechanism for controlling dot formation, and a control circuit 40 for controlling the exchange of signals with the paper feed motor 23, carriage motor 24, print head 28 and operation panel 32.

【0066】このプリンタ22のキャリッジ31には、
黒インク用のカートリッジ71とシアン(以下、Cと記
す),マゼンタ(以下、Mと記す),イエロ(以下、Y
と記す)の3色のインクを収納したカラーインク用カー
トリッジ72が搭載可能である。キャリッジ31の下部
の印字ヘッド28には計4個のインク吐出用ヘッド61
ないし64が形成されており、キャリッジ31の底部に
は、この各色用ヘッドにインクタンクからのインクを導
く導入管65(図4参照)が立設されている。キャリッ
ジ31に黒インク用のカートリッジ71およびカラーイ
ンク用カートリッジ72を上方から装着すると、各カー
トリッジに設けられた接続孔に導入管が挿入され、各イ
ンクカートリッジから吐出用ヘッド61ないし64への
インクの供給が可能となる。
The carriage 31 of the printer 22 includes
Black ink cartridge 71 and cyan (hereinafter, referred to as C), magenta (hereinafter, referred to as M), yellow (hereinafter, referred to as Y)
) Can be mounted with a color ink cartridge 72 containing three color inks. The print head 28 below the carriage 31 has a total of four ink ejection heads 61.
In addition, an inlet pipe 65 (see FIG. 4) for guiding ink from the ink tank to each color head is provided upright at the bottom of the carriage 31. When a black ink cartridge 71 and a color ink cartridge 72 are mounted on the carriage 31 from above, an inlet tube is inserted into a connection hole provided in each cartridge, and ink from the ink cartridge to the ejection heads 61 to 64 is inserted. Supply becomes possible.

【0067】インクが吐出される機構を簡単に説明す
る。図4に示すように、インク用カートリッジ71,7
2がキャリッジ31に装着されると、毛細管現象を利用
してインク用カートリッジ内のインクが導入管65を介
して吸い出され、キャリッジ31下部に設けられた印字
ヘッド28の各色ヘッド61ないし64に導かれる。な
お、初めてインクカートリッジが装着されたときには、
専用のポンプによりインクを各色ヘッド61ないし64
に吸引する動作が行われるが、本実施例では吸引のため
のポンプ、吸引時に印字ヘッド28を覆うキャップ等の
構成については図示および説明を省略する。
The mechanism for ejecting ink will be briefly described. As shown in FIG. 4, the ink cartridges 71, 7
When the cartridge 2 is mounted on the carriage 31, the ink in the ink cartridge is sucked out through the introduction pipe 65 by utilizing the capillary phenomenon, and is sent to the respective color heads 61 to 64 of the print head 28 provided below the carriage 31. Be guided. When the ink cartridge is installed for the first time,
Ink is supplied to each color head 61 to 64 by a dedicated pump.
In the present embodiment, illustration and description of the structure of a pump for suction, a cap for covering the print head 28 at the time of suction, and the like are omitted.

【0068】各色ヘッド61ないし64には、図4に示
したように、各色毎に32個のノズルNzが設けられて
おり、各ノズル毎に電歪素子の一つであって応答性に優
れたピエゾ素子PEが配置されている。ピエゾ素子PE
とノズルNzとの構造を詳細に示したのが、図5であ
る。図示するように、ピエゾ素子PEは、ノズルNzま
でインクを導くインク通路68に接する位置に設置され
ている。ピエゾ素子PEは、周知のように、電圧の印加
により結晶構造が歪み、極めて高速に電気−機械エネル
ギの変換を行う素子である。本実施例では、ピエゾ素子
PEの両端に設けられた電極間に所定時間幅の電圧を印
加することにより、図5下段に示すように、ピエゾ素子
PEが電圧の印加時間だけ伸張し、インク通路68の一
側壁を変形させる。この結果、インク通路68の体積
は、ピエゾ素子PEの伸張に応じて収縮し、この収縮分
に相当するインクが、粒子Ipとなって、ノズルNzの
先端から高速に吐出される。このインク粒子Ipがプラ
テン26に装着された用紙Pに染み込むことにより、印
刷が行われることになる。
As shown in FIG. 4, each of the color heads 61 to 64 is provided with 32 nozzles Nz for each color. Each of the nozzles is one of the electrostrictive elements and has excellent responsiveness. The piezo element PE is disposed. Piezo element PE
FIG. 5 shows the structure of the nozzle Nz in detail. As shown in the drawing, the piezo element PE is installed at a position in contact with an ink passage 68 that guides ink to the nozzle Nz. As is well known, the piezo element PE is an element that distorts the crystal structure due to the application of a voltage and converts electro-mechanical energy very quickly. In the present embodiment, by applying a voltage having a predetermined time width between the electrodes provided at both ends of the piezo element PE, the piezo element PE expands by the voltage application time as shown in the lower part of FIG. One side wall 68 is deformed. As a result, the volume of the ink passage 68 contracts in accordance with the expansion of the piezo element PE, and the ink corresponding to the contraction is discharged as particles Ip at a high speed from the tip of the nozzle Nz. When the ink particles Ip soak into the paper P mounted on the platen 26, printing is performed.

【0069】用紙Pを搬送する機構は、紙送りモータ2
3の回転をプラテン26のみならず、図示しない用紙搬
送ローラに伝達するギヤトレインを備える(図示省
略)。また、キャリッジ31を往復動させる機構は、プ
ラテン26の軸と並行に架設されキャリッジ31を摺動
可能に保持する摺動軸34と、キャリッジモータ24と
の間に無端の駆動ベルト36を張設するプーリ38と、
キャリッジ31の原点位置を検出する位置検出センサ3
9等から構成されている。
The mechanism for transporting the paper P is a paper feed motor 2
A gear train (not shown) for transmitting the rotation of No. 3 not only to the platen 26 but also to a paper transport roller (not shown) is provided. The mechanism for reciprocating the carriage 31 includes an endless drive belt 36 extending between the carriage motor 24 and a slide shaft 34 erected in parallel with the axis of the platen 26 and slidably holding the carriage 31. Pulley 38,
Position detection sensor 3 for detecting the origin position of carriage 31
9 and so on.

【0070】以上説明したハードウェア構成を有するプ
リンタ22は、紙送りモータ23によりプラテン26そ
の他のローラを回転して用紙Pを搬送しつつ、キャリッ
ジ31をキャリッジモータ24により往復動させ、同時
に印字ヘッド28の各色ヘッド61ないし64のピエゾ
素子PEを駆動して、各色インクの吐出を行い、用紙P
上に多色の画像を形成する。
In the printer 22 having the hardware configuration described above, the carriage 31 is reciprocated by the carriage motor 24 while the paper P is conveyed by rotating the platen 26 and other rollers by the paper feed motor 23, and at the same time, the print head By driving the piezo elements PE of the respective color heads 61 to 64 to discharge the respective color inks, the paper P
A multicolor image is formed on top.

【0071】制御回路40の内部には、図示しないCP
Uなどが備えられているが、プリンタ22の出力特性に
応じた色補正などは、コンピュータ90内部で処理され
ており、プリンタ22では、階調数の変換や色補正など
に関する処理は一切行われていない。プリンタ22の内
部で実行される処理は、コンピュータ90から出力され
るデータを受け取って、上述した紙送りとキャリッジ3
1の往復動作に同期して、印字ヘッド28の各色ピエゾ
素子PEを駆動するだけである。したがって、プリンタ
22の制御回路40の詳細な説明やその処理について
は、説明を省略する。もっとも、コンピュータ90内部
で実行する種々の処理をプリンタ22の制御回路40に
備えられるCPUで行うものとしてもよい。
The control circuit 40 includes a CP (not shown)
U, etc., but color correction according to the output characteristics of the printer 22 is processed inside the computer 90, and the printer 22 does not perform any processing related to conversion of the number of tones, color correction, etc. Not. The processing executed inside the printer 22 is performed by receiving data output from the computer 90 and performing the above-described paper feed and carriage 3 operation.
Only the piezo elements PE of each color of the print head 28 are driven in synchronization with one reciprocating operation. Accordingly, a detailed description of the control circuit 40 of the printer 22 and its processing will not be repeated. However, various processes executed in the computer 90 may be performed by a CPU provided in the control circuit 40 of the printer 22.

【0072】(2)画像処理:次に、画像処理装置によ
る画像処理の内容について説明する。ここで、画像処理
とは、入力されたカラー画像データに対し、色補正テー
ブルCTを用いて各画素ごとに色補正処理を施すことを
いう。本実施例では、色補正テーブルCTの補間演算を
実行することにより色補正処理を行っている。以下で
は、まず本実施例で行っている補間演算の概要について
説明する。
(2) Image processing: Next, the contents of image processing by the image processing apparatus will be described. Here, the image processing refers to performing a color correction process on the input color image data for each pixel using the color correction table CT. In the present embodiment, the color correction processing is performed by executing the interpolation calculation of the color correction table CT. Hereinafter, first, an outline of the interpolation calculation performed in the present embodiment will be described.

【0073】図6に本実施例における格子点の様子を示
す。本実施例では、R,G,Bそれぞれ8ビットつまり
256階調からなる3次元の色空間を、各次元ごとに4
ビットつまり16階調の格子点間隔で分割している。従
って、図6に示す通り、それぞれ隣接する格子点により
形成される小格子は、上記格子点間隔を一辺とする立方
体を形成している。図6では図示の都合上、格子点が数
点しか描かれていないが、本実施例では原点を含めて各
次元ごとに17の格子点が存在している。なお、各色の
階調数および格子点間隔は、目的とする画質等に応じて
自由に設定し得るものである。
FIG. 6 shows the state of the lattice points in the present embodiment. In the present embodiment, a three-dimensional color space composed of 8 bits for each of R, G, and B, that is, 256 gradations, is divided into four for each dimension.
It is divided by bits, that is, at grid point intervals of 16 gradations. Therefore, as shown in FIG. 6, the small grids formed by the adjacent grid points form a cube having the grid point interval as one side. Although only a few grid points are shown in FIG. 6 for convenience of illustration, in this embodiment, there are 17 grid points for each dimension including the origin. Note that the number of gradations and the grid point interval of each color can be freely set according to the desired image quality or the like.

【0074】コンピュータ90の内部に保存される色補
正テーブルCTは、図6に示す各格子点に対応して用意
されたテーブルである。この色テーブルには、例えばス
キャナ12などの読み取り用カラー原稿と、例えばカラ
ープリンタ22を用いて記録紙上に印字された出力カラ
ー画像とが等しい色になるように、各格子点のR,G,
Bの階調値データ(座標値データと同義である)をCM
Y色の階調値で表した階調補正データが各格子点ごとに
記憶されている。図6に示す通り、例えば格子点Qに対
しては、(c,m,y)なる3つのデータが用意されて
いる。
The color correction table CT stored inside the computer 90 is a table prepared for each grid point shown in FIG. In this color table, R, G, and R of each grid point are set so that a color document for reading such as the scanner 12 and an output color image printed on recording paper using the color printer 22 have the same color.
Tone value data of B (synonymous with coordinate value data)
The gradation correction data represented by the gradation value of the Y color is stored for each grid point. As shown in FIG. 6, for example, for a grid point Q, three data of (c, m, y) are prepared.

【0075】カラー画像データは、上記色空間内の一点
として表され、図6に示すいずれかの小格子内に存在す
る。カラー画像データが図6に示す格子点と一致するデ
ータ(例えば図6の点Q)である場合には、色補正テー
ブルCTを参照し、その格子点に対応した色補正データ
に置換することで色補正処理が完了するが、カラー画像
データが図6に示す格子点と一致しない場合には(例え
ば図6の点P)、近接する格子点の色補正データを補間
演算することにより色補正処理を実行する必要がある。
The color image data is represented as one point in the color space, and exists in any of the small grids shown in FIG. If the color image data is data that coincides with the grid points shown in FIG. 6 (for example, point Q in FIG. 6), the color correction table CT is referred to and replaced with color correction data corresponding to the grid points. Although the color correction processing is completed, if the color image data does not match the lattice points shown in FIG. 6 (for example, point P in FIG. 6), the color correction processing is performed by interpolating the color correction data of the adjacent lattice points. Need to be run.

【0076】本実施例では、ある小格子内にカラー画像
データが存在する場合、小格子内におけるデータの存在
位置に応じて、その小格子から4つの格子点(四面体)
を選択し、補間演算を行っている(以下、四面体法とい
う)。四面体法を用いているのは、この補間演算方法が
補間精度がよい他、参照する格子点データが少なく、演
算量が少ないため高速で処理することができるからであ
る。補間演算方法については、小格子の全ての格子点を
用いる方法等を適用するものとしてもよい。
In this embodiment, when color image data exists in a certain small grid, four grid points (tetrahedrons) are set from the small grid in accordance with the position of the data in the small grid.
Is selected, and an interpolation operation is performed (hereinafter, referred to as a tetrahedral method). The tetrahedron method is used because the interpolation calculation method has good interpolation accuracy, and since the number of grid point data to be referred to is small and the calculation amount is small, high-speed processing can be performed. As the interpolation calculation method, a method using all grid points of the small grid may be applied.

【0077】図1にカラー画像データの存在位置と補間
演算に用いる四面体の関係を示す。図1の中央に示した
立方体が図6における画像データPを含む小格子を示し
ている。立方体の頂点Kは、小格子の各頂点のうち最も
原点に近い点を示し、頂点R、G、BはそれぞれR方
向、G方向、B方向に一つ移動した格子点を示してい
る。各次元について格子点を原点から順に0,1,2,
・・・の番号で呼ぶものとし(以下、この番号を「格子
点番号」と呼ぶ)、格子点をR方向、G方向、B方向の
座標値(R,G,B)で表すとすれば、図1の立方体の
各頂点の座標値は、格子点間隔D(定数)及び0〜Nの
自然数ir,ig,ibを用いて次式(6)の通り表す
ことができる。 頂点K(ir ,ig ,ib )×D 頂点R(ir+1,ig ,ib )×D 頂点G(ir ,ig+1,ib )×D 頂点B(ir ,ig ,ib+1)×D 頂点Y(ir+1,ig+1,ib )×D 頂点M(ir+1,ig ,ib+1)×D 頂点C(ir ,ig+1,ib+1)×D 頂点W(ir+1,ig+1,ib+1)×D ・・・(6)
FIG. 1 shows the relationship between the location of the color image data and the tetrahedron used for the interpolation operation. The cube shown in the center of FIG. 1 indicates a small grid including the image data P in FIG. The vertex K of the cube indicates the point closest to the origin among the vertices of the small lattice, and the vertices R, G, and B indicate the lattice points moved by one in the R, G, and B directions, respectively. For each dimension, grid points are sequentially assigned from the origin to 0, 1, 2,
(Hereinafter, this number is referred to as “grid point number”), and the grid point is represented by coordinate values (R, G, B) in the R, G, and B directions. The coordinate value of each vertex of the cube in FIG. 1 can be expressed by the following equation (6) using a lattice point interval D (constant) and natural numbers ir, ig, and ib of 0 to N. Vertex K (ir, ig, ib) × D Vertex R (ir + 1, ig, ib) × D Vertex G (ir, ig + 1, ib) × D Vertex B (ir, ig, ib + 1) × D Vertex Y (ir + 1, ig + 1) , Ib) × D Vertex M (ir + 1, ig, ib + 1) × D Vertex C (ir, ig + 1, ib + 1) × D Vertex W (ir + 1, ig + 1, ib + 1) × D (6)

【0078】四面体法では、図1に示す通り小格子を3
つの平面(KGWM、KBWY、KCWR)で区切るこ
とにより6つの四面体(Tetra0〜Tetra5)
に分割する。補間演算では、カラー画像データの存在位
置に応じてこれらの四面体を使い分けるのである。小格
子におけるカラー画像データの存在位置は、小格子の頂
点K(以下、ベースポイントとよぶ)を原点とした座標
値(以下、オフセット座標値という)で表される。カラ
ー画像データの座標値をP(Rd、Gd、Bd)とし、
オフセット座標値を(Roff,Goff,Boff)
とすると、オフセット座標値は、カラー画像データから
ベースポイントKの座標値(ir×D,ig×D,ib
×D)を引けばよいから、次式(7)の通り求められ
る。 Roff=Rd−ir×D Goff=Gd−ig×D Boff=Bd−ib×D ・・・(7) なお、小格子とオフセット座標値の関係を図7に示す。
In the tetrahedron method, as shown in FIG.
Six tetrahedrons (Tetra0 to Tetra5) by dividing by two planes (KGWM, KBWY, KCWR)
Divided into In the interpolation operation, these tetrahedrons are properly used according to the position where the color image data exists. The position where color image data exists in the small grid is represented by a coordinate value (hereinafter, referred to as an offset coordinate value) with the vertex K (hereinafter, referred to as a base point) of the small grid as an origin. Let the coordinate values of the color image data be P (Rd, Gd, Bd)
Set the offset coordinate value to (Roff, Goff, Boff)
Then, the offset coordinate values are calculated from the coordinate values (ir × D, ig × D, ib) of the base point K from the color image data.
× D) can be subtracted, so that it can be obtained as in the following equation (7). Roff = Rd−ir × D Goff = Gd−ig × D Boff = Bd−ib × D (7) The relationship between the small grid and the offset coordinate values is shown in FIG.

【0079】補間演算に用いる四面体としては、誤差を
小さくするため、カラー画像データに近い4点からなる
四面体が選択される。具体的にオフセット座標値と補間
演算に用いる四面体との関係は次の通りである(図1参
照)。 Roff>Goff>Boff → Tetra0; Roff>Boff>Goff → Tetra1; Boff>Roff>Goff → Tetra2; Goff>Roff>Boff → Tetra3; Goff>Boff>Roff → Tetra4; Boff>Goff>Roff → Tetra5;
As the tetrahedron used for the interpolation operation, a tetrahedron consisting of four points close to the color image data is selected in order to reduce the error. Specifically, the relationship between the offset coordinate values and the tetrahedron used for the interpolation calculation is as follows (see FIG. 1). Roff>Goff> Boff → Tetra0; Roff>Boff> Goff → Tetra1; Boff>Roff> Goff → Tetra2; Goff>Roff> Boff → Tetra3;

【0080】こうして四面体を選択した後、オフセット
座標値に基づいて、各格子点における色補正データに乗
ずる重み係数を算出する。重み係数の算出について図8
を用いて説明する。図8は図7のカラー画像データが属
している四面体(図1におけるTetra0)を示した
ものである。このとき頂点Wに乗ずる重み係数WWは、
四面体KRYWの体積Vと四面体KRYP(図中ハッチ
ングの部分)の体積vpの比(vp/V)で与えられ
る。カラー画像データPが頂点Wと一致する場合には上
記重み係数WW=1となり、データPが平面KRY上に
あるときは重み係数WW=0となる。他の頂点について
も同様にして重み係数が求められる。つまり、頂点Kの
重み係数WKは体積Vと四面体RYWPの体積との比、
頂点Rの重み係数WRは体積Vと四面体KWYPの比、
頂点Yの重み係数WYは体積Vと四面体KWRPの比に
よりそれぞれ求められる。
After the tetrahedron is selected in this way, a weight coefficient for multiplying the color correction data at each grid point is calculated based on the offset coordinate values. FIG. 8 about calculation of weight coefficient
This will be described with reference to FIG. FIG. 8 shows a tetrahedron (Tetra0 in FIG. 1) to which the color image data of FIG. 7 belongs. At this time, the weight coefficient WW by which the vertex W is multiplied is
It is given by the ratio (vp / V) between the volume V of the tetrahedron KRYW and the volume vp of the tetrahedron KRYP (hatched portion in the figure). When the color image data P coincides with the vertex W, the weight coefficient WW = 1, and when the data P is on the plane KRY, the weight coefficient WW = 0. Weight coefficients are similarly obtained for other vertices. That is, the weight coefficient WK of the vertex K is the ratio of the volume V to the volume of the tetrahedron RYWP,
The weight coefficient WR of the vertex R is the ratio of the volume V to the tetrahedron KWYP,
The weight coefficient WY of the vertex Y is obtained by the ratio between the volume V and the tetrahedron KWRP.

【0081】なお、各重み係数は、オフセット座標値
(Roff,Goff,Boff)および格子点間隔D
を用いて表すこともできる。例えば、頂点Wの重み係数
WWについて考えると、四面体KRYWと四面体KRY
Pは底面KRYが共通であるため、両者の体積比はKR
Yを底面としたときの頂点Wおよび点Pの高さの比に他
ならない。頂点Wの高さは格子点間隔Dであり、点Pの
高さはBoffであるから、WW=Boff/Dと求め
られる。他の重み係数も同様にして求められる。これら
を整理して示せば次式(8)の通りである。 Tetra0: WK=(D−Roff)/D; WR=(Roff−Goff)/D; WY=(Goff−Boff)/D; WW=Boff/D ・・・(8)
Note that each weight coefficient is represented by an offset coordinate value (Roff, Goff, Boff) and a grid point interval D
Can also be used. For example, considering the weight coefficient WW of the vertex W, the tetrahedron KRYW and the tetrahedron KRY
Since P has a common bottom surface KRY, the volume ratio of both is KR
This is nothing but the ratio of the height of the vertex W to the height of the point P when Y is the bottom surface. Since the height of the vertex W is the lattice point interval D and the height of the point P is Boff, WW = Boff / D is obtained. Other weighting factors are similarly obtained. The following equation (8) summarizes these. Tetra0: WK = (D-Roff) / D; WR = (Roff-Goff) / D; WY = (Goff-Boff) / D; WW = Boff / D (8)

【0082】同様に他の四面体Tetra1〜Tetr
a5について、各重み係数を示せば次式(9)〜(1
3)の通りである。 Tetra1: WK=(D−Roff)/D; WR=(Roff−Boff)/D; WM=(Boff−Goff)/D; WW=Goff/D ・・・(9)
Similarly, other tetrahedrons Tetra1 to Tetr
For a5, the following equations (9) to (1)
It is as 3). Tetra1: WG = (D-Roff) / D; WR = (Roff-Boff) / D; WM = (Boff-Goff) / D; WW = Goff / D (9)

【0083】 Tetra2: WK=(D−Boff)/D; WB=(Boff−Roff)/D; WM=(Roff−Goff)/D; WW=Goff/D ・・・(10)Tetra2: WK = (D-Boff) / D; WB = (Boff-Roff) / D; WM = (Roff-Goff) / D; WW = Goff / D (10)

【0084】 Tetra3: WK=(D−Goff)/D; WG=(Goff−Roff)/D; WY=(Roff−Boff)/D; WW=Boff/D ・・・(11)Tetra3: WG = (D-Goff) / D; WG = (Goff-Roff) / D; WY = (Roff-Boff) / D; WW = Boff / D (11)

【0085】 Tetra4: WK=(D−Goff)/D; WG=(Goff−Boff)/D; WC=(Boff−Roff)/D; WW=Roff/D ・・・(12)Tetra4: WG = (D-Goff) / D; WG = (Goff-Boff) / D; WC = (Boff-Roff) / D; WW = Roff / D (12)

【0086】 Tetra5: WK=(D−Boff)/D; WB=(Boff−Goff)/D; WC=(Goff−Roff)/D; WW=Roff/D ・・・(13)Tetra5: WK = (D-Boff) / D; WB = (Boff-Goff) / D; WC = (Goff-Roff) / D; WW = Roff / D (13)

【0087】以上により求められた重み係数を各格子点
の色補正データに乗じ、その和をとることによりカラー
画像データPに対応した色補正データを求めることがで
きる。つまり、頂点K,W,R,Yに対応した色補正デ
ータをそれぞれCTK,CTW,CTR,CTYとする
と、カラー画像データPに対応した色補正データCTP
は次式(14)の通り求められる。 CTP=WK*CTK+WW*CTW +WR*CTR+WY*CTY ・・・(14) 本実施例では、色補正テーブルCTはC,M,Yの3次
元からなるデータを有しているため、上記演算をC,
M,Yの各データについて実行するのである。
The color correction data corresponding to the color image data P can be obtained by multiplying the color correction data of each grid point by the weight coefficient obtained as described above and taking the sum. That is, if the color correction data corresponding to the vertices K, W, R, and Y are CTK, CTW, CTR, and CTY, respectively, the color correction data CTP corresponding to the color image data P
Is obtained as in the following equation (14). CTP = WK * CTK + WW * CTW + WR * CTR + WY * CTY (14) In the present embodiment, since the color correction table CT has three-dimensional data of C, M, and Y, ,
This is executed for each of the data of M and Y.

【0088】なお、この補間演算では、上述の通り体積
比により重み係数を求めているが、他の方法により重み
係数を求めるものとしてもよい。例えば、四面体の各頂
点とカラー画像データPとの距離に基づいて重み係数を
定めるものとしてもよい。
In this interpolation operation, the weight coefficient is obtained by the volume ratio as described above, but the weight coefficient may be obtained by another method. For example, the weight coefficient may be determined based on the distance between each vertex of the tetrahedron and the color image data P.

【0089】次に本実施例における具体的処理内容を図
9を用いて説明する。図9は画像処理ルーチンの流れを
示したフローチャートである。このルーチンはコンピュ
ータ90のCPUにより実行されるものである。
Next, the specific processing contents in this embodiment will be described with reference to FIG. FIG. 9 is a flowchart showing the flow of the image processing routine. This routine is executed by the CPU of the computer 90.

【0090】画像処理ルーチンが実行されると、CPU
はカラー画像データの読み込みを行う(ステップS10
0)。ここで、読み込まれるカラー画像データはスキャ
ナ12を用いて取り込んだ原画像データORGをラスタ
ライザ97によりドット単位のデータに変更したもので
あり、各画素ごとにR,G,Bからなる色情報を有した
データである。次にCPUはベースポイント算出処理
(ステップS105)およびオフセット座標算出処理
(ステップS110)を実行する。これらの各処理の内
容について図10および図11を用いて説明する。
When the image processing routine is executed, the CPU
Reads color image data (step S10).
0). Here, the read color image data is obtained by changing the original image data ORG captured using the scanner 12 into data in dot units by the rasterizer 97, and has color information including R, G, and B for each pixel. Data. Next, the CPU executes a base point calculation process (step S105) and an offset coordinate calculation process (step S110). The contents of each of these processes will be described with reference to FIGS.

【0091】図10にベースポイント算出処理の流れを
示す。ベースポイント算出処理は、R,G,Bの各色デ
ータについて同じ処理を実行する。説明の便宜上、Rの
データについて施す処理を例にとって説明する。ベース
ポイント算出処理では、まず、画像データが格子点間隔
Dで除される(ステップS150)。図7および図8の
例に沿って説明すれば、画像データRd/Dを演算する
のである。次に、この演算結果について、小数点以下を
切り捨てることにより整数化を行う(ステップS15
5)。こうして得られた整数値をベースポイントデータ
irkとして出力するのである。ベースポイントデータ
irkは、カラー画像データが属する小格子について、
R方向において原点に近い格子点の格子点番号を表して
いる。次のステップにおいてCPUは、R,G,B全色
について上記処理が終了しているか否かを判定し(ステ
ップS160)、全色について処理が終了していない場
合には、上記ステップS150、S155をG、Bの各
色についても実行する。こうして各色についてのベース
ポイントデータ(irk,igk,ibk)を算出した
ところで、一旦ベースポイント算出処理を終了し、画像
処理ルーチンに戻る。なお、ベースポイントデータは、
上記格子点番号の他、ベースポイントの座標値を算出す
るものとしてもよい。
FIG. 10 shows the flow of the base point calculation process. In the base point calculation processing, the same processing is executed for each of the R, G, and B color data. For convenience of explanation, a process performed on R data will be described as an example. In the base point calculation processing, first, the image data is divided by the grid point interval D (step S150). 7 and 8, the image data Rd / D is calculated. Next, the result of this operation is converted to an integer by truncating the decimal part (step S15).
5). The integer value thus obtained is output as base point data irk. The base point data irk is defined as follows for the small grid to which the color image data belongs.
This represents the grid point number of the grid point near the origin in the R direction. In the next step, the CPU determines whether or not the above processing has been completed for all the R, G, B colors (step S160). If the processing has not been completed for all the colors, the above steps S150, S155 Is also performed for each of the colors G and B. After calculating the base point data (irk, igk, ibk) for each color in this way, the base point calculation processing is temporarily terminated, and the process returns to the image processing routine. The base point data is
In addition to the grid point number, a coordinate value of a base point may be calculated.

【0092】図11にオフセット座標算出処理の流れを
示す。オフセット座標算出処理でも、R,G,Bの各色
データについて同じ処理を実行する。オフセット座標算
出処理では、先に求められたベースポイントのデータが
読み込まれる(ステップS165)。次に、画像データ
とベースポイントの座標値との差分が求められる(ステ
ップS170)。この差分がオフセット座標値となる。
Rのデータを例にとって説明すれば、ベースポイントの
座標値はベースポイントデータirkおよび格子点間隔
Dを用いてirk×Dで表されるから、カラー画像デー
タRdに対するオフセット座標値Roffは、Roff
=Rd−irk×Dで求められる。次のステップにおい
てCPUは、R,G,B全色について上記処理が終了し
ているか否かを判定し(ステップS175)、全色につ
いて処理が終了していない場合には、上記ステップS1
65、S170をG、Bの各色についても実行する。こ
うして各色についてのオフセット座標値(Roff,G
off,Boff)を算出したところで、一旦オフセッ
ト座標算出処理を終了し、画像処理ルーチンに戻る。な
お、オフセット座標は、Roff=Rd%Dなる演算に
より求めるものとしてもよい。ここで、%は余剰演算子
を表す。
FIG. 11 shows the flow of the offset coordinate calculation process. In the offset coordinate calculation process, the same process is executed for each of the R, G, and B color data. In the offset coordinate calculation process, the data of the base point previously obtained is read (step S165). Next, a difference between the image data and the coordinate value of the base point is obtained (step S170). This difference becomes the offset coordinate value.
Taking the data of R as an example, the coordinate value of the base point is represented by irk × D using the base point data irk and the lattice point interval D, so that the offset coordinate value Roff for the color image data Rd is Roff
= Rd-irk x D. In the next step, the CPU determines whether or not the above processing has been completed for all the R, G and B colors (step S175).
65 and S170 are also performed for each of the colors G and B. Thus, the offset coordinate values (Roff, G
After calculating (off, Boff), the offset coordinate calculation process is once ended, and the process returns to the image processing routine. Note that the offset coordinates may be obtained by an operation of Roff = Rd% D. Here,% represents a surplus operator.

【0093】図9に戻り画像処理ルーチンについて説明
する。オフセット座標算出処理が終了した後、CPUは
補間演算データ読み込み(S115)を実行する。これ
は、オフセット座標(Roff,Goff,Boff)
に基づいてオフセット補正テーブルOTに保存されてい
るデータを読み込む処理である。オフセット補正テーブ
ルには、補間演算に用いられる格子点を特定する格子点
特定データと、補間演算において各格子点に乗ぜられる
重み係数を与える重み係数データの2種類からなるデー
タが記憶されている。ここで、オフセット補正テーブル
の内容について説明する。
Returning to FIG. 9, the image processing routine will be described. After the offset coordinate calculation processing is completed, the CPU executes interpolation calculation data reading (S115). This is the offset coordinates (Roff, Goff, Boff)
Is a process of reading data stored in the offset correction table OT based on the data. The offset correction table stores two types of data: grid point specifying data for specifying grid points used in the interpolation calculation, and weight coefficient data for giving a weight coefficient to be multiplied to each grid point in the interpolation calculation. Here, the contents of the offset correction table will be described.

【0094】オフセット補正テーブルは、オフセット座
標値(0,0,0)〜(D,D,D)の各座標値に対し
て、上述の格子点特定データと重み係数データを記憶す
るテーブルである。オフセット補正テーブルの一例を図
12に示す。図12は、オフセット座標値(0,0,
0)〜(D,D,D)の各点に対し、AD1,AD2な
る2つの格子点特定データと、WK,WW,W1,W2
なる4つの重み係数データを備えたオフセット補正テー
ブルの例である。画像データまわりの4つの格子点を用
いて四面体法による補間演算を行うにも関わらず格子点
特定データがAD1,AD2の2つで済むのは、次の理
由による。つまり、図1に示した通り、四面体法による
補間演算で用いられる各四面体は必ず頂点Kおよび頂点
Wを含んでいるため、格子点特定データは、オフセット
座標値に応じてその他の2点を特定するデータを記憶し
ておけば十分だからである。
The offset correction table is a table for storing the above-mentioned grid point specifying data and weight coefficient data for each of the offset coordinate values (0, 0, 0) to (D, D, D). . FIG. 12 shows an example of the offset correction table. FIG. 12 shows offset coordinate values (0, 0,
0) to (D, D, D), two grid point specifying data AD1 and AD2 and WK, WW, W1, W2
It is an example of an offset correction table provided with the following four weight coefficient data. The reason why only two grid point specifying data AD1 and AD2 are required in spite of performing the interpolation calculation by the tetrahedron method using the four grid points around the image data is as follows. That is, as shown in FIG. 1, since each tetrahedron used in the interpolation operation by the tetrahedron method always includes the vertices K and W, the grid point specifying data includes the other two points according to the offset coordinate value. This is because it is sufficient to store data for specifying

【0095】格子点特定データについて、図12により
具体的に説明する。例えばオフセット座標が(0,0,
0)である点、即ち図1にいう頂点Kは、図1に示した
通りTetra0〜Tetra5までの全ての四面体に
含まれている。従って、本実施例では便宜的にTetr
a5に含まれるものとして、オフセット補正テーブルの
格子点特定データAD1に頂点Bを特定するデータ、A
D2に頂点Cを特定するデータを記憶した。オフセット
座標(0,0,1)や(0,0,2)なる点も図1にお
ける辺KB上の点でありTetra5とTetra2の
双方に含まれているため、頂点Kと同様、便宜上Tet
ra5に含まれるものとした。図12中に示されてはい
ないが、例えば、Roff>Goff>Boffなる関
係が成立し、図1のTetra0が補間演算(図8に相
当)に使用される場合には、格子点特定データADはA
D1として頂点R、AD2として頂点Yを特定するデー
タが記憶されているのである。各頂点をどのようなデー
タによって特定するかという点については後で説明す
る。
The grid point specifying data will be specifically described with reference to FIG. For example, if the offset coordinates are (0,0,
0), that is, the vertex K in FIG. 1 is included in all tetrahedrons Tetra0 to Tetra5 as shown in FIG. Therefore, in this embodiment, for convenience, Tetr
Data that specifies the vertex B in the grid point specifying data AD1 of the offset correction table,
Data for specifying the vertex C is stored in D2. The offset coordinates (0, 0, 1) and (0, 0, 2) are also points on the side KB in FIG. 1 and are included in both Tetra5 and Tetra2.
ra5. Although not shown in FIG. 12, for example, when the relationship of Roff>Goff> Boff holds and Tetra0 of FIG. 1 is used for the interpolation calculation (corresponding to FIG. 8), the grid point specifying data AD Is A
Data for specifying the vertex R as D1 and data for specifying the vertex Y as AD2 are stored. The data used to specify each vertex will be described later.

【0096】次にオフセット補正テーブルに記憶されて
いる重み係数データWK,WW,W1,W2について説
明する。重み係数データWKは頂点Kにかかる重み係
数、データWWは頂点Wにかかる重み係数、データW
1,W2はそれぞれ格子点特定データAD1、AD2に
より特定される頂点にかかる重み係数を意味している。
図12に示す通り、例えばオフセット座標(0,0,
0)、即ち図1の頂点Kについては、四面体法による補
間演算において頂点Kに乗ぜられる重み係数が値1とな
りその他の重み係数は全て値0となるため、オフセット
補正テーブルにおいて、WK=1、WW=W1=W2=
0なるデータが記憶されている。同様に各オフセット座
標に対応して、格子点特定データAD1,AD2により
特定される頂点および頂点K,Wに乗ぜられる重み係数
をそれぞれ求めることができ、オフセット補正テーブル
には、これらの値が重み係数データWK,WW,W1,
W2として記憶されている。図12においてWK1,W
W1等とされ、具体的な値が示されていないデータは、
上述の通り求められた実数が記憶されていることを意味
している。なお、この実数は0≦重み係数データ≦1な
る範囲で求められる値である。
Next, the weight coefficient data WK, WW, W1, W2 stored in the offset correction table will be described. Weight coefficient data WK is a weight coefficient applied to vertex K, data WW is a weight coefficient applied to vertex W, data W
Reference numerals 1 and W2 mean weighting factors applied to vertices specified by the grid point specifying data AD1 and AD2, respectively.
As shown in FIG. 12, for example, the offset coordinates (0, 0,
0), that is, for the vertex K in FIG. 1, the weight coefficient multiplied by the vertex K in the interpolation calculation by the tetrahedron method becomes the value 1 and all the other weight coefficients become the value 0. Therefore, in the offset correction table, WK = 1 , WW = W1 = W2 =
0 data is stored. Similarly, the vertices specified by the grid point specifying data AD1 and AD2 and the weighting factors to be multiplied by the vertices K and W can be obtained corresponding to the respective offset coordinates. Coefficient data WK, WW, W1,
It is stored as W2. In FIG. 12, WK1, W
W1 and other data for which no specific value is indicated
It means that the real number obtained as described above is stored. Note that this real number is a value obtained in the range of 0 ≦ weight coefficient data ≦ 1.

【0097】次に、格子点特定データにおいて、各頂点
をどのようなデータにより特定するかという一例につい
て説明する。そのためには、まず本実施例における色補
正テーブルCTのメモリ上の配列から説明する必要があ
る。本実施例では、色補正テーブルCTは、コンピュー
タ90のROM内にC,M,Yの各色ごとに原点(0,
0,0)から(Nr−1,Ng−1,Nb−1)まで順
に並んでいる。ここで、Nr,Ng,NbはR,G,B
各次元の格子点数を意味し、各格子点はR,G,Bの順
に格子点番号を並べて(ir,ig,ib)のように表
すものとする。本実施例においては、先に述べた通り,
Nr=Ng=Nb=17である。本実施例における色補
正テーブルCTのデータ配列を図13に示す。
Next, an example of what kind of data specifies each vertex in the grid point specifying data will be described. For that purpose, it is necessary to first explain the arrangement of the color correction tables CT in the memory in the present embodiment. In the present embodiment, the color correction table CT stores the origin (0, 0,
(0, 0) to (Nr-1, Ng-1, Nb-1). Here, Nr, Ng, Nb are R, G, B
It means the number of grid points in each dimension, and each grid point is represented as (ir, ig, ib) by arranging grid point numbers in the order of R, G, B. In this embodiment, as described above,
Nr = Ng = Nb = 17. FIG. 13 shows a data array of the color correction table CT in the present embodiment.

【0098】図13に示す通り、色補正テーブルCT
は、メモリ上ではB,G,Rの順に格子点番号を増やし
た順番に並べられている。具体的には、(0,0,
0)、(0,0,1)…(0,0,Nb−1)と並び、
その次に(0,1,0)(0,1,1)…(0,1,N
b−1)と並ぶ。このような順番で(0,Ng−1,N
b−1)まで並んだ次は、(1,0,0)、(1,0,
1)…(1,0,Nb−1)と並び、最後が(Nr−
1,Ng−1,Nb−1)となるのである。まず、C色
についてこの順番にデータが並んだ後、同じ順番でM,
Yのデータが並んでいる。図13では、便宜上、適当な
区切りごとに色補正データ数を示した。かかるデータ数
を参照すれば、このように色補正データが1次元的に並
べられた状態では、任意の格子点(ir,ig,ib)
に対応するデータ位置(メモリ上のアドレスに相当す
る)AGを次式(15)の通り特定することができるこ
とが分かる。
As shown in FIG. 13, the color correction table CT
Are arranged on the memory in the order of B, G, and R in which the grid point numbers are increased. Specifically, (0,0,
0), (0, 0, 1) ... (0, 0, Nb-1)
Then (0,1,0) (0,1,1) ... (0,1, N
It is lined with b-1). In this order (0, Ng-1, N
The next line up to b-1) is (1, 0, 0), (1, 0,
1) ... (1, 0, Nb-1), and the last is (Nr-
1, Ng-1, Nb-1). First, data is arranged in this order for C color, and then M,
Y data is arranged. In FIG. 13, for convenience, the number of color correction data is shown for each appropriate segment. By referring to the number of data, in a state where the color correction data is arranged one-dimensionally, an arbitrary grid point (ir, ig, ib)
It can be understood that the data position (corresponding to the address on the memory) AG corresponding to the following can be specified as in the following equation (15).

【0099】この式を用いれば、先に求めたベースポイ
ントK(irk,igk,ibk)のROM上での位
置、即ちアドレスを求めることができる。上式(15)
により求めたベースポイントKのアドレスirk・Ng
・Nb+igk・Nb+ibkを以下、ベースポイント
アドレスAKとする。
Using this equation, the position on the ROM of the base point K (irk, igk, ibk) obtained previously, that is, the address, can be obtained. The above equation (15)
Of the base point K obtained by the above operation, irk · Ng
Nb + igk Nb + ibk is hereinafter referred to as base point address AK.

【0100】上式(15)を用いれば、小格子の各頂点
の色補正データについて、ベースポイントKに対する相
対的位置関係を特定することができる。例えば、図1の
頂点Rのデータは、ベースポイントKよりもNg・Nb
だけ後ろに存在している。言い換えれば、ベースポイン
トアドレスAKに対する頂点Rの相対アドレスがNg・
Nbであることになる。ベースポイントK(irk,i
gk,ibk)に対し、頂点Rは(irk+1,ig
k,ibk)なる位置関係にあるからである。かかる点
に着目すれば、補間演算に頂点Rを用いる場合には、オ
フセット補正テーブルOTの格子点特定データAD1と
して上記の相対アドレス値Ng・Nbを記憶しておけば
よいことが分かる。他の頂点を用いる場合も同様にして
格子点特定データADを用意することができる。本実施
例では、格子点特定データAD1,AD2として、こう
して得られたメモリ上における相対的な位置データを用
いている。従って、各頂点に対する格子点特定データは
次の通りとなる。 頂点R・・・Ng・Nb; 頂点G・・・Nb; 頂点B・・・1; 頂点C・・・Nb+1; 頂点M・・・Ng・Nb+1; 頂点Y・・・Ng・Nb+Nb;
Using the above equation (15), it is possible to specify the relative positional relationship with respect to the base point K for the color correction data of each vertex of the small grid. For example, the data of the vertex R in FIG.
Only exists behind. In other words, the relative address of the vertex R with respect to the base point address AK is Ng ·
Nb. Base point K (irk, i
gk, ibk), vertex R is (irk + 1, ig
(k, ibk). Focusing on this point, when using the vertex R for the interpolation calculation, it is understood that the relative address values Ng and Nb should be stored as the grid point specifying data AD1 of the offset correction table OT. When other vertices are used, the grid point specifying data AD can be prepared in the same manner. In this embodiment, the relative position data on the memory thus obtained is used as the grid point specifying data AD1 and AD2. Therefore, the grid point specifying data for each vertex is as follows. Vertex G ... Nb; Vertex B ... 1; Vertex C ... Nb + 1; Vertex M ... Ng · Nb + 1; Vertex Y ... Ng · Nb + Nb;

【0101】なお、上記格子点特定データは、色補正テ
ーブルCTのデータの配列順序が変われば、それに応じ
て変わるものである。格子点特定データとしては、各頂
点を意味するコードを記憶しておくもの等、種々の態様
が考えられるが、メモリ上の相対アドレスを記憶する上
述の方法によれば、後で説明する色補正データの読み込
みを非常に容易に実行することができるため、処理の高
速化の観点で好適である。
The grid point specifying data changes according to the change in the arrangement order of the data of the color correction table CT. As the grid point specifying data, various modes such as storing a code meaning each vertex can be considered. According to the above-described method of storing a relative address on a memory, a color correction described later is performed. Since data can be read very easily, it is preferable from the viewpoint of speeding up processing.

【0102】再度、図9に戻り画像処理ルーチンについ
て説明する。以上説明したオフセット補正テーブルを読
み込むことにより、補間演算データの読み込みを行った
後(ステップS115)、CPUは色補正データの読み
込みを実行する(ステップS120)。この処理につい
て図14を用いて説明する。図14は、色補正テーブル
CTのデータとオフセット補正テーブルで読み込まれた
データとの関係を示す説明図である。図14における格
子点番号(0,0,0)〜(Nr−1,Ng−1,Nb
−1)は図13と同様、メモリ上の色補正テーブルCT
の並びを示している。図14における格子点(irk,
igk,ibk)はベースポイント(頂点K)を表して
おり、またベースポイントに対応するデータはメモリ上
で格子点(0,0,0)のデータよりベースポイントア
ドレスAKだけ後ろに記憶されていることを示してい
る。従って、ベースポイントアドレスAKに基づいて、
ベースポイントに対応する色補正データを読み込むこと
ができる。
Returning to FIG. 9, the image processing routine will be described. After reading the interpolation calculation data by reading the offset correction table described above (step S115), the CPU executes reading of the color correction data (step S120). This processing will be described with reference to FIG. FIG. 14 is an explanatory diagram showing the relationship between the data in the color correction table CT and the data read in the offset correction table. The grid point numbers (0, 0, 0) to (Nr-1, Ng-1, Nb) in FIG.
-1) is a color correction table CT on the memory as in FIG.
Are shown. The grid points (irk,
igk, ibk) represents the base point (vertex K), and the data corresponding to the base point is stored on the memory behind the data of the grid point (0, 0, 0) by the base point address AK. It is shown that. Therefore, based on the base point address AK,
The color correction data corresponding to the base point can be read.

【0103】次に、格子点特定データにより特定された
頂点に対応する色補正データの読み込みについて説明す
る。前述の通り、ステップS115において、補間演算
に用いる格子点特定データが読み込まれている。格子点
特定データAD1,AD2はベースポイントに対する相
対的なアドレス値が記憶されている。従って、ベースポ
イントアドレスAKに格子点特定データAD1,AD2
を加えた場所に記憶されている色補正データを読み込む
ことによりそれぞれの色補正データを得ることができ
る。図14では、格子点特定データとして、AD1に頂
点R(irk+1,igk,ibk)を特定する相対的
アドレスNg・Nbが記憶されており、AD2に頂点Y
(irk+1,igk+1,ibk)を特定する相対的
アドレスNg・Nb+Nbが記憶されている場合におけ
る色補正データの読み込み例を示した。また、同様に頂
点Wはベースポイント(irk,igk,ibk)に対
して(irk+1,igk+1,ibk+1)なる位置
関係にあるため、その色補正データはメモリ上でベース
ポイントアドレスAKにNg・Nb+Nb+1を加えた
場所に記憶されている。
Next, reading of the color correction data corresponding to the vertices specified by the grid point specifying data will be described. As described above, in step S115, the grid point specifying data used for the interpolation calculation is read. The grid point specifying data AD1 and AD2 store an address value relative to the base point. Therefore, the grid point specifying data AD1 and AD2 are stored in the base point address AK.
Each color correction data can be obtained by reading the color correction data stored in the location to which is added. In FIG. 14, the relative addresses Ng and Nb for specifying the vertex R (irk + 1, igk, ibk) are stored in AD1 as the grid point specifying data, and the vertex Y is stored in AD2.
An example of reading color correction data in the case where a relative address Ng · Nb + Nb specifying (irk + 1, igk + 1, ibk) is stored is shown. Similarly, since the vertex W has a positional relationship of (irk + 1, igk + 1, ibk + 1) with respect to the base point (irk, igk, ibk), its color correction data has Ng · Nb + Nb + 1 as the base point address AK in the memory. It is stored in the place where it was added.

【0104】次に、こうして得られた色補正データおよ
び補間演算の重み係数データを用いて補間演算を実行す
る(ステップS125)。補間演算は「(2)画像処理
の概要」において説明した式(14)による演算内容と
同一である。つまり、頂点K,Wおよび格子点特定デー
タAD1,AD2で特定される頂点に対応した色補正デ
ータをそれぞれCTK,CTW,CT1,CT2とし、
各頂点にかかる重み係数データをそれぞれWK,WW,
W1,W2とすると、カラー画像データPに対応した色
補正データCPは次式(16)の通り求められる。 CP=WK*CTK+WW*CTW +W1*CT1+W2*CT2 ・・・(16) 本実施例では、色補正テーブルCTはC,M,Yの3次
元からなるデータを有しているため、上記演算をC,
M,Yの各データについて実行する。こうして一つの画
素についての色補正データを得ることができるため、C
PUは画像処理ルーチンを一旦終了する。
Next, an interpolation operation is performed using the color correction data thus obtained and the weight coefficient data for the interpolation operation (step S125). The interpolation calculation is the same as the calculation content of Expression (14) described in “(2) Outline of Image Processing”. That is, the color correction data corresponding to the vertices K and W and the vertices specified by the grid point specifying data AD1 and AD2 are CTK, CTW, CT1 and CT2, respectively.
The weight coefficient data applied to each vertex is represented by WK, WW,
Assuming that W1 and W2, the color correction data CP corresponding to the color image data P is obtained by the following equation (16). CP = WK * CTK + WW * CTW + W1 * CT1 + W2 * CT2 (16) In the present embodiment, since the color correction table CT has three-dimensional data of C, M, and Y, ,
This is executed for each of the data of M and Y. In this manner, color correction data for one pixel can be obtained.
The PU temporarily ends the image processing routine.

【0105】以上で説明した画像処理装置によれば、色
補正テーブルを補間して画像処理を行うため、各画素に
ついて非常に誤差の小さい色補正を実現することができ
る。しかも、オフセット補正テーブルOTを活用するこ
とにより、条件判断による分岐をすることなく補間演算
を実行することができるため、高速に画像処理を行うこ
とができる。四面体法による補間演算は先に説明した通
り、オフセット座標値に応じて補間演算に用いる格子点
の選択等を行う必要があるため、条件判断による多くの
分岐が必要となり、また各分岐ごとに重み係数の算出等
の種々の演算が必要となる。これに対し、本実施例では
オフセット補正テーブルOTの活用により、このような
条件判断による分岐を一切せずに四面体法による補間演
算を実現することができる。このように条件判断により
分岐をせずに実行できる画像処理は、パイプライン化さ
れたプロセッサ、例えばPentiumII(Inte
l社登録商標)による処理に好適であり、このようなプ
ロセッサを使用した場合には、条件判断による分岐を含
む従来の画像処理に比べ4〜5倍もの高速処理が可能と
なる。
According to the image processing apparatus described above, since the image processing is performed by interpolating the color correction table, it is possible to realize color correction with a very small error for each pixel. Moreover, by utilizing the offset correction table OT, it is possible to execute the interpolation calculation without branching by the condition judgment, so that the image processing can be performed at high speed. As described above, the tetrahedron interpolation calculation requires selection of grid points to be used in the interpolation calculation according to the offset coordinate values, so that a large number of branches are required depending on the condition judgment. Various calculations such as calculation of a weight coefficient are required. On the other hand, in the present embodiment, by utilizing the offset correction table OT, the interpolation calculation by the tetrahedron method can be realized without any branching due to such a condition judgment. As described above, image processing that can be executed without branching based on condition determination is performed by a pipelined processor, for example, Pentium II (Inte
This processor is suitable for processing by a company (registered trademark), and when such a processor is used, high-speed processing can be performed four to five times faster than conventional image processing including branching based on conditional judgment.

【0106】また、本実施例では、R,G,Bの各次元
について8ビットからなる256階調3次元の色空間
を、各次元ごとに4ビットつまり16階調の格子点間隔
で分割している。つまり、Nビット(本実施例ではN=
8)からなる階調数に対し、格子点間隔がその半分のN
/2ビットとなっている。本実施例では、色補正テーブ
ルCTは各格子点に対し(c,m,y)の3つのデータ
が用意されており、オフセット補正テーブルOTは各座
標値に対し(AD1,AD2,WK,WW,W1,W
2)の6つのデータが用意されている。3次元の色空間
における色補正テーブルCTとオフセット補正テーブル
OTのデータ量を考える場合、各格子点または座標値毎
の上記データ数は概ね等しいと考えて差し支えない範囲
であるから、上述の通りN/2ビットに相当する4ビッ
トで色空間を分割することにより色補正テーブルCTと
オフセット補正テーブルOTのデータ量の合計が最小と
なり、メモリ容量を抑えることができる。もっとも、格
子点間隔は概ね階調数の半分のビットになっていればよ
く、言い換えれば色補正テーブルCTとオフセット補正
テーブルOTのデータ量が概ね同じ程度になる関係にあ
ればよい。これらの関係にない場合、例えば、格子点間
隔を小さくした場合にはオフセット補正テーブルは小さ
くなるが、色補正テーブルが非常に大きくなるため、両
者の合計で必要となるメモリ容量は大きくなる。また、
格子点間隔を大きくした場合には、逆にオフセット補正
テーブルが非常に大きなものとなる。なお、格子点間隔
はメモリ容量の余裕に応じて所望の値をとるものとすれ
ばよい。
In this embodiment, a three-dimensional color space of 256 tones consisting of 8 bits for each of the R, G, and B dimensions is divided into 4 bits for each dimension, that is, at a grid point interval of 16 tones. ing. That is, N bits (in this embodiment, N =
8), the grid point interval is half of N
/ 2 bits. In this embodiment, the color correction table CT has three data (c, m, y) for each grid point, and the offset correction table OT has (AD1, AD2, WK, WW) for each coordinate value. , W1, W
The six data of 2) are prepared. When considering the data amounts of the color correction table CT and the offset correction table OT in the three-dimensional color space, the number of data for each grid point or each coordinate value is in a range that can be considered to be substantially equal. By dividing the color space by 4 bits corresponding to / 2 bits, the total of the data amounts of the color correction table CT and the offset correction table OT is minimized, and the memory capacity can be reduced. However, it is sufficient that the grid point interval is approximately half the number of bits of the number of gradations. In other words, it is sufficient that the data amount of the color correction table CT and the data amount of the offset correction table OT are approximately the same. When there is no such relationship, for example, when the grid point interval is reduced, the offset correction table becomes small, but the color correction table becomes very large, so that the total required memory capacity of both becomes large. Also,
When the lattice point interval is increased, the offset correction table becomes extremely large. Note that the lattice point interval may take a desired value according to the margin of the memory capacity.

【0107】本実施例では、オフセット補正テーブルに
は格子点特定データと重み係数データを記憶するものと
しているが、後者に代えて重み係数を算出するためのデ
ータを記憶するものとしてもよい。既述の通り、図1の
Tetra0〜Tetra5までの各四面体を用いて補
間演算をする場合の重み係数は、先に示した式(8)〜
(13)の通り求められる。これらの式は次式(17)
の形にまとめることができる。 WK=(D−OFF1)/D; W1=(OFF1−OFF2)/D; W2=(OFF2−OFF3)/D; WW=OFF3/D ・・・(17) ここで、OFF1,OFF2,OFF3は図1のいずれ
の四面体に該当するかに応じてRoff,Goff,B
offのいずれかの値を採る変数である。
In this embodiment, the offset correction table stores the grid point specifying data and the weight coefficient data. However, instead of the latter, data for calculating the weight coefficient may be stored. As described above, the weighting factor when performing the interpolation operation using each tetrahedron from Tetra0 to Tetra5 in FIG.
It is determined as (13). These equations are given by the following equation (17).
Can be summarized in the form of WK = (D-OFF1) / D; W1 = (OFF1-OFF2) / D; W2 = (OFF2-OFF3) / D; WW = OFF3 / D (17) where OFF1, OFF2, and OFF3 are Roff, Goff, B according to which tetrahedron in FIG.
It is a variable that takes any value of off.

【0108】例えば、Tetra0を用いて補間演算を
する場合には式(8)より明らかな通り、W1=WR,
W2=WYであり、OFF1=Roff,OFF2=G
off,OFF3=Boffである。上式(17)にお
いて、格子点間隔Dはオフセット座標値に依存せず一定
であることを考えれば、上記重み係数はOFF1,OF
F2,OFF3の3つのデータがあれば求められること
になる。従って、オフセット補正テーブルOTにおい
て、先に示した重み係数データWK,WW,W1,W2
の4種類のデータに代えて、上記OFF1,OFF2,
OFF3の3種類のデータを記憶しておけば、それぞれ
重み係数を算出することができる。こうすることによ
り、オフセット補正テーブルのデータから重み係数を算
出する処理が必要となるものの、3種類のデータを記憶
すればよいため、先に示した4種類の重み係数データを
記憶する場合に比べてオフセット補正テーブルOTのサ
イズを抑えることができる。
For example, when an interpolation operation is performed using Tetra0, as is clear from equation (8), W1 = WR,
W2 = WY, OFF1 = Roff, OFF2 = G
off, OFF3 = Boff. In the above equation (17), considering that the lattice point interval D is constant without depending on the offset coordinate value, the weighting factor is OFF1, OF1
If there are three data of F2 and OFF3, it will be obtained. Therefore, in the offset correction table OT, the weight coefficient data WK, WW, W1, W2 shown above are displayed.
Instead of the four types of data, OFF1, OFF2,
If three types of data of OFF3 are stored, a weight coefficient can be calculated for each. By doing so, although a process of calculating a weighting factor from the data of the offset correction table is required, three types of data need only be stored. Thus, the size of the offset correction table OT can be suppressed.

【0109】次に、カラー画像データが最大座標値付近
である場合の処理方法について説明する。既に述べた通
り、色空間の階調数および格子点間隔は自由に設定しう
るものである。従って、階調数および格子点間隔の設定
によっては、各次元の最大座標値が格子点とはならない
場合が生じる。例えば、各次元の座標値が0〜255の
256階調で表されている場合に格子点間隔を17とす
れば、格子点の座標値は、0,17,34・・・255
となるため、最大座標値255が格子点となる。これに
対し、格子点間隔を16とすると、格子点の座標値は、
0,16,32・・・240,(256)となり、最大
座標値255は格子点とはならない。以下に示す通り本
実施例は、階調数および格子点間隔がこのような状態で
設定されていても適用できるものである。
Next, a processing method when the color image data is near the maximum coordinate value will be described. As described above, the number of gradations in the color space and the grid point interval can be freely set. Therefore, depending on the setting of the number of gradations and the grid point interval, the maximum coordinate value of each dimension may not be a grid point. For example, if the coordinate value of each dimension is represented by 256 gradations from 0 to 255 and the grid point interval is 17, the coordinate values of the grid points are 0, 17, 34,.
Therefore, the maximum coordinate value 255 is a grid point. On the other hand, if the grid point interval is 16, the coordinate values of the grid points are
240, (256), and the maximum coordinate value 255 does not become a grid point. As described below, the present embodiment can be applied even when the number of gradations and the grid point interval are set in such a state.

【0110】まず、最大座標値の点が格子点と一致して
いる場合には、特別な処理が必要とならないことを説明
する。いずれかの次元において最大座標値を有するカラ
ー画像データについては、最大座標値よりも更に座標値
が大きい小格子、つまり現実にはデータが存在しない小
格子を用いて補間演算を行い、図9の画像処理ルーチン
を実行することになる。従って、色補正データの読み込
み(図9のステップS120)において、本来色補正テ
ーブルが記憶されている領域とは無関係のメモリ領域に
記憶されているデータを読み込む可能性がある。しか
し、色補正テーブルの補間において、このようなデータ
にかかる重み係数は必ず値0となるため、色補正処理の
結果には影響を与えない。このため、色補正に際して特
別な処理が必要とはならない。なお、より確実に画像処
理が実行されるようにするために、最大座標値よりも大
きい座標値を有する仮想的な格子点に対する色補正テー
ブルを用意するものとしてもよい。
First, it will be explained that no special processing is required when the point of the maximum coordinate value coincides with the lattice point. For color image data having a maximum coordinate value in any dimension, an interpolation operation is performed using a small grid having a coordinate value larger than the maximum coordinate value, that is, a small grid in which no data actually exists, and FIG. An image processing routine will be executed. Therefore, in reading the color correction data (step S120 in FIG. 9), there is a possibility that data stored in a memory area that is irrelevant to the area where the color correction table is stored is read. However, in the interpolation of the color correction table, the weight coefficient applied to such data always has a value of 0, so that the result of the color correction processing is not affected. For this reason, no special processing is required for color correction. In order to more surely execute the image processing, a color correction table for a virtual grid point having a coordinate value larger than the maximum coordinate value may be prepared.

【0111】次に、最大座標値が格子点と一致しない場
合について説明する。例えば、階調数が0〜255の2
56階調であり、格子点間隔が16階調である場合を考
える。本実施例はこの場合に相当する。このとき座標値
が240以上のカラー画像データについては、座標値2
56を有する仮想的な格子点を用いて補間演算を行うこ
とになる。しかも、先に述べた例とは異なり、仮想的な
格子点にかかる重み係数は値0とはならない。この場合
は、最大座標値において適切な色補正データが得られる
ような仮想的な色補正データを、座標値256を有する
仮想的な格子点に対する色補正データとして記憶してお
けばよい。こうすることにより、座標値が240以上の
領域においても適切な色補正データを求めることができ
る。
Next, a case where the maximum coordinate value does not coincide with the lattice point will be described. For example, when the number of gradations is 0 to 255, 2
Consider a case where there are 56 gradations and the grid point interval is 16 gradations. This embodiment corresponds to this case. At this time, for color image data having a coordinate value of 240 or more, the coordinate value 2
The interpolation calculation is performed using the virtual grid points having 56. Moreover, unlike the above-described example, the weight coefficient applied to the virtual grid point does not become zero. In this case, virtual color correction data that allows appropriate color correction data to be obtained at the maximum coordinate value may be stored as color correction data for a virtual grid point having a coordinate value of 256. By doing so, appropriate color correction data can be obtained even in a region where the coordinate value is 240 or more.

【0112】(3)第2実施例における画像処理装置:
次に、本発明の第2実施例における画像処理装置につい
て説明する。第2実施例の画像処理装置のハードウェア
構成は、先に説明した第1実施例の装置と同一である。
第2実施例では、色空間を不均一な格子点間隔で分割
し、色補正データもこの格子点に対応して用意されたデ
ータを用いる点が第1実施例と相違する。第2実施例に
おける色空間の分割例を図15に示す。なお、図15で
は、R,G,Bの次元間では格子点間隔を統一してある
が、本実施例は各次元間の格子点間隔が不統一な場合で
も適用できるものである。格子点間隔が不均一である結
果、コンピュータ90のCPUが実行する画像処理ルー
チンの流れは基本的には第1実施例の処理(図9)と同
様であるが、一部の処理内容において第1実施例と相違
する。
(3) Image processing apparatus in the second embodiment:
Next, an image processing apparatus according to a second embodiment of the present invention will be described. The hardware configuration of the image processing apparatus according to the second embodiment is the same as the apparatus according to the first embodiment described above.
The second embodiment differs from the first embodiment in that the color space is divided at non-uniform grid point intervals, and color correction data uses data prepared corresponding to the grid points. FIG. 15 shows an example of the division of the color space in the second embodiment. In FIG. 15, the grid point intervals are unified between the R, G, and B dimensions. However, the present embodiment can be applied even when the grid point intervals between the dimensions are not uniform. As a result of the non-uniform grid point spacing, the flow of the image processing routine executed by the CPU of the computer 90 is basically the same as the processing of the first embodiment (FIG. 9), but in some processing contents, This is different from the first embodiment.

【0113】画像処理ルーチンが開始されると、第1実
施例の場合と同様、カラー画像データの読み込みを実施
し(図9のステップS100)、ベースポイント算出処
理を実行する(ステップS105)。ベースポイント算
出処理が本実施例では、第1実施例と相違する。図16
を用いてベースポイント算出処理について説明する。
When the image processing routine is started, as in the first embodiment, the color image data is read (step S100 in FIG. 9), and the base point calculation processing is executed (step S105). This embodiment differs from the first embodiment in the base point calculation process. FIG.
The base point calculation process will be described with reference to FIG.

【0114】ベースポイント算出処理は、R,G,Bの
各色データについて同じ処理を実行する。説明の便宜
上、R色のデータについて施す処理を例にとって説明す
る。ベースポイント算出処理が開始されると、CPUは
値0を代入して変数nを初期化し(ステップS20
0)、カラー画像データのR成分であるRdがR(0)
≦Rd<R(1)なる条件を満たしているか否かを判定
する(ステップS200)。ここで、R(n)はR方向
について原点からn番目の格子点の座標値を意味してい
る。従って、上記判定では、カラー画像データがR方向
について原点とその隣の格子点から形成される小格子に
属しているか否かを判定していることになる。
In the base point calculation processing, the same processing is executed for each of the R, G, and B color data. For convenience of explanation, a process performed on R-color data will be described as an example. When the base point calculation process starts, the CPU initializes a variable n by substituting a value 0 (step S20).
0), the R component of the color image data is R (0)
It is determined whether a condition of ≦ Rd <R (1) is satisfied (step S200). Here, R (n) means the coordinate value of the n-th grid point from the origin in the R direction. Therefore, in the above determination, it is determined whether or not the color image data belongs to the small grid formed from the origin and the grid points adjacent thereto in the R direction.

【0115】この判定結果がノーである場合は、変数n
を値1ずつ増加し、同様の判定を行う。つまり、R
(1)≦Rd<R(2)、R(2)≦Rd<R(3)・
・・という具合に、これらいずれかの条件が満足される
まで繰り返し判定を行う。この条件が満足された場合に
は、カラー画像データRdがR(n)およびR(n+
1)の格子点からなる小格子に属していることになるた
め、このときの変数nの値をCPUはR方向のベースポ
イントirkに代入する(ステップS205)。次のス
テップにおいてCPUは、R,G,B全色について上記
処理が終了しているか否かを判定し(ステップS21
0)、全色について処理が終了していない場合には、上
記ステップS200、S205をG、Bの各色について
も実行する。こうして各色について、カラー画像データ
が属する小格子のベースポイント(irk,igk,i
bk)を求めることができる。なお、本実施例ではベー
スポイントとして格子点番号を求めているが、格子点の
座標値R(n)を求めるものとしてもよい。
If the result of this determination is no, the variable n
Is incremented by 1 and the same determination is made. That is, R
(1) ≦ Rd <R (2), R (2) ≦ Rd <R (3) ·
·································· etc. When this condition is satisfied, the color image data Rd is R (n) and R (n +
Since it belongs to the small grid consisting of the grid points of 1), the CPU substitutes the value of the variable n at this time for the base point irk in the R direction (step S205). In the next step, the CPU determines whether or not the above processing has been completed for all the R, G, and B colors (step S21).
0) If the processing has not been completed for all the colors, steps S200 and S205 are also performed for each of the colors G and B. Thus, for each color, the base point (irk, igk, i
bk). In this embodiment, the grid point number is obtained as the base point, but the coordinate value R (n) of the grid point may be obtained.

【0116】また、ベースポイント算出処理は、図17
に示す方法により行うものとしてもよい。この場合は、
R方向の座標値に対応してベースポイントの格子点番号
データを記憶したテーブルを基準格子点テーブルとして
用意しておく。基準格子点テーブルの一例を図18に示
す。基準格子点テーブルは、R方向,G方向,B方向の
各座標値に対応してそれぞれ用意される3種類の1次元
のテーブルである。図18には、R方向の座標値に対応
するテーブル例を示した。例えば、R方向について原点
以降の格子点の座標が値10、値20・・・であるとす
れば、図18に示す通り基準格子点テーブルには、座標
値0〜9までは原点がベースポイントであることを意味
する値0(原点の格子点番号)が記憶されており、座標
10〜19までは座標10の点がベースポイントである
ことを意味する値1(座標10の格子点の格子点番号)
が記憶されており、以下格子点の座標値に応じて同様に
データが記憶されている。ベースポイント算出処理で
は、図17に示す通り、カラー画像データの座標値Rd
に対応した基準格子点テーブルの値を読み込むのである
(ステップS215)。次のステップにおいてCPU
は、R,G,B全色について上記処理が終了しているか
否かを判定し(ステップS220)、全色について処理
が終了していない場合には、上記ステップS215を
G、Bの各色についても実行する。
The base point calculation process is performed as shown in FIG.
May be performed by the method shown in FIG. in this case,
A table storing grid point number data of base points corresponding to the coordinate values in the R direction is prepared as a reference grid point table. FIG. 18 shows an example of the reference grid point table. The reference grid point table is a three-dimensional one-dimensional table prepared for each coordinate value in the R, G, and B directions. FIG. 18 shows an example of a table corresponding to the coordinate values in the R direction. For example, assuming that the coordinates of the grid point after the origin in the R direction are values 10, 20,..., The reference grid point table shows that the origin is the base point for the coordinate values 0 to 9 as shown in FIG. 0 (grid point number at the origin) is stored, and a value 1 (grid of grid point at coordinate 10) indicating that the point at coordinate 10 is a base point from coordinates 10 to 19 Point number)
Is stored, and data is similarly stored according to the coordinate values of the lattice points. In the base point calculation process, as shown in FIG.
Then, the value of the reference grid point table corresponding to is read (step S215). In the next step the CPU
Determines whether or not the above processing has been completed for all the R, G, and B colors (step S220). If the processing has not been completed for all the colors, the above step S215 is performed for each of the G and B colors. Also perform

【0117】こうすることにより、図16のような条件
判断による分岐が不要となるため、ベースポイント算出
を高速で行うことができる。上記テーブルを用意するメ
モリが必要となるが、1次元のテーブルを用意すれば済
むため、必要となるメモリ容量は比較的小さくて済む。
また、R,G,Bの各方向で格子点の座標値が一致して
いる場合には、3方向の基準格子点テーブルを共通化す
ることができ、1種類の基準格子点テーブルを用意すれ
ばよいため、必要となるメモリ容量はより一層小さくて
済む。なお、基準格子点テーブルは、ベースポイントの
番号に代えてその座標値を記憶するものとしてもよい。
This eliminates the need for branching based on the condition determination as shown in FIG. 16, so that the base point can be calculated at a high speed. Although a memory for preparing the above table is required, a one-dimensional table only needs to be prepared, and the required memory capacity can be relatively small.
When the coordinate values of the grid points match in each of the R, G, and B directions, the reference grid point tables in three directions can be shared, and one type of reference grid point table is prepared. Therefore, the required memory capacity can be further reduced. It should be noted that the reference grid point table may store the coordinate values instead of the base point numbers.

【0118】こうして、ベースポイントが算出された
後、CPUはオフセット座標算出処理を実行する(図9
のステップS110)。オフセット座標算出処理が本実
施例では、第1実施例と相違する。図19を用いてオフ
セット座標算出処理について説明する。
After the base point is calculated in this way, the CPU executes an offset coordinate calculation process (FIG. 9).
Step S110). This embodiment differs from the first embodiment in the offset coordinate calculation processing. The offset coordinate calculation processing will be described with reference to FIG.

【0119】オフセット座標算出処理は、R,G,Bの
各色データについて同じ処理を実行する。説明の便宜
上、R色のデータについて施す処理を例にとって説明す
る。オフセット座標算出処理が開始されると、CPUは
カラー画像データRdと先に求められたベースポイント
Rbに対応する格子点の座標値R(irk)との差分を
変数DUM1として算出する(ステップS230)。変
数DUM1は、図15に示した座標系において格子点か
らのオフセットを表す値となる。次に、DUM2=DU
M1/Rdist×Drを演算して、変数DUM2を算
出する(ステップS235)。ここで、Rdistはカ
ラー画像データRdが属する小格子のR方向の格子点間
隔であり、Drは予め定めた仮想格子点間隔である。つ
まり、変数DUM2は上述の演算により、小格子の格子
点間隔を仮想格子点間隔Drに変換した座標系における
オフセット座標値を表すことになる。次に、CPUは変
数DUM2を整数化し、これをオフセット座標値とする
(ステップS240)。整数化はいわゆる丸め誤差を小
さくする観点から、小数点以下を四捨五入することが望
ましいが、小数点以下を切り捨てまたは切り上げするも
のとしてもよい。以上の処理により格子点間隔を仮想格
子点間隔Drに変換した場合のオフセット座標値を求め
ることを正規化処理と呼ぶものとする。次のステップに
おいてCPUは、R,G,B全色について上記処理が終
了しているか否かを判定し(ステップS245)、全色
について処理が終了していない場合には、G,Bの各色
についても同様の正規化処理(ステップS230〜S2
40)を実行し、オフセット座標を算出する。
In the offset coordinate calculation processing, the same processing is executed for each of the R, G, and B color data. For convenience of explanation, a process performed on R-color data will be described as an example. When the offset coordinate calculation process is started, the CPU calculates a difference between the color image data Rd and the coordinate value R (irk) of the grid point corresponding to the base point Rb previously obtained as a variable DUM1 (step S230). . The variable DUM1 is a value representing an offset from a grid point in the coordinate system shown in FIG. Next, DUM2 = DU
The variable DUM2 is calculated by calculating M1 / Rdist × Dr (step S235). Here, Rdist is a grid point interval in the R direction of the small grid to which the color image data Rd belongs, and Dr is a predetermined virtual grid point interval. That is, the variable DUM2 represents the offset coordinate value in the coordinate system obtained by converting the grid point interval of the small grid into the virtual grid point interval Dr by the above-described calculation. Next, the CPU converts the variable DUM2 into an integer, and uses it as an offset coordinate value (step S240). In order to reduce the so-called rounding error, it is preferable to round off the decimal part. However, the integer part may be rounded down or rounded up. Obtaining the offset coordinate value when the grid point interval is converted into the virtual grid point interval Dr by the above processing is referred to as normalization processing. In the next step, the CPU determines whether or not the above processing has been completed for all the R, G, B colors (step S245). For the same normalization processing (steps S230 to S2).
40) is executed to calculate offset coordinates.

【0120】本実施例では、仮想格子点間隔Drは低濃
度領域の格子点間隔に一致させ、R,G,Bの各方向で
も一致させている。低濃度領域とは、図15において
R,G,B方向において座標値が大きい領域をいう。先
に述べた通り、低濃度領域では色補正におけるわずかな
誤差が画質の劣化につながる可能性があるが、仮想格子
点間隔Drを低濃度領域の格子点間隔と一致させること
により、この領域では正規化処理に伴う丸め誤差を生じ
なくなり、良好な画質が得られるからである。
In this embodiment, the virtual grid point interval Dr is made to coincide with the lattice point interval in the low density area, and is also made coincident in each of the R, G, and B directions. The low-density area refers to an area having a large coordinate value in the R, G, and B directions in FIG. As described above, a slight error in color correction may lead to deterioration of image quality in a low-density area, but by making the virtual grid point interval Dr equal to the grid point interval in the low-density area, This is because rounding errors due to the normalization processing do not occur, and good image quality can be obtained.

【0121】また、仮想格子点間隔Drと低濃度領域の
格子点間隔とが一致していない場合であっても両者の比
(仮想格子点間隔/格子点間隔)が必ず整数となるよう
にすれば、正規化処理を行っても丸め誤差を生じず、良
好な画質を得ることができる。つまり、格子点間隔が仮
想格子点間隔Drの1/整数となるようにして、仮想格
子点間隔Drを格子点間隔よりも広くなるように両者を
設定してもよい。かかる条件下で、例えば間隔の異なる
複数の格子点間隔の最小公倍数となるように仮想格子点
間隔Drを設定すれば、いずれの格子においても丸め誤
差を生じないような仮想格子点間隔を設定することも可
能である。なお、仮想格子点間隔Drは自由に設定し得
るものであり必ずしもいずれかの格子点間隔と一致して
いる必要はない。また、R,G,B方向でそれぞれ異な
る間隔Dr,Dg,Dbとしてもよい。
Even if the virtual grid point interval Dr and the grid point interval in the low density area do not match, the ratio between them (virtual grid point interval / grid point interval) must always be an integer. For example, even if the normalization processing is performed, a rounding error does not occur, and good image quality can be obtained. That is, both may be set so that the grid point interval is 1 / integer of the virtual grid point interval Dr, and the virtual grid point interval Dr is wider than the grid point interval. Under such conditions, for example, if the virtual grid point interval Dr is set so as to be the least common multiple of a plurality of grid point intervals having different intervals, a virtual grid point interval that does not cause a rounding error in any grid can be set. Is also possible. Note that the virtual grid point interval Dr can be set freely, and does not necessarily need to match any of the grid point intervals. Further, the intervals Dr, Dg, and Db may be different from each other in the R, G, and B directions.

【0122】さらに具体的に説明する。本実施例では、
R,G,Bの各階調数が0〜255の256階調であ
り、格子点間隔が16階調である。第1実施例では、原
点から格子点間隔を16で色空間を分割し、格子点の座
標値を0,16,32・・・240,(256)として
いたため、最大座標値255は格子点とはなっていなか
った。これに対し、第2実施例では、最大座標値255
から格子点間隔16で色空間を分割し、原点付近の格子
点間隔を15としている。このとき、格子点座標は、
0,15,31・・・239,255となっている。か
かる分割において仮想格子点間隔Drを間隔16とすれ
ば、もっとも高濃度の領域(原点付近の小格子)以外で
は、丸め誤差を生じない。高濃度領域では、一般に丸め
誤差の画質への影響は小さいため、良好な画質を得るこ
とができる。また、仮想格子点間隔Drを格子点間隔1
5と16の最小公倍数である240とすれば、いずれの
領域でも丸め誤差を生じないようにすることができる。
This will be described more specifically. In this embodiment,
The number of gradations of R, G, and B is 256 gradations from 0 to 255, and the lattice point interval is 16 gradations. In the first embodiment, the color space is divided by the grid point interval of 16 from the origin, and the coordinate values of the grid points are set to 0, 16, 32... 240, (256). It was not. On the other hand, in the second embodiment, the maximum coordinate value 255
, The color space is divided by a grid point interval of 16, and the grid point interval near the origin is set to 15. At this time, the grid point coordinates are
0, 15, 31,... 239, 255. In this division, if the virtual grid point interval Dr is set to 16, no rounding error occurs except in the region with the highest density (small lattice near the origin). In the high-density region, the rounding error generally has little effect on the image quality, so that good image quality can be obtained. Also, the virtual grid point interval Dr is set to the grid point interval 1
If the least common multiple of 5 and 16 is 240, rounding errors can be prevented from occurring in any area.

【0123】なお、仮想格子点間隔は自由に設定し得る
ものではあるが、いずれの格子点間隔よりも広くするこ
とが望ましい。仮想格子点間隔Drよりも広い格子点間
隔を有する領域が存在する場合には、次のような不都合
が生じるおそれがあるからである。例えば、仮想格子点
間隔Drを値2とし、格子点間隔6の区間を正規化処理
する場合を考える。もとの座標系におけるオフセット座
標値0〜5の各点は、正規化処理(座標値/6×2を小
数点以下四捨五入する演算を行う)後の座標系において
順番に0,0,1,1,1,2なる座標値となる。処理
前は座標値0〜5まで6点あったデータが、正規化処理
における整数化の段階で0,1,2の3点のいずれかに
割り当てられてしまう。この結果、原座標系における座
標値2〜4までの3点に対する色補正データは同じ値を
とることになるため、画像処理において誤差が生じるこ
とになる。このような不都合は、仮想格子点間隔Drが
原座標系の格子点間隔よりも狭い部分で生じる。一方、
上記整数を値6とし、仮想格子点間隔Drと格子点間隔
が一致している場合には、このような誤差が生じないの
は明らかである。従って、先に述べた通り、仮想格子点
間隔Drを、いずれの格子点間隔よりも広くなるように
設定することが望ましい。
Although the virtual grid point interval can be set freely, it is desirable to make it wider than any grid point interval. This is because the following inconvenience may occur when there is an area having a grid point interval wider than the virtual grid point interval Dr. For example, let us consider a case where the value of the virtual grid point interval Dr is 2 and the section of the grid point interval 6 is normalized. The points having offset coordinate values 0 to 5 in the original coordinate system are sequentially 0, 0, 1, 1 in the coordinate system after the normalization processing (the operation of rounding off the coordinate value / 6 × 2 to the decimal point). , 1 and 2. Before the processing, data having six points from the coordinate values 0 to 5 are assigned to any of the three points 0, 1, and 2 at the stage of integer conversion in the normalization processing. As a result, the color correction data for the three points of the coordinate values 2 to 4 in the original coordinate system have the same value, so that an error occurs in the image processing. Such an inconvenience occurs in a portion where the virtual grid point interval Dr is smaller than the grid point interval in the original coordinate system. on the other hand,
It is obvious that such an error does not occur when the above-mentioned integer is set to the value 6 and the virtual grid point interval Dr matches the grid point interval. Therefore, as described above, it is desirable to set the virtual grid point interval Dr to be wider than any of the grid point intervals.

【0124】一方、オフセット座標算出処理は、図20
に示す方法により行うものとしてもよい。この場合は、
オフセット座標テーブルとして、R方向の座標値に対応
してオフセット座標を記憶したテーブルを用意してお
く。オフセット座標テーブルの一例を図21に示す。オ
フセット座標テーブルは、R方向,G方向,B方向の各
座標値に対応してそれぞれ用意される3種類の1次元の
テーブルである。図21には、R方向の座標値に対応す
るテーブル例を示した。例えば、原点以降の格子点の座
標が値10、値20・・・であり、仮想格子点間隔が値
10であるとすれば、図21に示す通りオフセット座標
テーブルには、座標0〜9までは原点がベースポイント
となるためカラー画像データRdの座標値がそのままオ
フセット座標値として記憶されており、座標10〜19
までは格子点1(座標値10)がベースポイントとなる
ため、カラー画像データからベースポイントの座標値
(値10)を引いた値がオフセット座標値として記憶さ
れており、以下格子点の座標値に応じて同様にデータが
記憶されている。この例では、簡単のために格子点間隔
と仮想格子点間隔が一致した場合を示したが、両者が異
なっている場合には、先に述べた正規化処理後の値がオ
フセット座標値として記憶されることになる。オフセッ
ト座標算出処理では、図20に示す通り、カラー画像デ
ータの座標値Rdに対応したオフセット座標テーブルの
値を読み込むのである(ステップS245)。次のステ
ップにおいてCPUは、R,G,B全色について上記処
理が終了しているか否かを判定し(ステップS25
0)、全色について処理が終了していない場合には、
G,Bの各色についても同様の処理(ステップS24
5)を実行する。
On the other hand, the offset coordinate calculation process is performed as shown in FIG.
May be performed by the method shown in FIG. in this case,
As the offset coordinate table, a table storing offset coordinates corresponding to the coordinate values in the R direction is prepared. FIG. 21 shows an example of the offset coordinate table. The offset coordinate table is a three-dimensional one-dimensional table prepared for each coordinate value in the R, G, and B directions. FIG. 21 shows a table example corresponding to the coordinate values in the R direction. For example, assuming that the coordinates of the grid points after the origin are value 10, value 20... And the virtual grid point interval is value 10, as shown in FIG. Since the origin is the base point, the coordinate values of the color image data Rd are stored as offset coordinate values as they are, and the coordinates 10 to 19 are stored.
Up to this point, the grid point 1 (coordinate value 10) becomes the base point, so a value obtained by subtracting the coordinate value (value 10) of the base point from the color image data is stored as the offset coordinate value. Is stored in a similar manner. In this example, for the sake of simplicity, a case where the lattice point interval and the virtual lattice point interval coincide with each other is shown. Will be done. In the offset coordinate calculation process, as shown in FIG. 20, the value of the offset coordinate table corresponding to the coordinate value Rd of the color image data is read (step S245). In the next step, the CPU determines whether or not the above processing has been completed for all the R, G, and B colors (step S25).
0) If the processing has not been completed for all colors,
Similar processing is performed for each color of G and B (step S24).
Execute 5).

【0125】こうすることにより、図19のような演算
処理が不要となるため、オフセット座標の算出を高速で
行うことができる。上記テーブルを用意するメモリが必
要となるが、1次元のテーブルを用意すれば済むため、
メモリ容量は比較的小さくて済む。また、R,G,Bの
各方向で格子点の座標値が一致している場合には、3方
向の基準格子点テーブルを共通化することができ、1種
類のオフセット座標テーブルを用意すればよいため、必
要となるメモリ容量はより一層小さくて済む。3方向の
オフセット座標テーブルを共通化してもよい。
This eliminates the need for the calculation processing as shown in FIG. 19, so that the offset coordinates can be calculated at a high speed. Although a memory for preparing the above table is required, a one-dimensional table only needs to be prepared.
The memory capacity is relatively small. When the coordinate values of the grid points match in each of the R, G, and B directions, the reference grid point tables in three directions can be shared, and if one type of offset coordinate table is prepared As a result, the required memory capacity can be further reduced. The offset coordinate tables in three directions may be shared.

【0126】なお、上述のベースポイント算出処理(図
16,図17)およびオフセット座標算出処理(図1
9,図20)は自由に組み合わせて実行できるものであ
る。つまり、メモリ容量に余裕がない場合等に図16の
ベースポイント算出処理と図19のオフセット座標算出
処理を実行するものとしてもよいし、若干メモリ容量に
余裕がある場合に基準格子点テーブルまたはオフセット
座標テーブルのいずれか一方をもつ(図17と図19の
処理内容の組み合わせ、または図16と図20の処理内
容の組み合わせ)ものとしてもよい。また、メモリ容量
が十分にある場合に基準格子点テーブルまたはオフセッ
ト座標テーブルの双方をもつ(図17と図20の処理内
容の組み合わせ)としてもよい。
The above-described base point calculation processing (FIGS. 16 and 17) and offset coordinate calculation processing (FIG. 1)
9, FIG. 20) can be freely combined and executed. That is, the base point calculation processing of FIG. 16 and the offset coordinate calculation processing of FIG. 19 may be executed when there is not enough memory capacity. It may have one of the coordinate tables (a combination of the processing contents of FIGS. 17 and 19 or a combination of the processing contents of FIGS. 16 and 20). When the memory capacity is sufficient, both the reference grid point table and the offset coordinate table may be provided (combination of the processing contents of FIGS. 17 and 20).

【0127】以上で説明した画像処理装置によれば、色
補正テーブルをオフセット補正テーブルOTを用いて補
間することにより画像処理を行うため、第1実施例と同
様、各画素について非常に誤差の小さい色補正を高速に
実行することができる。しかも、第2実施例では、色空
間を不均一な間隔で分割することができるため、例えば
低濃度領域を他の領域に比べて細かい間隔で分割するこ
とが可能となり、画質を向上させることができる。ま
た、各次元間で格子点間隔を一致させる必要もないた
め、視覚感度に応じて各色成分(次元)ごとに格子点間
隔を自由に設定できる。この結果、画質を維持したま
ま、色補正テーブルの容量を抑えることも可能となる。
According to the image processing apparatus described above, since the image processing is performed by interpolating the color correction table using the offset correction table OT, the error of each pixel is very small as in the first embodiment. Color correction can be performed at high speed. Moreover, in the second embodiment, since the color space can be divided at non-uniform intervals, for example, a low-density area can be divided at smaller intervals than other areas, and the image quality can be improved. it can. Further, since it is not necessary to match the grid point intervals between the dimensions, the grid point intervals can be freely set for each color component (dimension) according to the visual sensitivity. As a result, it is possible to reduce the capacity of the color correction table while maintaining the image quality.

【0128】以上で説明した画像処理装置における画像
処理は、コンピュータ90がプログラムに従って図9に
示す種々の処理を実行することにより実現しているもの
である。従って、本発明は上記各機能を実現するプログ
ラムを記憶した記憶媒体としての実施の形態をとること
もできる。つまり、上述の機能を実現するプログラム
は、フロッピディスクやCD−ROM等の、コンピュー
タ読み取り可能な記憶媒体に記憶された形態で提供され
る。コンピュータ90は、その記憶媒体からプログラム
を読み取って内部記憶装置または外部記憶装置に転送す
る。あるいは、通信経路を介してコンピュータにプログ
ラムを供給するようにしてもよい。プログラムの機能を
実現する時には、内部記憶装置に格納されたプログラム
がコンピュータのマイクロプロセッサによって実行され
る。また、記憶媒体に記憶されたプログラムをコンピュ
ータが読み取って直接実行するようにしてもよい。
The image processing in the image processing apparatus described above is realized by the computer 90 executing various processes shown in FIG. 9 according to programs. Therefore, the present invention can also be embodied as a storage medium storing a program for realizing each of the above functions. That is, the program for realizing the above functions is provided in a form stored in a computer-readable storage medium such as a floppy disk or a CD-ROM. The computer 90 reads the program from the storage medium and transfers the program to an internal storage device or an external storage device. Alternatively, a program may be supplied to a computer via a communication path. When implementing the functions of the program, the program stored in the internal storage device is executed by the microprocessor of the computer. Further, the computer may read the program stored in the storage medium and directly execute the program.

【0129】また、図9に示す種々の処理を実行するプ
ログラムとは別に、格子点情報テーブルと、色補正テー
ブルと、オフセット補正テーブルとを記録した記録媒体
としての実施の態様をとることもできる。この場合、コ
ンピュータ90は、この記録媒体に記録された上記各テ
ーブルを用いつつ、図9に示す種々の処理を実行する。
なお、このような記録媒体には、基準格子点テーブルお
よびオフセット座標テーブルを併せて記録するものとし
てもよい。
In addition to the programs for executing the various processes shown in FIG. 9, an embodiment may be adopted as a recording medium on which a grid point information table, a color correction table, and an offset correction table are recorded. . In this case, the computer 90 executes various processes shown in FIG. 9 while using the tables recorded on the recording medium.
It should be noted that such a recording medium may be used to record a reference grid point table and an offset coordinate table together.

【0130】上記実施例では、画像処理ルーチンをCP
Uがソフト的に実行するものとして説明したが、これを
ハードウェアで構成するものとしてもよい。また、ハー
ドウェアで構成された画像処理装置をプリンタ22に組
み込むものとしてもよい。
In the above-described embodiment, the image processing routine is set to the CP
Although U is described as being executed by software, it may be configured by hardware. Further, an image processing device constituted by hardware may be incorporated in the printer 22.

【0131】ハードウェアで装置を構成する場合の色補
正テーブルの構成例を図22に示す。これは、例えばシ
アンについての色補正テーブルを図22に示すようにR
OMに記憶させ、格子点のR,G,B方向の格子点番号
(ir,ig,ib)に所定のアドレス線を割り当てる
ことによって、座標値に対応したシアン補正データがデ
ータバスから出力されるようにしたものである。他の色
についての補正テーブルも同様に構成できる。なお、C
Sなる信号線は、このROMへの信号入力の有効・無効
を制御するチップセレクト信号を意味する。次に、オフ
セット補正テーブルの構成例を図23に示す。これはR
OMにオフセット補正データを記憶させ、オフセット座
標データに所定のアドレス線を割り当てることによっ
て、オフセット補正データがデータバスから出力される
ようにしたものである。ここで、図23のアドレス線
(A8〜A10)に割り当てられたコントロールコード
とは、オフセット補正データは一つのオフセット座標デ
ータに対して数種類(格子点特定データ、重み係数デー
タ)存在するため、その種別判定に用いられるものであ
る。
FIG. 22 shows an example of the configuration of a color correction table when the device is configured by hardware. This is because, for example, a color correction table for cyan is set to R as shown in FIG.
By storing the data in the OM and assigning a predetermined address line to the grid point numbers (ir, ig, ib) in the R, G, and B directions of the grid points, cyan correction data corresponding to the coordinate values is output from the data bus. It is like that. Correction tables for other colors can be similarly configured. Note that C
The signal line S means a chip select signal for controlling the validity / invalidity of the signal input to the ROM. Next, FIG. 23 shows a configuration example of the offset correction table. This is R
The offset correction data is stored in the OM, and a predetermined address line is assigned to the offset coordinate data, so that the offset correction data is output from the data bus. Here, the control code assigned to the address lines (A8 to A10) in FIG. 23 means that there are several types of offset correction data (grid point specifying data and weight coefficient data) for one piece of offset coordinate data. This is used for type determination.

【0132】(4)第3実施例:本発明は、画像処理装
置における色補正処理以外にも、種々の装置について適
用可能である。以下に第3実施例として、本発明の制御
方法を航空機の飛行制御装置における制御処理に適用し
た例を示す。図24は、航空機の飛行制御装置のソフト
ウェア構成を示すブロック図である。本実施例の飛行制
御装置は、操縦指令入力部302,飛行状態検出部30
4、重量推定部306,抵抗推定部308,推力目標値
設定部310、エンジン制御部312から構成されてい
る。実際には、航空機300に搭載されたフライトコン
ピュータおよびセンサが上述したそれぞれの機能ブロッ
クを構成することにより飛行制御装置として機能してい
る。この飛行制御装置は、操縦指令値に応じて航空機3
00に搭載されたターボファンエンジンの推力を制御し
ている。もちろん、機体の飛行姿勢を制御する機能も有
しているが、図示の都合上、エンジンの推力を制御する
機能ブロックのみを示した。
(4) Third Embodiment The present invention can be applied to various apparatuses other than the color correction processing in the image processing apparatus. Hereinafter, as a third embodiment, an example in which the control method of the present invention is applied to control processing in a flight control device of an aircraft will be described. FIG. 24 is a block diagram illustrating a software configuration of the aircraft flight control device. The flight control device according to the present embodiment includes a control command input unit 302, a flight state detection unit 30
4, a weight estimating unit 306, a resistance estimating unit 308, a target thrust value setting unit 310, and an engine control unit 312. Actually, the flight computer and the sensors mounted on the aircraft 300 function as the flight control device by configuring the respective functional blocks described above. This flight control device controls the aircraft 3 in accordance with the control command value.
00 controls the thrust of the turbofan engine mounted on the engine. Of course, it also has a function of controlling the flight attitude of the aircraft, but for convenience of illustration, only a functional block for controlling the thrust of the engine is shown.

【0133】この飛行制御装置は、操縦指令入力部30
2を介して、航空機300の飛行状態に関する指令値を
入力する。指令値は、パイロットがコックピット内に設
置された入力パネルを通じて飛行高度、飛行速度を入力
することにより与えられる場合もあるし、操縦輪および
スロットルレバーなどを操作することにより与えられる
場合もある。重量推定部306は、航空機300の重量
を算出する。重量は、例えば、初期の飛行重量から消費
した燃料重量を減ずることにより推算することができ
る。
The flight control device includes a control command input unit 30
2, a command value relating to the flight state of the aircraft 300 is input. The command value may be given by a pilot inputting a flight altitude and a flight speed through an input panel installed in a cockpit, or may be given by operating a control wheel and a throttle lever. Weight estimating section 306 calculates the weight of aircraft 300. The weight can be estimated, for example, by subtracting the consumed fuel weight from the initial flight weight.

【0134】操縦指令値として入力された飛行高度、飛
行速度、及び推定された重量は抵抗推定部308に受け
渡される。抵抗推定部308では、これらのデータに基
づいて航空機300の空力抵抗を算出する。空力抵抗
は、抵抗係数CDと主翼面積(m2)と動圧(kgf/
m2)の積により求められる。動圧は、航空機300の
飛行状態検出部304で検出した飛行高度およびマッハ
数に応じて一義的に決定される。抵抗係数は航空機の飛
行速度および揚力係数CLに応じてテーブルを補間する
ことにより求められる無次元量である。揚力係数CL
は、航空機の重量を主翼面積と動圧で除したて得られる
無次元量である。揚力係数CLは、飛行中の迎え角α、
即ち機体軸Xbと速度ベクトルVeとのなす角度に応じ
て変化する。
The flight altitude, flight speed, and estimated weight input as the steering command value are passed to the resistance estimating unit 308. The resistance estimating unit 308 calculates the aerodynamic resistance of the aircraft 300 based on these data. The aerodynamic resistance is calculated by the drag coefficient CD, the wing area (m2),
m2). The dynamic pressure is uniquely determined according to the flight altitude and the Mach number detected by the flight state detection unit 304 of the aircraft 300. The resistance coefficient is a dimensionless quantity obtained by interpolating a table according to the flight speed of the aircraft and the lift coefficient CL. Lift coefficient CL
Is a dimensionless quantity obtained by dividing the weight of the aircraft by the wing area and the dynamic pressure. The lift coefficient CL is determined by the angle of attack α during flight,
That is, it changes according to the angle between the body axis Xb and the speed vector Ve.

【0135】抵抗係数の算出方法を図25および図26
に基づいて説明する。図25は、航空機300について
マッハ数、揚力係数CLと抵抗係数CDとの関係を表す
グラフである。マッハ数M1において、揚力係数CLと
抵抗係数CDとの関係は図示する曲線で与えられる。マ
ッハ数に応じて曲線は変化する。つまり、揚力係数CL
とマッハ数の2つのパラメータを特定すれば、抵抗係数
CDは一義的に決まる。本実施例の飛行制御装置は、か
かるグラフをテーブルとして記憶している。本実施例に
おけるテーブルのイメージを図26に示す。本実施例の
テーブルは、揚力係数CLとマッハ数の2次元の座標空
間において、図示する通り離散的に存在する格子点を定
義し、各格子点ごとに抵抗係数CDを記憶している。抵
抗係数CDは、このテーブルを揚力係数CLおよびマッ
ハ数に応じて補間することにより求められる。
FIGS. 25 and 26 show a method of calculating the resistance coefficient.
It will be described based on. FIG. 25 is a graph showing the relationship between the Mach number, the lift coefficient CL, and the resistance coefficient CD for the aircraft 300. At the Mach number M1, the relationship between the lift coefficient CL and the resistance coefficient CD is given by a curve shown. The curve changes according to the Mach number. That is, the lift coefficient CL
If the two parameters of the Mach number are specified, the resistance coefficient CD is uniquely determined. The flight control device of the present embodiment stores the graph as a table. FIG. 26 shows an image of the table in this embodiment. The table of this embodiment defines discrete grid points as shown in the two-dimensional coordinate space of the lift coefficient CL and the Mach number, and stores a resistance coefficient CD for each grid point. The resistance coefficient CD is obtained by interpolating this table according to the lift coefficient CL and the Mach number.

【0136】実際には、揚力係数CLおよびマッハ数は
連続的に変化する値である。しかし、本実施例では、揚
力係数CLは0.01刻み、マッハ数は0.01M刻み
の値を採るものとしている。これよりも小さい値は、セ
ンサの検出分解能や重量の推定精度および抵抗値に与え
る影響を考慮すれば、重要な意味を持たないからであ
る。図26に示した格子点は、これらの最小刻みよりも
大きな間隔で等間隔に設定されている。揚力係数は0.
1刻み、マッハ数は0.1M刻みで格子点は設定されて
いる。
Actually, the lift coefficient CL and the Mach number are values that change continuously. However, in the present embodiment, the lift coefficient CL takes a value in increments of 0.01, and the Mach number takes a value in increments of 0.01M. This is because a value smaller than this has no significant meaning in consideration of the influence on the detection resolution of the sensor, the estimation accuracy of the weight, and the resistance value. The grid points shown in FIG. 26 are set at equal intervals larger than these minimum steps. The lift coefficient is 0.
Lattice points are set in increments of 1 and the Mach number is in increments of 0.1M.

【0137】本実施例では、上述した抵抗係数CDの2
次元テーブルを補間する際に用いるオフセット補正テー
ブルを用意する。オフセット補正テーブルの内容は、先
に第1実施例で説明したテーブルと同様である。第1実
施例では、オフセット補正テーブルは、補間において乗
ぜられる重み値および補間に使用する格子点を特定する
ための格子点特定データをR,G,Bのオフセット座標
値に対応して記憶するテーブルであった。本実施例にお
けるオフセット補正テーブルは、重み値及び格子点特定
データを、揚力係数CLとマッハ数に対応して記憶する
テーブルである。先に説明した通り、本実施例では、揚
力係数CLおよびマッハ数は、格子点の間隔をそれぞれ
10等分した値を取りうる。従って、オフセット補正テ
ーブルは、揚力係数CLとマッハ数について、10×1
0通りの組み合わせに対し、それぞれ上記データを有す
るテーブルとなっている。
In this embodiment, the resistance coefficient CD of 2
An offset correction table used when interpolating the dimension table is prepared. The content of the offset correction table is the same as the table described in the first embodiment. In the first embodiment, the offset correction table is a table that stores weight values to be multiplied in interpolation and grid point specifying data for specifying grid points to be used for interpolation in correspondence with the R, G, and B offset coordinate values. Met. The offset correction table in the present embodiment is a table that stores weight values and grid point specifying data in association with the lift coefficient CL and the Mach number. As described above, in the present embodiment, the lift coefficient CL and the Mach number can take values obtained by equally dividing the intervals between the lattice points by ten. Therefore, the offset correction table indicates that the lift coefficient CL and the Mach number are 10 × 1
The table has the above data for each of the 0 combinations.

【0138】本実施例では、かかるオフセット補正テー
ブルを利用して抵抗データの補間演算を実行する。ま
ず、図10及び図11と同様の処理によって、揚力係数
CLとマッハ数を、図26の格子点の座標、即ちベース
ポイントと、オフセット座標とに変換する。第1実施例
では、R,G,Bの3次元空間でこの座標変換を行って
いたが、本実施例では揚力係数CLとマッハ数の2次元
空間で座標変換を行う点で相違するのみである。次に、
オフセット座標値に基づいて、オフセット補正テーブル
を参照し、格子点特定データおよび重み値を求める。こ
うして求められた重み値を、それぞれ格子点特定データ
により特定される各格子点に記憶された抵抗係数CDに
乗ずることによって、入力された飛行高度、マッハ数に
対応した抵抗係数CDを求めるのである。抵抗推定部3
08は、こうして算出された抵抗係数CDに主翼面積
(m2)および動圧(kgf/m2)を乗ずることによ
り、入力された飛行高度、マッハ数で飛行する際の航空
機300の抵抗(kgf)を推定する。
In this embodiment, the interpolation calculation of the resistance data is executed by using the offset correction table. First, the lift coefficient CL and the Mach number are converted into the coordinates of the lattice points in FIG. 26, that is, the base points and the offset coordinates by the same processing as in FIGS. In the first embodiment, the coordinate conversion is performed in the three-dimensional space of R, G, and B. However, this embodiment is different only in that the coordinate conversion is performed in the two-dimensional space of the lift coefficient CL and the Mach number. is there. next,
Based on the offset coordinate value, the grid point specifying data and the weight value are obtained by referring to the offset correction table. By multiplying the obtained weight value by the resistance coefficient CD stored at each grid point specified by the grid point specifying data, the resistance coefficient CD corresponding to the input flight altitude and Mach number is obtained. . Resistance estimation unit 3
08 multiplies the resistance coefficient CD thus calculated by the wing area (m2) and the dynamic pressure (kgf / m2) to obtain the resistance (kgf) of the aircraft 300 when flying at the input flight altitude and Mach number. presume.

【0139】なお、上記の説明では、抵抗係数CDを記
憶したテーブルを2次元のテーブルとして説明したが、
図26に示す通り、例えば、フラップの角度を要素に加
えた3次元テーブルとして扱うものとしてもよい。
In the above description, the table storing the resistance coefficient CD has been described as a two-dimensional table.
As shown in FIG. 26, for example, a three-dimensional table in which flap angles are added to elements may be handled.

【0140】一方、飛行状態検出部304は、航空機3
00の飛行状態に関するパラメータを検出する。例え
ば、現在の飛行高度、飛行マッハ数、及び現在のスロッ
トルレイティングなどが挙げられる。スロットルレイテ
ィング(%)とは、エンジンの推力を調整するパラメー
タをいい、スロットルレバーの角度と関連付けられてい
る。これらのデータおよび抵抗推定部308で推定され
た抵抗は推力目標値設定部310に受け渡される。必要
推力設定部310は、航空機300の飛行状態を、操縦
指令入力部302により入力された飛行高度およびマッ
ハ数に移行するための推力目標値を以下の手順で算出す
る。
On the other hand, the flight state detection unit 304
The parameters relating to the flight state of 00 are detected. For example, the current flight altitude, the flight Mach number, the current throttle rating, and the like are given. The throttle rating (%) refers to a parameter for adjusting the thrust of the engine, and is associated with the angle of the throttle lever. These data and the resistance estimated by the resistance estimating unit 308 are transferred to the target thrust value setting unit 310. The necessary thrust setting unit 310 calculates a thrust target value for shifting the flight state of the aircraft 300 to the flight altitude and the Mach number input by the control command input unit 302 in the following procedure.

【0141】推力目標値設定部310は、まず、飛行状
態検出部304から受け渡されたデータに基づいて、現
在のエンジン推力を求める。エンジン推力は、図27に
示すテーブルを補間することにより求める。図27に
は、高度H1(ft)における、マッハ数及びスロット
ルレイティングと推力の対応を示した。R1,R2、R
3,R4の順にスロットルレイティングが低くなり、推
力が小さくなる。このようにターボファンエンジンの推
力は、航空機の飛行高度、マッハ数およびスロットルレ
イティングを特定すると一義的に求めることができる。
The target thrust value setting section 310 first obtains the current engine thrust based on the data passed from the flight state detection section 304. The engine thrust is obtained by interpolating the table shown in FIG. FIG. 27 shows the correspondence between the Mach number, the throttle rating, and the thrust at the altitude H1 (ft). R1, R2, R
The throttle rating decreases in the order of 3, R4, and the thrust decreases. As described above, the thrust of the turbofan engine can be uniquely obtained by specifying the flight altitude, Mach number, and throttle rating of the aircraft.

【0142】本実施例におけるテーブルのイメージを図
28に示す。本実施例のテーブルは、高度、マッハ数及
びスロットルレイティングの3次元の座標空間におい
て、図示する通り離散的に存在する格子点を定義し、各
格子点ごとに推力を記憶している。推力は、この3次元
テーブルを高度、マッハ数、スロットルレイティングの
組み合わせに応じて補間することにより求められる。
FIG. 28 shows an image of the table in this embodiment. The table of the present embodiment defines discrete grid points as shown in the three-dimensional coordinate space of altitude, Mach number, and throttle rating, and stores thrust for each grid point. Thrust is obtained by interpolating this three-dimensional table according to a combination of altitude, Mach number, and throttle rating.

【0143】実際には、これらの諸量は連続的に変化す
る値である。しかし、本実施例では、高度は1000f
t刻み、マッハ数は0.01M刻み、スロットルレイテ
ィングは1%刻みの値を採るものとしている。抵抗係数
CDの補間の場合と同様の理由による。図28に示した
格子点は、これらの最小刻みよりも大きな間隔で等間隔
に設定されている。推力を記憶した3次元テーブルを補
間する際に用いるオフセット補正テーブルも用意されて
いる。オフセット補正テーブルの内容は、先に第1実施
例で説明したテーブルと同様である。つまり、オフセッ
ト補正テーブルは、補間において乗ぜられる重み値およ
び補間に使用する格子点を特定するための格子点特定デ
ータを高度、マッハ数およびスロットルレイティングに
対応して記憶するテーブルである。
In practice, these quantities are continuously changing values. However, in this embodiment, the altitude is 1000f
In increments of t, the Mach number is in increments of 0.01M, and the throttle rating is in increments of 1%. For the same reason as in the case of interpolation of the resistance coefficient CD. The grid points shown in FIG. 28 are set at equal intervals larger than these minimum steps. An offset correction table used when interpolating a three-dimensional table storing thrust is also prepared. The content of the offset correction table is the same as the table described in the first embodiment. In other words, the offset correction table is a table that stores weight values to be multiplied in the interpolation and grid point specifying data for specifying grid points to be used for the interpolation, corresponding to the altitude, the Mach number, and the throttle rating.

【0144】本実施例では、かかるオフセット補正テー
ブルを利用して推力を求める。その手法も第1実施例で
説明した方法と同様である。つまり、飛行高度、マッハ
数およびスロトルレイティングの値をベースポイントと
オフセット座標とに変換し、オフセット座標値に基づい
てオフセット補正テーブルを参照し、格子点特定データ
および重み値を求める。こうして求められた重み値を、
それぞれ格子点特定データに対応した推力に乗ずること
によって、飛行高度、マッハ数およびスロットルレイテ
ィングに対応した推力を求めるのである。この値が現在
の飛行状態における推力となる。
In this embodiment, the thrust is obtained by using the offset correction table. The method is the same as the method described in the first embodiment. That is, the values of the flight altitude, the Mach number, and the throttle rating are converted into base points and offset coordinates, and the offset correction table is referred to based on the offset coordinate values to determine grid point specifying data and weight values. The weight value obtained in this way is
The thrust corresponding to the flight altitude, the Mach number, and the throttle rating is obtained by multiplying the thrust corresponding to the grid point specifying data. This value is the thrust in the current flight state.

【0145】推力目標値設定部310は、現在の飛行状
態における推力と、指令値として入力された飛行状態に
おける推力との偏差に基づき、推力の目標値を設定して
いる。航空機300が定常的に飛行している時は、推力
と抵抗が釣り合っているから、後者の推力は、抵抗推定
部308で算出された抵抗値に等しい。推力の目標値
は、いわゆる比例積分制御によって設定される。上記推
力の偏差に対して所定のゲインを乗ずることにより目標
値を設定するのである。比例積分制御の技術は周知であ
るため、これ以上の詳細な説明は省略する。こうして設
定された推力の目標値は、エンジン制御部312に受け
渡される。
The target thrust value setting section 310 sets a target value of the thrust based on the deviation between the thrust in the current flight state and the thrust in the flight state input as the command value. When the aircraft 300 is constantly flying, the thrust and the resistance are balanced, and the latter thrust is equal to the resistance value calculated by the resistance estimating unit 308. The target value of the thrust is set by so-called proportional integral control. The target value is set by multiplying the thrust deviation by a predetermined gain. Since the technique of proportional integral control is well known, further detailed description is omitted. The target value of the thrust set in this way is transferred to the engine control unit 312.

【0146】エンジン制御部312は、推力の目標値に
基づいて、エンジンのスロットルレイティングを設定す
る。スロットルレイティングの設定は、先に図27およ
び図28に示したテーブルを補間することにより行われ
る。高度およびマッハ数は、飛行状態検出部304で検
出された現在の飛行状態を用いる。本実施例において
は、図27に示す通り、特定の高度およびマッハ数にお
けるスロットルレイティングと推力は、単調増加の関係
にある。従って、スロットルレイティングを徐々に変化
させつつ、図28のテーブルを補間して推力を求めてい
けば、比較的容易にスロットルレイティングの目標値を
設定することができる。この補間演算には、先に推力目
標値設定部310で説明した補間方法を適用することが
できる。もちろん、高度、マッハ数、推力によって特定
される格子点ごとにスロットルレイティングを記憶した
テーブルを補間して求めるものとしてもよい。
The engine control unit 312 sets the throttle rating of the engine based on the target value of the thrust. The setting of the throttle rating is performed by interpolating the tables shown in FIGS. As the altitude and the Mach number, the current flight state detected by the flight state detection unit 304 is used. In this embodiment, as shown in FIG. 27, the throttle rating and the thrust at a specific altitude and Mach number have a monotonically increasing relationship. Therefore, if the thrust is obtained by interpolating the table of FIG. 28 while gradually changing the throttle rating, the target value of the throttle rating can be set relatively easily. The interpolation method described in the thrust target value setting unit 310 can be applied to this interpolation calculation. Of course, it may be obtained by interpolating a table storing the throttle rating for each grid point specified by altitude, Mach number, and thrust.

【0147】以上で説明した制御装置によれば、本発明
の補間演算を適用することにより、抵抗係数CDおよび
エンジンデータの補間を非常に高速に行うことができ
る。従って、航空機300の制御処理を迅速に行うこと
ができ、時間遅れの少ない適切な制御を実現することが
できる。
According to the control device described above, the interpolation of the resistance coefficient CD and the engine data can be performed at a very high speed by applying the interpolation calculation of the present invention. Therefore, control processing of the aircraft 300 can be performed quickly, and appropriate control with less time delay can be realized.

【0148】上記説明では、航空機300を制御する制
御装置を対象に説明した。本発明の制御方法はこれに限
らず、制御に関与するパラメータを記憶したテーブルを
利用する種々の制御処理に適用可能である。制御対象
は、航空機のみならず種々のエンジン、輸送機器、産業
機械などいかなる機械、装置であってもよい。機械的に
動作するものに限らず、オーディオ機器など電気的に動
作するものであってもよい。さらに、各種機器を実際に
制御する場合のみならず、各種機器の動作をシミュレー
トするシミュレータに本発明の制御方法を適用するもの
としてもよい。
In the above description, the control device for controlling aircraft 300 has been described. The control method of the present invention is not limited to this, and can be applied to various control processes using a table storing parameters related to control. The control target may be not only an aircraft but also any machine or device such as various engines, transportation equipment, and industrial machines. Not only those that operate mechanically but also those that operate electrically such as audio equipment may be used. Furthermore, the control method of the present invention may be applied not only to the case where various devices are actually controlled, but also to a simulator that simulates the operation of various devices.

【0149】(5)第4実施例:本発明の制御方法を適
用した第4実施例として、ファジィ制御を行う制御装置
を説明する。図29は、かかる制御装置のソフトウェア
構成を示すブロック図である。実際には、制御装置に搭
載されたCPUおよびメモリがそれぞれの機能ブロック
を実現することにより構成される。なお、本実施例の制
御装置は、第3実施例の制御装置と同様、いかなる装置
をも制御対象とすることができる。以下では、説明の便
宜上、車両を制御対象とした場合を例にとって説明す
る。
(5) Fourth Embodiment: As a fourth embodiment to which the control method of the present invention is applied, a control device for performing fuzzy control will be described. FIG. 29 is a block diagram showing a software configuration of the control device. Actually, the CPU and the memory mounted on the control device are configured by realizing respective functional blocks. Note that the control device of the present embodiment can control any device similarly to the control device of the third embodiment. Hereinafter, for convenience of explanation, a case where a vehicle is set as a control target will be described as an example.

【0150】本実施例のファジィ制御装置は、状態量検
出部400、ファジィ推論部402、メンバシップ関数
404、および制御量出力部406とから構成される。
状態量検出部400は、制御対象の現在の状態量を検出
する。状態量とは、制御に関連するパラメータを意味す
る。制御対象が車両である場合には、例えば、車速、前
の車両との車間距離、車両の加速度などが状態量に相当
する。検出された状態量はファジィ推論部402に受け
渡される。
The fuzzy control device of the present embodiment includes a state quantity detection section 400, a fuzzy inference section 402, a membership function 404, and a control quantity output section 406.
The state quantity detector 400 detects the current state quantity of the control target. The state quantity means a parameter related to control. When the control target is a vehicle, for example, the vehicle speed, the inter-vehicle distance to the preceding vehicle, the acceleration of the vehicle, and the like correspond to the state quantity. The detected state quantity is transferred to the fuzzy inference unit 402.

【0151】ファジィ推論部402は、検出された状態
量に基づいてメンバシップ関数404を参照しつつ、フ
ァジィ推論に基づいて制御量を特定する。ファジィ推論
とは、流動性を含んだ、あいまいなパラメータに基づい
て制御量を特定する処理をいう。例えば、制御対象が車
両である場合、ファジィ推論部402は「車両が遅けれ
ば加速する」というタイプの制御を実行する。車両をあ
る特定の速度に一致させる制御ではなく、「遅い」とい
うあいまいなパラメータを用いて制御するのである。
The fuzzy inference unit 402 specifies the control amount based on the fuzzy inference while referring to the membership function 404 based on the detected state amount. Fuzzy inference refers to a process of specifying a control amount based on ambiguous parameters including liquidity. For example, when the control target is a vehicle, the fuzzy inference unit 402 executes a type of control of “accelerate if the vehicle is slow”. Instead of controlling the vehicle to match a certain speed, the vehicle is controlled using an ambiguous parameter of “slow”.

【0152】このようなあいまいなパラメータを数理的
に表した関数がメンバシップ関数である。図30にメン
バシップ関数の例を示す。図示する通り、メンバシップ
関数は、状態量に対して、0〜1.0のメンバシップ値
を与える関数である。例えば、横軸に車速をとり、縦軸
に「速い」と認識される確率をプロットすればメンバシ
ップ関数を構成することができる。横軸は、制御対象と
なる装置、およびファジィ推論において評価対象となる
パラメータに応じて種々用意される。車速のみならず、
車間距離も考慮して制御を行う場合には、横軸に車間距
離をとり、縦軸に「車間距離が狭い」と感じる確率をプ
ロットしたメンバシップ関数がさらに用意される。メン
バシップ関数は2つ以上の状態量に対してメンバシップ
値を与える2次元的な関数として用意されることもあ
る。本実施例では、図30に示した格子点に対応して、
メンバシップ値を記憶した1次元のテーブルとして用意
した。なお、実際には状態量は連続的に変化する値であ
るが、本実施例では第3実施例と同様の理由から、一定
刻みの限られた値をとるものとした。図30の格子点は
この刻みよりも大きな間隔で設けられている。
A function that mathematically represents such an ambiguous parameter is a membership function. FIG. 30 shows an example of the membership function. As illustrated, the membership function is a function that gives a membership value of 0 to 1.0 to the state quantity. For example, a membership function can be formed by plotting the vehicle speed on the horizontal axis and plotting the probability of being recognized as “fast” on the vertical axis. The horizontal axis is prepared variously according to the device to be controlled and the parameter to be evaluated in fuzzy inference. Not only vehicle speed,
When the control is performed in consideration of the inter-vehicle distance, a membership function is further prepared in which the inter-vehicle distance is plotted on the horizontal axis and the probability of feeling that the inter-vehicle distance is small is plotted on the vertical axis. The membership function may be prepared as a two-dimensional function that gives a membership value to two or more state quantities. In this embodiment, corresponding to the grid points shown in FIG.
It was prepared as a one-dimensional table storing membership values. In practice, the state quantity is a value that changes continuously. However, in the present embodiment, for a reason similar to that of the third embodiment, a limited value at a fixed interval is taken. The grid points in FIG. 30 are provided at intervals larger than this interval.

【0153】ファジィ推論部402は、このメンバシッ
プ関数を状態量に応じて補間してメンバシップ値を求め
る。本実施例の制御装置は、メンバシップ関数の補間す
る際に用いられるオフセット補正テーブルも用意されて
いる。オフセット補正テーブルの内容は、先に第1実施
例で説明したテーブルと同様、補間において乗ぜられる
重み値および補間に使用する格子点を特定するための格
子点特定データを状態量に対応して記憶するテーブルで
ある。
The fuzzy inference unit 402 obtains a membership value by interpolating the membership function according to the state quantity. The control device of the present embodiment also has an offset correction table used when interpolating the membership function. Similar to the table described in the first embodiment, the contents of the offset correction table store weight values to be multiplied in the interpolation and grid point specifying data for specifying grid points to be used for the interpolation corresponding to the state quantities. It is a table to do.

【0154】本実施例では、かかるオフセット補正テー
ブルを利用してメンバシップ値を求める。その手法も第
1実施例で説明した方法と同様である。つまり、状態量
をベースポイントとオフセット座標とに変換し、オフセ
ット座標値に基づいてオフセット補正テーブルを参照
し、格子点特定データおよび重み値を求める。こうして
求められた重み値を、それぞれ格子点特定データに対応
したメンバシップ値に乗ずることによって、状態量に対
応したメンバシップ値を求める。
In this embodiment, the membership value is obtained by using the offset correction table. The method is the same as the method described in the first embodiment. That is, the state quantity is converted into the base point and the offset coordinates, and the grid point specifying data and the weight value are obtained by referring to the offset correction table based on the offset coordinate values. The membership value corresponding to the state quantity is determined by multiplying the weight value thus determined by the membership value corresponding to the grid point specifying data.

【0155】ファジィ推論部402は、こうして算出さ
れたメンバシップ値に基づいて制御量を設定する。例え
ば、「車速が遅く、車間が開いている場合には、加速せ
よ」というルールに基づいて車両を制御する場合、状態
量として検出された車速、車間に基づいてメンバシップ
値を求めることにより、上記条件を満たしているか否か
を判定し、車両を加速すべきか否かを判定するのであ
る。加速の程度をさらにメンバシップ関数で設定する場
合もある。ファジィ推論の内容は、本発明に本質的な部
分ではないため、これ以上の詳細な説明は省略する。こ
うして設定された制御量は制御量出力部406に受け渡
される。制御量出力部406は、設定された制御量に対
応した制御信号を出力して制御対象となる装置を制御す
る。車両が制御対象である場合には、制御量としてアク
セル開度が挙げられる。制御量出力部406はアクセル
開度を調整して、車速を制御するのである。
The fuzzy inference unit 402 sets a control amount based on the membership value calculated as described above. For example, when controlling the vehicle based on the rule of “if the vehicle speed is slow and the distance between the vehicles is open, accelerate the vehicle”, by calculating the membership value based on the vehicle speed detected as the state quantity and the distance between the vehicles, It is determined whether or not the above condition is satisfied, and whether or not the vehicle should be accelerated is determined. The degree of acceleration may be further set by a membership function. Since the content of the fuzzy inference is not an essential part of the present invention, further detailed description is omitted. The control amount thus set is transferred to the control amount output unit 406. The control amount output unit 406 outputs a control signal corresponding to the set control amount and controls a device to be controlled. When the vehicle is a control target, the control amount includes an accelerator opening. The control amount output unit 406 adjusts the accelerator opening to control the vehicle speed.

【0156】本発明の制御方法を適用することにより、
メンバシップ関数の補間速度を向上することができる。
メンバシップ関数の補間はファジイ制御において頻繁に
行われる。従って、本発明の制御方法を上述の態様でメ
ンバシップ関数の補間に適用すれば、ファジィ制御の処
理を非常に高速に実行することができる。かかる効果
は、メンバシップ関数が2次元以上の場合、特に有効で
ある。
By applying the control method of the present invention,
The interpolation speed of the membership function can be improved.
Interpolation of membership functions is frequently performed in fuzzy control. Therefore, if the control method of the present invention is applied to the interpolation of the membership function in the above-described manner, the processing of fuzzy control can be executed at a very high speed. This effect is particularly effective when the membership function has two or more dimensions.

【0157】(6)第5実施例:第5実施例として、座
標変換が必要となる装置の制御処理に本発明の制御方法
を適用した例を説明する。以下では、座標変換の一例と
して極座標系から直交座標系への座標変換を例に説明す
る。図31にかかる座標変換を行う一例を示す。図31
中のeqは赤道、meは0度の経線を示している。Pe
は地球上の点を示しており、LATおよびLONはそれ
ぞれ点Peの緯度(rad)、経度(rad)を示して
いる。Rは、地球の半径である。図示する通り、地球上
の緯度、経度は極座標の一種である。一方、地球上のあ
る点における東西南北の方角は近似的に直交座標とみな
すことができる。
(6) Fifth Embodiment: As a fifth embodiment, an example will be described in which the control method of the present invention is applied to control processing of a device requiring coordinate conversion. Hereinafter, coordinate conversion from a polar coordinate system to a rectangular coordinate system will be described as an example of coordinate conversion. FIG. 31 shows an example of performing the coordinate conversion. FIG.
In the figure, eq indicates the equator, and me indicates the meridian at 0 degrees. Pe
Indicates a point on the earth, and LAT and LON indicate the latitude (rad) and longitude (rad) of the point Pe, respectively. R is the radius of the earth. As shown, the latitude and longitude on the earth are a kind of polar coordinates. On the other hand, the east, west, north and south directions at a point on the earth can be approximately regarded as rectangular coordinates.

【0158】図31は、緯度、経度から地球上のある点
Pe0を中心とした方角により特定される直交座標への
座標変換の様子を示している。かかる座標変換は、例え
ば、いわゆるグローバル・ポジショニング・システム
(以下、GPSという)を用いたナビゲーションシステ
ムにおいて用いられる。GPSは、周知の通り、人工衛
星からの信号に基づいて地球上での位置を知ることがで
きるシステムである。GPSによれば、地球上の位置を
緯度、経度、高度によって知ることができる。一方、ナ
ビゲーションシステムにおいて地図の表示を制御する場
合には、東西南北の方角を基準として現された地図上の
座標系で自己の位置を特定することが望ましい。以下で
は、ナビゲーションシステムが自動車に搭載された場合
を想定し、高度は一定であるものとする。
FIG. 31 shows how coordinates are converted from latitude and longitude to rectangular coordinates specified by a direction centered on a certain point Pe0 on the earth. Such coordinate transformation is used, for example, in a navigation system using a so-called global positioning system (hereinafter, referred to as GPS). As is well known, the GPS is a system that can know a position on the earth based on a signal from an artificial satellite. According to GPS, the position on the earth can be known by latitude, longitude, and altitude. On the other hand, when controlling the display of a map in a navigation system, it is desirable to specify its own position in a coordinate system on a map expressed based on north, south, east and west. In the following, it is assumed that the navigation system is mounted on an automobile, and the altitude is constant.

【0159】緯度、経度を地球上のある点Pe0を原点
として東方向、北方向を軸とする直交座標系に変換する
場合を考える。点Pe0の緯度(rad)、経度(ra
d)が(LAT0,LON0)であるものとする。例え
ば、同じ緯度に存在する点Pe0と点Pe1(LAT
0,LON1)との東西方向の距離Leは、緯線LAT
0(図31の破線eq1参照)の円弧として次式(1
8)の通り与えられる。 Le=R・(LON1−LON0)・cos(LAT0) …(18) 異なる緯度に存在する2点間であっても、両者の緯度の
差が小さければ、近似的に上式(18)により東西方向
の距離を求めることができる。
A case will be considered where the latitude and longitude are converted to an orthogonal coordinate system having the origin at a certain point Pe0 on the earth and the axes of east and north. Latitude (rad) and longitude (ra) of point Pe0
d) is (LAT0, LON0). For example, a point Pe0 and a point Pe1 (LAT
0, LON1) in the east-west direction is the latitude LAT
0 (see the broken line eq1 in FIG. 31) as
It is given as 8). Le = R · (LON1−LON0) · cos (LAT0) (18) Even between two points existing at different latitudes, if the difference between the two latitudes is small, the east and west can be approximated by the above equation (18). The distance in the direction can be determined.

【0160】一方、同じ経度に存在する点Pe0と点P
e2(LAT1,LON0)との南北方向の距離Ln
は、経線の円弧として次式(19)の通り与えられる。 Ln=R・(LAT1−LAT0) …(19) この式は、異なる経度に存在する2点間の場合でも成立
する。
On the other hand, the points Pe0 and P existing at the same longitude
Distance Ln in the north-south direction from e2 (LAT1, LON0)
Is given by the following equation (19) as the arc of the meridian. Ln = R · (LAT1−LAT0) (19) This formula is also valid for a case between two points existing at different longitudes.

【0161】従って、任意の緯度、経度で現される地球
上の点Pe(LAT1,LON1)は、点Pe0を原点
として東方向、北方向を軸とする直交座標系では、上式
(18)および(19)で与えられる距離を用いて(L
e,Ln)と表すことができる。
Accordingly, a point Pe (LAT1, LON1) on the earth represented by an arbitrary latitude and longitude is expressed by the above equation (18) in an orthogonal coordinate system having the point Pe0 as the origin and the axes east and north. Using the distance given by (19) and (L
e, Ln).

【0162】本実施例では、上記座標変換を、補間演算
を用いることにより、次の通り実現する。図32は、本
実施例で用いるテーブルを示す説明図である。本実施例
の座標変換方法では、まず、図32に示す通り、緯度、
経度の組み合わせによっていくつかの格子点を設定し、
それぞれの格子点に対して上記直交座標系の値Le,L
nを記憶したテーブルを用意する。このテーブルを補間
することにより、直交座標系の値Le,Lnを、任意の
緯度、経度に対して求めることができる。
In this embodiment, the coordinate conversion is realized as follows by using an interpolation operation. FIG. 32 is an explanatory diagram illustrating a table used in the present embodiment. In the coordinate conversion method of this embodiment, first, as shown in FIG.
Set some grid points according to the combination of longitude,
For each grid point, the values Le, L of the rectangular coordinate system
A table storing n is prepared. By interpolating this table, the values Le and Ln in the rectangular coordinate system can be obtained for arbitrary latitudes and longitudes.

【0163】図32に示したテーブルの補間方法は、第
1実施例で図9〜図11を用いて説明した補間方法と同
様である。この補間方法は、補間において乗ぜられる重
み値および補間に使用する格子点を特定するための格子
点特定データを緯度、経度の組み合わせに対応して記憶
したオフセット補間テーブルを用意する。かかるテーブ
ルを用意可能とするために、緯度、経度は連続的に変化
し得る実数ではなく、所定の刻みからなる値をとるもの
としている。所定の刻みは、座標変換に求められる精度
に応じて設定可能である。図32のテーブルを補間する
際には、緯度、経度の組み合わせからなる座標値をベー
スポイントとオフセット座標とに変換し、オフセット座
標値に基づいてオフセット補正テーブルを参照して格子
点特定データおよび重み値を求める。こうして求められ
た重み値を、それぞれ格子点特定データに対応して記憶
された座標値Le,Lnに乗ずることによって、座標変
換を行う。
The interpolation method for the table shown in FIG. 32 is the same as the interpolation method described in the first embodiment with reference to FIGS. In this interpolation method, an offset interpolation table is prepared in which weight values to be multiplied in interpolation and grid point specifying data for specifying grid points to be used for interpolation are stored in correspondence with combinations of latitude and longitude. In order to be able to prepare such a table, the latitude and longitude are not real numbers that can change continuously, but take values consisting of predetermined increments. The predetermined increment can be set according to the accuracy required for coordinate conversion. When the table of FIG. 32 is interpolated, coordinate values formed by a combination of latitude and longitude are converted into base points and offset coordinates, and grid point specifying data and weights are referenced by referring to an offset correction table based on the offset coordinate values. Find the value. Coordinate conversion is performed by multiplying the thus obtained weight values by the coordinate values Le and Ln stored corresponding to the grid point specifying data.

【0164】上述した座標変換の式(18)(19)は
線形ではない。従って、本実施例のようにテーブルを補
間することによって、座標変換を行えば、厳密には誤差
を含む。この誤差は、図32のテーブルの格子点間隔に
応じて変化する。従って、座標変換において求められる
精度に応じて、テーブルの格子点間隔を十分細かく設定
しておけば、上記誤差を抑制することができる。
The equations (18) and (19) for the coordinate transformation described above are not linear. Therefore, if coordinate conversion is performed by interpolating the table as in the present embodiment, strictly, errors are included. This error changes according to the grid point interval of the table in FIG. Therefore, if the grid point interval of the table is set sufficiently small in accordance with the accuracy required in the coordinate conversion, the above error can be suppressed.

【0165】本実施例の補間演算によれば、座標変換を
非常に高速に行うことができる。上式(18)は、三角
関数を含んだ計算式である。一般に三角関数は長時間を
要する演算である。本実施例の方法では、座標変換処理
を高速で実行可能とすることにより、以下に示す利点が
ある。例えば、ナビゲーションシステムにおける制御処
理などで、座標変換は頻繁に繰り返し実行される。従っ
て、座標変換を高速に行うことができれば、かかる処理
全体を高速に実行することができる。また、ナビゲーシ
ョンシステム中において上述した座標変換を行う場合に
は、リアルアタイムで実行する必要もある。本実施例の
座標変換方法は、かかる要請にも十分応えることができ
る。
According to the interpolation calculation of this embodiment, the coordinate conversion can be performed at a very high speed. The above equation (18) is a calculation equation including a trigonometric function. Generally, a trigonometric function is an operation that requires a long time. The method of the present embodiment has the following advantages by enabling the coordinate conversion processing to be executed at a high speed. For example, coordinate conversion is frequently and repeatedly executed in control processing in a navigation system or the like. Therefore, if the coordinate conversion can be performed at a high speed, the entire process can be performed at a high speed. Further, when the above-described coordinate conversion is performed in the navigation system, it is necessary to execute the coordinate conversion in real time. The coordinate conversion method of the present embodiment can sufficiently meet such a demand.

【0166】本実施例では、高度を一定として扱うこと
により、地表面での座標変換のみを考慮した。これに対
し、緯度、経度、高度で表される3次元の極座標を、東
方向の軸、北の方向の軸および高度からなる3次元の直
交座標系に変換することも可能である。本実施例では、
極座標の原点と、直交座標の原点とが異なっている場合
を例にとって説明したが、両者の原点が一致している場
合に適用可能であることはいうまでもない。また、本実
施例の方法を適用可能な座標変換は、極座標と直交座標
との間に限定されるものではなく、いかなる座標系の間
でも適用可能である。
In this embodiment, only the coordinate transformation on the ground surface is considered by treating the altitude as a constant. On the other hand, it is also possible to convert three-dimensional polar coordinates represented by latitude, longitude, and altitude into a three-dimensional rectangular coordinate system including an east axis, a north axis, and an altitude. In this embodiment,
Although the case where the origin of the polar coordinates and the origin of the orthogonal coordinates are different has been described as an example, it is needless to say that the present invention can be applied when the origins of both coincide. Further, the coordinate transformation to which the method of the present embodiment can be applied is not limited to between polar coordinates and rectangular coordinates, but can be applied between any coordinate systems.

【0167】(7)第6実施例:最後に第6実施例とし
て、線形変換が必要となる装置の制御処理に本発明の制
御方法を適用した例を説明する。線形変換とは、座標変
換の一種であり、変換前の座標値と変換後の座標値との
関係が行列を用いて表される変換をいう。座標系の平行
移動や回転が代表的な変換である。本実施例では、直交
座標系の回転を例にとって説明する。
(7) Sixth Embodiment Finally, as a sixth embodiment, an example will be described in which the control method of the present invention is applied to control processing of a device requiring linear conversion. Linear transformation is a type of coordinate transformation, and refers to transformation in which the relationship between coordinate values before transformation and coordinate values after transformation is represented using a matrix. A typical transformation is translation or rotation of the coordinate system. In the present embodiment, a rotation in a rectangular coordinate system will be described as an example.

【0168】直交座標系の回転による線形変換が制御処
理において必要とされる装置として、いわゆるバーチャ
ルリアリティ(以下、VRという)の装置が挙げられ
る。図33は、VRで用いる座標変換の様子を示した説
明図である。図示する通り、VRの被験者500はヘッ
ドマウンドディスプレイ(以下、HMDという)502
を着用する。VRでは、被験者500の頭の角度に応じ
て仮想空間内での画像を座標変換してHMDに投影す
る。被験者500はHMDに投影された映像を見ること
によって、仮想空間内での動きを疑似体験できる。もち
ろん、VR技術では、被験者500の平行移動も組み合
わせて座標変換を行うこともある。
As a device that requires linear conversion by rotation in a rectangular coordinate system in the control processing, a device of a so-called virtual reality (hereinafter, referred to as VR) device can be mentioned. FIG. 33 is an explanatory diagram showing a state of coordinate conversion used in VR. As shown in the figure, a VR subject 500 has a head-mounted display (hereinafter, referred to as HMD) 502.
To wear. In the VR, the image in the virtual space is coordinate-transformed according to the angle of the head of the subject 500 and projected on the HMD. The subject 500 can experience the movement in the virtual space by seeing the image projected on the HMD. Of course, in the VR technology, the coordinate transformation may be performed in combination with the parallel movement of the subject 500.

【0169】一般に3次元の直交座標系の回転には、オ
イラー角と呼ばれる角度ψ(rad)、θ(rad)、
φ(rad)が用いられる。図33に示す通り、地球に
固定された直交座標系をXe,Ye,Zeとする。被験
者500に固定された直交座標系をXb,Yb,Zbと
する。両者の直交座標系の関係は、次で定義されるオイ
ラー角ψ、θ、φを用いて表すことが可能である。
In general, rotation of a three-dimensional rectangular coordinate system includes angles ψ (rad), θ (rad),
φ (rad) is used. As shown in FIG. 33, the rectangular coordinate system fixed to the earth is Xe, Ye, Ze. Let Xb, Yb, Zb be the rectangular coordinate system fixed to the subject 500. The relationship between the two orthogonal coordinate systems can be expressed using Euler angles ψ, θ, and φ defined below.

【0170】まず、地球に固定された座標系Xe,Y
e,ZeをZe軸周りにψ(rad)回転させる。この
結果、座標系Xe,Ye,Zeは、図33中の座標系X
e’,Ye’,Zeに変換される。ψ(rad)は、被
験者に固定された座標軸Xbを地球座標系のXe−Ye
平面に投影した軸が、Xe’と重なる角度である。
First, a coordinate system Xe, Y fixed to the earth
e, Ze are rotated ψ (rad) around the Ze axis. As a result, the coordinate system Xe, Ye, Ze is changed to the coordinate system X in FIG.
e ′, Ye ′, and Ze are converted. ψ (rad) represents the coordinate axis Xb fixed to the subject as Xe-Ye in the earth coordinate system.
The angle projected on the plane is the angle that overlaps with Xe '.

【0171】次に、座標系Xe’,Ye’,ZeをY
e’周りにθ(rad)回転させる。この結果、座標系
は図33中のXb,Ye’,Ze’に変換される。θ
(rad)は、Xb軸とXe’軸とが一致する角度であ
る。
Next, the coordinate systems Xe ′, Ye ′, Ze
Rotate θ (rad) around e ′. As a result, the coordinate system is converted into Xb, Ye ', Ze' in FIG. θ
(Rad) is the angle at which the Xb axis and the Xe 'axis coincide.

【0172】最後に、座標系Xb,Ye’,Ze’をX
b軸周りにφ(rad)回転させる。この結果、座標系
は被験者500に固定された座標系Xb,Yb,Zbに
変換される。φ(rad)は、Yb軸とYb’軸とが一
致する角度である。
Finally, the coordinate systems Xb, Ye ', Ze'
Rotate φ (rad) about the b-axis. As a result, the coordinate system is converted into the coordinate systems Xb, Yb, Zb fixed to the subject 500. φ (rad) is an angle at which the Yb axis and the Yb ′ axis coincide.

【0173】地球に固定された座標系で表された座標値
(xe,ye,ze)から、被験者に固定された座標系
で表された座標値(xb,yb,zb)への変換は次式
(20)で表される。つまり、オイラー角ψ、θ、φに
応じて定まる9つの成分a11〜a33が特定されれ
ば、上記座標変換を行うことができる。
The transformation from the coordinate values (xe, ye, ze) represented in the coordinate system fixed to the earth to the coordinate values (xb, yb, zb) represented in the coordinate system fixed to the subject is as follows. It is represented by equation (20). That is, if nine components a11 to a33 determined according to the Euler angles ψ, θ, and φ are specified, the coordinate conversion can be performed.

【0174】 xb=sinθcosψ・xe+(-sinθsinψ)・ye+cosθ・ze =a11・xe+a12・ye+a13・ze; yb=(-sinφcosθcosψ+cosφsinψ)・xe +(sinφcosθsinψ+cosφcosψ)・ye+sinφsinθ・ze =a21・xe+a22・ye+a23・ze; zb=(cosφcosθcosψ+sinφsinψ)・xe +(-cosφcosθsinψ+sinφcosψ)・ye+(-cosφsinθ)・ze =a31・xe+a32・ye+a33・ze; ・・・(2 0)Xb = sinθcosψ ・ xe + (-sinθsinψ) ・ ye + cosθ ・ ze = a11 ・ xe + a12 ・ ye + a13 ・ ze; yb = (-sinφcosθcosψ + cosφsinψ) ・ xe + (sinφcosθsinψ + cosφcosψ) ・ yes sinφsinθ ・ ze = a21 ・ xe + a22 ・ ye + a23 ・ ze; zb = (cosφcosθcosψ + sinφsinψ) ・ xe + (-cosφcosθsinψ + sinφcosψ) ・ ye + (-cosφsinθ) ・ ze = a31 ・ xe + a32 ・ ye + a33・ Ze; ・ ・ ・ (20)

【0175】上式(20)から明らかな通り、成分a1
1〜a33は、オイラー角に応じて三角関数を含む演算
により求めることができる。これに対し、本実施例で
は、テーブルを補間することにより、これらの成分を求
めている。図34は、本実施例で使用するテーブルを示
した説明図である。図示する通り、本実施例では、オイ
ラー角ψ、θ、φの組み合わせによっていくつかの格子
点を設定し、それぞれの格子点に対して上記9つの成分
a11〜a33を記憶したテーブルを用意する。また、
このテーブルの補間において用いられるオフセット補正
テーブルも用意する。オフセット補正テーブルは他の実
施例と同様、補間において乗ぜられる重み値および補間
に使用する格子点を特定するための格子点特定データを
記憶している。オフセット補正テーブルを用意可能とす
るために、オイラー角は連続的に変化し得る実数ではな
く、所定の刻みからなる値をとるものとしている。
As is apparent from the above formula (20), the component a1
1 to a33 can be obtained by an operation including a trigonometric function according to the Euler angle. On the other hand, in the present embodiment, these components are obtained by interpolating the table. FIG. 34 is an explanatory diagram showing a table used in this embodiment. As shown in the figure, in this embodiment, several grid points are set according to the combination of the Euler angles ψ, θ, and φ, and a table storing the nine components a11 to a33 is prepared for each grid point. Also,
An offset correction table used in interpolation of this table is also prepared. As in the other embodiments, the offset correction table stores weight values to be multiplied in interpolation and grid point specifying data for specifying grid points used for interpolation. In order to make it possible to prepare an offset correction table, the Euler angle is not a real number that can change continuously, but takes a value in predetermined increments.

【0176】図34に示したテーブルの補間方法も他の
実施例と同様である。まず、オイラー角ψ、θ、φの組
み合わせからなる座標値をベースポイントとオフセット
座標とに変換する。オフセット座標値に基づいてオフセ
ット補正テーブルを参照して格子点特定データおよび重
み値を求める。こうして求められた重み値を、格子点特
定データに対応して記憶された成分a11〜a33に乗
ずることによって、オイラー角ψ、θ、φに対応した成
分を算出する。こうして算出された成分を用いて上式
(20)を計算すれば、地球に固定された座標系Xe,
Ye,Zeから被験者500に固定された座標系Xb,
Yb,Zbへの座標変換を行うことができる。
The interpolation method for the table shown in FIG. 34 is the same as in the other embodiments. First, a coordinate value composed of a combination of Euler angles ψ, θ, and φ is converted into a base point and offset coordinates. The grid point specifying data and the weight value are obtained by referring to the offset correction table based on the offset coordinate values. The components corresponding to the Euler angles ψ, θ, φ are calculated by multiplying the weight values thus obtained by the components a11 to a33 stored corresponding to the grid point specifying data. By calculating the above equation (20) using the components thus calculated, the coordinate system Xe,
The coordinate system Xb fixed to the subject 500 from Ye, Ze,
The coordinate conversion into Yb and Zb can be performed.

【0177】本実施例で説明した補間演算によれば、座
標系の線形変換を高速に行うことができる。VR技術で
は、線形変換を頻繁に、かつリアルタイムで実行する必
要がある。従って、本実施例で説明した方法による線形
変換の有効性は非常に高い。もちろん、VR技術以外で
も、制御処理の一部に線形変換を含んでいる場合は、本
実施例の線形変換を適用することにより、全体の制御処
理を高速化することができる。
According to the interpolation calculation described in this embodiment, linear transformation of the coordinate system can be performed at high speed. VR technology requires frequent and real-time linear transformations. Therefore, the effectiveness of the linear conversion by the method described in this embodiment is very high. Of course, in cases other than the VR technology, when a part of the control processing includes a linear transformation, the overall control processing can be sped up by applying the linear transformation of the present embodiment.

【0178】上式(20)から明らかな通り、各成分a
11〜a33はオイラー角ψ、θ、φの線形関数ではな
い。従って、図34のテーブルを補間して求めた各成分
の値には、厳密には誤差が含まれる。この誤差は、図3
4の各格子点の間隔に応じて変化する。座標変換におい
て求められる精度に応じて、テーブルの格子点間隔を十
分細かく設定しておけば、上記誤差を抑制することがで
きる。
As is apparent from the above formula (20), each component a
11 to a33 are not linear functions of the Euler angles ψ, θ, φ. Therefore, the value of each component obtained by interpolating the table of FIG. 34 includes an error strictly. This error is shown in FIG.
4 changes according to the interval between the respective grid points. The error can be suppressed if the grid point interval of the table is set sufficiently small according to the accuracy required in the coordinate conversion.

【0179】本実施例では、VR技術に適用する場合を
例にとって説明したが、上述した制御方法は、VR技術
以外にも線形変換を必要とする種々の制御処理に適用可
能であることはいうまでもない。直交座標系のみならず
種々の座標系を対象とすることも可能である。当然、座
標空間も3次元に限定されるものではない。また、本実
施例では、座標系の回転を例にとって説明したが、平行
移動を含む場合も同様の手法により処理することができ
る。
In the present embodiment, the case where the present invention is applied to the VR technique has been described as an example. However, it can be said that the above-described control method can be applied to various control processes requiring linear conversion other than the VR technique. Not even. It is possible to target not only a rectangular coordinate system but also various coordinate systems. Of course, the coordinate space is not limited to three dimensions. Further, in the present embodiment, the rotation of the coordinate system has been described as an example, but the processing including the parallel movement can be processed by the same method.

【0180】以上、本発明の種々の実施例について説明
してきたが、本発明はこれらに限定されるものではな
く、その要旨を逸脱しない範囲で、種々の形態による実
施が可能である。例えば、図22および図23に示した
ハードウェアによる処理は、第1実施例、第2実施例の
みならず、その他の全ての実施例に適用可能である。
Although various embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various embodiments can be made without departing from the spirit of the present invention. For example, the processing by hardware shown in FIGS. 22 and 23 is applicable not only to the first and second embodiments, but also to all other embodiments.

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

【図1】カラー画像データの存在位置と補間演算に用い
る四面体の関係を示す説明図である。
FIG. 1 is an explanatory diagram showing the relationship between the existing position of color image data and a tetrahedron used for interpolation calculation.

【図2】本発明の画像処理装置を用いた画像処理システ
ムの概略構成図である。
FIG. 2 is a schematic configuration diagram of an image processing system using the image processing device of the present invention.

【図3】画像処理システムに使用されるプリンタ22の
概略構成図である。
FIG. 3 is a schematic configuration diagram of a printer 22 used in the image processing system.

【図4】プリンタ22のドット記録ヘッドの概略構成を
示す説明図である。
FIG. 4 is an explanatory diagram illustrating a schematic configuration of a dot recording head of the printer 22.

【図5】プリンタ22におけるドット形成原理を示す説
明図である。
FIG. 5 is an explanatory diagram showing a dot formation principle in the printer 22.

【図6】第1実施例における色空間の分割の様子を示す
説明図である。
FIG. 6 is an explanatory diagram showing how a color space is divided in the first embodiment.

【図7】小格子におけるオフセット座標を示す説明図で
ある。
FIG. 7 is an explanatory diagram showing offset coordinates in a small grid.

【図8】四面体法による補間演算方法を示す説明図であ
る。
FIG. 8 is an explanatory diagram showing an interpolation calculation method using the tetrahedron method.

【図9】画像処理ルーチンの流れを示すフローチャート
である。
FIG. 9 is a flowchart illustrating a flow of an image processing routine.

【図10】第1実施例におけるベースポイント算出処理
の流れを示すフローチャートである。
FIG. 10 is a flowchart illustrating a flow of a base point calculation process in the first embodiment.

【図11】第1実施例におけるオフセット座標算出処理
の流れを示すフローチャートである。
FIG. 11 is a flowchart illustrating a flow of an offset coordinate calculation process in the first embodiment.

【図12】オフセット補正テーブルOTの例を示す説明
図である。
FIG. 12 is an explanatory diagram showing an example of an offset correction table OT.

【図13】メモリ上の色補正テーブルCTの並びの例を
示す説明図である。
FIG. 13 is an explanatory diagram showing an example of an arrangement of a color correction table CT on a memory.

【図14】オフセット補正テーブルOTのデータとメモ
リ上の色補正テーブルCTのデータとの関係を示す説明
図である。
FIG. 14 is an explanatory diagram showing a relationship between data of an offset correction table OT and data of a color correction table CT on a memory.

【図15】第2実施例における色空間の分割の様子を示
す説明図である。
FIG. 15 is an explanatory diagram showing how a color space is divided in the second embodiment.

【図16】第2実施例におけるベースポイント算出処理
の1つめの流れを示すフローチャートである。
FIG. 16 is a flowchart illustrating a first flow of a base point calculation process in the second embodiment.

【図17】第2実施例におけるベースポイント算出処理
の2つめの流れを示すフローチャートである。
FIG. 17 is a flowchart illustrating a second flow of the base point calculation process in the second embodiment.

【図18】基準格子点テーブルの例を示す説明図であ
る。
FIG. 18 is an explanatory diagram illustrating an example of a reference grid point table.

【図19】第2実施例におけるオフセット座標算出処理
の1つめの流れを示すフローチャートである。
FIG. 19 is a flowchart illustrating a first flow of offset coordinate calculation processing in the second embodiment.

【図20】第2実施例におけるオフセット座標算出処理
の2つめの流れを示すフローチャートである。
FIG. 20 is a flowchart illustrating a second flow of the offset coordinate calculation process in the second embodiment.

【図21】オフセット座標テーブルの例を示す説明図で
ある。
FIG. 21 is an explanatory diagram illustrating an example of an offset coordinate table.

【図22】ハードウェアによる色補正テーブルの構成例
を示す説明図である。
FIG. 22 is an explanatory diagram showing a configuration example of a color correction table by hardware.

【図23】ハードウェアによるオフセット補正テーブル
の構成例を示す説明図である。
FIG. 23 is an explanatory diagram showing a configuration example of an offset correction table by hardware.

【図24】第3実施例としての飛行制御装置のソフトウ
ェア構成を示す説明図である。
FIG. 24 is an explanatory diagram showing a software configuration of a flight control device as a third embodiment.

【図25】抵抗係数CDと揚力係数CL、マッハ数との
関係を示すグラフである。
FIG. 25 is a graph showing a relationship among a resistance coefficient CD, a lift coefficient CL, and a Mach number.

【図26】抵抗係数を与えるテーブルを示す説明図であ
る。
FIG. 26 is an explanatory diagram showing a table for giving a resistance coefficient.

【図27】推力と高度、マッハ数、スロットルレイティ
ングとの関係を示すグラフである。
FIG. 27 is a graph showing the relationship between thrust, altitude, Mach number, and throttle rating.

【図28】推力を与えるテーブルを示す説明図である。FIG. 28 is an explanatory diagram showing a table for giving a thrust.

【図29】第4実施例としての制御装置のソフトウェア
構成を示す説明図である。
FIG. 29 is an explanatory diagram illustrating a software configuration of a control device according to a fourth embodiment.

【図30】メンバシップ値を与えるテーブルを示す説明
図である。
FIG. 30 is an explanatory diagram showing a table for giving membership values.

【図31】第5実施例としての座標変換の様子を示す説
明図である。
FIG. 31 is an explanatory diagram showing a state of coordinate conversion as a fifth embodiment.

【図32】緯度、経度から直交座標系の値を与えるテー
ブルを示す説明図である。
FIG. 32 is an explanatory diagram showing a table for giving values in a rectangular coordinate system from latitude and longitude.

【図33】第6実施例としての線形変換の様子を示す説
明図である。
FIG. 33 is an explanatory diagram showing a state of linear conversion as a sixth embodiment.

【図34】オイラー角から線形変換の成分を与えるテー
ブルを示す説明図である。
FIG. 34 is an explanatory diagram showing a table for providing a component of linear conversion from an Euler angle.

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

12…スキャナ 21…カラーディスプレイ 22…カラープリンタ 23…紙送りモータ 24…キャリッジモータ 26…プラテン 28…印字ヘッド 31…キャリッジ 32…操作パネル 34…摺動軸 36…駆動ベルト 38…プーリ 39…位置検出センサ 40…制御回路 42…プログラマブルROM(PROM) 61、62、63、64…インク吐出用ヘッド 65…導入管 68…インク通路 71…黒インク用のカートリッジ 72…カラーインク用カートリッジ 90…パーソナルコンピュータ 91…ビデオドライバ 92…入力部 95…アプリケーションプログラム 96…プリンタドライバ 97…ラスタライザ 98…色補正モジュール 99…ハーフトーンモジュール 300…航空機 302…操縦指令入力部 304…飛行状態検出部 306…重量推定部 308…抵抗推定部 310…推力目標値設定部 312…エンジン制御部 400…状態量検出部 402…ファジィ推論部 404…メンバシップ関数 406…制御量出力部 500…被験者 502…ヘッドマウントディスプレイ(HMD) DESCRIPTION OF SYMBOLS 12 ... Scanner 21 ... Color display 22 ... Color printer 23 ... Paper feed motor 24 ... Carriage motor 26 ... Platen 28 ... Print head 31 ... Carriage 32 ... Operation panel 34 ... Sliding shaft 36 ... Drive belt 38 ... Pulley 39 ... Position detection Sensor 40 Control circuit 42 Programmable ROM (PROM) 61, 62, 63, 64 Ink ejection head 65 Inlet tube 68 Ink passage 71 Black ink cartridge 72 Color ink cartridge 90 Personal computer 91 ... video driver 92 ... input unit 95 ... application program 96 ... printer driver 97 ... rasterizer 98 ... color correction module 99 ... halftone module 300 ... aircraft 302 ... steering command input unit 304 ... flight state detection unit 3 06 ... weight estimation section 308 ... resistance estimation section 310 ... thrust target value setting section 312 ... engine control section 400 ... state quantity detection section 402 ... fuzzy inference section 404 ... membership function 406 ... control quantity output section 500 ... subject 502 ... head Mount display (HMD)

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 H04N 1/46 H04N 1/60 Continuation of the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/40-1/409 H04N 1/46 H04N 1/60

Claims (16)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 所定次元の座標空間に離散的に存在する
格子点に対応して記憶された装置の制御処理に関与する
パラメータを、前記座標値の組み合わせに応じて補間演
算することによって、該装置の制御処理を行う制御方法
であって、(a) 前記座標空間の前記各次元ごとに離散的に設定
された座標値の組み合わせによって定義される格子点に
対応して前記パラメータを記憶した被補間テーブルと、 前記被補間テーブルを補間して前記入力データに対応す
る値を演算する際に必要となる補間演算データをオフセ
ット座標値に対応して記憶する、前記小格子の数よりも
少ない種類のオフセット補正テーブルとを予め用意する
工程と、 (b) 前記座標空間において、前記各次元ごとに予め
有限個に設定された座標値の組み合わせからなる入力デ
ータを入力する工程と、 (c) 隣接する前記格子点によって前記次元で形成さ
れる複数の小格子のうち、前記入力データがいずれの小
格子に属するかを判定する工程と、 (d) 前記入力データを、該入力データが属する小格
子の格子点のうち基準となる基準格子点の座標値と、前
記各次元について該入力データと該基準格子点の座標値
との偏差を表すオフセット座標値とに変換する工程と、 (e) 前記オフセット座標値に対応した補間演算デー
タを前記オフセット補正テーブルから読み出すととも
に、前記基準格子点および該基準格子点に隣接する所定
の格子点に対応した前記パラメータを前記被補間テーブ
ルから読み出し、前記補間演算データを用いて該被補間
データの補間演算を行う工程とを備え 前記補間演算データは、前記補間演算に用いられる所定
の格子点を前記基準格子点との相対的な関係で特定する
格子点特定データと、前記補間演算において前記被補間
データに乗ぜられる重み係数データとを含むデータであ
制御方法。
An interpolating operation is performed on a parameter related to a control process of a device, which is stored corresponding to a grid point discretely existing in a coordinate space of a predetermined dimension, according to a combination of the coordinate values. A control method for performing control processing of an apparatus, comprising : (a) discretely setting each of the dimensions of the coordinate space;
Grid point defined by the combination of
The interpolated table in which the parameters are stored correspondingly, and the interpolation calculation data required when the interpolated table is interpolated to calculate the value corresponding to the input data are offset.
A step of preparing in advance an offset correction table of a type smaller than the number of small grids stored in correspondence with the set coordinate values ; and (b) setting a finite number of sets in advance for each of the dimensions in the coordinate space. And (c) inputting any one of a plurality of small grids formed in the dimension by the adjacent grid points.
Determining whether the input data belongs to a grid; (d) converting the input data into coordinate values of a reference grid point serving as a reference among the grid points of the small grid to which the input data belongs; (E) reading the interpolation calculation data corresponding to the offset coordinate value from the offset correction table, and converting the reference grid point and the reference value. Reading the parameter corresponding to a predetermined grid point adjacent to a grid point from the table to be interpolated, and performing an interpolation calculation of the interpolated data using the interpolation calculation data , wherein the interpolation calculation data is Predetermined used for interpolation calculation
Grid point is specified by a relative relation with the reference grid point.
Grid point specifying data and the interpolated
Data including weight coefficient data multiplied by the data.
Control how.
【請求項2】 請求項1記載の制御方法であって、2. The control method according to claim 1, wherein: 前記工程(a)は、さらに、前記座標空間の前記各次元The step (a) may further include the respective dimensions of the coordinate space.
ごとに離散的に設定された座標値の組み合わせによってBy a combination of coordinate values set discretely for each
定義される格子点について、該座標値の組み合わFor the defined grid points, the combination of the coordinate values せからFrom
なる格子点情報を記憶した格子点情報テーブルをも予めA grid point information table that stores grid point information
用意する工程であり、It is a process of preparing, 前記工程(c)は、前記判定を前記格子点情報に基づいIn the step (c), the determination is made based on the grid point information.
て行う工程である制御方法。Control method, which is a step performed by
【請求項3】 請求項1記載の制御方法であって、 前記装置は、画像の色データの色補正を行う画像処理装
置であり、 前記入力データは、2次元以上の色空間における階調値
の組み合わせによって色成分を表す色データであり、 前記被補間テーブルは、入力データとは異なる色系で表
された色成分と、入力データとの対応を示す色補正テー
ブルである制御方法。
3. The control method according to claim 1, wherein the apparatus is an image processing apparatus that performs color correction of color data of an image, and the input data is a gradation value in a two-dimensional or more color space. A control method, wherein the interpolated table is a color correction table indicating a correspondence between a color component represented by a color system different from that of the input data and the input data.
【請求項4】 請求項1記載の制御方法であって、4. The control method according to claim 1, wherein: 前記工程(a)で用意されるオフセット補正テーブルOffset correction table prepared in step (a)
は、全小格子に共通の単一種類のテーブルである制御方Is a single type of table common to all small grids.
法。Law.
【請求項5】 2次元以上の色空間において各次元ごと
に予め定めた階調数に対応した座標値を用いて表された
多色の画像を色補正して出力する画像処理装置であっ
て、 前記画像の各画素について、前記座標値からなるカラー
画像データを入力する入力手段と、前記色空間を前記各次元ごとに前記階調数よりも少ない
数に分割することにより得られた格子点に対応して、色
の補正量に関する色補正データを色補正テーブルとして
記憶した色補正テーブルメモリと、 隣接する前記格子点によって前記次元に対応して形成さ
れる複数の小格子のうち、前記カラー画像データがいず
れの小格子に属するかを判定する小格子判定手段と、 前記カラー画像データを、該カラー画像データが属する
小格子の基準となる基準格子点の座標値と、前記各次元
ごとに該カラー画像データと該基準格子点の座標値との
偏差を表すオフセット座標値とに変換する画像データ変
換手段と、 前記カラー画像データに対応する色補正データを前記色
補正テーブルを補間して求める際に必要となる補間演算
データと前記オフセット座標値との対応を、前記小格子
の数よりも少ない種類のオフセット補正テーブルとして
記憶するオフセット補正テーブルメモリと、 前記オフセット座標値に対応した補間演算データを前記
オフセット補正テーブルから読み出すとともに、前記基
準格子点および該基準格子点に隣接する所定の格子点に
対応した色補正データを前記色補正テーブルから読み出
し、該補間演算データを用いて該色補正データの補間演
算を行い、該演算結果を補正済みのカラー画像データと
して出力する色補正手段とを備え 前記補間演算データは、前記補間演算に用いられる所定
の格子点を前記基準格子点との相対的な関係で特定する
格子点特定データと、前記補間演算において前記色補正
データに乗ぜられる重み係数データとを含むデータであ
画像処理装置。
5. An image processing apparatus for color-correcting and outputting a multicolor image represented by using coordinate values corresponding to a predetermined number of gradations for each dimension in a two-dimensional or more color space. Input means for inputting color image data consisting of the coordinate values for each pixel of the image, wherein the color space is smaller than the number of gradations for each of the dimensions
Colors corresponding to grid points obtained by dividing into numbers
Color correction data related to the amount of color correction as a color correction table
A color correction table memory storing, among the plurality of small grating formed in correspondence to the dimension by the lattice points adjacent said color image data Izu
A small grid determining unit for determining whether the color image belongs to the small grid, the color image data, the coordinate value of a reference grid point serving as a reference of the small grid to which the color image data belongs, and the color image for each dimension Image data conversion means for converting data and offset coordinate values representing a deviation from the coordinate value of the reference grid point; necessary for obtaining color correction data corresponding to the color image data by interpolating the color correction table An offset correction table memory for storing the correspondence between the interpolation calculation data and the offset coordinate values as an offset correction table of a type smaller than the number of the small grids; and setting the interpolation calculation data corresponding to the offset coordinate values to the offset. The color correction data corresponding to the reference grid point and a predetermined grid point adjacent to the reference grid point is read out from the correction table. Reading out data from said color correction table, performs interpolation calculation of the color correction data with the interpolation operation data, and a color correction means for outputting the operation result as the corrected color image data, the interpolation operation data Is a predetermined value used for the interpolation calculation.
Grid point is specified by a relative relation with the reference grid point.
Grid point specifying data and the color correction in the interpolation operation
Data including weight coefficient data multiplied by the data.
That image processing apparatus.
【請求項6】 請求項5記載の画像処理装置であって、 さらに、前記色空間を前記各次元ごとに前記階調数より
も少ない数に分割することにより得られた格子点の座標
値からなる格子点情報を格子点情報テーブルとして記憶
する格子点情報テーブルメモリを備え、 前記小格子判定手段は、前記判定を前記格子点情報に基
づいて行う手段である画像処理装置。
6. The image processing apparatus according to claim 5, further comprising: dividing the color space by the number of gradations for each of the dimensions.
Of the grid points obtained by dividing into smaller numbers
Grid point information consisting of values is stored as a grid point information table
An image processing apparatus comprising a grid point information table memory for performing the determination , wherein the small grid determination unit performs the determination based on the grid point information.
【請求項7】 請求項5記載 の画像処理装置であって、 前記色空間の分割は、前記色補正テーブルとして記憶さ
れた色補正データのデータ量と前記オフセット補正テー
ブルとして記憶された補間演算データのデータ量とが略
同一になる分割である画像処理装置。
7. The image processing apparatus according to claim 5 , wherein the division of the color space is performed based on a data amount of color correction data stored as the color correction table and interpolation calculation data stored as the offset correction table. The image processing apparatus is a division in which the data amount is substantially the same.
【請求項8】 請求項5記載 の画像処理装置であって、前記色空間は3次元の色空間であり、 前記格子点特定データは、前記オフセット座標値に応じ
て、前記補間演算に用いられる4つの格子点の少なくと
も一部を特定するデータであり、 前記重み係数データは、前記オフセット座標値に応じ
て、前記補間演算において、前記各格子点に対応した前
記色補正データに乗ぜられる係数データである画像処理
装置。
8. The image processing apparatus according to claim 5 , wherein said color space is a three-dimensional color space, and said grid point specifying data is based on said offset coordinate value.
Therefore, at least four grid points used in the interpolation calculation
Image processing apparatus , wherein the weighting coefficient data is coefficient data multiplied by the color correction data corresponding to each of the grid points in the interpolation calculation according to the offset coordinate values. .
【請求項9】 請求項5記載 の画像処理装置であって、
さらに、 前記格子点の各間隔が前記各次元ごとにそれぞれ一定の
間隔となるように前記座標値を正規化する正規化手段を
備え、 前記画像データ変換手段は、 前記カラー画像データが属する小格子についてその基準
となる基準格子点の座標値と、 前記各次元について該カラー画像データと該基準格子点
の座標値との偏差を前記正規化手段により正規化された
座標値によって表したオフセット座標値とに変換する手
段である画像処理装置。
9. The image processing apparatus according to claim 5 , wherein
Further, a normalization unit for normalizing the coordinate values so that each interval between the grid points is a constant interval for each of the dimensions, the image data conversion unit includes a small grid to which the color image data belongs. And the coordinate value of a reference grid point serving as a reference, and the offset coordinate value representing the deviation between the color image data and the coordinate value of the reference grid point for each dimension by the coordinate value normalized by the normalization means. An image processing device which is means for converting into
【請求項10】 請求項5記載 の画像処理装置であっ
て、 前記正規化後の間隔は、前記色空間の所定の低濃度領域
における前記格子点の間隔の整数倍となっている画像処
理装置。
10. The image processing apparatus according to claim 5 , wherein the interval after the normalization is an integral multiple of the interval between the grid points in a predetermined low density area of the color space. .
【請求項11】 請求項5記載 の画像処理装置であっ
て、 前記画像データ変換手段は、 前記カラー画像データに応じて、該カラー画像データが
属する小格子についてその基準となる基準格子点の座標
値を記憶する基準格子点テーブルと、 前記カラー画像データに応じて、前記各次元について該
カラー画像データと該基準格子点の座標値との偏差を前
記正規化手段により変換された座標において表すオフセ
ット座標値とを記憶するオフセット座標テーブルとのう
ち少なくとも一方を備え、 前記カラー画像データから基準格子点の座標値およびオ
フセット座標値への変換の少なくとも一方を、前記カラ
ー画像データに対応したデータを該基準格子点テーブル
もしくは該オフセット座標テーブルから読み込むことに
より行う手段である画像処理装置。
11. The image processing apparatus according to claim 5 , wherein the image data conversion unit is configured to determine, based on the color image data, coordinates of a reference grid point serving as a reference for a small grid to which the color image data belongs. A reference grid point table for storing values, and an offset representing a deviation between the color image data and the coordinate value of the reference grid point in the coordinates converted by the normalizing means for each dimension according to the color image data. And at least one of an offset coordinate table for storing coordinate values, and converting at least one of the conversion from the color image data to the coordinate values of the reference grid points and the offset coordinate values, the data corresponding to the color image data to An image processing device which is means for reading from a reference grid point table or the offset coordinate table. .
【請求項12】 請求項5記載の画像処理装置であっ12. The image processing apparatus according to claim 5, wherein
て、hand, 前記オフセット補正テーブルは、全小格子に共通の単一The offset correction table has a single common
種類のテーブルである画像処理装置。An image processing device that is a type table.
【請求項13】 2次元以上の色空間において各次元ご
とに予め定めた階調数に対応した座標値を用いて表され
た多色の画像を色補正して出力する画像処理をコンピュ
ータに実現させるプログラムを記録したコンピュータ読
みとり可能な記録媒体であって、 前記画像の各画素について、前記座標値からなるカラー
画像データを入力する機能と、 前記色空間を前記各次元について、前記階調数よりも少
ない数に分割することにより得られた格子点の座標値か
らなる格子点情報を、前記色空間について記憶した格子
点情報テーブルを参照する機能と、 該各格子点に対応して、色の補正量に関する色補正デー
タを記憶した色補正テーブルを参照する機能と、 隣接する前記格子点によって前記次元に対応して形成さ
れる複数の小格子のうち、前記カラー画像データがいず
れの小格子に属するかを、前記格子点情報に基づいて判
定する機能と、 前記カラー画像データを、該カラー画像データが属する
小格子についてその基準となる基準格子点の座標値と、
前記各次元について該カラー画像データと該基準格子点
の座標値との偏差を表すオフセット座標値とに変換する
機能と、 前記色補正テーブルを補間して前記カラー画像データに
対応する色補正データを演算する際に必要となる補間演
算データとして、該補間演算に用いられる所定の格子点
を前記基準格子点との相対的な関係で特定する格子点特
定データと、該補間演算において前記所定の格子点に対
応して記憶された色補正データに乗ぜられる重み係数デ
ータとを含むデータを前記オフセット座標値に対応して
記憶するオフセット補正テーブルを参照する機能と、 前記オフセット座標値に対応した補間演算データを前記
オフセット補正テーブルから読み出すとともに、前記基
準格子点および該基準格子点に隣接する所定の格子点に
対応した色補正データを前記色補正テーブルから読み出
し、該補間演算データを用いて該色補正データの補間演
算を行い、該演算結果を補正済みのカラー画像データと
して出力する機能とをコンピュータにより実現させるプ
ログラムを記録した記録媒体。
13. A computer realizes image processing for color-correcting and outputting a multicolor image represented using coordinate values corresponding to a predetermined number of gradations for each dimension in a color space of two or more dimensions. A computer-readable recording medium having recorded thereon a program for causing a computer to input color image data consisting of the coordinate values for each pixel of the image; and A function of referencing the grid point information table stored for the color space with grid point information comprising coordinate values of grid points obtained by dividing the grid points into smaller numbers, A function of referring to a color correction table storing color correction data relating to a correction amount; and a function of a plurality of small grids formed by the adjacent grid points corresponding to the dimensions. A function of determining which small grid the image data belongs to based on the grid point information; and a coordinate value of a reference grid point serving as a reference for the small grid to which the color image data belongs. When,
A function of converting the color image data into an offset coordinate value representing a deviation between the coordinate value of the reference grid point and the color correction data corresponding to the color image data by interpolating the color correction table; A predetermined grid point used for the interpolation calculation is used as interpolation calculation data required for the calculation.
Grid point feature that specifies the relative relationship with the reference grid point.
Constant data and the predetermined grid point in the interpolation calculation.
Corresponding to the weighting coefficient data to be multiplied by the stored color correction data.
And a function of referring to an offset correction table that stores data including the data corresponding to the offset coordinate values, and reading out interpolation calculation data corresponding to the offset coordinate values from the offset correction table, Color correction data corresponding to a predetermined grid point adjacent to the reference grid point is read from the color correction table, an interpolation calculation of the color correction data is performed by using the interpolation calculation data, and the calculation result is corrected color A recording medium on which a program for realizing a function of outputting as image data by a computer is recorded.
【請求項14】 2次元以上の色空間において各次元ご
とに予め定めた階調数に対応した座標値を用いて表され
た多色の画像を、前記色空間を分割して得られる格子点
に対応して用意された所定のデータを用いることによ
り、色補正して出力する画像処理装置に用いられるデー
タを記録したコンピュータ読みとり可能な記録媒体であ
って、 2次元以上の色空間の各次元を、各次元ごとに予め定め
た階調数よりも少ない数に分割することにより得られた
格子点の座標値からなる格子点情報を、前記色空間につ
いて記憶した格子点情報テーブルと、 該各格子点に対応して、色の補正量に関する色補正デー
タを記憶した色補正テーブルと、 前記色補正テーブルを補間して前記カラー画像データに
対応する色補正データを演算する際に必要となる補間演
算データを、前記カラー画像データに隣接する前記格子
点によって前記色空間の次元に対応して形成される小格
子の基準となる基準格子点の座標値に対する該カラー画
像データの偏差を前記各次元について表したオフセット
座標値に対応して記憶するオフセット補正テーブルとを
記録した記録媒体。
14. A grid point obtained by dividing a multicolor image represented by using coordinate values corresponding to a predetermined number of gradations for each dimension in a color space of two or more dimensions by dividing the color space. A computer-readable recording medium on which data used for an image processing apparatus for performing color correction and outputting by using predetermined data prepared in accordance with a color space is provided. A grid point information table that stores, for the color space, grid point information including coordinate values of grid points obtained by dividing the number of grid points into a number smaller than a predetermined number of gradations for each dimension; A color correction table storing color correction data relating to the amount of color correction corresponding to the lattice point; and an interpolation required when calculating the color correction data corresponding to the color image data by interpolating the color correction table. The calculation data is calculated by calculating the deviation of the color image data from the coordinate value of a reference grid point serving as a reference of a small grid formed corresponding to the dimension of the color space by the grid points adjacent to the color image data. And an offset correction table stored in correspondence with the offset coordinate value represented by (1).
【請求項15】 請求項14記載 の記録媒体であって、 前記色補正テーブルに記憶された色補正データのデータ
量と前記オフセット補正テーブルに記憶された補間演算
データのデータ量とが略同一である記録媒体。
15. The recording medium according to claim 14 , wherein the data amount of the color correction data stored in the color correction table is substantially equal to the data amount of the interpolation calculation data stored in the offset correction table. A recording medium.
【請求項16】 予め定めた一連の処理において用いら
れ、所定次元の座標空間に離散的に存在する格子点に対
応して記憶された装置の制御処理に関与するパラメータ
を、コンピュータを用いて前記座標値の組み合わせに応
じて補間するデータ補間方法であって、 (a) 前記座標空間の前記各次元ごとに離散的に設定
された座標値の組み合わせによって定義される格子点に
ついて、該座標値の組み合わせからなる格子点情報を記
憶した格子点情報テーブルと、 前記各格子点に対応して前記パラメータを記憶した被補
間テーブルと、 前記被補間テーブルを補間して前記入力データに対応す
る値を演算する際に必要となる補間演算データを前記オ
フセット座標値に対応して記憶する、前記小格子の数よ
りも少ない種類のオフセット補正テーブルとを前記コン
ピュータのメモリ空間上に予め用意する工程と、 (b) 前記座標空間において、前記各次元ごとに予め
有限個に設定された座標値の組み合わせからなる入力デ
ータを入力する工程と、 (c) 隣接する前記格子点によって前記次元で形成さ
れる複数の小格子のうち、前記入力データがいずれの小
格子に属するかを、前記格子点情報に基づいて判定する
工程と、 (d) 前記入力データを、該入力データが属する小格
子の格子点のうち基準となる基準格子点の座標値と、前
記各次元について該入力データと該基準格子点の座標値
との偏差を表すオフセット座標値とに変換する工程と、 (e) 前記オフセット座標値に対応した補間演算デー
タを前記オフセット補正テーブルから読み出すととも
に、前記基準格子点および該基準格子点に隣接する所定
の格子点に対応した前記パラメータを前記被補間テーブ
ルから読み出し、前記補間演算データを用いて該被補間
データの補間演算を行う工程とを備え 前記補間演算データは、前記補間演算に用いられる所定
の格子点を前記基準格子点との相対的な関係で特定する
格子点特定データと、前記補間演算において前記被補間
データに乗ぜられる重み係数データとを含むデータであ
補間方法。
16. Using a computer, a parameter used in a series of predetermined processes and associated with a control process of the device and stored in correspondence with grid points discretely existing in a coordinate space of a predetermined dimension. A data interpolation method for interpolating according to a combination of coordinate values, wherein: (a) a grid point defined by a combination of coordinate values discretely set for each of the dimensions of the coordinate space; A grid point information table storing grid point information composed of combinations; an interpolated table storing the parameters corresponding to the respective grid points; interpolating the interpolated table to calculate a value corresponding to the input data And storing the interpolation calculation data required when corresponding to the offset coordinate value, and an offset correction table of a type smaller than the number of the small grids. In a memory space of the computer, and (b) inputting input data consisting of a finite number of combinations of coordinate values for each dimension in the coordinate space; (c) Determining, based on the grid point information, to which of the plurality of small grids formed in the dimension by the adjacent grid points the input data belongs; and (d) the input. Data, the coordinate value of the reference grid point as a reference among the grid points of the small grid to which the input data belongs, and offset coordinate values representing the deviation between the input data and the coordinate value of the reference grid point for each dimension. And (e) reading interpolation calculation data corresponding to the offset coordinate value from the offset correction table, and obtaining the reference grid point and the reference grid point. Reading the parameters corresponding to a predetermined grid points adjacent from the object interpolation table, and a step of performing interpolation calculation該被interpolated data by using the interpolation operation data, the interpolation operation data, the interpolation operation Prescribed used
Grid point is specified by a relative relation with the reference grid point.
Grid point specifying data and the interpolated
Data including weight coefficient data multiplied by the data.
Interpolation method that.
JP29917498A 1997-10-08 1998-10-05 Control method for image processing apparatus and image processing apparatus controlled by the method Expired - Fee Related JP3341688B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29917498A JP3341688B2 (en) 1997-10-08 1998-10-05 Control method for image processing apparatus and image processing apparatus controlled by the method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP29352497 1997-10-08
JP9-293524 1997-10-08
JP29917498A JP3341688B2 (en) 1997-10-08 1998-10-05 Control method for image processing apparatus and image processing apparatus controlled by the method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP11257109A Division JP2000069311A (en) 1997-10-08 1999-09-10 Control method of apparatus and image processor

Publications (2)

Publication Number Publication Date
JPH11191848A JPH11191848A (en) 1999-07-13
JP3341688B2 true JP3341688B2 (en) 2002-11-05

Family

ID=26559458

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29917498A Expired - Fee Related JP3341688B2 (en) 1997-10-08 1998-10-05 Control method for image processing apparatus and image processing apparatus controlled by the method

Country Status (1)

Country Link
JP (1) JP3341688B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5668864B2 (en) 2011-09-28 2015-02-12 トヨタ自動車株式会社 Engine control device
US9442472B2 (en) 2011-12-12 2016-09-13 Toyota Jidosha Kabushiki Kaisha Engine control device

Also Published As

Publication number Publication date
JPH11191848A (en) 1999-07-13

Similar Documents

Publication Publication Date Title
EP0908831B1 (en) Tetrahedral interpolation
US6870636B2 (en) Determining color mappings for a color printer
EP0626783B1 (en) Method and apparatus for determining a gamut boundary and a gamut descriptor
US20070030505A1 (en) Production of profile
US6421140B1 (en) Color space conversion with simplified interpolation
WO1994006242A1 (en) Method and apparatus for color output device characterization
JP4882626B2 (en) Image processing apparatus, image forming apparatus, and program
JP2008148164A (en) Color processor and color processing method
JP3341688B2 (en) Control method for image processing apparatus and image processing apparatus controlled by the method
US5432892A (en) Volummetric linear interpolation
US6466332B1 (en) Black color generation amount determining method in black printing, a black color generation amount determining apparatus in black printing, a media having recorded thereon a black color generation amount determining program in black printing
US8031193B1 (en) Dynamic light shading in terrain rendering applications
US7777924B2 (en) Color conversion device and color conversion program
JP2000069311A (en) Control method of apparatus and image processor
US20060114483A1 (en) Color processing method and its apparatus
JPH0720841A (en) Method and apparatus for mapping metween color spaces
US7489815B2 (en) Source device to destination device transform using black weight
US6115493A (en) Technique for fast computation of highlight color mappings
JP3153002B2 (en) Color conversion method, color conversion table creation method, color conversion device, and color conversion table creation device
JP3146690B2 (en) Color page description language processor
EP1411715A2 (en) Balancing grays on color printers
JPH0946542A (en) Interpolation arithmetic method and data converter
US20230377328A1 (en) Method of generating a peripheral image of an aircraft and associated electronic generation device and computer program product
US20060256407A1 (en) Color conversion based on multiple color conversion profiles
EP0893912A2 (en) Image processing method and apparatus, and recording medium

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070823

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080823

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080823

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090823

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090823

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100823

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110823

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120823

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees