JP3048227B2 - Multidimensional interpolation device - Google Patents
Multidimensional interpolation deviceInfo
- Publication number
- JP3048227B2 JP3048227B2 JP9134422A JP13442297A JP3048227B2 JP 3048227 B2 JP3048227 B2 JP 3048227B2 JP 9134422 A JP9134422 A JP 9134422A JP 13442297 A JP13442297 A JP 13442297A JP 3048227 B2 JP3048227 B2 JP 3048227B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- interpolation
- dimensional
- unit
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 230000015654 memory Effects 0.000 claims description 61
- 238000004364 calculation method Methods 0.000 claims description 21
- 230000001174 ascending effect Effects 0.000 claims 1
- 239000007787 solid Substances 0.000 description 25
- 238000000034 method Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 13
- 239000000203 mixture Substances 0.000 description 3
- 241001125929 Trisopterus luscus Species 0.000 description 2
- 239000000049 pigment Substances 0.000 description 2
- 241000217377 Amblema plicata Species 0.000 description 1
- 238000010521 absorption reaction Methods 0.000 description 1
- 239000000654 additive Substances 0.000 description 1
- 230000000996 additive effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Complex Calculations (AREA)
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、デジタルカラー画
像データの色処理技術に関し、特にカラー複写機、カラ
ープリンタ、カラーモニタ等で原稿と同じ色再現を行う
ための色処理に応用できる多次元補間装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color processing technique for digital color image data, and more particularly to a multidimensional interpolation which can be applied to color processing for reproducing the same color as an original in a color copying machine, a color printer, a color monitor and the like. Related to the device .
【0002】[0002]
【従来の技術】近年、複写機やプリンタが広くオフィス
に普及し日常的に使われており、最近ではカラー文書を
コンピュータから直接カラープリンタへ出力し、またプ
リントアウトしたカラー文書をカラー複写機で大量に複
写している。このように、カラーの文書又は画像を印刷
又は複写する場合、機器によって出力される文書や画像
の色が違い十分な色再現性を確保できないといった問題
が生じた。これは、カラー出力機器の種類によっては、
色素がトナーであったり、染料であったり、インクであ
ったりするために、印刷物の色合いが異なるからであ
る。さらに、コンピュータで扱うRGBカラーデータが
加法混色で発色させているのに対して、プリンタの印刷
は減法混色で発色させており、色素の不要吸収のために
混色が色素自体にも多く存在するためである。2. Description of the Related Art In recent years, copiers and printers have become widespread in offices and are used on a daily basis. Recently, color documents have been output directly from a computer to a color printer, and printed color documents have been printed with a color copier. Copied in large quantities. As described above, when printing or copying a color document or image, there is a problem that the color of the document or image output by the device is different and sufficient color reproducibility cannot be secured. This depends on the type of color output device,
This is because the color of the printed matter is different because the dye is a toner, a dye, or an ink. Furthermore, while the RGB color data handled by the computer is colored by additive color mixture, the printer prints by subtractive color mixture, and the color mixture is also present in the pigment itself due to unnecessary absorption of the pigment. It is.
【0003】上記カラー画像等に対するデバイス間での
色再現性の問題を解決するために、画像機器の色彩再現
性能を高める色処理方法が開発され、機器の色再現性が
徐々に向上している。In order to solve the problem of color reproducibility between devices for color images and the like, a color processing method for improving the color reproducibility of an image device has been developed, and the color reproducibility of the device has been gradually improved. .
【0004】たとえば、ポストスクリプトプリンタで
は、機器の特性を表わしたカラーレンダリングディクシ
ョナリ(CRD)に基づき入力された画像データを、目
的とする色が再現される様に修正してからプリントして
いる。[0004] For example, in a PostScript printer, input image data is corrected based on a color rendering dictionary (CRD) representing the characteristics of a device so that a desired color is reproduced, and then printed.
【0005】また、電子写真方式のカラー複写機では、
カラースキャナーで得られたRGBカラーデータを、マ
トリックス演算や3次元ルックアップテーブルを用いて
色修正した後、カラーエンジンによりプリントしてい
る。In an electrophotographic color copying machine,
After color correction of RGB color data obtained by a color scanner using a matrix operation or a three-dimensional lookup table, printing is performed by a color engine.
【0006】以下、3次元ルックアップテーブルを用い
た色修正方法の例を説明する。Hereinafter, an example of a color correction method using a three-dimensional lookup table will be described.
【0007】図5に、一般的なカラー複写機の画像信号
処理の流れを示す。FIG. 5 shows a flow of image signal processing in a general color copying machine.
【0008】カラー原稿401はスキャナ402でRG
Bデータとして読み取られ、色修正部403でプリンタ
色修正を行った後、プリンタ404で印刷されて複製画
405として出力される。A color document 401 is scanned by a scanner 402 in RG mode.
The data is read as B data, subjected to printer color correction by the color correction unit 403, printed by the printer 404, and output as a duplicate image 405.
【0009】図6は、上記色修正部403で三次元ルッ
クアップテーブル(3D−LUT)を用いて三次元補間
演算を行う場合の機能ブロックである。入力信号(R、
G、B)は画像入力部501によって上位ビットと下位
ビットに分離され、上位ビットは3D−LUT(三次元
ルックアップテーブル)502から補間演算に使用する
複数の格子点データを取り出すのに用いられ、下位ビッ
トは重み係数演算部503で補間演算に必要な重み係数
を計算するのに用いられる。補間演算部504は重み係
数演算部503からの出力と3D−LUT502からの
出力との重み乗算により入力点に対応した画像出力のC
MYKを計算している。FIG. 6 is a functional block diagram when the color correction unit 403 performs a three-dimensional interpolation operation using a three-dimensional lookup table (3D-LUT). Input signal (R,
G and B) are separated into an upper bit and a lower bit by an image input unit 501, and the upper bit is used to extract a plurality of grid point data used for an interpolation operation from a 3D-LUT (three-dimensional lookup table) 502. , And the lower bits are used by the weight coefficient calculator 503 to calculate a weight coefficient required for the interpolation operation. The interpolation calculation unit 504 performs weight multiplication of the output from the weight coefficient calculation unit 503 and the output from the 3D-LUT 502 to obtain an image output C corresponding to the input point.
MYK is calculated.
【0010】図7は三次元入力色空間(RGB空間)を
各軸方向に限定数で分割し、単位立体に分割した状態を
表わしている。この単位立体の格子点での色修正データ
を上記3D−LUT502に格子点データとして記憶
し、入力に対応して色修正された出力値を、この格子点
データから補間演算により求める。FIG. 7 shows a state in which a three-dimensional input color space (RGB space) is divided by a limited number in each axis direction and is divided into unit solids. The color correction data at the lattice points of the unit solid is stored as lattice point data in the 3D-LUT 502, and an output value color-corrected corresponding to the input is obtained from the lattice point data by an interpolation operation.
【0011】色修正データとして8つの格子点データと
8つの補間係数とを用いて補間演算を行い、立方体補間
法により三次元補間する三次元色補正方法を従来例1と
して説明する。A three-dimensional color correction method in which interpolation is performed by using eight grid point data and eight interpolation coefficients as color correction data and three-dimensionally interpolated by a cubic interpolation method will be described as a first conventional example.
【0012】従来例1は、図8に示すように、入力デー
タ点から各軸に垂直な3つの面で単位立体を8分割し、
おのおの体積を対向する格子点データの重み係数として
8つの格子点データを積和演算する事によって入力点位
置での出力値を求めている。この場合、補間演算により
色修正データPoutは(1)式により計算される。In Conventional Example 1, as shown in FIG. 8, a unit solid is divided into eight by three planes perpendicular to each axis from an input data point.
The output value at the input point position is obtained by performing a product-sum operation on the eight grid point data as weight coefficients of the grid point data opposing each volume. In this case, the color correction data Pout is calculated from the equation (1) by interpolation.
【0013】[0013]
【数1】 ここで、重み係数Wijkは格子点データP(1-i)(1-j)(1-
k)の重み係数であり、(Equation 1) Here, the weighting coefficient Wijk is the lattice point data P (1-i) (1-j) (1-
k), and
【0014】[0014]
【数2】 で表される。Δx、Δy、Δzはそれぞれの単位立体内で
の入力データの基準点(P000)からの距離を単位立体
の各辺の長さを基準として表わした距離である。(Equation 2) It is represented by Δx, Δy, and Δz are distances representing the distance from the reference point (P000) of the input data in each unit solid based on the length of each side of the unit solid.
【0015】また、従来例2として、単位立体を複数の
四面体に分割し、その四面体内で補間演算を行う方法が
あり、例えば特公昭58ー16180号公報に記載され
ている。図9に示すように、単位立体を6つの四面体に
分割し、入力点がどの四面体に属するかによって補間出
力は(3)式によって計算される。As a second conventional example, there is a method in which a unit solid is divided into a plurality of tetrahedrons and an interpolation operation is performed in the tetrahedron, which is described in, for example, Japanese Patent Publication No. 58-16180. As shown in FIG. 9, the unit solid is divided into six tetrahedrons, and the interpolation output is calculated by equation (3) depending on which tetrahedron the input point belongs to.
【0016】[0016]
【数3】 次に、カラー画像がCMYKの4色のカラー信号で表わ
された場合には、従来例1の入力を四次元に拡張するこ
とで対応できる。すなわち、四次元入力空間の各軸を限
定数で分割して出来る単位超立体内で補間演算を行う。
単位超立体内の入力画像点から四軸への垂直面で分割し
た2x2x2x2=16個の超立体体積を重み係数とし
て、以下の式で四次元入力の場合の補間演算を行う事が
出来る。(Equation 3) Next, when a color image is represented by four color signals of CMYK, it can be dealt with by expanding the input of the first conventional example to four dimensions. That is, an interpolation operation is performed within a unit hypercube formed by dividing each axis of the four-dimensional input space by a limited number.
Using 2 × 2 × 2 × 2 = 16 hypersolid volumes divided by a vertical plane from the input image point in the unit hypercube to the four axes as weighting coefficients, interpolation calculation in the case of four-dimensional input can be performed by the following equation.
【0017】[0017]
【数4】 これは(5)式の様にも表現される。(Equation 4) This is also expressed as in equation (5).
【0018】[0018]
【数5】 さらに、これをN次元にまで拡張すると、N次元の補間
演算出力PoutNは(6)式で計算される。(Equation 5) Further, when this is extended to N dimensions, an N-dimensional interpolation calculation output PoutN is calculated by the equation (6).
【0019】[0019]
【数6】 また、従来例2を4次元まで拡張した方法が、特開平2
−226866号公報に記載されている。同公開公報に
記載に補間方法は4次元の補間立体を24個の超五面体
に分割し,入力点がどの超五面体に属するかを判定し,
超五面体の5頂点での出力値と5つの重み係数の積和演
算により4次元の補間を行っている。この場合には積和
演算の回数が従来例1を4次元に拡張した場合に必要な
16回に比べて、5回に減少させているが、補間のため
の重み係数の演算式の種類は従来例1の16種類に比べ
て20種類になっている。(Equation 6) A method in which Conventional Example 2 is extended to four dimensions is disclosed in
-226866. The interpolation method described in the same publication divides a four-dimensional interpolated solid into 24 hyperpentahedrons, determines which hyperpentahedron the input point belongs to,
Four-dimensional interpolation is performed by the product-sum operation of the output values at the five vertices of the hyperpentahedron and the five weighting coefficients. In this case, the number of product-sum operations is reduced to 5 times as compared with 16 times required when conventional example 1 is expanded to four dimensions. There are 20 types compared to the 16 types of the first conventional example.
【0020】[0020]
【発明が解決しようとする課題】上記従来例1では、入
力カラー信号の次元数が増大するにつれて、積和演算の
回数が急激に増大する。たとえば、立方体補間法で4次
元の色修正を4次元ルックアップ方式で補間演算を行う
場合には、1つの画素の演算には、重み係数の演算に1
6個x3回=48回の乗算と補間出力値の計算に16回
の積和演算が必要になる。3次元の場合の8x2=16
個の重み係数乗算と8回の積和演算に比べて計算量が極
端に増大する問題がある。さらに、多次元の場合にはさ
らに多くの乗算が必要になり、N次元の場合の演算にはIn the first conventional example, as the number of dimensions of the input color signal increases, the number of product-sum operations rapidly increases. For example, when a four-dimensional color correction is performed by a cubic interpolation method and an interpolation operation is performed by a four-dimensional lookup method, one pixel is calculated by using 1 as a weight coefficient calculation.
Six multiplications of 3 times = 48 times and calculation of the interpolated output value require 16 product-sum operations. 8x2 = 16 for three-dimensional case
There is a problem that the calculation amount is extremely increased as compared with the multiplication of the number of weight coefficients and the product-sum operation of eight times. Further, in the case of multi-dimension, more multiplication is required, and in the case of N-dimension, the operation is
【0021】[0021]
【数7】 が必要である。(Equation 7) is necessary.
【0022】また、補間演算を行うための格子点データ
数も2のN乗となるために多次元ルックアップテーブル
へのメモリアクセス回数も増大し計算速度が低下すると
いう問題を有している。Further, since the number of grid point data for performing the interpolation operation is 2 to the Nth power, the number of memory accesses to the multi-dimensional lookup table increases, and the calculation speed decreases.
【0023】また、従来例2では重み係数の計算の種類
が増え計算式が増大する欠点を有している。予め計算し
てROMに格納しておくことにより、計算回数の増大は
防げるが多次元になるにつれて逆にROMのメモリ容量
が増大するという欠点を有している。例えば、重み係数
の計算に入力信号の下位4ビットを利用すると、4次元
補間を行う場合には重み係数のために2の(4(ビッ
ト)x4(次元)=16)乗=64KワードのROMが
必要になる。補間次元数が増大するとこのメモリ容量は
急激に増大する事になる。Further, the conventional example 2 has a drawback that the number of types of calculation of the weight coefficient increases and the calculation formula increases. Calculating in advance and storing it in the ROM prevents the number of calculations from increasing, but has the disadvantage that the memory capacity of the ROM increases as the number of dimensions increases. For example, if the lower 4 bits of the input signal are used for calculating the weight coefficient, when performing four-dimensional interpolation, a ROM of (2 (4 (bit) × 4 (dimension) = 16) = 64 K words) is used for the weight coefficient. Is required. As the number of interpolation dimensions increases, the memory capacity rapidly increases.
【0024】本発明は、上記従来技術の課題を解決する
ためになされたもので、多次元補間を行う場合に乗算回
数の増加を抑え、補間のための重み係数の演算が簡単
で、合理的に多次元まで拡張でき、さらに動作の高速化
を図る事のできる多次元補間装置を提供することを目的
とする。SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems of the prior art, and suppresses an increase in the number of multiplications when performing multidimensional interpolation. Can be expanded to multiple dimensions , and the operation speed is further increased
It is an object of the present invention to provide a multidimensional interpolation device capable of achieving the following.
【0025】[0025]
【課題を解決するための手段】本発明は、上記課題を解
決するために次のような手段を講じた。According to the present invention, the following means are taken to solve the above-mentioned problems.
【0026】請求項1記載の発明は、N次元入力点の各
軸のデータを上位データ(Oh1,Oh2,…,Oh
N)と下位データ(Ol1,Ol2,…,OlN)に分
割するデータ分割部と、N次元空間の各単位超立方体頂
点に対応した出力データを重複することなく(N+1)
個のメモリに分割記憶したN次元分割メモリと、前記下
位データを大きい順に並べ替えて出力する補間係数セレ
クタと、前記下位データの大きさの順序を判定する順序
判定部と、順序判定結果にしたがって前記単位超立方体
の原点からN個の稜線を順次選択した場合の各端点の前
記単位超立方体原点からの相対アドレス(C1,C2,
…,CN)を発生する補正アドレス発生器と、前記相対
アドレス(C1,C2,…,CN)と前記上位データ
(Oh1,Oh2,…,OhN)よりN次元補間超立体
の各頂点に対応した(N+1)個の分割メモリを選択す
るセレクト信号Mi(iはメモリ番号であり0〜Nの整
数)と(N+1)個の分割メモリ内の各頂点のアドレス
信号MAiとを、 According to the first aspect of the present invention, each of the N-dimensional input points
Axis data is converted to upper data (Oh1, Oh2, ..., Oh
N) and lower data (Ol1, Ol2, ..., OlN).
Data division part to divide, and each unit hypercube top in N-dimensional space
Output data corresponding to points is not duplicated (N + 1)
N-dimensional divided memory divided and stored in
Interpolation coefficient selector that sorts and outputs the
And the order for determining the order of the size of the lower data
A determination unit, and the unit hypercube according to the order determination result
Before each end point when N ridge lines are sequentially selected from the origin of
The relative address from the origin of the unit hypercube (C1, C2,
.., CN) and the relative address generator
Address (C1, C2, ..., CN) and the upper data
(Oh1, Oh2, ..., OhN) N-dimensional interpolated hypercube
(N + 1) divided memories corresponding to each vertex of
Select signal Mi (i is a memory number and 0 to N
Number) and the address of each vertex in the (N + 1) divided memories
The signal MAi is
【数2】 ここで、%は割り算の余りを示し、/は整数割り算の商
を示す のように発生する(N+1)個のアドレス発生器
と、前記セレクト信号Miによって選択されたメモリに
該当する前記アドレス信号MAiを配分するための(N
+1)個のアドレスセレクタと、前記下位データの大き
さ順序と前記上位データとに基づいて補間係数演算に用
いる出力データを前記N次元分割メモリの出力データか
ら選択するデータセレクタと、前記補間係数セレクタの
出力を補間係数にして前記データセレクタで選択された
出力データを補間演算する補間演算部とを具備する構成
を採る。 (Equation 2) Here,% indicates the remainder of the division, and / indicates the quotient of the integer division.
The generated as shown (N + 1) number of address generators
To the memory selected by the select signal Mi.
(N) for distributing the corresponding address signal MAi
+1) address selectors and the size of the lower data
Used for interpolation coefficient calculation based on the
Is the output data of the N-dimensional divided memory
A data selector to be selected from the interpolation coefficient selector.
The output was selected as the interpolation coefficient by the data selector.
A configuration including an interpolation operation unit that performs an interpolation operation on output data
Take.
【0027】このような多次元補間装置によれば、N次
元入力点の各軸位置の大きさ順によって補間超立体の各
頂点に対応した出力データを選択するので、補間超立体
の各頂点に対応した出力データを容易に求める事がで
き、多次元補間の場合に発生する乗算回数の増加を抑制
できる。しかも、N次元空間の各単位超立方体頂点に対
応した出力データを重複することなく(N+1)個のメ
モリに分割記憶して、1つの補間超立体の各頂点に対応
する出力データをパラレルに取り出す事が出来るように
したので、シリアルに多数回アクセスする場合に比べて
動作速度を上げる事ができる。 According to such a multidimensional interpolation device, the Nth order
Each of the interpolated hypercubes is determined by the order of magnitude of each axis position of the original input point.
Select the output data corresponding to the vertices,
Output data corresponding to each vertex can be easily obtained.
The increase in the number of multiplications that occurs in multidimensional interpolation
it can. Moreover, each unit hypercube vertex in the N-dimensional space
The corresponding output data without duplication (N + 1)
Corresponding to each vertex of one interpolated hypersolid
Output data to be extracted in parallel
Compared to accessing the serial many times
The operating speed can be increased.
【0028】[0028]
【0029】[0029]
【0030】[0030]
【0031】[0031]
【0032】[0032]
【0033】[0033]
【0034】[0034]
【0035】[0035]
【0036】[0036]
【0037】[0037]
【0038】[0038]
【0039】[0039]
【0040】[0040]
【発明の実施の形態】以下、本発明の実施の形態につい
て具体的に説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be specifically described below.
【0041】(実施の形態1) 実施の形態1は、多次元の単位超立方体(ここでは、N
次元超立体とする)を、その原点とその対角点を結ぶ線
と超立方体の互いに直交しまた連結しているN本の稜線
によって形成されるN!個のN次元超立体に分割し、こ
のN次元超立体内で補間演算を行う。(Embodiment 1) In Embodiment 1, a multidimensional unit hypercube (here, N
Is defined by a line connecting its origin and its diagonal point and N ridge lines which are orthogonal and connected to each other of a hypercube. Divided into pieces of N-dimensional super stereoscopic performs interpolation calculation in the N-dimensional super stereoscopic this <br/>.
【0042】この様な超立体補間を用いた場合、補間超
立体を選択したN本の稜線は互いに垂直であり、N次元
空間の各軸方向にそれぞれ平行であるため、各軸方向の
出力変移量の線形和を原点出力値に加算した値が多次元
補間演算の出力になる。When such hypercube interpolation is used, the N ridge lines from which the interpolated hypercube is selected are perpendicular to each other and parallel to each axial direction of the N-dimensional space. The value obtained by adding the linear sum of the quantities to the origin output value is the output of the multidimensional interpolation operation.
【0043】したがって、稜線の端点の出力差分値に各
稜線上での原点からの距離を乗算して、それら乗算値を
多次元立方格子の原点の出力値に累積加算する事で補間
演算を行なう事ができる。Therefore, the interpolation operation is performed by multiplying the output difference value of the end point of the ridge line by the distance from the origin on each ridge line and cumulatively adding the multiplied value to the output value of the origin of the multidimensional cubic lattice. Can do things.
【0044】ここで、単位超立体から、互いに直交する
N個の稜線を持ったN次元超立体(補間超立体)を選択
する方法について説明する。Here, orthogonal to each other from the unit hypercube
Describes a method of selecting the N-dimensional super solid having N number of ridge lines (interpolation super solid).
【0045】図1は、5次元(N=5)の場合の分割方
法の説明図である。同図を用いて、入力信号がX,Y,
Z,A,Bの5軸を持った5次元入力信号の上位信号に
よって形成される単位超立方体から5本の稜線を選択す
る方法を説明する。FIG. 1 is an explanatory diagram of a dividing method in the case of five dimensions (N = 5). Referring to FIG.
A method of selecting five ridge lines from a unit hypercube formed by upper signals of a five-dimensional input signal having five axes of Z, A, and B will be described.
【0046】図1(1)は入力上位信号(Xh,Yh,Z
h,Ah,Bh)によって選択された単位超立方体と各入
力軸との関係を表したもので、A軸とB軸はそれぞれ4
次元軸と5次元軸の方向を表している。入力信号の下位
信号(Δx,Δy,Δz,Δa,Δb)の順序づけによ
ってΔx>Δy>Δa>Δz>Δbの関係が得られた場
合に、図1(2)は第1番目の稜線が単位超立方体の原
点Oから伸びた5本の稜線から順位づけの最大方向であ
るX軸方向の稜線を選択している事を示している。図1
(3)は第2番目の稜線として、第1番目の稜線の端点
から新たに伸びる稜線で第1番目の稜線方向を除いた4
本の稜線から下位信号の第2番目の順位づけであるY方
向の稜線を選択している。図1(4)は第3番目の稜線
として、第2番目の稜線の端点から新たに伸びる稜線で
第1と第2の稜線方向を除いた3本の稜線から下位信号
の第3番目の順位づけであるA方向の稜線を選択してい
る。図1(5)は第4番目の稜線として、第3番目の稜
線の端点から新たに伸びる稜線で第1と第2と第3の稜
線方向を除いた2本の稜線から下位信号の第4番目の順
位づけであるZ方向の稜線を選択している。図1(6)
は最後の稜線として,第4番目の稜線の端点から新たに
伸びる稜線で第1と第2と第3と第4の稜線方向を除い
た残り1本の稜線で下位信号の第5番目の順位づけであ
るB方向の稜線を第5番目の稜線として選択している。
最後に、この第5番目の稜線の端点と単位超立方体の原
点とを結んだ線分の合計6本の線分の端点の6頂点によ
って囲まれた超立体を補間立体として選択している。入
力信号の5次元空間上の位置はこの選択された補間超立
体内にあり、この超立体を補間立体として使用する。FIG. 1A shows the input upper signals (Xh, Yh, Z).
h, Ah, Bh) shows the relation between the unit hypercube selected by (h, Ah, Bh) and each input axis.
The directions of the dimensional axis and the five-dimensional axis are shown. FIG. 1B shows a case where the relationship of Δx>Δy>Δa>Δz> Δb is obtained by ordering the lower signals (Δx, Δy, Δz, Δa, Δb) of the input signal. This indicates that the ridge line in the X-axis direction, which is the maximum ranking direction, is selected from the five ridge lines extending from the origin O of the hypercube. FIG.
(3) is a second ridge line extending from an end point of the first ridge line and excluding the direction of the first ridge line.
The ridge line in the Y direction, which is the second order of the lower signal, is selected from the ridge lines. FIG. 1 (4) shows, as a third ridge line, a ridge line newly extending from an end point of the second ridge line and a third order of lower-order signals from three ridge lines excluding the first and second ridge line directions. The ridge line in the A direction, which is the name, is selected. FIG. 1 (5) shows the fourth ridge line as the fourth ridge line newly extending from the end point of the third ridge line and excluding the first, second, and third ridge lines from the two ridge lines. The ridge line in the Z direction, which is the second ranking, is selected. Fig. 1 (6)
Is the last ridge line, the ridge line newly extending from the end point of the fourth ridge line, the remaining one ridge line excluding the first, second, third, and fourth ridge line directions, and the fifth rank of the lower signal The ridge line in the B direction, which is the name, is selected as the fifth ridge line.
Finally, a supersolid surrounded by six vertices of a total of six line end points connecting the end point of the fifth ridge line and the origin of the unit hypercube is selected as the interpolation solid. The position of the input signal in the five-dimensional space is in the selected interpolated hypercube, and this hypercube is used as the interpolated solid.
【0047】この様な補間立体の選択アルゴリズムを用
いると、図1を容易にN次元まで拡張できるため、合理
的な補間立体の選択方法であるといえる。また、第1の
稜線の選択にはN種の選択があり,第2の稜線の選択に
は(N−1)種の選択、以下(N−2)、(N−
3)、...,2、1種の選択がある事になり,合計N
!種類の選択がある事から、単位補間超立方体はN!個
の補間超立体へ分割されている事がわかる。When such an interpolation solid selection algorithm is used, FIG. 1 can be easily extended to N dimensions, which can be said to be a rational interpolation solid selection method. In addition, there are N types of selection for the selection of the first ridge line, and (N-1) types of selection for the selection of the second ridge line, hereinafter (N-2), (N-
3),. . . , 2, 1 type, there is a total of N
! Since there is a choice of types, the unit interpolation hypercube is N! It can be seen that the image is divided into a plurality of interpolated hypercubes.
【0048】このような実施の形態によれば、入力信号
によってN次元補間立体のN本の稜線を選択して補間を
行う多次元補間立体を特定し、多次元メモリの読み出し
アドレスを決定して補間演算に必要な(N+1)個の格
子点データを取り出す事が出来る。すなわち、入力信号
の下位信号を大きい順番に並べ換えて、大きい下位信号
を持った信号の軸方向に順番に稜線を選択して行く事で
互いに直交してかつ連結したN本の稜線を合理的に選択
することができる。また、連結した稜線の端点位置の多
次元メモリのデータを読み出す事でN次元超立体の格子
点データも順序づけして読み出す事が出来る。それらの
順序づけした格子点データと順序づけした下位信号によ
って補間演算を行う形態をとるので、多次元補間を行う
場合に発生する乗算回数の増加を抑えることができる。According to such an embodiment, a multidimensional interpolation solid to be interpolated by selecting N edges of the N-dimensional interpolation solid based on the input signal is specified, and a read address of the multidimensional memory is determined. (N + 1) grid point data required for the interpolation operation can be extracted. That is, by rearranging the lower signals of the input signal in the descending order, and sequentially selecting the ridges in the axial direction of the signal having the larger lower signal, the N ridges which are orthogonal and connected to each other can be rationally formed. You can choose. Also, by reading the data of the multidimensional memory at the end point position of the connected ridge line, the N-dimensional hypercube lattice point data can be read in order. Since the interpolation operation is performed using the ordered grid point data and the ordered lower signals, an increase in the number of multiplications that occurs when performing multidimensional interpolation can be suppressed.
【0049】CMYK等の4色以上のカラーデータを持
った印刷データをRGBデータに変換して印刷結果をシ
ミュレートする色調整装置や、4色データの色修正装置
に適用することができる。また、4色以上の場合にも、
同じ手法を容易に適用する事が出来る。The present invention can be applied to a color adjustment device that simulates a print result by converting print data having four or more color data such as CMYK into RGB data, and a color correction device for four-color data. Also, when there are four or more colors,
The same technique can be easily applied.
【0050】(実施の形態2)実施の形態2は、上記実
施の形態1の多次元補間方法を多次元色補正装置に適用
した例である。Second Embodiment A second embodiment is an example in which the multidimensional interpolation method of the first embodiment is applied to a multidimensional color correction device.
【0051】この多次元色補正装置は、入力される多次
元カラー信号を上位部分と下位部分に分割する入力信号
分割手段と、N次元入力カラー空間の離散的な入力点の
出力値を予め計算して記憶した多次元メモリ手段と、上
位部分の信号をアドレス信号として単位超立方体を選択
して多次元メモリから上位部分に対応する1つの単位超
立方体を選択する単位超立方体選択手段と、選択された
単位超立方体から補間演算を行うための単位超立方体を
構成するN!個の(N+1)面体から1つを選択するた
め下位部分を大きい順番に順位づけする手段と、順位づ
け結果によって単位超立方体から互いに直交しかつ連結
したN本の稜線を選択する手段と、連結したN本の稜線
の両端点と各連結位置の合計(N+1)点の出力データ
を連結順序で多次元メモリから読み出すデータ読み出し
手段と、順位づけした(N+1)個の格子点出力データ
と順序づけした下位部分を重み係数として多次元補間を
行う補間演算部とを備える。This multi-dimensional color correction apparatus includes an input signal dividing means for dividing an input multi-dimensional color signal into an upper part and a lower part, and calculates in advance output values of discrete input points in an N-dimensional input color space. Multidimensional memory means for storing and storing, unit hypercube selecting means for selecting a unit hypercube using the signal of the upper part as an address signal and selecting one unit hypercube corresponding to the upper part from the multidimensional memory; N! Constituting a unit hypercube for performing an interpolation operation from the unit hypercube obtained Means for ordering the lower parts in descending order in order to select one from the (N + 1) planes, means for selecting N mutually connected and orthogonal ridge lines from the unit hypercube according to the ordering result, The data reading means for reading out the output data of the total (N + 1) points of the end points of the N ridge lines and the respective connection positions from the multidimensional memory in the connection order, and ordered (N + 1) lattice point output data. An interpolation calculation unit that performs multidimensional interpolation using the lower part as a weight coefficient.
【0052】また、上記多次元色補正装置の高速化を図
るのであれば、上記構成で多次元メモリを(N+1)個
のサブメモリに分割して格子点データを記憶し、独立し
た(N+1)個のアドレス発生器によって補間に必要な
(N+1)個の超立体格子点データを同時に読み出せる
ように構成する。In order to increase the speed of the multidimensional color correction apparatus, the multidimensional memory is divided into (N + 1) sub memories in the above configuration, and grid point data is stored. (N + 1) hyper-solid grid point data required for interpolation can be simultaneously read out by the address generators.
【0053】このような構成を採ることで、多次元メモ
リを(N+1)回アクセスすることによる時間ロスを避
けることができる。By adopting such a configuration, it is possible to avoid a time loss caused by accessing the multidimensional memory (N + 1) times.
【0054】(実施の形態3)図2は本実施の形態に係
る4次元の色修正装置の信号処理の流れを示すブロック
図である。図2において、201はデータ分割部で入力
された入力信号CMYKを上位部分Ch、Mh、Yh、
Khと下位部分Δc、Δm、Δy、Δkに分割して出力
する。202は上位信号によって選択された単位超立体
を選択するためのアドレス発生部,203は入力信号の
上位ビットにそれぞれ対応した位置の出力値を記憶して
いる多次元メモリで16個の単位超立方体格子点のメモ
リ値を出力する。204は下位信号の順位判定部206
からの出力によって16個の多次元メモリから補間に必
要な5個の格子点データを選択するセレクタ,205は
5個の選択された格子点データと順位づけされた入力信
号の下位部分を重み係数として積和演算を行う補間演算
部である。また,206は入力下位部分の順位判定部
で,その結果によって,セレクタ207で入力下位信号
を大きい順番に並べ替えたり,セレクタ204の選択信
号として204の動作を制御して該格子点データの選択
を行う。修正された色信号は出力線208から出力され
る。(Embodiment 3) FIG. 2 is a block diagram showing a flow of signal processing of a four-dimensional color correction apparatus according to the present embodiment. In FIG. 2, reference numeral 201 denotes an input signal CMYK input by the data division unit, which is divided into upper parts Ch, Mh, Yh,
Kh and the lower parts Δc, Δm, Δy, Δk are divided and output. 202 is an address generator for selecting the unit hypercube selected by the upper signal, and 203 is a multidimensional memory which stores output values at positions corresponding to the upper bits of the input signal, respectively. Outputs the memory value of the grid point. Reference numeral 204 denotes a lower-order signal ranking determination unit 206
Selector for selecting five grid point data necessary for interpolation from 16 multi-dimensional memories according to the output from the controller 205. The lower part of the input signal ranked with the five selected grid point data is assigned a weight coefficient. Is an interpolation operation unit that performs a product-sum operation. Reference numeral 206 denotes an input lower-order order determining unit. Based on the result, the selector 207 rearranges the input lower-order signals in descending order or controls the operation of the selector 204 as a selection signal to select the grid point data. I do. The corrected color signal is output from an output line 208.
【0055】図2では、出力は1次元であるが,203
〜205を多重にすれば出力は多重数だけの出力を取り
出す事ができる。また、多次元メモリの内容を書き換え
る事で順次色信号の出力を得る事もできる。In FIG. 2, the output is one-dimensional.
If 205 205 are multiplexed, it is possible to take out only the multiplexed outputs. Also, by rewriting the contents of the multidimensional memory, it is possible to sequentially obtain color signal outputs.
【0056】以上にように構成された4次元色修正装置
の動作を詳しく説明する。The operation of the four-dimensional color correction device configured as described above will be described in detail.
【0057】入力信号を8ビットの4色信号としてCM
YKの信号をデータ分割部201で上位データと下位デ
ータに分割する。ここでは、上位4ビットと下位4ビッ
トに分割している。The input signal is converted into an 8-bit four-color signal as a CM signal.
The data division unit 201 divides the YK signal into upper data and lower data. Here, it is divided into upper 4 bits and lower 4 bits.
【0058】[0058]
【数8】 下位信号Δc、Δm、Δy、Δkを順序判定部206で
大きさの順序を判定し、順序判定結果に基づいて補間係
数セレクタ207で大きい順序に並び替える。その結果
が、Δmax、Δmid-high、Δmid-low、Δminとなる。(Equation 8) The lower-order signals Δc, Δm, Δy, and Δk are determined by the order determining unit 206 in order of magnitude, and are rearranged by the interpolation coefficient selector 207 based on the order determination result. The results are Δmax, Δmid-high, Δmid-low, and Δmin.
【0059】[0059]
【数9】 並べ替えられたこれらの係数は補間演算部205に入力
される。(Equation 9) These rearranged coefficients are input to the interpolation calculation unit 205.
【0060】一方、上位データCh、Mh、Yh、Kh
はアドレス発生部202に入力されて、上位データのア
ドレスにより示された4次元空間の原点から始まる単位
4次元超立方体を選択し、その超立方体の16個の頂点
位置のデータを多次元メモリ203から取り出す。取り
出された16個の格子点データから、順序判定部206
の判定結果によって4次元補間演算に必要となる5個の
データを順序づけて取り出す。このデータの取り出しは
データセレクタ204によって行われるが、P0とP4
は格子点位置が決まっているので実際にデータセレクタ
204で選択するのはP1、P2、P3の3種類であ
る。On the other hand, the upper data Ch, Mh, Yh, Kh
Is input to the address generation unit 202, selects a unit four-dimensional hypercube starting from the origin of the four-dimensional space indicated by the address of the upper data, and stores the data of the 16 vertices of the hypercube in the multidimensional memory 203. Remove from From the extracted 16 grid point data, the order determination unit 206
The five data required for the four-dimensional interpolation operation are extracted in order according to the judgment result of (1). The data is taken out by the data selector 204, but P0 and P4
Since the lattice point positions are determined, the data selector 204 actually selects three types, P1, P2, and P3.
【0061】具体的に説明すると、4次元補間立体の第
1の頂点P1のセレクタ信号S1をSpecifically, the selector signal S1 of the first vertex P1 of the four-dimensional interpolation solid is
【0062】[0062]
【数10】 に設定する。次に、第2の頂点P2のセレクタ信号S2
を(Equation 10) Set to. Next, the selector signal S2 of the second vertex P2
To
【0063】[0063]
【数11】 に設定する。さらに、第3の頂点P3のセレクタ信号S
3を[Equation 11] Set to. Further, the selector signal S of the third vertex P3
3
【0064】[0064]
【数12】 に設定する。(Equation 12) Set to.
【0065】この3つのセレクタ信号によって1〜14
番の多次元メモリデータからP1、P2、P3データを
選択する。セレクタ信号は(0、0、0、0)と(1、
1、1、1)を除く値をとり、セレクタ信号の2進表示
を10進表示すれば1〜14の値に対応し、これは図2
の多次元メモリの出力番号に対応している。According to the three selector signals, 1 to 14
P1, P2, and P3 data are selected from the number-th multidimensional memory data. The selector signals are (0, 0, 0, 0) and (1,
If the values other than (1, 1, 1) are taken and the binary representation of the selector signal is displayed in decimal, it corresponds to the values of 1 to 14, which corresponds to FIG.
Corresponds to the output number of the multidimensional memory.
【0066】補間演算部205では、(9)式の重み係
数のデータと(10)式〜(12)式の座標の格子点デ
ータP0〜P4を用いて(13)式の演算によって補間
出力Poutを得る。The interpolation calculation unit 205 calculates the interpolation output Pout by the calculation of the equation (13) using the weight coefficient data of the equation (9) and the grid point data P0 to P4 of the coordinates of the equations (10) to (12). Get.
【0067】[0067]
【数13】 以上の説明では、4次元補間を例にしているが、N次元
補間にも容易に拡張が出来る。それは(8)式をN次元
まで拡張してN組の上位と下位の信号を分離し、(9)
式で下位部分の順序判定を4個からN個へ拡張し、選択
した格子点数が(N+1)個になり、(13)式の積和
演算の回数がN回にまで拡張する事で実現出来る。(Equation 13) In the above description, four-dimensional interpolation is taken as an example, but it can be easily extended to N-dimensional interpolation. It expands equation (8) to N dimensions to separate N sets of upper and lower signals, and (9)
The order determination of the lower part is extended from four to N in the equation, the number of selected grid points becomes (N + 1), and the number of product-sum operations in equation (13) is extended to N. .
【0068】このような実施の形態によれば、下位信号
がそのまま重み係数として補間演算に使用され、多次元
補間演算の場合でも演算回数が次元の増大に対してそれ
ほど増加しない効果がある。According to such an embodiment, the lower-order signal is used as it is as the weighting factor in the interpolation operation, and even in the case of the multidimensional interpolation operation, there is an effect that the number of operations does not increase so much as the dimension increases.
【0069】(実施の形態4)図3は、本実施の形態に
係る4次元色修正装置の信号処理の流れを示すブロック
図である。(Embodiment 4) FIG. 3 is a block diagram showing the flow of signal processing of the four-dimensional color correction apparatus according to the present embodiment.
【0070】本実施の形態は、実施の形態3で用いてい
た多次元メモリ203を、4次元超補間立体の5頂点に
対応して5分割している。なお、4次元入力信号CMY
Kがデータ分割部301で上位部分Ch、Mh、Yh、
Khと下位部分Δc、Δm、Δy、Δkに分けられ、ま
た下位部分の信号が順序判定部306で大きい順に順序
づけられ、補間係数セレクタ307によって下位信号は
大きい順にそれぞれΔmax、Δmid-high、Δmod-low、Δ
minに並べ替えられて補間演算器305に入力するのは
上記実施の形態3と同じである。In this embodiment, the multidimensional memory 203 used in the third embodiment is divided into five parts corresponding to five vertices of a four-dimensional super-interpolated solid. The four-dimensional input signal CMY
K is an upper part Ch, Mh, Yh,
Kh and lower parts Δc, Δm, Δy, Δk, and the lower part signals are ordered by the order determination unit 306 in the descending order. low, Δ
It is the same as in the third embodiment that the data is rearranged to min and input to the interpolation calculator 305.
【0071】次に、多次元メモリがどの様に5つのメモ
リに分割されるかを図4を用いて説明する。4次元単位
超立方体の基準点を(0、0、0、0)で表わした時に
基準点はMem0に記憶したとして、この基準点から超
立方体の稜線にそって1つ移動した4つの点は、補間立
体の選択過程ではこの4点から1点のみ選択されるから
これらの4点は同じメモリMem1に記憶しても補間立
体の格子点としてMem1から重複して読み出される事
はないので(1、0、0、0)、(0、1、0、0)、
(0、0、1、0)、(0、0、0、1)はMem1に
記憶する。次に(1、0、0、0)を原点として1つ稜
線を移動した4点は同様に重複して読み出される事はな
いので(2、0、0、0)、(1、1、0、0)、
(1、0、1、0)、(1、0、0、1)はMem2に
記憶する。次に(1、1、0、0)を原点として1つ稜
線を移動した4点は同様に重複して読み出される事はな
いので(2、1、0、0)、(1、2、0、0)、
(1、1、1、0)、(1、1、0、1)はMem3に
記憶する。次に(1、1、1、0)を原点として1つ稜
線を移動した4点は同様に重複して読み出される事はな
いので(2、1、1、0)、(1、2、1、0)、
(1、1、2、0)、(1、1、1、1)はMem4に
記憶する。図4に補間立体の頂点の値をどのメモリに記
憶するかを以上の方法により決めたメモリの種類を示し
た。Next, how the multidimensional memory is divided into five memories will be described with reference to FIG. When the reference point of the four-dimensional unit hypercube is represented by (0, 0, 0, 0), it is assumed that the reference point is stored in Mem0, and the four points that have moved one along the hypercube ridge line from this reference point are Since only one of these four points is selected in the process of selecting an interpolated solid, even if these four points are stored in the same memory Mem1, they are not redundantly read from Mem1 as grid points of the interpolated solid. , 0, 0, 0), (0, 1, 0, 0),
(0, 0, 1, 0) and (0, 0, 0, 1) are stored in Mem1. Next, the four points that have moved one edge line with (1, 0, 0, 0) as the origin are not read out in the same manner, so (2, 0, 0, 0), (1, 1, 0) , 0),
(1, 0, 1, 0) and (1, 0, 0, 1) are stored in Mem2. Next, the four points that have moved one edge line with (1, 1, 0, 0) as the origin are not read out in the same manner, so (2, 1, 0, 0), (1, 2, 0) , 0),
(1, 1, 1, 0) and (1, 1, 0, 1) are stored in Mem3. Next, the four points that have moved one ridge line with (1, 1, 1, 0) as the origin are not read out in the same manner, so (2, 1, 1, 0), (1, 2, 1) , 0),
(1, 1, 2, 0) and (1, 1, 1, 1) are stored in Mem4. FIG. 4 shows the types of memory in which the values of the vertices of the interpolation solid are stored in which memory by the above method.
【0072】この様に多次元メモリを分割して格子点デ
ータを分割記憶する事によって、補間に必要な5種の4
次元テーブルの値を同時に読み出す事が出来るため、逐
次多次元メモリをアクセスして読み出す場合に比べて並
列読み出しのために読み出し速度は(N+1)倍にな
り、高速動作が可能になる。As described above, by dividing the multidimensional memory and dividing and storing the grid point data, five kinds of 4
Since the values of the dimension table can be read at the same time, the reading speed becomes (N + 1) times for parallel reading as compared with the case of sequentially accessing and reading the multidimensional memory, thereby enabling high-speed operation.
【0073】ここで、4次元単位超立方体の基準点はM
em0としたが、例えばX軸方向に隣接する単位超立方
体の基準点はMem1に記憶されている事になり、基準
点のメモリは単位超立方体の位置により変化することに
なる。そこで、このメモリ分割記憶の方法を詳しく説明
する。Here, the reference point of the four-dimensional unit hypercube is M
Although em0 is used, for example, the reference point of the unit hypercube adjacent in the X-axis direction is stored in Mem1, and the memory of the reference point changes depending on the position of the unit hypercube. Therefore, the method of memory division storage will be described in detail.
【0074】4次元データの場合、入力4次元色空間を
各軸均等に4ビットで16等分割し、各軸に最後の格子
点を含んで17点の格子点がある。そこで、各格子点の
アドレスを(x、y、z、k)とし、この点の格子点デ
ータをP(x、y、z、k)とするとP(x、y、z、
k)を格納するメモリの種類(Mem0〜4)とそのメ
モリアドレスは(14)式によって決定する。In the case of four-dimensional data, the input four-dimensional color space is equally divided into four equal parts by four bits on each axis, and each axis has 17 grid points including the last grid point. Therefore, if the address of each grid point is (x, y, z, k) and the grid point data of this point is P (x, y, z, k), P (x, y, z,
The memory type (Mem0 to 4) for storing k) and its memory address are determined by equation (14).
【0075】[0075]
【数14】 ここで、%は割り算の余りを示し、/は整数割り算の商
を示す。また、これらをN次元まで拡張した場合には、
各軸が16分割の場合、各格子点の多次元アドレスを
(A1、A2、A3,...AN)iとした場合、格納され
るメモリの種類MiとそのメモリアドレスAiは(15)
式によって表される。[Equation 14] Here,% indicates the remainder of the division, and / indicates the quotient of the integer division. When these are extended to N dimensions,
If each axis is divided into 16, and the multidimensional address of each grid point is (A1, A2, A3,... AN) i, the type of memory Mi to be stored and its memory address Ai are (15)
It is represented by an equation.
【0076】[0076]
【数15】 以上の原理に基づき格納された各分割メモリに対する読
み出しアドレスを発生させる方法を説明する。(Equation 15) A method of generating a read address for each divided memory stored based on the above principle will be described.
【0077】図3の補正アドレス発生器309が発生す
る補正アドレスは単位超立方体の原点から4つの稜線を
順次選択した場合の各端点のアドレスの単位超立方体原
点からの相対アドレスである。例えば、図4の場合であ
れば、それぞれの補正アドレス発生器302の出力は、
4次元補間立体の原点には(0、0、0、0)、第1の
頂点には(1、0、0、0)、第2の頂点には(1、
1、0、0)、第3の頂点には(1、1、1、0)、第
4の頂点には(1、1、1、1)となる。The correction address generated by the correction address generator 309 in FIG. 3 is a relative address of the address of each end point from the unit hypercube origin when four edges are sequentially selected from the origin of the unit hypercube. For example, in the case of FIG. 4, the output of each correction address generator 302 is
The origin of the four-dimensional interpolation solid is (0, 0, 0, 0), the first vertex is (1, 0, 0, 0), and the second vertex is (1, 0, 0).
(1, 0, 0), (1, 1, 1, 0) for the third vertex, and (1, 1, 1, 1) for the fourth vertex.
【0078】この値と原点の絶対アドレスを加算した各
頂点の絶対アドレスから(15)式によって各頂点の格
子点データが格納されているメモリの種類とアドレスが
計算出来る。すなわち、単位補間超立体の原点メモリア
ドレスOと各格子点Pに対するアドレス補正器の出力を
Cとすると各格子点のアドレスAはFrom the absolute address of each vertex obtained by adding this value and the absolute address of the origin, the type and address of the memory storing the grid point data of each vertex can be calculated by equation (15). That is, assuming that the origin memory address O of the unit interpolation hypercube and the output of the address corrector for each lattice point P are C, the address A of each lattice point is
【0079】[0079]
【数16】 で表わせる。したがって、各頂点の位置での出力値を格
納してあるメモリの種類MiとアドレスMAiは(Equation 16) Can be represented by Therefore, the memory type Mi and the address MAi storing the output value at the position of each vertex are:
【0080】[0080]
【数17】 で表わされる。[Equation 17] Is represented by
【0081】ここで、アドレス発生器302によって、
格子点P0〜P4に対応するメモリの種類Miとそれぞ
れのアドレスMAiが計算された。アドレスセレクタ3
10はMiをセレクト信号SELiとして使用してメモ
リアドレスMAiを対応するメモリMem0〜4のアド
レスに切り替える。各格子点P0〜P4に対してメモリ
アドレスの切り替えを以下に示す。以下の対応表はP0
〜P4に対して共通である。 SEL信号(SELi=Mi) アドレスを配布するメモリの種類 0 Mem0 1 Mem1 2 Mem2 3 Mem3 4 Mem4 また、読み取られたデータはデータセレクタ304によ
って上記と同じ対応表で選択されて補間演算部308へ
入力される。補間演算部308は実施の形態3と同様に
(13)式により計算する。Here, the address generator 302
The memory type Mi corresponding to the lattice points P0 to P4 and the respective addresses MAi were calculated. Address selector 3
Reference numeral 10 switches the memory address MAi to the address of the corresponding memory Mem0 to Mem4 using Mi as the select signal SELi. The switching of the memory address for each of the lattice points P0 to P4 is described below. The following correspondence table is P0
To P4. SEL signal (SELi = Mi) Type of memory for distributing addresses 0 Mem0 1 Mem1 2 Mem2 3 Mem3 4 Mem4 Further, the read data is selected by the data selector 304 in the same correspondence table as described above and input to the interpolation operation unit 308. Is done. The interpolation calculation unit 308 calculates by the equation (13) as in the third embodiment.
【0082】この実施の形態4も容易に多次元に拡張す
る事が出来る。N次元に拡張した場合には図3の分割メ
モリ303は(N+1)個に分割され、それに対応した
アドレス発生器302、補正アドレス発生器309は
(N+1)個まで拡張する。また、順序判定部306、
補間係数セレクタ307、データ分割部301の入出力
はN組になり、データセレクタ304の入出力は(N+
1)組まで拡張される。また、この場合(17)式は
(18)式に拡張される事になる。The fourth embodiment can also be easily extended to multi-dimensions. When the data is expanded to N dimensions, the division memory 303 in FIG. 3 is divided into (N + 1) pieces, and the corresponding address generators 302 and correction address generators 309 are expanded to (N + 1) pieces. Also, the order determination unit 306,
The input and output of the interpolation coefficient selector 307 and the data division unit 301 are N sets, and the input and output of the data selector 304 are (N +
1) Expanded to a set. In this case, the expression (17) is extended to the expression (18).
【0083】[0083]
【数18】 なお、多次元色補正装置を例に説明したが、一般の多次
元空間座標の補間演算処理にも適用する事が出来る。(Equation 18) Although the multi-dimensional color correction apparatus has been described as an example, the present invention can also be applied to general multi-dimensional spatial coordinate interpolation processing.
【0084】[0084]
【発明の効果】以上のように本発明によれば、N次元補
間法(Nは4以上の整数)での補間立体を、N組の入力
上位信号によって選択された単位超立方体の原点と単位
超立方体対角点を結ぶ1本の線と、互いに直交し且つ連
続して接続できるN本の単位超立方体の稜線で囲まれた
N!種類のN次元超立体から入力下位信号の大きい順序
に並べた時と同じ方向順に選択されたN本の稜線を持っ
たN次元超立体を選択する事により、補間のための補間
係数が入力下位信号を大きさの順序に入れ替えるだけと
なり、乗算回数がN回で補間演算が実行出来る。As described above, according to the present invention, the interpolation solid by the N-dimensional interpolation method (N is an integer of 4 or more) is defined by the origin and the unit of the unit hypercube selected by the N sets of input higher-order signals. N! Surrounded by one line connecting the diagonal points of the hypercube and the ridges of N unit hypercubes that are orthogonal to each other and can be connected continuously. By selecting an N-dimensional hypercube having N edges selected in the same direction as when the input lower-order signals are arranged in descending order of the input lower-order signals from the types of N-dimensional hypercubes, the interpolation coefficient for interpolation is lower than the input lower-order signal. Only the signals are exchanged in the order of magnitude, and the number of times of multiplication is N and the interpolation operation can be executed.
【0085】また、本発明によれば、多次元メモリをサ
ブメモリとして(N+1)個に分割する事によって、単
位超立方体に各頂点に対応した出力データを重複するこ
となく複数のサブメモリに分割記憶し、各頂点に対応し
た各出力データを多次元メモリから同時に読み出すこと
ができるので、動作の高速化を図ることができ、容易に
多次元に拡張することができる。According to the present invention, the multidimensional memory is divided into (N + 1) pieces as sub memories, so that the output data corresponding to each vertex is divided into a plurality of sub memories without overlapping the unit hypercube. Since the stored data and the output data corresponding to each vertex can be read from the multidimensional memory at the same time, the operation can be speeded up and can be easily expanded to multidimensional.
【図1】本発明の実施の形態1における単位超立方体か
ら補間超立体の稜線を選択する状態を示す状態遷移図で
ある。FIG. 1 is a state transition diagram illustrating a state in which an edge of an interpolated hypercube is selected from a unit hypercube according to Embodiment 1 of the present invention.
【図2】本発明の実施の形態3に係る多次元色修正装置
のブロック図である。FIG. 2 is a block diagram of a multidimensional color correction device according to a third embodiment of the present invention.
【図3】本発明の実施の形態4に係る多次元色修正装置
のブロック図である。FIG. 3 is a block diagram of a multidimensional color correction device according to Embodiment 4 of the present invention.
【図4】補間立体の格子点データとサブメモリとの関係
を示す概念図である。FIG. 4 is a conceptual diagram showing a relationship between grid point data of an interpolation solid and a sub memory.
【図5】従来のカラー複写機の機能ブロック図である。FIG. 5 is a functional block diagram of a conventional color copying machine.
【図6】従来の色修正装置のブロック図である。FIG. 6 is a block diagram of a conventional color correction device.
【図7】3次元テーブルにより色修正する場合の入力色
空間の分割図である。FIG. 7 is a division diagram of an input color space when a color is corrected using a three-dimensional table.
【図8】従来の3立方体補間法の説明図である。FIG. 8 is an explanatory diagram of a conventional three-cube interpolation method.
【図9】従来の4面体補間法での空間分割図である。FIG. 9 is a space division diagram in a conventional tetrahedral interpolation method.
201 データ分割部 202 アドレス発生部 203 多次元メモリ 204 データセレクタ 205 補間演算部 206 順序判定部 207 補間係数セレクタ 208 補間出力端子 302 アドレス発生器 303 分割メモリ 304 データセレクタ 305 補間演算部 306 順序判定部 307 補間係数セレクタ 309 補正アドレス発生器 201 data division unit 202 address generation unit 203 multidimensional memory 204 data selector 205 interpolation calculation unit 206 order determination unit 207 interpolation coefficient selector 208 interpolation output terminal 302 address generator 303 division memory 304 data selector 305 interpolation calculation unit 306 order determination unit 307 Interpolation coefficient selector 309 Correction address generator
───────────────────────────────────────────────────── フロントページの続き (72)発明者 本村 秀人 神奈川県川崎市多摩区東三田3丁目10番 1号 松下技研株式会社内 (56)参考文献 特開 平7−141489(JP,A) 特開 平7−99587(JP,A) 特開 平5−328113(JP,A) (58)調査した分野(Int.Cl.7,DB名) G06T 5/00 - 5/50 G06T 1/00 - 1/60 G09G 5/00 - 5/36 H04N 1/46 - 1/62 G06F 17/17 ──────────────────────────────────────────────────続 き Continuation of front page (72) Inventor Hideto Motomura 3-10-1, Higashi-Mita, Tama-ku, Kawasaki-shi, Kanagawa Prefecture Matsushita Giken Co., Ltd. (56) References JP-A-7-141489 (JP, A) JP-A-7-99587 (JP, A) JP-A-5-328113 (JP, A) (58) Fields investigated (Int. Cl. 7 , DB name) G06T 5/00-5/50 G06T 1/00 -1/60 G09G 5/00-5/36 H04N 1/46-1/62 G06F 17/17
Claims (1)
タ(Oh1,Oh2,…,OhN)と下位データ(Ol
1,Ol2,…,OlN)に分割するデータ分割部と、
N次元空間の各単位超立方体頂点に対応した出力データ
を重複することなく(N+1)個のメモリに分割記憶し
たN次元分割メモリと、前記下位データを大きい順に並
べ替えて出力する補間係数セレクタと、前記下位データ
の大きさの順序を判定する順序判定部と、順序判定結果
にしたがって前記単位超立方体の原点からN個の稜線を
順次選択した場合の各端点の前記単位超立方体原点から
の相対アドレス(C1,C2,…,CN)を発生する補
正アドレス発生器と、前記相対アドレス(C1,C2,
…,CN)と前記上位データ(Oh1,Oh2,…,O
hN)よりN次元補間超立体の各頂点に対応した(N+
1)個の分割メモリを選択するセレクト信号Mi(iは
メモリ番号であり0〜Nの整数)と(N+1)個の分割
メモリ内の各頂点のアドレス信号MAiとを、 【数1】 ここで、%は割り算の余りを示し、/は整数割り算の商
を示す のように発生する(N+1)個のアドレス発生器
と、前記セレクト信号Miによって選択されたメモリに
該当する前記アドレス信号MAiを配分するための(N
+1)個のアドレスセレクタと、前記下位データの大き
さ順序と前記上位データとに基づいて補間係数演算に用
いる出力データを前記N次元分割メモリの出力データか
ら選択するデータセレクタと、前記補間係数セレクタの
出力を補間係数にして前記データセレクタで選択された
出力データを補間演算する補間演算部とを具備する多次
元補間装置。 1. The data of each axis of an N-dimensional input point is stored in a high-order data.
(Oh1, Oh2,..., OhN) and lower data (Ol
1, Ol2,..., OlN);
Output data corresponding to each unit hypercube vertex in N-dimensional space
Is divided and stored in (N + 1) memories without duplication.
And the lower-order data are arranged in ascending order.
An interpolation coefficient selector for replacing and outputting the lower-order data;
Order determination unit for determining the order of the size of
N ridges from the origin of the unit hypercube
From the unit hypercube origin of each end point when sequentially selected
Generating relative addresses (C1, C2,..., CN)
A positive address generator and the relative addresses (C1, C2,
.., CN) and the upper data (Oh1, Oh2,.
hN) corresponding to each vertex of the N-dimensional interpolation hypercube (N +
1) Select signal Mi (i is selected) for selecting the divided memories
(Memory number, integer from 0 to N) and (N + 1) divisions
The address signal MAi of each vertex in the memory is expressed by : Here,% indicates the remainder of the division, and / indicates the quotient of the integer division.
The generated as shown (N + 1) number of address generators
To the memory selected by the select signal Mi.
(N) for distributing the corresponding address signal MAi
+1) address selectors and the size of the lower data
Used for interpolation coefficient calculation based on the
Is the output data of the N-dimensional divided memory
A data selector to be selected from the interpolation coefficient selector.
The output was selected as the interpolation coefficient by the data selector.
Multi-order comprising an interpolation operation unit for performing an interpolation operation on output data
Original interpolator.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9134422A JP3048227B2 (en) | 1997-05-08 | 1997-05-08 | Multidimensional interpolation device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9134422A JP3048227B2 (en) | 1997-05-08 | 1997-05-08 | Multidimensional interpolation device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH10307911A JPH10307911A (en) | 1998-11-17 |
JP3048227B2 true JP3048227B2 (en) | 2000-06-05 |
Family
ID=15128022
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9134422A Expired - Fee Related JP3048227B2 (en) | 1997-05-08 | 1997-05-08 | Multidimensional interpolation device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3048227B2 (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4724413B2 (en) * | 2004-11-26 | 2011-07-13 | キヤノン株式会社 | Data classification method |
JP4795920B2 (en) * | 2006-12-08 | 2011-10-19 | 富士重工業株式会社 | Control map optimization device |
JP4930505B2 (en) * | 2008-12-26 | 2012-05-16 | コニカミノルタビジネステクノロジーズ株式会社 | Image forming apparatus, color conversion program, and color conversion method |
JP4810615B2 (en) * | 2010-03-18 | 2011-11-09 | キヤノン株式会社 | Multidimensional interpolation apparatus, multidimensional interpolation method, and computer program |
JP5620734B2 (en) * | 2010-07-26 | 2014-11-05 | キヤノン株式会社 | Color processing apparatus and method |
US10152935B2 (en) | 2016-02-29 | 2018-12-11 | Mitsubishi Electric Corporation | Color correction apparatus, display apparatus, and color correction method |
JP2021018360A (en) | 2019-07-22 | 2021-02-15 | 三菱電機株式会社 | Color correction device, display device, and color correction method |
CN110674133B (en) * | 2019-09-09 | 2022-05-24 | 北京航天自动控制研究所 | Compression storage and calculation method for high-dimensional interpolation |
-
1997
- 1997-05-08 JP JP9134422A patent/JP3048227B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JPH10307911A (en) | 1998-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE69514596T2 (en) | Color correction system with tetrahedral interpolation over a hexagonal network | |
US5428465A (en) | Method and apparatus for color conversion | |
US5748176A (en) | Multi-variable colorimetric data access by iterative interpolation and subdivision | |
JP3976849B2 (en) | Device for generating interpolator input data | |
US5475510A (en) | Method for transforming color signals and apparatus for the method | |
JPH07184078A (en) | Color space conversion system | |
US6137495A (en) | Method for storing, accessing, transforming, and displaying multi-variable digital data | |
EP1221812B1 (en) | Fast interpolation of large color lookup tables | |
JP3048227B2 (en) | Multidimensional interpolation device | |
US5337166A (en) | Color signal transforming apparatus | |
US5564006A (en) | Real time transformation between color spaces | |
US6049400A (en) | Non-symmetric tetrahedral and non-symmetric pruned tetrahedral interpolation | |
JPH10117291A (en) | Decision device for input data path of interpolator | |
US6040926A (en) | Common non-symmetric pruned radial and non-symmetric pruned tetrahedral interpolation hardware implementation | |
US6031642A (en) | Tetrahedral and pruned tetrahedral interpolation | |
US5966474A (en) | Non-symmetric radial and non-symmetric pruned radial interpolation | |
JPH0799587A (en) | Method and device for converting color | |
EP0923037B1 (en) | Common pruned radial and pruned tetrahedral interpolation hardware implementation | |
JP2947015B2 (en) | Color conversion device and color conversion method | |
JPH0969961A (en) | Color conversion device | |
JPH0946542A (en) | Interpolation arithmetic method and data converter | |
WO1995033331A1 (en) | Real time transformation between color spaces | |
Vondran | Radial and Pruned Tetrahedral Interpolation Techniques | |
JPH10126628A (en) | Color conversion method | |
JPH0898046A (en) | Color converter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313115 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090324 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100324 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110324 Year of fee payment: 11 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110324 Year of fee payment: 11 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120324 Year of fee payment: 12 |
|
LAPS | Cancellation because of no payment of annual fees |