JP2000123153A - Image processor - Google Patents

Image processor

Info

Publication number
JP2000123153A
JP2000123153A JP10295330A JP29533098A JP2000123153A JP 2000123153 A JP2000123153 A JP 2000123153A JP 10295330 A JP10295330 A JP 10295330A JP 29533098 A JP29533098 A JP 29533098A JP 2000123153 A JP2000123153 A JP 2000123153A
Authority
JP
Japan
Prior art keywords
equation
component
grid point
hadr
triangular pyramid
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.)
Granted
Application number
JP10295330A
Other languages
Japanese (ja)
Other versions
JP3409713B2 (en
Inventor
Katsumi Minamino
勝巳 南野
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP29533098A priority Critical patent/JP3409713B2/en
Publication of JP2000123153A publication Critical patent/JP2000123153A/en
Application granted granted Critical
Publication of JP3409713B2 publication Critical patent/JP3409713B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Color Electrophotography (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable high-speed color converting processing even while using a software by calculating the reference address of lattice point data at a lattice point to become a reference, reading lattice point data required for the interpolating operation of a convert point from that reference address and performing the interpolating operation of the converting point. SOLUTION: When respective high-order 4 bits of an RGB signal at a converting point P are defined as RH GH and BH, in the order of lattice points, the lattice point data of eight lattice points 'A to H' are respectively stored for each CMYK. In this case, when the reference point of the lattice point 'A' in a component 'C' is determined, the reference addresses of lattice points 'A to H' can be provided only by successive increment. Next, weight coefficients W (w1-w8) regardless of 'C, M, Y and K' components are continuously stored. In this case, when the reference address of the weight coefficient w1 is known, all the weight coefficients W (w1-w8) can be successively provided only by incrementing them seven times.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像処理装置に関
し、詳しくはカラースキャナ、カラーモニタ、カラー画
像データ等で取り扱う「光の三原色(R,G,B)」を
カラープリンタ等で取り扱う「色の三原色(C,M,Y
(,K))」に色変換処理する画像処理装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly, to a "color system" which handles "primary colors (R, G, B) of light" handled by a color scanner, a color monitor, and color image data by a color printer or the like. Three primary colors (C, M, Y
(, K))).

【0002】[0002]

【従来の技術】近年、コンピュータでは、誰もが手軽に
画面上でカラー画像を扱うことができる。そして、その
カラー画像は、各種の機器間で容易に入出力されてい
る。ところで、カラースキャナで読み取った光の三原色
(R,G,B)の各信号をカラープリンタで記録紙に記
録する際には、色の三原色(C,M,Y(,K))の各
信号に変換しなければならない。テレビやディスプレイ
では、光の三原色(R,G,B)の組み合わせで様々な
色を表現することができる。この方法は、どの色も光っ
ていない状態(全てが0:黒)を起点に、全ての色が光
っている状態(全てが100:白)まで、3つの色を加
えることで様々な色を表現するため、加法混色(加色
法)と呼ばれている。
2. Description of the Related Art In recent years, with computers, anyone can easily handle color images on a screen. The color image is easily input and output between various devices. By the way, when each signal of the three primary colors (R, G, B) of light read by the color scanner is recorded on a recording paper by a color printer, each signal of the three primary colors (C, M, Y (, K)) of each color is used. Must be converted to In televisions and displays, various colors can be expressed by combinations of the three primary colors of light (R, G, B). In this method, various colors are added by adding three colors from a state where none of the colors shine (all 0: black) to a state where all the colors shine (all 100: white). It is called additive color mixing (addition color method) to express.

【0003】しかしながら、加法混色で色が表現できる
のは、そのもの自ら光を発することができる場合であ
る。このため、自ら光りを発することがない場合、例え
ば記録紙に記録した場合等は、反射した光で色を表現す
ることになる。正確には、当たった光の一部の色を吸収
(減色)し、残りの色を反射することで色を表現してい
る。このような方法は、減法混色(減色法)と呼ばれ、
インクや絵の具等は、この減法混色によって様々な色を
表現している。
However, a color can be expressed by additive color mixture when it can emit light by itself. Therefore, when no light is emitted by itself, for example, when recording is performed on recording paper, the color is expressed by the reflected light. To be more precise, a color is expressed by absorbing (subtracting) a part of the color of the applied light and reflecting the remaining color. Such a method is called subtractive color mixing (subtraction method),
Ink and paint express various colors by the subtractive color mixture.

【0004】この減法混色において、基本色となる色
は、加法混色の赤(R),緑(G),青(B)ではな
く、混ぜると黒(光を全く反射しない色)になるシアン
(C)、マゼンタ(M)、黄色(Y)の3色である。こ
こで、理論的には、C,M,Yの3色を混ぜると、
「黒」となるが、より「黒」を明瞭に表現するために、
黒(K)インクを使用し、C,M,Y,Kの4色で記録
する方法が一般的に行われている。ところで、従来よ
り、RGB信号からCMYK信号への色変換処理には、
補間演算法が用いられている。そして、その補間演算
は、高速処理が要求されるため、ハードウェアで実行さ
れていた。
In the subtractive color mixture, the basic color is not the additive color mixture of red (R), green (G), and blue (B), but a mixture of cyan (color that does not reflect any light) when mixed. C), magenta (M), and yellow (Y). Here, theoretically, if three colors of C, M, and Y are mixed,
"Black", but in order to express "Black" more clearly,
A method of recording in four colors of C, M, Y, and K using black (K) ink is generally performed. By the way, conventionally, in the color conversion processing from RGB signals to CMYK signals,
An interpolation operation method is used. The interpolation calculation is executed by hardware because high-speed processing is required.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、補間演
算処理をハードウェアで構成すると、専用のLSIが必
要となり、回路が複雑化するとともに、LSIの小型化
やコストダウンが望めなかった。また、ハードウェアで
構成していたため、専用の回路が必要となり、種々の補
間演算法に対応することができないという問題もあっ
た。一方、近年、MPUの処理速度が向上してきたた
め、ソフトウェアを用いて高速に補間演算を行うことが
可能となりつつある。しかし、要求されるカラープリン
タの処理速度も向上してきているため、カラープリンタ
の処理速度よりも、高速に色変換処理を行う必要があ
る。本発明は、このような市場の要求に応えるためにな
されたものであって、その目的は、ソフトウェアを用い
ても高速に色変換処理することが可能な画像処理装置を
提供することにある。
However, when the interpolation processing is implemented by hardware, a dedicated LSI is required, the circuit becomes complicated, and it is not possible to reduce the size and cost of the LSI. In addition, since it is configured by hardware, a dedicated circuit is required, and there is a problem that it is not possible to cope with various interpolation calculation methods. On the other hand, in recent years, since the processing speed of the MPU has been improved, it has become possible to perform interpolation calculation at high speed using software. However, since the required processing speed of the color printer has been improved, it is necessary to perform the color conversion processing faster than the processing speed of the color printer. SUMMARY OF THE INVENTION The present invention has been made to meet such a demand in the market, and an object of the present invention is to provide an image processing apparatus capable of performing high-speed color conversion processing using software.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
めに、請求項1に記載の発明では、色空間を変換する画
像処理装置において、少なくとも変換点を取り囲む格子
点の格子点データを演算に必要な順に連続して記憶する
記憶手段と、基準となる格子点における格子点データの
参照アドレスを算出するとともに、その参照アドレスか
ら順次インクリメントを行って、変換点の補間演算に必
要な格子点データを読み出し、変換点の補間演算を行う
制御手段とを備えた。
In order to achieve the above object, according to the first aspect of the present invention, in an image processing apparatus for converting a color space, at least grid point data of grid points surrounding a conversion point is calculated. Storage means for successively storing data in a necessary order, and calculating a reference address of grid point data at a grid point serving as a reference, and sequentially incrementing from the reference address to obtain grid points required for interpolation calculation of conversion points. Control means for reading out the data and performing an interpolation operation of the conversion point.

【0007】請求項2に記載の発明では、請求項1に記
載の画像処理装置において、記憶手段は、例外処理に該
当するか否かを記憶し、制御手段は、例外処理に該当す
る場合と該当しない場合とに応じて変換点の補間演算を
行う。
According to a second aspect of the present invention, in the image processing apparatus of the first aspect, the storage means stores whether or not the exception processing is performed, and the control means determines whether the exception processing is performed. Interpolation of the conversion point is performed according to the case where it does not apply.

【0008】請求項3に記載の発明では、請求項1に記
載の画像処理装置において、制御手段は、例外処理に該
当するか否かを判断することなく、変換点の補間演算を
行う。
According to a third aspect of the present invention, in the image processing apparatus according to the first aspect, the control unit performs the interpolation operation of the conversion point without determining whether the exception processing is performed.

【0009】なお、以下に述べる発明の実施の形態にお
いて、特許請求の範囲または課題を解決するための手段
に記載の「記憶手段」はROM12に相当し、同じく
「制御手段」はMPU11、ROM12及びRAM13
に相当する。
In the embodiments of the invention described below, the "storage means" described in the claims or the means for solving the problems corresponds to the ROM 12, and the "control means" is also the MPU 11, the ROM 12 and the ROM 12. RAM 13
Is equivalent to

【0010】[0010]

【発明の実施の形態】[第1の実施形態]…立方体補間
(8点補間)の場合 以下に、本発明をファクシミリ装置に具体化した第1の
実施形態について、図面を用いて説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS [First Embodiment] Cubic Interpolation (8-Point Interpolation) A first embodiment in which the present invention is embodied in a facsimile apparatus will be described below with reference to the drawings.

【0011】図1に示すように、画像処理装置としての
ファクシミリ装置1は、MPU11、ROM12、RA
M13、読取部14、記録部15、操作部16、表示部
17、画像メモリ18、コーデック19、モデム20及
びNCU21から構成されるとともに、各部11〜21
がバス22を介してそれぞれ接続されている。
As shown in FIG. 1, a facsimile apparatus 1 as an image processing apparatus includes an MPU 11, a ROM 12,
M13, a reading unit 14, a recording unit 15, an operation unit 16, a display unit 17, an image memory 18, a codec 19, a modem 20, and an NCU 21.
Are connected via a bus 22.

【0012】MPU11は、ファクシミリ装置1を構成
する各部を制御する。ROM12は、ファクシミリ装置
1を制御するためのプログラムを記憶する。また、RO
M12は、補間演算に必要な各種データを記憶する。具
体的には、後述する図5に示す格子点データのルックア
ップテーブル(Look-Up Table;略してLUT)及び図7
に示す重み係数W(w1〜w8)のLUTを記憶する。
RAM13は、ファクシミリ装置1に関する各種データ
を一時的に記憶する。読取部14は、カラースキャナよ
りなり、原稿上の画像データを読み取って、RGB信号
を出力する。
The MPU 11 controls each part of the facsimile machine 1. The ROM 12 stores a program for controlling the facsimile machine 1. Also, RO
M12 stores various data necessary for the interpolation operation. Specifically, a lookup table (Look-Up Table; LUT for short) shown in FIG.
The LUT of the weight coefficient W (w1 to w8) shown in FIG.
The RAM 13 temporarily stores various data relating to the facsimile machine 1. The reading unit 14 includes a color scanner, reads image data on a document, and outputs RGB signals.

【0013】記録部15は、電子写真方式のカラープリ
ンタ、サーマルプリンタ又はインクジェット方式のカラ
ープリンタよりなり、受信画データやコピー動作におい
て、読取部14にて読み取られた原稿の画データを記録
紙上に記録する。操作部16は、FAX番号等を入力す
るためのテンキー(*,#キーを含む)16a、短縮番
号の登録、短縮番号から発信するための短縮キー16
b、原稿の読み取り動作を開始させるためのスタートキ
ー16c、「通信(FAX)」動作又は「コピー」動作
を設定するための通信/コピーキー16d等の各種操作
キーを備えている。LCD等よりなる表示部17は、フ
ァクシミリ装置1の動作状態等の各種情報の表示を行
う。
The recording unit 15 is composed of an electrophotographic color printer, a thermal printer, or an ink jet type color printer, and stores received image data and image data of a document read by the reading unit 14 on recording paper in a copying operation. Record. The operation unit 16 includes a numeric keypad (including the * and # keys) 16a for inputting a facsimile number or the like, an abbreviated key 16 for registering an abbreviated number, and transmitting from the abbreviated number.
b, various operation keys such as a start key 16c for starting a document reading operation, and a communication / copy key 16d for setting a “communication (FAX)” operation or a “copy” operation. A display unit 17 such as an LCD displays various information such as an operation state of the facsimile machine 1.

【0014】画像メモリ18は、受信画データや読取部
14で読み取られ、コーデック19でMH、MR、或い
はMMR方式で圧縮符号化された画データを一時的に記
憶する。コーデック19は、読取部14にて読み取られ
た画データを送信のためにMH、MR、或いはMMR方
式等により符号化(エンコード)する。また、コーデッ
ク19は、受信画データを復号(デコード)する。モデ
ム20は、ITU−T勧告T.30に従ったファクシミ
リ伝送制御手順に基づいて、V.17,V.27te
r,V.29等のいずれかに従った送受信データの変調
及び復調を行う。NCU21は、電話回線Lとの接続を
制御するとともに、相手先のFAX番号に対応したダイ
ヤル信号の送出及び着信を検出するための機能を備えて
いる。
The image memory 18 temporarily stores received image data and image data read by the reading unit 14 and compression-coded by the codec 19 in the MH, MR, or MMR system. The codec 19 encodes the image data read by the reading unit 14 by MH, MR, or MMR for transmission. The codec 19 decodes the received image data. The modem 20 conforms to ITU-T Recommendation T.30. 30 based on a facsimile transmission control procedure according to V.30. 17, V. 27te
r, V. Modulation and demodulation of transmission / reception data in accordance with any one of E.29 and the like. The NCU 21 has a function of controlling connection with the telephone line L and detecting transmission and reception of a dial signal corresponding to a fax number of the other party.

【0015】次に、ルックアップテーブル(LUT)を
用いた補間演算法による色変換処理について説明する。
まず、立方体補間(8点補間)について、図面を用いて
説明する。なお、読取部14から出力されるRGB信号
は、それぞれ8〔bit〕のデータで構成されている。
従って、RGB信号は、それぞれ256階調のデータを
有する。
Next, a description will be given of a color conversion process by an interpolation operation method using a look-up table (LUT).
First, cubic interpolation (8-point interpolation) will be described with reference to the drawings. The RGB signals output from the reading unit 14 are each composed of 8 [bit] data.
Therefore, each of the RGB signals has 256 gradation data.

【0016】図2に示すように、RGB空間において、
RGB信号の各下位4〔bit〕毎、換言すれば各軸を
16分割すると、各軸と各格子点との交点数は、「1
7」となる。つまり、各軸と各格子点との交点は、
「0、16、32、・・・、240、255」となる。
ここで、各軸と各格子点との交点を16進数で表現する
と、「00h、10h、20h、・・・、F0h、FF
h」で示すことができる。なお、「h」は16進数を示
す。以下、同じ。
As shown in FIG. 2, in the RGB space,
When each lower 4 bits of the RGB signal, that is, each axis is divided into 16, the number of intersections between each axis and each grid point is “1”.
7 ". In other words, the intersection between each axis and each grid point is
"0, 16, 32, ..., 240, 255".
Here, when the intersection between each axis and each grid point is represented by a hexadecimal number, "00h, 10h, 20h, ..., F0h, FF
h ". “H” indicates a hexadecimal number. same as below.

【0017】すなわち、「0〜240(00h〜F0
h)」までの間は「16」増加する毎に交点となるが、
「240〜255(F0h〜FFh)」までは「15」
増加すると交点となる。従って、RGB信号に対応する
各格子点データを「三次元LUT」として、予め記憶し
ておけば、その格子点に該当するRGB信号の場合は、
何ら計算することなく、格子点データから迅速に色変換
処理することができる。
That is, "0-240 (00h-F0
h)), every 16 increments will be an intersection,
"15" up to "240-255 (F0h-FFh)"
When it increases, it becomes an intersection. Therefore, if each grid point data corresponding to the RGB signal is stored in advance as a “three-dimensional LUT”, in the case of an RGB signal corresponding to the grid point,
Color conversion processing can be quickly performed from grid point data without any calculation.

【0018】しかしながら、現実の色変換処理では、変
換点が格子点に該当することは、極めて稀である。この
ため、変換点が格子点に該当しない場合は、その変換点
を取り囲む立方体における格子点の格子点データに基づ
いて、補間演算を行っている。従って、変換点における
RGB信号の各上位4〔bit〕を(RH,GH,B
H)とすると、その(RH,GH,BH)の各値に基づ
けば、変換点が何れの立方体内に位置しているかを判断
することができる。
However, in actual color conversion processing, it is extremely rare that a conversion point corresponds to a grid point. For this reason, when a conversion point does not correspond to a grid point, an interpolation operation is performed based on grid point data of a grid point in a cube surrounding the conversion point. Therefore, the upper 4 bits of the RGB signal at the conversion point are set to (RH, GH, B
H), it is possible to determine in which cube the conversion point is located based on each value of (RH, GH, BH).

【0019】そこで、図3に示すように、「C,M,
Y,K」成分に対応する各格子点データが記憶されたL
UTを想定する。すなわち、「C」成分、「M」成分、
「Y」成分、「K」成分の順にそれぞれに対応する変換
点PにおけるRGB信号の各上位4〔bit〕を(R
H,GH,BH)とすると、(0,0,0)、(1,
0,0)、(2,0,0)、・・・、(16、16,1
5)、(16,16,16)の格子点の順に、格子点デ
ータが記憶されている場合である。
Therefore, as shown in FIG. 3, "C, M,
L in which each grid point data corresponding to the “Y, K” components is stored.
Assume UT. That is, "C" component, "M" component,
The upper 4 bits of the RGB signal at the conversion point P corresponding to the “Y” component and the “K” component in the order of (R)
H, GH, BH), (0, 0, 0), (1,
(0,0), (2,0,0),..., (16,16,1)
5) In this case, grid point data is stored in the order of (16, 16, 16) grid points.

【0020】ここで、図4に示すように、読取部14か
ら出力されるカラー画像のデータ、すなわちRGB信号
で示される変換点を「P」とし、その変換点Pを取り囲
む立方体の各格子点を「A〜H」とすると、前記図3に
示す「C,M,Y,K」成分における各格子点データに
おいて、「C」成分における格子点データの参照アドレ
スHADR(N)(但し、N=A〜H)は、以下のよう
に示すことができる。
Here, as shown in FIG. 4, the color image data output from the reading unit 14, that is, the conversion point indicated by the RGB signal is "P", and each grid point of the cube surrounding the conversion point P Let “A to H” be the reference addresses HADR (N) of the grid point data in the “C” component (where N is the same) in each grid point data in the “C, M, Y, K” components shown in FIG. = A to H) can be shown as follows.

【0021】 HADR(A)=( RH )+( GH )*17+( BH )*17^2 ………(式1−1) HADR(B)=( RH )+( GH )*17+(BH+1)*17^2 =( RH )+( GH )*17+( BH )*17^2+17^2 =HADR(A)+289 ………(式1−2) HADR(C)=( RH )+(GH+1)*17+( BH )*17^2 =( RH )+( GH )*17+( BH )*17^2+17 =HADR(A)+17 ………(式1−3) HADR(D)=( RH )+(GH+1)*17+(BH+1)*17^2 =( RH )+( GH )*17+( BH )*17^2+17+17^2 =HADR(A)+306 ………(式1−4) HADR(E)=(RH+1)+( GH )*17+( BH )*17^2 =( RH )+( GH )*17+( BH )*17^2+1 =HADR(A)+1 ………(式1−5)HADR (A) = (RH) + (GH) * 17 + (BH) * 17 ^ 2 (Equation 1-1) HADR (B) = (RH) + (GH) * 17 + ( BH + 1) * 17 ^ 2 = (RH) + (GH) * 17 + (BH) * 17 ^ 2 + 17 ^ 2 = HADR (A) +289 ............ (Formula 1-2) HADR (C) = (RH) + (GH + 1) * 17 + (BH) * 17 ^ 2 = (RH) + (GH) * 17 + (BH) * 17 ^ 2 + 17 = HADR (A) +17 ……… (Equation 1-3) HADR (D) = (RH) + (GH + 1) * 17 + (BH + 1) * 17 ^ 2 = (RH) + (GH) * 17 + (BH) * 17 ^ 2 + 17 + 17 ^ 2 = HADR (A) +306 ...... (Equation 1-4) HADR (E) = (RH + 1) + (GH) * 17 + (BH) * 17 ^ 2 = (RH) + (GH) * 17 + (BH) * 17 ^ 2 + 1 = HADR (A) +1 ... (Equation 1-5)

【0022】 HADR(F)=(RH+1)+( GH )*17+(BH+1)*17^2 =( RH )+( GH )*17+( BH )*17^2+1+17^2 =HADR(A)+290 ………(式1−6) HADR(G)=(RH+1)+(GH+1)*17+( BH )*17^2 =( RH )+( GH )*17+( BH )*17^2+1+17 =HADR(A)+18 ………(式1−7) HADR(H)=(RH+1)+(GH+1)*17+(BH+1)*17^2 =( RH )+( GH )*17+( BH )*17^2+1+17+17^2 =HADR(A)+307 ………(式1−8) なお、「*」は乗算を、「^」はべき乗を示す。以下、
同じ。
HADR (F) = (RH + 1) + (GH) * 17 + (BH + 1) * 17 ^ 2 = (RH) + (GH) * 17 + (BH) * 17 ^ 2 + 1 + 17 ^ 2 = HADR (A) +290 ...... (Equation 1-6) HADR (G) = (RH + 1) + (GH + 1) * 17 + (BH) * 17 ^ 2 = (RH) + (GH) * 17 + (BH) * 17 ^ 2 + 1 + 17 = HADR (A) +18 ...... (Equation 1-7) HADR (H) = (RH + 1) + (GH + 1) * 17+ (BH + 1) * 17 ^ 2 = (RH) + (GH) * 17 + (BH) * 17 ^ 2 + 1 + 17 + 17 ^ 2 = HADR (A) +307 ............ (Equation 1 -8) Note that “*” indicates multiplication and “^” indicates power. Less than,
the same.

【0023】ここで、「C」成分における格子点「A」
を基準として、次成分「M、Y、K」へのオフセットを
検討すると、次成分「M」へのオフセットM(os)
は、以下のように示すことができる。 M(os)=17^3=4913 ………(式1−9) また、次成分「Y」へのオフセットY(os)は、以下
のように示すことができる。 Y(os)=17^3*2=4913*2=9826 ………(式1−10) さらに、次成分「K」へのオフセットK(os)は、以
下のように示すことができる。 K(os)=17^3*3=4913*3=14739 ………(式1−11)
Here, the grid point "A" in the "C" component
Considering the offset to the next component “M, Y, K” with reference to the following equation, the offset M (os) to the next component “M” is obtained.
Can be shown as follows. M (os) = 17 ^ 3 = 4913 (Equation 1-9) Also, the offset Y (os) to the next component "Y" can be expressed as follows. Y (os) = 17 ^ 3 * 2 = 4913 * 2 = 9826 (Equation 1-10) Further, the offset K (os) to the next component "K" can be expressed as follows. K (os) = 17 ^ 3 * 3 = 4913 * 3 = 14739 ............ (Equation 1-11)

【0024】このため、前記図3に示すように、格子点
データを記憶すると、前記(式1−2)〜(式1−8)
からも明らかなように、「C」成分における格子点
「A」の参照アドレスを基準とすると、格子点「B〜
H」における参照アドレスのオフセットが、格子点「B
〜H」により異なる。このため、格子点「B〜H」の格
子点データを得るためには、格子点毎にそのアドレスを
算出しなければならない。加えて、前記(式1−9)〜
(式1−11)からも明らかなように、次成分「M,
Y,K」における格子点「A」の参照アドレスも、基準
となる「C」成分における格子点「A」の参照アドレス
から次成分「M,Y,K」により異なる。このため、次
成分「M,Y,K」における格子点「A〜H」の格子点
データを得るためにも、次成分「M,Y,K」に変化す
る毎に、そのアドレスを算出しなければならない。
For this reason, as shown in FIG. 3, when the grid point data is stored, the above (Equation 1-2) to (Equation 1-8)
As is clear from FIG. 7, when the reference address of the grid point “A” in the “C” component is used as a reference, the grid points “B to
H, the offset of the reference address is the grid point “B”.
~ H ". Therefore, in order to obtain the grid point data of the grid points “B to H”, the address must be calculated for each grid point. In addition, the formulas (1-9) to
As is clear from (Equation 1-11), the next component “M,
The reference address of the grid point “A” in “Y, K” also differs by the next component “M, Y, K” from the reference address of the grid point “A” in the reference “C” component. Therefore, in order to obtain grid point data of the grid points “A to H” in the next component “M, Y, K”, the address is calculated every time the next component “M, Y, K” is changed. There must be.

【0025】そこで、図5に示すように、変換点Pにお
けるRGB信号の各上位4〔bit〕を(RH,GH,
BH)とすると、(0,0,0)、(1,0,0)、
(2,0,0)、・・・、(15,15,14)、(1
5,15,15)の格子点の順に、それぞれCMYK毎
に、8つの格子点「A〜H」の格子点データを記憶させ
る。具体的には、(0,0,0)に対して、「C」成分
における格子点「A〜H」の格子点データ、「M」にお
ける格子点「A〜H」の格子点データ、「Y」成分にお
ける格子点「A〜H」の格子点データ、「K」成分にお
ける格子点「A〜H」の格子点データを記憶させる。
Therefore, as shown in FIG. 5, the upper 4 bits of the RGB signal at the conversion point P are represented by (RH, GH,
BH), (0,0,0), (1,0,0),
(2, 0, 0), ..., (15, 15, 14), (1
5, 15, 15), the grid point data of eight grid points "A to H" is stored for each CMYK. Specifically, for (0, 0, 0), grid point data of grid points “A to H” in “C” component, grid point data of grid points “A to H” in “M”, “ The grid point data of the grid points “A to H” in the “Y” component and the grid point data of the grid points “A to H” in the “K” component are stored.

【0026】続いて、(1,0,0)に対して、「C」
成分における格子点「A〜H」の格子点データ、「M」
成分における格子点「A〜H」の格子点データ、「Y」
成分における格子点「A〜H」の格子点データ、「K」
成分における格子点「A〜H」の格子点データを記憶さ
せる。そして、最後に(15,15,15)に対して、
「C」成分における格子点「A〜H」の格子点データ、
「M」成分における格子点「A〜H」の格子点データ、
「Y」成分における格子点「A〜H」の格子点データ、
「K」成分における格子点「A〜H」の格子点データを
記憶させる。
Subsequently, for (1, 0, 0), "C"
Grid point data of grid points "A to H" in the component, "M"
Grid point data of grid points "A to H" in the component, "Y"
Grid point data of grid points "A to H" in the component, "K"
The grid point data of the grid points “A to H” in the component is stored. And finally, for (15,15,15),
Grid point data of grid points “A to H” in the “C” component;
Grid point data of grid points “A to H” in the “M” component;
Grid point data of grid points “A to H” in the “Y” component;
The grid point data of the grid points “A to H” in the “K” component is stored.

【0027】このように記憶すれば、記憶すべき格子点
データは増加するが、「C」成分における格子点「A」
の参照アドレスHADR(A)が決定すれば、順次イン
クリメントするだけで、格子点「A〜H」の参照アドレ
スを得ることができる。換言すれば、「C」成分におけ
る格子点「A」の参照アドレスHADR(A)から順次
インクリメントすると、格子点「A〜H」の格子点デー
タを得ることができる。具体的には、「C」成分におけ
る格子点「A」の参照アドレスHADR(A)から7回
インクリメントすると、「C」成分における全ての格子
点データを得ることができる。続いて、8回インクリメ
ントすると、「M」成分における全ての格子点データを
得ることができる。加えて、8回インクリメントする
と、「Y」における全ての格子点データを得ることがで
きる。さらに、8回インクリメントすると、「K」にお
ける全ての格子点データを得ることができる。
By storing in this way, the grid point data to be stored increases, but the grid point "A" in the "C" component is stored.
Is determined, the reference addresses of the lattice points "A to H" can be obtained only by sequentially incrementing the reference addresses. In other words, by sequentially incrementing from the reference address HADR (A) of the grid point “A” in the “C” component, grid point data of the grid points “A to H” can be obtained. More specifically, when the reference address HADR (A) of the grid point “A” in the “C” component is incremented seven times, all grid point data in the “C” component can be obtained. Subsequently, when the increment is performed eight times, all grid point data in the “M” component can be obtained. In addition, when the increment is performed eight times, all the grid point data in “Y” can be obtained. Further, when the increment is performed eight times, all the grid point data at “K” can be obtained.

【0028】従って、「C」成分における格子点「A」
の参照アドレスHADR(A)が分かれば、その参照ア
ドレスHADR(A)から31回インクリメントする
と、「C,M,Y,K」成分における全ての格子点デー
タを順次得ることができる。このため、(RH,GH,
BH)の格子点データとしては、(0,0,0)〜(1
6,16,16)までの格子点データではなく、(0,
0,0)〜(15,15,15)までの格子点データを
記憶するのみで良い。
Therefore, the grid point "A" in the "C" component
If the reference address HADR (A) is known, all the grid point data in the "C, M, Y, K" components can be sequentially obtained by incrementing the reference address HADR (A) 31 times. For this reason, (RH, GH,
As (BH) grid point data, (0, 0, 0) to (1)
Instead of the grid point data up to (6, 16, 16), (0,
It is only necessary to store the grid point data from (0,0) to (15,15,15).

【0029】よって、前記図5のように格子点データを
記憶させれば、「C」成分における格子点「A」の参照
アドレスHADR(A)は、以下のように示すことがで
きる。 HADR(A)=(RH+GH*16+BH*16^2)*4*8 =(RH+GH*16+BH*256)*32 ………(式2−1) また、「C」成分における格子点「B〜H」の参照アド
レスHADR(N)(但し、N=B〜H)は、以下のよ
うに示すことができる。 HADR(B)=(RH+GH*16+BH*16^2)*4*8+1 =HADR(A)+1 ………(式2−2) HADR(C)=(RH+GH*16+BH*16^2)*4*8+2 =HADR(A)+2 ………(式2−3) HADR(D)=(RH+GH*16+BH*16^2)*4*8+3 =HADR(A)+3 ………(式2−4)
Thus, by storing the grid point data as shown in FIG. 5, the reference address HADR (A) of the grid point "A" in the "C" component can be represented as follows. HADR (A) = (RH + GH * 16 + BH * 16 ^ 2) * 4 * 8 = (RH + GH * 16 + BH * 256) * 32 (Equation 2-1) Further, "C" The reference address HADR (N) (where N = B to H) of the grid point “B to H” in the component can be represented as follows. HADR (B) = (RH + GH * 16 + BH * 16 ^ 2) * 4 * 8 + 1 = HADR (A) +1 ...... (Equation 2-2) HADR (C) = (RH + GH * 16 + BH * 16 ^ 2) * 4 * 8 + 2 = HADR (A) +2 ... (Equation 2-3) HADR (D) = (RH + GH * 16 + BH * 16 ^ 2) * 4 * 8 + 3 = HADR (A) +3 (Equation 2-4)

【0030】 HADR(E)=(RH+GH*16+BH*16^2)*4*8+4 =HADR(A)+4 ………(式2−5) HADR(F)=(RH+GH*16+BH*16^2)*4*8+5 =HADR(A)+5 ………(式2−6) HADR(G)=(RH+GH*16+BH*16^2)*4*8+6 =HADR(A)+6 ………(式2−7) HADR(H)=(RH+GH*16+BH*16^2)*4*8+7 =HADR(A)+7 ………(式2−8) 以下、同様に、「M,Y,K」における格子点「A〜
H」の参照アドレスHADR(N)(但し、N=A〜
H)も、インクリメントを表す式を用いて示すことがで
きる。
HADR (E) = (RH + GH * 16 + BH * 16 ^ 2) * 4 * 8 + 4 = HADR (A) +4 (Expression 2-5) HADR (F) = (RH + GH * 16 + BH * 16 ^ 2) * 4 * 8 + 5 = HADR (A) +5 ... (Equation 2-6) HADR (G) = (RH + GH * 16 + BH * 16 ^ 2 ) * 4 * 8 + 6 = HADR (A) +6 ... (Equation 2-7) HADR (H) = (RH + GH * 16 + BH * 16 ^ 2) * 4 * 8 + 7 = HADR ( A) +7 (Equation 2-8) Hereinafter, similarly, the grid points “A to
H ", the reference address HADR (N) (where N = A to
H) can also be shown using an expression representing the increment.

【0031】次に、立方体補間における補間の原理につ
いて、図面を用いて説明する。図6(a)に示すよう
に、立方体において、読取部14から出力されるカラー
画像のデータ、すなわちRGB信号で示される変換点を
「P」とすると、その変換点Pを基準に立方体を、8つ
の直方体(変換点Pが立方体の中心に位置する場合には
8つの立方体)に分割することができる。そこで、図6
(b)に示すように、得られた8つの直方体の体積をw
1〜w8とすると、変換点Pにおける「C」成分の補間
値IPL(C)は、以下のように示すことができる。 IPL(C)=(w1*c8+w2*c7+w3*c6+w4*c5+w5*c4+w6*c3+w7*c2+w8*c1) /(w1+w2+w3+w4+w5+w6+w7+w8) ………(式3−1) なお、「c1〜c8」は、前記(式2−1)の参照アド
レスHADR(A)に基づき、インクリメントによって
得られる「C」成分における格子点「A〜H」の格子点
データである。
Next, the principle of interpolation in cubic interpolation will be described with reference to the drawings. As shown in FIG. 6A, assuming that the conversion point indicated by the color image data output from the reading unit 14, that is, the RGB signal is “P”, the cube is formed based on the conversion point P. It can be divided into eight rectangular parallelepipeds (eight cubes when the conversion point P is located at the center of the cube). Therefore, FIG.
As shown in (b), the volume of the obtained eight rectangular parallelepipeds is represented by w
If 1 to w8, the interpolation value IPL (C) of the “C” component at the conversion point P can be expressed as follows. IPL (C) = (w1 * c8 + w2 * c7 + w3 * c6 + w4 * c5 + w5 * c4 + w6 * c3 + w7 * c2 + w8 * c1) / (w1 + w2 + w3 + w4 + w5 + w6 + w7 + w8) (Equation 3-1) Note that “c1 to c8” are the “C” components obtained by the increment based on the reference address HADR (A) of the (Equation 2-1). This is grid point data of grid points “A to H”.

【0032】また、変換点Pにおける「M」成分、
「Y」成分、「K」成分の補間値IPL(M)、IPL
(Y)、IPL(K)についても同様に、以下のように
示すことができる。 IPL(M)=(w1*m8+w2*m7+w3*m6+w4*m5+w5*m4+w6*m3+w7*m2+w8*m1) /(w1+w2+w3+w4+w5+w6+w7+w8) ………(式3−2) IPL(Y)=(w1*y8+w2*y7+w3*y6+w4*y5+w5*y4+w6*y3+w7*y2+w8*y1) /(w1+w2+w3+w4+w5+w6+w7+w8) ………(式3−3) IPL(K)=(w1*k8+w2*k7+w3*k6+w4*k5+w5*k4+w6*k3+w7*k2+w8*k1) /(w1+w2+w3+w4+w5+w6+w7+w8) ………(式3−4)
The "M" component at the conversion point P,
Interpolated values IPL (M), IPL of “Y” component, “K” component
(Y) and IPL (K) can be similarly expressed as follows. IPL (M) = (w1 * m8 + w2 * m7 + w3 * m6 + w4 * m5 + w5 * m4 + w6 * m3 + w7 * m2 + w8 * m1) / (w1 + w2 + w3 + w4 + w5 + w6 + w7 + w8) ...... (Equation 3-2) IPL (Y) = (w1 * y8 + w2 * y7 + w3 * y6 + w4 * y5 + w5 * y4 + w6 * y3 + w7 * y2 + w8 * y1) / (w1 + w2 + w3 + w4 + w5 + w6 + w7 + w8) ............ (Equation 3-3) IPL (K) = (w1 * k8 + w2 * k7 + w3 * k6 + w4 * k5 + w5 * k4 + w6 * k3 + w7 * k2 + w8 * k1) / (w1 + w2 + w3 + w4 + w5 + w6 + w7 + w8) ... (Equation 3-4)

【0033】なお、「m1〜m8」、「y1〜y8」及
び「k1〜k8」も、前記(式2−1)の参照アドレス
HADR(A)に基づき、インクリメントによって得ら
れる「M,Y,K」における格子点「A〜H」の格子点
データである。以上、「C,M,Y,K」成分の補間値
IPL(N)(但し、N=C,M,Y,K)を示す(式
3−1)〜(式3−4)からも明らかなように、直方体
の体積w1〜w8が、補間値IPL(N)における「重
み係数W」となっている。しかも、「C,M,Y,K」
成分の補間値IPL(N)を算出する場合に用いられる
重み係数W(w1〜w8)は、全て同じである。換言す
れば、重み係数Wは、「C,M,Y,K」成分に無関係
である。
Note that “m1 to m8”, “y1 to y8”, and “k1 to k8” are also obtained by incrementing “M, Y, Y” based on the reference address HADR (A) of the above (Equation 2-1). K is grid point data of grid points “A to H” in “K”. As described above, the interpolation values IPL (N) (where N = C, M, Y, K) of the “C, M, Y, K” components are evident from (Equation 3-1) to (Equation 3-4). In this way, the volume w1 to w8 of the rectangular parallelepiped is the “weight coefficient W” in the interpolation value IPL (N). And "C, M, Y, K"
The weighting factors W (w1 to w8) used when calculating the component interpolation value IPL (N) are all the same. In other words, the weight coefficient W is independent of the “C, M, Y, K” components.

【0034】そこで、「C,M,Y,K」成分に無関係
な重み係数W(w1〜w8)を連続して記憶させる。す
なわち、図7に示すように、読取部14から出力される
カラー画像のデータ、すなわち変換点PにおけるRGB
信号の各下位4〔bit〕を(RL,GL,BL)とす
ると、(0,0,0)、(1,0,0)、(2,0,
0)、・・・、(15,15,14)、(15,15,
15)の各格子点の順に、それぞれ対応する重み係数W
(w1〜w8)を連続して記憶させる。
Therefore, the weight coefficients W (w1 to w8) irrelevant to the "C, M, Y, K" components are continuously stored. That is, as shown in FIG. 7, the data of the color image output from the reading unit 14, that is, the RGB data at the conversion point P
Assuming that each lower 4 bits of the signal is (RL, GL, BL), (0, 0, 0), (1, 0, 0), (2, 0,
0),..., (15, 15, 14), (15, 15,
15) In order of each grid point, the corresponding weight coefficient W
(W1 to w8) are stored continuously.

【0035】具体的には、(0,0,0)に対して、重
み係数W(w1〜w8)を記憶させる。続いて、(1,
0,0)に対して、重み係数W(w1〜w8)を記憶さ
せる。そして、最後に(15,15,15)に対して、
重み係数W(w1〜w8)を記憶させる。このため、重
み係数w1の参照アドレスLADR(w1)は、以下の
ように示すことができる。 LADR(w1)=(RL+GL*16+BL*16^2)*8 =(RL+GL*16+BL*256)*8 ………(式4−1) また、重み係数w2〜w8の参照アドレスLADR
(N)(但し、N=w2〜w8)は、以下のように示す
ことができる。 LADR(w2)=(RL+GL*16+BL*16^2)*8+1 =LADR(w1)+1 ………(式4−2) LADR(w3)=(RL+GL*16+BL*16^2)*8+2 =LADR(w1)+2 ………(式4−3) LADR(w4)=(RL+GL*16+BL*16^2)*8+3 =LADR(w1)+3 ………(式4−4)
Specifically, a weight coefficient W (w1 to w8) is stored for (0, 0, 0). Then, (1,
A weight coefficient W (w1 to w8) is stored for (0, 0). And finally, for (15,15,15),
The weight coefficients W (w1 to w8) are stored. Therefore, the reference address LADR (w1) of the weight coefficient w1 can be represented as follows. LADR (w1) = (RL + GL * 16 + BL * 16 ^ 2) * 8 = (RL + GL * 16 + BL * 256) * 8 (Equation 4-1) Also, weighting factors w2 to w8 Reference address of LADR
(N) (where N = w2 to w8) can be shown as follows. LADR (w2) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + 1 = LADR (w1) +1 ............ (Formula 4-2) LADR (w3) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + 2 = LADR (w1) +2 ............ (Equation 4-3) LADR (w4) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + 3 = LADR (w1) +3 (Equation 4-4)

【0036】 LADR(w5)=(RL+GL*16+BL*16^2)*8+4 =LADR(w1)+4 ………(式4−5) LADR(w6)=(RL+GL*16+BL*16^2)*8+5 =LADR(w1)+5 ………(式4−6) LADR(w7)=(RL+GL*16+BL*16^2)*8+6 =LADR(w1)+6 ………(式4−7) LADR(w8)=(RL+GL*16+BL*16^2)*8+7 =LADR(w1)+7 ………(式4−8) 従って、このように記憶すれば、重み係数w1の参照ア
ドレスLADR(w1)が分かれば、7回インクリメン
トするだけで、すべての重み係数W(w1〜w8)を順
次得ることができる。また、同様に、「M,Y,K」に
おける重み係数W(w1〜w8)の参照アドレスLAD
R(N)(但し、N=w1〜w8)も、インクリメント
を表す式で示すことができる。
LADR (w5) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + 4 = LADR (w1) +4 (Equation 4-5) LADR (w6) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + 5 = LADR (w1) +5 ............ (Equation 4-6) LADR (w7) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + 6 = LADR (w1) +6 ...... (Equation 4-7) LADR (w8) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + 7 = LADR (w1) +7 ............ ( (Equation 4-8) Therefore, if the reference address LADR (w1) of the weighting factor w1 is known by storing as above, all the weighting factors W (w1 to w8) can be sequentially obtained only by incrementing seven times. it can. Similarly, the reference address LAD of the weight coefficient W (w1 to w8) in “M, Y, K”
R (N) (where N = w1 to w8) can also be represented by an expression representing the increment.

【0037】次に、「C,M,Y,K」成分の補間値I
PL(N)(但し、N=C,M,Y,K)を算出する方
法について説明する。読取部14から出力されるカラー
画像のデータ、すなわち変換点PにおけるRGB信号の
各下位4〔bit〕を(RL,GL,BL)とすると、
「C,M,Y,K」成分の補間値IPL(N)(但し、
N=C,M,Y,K)は、(式3−1)〜(式3−4)
より、以下のように示すことができる。 IPL(N)={w1*f(HADR(A))+w2*f(HADR(B))+w3*f(HADR(C)) +w4*f(HADR(D))+w5*f(HADR(E))+w6*f(HADR(F)) +w7*f(HADR(G))+w8*f(HADR(H)) }/(16*16*16) ………(式5)
Next, the interpolation value I of the "C, M, Y, K" components
A method of calculating PL (N) (where N = C, M, Y, K) will be described. Assuming that the lower 4 bits of the color image data at the conversion point P, that is, the lower 4 bits of the RGB signal at the conversion point P are (RL, GL, BL),
Interpolated value IPL (N) of “C, M, Y, K” components (however,
N = C, M, Y, K) are expressed by (Equation 3-1) to (Equation 3-4).
Thus, it can be shown as follows. IPL (N) = (w1 * f (HADR (A)) + w2 * f (HADR (B)) + w3 * f (HADR (C)) + w4 * f (HADR (D)) + w5 * f ( HADR (E)) + w6 * f (HADR (F)) + w7 * f (HADR (G)) + w8 * f (HADR (H))} / (16 * 16 * 16) ............ (Equation 5 )

【0038】なお、(式5)に示すf(HADR
(N))(但し、N=A〜H)は、前記(式2−1)に
基づき、インクリメントによって得られる「C,M,
Y,K」成分における格子点「A〜H」の格子点データ
である。
Note that f (HADR) shown in (Equation 5)
(N)) (however, N = A to H) are obtained by incrementing “C, M,
This is grid point data of grid points “A to H” in the “Y, K” components.

【0039】ここで、前記図6(b)に示したように、
変換点Pを基準とする8つの直方体の体積を、つまり重
み係数W(w1〜w8)をRGB信号の各下位4〔bi
t〕、すなわち(RL,GL,BL)で表現すると、以
下のように示すことができる。 w1=(16-RL)*(16-GL)*(16-BL) ………(式6−1) w2=(16-RL)*(16-GL)* BL ………(式6−2) w3=(16-RL)* GL *(16-BL) ………(式6−3) w4=(16-RL)* GL * BL ………(式6−4) w5= RL *(16-GL)*(16-BL) ………(式6−5) w6= RL *(16-GL)* BL ………(式6−6) w7= RL * GL *(16-BL) ………(式6−7) w8= RL * GL * BL ………(式6−8)
Here, as shown in FIG. 6B,
The volumes of the eight rectangular parallelepipeds based on the conversion point P, that is, the weighting factors W (w1 to w8) are assigned to the lower 4 bits of the RGB signal [bi
t], that is, (RL, GL, BL) can be expressed as follows. w1 = (16-RL) * (16-GL) * (16-BL) ... (Equation 6-1) w2 = (16-RL) * (16-GL) * BL ... (Equation 6) 2) w3 = (16-RL) * GL * (16-BL) (Equation 6-3) w4 = (16-RL) * GL * BL (Equation 6-4) w5 = RL * (16-GL) * (16-BL) ... (Equation 6-5) w6 = RL * (16-GL) * BL ... (Equation 6-6) w7 = RL * GL * (16-BL) ) ............ (Equation 6-7) w8 = RL * GL * BL ............ (Equation 6-8)

【0040】従って、前記(式5)に(式6−1)〜
(式6−8)を代入すると、「C,M,Y,K」成分の
補間値IPL(N)(但し、N=C,M,Y,K)は、
以下のように示すことができる。 IPL(N)={(16-RL)*(16-GL)*(16-BL)*f(HADR(A)) +(16-RL)*(16-GL)* BL *f(HADR(B)) +(16-RL)* GL *(16-BL)*f(HADR(C)) +(16-RL)* GL * BL *f(HADR(D)) + RL *(16-GL)*(16-BL)*f(HADR(E)) + RL *(16-GL)* BL *f(HADR(F)) + RL * GL *(16-BL)*f(HADR(G)) + RL * GL * BL *f(HADR(H)) }/(16*16*16) ………(式7) なお、(式7)に示すf(HADR(N))(但し、N
=A〜H)は、前記(式2−1)に基づき、インクリメ
ントによって得られる「C,M,Y,K」成分における
格子点「A〜H」の格子点データである。
Therefore, the above (Equation 5) is replaced by (Equation 6-1) to
Substituting (Equation 6-8), the interpolation value IPL (N) (where N = C, M, Y, K) of the “C, M, Y, K” component is
It can be shown as follows. IPL (N) = {(16-RL) * (16-GL) * (16-BL) * f (HADR (A)) + (16-RL) * (16-GL) * BL * f (HADR ( B)) + (16-RL) * GL * (16-BL) * f (HADR (C)) + (16-RL) * GL * BL * f (HADR (D)) + RL * (16-GL ) * (16-BL) * f (HADR (E)) + RL * (16-GL) * BL * f (HADR (F)) + RL * GL * (16-BL) * f (HADR (G) ) + RL * GL * BL * f (HADR (H))} / (16 * 16 * 16) (7) where f (HADR (N)) shown in (7) (where N
= A to H) is the grid point data of the grid points “A to H” in the “C, M, Y, K” components obtained by the increment based on the above (Equation 2-1).

【0041】次に、立方体補間において、変換点Pが例
外処理に該当する場合について説明する。前記図2に示
すRGB空間において、RGB信号はそれぞれ8〔bi
t〕で構成されているため、各軸は「0〜255(00
h〜FFh)」までの値をとる。このため、各軸を16
分割すると、全てが同じ間隔にはならない。つまり、各
軸において、「0〜240(00h〜F0h)」までの
間は「16」増加する毎に交点となるが、「240〜2
55(F0h〜FFh)」の部分は、「15」増加する
と交点となる。このため、補間演算を行うサイズが「2
40〜255(F0h〜FFh)」の部分だけ異なるこ
とになる。
Next, a case where the conversion point P corresponds to exception processing in cubic interpolation will be described. In the RGB space shown in FIG. 2, each of the RGB signals is 8 [bi
t], each axis is “0-255 (00
h to FFh) ”. For this reason, 16
When divided, they are not all at the same interval. In other words, in each axis, the intersection becomes a point every time "16" is increased from "0 to 240 (00h to F0h)".
55 (F0h to FFh) "becomes an intersection when" 15 "is increased. For this reason, the size for performing the interpolation calculation is “2”.
40 to 255 (F0h to FFh) ".

【0042】従って、変換点Pが「240〜255(F
0h〜FFh)」に該当するか否かを判断しなければな
らない。しかしながら、補間演算をソフトウェアで構成
する場合において、変換点Pが例外処理に該当するか否
かを判断させた後、補間演算処理をする。例外処理に該
当するか否かの判断処理は、全ての画素に対して行われ
るため、一画素の判断処理に必要な時間は微少時間であ
っても、多数の画素に対して判断処理を行わせると、判
断処理に時間がかかる。そこで、図8に示すように、R
GB空間の立方体において、例外処理に該当する場合を
検討する。すなわち、例外処理に該当する場合とは、変
換点PにおけるRGB信号の各上位4〔bit〕を(R
H,GH,BH)とすると、その(RH,GH,BH)
の各値の何れかが「15」となる場合である。
Therefore, the conversion point P is set to "240 to 255 (F
0h to FFh) ”must be determined. However, in the case where the interpolation calculation is configured by software, the interpolation calculation processing is performed after determining whether or not the conversion point P corresponds to the exception processing. Since the process of determining whether or not an exception process is performed is performed for all pixels, the determination process is performed for a large number of pixels even if the time required for the determination process for one pixel is very small. If so, it takes a long time for the determination process. Therefore, as shown in FIG.
Consider a case that corresponds to exception processing in a cube in the GB space. That is, the case corresponding to the exception processing means that the upper 4 bits of the RGB signal at the conversion point P are set to (R
H, GH, BH), (RH, GH, BH)
Is “15”.

【0043】従って、変換点Pが例外処理に該当する場
合は、以下の「7通り」である。 [1]RH=15,GH<15,BH<15(図8に示すE1) [2]RH<15,GH=15,BH<15(図8に示すE2) [3]RH<15,GH<15,BH=15(図8に示すE3) [4]RH=15,GH=15,BH<15(図8に示すE4) [5]RH<15,GH=15,BH=15(図8に示すE5) [6]RH=15,GH<15,BH=15(図8に示すE6) [7]RH=15,GH=15,BH=15(図8に示すE7)
Therefore, when the conversion point P corresponds to the exception processing, the following “seven cases” are performed. [1] RH = 15, GH <15, BH <15 (E1 shown in FIG. 8) [2] RH <15, GH = 15, BH <15 (E2 shown in FIG. 8) [3] RH <15, GH <15, BH = 15 (E3 shown in FIG. 8) [4] RH = 15, GH = 15, BH <15 (E4 shown in FIG. 8) [5] RH <15, GH = 15, BH = 15 (FIG. 8) [6] RH = 15, GH <15, BH = 15 (E6 shown in FIG. 8) [7] RH = 15, GH = 15, BH = 15 (E7 shown in FIG. 8)

【0044】このため、上記[1]〜[7]の例外処理
に該当する場合における重み係数W(w1〜w8)は、
前記(式6−1)〜(式6−8)より、以下のように示
すことができる。 [1]RH=15,GH<15,BH<15(図8に示すE1)の場合 w1=(15-RL)*(16-GL)*(16-BL) ………(式8−1) w2=(15-RL)*(16-GL)* BL ………(式8−2) w3=(15-RL)* GL *(16-BL) ………(式8−3) w4=(15-RL)* GL * BL ………(式8−4) w5= RL *(16-GL)*(16-BL) ………(式8−5) w6= RL *(16-GL)* BL ………(式8−6) w7= RL * GL *(16-BL) ………(式8−7) w8= RL * GL * BL ………(式8−8)
For this reason, the weighting factors W (w1 to w8) in the cases corresponding to the exceptional processes [1] to [7] are
From the above (Formula 6-1) to (Formula 6-8), they can be shown as follows. [1] When RH = 15, GH <15, BH <15 (E1 shown in FIG. 8) w1 = (15-RL) * (16-GL) * (16-BL) (Equation 8-1) ) W2 = (15-RL) * (16-GL) * BL (Equation 8-2) w3 = (15-RL) * GL * (16-BL) ... (Equation 8-3) w4 = (15-RL) * GL * BL ... (Equation 8-4) w5 = RL * (16-GL) * (16-BL) ... (Equation 8-5) w6 = RL * (16- GL) * BL ...... (Equation 8-6) w7 = RL * GL * (16-BL) ...... (Equation 8-7) w8 = RL * GL * BL ...... (Equation 8-8)

【0045】 [2]RH<15,GH=15,BH<15(図8に示すE2)の場合 w1=(16-RL)*(15-GL)*(16-BL) ………(式9−1) w2=(16-RL)*(15-GL)* BL ………(式9−2) w3=(16-RL)* GL *(16-BL) ………(式9−3) w4=(16-RL)* GL * BL ………(式9−4) w5= RL *(15-GL)*(16-BL) ………(式9−5) w6= RL *(15-GL)* BL ………(式9−6) w7= RL * GL *(16-BL) ………(式9−7) w8= RL * GL * BL ………(式9−8)[2] When RH <15, GH = 15, BH <15 (E2 shown in FIG. 8) w1 = (16-RL) * (15-GL) * (16-BL) (Expression 9-1) w2 = (16-RL) * (15-GL) * BL (Equation 9-2) w3 = (16-RL) * GL * (16-BL) (Equation 9- 3) w4 = (16-RL) * GL * BL (Equation 9-4) w5 = RL * (15-GL) * (16-BL) ... (Equation 9-5) w6 = RL * (15-GL) * BL ... (Equation 9-6) w7 = RL * GL * (16-BL) ... (Equation 9-7) w8 = RL * GL * BL ... (Equation 9-6) 8)

【0046】 [3]RH<15,GH<15,BH=15(図8に示すE3)の場合 w1=(16-RL)*(16-GL)*(15-BL) ………(式10−1) w2=(16-RL)*(16-GL)* BL ………(式10−2) w3=(16-RL)* GL *(15-BL) ………(式10−3) w4=(16-RL)* GL * BL ………(式10−4) w5= RL *(16-GL)*(15-BL) ………(式10−5) w6= RL *(16-GL)* BL ………(式10−6) w7= RL * GL *(15-BL) ………(式10−7) w8= RL * GL * BL ………(式10−8)[3] When RH <15, GH <15, BH = 15 (E3 shown in FIG. 8) w1 = (16-RL) * (16-GL) * (15-BL) 10-1) w2 = (16-RL) * (16-GL) * BL (Equation 10-2) w3 = (16-RL) * GL * (15-BL) (Equation 10- 3) w4 = (16-RL) * GL * BL (Equation 10-4) w5 = RL * (16-GL) * (15-BL) ... (Equation 10-5) w6 = RL * (16-GL) * BL (Equation 10-6) w7 = RL * GL * (15-BL) (Equation 10-7) w8 = RL * GL * BL (Equation 10-6) 8)

【0047】 [4]RH=15,GH=15,BH<15(図8に示すE4)の場合 w1=(15-RL)*(15-GL)*(16-BL) ………(式11−1) w2=(15-RL)*(15-GL)* BL ………(式11−2) w3=(15-RL)* GL *(16-BL) ………(式11−3) w4=(15-RL)* GL * BL ………(式11−4) w5= RL *(15-GL)*(16-BL) ………(式11−5) w6= RL *(15-GL)* BL ………(式11−6) w7= RL * GL *(16-BL) ………(式11−7) w8= RL * GL * BL ………(式11−8)[4] When RH = 15, GH = 15, BH <15 (E4 shown in FIG. 8) w1 = (15-RL) * (15-GL) * (16-BL) (Equation 4) 11-1) w2 = (15-RL) * (15-GL) * BL (Equation 11-2) w3 = (15-RL) * GL * (16-BL) (Equation 11- 3) w4 = (15-RL) * GL * BL (Equation 11-4) w5 = RL * (15-GL) * (16-BL) (Equation 11-5) w6 = RL * (15-GL) * BL ... (Equation 11-6) w7 = RL * GL * (16-BL) ... (Equation 11-7) w8 = RL * GL * BL ... (Equation 11-6) 8)

【0048】 [5]RH<15,GH=15,BH=15(図8に示すE5)の場合 w1=(16-RL)*(15-GL)*(15-BL) ………(式12−1) w2=(16-RL)*(15-GL)* BL ………(式12−2) w3=(16-RL)* GL *(15-BL) ………(式12−3) w4=(16-RL)* GL * BL ………(式12−4) w5= RL *(15-GL)*(15-BL) ………(式12−5) w6= RL *(15-GL)* BL ………(式12−6) w7= RL * GL *(15-BL) ………(式12−7) w8= RL * GL * BL ………(式12−8)[5] When RH <15, GH = 15, BH = 15 (E5 shown in FIG. 8) w1 = (16-RL) * (15-GL) * (15-BL) (Equation 5) 12-1) w2 = (16-RL) * (15-GL) * BL (Equation 12-2) w3 = (16-RL) * GL * (15-BL) (Equation 12- 3) w4 = (16-RL) * GL * BL (Equation 12-4) w5 = RL * (15-GL) * (15-BL) ... (Equation 12-5) w6 = RL * (15-GL) * BL ... (Equation 12-6) w7 = RL * GL * (15-BL) ... (Equation 12-7) w8 = RL * GL * BL ... (Equation 12-6) 8)

【0049】 [6]RH=15,GH<15,BH=15(図8に示すE6)の場合 w1=(15-RL)*(16-GL)*(15-BL) ………(式13−1) w2=(15-RL)*(16-GL)* BL ………(式13−2) w3=(15-RL)* GL *(15-BL) ………(式13−3) w4=(15-RL)* GL * BL ………(式13−4) w5= RL *(16-GL)*(15-BL) ………(式13−5) w6= RL *(16-GL)* BL ………(式13−6) w7= RL * GL *(15-BL) ………(式13−7) w8= RL * GL * BL ………(式13−8)[6] When RH = 15, GH <15, BH = 15 (E6 shown in FIG. 8) w1 = (15-RL) * (16-GL) * (15-BL) (Equation 5) 13-1) w2 = (15-RL) * (16-GL) * BL (Equation 13-2) w3 = (15-RL) * GL * (15-BL) (Equation 13- 3) w4 = (15-RL) * GL * BL (Equation 13-4) w5 = RL * (16-GL) * (15-BL) ... (Equation 13-5) w6 = RL * (16-GL) * BL ... (Equation 13-6) w7 = RL * GL * (15-BL) ... (Equation 13-7) w8 = RL * GL * BL ... (Equation 13-6) 8)

【0050】 [7]RH=15,GH=15,BH=15(図8に示すE7)の場合 w1=(15-RL)*(15-GL)*(15-BL) ………(式14−1) w2=(15-RL)*(15-GL)* BL ………(式14−2) w3=(15-RL)* GL *(15-BL) ………(式14−3) w4=(15-RL)* GL * BL ………(式14−4) w5= RL *(15-GL)*(15-BL) ………(式14−5) w6= RL *(15-GL)* BL ………(式14−6) w7= RL * GL *(15-BL) ………(式14−7) w8= RL * GL * BL ………(式14−8)[7] When RH = 15, GH = 15, BH = 15 (E7 shown in FIG. 8) w1 = (15-RL) * (15-GL) * (15-BL) 14-1) w2 = (15-RL) * (15-GL) * BL (Equation 14-2) w3 = (15-RL) * GL * (15-BL) (Equation 14- 3) w4 = (15-RL) * GL * BL (Equation 14-4) w5 = RL * (15-GL) * (15-BL) ... (Equation 14-5) w6 = RL * (15-GL) * BL ... (Equation 14-6) w7 = RL * GL * (15-BL) ... (Equation 14-7) w8 = RL * GL * BL ... (Equation 14-6) 8)

【0051】次に、変換点Pが例外処理に該当するか否
かを判断する方法について説明する。変換点Pにおける
RGB信号の各上位4〔bit〕を(RH,GH,B
H)とすると、その(RH,GH,BH)の各値の何れ
かが「15」か否かを判断して、補間演算処理を行うよ
うに構成しても良い。しかしながら、補間演算処理をよ
り高速に行うために、ひいては装置全体としての処理速
度を向上させるために、(RH,GH,BH)に対して
例外処理に該当する場合と、例外処理に該当しない場合
とを判断させるために、(RH,GH,BH)に対して
「0〜7」の値を記憶させる。
Next, a method of determining whether the conversion point P corresponds to exception processing will be described. The upper 4 bits of the RGB signal at the conversion point P are represented by (RH, GH, B
H), it may be configured to determine whether any of the values of (RH, GH, BH) is “15” and perform the interpolation calculation process. However, in order to perform the interpolation arithmetic processing at a higher speed, and thus to improve the processing speed of the entire apparatus, a case where (RH, GH, BH) corresponds to an exception process and a case where it does not correspond to an exception process Is stored as (RH, GH, BH).

【0052】すなわち、図9に示すように、RGB信号
の各上位4〔bit〕を(RH,GH,BH)と、例外
処理に該当するか否かを示す値を「Z」とすると、前述
の例外処理に該当する[1]〜[7]の場合には、
「Z」の値を「1〜7」として、例外処理に該当しない
場合、つまり(RH,GH,BH)の各値の何れも「1
5」でない場合、換言すれば(RH,GH,BH)の各
値の全てが「0〜14」の場合には、「Z」の値を
「0」として記憶させる。このため、例外処理に該当す
るか否かは(RH,GH,BH)に基づいて、例外処理
に該当するか否かを示す値「Z」で判断することができ
る。加えて、[1]〜[7]に示す「7通り」の例外処
理のうち、何れの例外処理に該当するかをも判断するこ
とができる。
That is, as shown in FIG. 9, if each of the upper 4 bits of the RGB signal is (RH, GH, BH) and the value indicating whether or not the exception processing is performed is "Z", In the case of [1] to [7] corresponding to the exception processing of
If the value of “Z” is “1 to 7” and the case does not correspond to the exception processing, that is, each of the values of (RH, GH, BH) is “1”
If it is not "5", in other words, if all the values of (RH, GH, BH) are "0 to 14", the value of "Z" is stored as "0". For this reason, whether or not an exception is handled can be determined based on (RH, GH, BH) based on the value “Z” indicating whether or not the exception is handled. In addition, it is possible to determine which of the “seven kinds” of the exceptional processes shown in [1] to [7] corresponds to the exceptional process.

【0053】従って、例外処理に該当するか否かを示す
「Z」の参照アドレスZHADR(Z)は、(RH,G
H,BH)を用いて、以下のように示すことができる。 ZHADR(Z)=RH+GH*16+BH*16^2 =RH+GH*16+BH*256 ………(式15)
Therefore, the reference address ZHADR (Z) of “Z” indicating whether or not the exception processing is performed is (RH, G
H, BH), it can be expressed as follows. ZHADR (Z) = RH + GH * 16 + BH * 16 ^ 2 = RH + GH * 16 + BH * 256 ... (Equation 15)

【0054】次に、変換点Pが例外処理に該当するか否
かを判断する別の方法について説明する。すなわち、
[1]〜[7]に示す「7通り」の例外処理において、
例外処理に該当するか否かを示す値「Z」をそれぞれ、 [1]RH=15,GH<15,BH<15の場合 Z=1 [2]RH<15,GH=15,BH<15の場合 Z=2 [3]RH<15,GH<15,BH=15の場合 Z=4 [4]RH=15,GH=15,BH<15の場合 Z=3 [5]RH<15,GH=15,BH=15の場合 Z=6 [6]RH=15,GH<15,BH=15の場合 Z=5 [7]RH=15,GH=15,BH=15の場合 Z=7 と予め定義すると、例外処理に該当するか否かを示す値
「Z」は、以下のように示すこともできる。 Z=(RH==15)+(GH==15)*2+(BH==15)*4 ………(式15−1) ここで、「RH==15」とは、RH=15の場合
「1」、RH≠15の場合「0」と規約する。なお、
「GH==15」及び「BH==15」も、「RH==
15」と同様である。
Next, another method for determining whether or not the conversion point P corresponds to exception processing will be described. That is,
In “seven kinds” of exception processing shown in [1] to [7],
[1] When RH = 15, GH <15, BH <15 Z = 1 [2] RH <15, GH = 15, BH <15 If Z = 2 [3] RH <15, GH <15, BH = 15 Z = 4 [4] If RH = 15, GH = 15, BH <15 Z = 3 [5] RH <15, GH = 15, BH = 15 Z = 6 [6] RH = 15, GH <15, BH = 15 Z = 5 [7] RH = 15, GH = 15, BH = 15 Z = 7 Is defined in advance, the value “Z” indicating whether or not the exception processing is applicable can be indicated as follows. Z = (RH == 15) + (GH == 15) * 2 + (BH == 15) * 4 (Equation 15-1) Here, “RH == 15” means that RH = 15. Is defined as "1" in the case of, and "0" in the case of RH ≠ 15. In addition,
“GH == 15” and “BH == 15” are also equivalent to “RH ==
15 ".

【0055】次に、例外処理に該当する場合における重
み係数W(w1〜w8)を記憶させる順序について、図
面を用いて説明する。図10に示すように、例外処理に
該当するか否かを示す値を「Z」、読取部14から出力
されるカラー画像のデータ、すなわちRGB信号の各下
位4〔bit〕を(RL,GL,BL)、重み係数を
「W」とし、各Z(=0〜7)に対応する(RL,G
L,BL)を記憶させる。また、(RL,GL,BL)
に対応する重み係数Wをw1〜w8の順に連続して記憶
させる。
Next, the order of storing the weighting factors W (w1 to w8) in the case of exception processing will be described with reference to the drawings. As shown in FIG. 10, the value indicating whether or not the exception processing is applied is “Z”, and the data of the color image output from the reading unit 14, that is, each of the lower 4 bits of the RGB signal is (RL, GL). , BL), the weighting factor is “W”, and (RL, G) corresponding to each Z (= 0 to 7)
(L, BL). Also, (RL, GL, BL)
Are successively stored in the order of w1 to w8.

【0056】具体的には、Z=「0」の場合における
(0,0,0)に対して、重み係数W(w1〜w8)を
記憶させる。続いて、(1,0,0)に対して、重み係
数W(w1〜w8)を記憶させる。そして、最後に、Z
=「7」の場合における(15,15,15)に対し
て、重み係数W(w1〜w8)を記憶させる。
More specifically, for (0, 0, 0) in the case where Z = "0", a weight coefficient W (w1 to w8) is stored. Subsequently, a weighting coefficient W (w1 to w8) is stored for (1, 0, 0). And finally, Z
Weight coefficients W (w1 to w8) are stored for (15, 15, 15) in the case of = “7”.

【0057】このため、例外処理に該当する場合を含む
重み係数w1の参照アドレスELADR(w1)は、以
下のように示すことができる。 ELADR(w1)=(RL+GL*16+BL*16^2)*8+Z*16^3*8 =(RL+GL*16+BL*256)*8+Z*4096*8 ………(式16−1) また、例外処理に該当する場合を含む重み係数w2〜w
8の参照アドレスELADR(N)(但し、N=w2〜
w8)は、以下のように示すことができる。 ELADR(w2)=(RL+GL*16+BL*16^2)*8+Z*16^3*8+1 =ELADR(w1)+1 ………(式16−2) ELADR(w3)=(RL+GL*16+BL*16^2)*8+Z*16^3*8+2 =ELADR(w1)+2 ………(式16−3) ELADR(w4)=(RL+GL*16+BL*16^2)*8+Z*16^3*8+3 =ELADR(w1)+3 ………(式16−4)
For this reason, the reference address ELADR (w1) of the weight coefficient w1 including the case corresponding to the exception processing can be expressed as follows. ELADR (w1) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 8 = (RL + GL * 16 + BL * 256) * 8 + Z * 4096 * 8 …… (Equation 16-1) Also, the weighting factors w2 to w including the case corresponding to the exception processing
8 reference address ELADR (N) (where N = w2
w8) can be shown as follows. ELADR (w2) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 8 + 1 = ELADR (w1) +1 ... (Equation 16-2) ELADR (w3) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 8 + 2 = ELADR (w1) +2 ... (Equation 16-3) ELADR (w4) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 8 + 3 = ELADR (w1) +3 ... (Equation 16-4)

【0058】 ELADR(w5)=(RL+GL*16+BL*16^2)*8+Z*16^3*8+4 =ELADR(w1)+4 ………(式16−5) ELADR(w6)=(RL+GL*16+BL*16^2)*8+Z*16^3*8+5 =ELADR(w1)+5 ………(式16−6) ELADR(w7)=(RL+GL*16+BL*16^2)*8+Z*16^3*8+6 =ELADR(w1)+6 ………(式16−7) ELADR(w8)=(RL+GL*16+BL*16^2)*8+Z*16^3*8+7 =ELADR(w1)+7 ………(式16−8) 従って、このように記憶すれば、重み係数w1の参照ア
ドレスELADR(w1)に基づいて、7回インクリメ
ントするだけで、すべての重み係数W(w1〜w8)を
順次得ることができる。
ELADR (w5) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 8 + 4 = ELADR (w1) +4 (Equation 16-5) ELADR (w6) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 8 + 5 = ELADR (w1) +5 (Equation 16-6) ELADR (w7) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 8 + 6 = ELADR (w1) +6 ...... (Equation 16-7) ELADR (w8) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 8 + 7 = ELADR (w1) +7 (Equation 16-8) Therefore, if stored in this way, the weight coefficient w1 All weighting coefficients W (w1 to w8) can be sequentially obtained only by incrementing seven times based on the reference address ELADR (w1).

【0059】次に、例外処理において、「C,M,Y,
K」成分の補間値IPL(N)(但し、N=C,M,
Y,K)を算出する方法について説明する。読取部14
から出力されるカラー画像のデータ、すなわちRGB信
号の各下位4〔bit〕を(RL,GL,BL)とする
と、「C,M,Y,K」成分の補間値IPL(N)(但
し、N=C,M,Y,K)は、前記(式5)と同様に、
以下のように示すことができる。 IPL(N)={w1*f(HADR(A))+w2*f(HADR(B))+w3*f(HADR(C)) +w4*f(HADR(D))+w5*f(HADR(E))+w6*f(HADR(F)) +w7*f(HADR(G))+w8*f(HADR(H)) }/(16*16*16) ………(式17)
Next, in the exception processing, "C, M, Y,
K ”component interpolation value IPL (N) (where N = C, M,
(Y, K) will be described. Reading unit 14
Assuming that the lower 4 bits of the color image data, that is, the lower 4 bits of the RGB signal, are (RL, GL, BL), the interpolation value IPL (N) of the “C, M, Y, K” component (where, N = C, M, Y, K), as in the above (Equation 5),
It can be shown as follows. IPL (N) = (w1 * f (HADR (A)) + w2 * f (HADR (B)) + w3 * f (HADR (C)) + w4 * f (HADR (D)) + w5 * f ( HADR (E)) + w6 * f (HADR (F)) + w7 * f (HADR (G)) + w8 * f (HADR (H))} / (16 * 16 * 16) ............ (Equation 17) )

【0060】なお、(式17)に示すf(HADR
(N))(但し、N=A〜H)は、前記(式2−1)に
基づき、インクリメントによって得られる「C,M,
Y,K」成分における格子点「A〜H」の格子点データ
である。
Note that f (HADR) shown in (Equation 17)
(N)) (however, N = A to H) are obtained by incrementing “C, M,
This is grid point data of grid points “A to H” in the “Y, K” components.

【0061】ここで、重み係数W(w1〜w8)をRG
B信号の各下位4〔bit〕、すなわち(RL,GL,
BL)で表現すると、前記(式8−1)〜(式14−
8)より、補間値IPL(N)(但し、N=C,M,
Y,K)を示す前記(式17)は、以下のように示すこ
とができる。 [1]RH=15,GH<15,BH<15の場合 IPL(N)={(15-RL)*(16-GL)*(16-BL)*f(HADR(A)) +(15-RL)*(16-GL)* BL *f(HADR(B)) +(15-RL)* GL *(16-BL)*f(HADR(C)) +(15-RL)* GL * BL *f(HADR(D)) + RL *(16-GL)*(16-BL)*f(HADR(E)) + RL *(16-GL)* BL *f(HADR(F)) + RL * GL *(16-BL)*f(HADR(G)) + RL * GL * BL *f(HADR(H)) }/(15*16*16) ………(式18) なお、(式18)は、前記(式7)に示す「RL」に
「16*RL/15」を代入することにより得ることも
できる。
Here, the weight coefficient W (w1 to w8) is
The lower 4 bits of the B signal, that is, (RL, GL,
BL), the above (Equation 8-1) to (Equation 14-
8), the interpolation value IPL (N) (where N = C, M,
(Equation 17) showing (Y, K) can be expressed as follows. [1] When RH = 15, GH <15, BH <15 IPL (N) = {(15-RL) * (16-GL) * (16-BL) * f (HADR (A)) + (15 -RL) * (16-GL) * BL * f (HADR (B)) + (15-RL) * GL * (16-BL) * f (HADR (C)) + (15-RL) * GL * BL * f (HADR (D)) + RL * (16-GL) * (16-BL) * f (HADR (E)) + RL * (16-GL) * BL * f (HADR (F)) + RL * GL * (16-BL) * f (HADR (G)) + RL * GL * BL * f (HADR (H))} / (15 * 16 * 16) ............ (Equation 18) Equation 18) can also be obtained by substituting “16 * RL / 15” for “RL” shown in Equation 7 above.

【0062】 [2]RH<15,GH=15,BH<15の場合 IPL(N)={(16-RL)*(15-GL)*(16-BL)*f(HADR(A)) +(16-RL)*(15-GL)* BL *f(HADR(B)) +(16-RL)* GL *(16-BL)*f(HADR(C)) +(16-RL)* GL * BL *f(HADR(D)) + RL *(15-GL)*(16-BL)*f(HADR(E)) + RL *(15-GL)* BL *f(HADR(F)) + RL * GL *(16-BL)*f(HADR(G)) + RL * GL * BL *f(HADR(H)) }/(16*15*16) ………(式19) なお、(式19)は、前記(式7)に示す「GL」に
「16*GL/15」を代入することにより得ることも
できる。
[2] When RH <15, GH = 15, BH <15 IPL (N) = {(16-RL) * (15-GL) * (16-BL) * f (HADR (A)) + (16-RL) * (15-GL) * BL * f (HADR (B)) + (16-RL) * GL * (16-BL) * f (HADR (C)) + (16-RL) * GL * BL * f (HADR (D)) + RL * (15-GL) * (16-BL) * f (HADR (E)) + RL * (15-GL) * BL * f (HADR (F )) + RL * GL * (16-BL) * f (HADR (G)) + RL * GL * BL * f (HADR (H))} / (16 * 15 * 16) ............ (Equation 19) (Equation 19) can also be obtained by substituting "16 * GL / 15" for "GL" shown in (Equation 7).

【0063】 [3]RH<15,GH<15,BH=15の場合 IPL(N)={(16-RL)*(16-GL)*(15-BL)*f(HADR(A)) +(16-RL)*(16-GL)* BL *f(HADR(B)) +(16-RL)* GL *(15-BL)*f(HADR(C)) +(16-RL)* GL * BL *f(HADR(D)) + RL *(16-GL)*(15-BL)*f(HADR(E)) + RL *(16-GL)* BL *f(HADR(F)) + RL * GL *(15-BL)*f(HADR(G)) + RL * GL * BL *f(HADR(H)) }/(16*16*15) ………(式20) なお、(式20)は、前記(式7)に示す「BL」に
「16*BL/15」を代入することにより得ることも
できる。
[3] When RH <15, GH <15, BH = 15 IPL (N) = {(16-RL) * (16-GL) * (15-BL) * f (HADR (A)) + (16-RL) * (16-GL) * BL * f (HADR (B)) + (16-RL) * GL * (15-BL) * f (HADR (C)) + (16-RL) * GL * BL * f (HADR (D)) + RL * (16-GL) * (15-BL) * f (HADR (E)) + RL * (16-GL) * BL * f (HADR (F )) + RL * GL * (15-BL) * f (HADR (G)) + RL * GL * BL * f (HADR (H))} / (16 * 16 * 15) ……… (Equation 20) (Equation 20) can also be obtained by substituting “16 * BL / 15” for “BL” shown in (Equation 7).

【0064】 [4]RH=15,GH=15,BH<15の場合 IPL(N)={(15-RL)*(15-GL)*(16-BL)*f(HADR(A)) +(15-RL)*(15-GL)* BL *f(HADR(B)) +(15-RL)* GL *(16-BL)*f(HADR(C)) +(15-RL)* GL * BL *f(HADR(D)) + RL *(15-GL)*(16-BL)*f(HADR(E)) + RL *(15-GL)* BL *f(HADR(F)) + RL * GL *(16-BL)*f(HADR(G)) + RL * GL * BL *f(HADR(H)) }/(15*15*16) ………(式21) なお、(式21)は、前記(式7)に示す「RL」に
「16*RL/15」を、「GL」に「16*GL/1
5」をそれぞれ代入することにより得ることもできる。
[4] When RH = 15, GH = 15, BH <15 IPL (N) = {(15-RL) * (15-GL) * (16-BL) * f (HADR (A)) + (15-RL) * (15-GL) * BL * f (HADR (B)) + (15-RL) * GL * (16-BL) * f (HADR (C)) + (15-RL) * GL * BL * f (HADR (D)) + RL * (15-GL) * (16-BL) * f (HADR (E)) + RL * (15-GL) * BL * f (HADR (F )) + RL * GL * (16-BL) * f (HADR (G)) + RL * GL * BL * f (HADR (H))} / (15 * 15 * 16) ……… (Equation 21) In addition, (Equation 21) uses “16 * RL / 15” for “RL” and “16 * GL / 1” for “GL” shown in (Equation 7).
5 "can be obtained.

【0065】 [5]RH<15,GH=15,BH=15の場合 IPL(N)={(16-RL)*(15-GL)*(15-BL)*f(HADR(A)) +(16-RL)*(15-GL)* BL *f(HADR(B)) +(16-RL)* GL *(15-BL)*f(HADR(C)) +(16-RL)* GL * BL *f(HADR(D)) + RL *(15-GL)*(15-BL)*f(HADR(E)) + RL *(15-GL)* BL *f(HADR(F)) + RL * GL *(15-BL)*f(HADR(G)) + RL * GL * BL *f(HADR(H)) }/(16*15*15) ………(式22) なお、(式22)は、前記(式7)に示す「GL」に
「16*GL/15」を、「BL」に「16*BL/1
5」をそれぞれ代入することにより得ることもできる。
[5] When RH <15, GH = 15, BH = 15 IPL (N) = {(16-RL) * (15-GL) * (15-BL) * f (HADR (A)) + (16-RL) * (15-GL) * BL * f (HADR (B)) + (16-RL) * GL * (15-BL) * f (HADR (C)) + (16-RL) * GL * BL * f (HADR (D)) + RL * (15-GL) * (15-BL) * f (HADR (E)) + RL * (15-GL) * BL * f (HADR (F )) + RL * GL * (15-BL) * f (HADR (G)) + RL * GL * BL * f (HADR (H))} / (16 * 15 * 15) ............ (Equation 22) In addition, (Equation 22) uses “16 * GL / 15” for “GL” and “16 * BL / 1” for “BL” shown in (Equation 7).
5 "can be obtained.

【0066】 [6]RH=15,GH<15,BH=15の場合 IPL(N)={(15-RL)*(16-GL)*(15-BL)*f(HADR(A)) +(15-RL)*(16-GL)* BL *f(HADR(B)) +(15-RL)* GL *(15-BL)*f(HADR(C)) +(15-RL)* GL * BL *f(HADR(D)) + RL *(16-GL)*(15-BL)*f(HADR(E)) + RL *(16-GL)* BL *f(HADR(F)) + RL * GL *(15-BL)*f(HADR(G)) + RL * GL * BL *f(HADR(H)) }/(15*16*15) ………(式23) なお、(式23)は、(式7)に示す「RL」に「16
*RL/15」を、「BL」に「16*BL/15」を
それぞれ代入することにより得ることもできる。
[6] When RH = 15, GH <15, BH = 15 IPL (N) = {(15-RL) * (16-GL) * (15-BL) * f (HADR (A)) + (15-RL) * (16-GL) * BL * f (HADR (B)) + (15-RL) * GL * (15-BL) * f (HADR (C)) + (15-RL) * GL * BL * f (HADR (D)) + RL * (16-GL) * (15-BL) * f (HADR (E)) + RL * (16-GL) * BL * f (HADR (F )) + RL * GL * (15-BL) * f (HADR (G)) + RL * GL * BL * f (HADR (H))} / (15 * 16 * 15) ……… (Equation 23) (Equation 23) is obtained by adding “16” to “RL” shown in (Equation 7).
* RL / 15 "can also be obtained by substituting" 16 * BL / 15 "for" BL ".

【0067】 [7]RH=15,GH=15,BH=15の場合 IPL(N)={(15-RL)*(15-GL)*(15-BL)*f(HADR(A)) +(15-RL)*(15-GL)* BL *f(HADR(B)) +(15-RL)* GL *(15-BL)*f(HADR(C)) +(15-RL)* GL * BL *f(HADR(D)) + RL *(15-GL)*(15-BL)*f(HADR(E)) + RL *(15-GL)* BL *f(HADR(F)) + RL * GL *(15-BL)*f(HADR(G)) + RL * GL * BL *f(HADR(H)) }/(15*15*15) ………(式24) なお、(式24)は、前記(式7)に示す「RL」に
「16*RL/15」を、「GL」に「16*GL/1
5」を、「BL」に「16*BL/15」をそれぞれ代
入することにより得ることもできる。
[7] When RH = 15, GH = 15, BH = 15 IPL (N) = {(15-RL) * (15-GL) * (15-BL) * f (HADR (A)) + (15-RL) * (15-GL) * BL * f (HADR (B)) + (15-RL) * GL * (15-BL) * f (HADR (C)) + (15-RL) * GL * BL * f (HADR (D)) + RL * (15-GL) * (15-BL) * f (HADR (E)) + RL * (15-GL) * BL * f (HADR (F )) + RL * GL * (15-BL) * f (HADR (G)) + RL * GL * BL * f (HADR (H))} / (15 * 15 * 15) ............ (Equation 24) In addition, (Equation 24) indicates that “16 * RL / 15” is used for “RL” and “16 * GL / 1” is used for “GL” shown in (Equation 7).
"5" can also be obtained by substituting "16 * BL / 15" for "BL".

【0068】また、(式18)〜(式24)に示すf
(HADR(N))(但し、N=A〜H)は、前記(式
2−1)に基づき、インクリメントによって得られる
「C,M,Y,K」成分における格子点「A〜H」の格
子点データである。従って、図10の例外処理に該当す
る場合を含む重み係数のLUTに示すように、[1]〜
[7]に示す「7通り」の例外処理に従って、「RL,
GL,BL」にそれぞれ「16*RL/15,16*G
L/15,16*BL/15」を代入した重み係数W
(w1〜w8)を記憶させると、(式18)〜(式2
4)の演算を行うことなく、前記(式7)から「C,
M,Y,K」成分の補間値IPL(N)(但し、N=
C,M,Y,K)を演算することができる。
Further, f shown in (Equation 18) to (Equation 24)
(HADR (N)) (where N = A to H) is based on the above (Equation 2-1), and is based on the grid points “A to H” in the “C, M, Y, K” components obtained by the increment. This is grid point data. Therefore, as shown in the LUT of the weight coefficient including the case corresponding to the exception processing in FIG.
According to the “seven ways” exception processing shown in [7], “RL,
"GL, BL" respectively "16 * RL / 15, 16 * G
L / 15, 16 * BL / 15 "
When (w1 to w8) are stored, (Equation 18) to (Equation 2)
Without performing the operation of 4), “C,
M, Y, K ”component interpolation value IPL (N) (where N =
C, M, Y, K).

【0069】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、図11に示すフロ
ーチャートを用いて説明する。なお、この動作は、RO
M12に記憶されたプログラムに基づき、MPU11の
制御により実行される。
Next, in the facsimile machine 1, when the reading unit 14 outputs the RGB signal of the conversion point P,
The operation of the color conversion process for pixels will be described with reference to the flowchart shown in FIG. Note that this operation is performed by the RO
The program is executed under the control of the MPU 11 based on the program stored in the M12.

【0070】図11に示すステップS1においては、変
換点PのRGB信号から各下位4〔bit〕、すなわち
(RL,GL,BL)が抽出される。ステップS2にお
いては、前記ステップS1において抽出された(RL,
GL,BL)に基づいて、重み係数w1の参照アドレス
LADR(w1)が算出される。具体的には、前記(式
4−1)に基づいて、重み係数w1の参照アドレスLA
DR(w1)が算出される。
In step S1 shown in FIG. 11, the lower 4 bits, ie, (RL, GL, BL), are extracted from the RGB signals at the conversion point P. In step S2, (RL,
GL, BL), the reference address LADR (w1) of the weight coefficient w1 is calculated. Specifically, based on the above (Equation 4-1), the reference address LA of the weight coefficient w1
DR (w1) is calculated.

【0071】ステップS3においては、変換点Pを取り
囲む立方体における重み係数W(w1〜w8)がROM
12から順次読み出される。具体的には、前記ステップ
S2において算出された重み係数w1の参照アドレスL
ADR(w1)から順次インクリメントされて、すべて
の重み係数W(w1〜w8)が、前記図7に示す重み係
数W(w1〜w8)のLUTから順次読み出される。な
お、ステップS2及びS3の処理に代えて、前記ステッ
プS1において抽出された(RL,GL,BL)に基づ
いて、重み係数W(w1〜w8)を算出しても良い。具
体的には、前記(式6−1)〜(式6−8)に基づい
て、重み係数W(w1〜w8)を算出しても良い。
In step S3, the weighting factors W (w1 to w8) in the cube surrounding the transformation point P are stored in the ROM.
12 are sequentially read. Specifically, the reference address L of the weight coefficient w1 calculated in step S2
The weight coefficients W (w1 to w8) are sequentially incremented from the ADR (w1), and are sequentially read from the LUT of the weight coefficients W (w1 to w8) shown in FIG. Note that, instead of the processing in steps S2 and S3, the weighting coefficients W (w1 to w8) may be calculated based on (RL, GL, BL) extracted in step S1. Specifically, the weighting factors W (w1 to w8) may be calculated based on the above (Equation 6-1) to (Equation 6-8).

【0072】ステップS4においては、変換点PのRG
B信号から各上位4〔bit〕、すなわち(RH,G
H,BH)が抽出される。ステップS5においては、前
記ステップS4において抽出された(RH,GH,B
H)に基づいて、「C」成分における格子点「A」の参
照アドレスHADR(A)が算出される。具体的には、
前記(式2−1)に基づいて、「C」成分における格子
点「A」の参照アドレスHADR(A)が算出される。
In step S4, the RG of the conversion point P
The upper 4 bits from the B signal, that is, (RH, G
H, BH) are extracted. In step S5, (RH, GH, B
Based on H), the reference address HADR (A) of the grid point “A” in the “C” component is calculated. In particular,
Based on (Equation 2-1), the reference address HADR (A) of the grid point “A” in the “C” component is calculated.

【0073】ステップS6においては、変換点Pを取り
囲む立方体における格子点「A〜H」の格子点データが
ROM12から順次読み出される。具体的には、前記ス
テップS5において算出された「C」成分における格子
点「A」の参照アドレスHADR(A)から順次インク
リメントされて、「C」成分における格子点「A〜H」
の格子点データが、前記図5に示す格子点データのLU
Tから順次読み出される。
In step S 6, the grid point data of the grid points “A to H” in the cube surrounding the conversion point P are sequentially read from the ROM 12. Specifically, the grid points “A to H” in the “C” component are sequentially incremented from the reference address HADR (A) of the grid point “A” in the “C” component calculated in step S5.
Is the LU of the grid point data shown in FIG.
It is sequentially read from T.

【0074】ステップS7においては、変換点Pにおけ
る補間演算が行われる。具体的には、前記ステップS3
において読み出された重み係数W(w1〜w8)と、前
記ステップS6において読み出された「C」成分におけ
る格子点「A〜H」の格子点データとに基づいて、前記
(式5)により、変換点Pにおける補間演算が行われ
る。
In step S7, an interpolation operation at the conversion point P is performed. Specifically, step S3
Based on the weighting factors W (w1 to w8) read in step S6 and the grid point data of the grid points “A to H” in the “C” component read in step S6, , An interpolation operation at the conversion point P is performed.

【0075】ステップS8においては、次成分があるか
否かが判断される。具体的には、「C」成分の補間演算
を行った場合には「M」成分、「M」成分の補間演算を
行った場合には「Y」成分、「Y」成分の補間演算を行
った場合には「K」成分があるか否かが判断される。そ
して、次成分がある場合には、ステップS9に移行す
る。一方、次成分がない場合、つまり全ての「C,M,
Y,K」成分について、補間演算が終了した場合には、
この処理を終了する。
In step S8, it is determined whether there is a next component. Specifically, the interpolation operation of the “M” component is performed when the interpolation operation of the “C” component is performed, and the interpolation operation of the “Y” component and the “Y” component is performed when the interpolation operation of the “M” component is performed. In this case, it is determined whether or not there is a “K” component. If there is a next component, the process proceeds to step S9. On the other hand, when there is no next component, that is, all “C, M,
When the interpolation calculation is completed for the “Y, K” components,
This processing ends.

【0076】ステップS9においては、次成分における
格子点「A」の参照アドレスが算出される。具体的に
は、前記図5に示したように、「C,M,Y,K」成分
に対して格子点「A〜H」の格子点データが記憶されて
いるため、前記ステップS5において算出された「C」
成分における格子点「A」の参照アドレスHADR
(A)を順次インクリメントするだけである。そして、
ステップS6〜ステップS9が繰り返し実行されて、変
換点Pにおける「M,Y,K」の補間演算が行われる。
すなわち、ステップS6〜ステップS9が繰り返し実行
されて、変換点Pにおける「C,M,Y,K」成分の補
間演算が行われ、変換点PのRGB信号がCMYK信号
に変換される。なお、一般的に、変換する画素は多数あ
るので、読み取ったすべての画素に対して、この処理が
繰り返し実行される。
In step S9, the reference address of the grid point "A" in the next component is calculated. More specifically, as shown in FIG. 5, since the grid point data of the grid points “A to H” is stored for the “C, M, Y, K” components, the calculation is performed in step S5. Done "C"
Address HADR of grid point "A" in the component
Only (A) is sequentially incremented. And
Steps S6 to S9 are repeatedly executed, and the interpolation calculation of “M, Y, K” at the conversion point P is performed.
That is, Steps S6 to S9 are repeatedly executed, the interpolation calculation of the “C, M, Y, K” components at the conversion point P is performed, and the RGB signals at the conversion point P are converted into CMYK signals. In general, since there are a large number of pixels to be converted, this process is repeatedly performed on all the read pixels.

【0077】以上、詳述したように第1の実施形態によ
れば、次のような作用、効果を得ることができる。 (1)図5に示すように、(RH,GH,BH)に対し
て「C,M,Y,K」成分の順に、その「C,M,Y,
K」成分に対して格子点「A〜H」の順に格子点データ
がROM12に記憶されている。換言すれば、立方体に
おける格子点「A〜H」の格子点データが連続して記憶
されている。このため、前記(式2−1)に基づき、変
換点Pを取り囲む立方体における格子点「A」の参照ア
ドレスHADR(A)が分かれば、順次インクリメント
するだけで、他の格子点「B〜H」の格子点データを得
ることができる。その結果、立方体における格子点「A
〜H」の格子点データを迅速に得ることができる。
As described above, according to the first embodiment, the following operations and effects can be obtained. (1) As shown in FIG. 5, the “C, M, Y, K” components of (RH, GH, BH) are arranged in the order of “C, M, Y, K”.
Grid point data is stored in the ROM 12 in the order of grid points "A to H" for the "K" component. In other words, the grid point data of the grid points “A to H” in the cube are continuously stored. For this reason, if the reference address HADR (A) of the grid point “A” in the cube surrounding the conversion point P is known based on the above (Equation 2-1), the other grid points “B to H” can be simply incremented sequentially. Can be obtained. As a result, the grid point “A” in the cube
HH ”can be obtained quickly.

【0078】また、図7に示すように、(RL,GL,
BL)に対して重み係数Wがw1〜w8の順に、ROM
12に記憶されている。このため、前記(式4−1)に
基づき、重み係数w1の参照アドレスLADR(w1)
が分かれば、順次インクリメントするだけで、他の重み
係数w2〜w8も得ることができる。その結果、重み係
数W(w1〜w8)も迅速に得ることができる。従っ
て、RGB信号からCMYK信号に色変換処理する場合
において、ソフトウェアを用いても高速に色変換処理を
行うことができる。
As shown in FIG. 7, (RL, GL,
BL) in the order of w1 to w8,
12 is stored. Therefore, based on the above (Equation 4-1), the reference address LADR (w1) of the weight coefficient w1
, Other weighting factors w2 to w8 can be obtained only by sequentially incrementing. As a result, the weight coefficient W (w1 to w8) can also be obtained quickly. Therefore, when performing color conversion processing from RGB signals to CMYK signals, color conversion processing can be performed at high speed even by using software.

【0079】(2)色変換処理をソフトウェアを用いて
処理しているため、専用のLSIは不要である。しか
も、ハードウェアを用いて構成していないため、LSI
の小型化やコストダウンを容易に図ることができる。加
えて、専用の回路が不要となるため、種々の補間演算法
に対応することができる。
(2) Since the color conversion processing is performed using software, a dedicated LSI is not required. Moreover, since it is not configured using hardware, LSI
It is possible to easily reduce the size and cost of the device. In addition, since a dedicated circuit is not required, various interpolation calculation methods can be supported.

【0080】(3)図11に示すフローチャートにおい
て、先ず重み係数W(w1〜w8)を読み出している。
これは、重み係数W(w1〜w8)は、「C,M,Y,
K」成分に無関係で同じだからである。このため、補間
演算処理を迅速に行うことができる。従って、色変換処
理を高速に行うことができる。
(3) In the flowchart shown in FIG. 11, first, the weight coefficients W (w1 to w8) are read.
This is because the weight coefficients W (w1 to w8) are “C, M, Y,
This is because it is the same regardless of the “K” component. Therefore, the interpolation calculation processing can be performed quickly. Therefore, the color conversion processing can be performed at high speed.

【0081】(4)前記(式5)からも明らかなよう
に、補間演算処理において、積和演算が8〔回〕行われ
ている。しかしながら、MPUによっては、積和演算を
繰り返して行う命令をより高速に処理するものがある。
従って、積和演算を繰り返して行う命令を持つMPUを
用いれば、色変換処理を高速に行うことができる。
(4) As is apparent from the above (Equation 5), the product-sum operation is performed eight times in the interpolation operation process. However, some MPUs process instructions for repeatedly performing a product-sum operation at a higher speed.
Therefore, if an MPU having an instruction to repeatedly perform a product-sum operation is used, color conversion processing can be performed at high speed.

【0082】(5)この第1の実施形態においては、変
換点Pが例外処理に該当する場合であっても、通常通り
の重み係数Wを利用して色変換処理を行わせている。こ
のため、変換点Pが例外処理に該当する場合は、色変換
処理後の値に多少の誤差が含まれる。しかしながら、変
換点Pが例外処理に該当する場合は極稀である。従っ
て、色変換処理をより一層高速にすることができる。し
かも、変換点Pが例外処理に該当することは極稀である
ため、色変換処理を行っている画像全体において誤差が
大きく影響することはない。
(5) In the first embodiment, even when the conversion point P corresponds to the exception processing, the color conversion processing is performed using the usual weight coefficient W. For this reason, when the conversion point P corresponds to the exception processing, the value after the color conversion processing includes some error. However, it is extremely rare that the conversion point P corresponds to exception processing. Therefore, the color conversion processing can be further speeded up. Moreover, since the conversion point P rarely corresponds to the exception processing, the error does not greatly affect the entire image on which the color conversion processing is performed.

【0083】[第2の実施形態]…立方体補間(8点補
間)の場合 この第2の実施形態において、前記第1の実施形態と同
様な構成については、前記第1の実施形態と同一の符号
を付して説明を省略する。この第2の実施形態は、前記
第1の実施形態において、例外処理に該当する場合を考
慮したものである。従って、この第2の実施形態におい
て、ROM12は、図5に示す格子点データのLUT、
図9に示す変換点Pが例外処理に該当するか否かを判断
するためのLUT及び図10に示す例外処理に該当する
場合を含む重み係数W(w1〜w8)のLUTを記憶す
る。
[Second Embodiment] Case of Cube Interpolation (8-Point Interpolation) In the second embodiment, the same configuration as the first embodiment is the same as that of the first embodiment. The description is omitted by attaching reference numerals. In the second embodiment, a case corresponding to exception processing in the first embodiment is considered. Therefore, in the second embodiment, the ROM 12 stores the LUT of the grid point data shown in FIG.
The LUT for determining whether the conversion point P shown in FIG. 9 corresponds to the exception processing and the LUT of the weight coefficient W (w1 to w8) including the case corresponding to the exception processing shown in FIG. 10 are stored.

【0084】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、図12及び図13
に示すフローチャートを用いて説明する。なお、この動
作は、ROM12に記憶されたプログラムに基づき、M
PU11の制御により実行される。
Next, in the facsimile machine 1, when the reading unit 14 outputs the RGB signal of the conversion point P,
FIGS. 12 and 13 show the operation of the color conversion processing for the pixels.
This will be described with reference to the flowchart shown in FIG. This operation is performed based on a program stored in the ROM 12 based on M
It is executed under the control of the PU 11.

【0085】図12に示すステップS11においては、
変換点PのRGB信号から各上位4〔bit〕、すなわ
ち(RH,GH,BH)が抽出される。ステップS12
においては、前記ステップS11において抽出された
(RH,GH,BH)に基づいて、変換点Pが例外処理
に該当するか否かが判断される。具体的には、前記(式
15)に基づいて、例外処理に該当するか否かを示す
「Z」の参照アドレスZHADR(Z)が算出される。
そして、この参照アドレスZHADR(Z)に基づい
て、「Z」の値が抽出される。具体的には、図9に示す
変換点Pが例外処理に該当するか否かを判断するための
LUTに基づいて、変換点Pが例外処理に該当するか否
かが判断される。つまり、例外処理に該当するか否かを
示す「Z」の値が「1〜7」の場合は、例外処理に該当
すると判断して、図13に示すステップS31に移行す
る。一方、例外処理に該当するか否かを示す「Z」の値
が「0」の場合は、例外処理に該当しないと判断して、
ステップS13に移行する。なお、前記(式15−1)
に基づいて、例外処理に該当するか否かを判断するよう
にしても良い。
In step S11 shown in FIG.
The upper 4 bits, that is, (RH, GH, BH) are extracted from the RGB signal at the conversion point P. Step S12
In, it is determined based on (RH, GH, BH) extracted in step S11 whether or not the conversion point P corresponds to exception processing. Specifically, the reference address ZHADR (Z) of “Z” indicating whether or not the exception processing is performed is calculated based on the above (Equation 15).
Then, the value of “Z” is extracted based on the reference address ZHADR (Z). Specifically, whether or not the conversion point P corresponds to the exception processing is determined based on the LUT for determining whether or not the conversion point P corresponds to the exception processing. That is, when the value of “Z” indicating whether or not the exception processing is performed is “1 to 7”, it is determined that the processing corresponds to the exception processing, and the process proceeds to step S31 illustrated in FIG. On the other hand, when the value of “Z” indicating whether or not the exception processing is performed is “0”, it is determined that the processing does not correspond to the exception processing, and
Move to step S13. Note that the above (Equation 15-1)
May be determined on the basis of the exception processing.

【0086】ステップS13においては、変換点PのR
GB信号から各下位4〔bit〕、すなわち(RL,G
L,BL)が抽出される。ステップS14においては、
前記ステップS13において抽出された(RL,GL,
BL)に基づいて、例外処理に該当する場合を含む重み
係数w1の参照アドレスELADR(w1)が算出され
る。具体的には、前記(式16−1)に基づいて、重み
係数w1の参照アドレスELADR(w1)が算出され
る。
In step S13, the R of the conversion point P
The lower 4 bits from the GB signal, that is, (RL, G
L, BL) are extracted. In step S14,
(RL, GL,
BL), the reference address ELADR (w1) of the weight coefficient w1 including the case corresponding to the exception processing is calculated. Specifically, the reference address ELADR (w1) of the weight coefficient w1 is calculated based on the above (Equation 16-1).

【0087】ステップS15においては、変換点Pを取
り囲む立方体における重み係数W(w1〜w8)がRO
M12から順次読み出される。具体的には、前記ステッ
プS14において算出された重み係数w1の参照アドレ
スELADR(w1)から順次インクリメントされて、
すべての重み係数W(w1〜w8)が、前記図10に示
す例外処理に該当する場合を含む重み係数W(w1〜w
8)のLUTから順次読み出される。より具体的には、
前記図10に示す例外処理に該当する場合を含む重み係
数W(w1〜w8)のLUTにおいて、前記図12に示
すステップS12の処理における前記(式15)に基づ
いて算出された「Z(=0)」の値に応じた重み係数W
(w1〜w8)が順次読み出される。
In step S15, the weight coefficient W (w1 to w8) in the cube surrounding the transformation point P
They are sequentially read from M12. Specifically, the weight coefficient w1 calculated in step S14 is sequentially incremented from the reference address ELADR (w1),
All the weighting factors W (w1 to w8) include the weighting factors W (w1 to w8) including the case where the exception processing shown in FIG.
8) are sequentially read from the LUT. More specifically,
In the LUT of the weight coefficient W (w1 to w8) including the case corresponding to the exception processing shown in FIG. 10, “Z (=) calculated based on the (Equation 15) in the processing of step S12 shown in FIG. 0) ", a weighting coefficient W corresponding to the value of"
(W1 to w8) are sequentially read.

【0088】なお、ステップS14及びS15の処理に
代えて、前記ステップS13において抽出された(R
L,GL,BL)に基づいて、重み係数W(w1〜w
8)を算出しても良い。具体的には、前記(式6−1)
〜(式6−8)に基づいて、重み係数W(w1〜w8)
を算出しても良い。
It should be noted that, instead of the processing in steps S14 and S15, the (R
L, GL, BL) based on the weighting factors W (w1 to w
8) may be calculated. Specifically, the above (Equation 6-1)
Based on (Equation 6-8), weighting factors W (w1 to w8)
May be calculated.

【0089】ステップS16においては、変換点PのR
GB信号から各上位4〔bit〕、すなわち(RH,G
H,BH)が抽出される。なお、この上位4〔bit〕
の抽出処理は、前記ステップS11と同様な処理である
ため、前記ステップS11において抽出した上位4〔b
it〕をそのまま用いても良い。
In step S16, the conversion point P
The upper 4 bits from the GB signal, that is, (RH, G
H, BH) are extracted. Note that the upper 4 bits
Is the same processing as in step S11, so the top 4 [b] extracted in step S11
it] may be used as it is.

【0090】ステップS17においては、前記ステップ
S16において抽出された(RH,GH,BH)に基づ
いて、「C」成分における格子点「A」の参照アドレス
HADR(A)が算出される。具体的には、前記(式2
−1)に基づいて、「C」成分における格子点「A」の
参照アドレスHADR(A)が算出される。
In step S17, the reference address HADR (A) of the grid point "A" in the "C" component is calculated based on (RH, GH, BH) extracted in step S16. Specifically, the above (Equation 2)
Based on -1), the reference address HADR (A) of the grid point “A” in the “C” component is calculated.

【0091】なお、「C」成分における格子点「A」の
参照アドレスHADR(A)は、前記ステップS12に
おいて算出された「Z」の参照アドレスZHADR
(Z)、すなわち前記(式15)に示した例外処理に該
当するか否かを示す「Z」の参照アドレスZHADR
(Z)に「32」を乗算して、「C」成分における格子
点「A」の参照アドレスHADR(A)を算出しても良
い。
The reference address HADR (A) of the grid point “A” in the “C” component is the reference address ZHADR of “Z” calculated in step S12.
(Z), that is, a reference address ZHADR of “Z” indicating whether or not the exception processing shown in (Equation 15) is applicable.
(Z) may be multiplied by “32” to calculate the reference address HADR (A) of the grid point “A” in the “C” component.

【0092】ステップS18においては、変換点Pを取
り囲む立方体における格子点「A〜H」の格子点データ
がROM12から順次読み出される。具体的には、前記
ステップS17において算出された「C」成分における
格子点「A」の参照アドレスHADR(A)から順次イ
ンクリメントされて、「C」成分における格子点「A〜
H」の格子点データが、前記図5に示す格子点データの
LUTから順次読み出される。
In step S 18, the grid point data of the grid points “A to H” in the cube surrounding the conversion point P are sequentially read from the ROM 12. Specifically, the grid point “A” is incremented sequentially from the reference address HADR (A) of the grid point “A” in the “C” component calculated in step S17.
The grid point data “H” is sequentially read from the grid point data LUT shown in FIG.

【0093】ステップS19においては、変換点Pにお
ける補間演算が行われる。具体的には、前記ステップS
15において読み出された重み係数W(w1〜w8)
と、前記ステップS18において読み出された「C」成
分における格子点「A〜H」の格子点データとに基づい
て、前記(式5)により、変換点Pにおける補間演算が
行われる。
In step S19, an interpolation operation at the conversion point P is performed. Specifically, the step S
Weighting coefficient W (w1 to w8) read out at 15
Based on the grid point data of the grid points “A to H” of the “C” component read in step S18, the interpolation calculation at the conversion point P is performed by (Equation 5).

【0094】ステップS20においては、次成分がある
か否かが判断される。具体的には、「C」成分の補間演
算を行った場合には「M」成分、「M」成分の補間演算
を行った場合には「Y」成分、「Y」成分の補間演算を
行った場合には「K」成分があるか否かが判断される。
そして、次成分がある場合には、ステップS21に移行
する。一方、次成分がない場合、すなわち全ての「C,
M,Y,K」成分について、補間演算が終了した場合に
は、この処理を終了する。
In step S20, it is determined whether there is a next component. Specifically, the interpolation operation of the “M” component is performed when the interpolation operation of the “C” component is performed, and the interpolation operation of the “Y” component and the “Y” component is performed when the interpolation operation of the “M” component is performed. In this case, it is determined whether or not there is a “K” component.
If there is a next component, the process proceeds to step S21. On the other hand, when there is no next component, that is, when all “C,
When the interpolation calculation has been completed for the "M, Y, K" components, this processing ends.

【0095】ステップS21においては、次成分におけ
る格子点「A」の参照アドレスが算出される。具体的に
は、前記図5に示したように、「C,M,Y,K」成分
に対して格子点「A〜H」の格子点データが記憶されて
いるため、前記ステップS7において算出された「C」
成分における格子点「A」の参照アドレスHADR
(A)を順次インクリメントするだけである。そして、
ステップS18〜ステップS21が繰り返し実行され
て、変換点Pにおける「M,Y,K」の補間演算が行わ
れる。すなわち、ステップS18〜ステップS21が繰
り返し実行されて、変換点Pにおける「C,M,Y,
K」成分の補間演算が行われ、変換点PのRGB信号が
CMYK信号に変換される。
In step S21, the reference address of the grid point "A" in the next component is calculated. More specifically, as shown in FIG. 5, since the grid point data of the grid points “A to H” is stored for the “C, M, Y, K” components, the calculation is performed in step S7. Done "C"
Address HADR of grid point "A" in the component
Only (A) is sequentially incremented. And
Steps S <b> 18 to S <b> 21 are repeatedly executed, and the interpolation calculation of “M, Y, K” at the conversion point P is performed. That is, steps S18 to S21 are repeatedly executed, and “C, M, Y,
The interpolation operation of the “K” component is performed, and the RGB signals at the conversion point P are converted into CMYK signals.

【0096】図13に示すステップS31においては、
変換点PのRGB信号から各下位4〔bit〕、すなわ
ち(RL,GL,BL)が抽出される。ステップS32
においては、前記ステップS31において抽出された
(RL,GL,BL)に基づいて、例外処理に該当する
場合を含む重み係数w1の参照アドレスELADR(w
1)が算出される。具体的には、前記(式16−1)に
基づいて、重み係数w1の参照アドレスELADR(w
1)が算出される。
In step S31 shown in FIG.
The lower 4 bits, that is, (RL, GL, BL), are extracted from the RGB signal at the conversion point P. Step S32
In, based on the (RL, GL, BL) extracted in step S31, the reference address ELADR (w
1) is calculated. Specifically, based on (Equation 16-1), the reference address ELADR (w
1) is calculated.

【0097】ステップS33においては、変換点Pを取
り囲む立方体における重み係数W(w1〜w8)がRO
M12から順次読み出される。具体的には、前記ステッ
プS32において算出された重み係数w1の参照アドレ
スELADR(w1)から順次インクリメントされて、
すべての重み係数W(w1〜w8)が、前記図10に示
す例外処理に該当する場合を含む重み係数W(w1〜w
8)のLUTから順次読み出される。より具体的には、
前記図10に示す例外処理に該当する場合を含む重み係
数W(w1〜w8)のLUTにおいて、前記図12に示
すステップS12の処理における前記(式15)に基づ
いて算出された「Z(=1〜7)」の値に応じた重み係
数W(w1〜w8)が順次読み出される。
In step S33, the weight coefficient W (w1 to w8) in the cube surrounding the transformation point P
They are sequentially read from M12. Specifically, the weight coefficient w1 calculated in step S32 is sequentially incremented from the reference address ELADR (w1),
All the weighting factors W (w1 to w8) include the weighting factors W (w1 to w8) including the case where the exception processing shown in FIG.
8) are sequentially read from the LUT. More specifically,
In the LUT of the weight coefficient W (w1 to w8) including the case corresponding to the exception processing shown in FIG. 10, “Z (=) calculated based on the (Equation 15) in the processing of step S12 shown in FIG. 1 to 7) "are sequentially read out.

【0098】なお、ステップS32及びS33の処理に
代えて、前記図12に示すステップS12の処理におい
て算出された例外処理に該当するか否かを示す値「Z」
に応じて、重み係数W(w1〜w8)を算出しても良
い。具体的には、例外処理に該当するか否かを示す値
「Z」が「1〜7」の場合に応じて、換言すれば(R
H,GH,BH)に応じて、前記(式8−1〜8)〜
(式14−1〜8)により、例外処理に該当する場合の
重み係数W(w1〜w8)を算出しても良い。
Instead of the processing of steps S32 and S33, a value "Z" indicating whether or not the exception processing calculated in the processing of step S12 shown in FIG.
, The weighting coefficient W (w1 to w8) may be calculated. Specifically, according to the case where the value “Z” indicating whether or not the exception processing is applicable is “1 to 7”, in other words, (R
H, GH, BH) according to (Equations 8-1 to 8) to
The weighting factors W (w1 to w8) in the case of exception processing may be calculated by (Equations 14-1 to 8).

【0099】ステップS34においては、変換点PのR
GB信号から各上位4〔bit〕、すなわち(RH,G
H,BH)が抽出される。なお、この上位4〔bit〕
の抽出処理は、前記図12に示すステップS11と同様
な処理であるため、前記図12に示すステップS11に
おいて抽出した上位4〔bit〕をそのまま用いても良
い。
In step S34, R of conversion point P
The upper 4 bits from the GB signal, that is, (RH, G
H, BH) are extracted. Note that the upper 4 bits
Is the same as step S11 shown in FIG. 12, and the upper 4 bits extracted in step S11 shown in FIG. 12 may be used as it is.

【0100】ステップS35においては、前記ステップ
S34において抽出された(RH,GH,BH)に基づ
いて、「C」成分における格子点「A」の参照アドレス
HADR(A)が算出される。具体的には、前記(式2
−1)に基づいて、「C」成分における格子点「A」の
参照アドレスHADR(A)が算出される。
In step S35, the reference address HADR (A) of the grid point "A" in the "C" component is calculated based on (RH, GH, BH) extracted in step S34. Specifically, the above (Equation 2)
Based on -1), the reference address HADR (A) of the grid point “A” in the “C” component is calculated.

【0101】なお、「C」成分における格子点「A」の
参照アドレスHADR(A)は、前記ステップS12に
おいて算出された「Z」の参照アドレスZHADR
(Z)、すなわち前記(式15)に示した例外処理に該
当するか否かを示す「Z」の参照アドレスZHADR
(Z)に「32」を乗算して、「C」成分における格子
点「A」の参照アドレスHADR(A)を算出しても良
い。
The reference address HADR (A) of the grid point “A” in the “C” component is the reference address ZHADR of “Z” calculated in step S12.
(Z), that is, a reference address ZHADR of “Z” indicating whether or not the exception processing shown in (Equation 15) is applicable.
(Z) may be multiplied by “32” to calculate the reference address HADR (A) of the grid point “A” in the “C” component.

【0102】ステップS36においては、変換点Pを取
り囲む立方体における格子点「A〜H」の格子点データ
がROM12から順次読み出される。具体的には、前記
ステップS35において算出された「C」成分における
格子点「A」の参照アドレスHADR(A)から順次イ
ンクリメントされて、「C」成分における格子点「A〜
H」の格子点データが、前記図5に示す格子点データの
LUTから順次読み出される。
In step S 36, the grid point data of the grid points “A to H” in the cube surrounding the conversion point P are sequentially read from the ROM 12. Specifically, the grid point “A” of the “C” component is sequentially incremented from the reference address HADR (A) of the grid point “A” in the “C” component calculated in step S35.
The grid point data “H” is sequentially read from the grid point data LUT shown in FIG.

【0103】ステップS37においては、変換点Pにお
ける補間演算が行われる。具体的には、前記ステップS
33において読み出された重み係数W(w1〜w8)
と、前記ステップS36において読み出された「C」成
分における格子点「A〜H」の格子点データとに基づい
て、前記(式5)により、変換点Pにおける補間演算が
行われる。
In step S37, an interpolation operation at the conversion point P is performed. Specifically, the step S
Weighting coefficient W (w1 to w8) read out at 33
Based on the grid point data of the grid points “A to H” in the “C” component read in step S36, the interpolation calculation at the conversion point P is performed by (Equation 5).

【0104】ステップS38においては、次成分がある
か否かが判断される。具体的には、「C」成分の補間演
算を行った場合には「M」成分、「M」成分の補間演算
を行った場合には「Y」成分、「Y」成分の補間演算を
行った場合には「K」成分があるか否かが判断される。
そして、次成分がある場合には、ステップS39に移行
する。一方、次成分がない場合、すなわち全ての「C,
M,Y,K」成分について、補間演算が終了した場合に
は、この処理を終了する。
In step S38, it is determined whether there is a next component. Specifically, the interpolation operation of the “M” component is performed when the interpolation operation of the “C” component is performed, and the interpolation operation of the “Y” component and the “Y” component is performed when the interpolation operation of the “M” component is performed. In this case, it is determined whether or not there is a “K” component.
If there is a next component, the process proceeds to step S39. On the other hand, when there is no next component, that is, when all “C,
When the interpolation calculation has been completed for the "M, Y, K" components, this processing ends.

【0105】ステップS39においては、次成分におけ
る格子点「A」の参照アドレスが算出される。具体的に
は、前記図5に示したように、「C,M,Y,K」成分
に対して格子点「A〜H」の格子点データが記憶されて
いるため、前記ステップS35において算出された
「C」成分における格子点「A」の参照アドレスHAD
R(A)を順次インクリメントするだけである。そし
て、ステップS36〜ステップS39が繰り返し実行さ
れて、変換点Pにおける「M,Y,K」の補間演算が行
われる。すなわち、ステップS36〜ステップS39が
繰り返し実行されて、変換点Pにおける「C,M,Y,
K」成分の補間演算が行われ、変換点PのRGB信号が
CMYK信号に変換される。なお、一般的に、変換する
画素は多数あるので、読み取ったすべての画素に対し
て、この処理が繰り返し実行される。
In step S39, the reference address of grid point "A" in the next component is calculated. Specifically, as shown in FIG. 5, since the grid point data of the grid points “A to H” is stored for the “C, M, Y, K” components, the calculation is performed in the step S35. Address HAD of the grid point "A" in the calculated "C" component
It simply increments R (A) sequentially. Then, steps S36 to S39 are repeatedly executed, and the interpolation calculation of “M, Y, K” at the conversion point P is performed. That is, steps S36 to S39 are repeatedly executed, and “C, M, Y,
The interpolation operation of the “K” component is performed, and the RGB signals at the conversion point P are converted into CMYK signals. In general, since there are a large number of pixels to be converted, this process is repeatedly performed on all the read pixels.

【0106】以上、詳述したように第2の実施形態によ
れば、前記第1の実施形態の作用、効果に加えて、次の
ような作用、効果を得ることができる。 (1)この第2の実施形態においては、図10に示すよ
うに、例外処理に該当する場合を含む重み係数Wがw1
〜w8の順で、ROM12に記憶されている。このた
め、前記(式16−1)に基づいて、例外処理に該当す
る場合を含む重み係数w1の参照アドレスELADR
(w1)が分かれば、順次インクリメントするだけで、
重み係数w2〜w8も得ることができる。従って、変換
点Pが例外処理に該当する場合であっても、ソフトウェ
アを用いても高速に色変換処理を行うことができる。し
かも、変換点Pが例外処理に該当する場合であっても、
誤差を含むことなく、色変換処理を行うことができる。
As described in detail above, according to the second embodiment, the following operation and effect can be obtained in addition to the operation and effect of the first embodiment. (1) In the second embodiment, as shown in FIG. 10, the weight coefficient W including the case corresponding to the exceptional processing is w1
Ww8 are stored in the ROM 12 in this order. For this reason, based on the above (Equation 16-1), the reference address ELADR of the weight coefficient w1 including the case corresponding to the exception processing
Once (w1) is known, it is only necessary to increment sequentially,
Weighting factors w2 to w8 can also be obtained. Therefore, even when the conversion point P corresponds to the exception processing, the color conversion processing can be performed at high speed using software. Moreover, even when the conversion point P corresponds to exception processing,
The color conversion process can be performed without including an error.

【0107】(2)例外処理に該当するか否かを判断す
る場合に、(RH,GH,BH)の各値が「15」であ
るか否かに基づいて判断するのではなく、例外処理に該
当するか否かを示す「Z」の値、すなわち前記(式1
5)に基づいて、判断させている。このため、(RH,
GH,BH)の各値の何れかが「15」であるか否かを
判断する処理に比べて、装置全体としての処理速度を高
速にすることができる。しかも、「Z」の値に応じて、
何れの例外処理に該当するかをも判断することができ
る。従って、変換点Pが例外処理に該当する場合であっ
ても、色変換処理をより高速に行うことができる。
(2) When judging whether or not the process corresponds to the exception processing, the judgment is not made based on whether or not each value of (RH, GH, BH) is “15”. The value of “Z” indicating whether or not the above applies, that is, the above (Equation 1)
The decision is made based on 5). For this reason, (RH,
GH, BH) can increase the processing speed of the entire apparatus as compared with the processing of determining whether any of the values is “15”. Moreover, according to the value of “Z”,
It is possible to determine which of the exception processes corresponds. Therefore, even when the conversion point P corresponds to the exception processing, the color conversion processing can be performed at higher speed.

【0108】[第3の実施形態]…立方体補間(8点補
間)の場合 この第3の実施形態において、前記第1の実施形態と同
様な構成については、前記第1の実施形態と同一の符号
を付して説明を省略する。この第3の実施形態は、前記
第2の実施形態と同様に、前記第1の実施形態におい
て、例外処理に該当する場合を考慮したものである。加
えて、この第3の実施形態は、前記第2の実施形態とは
異なり、例外処理に該当するか否かを判断させることな
く、色変換処理を実行させるものである。
[Third Embodiment] Case of Cube Interpolation (8-Point Interpolation) In the third embodiment, the same configuration as the first embodiment is the same as that of the first embodiment. The description is omitted by attaching reference numerals. In the third embodiment, as in the second embodiment, a case corresponding to exception processing in the first embodiment is considered. In addition, the third embodiment is different from the second embodiment in that the color conversion process is executed without determining whether or not the process corresponds to the exception process.

【0109】この第3の実施形態において、ROM12
は、図5に示す格子点データのLUT、図9に示す変換
点Pが例外処理に該当するか否かを判断するためのLU
T及び図10に示す例外処理に該当する場合を含む重み
係数W(w1〜w8)のLUTを記憶する。
In the third embodiment, the ROM 12
Is an LUT for grid point data shown in FIG. 5, and an LU for judging whether the conversion point P shown in FIG. 9 corresponds to exception processing.
T and the LUT of the weighting coefficient W (w1 to w8) including the case corresponding to the exception processing shown in FIG. 10 are stored.

【0110】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、図14に示すフロ
ーチャートを用いて説明する。なお、この動作は、RO
M12に記憶されたプログラムに基づき、MPU11の
制御により実行される。
Next, in the facsimile machine 1, when the RGB signal of the conversion point P is output from the reading unit 14,
The operation of the color conversion process for pixels will be described with reference to the flowchart shown in FIG. Note that this operation is performed by the RO
The program is executed under the control of the MPU 11 based on the program stored in the M12.

【0111】図14に示すステップS41においては、
変換点PのRGB信号から各上位4〔bit〕、すなわ
ち(RH,GH,BH)が抽出される。ステップS42
においては、前記ステップS41において抽出された
(RH,GH,BH)に基づいて、例外処理に該当する
か否かを示す「Z」の参照アドレスZHADR(Z)が
算出される。具体的には前記(式15)に基づいて、例
外処理に該当するか否かを示す「Z」の参照アドレスZ
HADR(Z)が算出される。
In step S41 shown in FIG.
The upper 4 bits, that is, (RH, GH, BH) are extracted from the RGB signal at the conversion point P. Step S42
In, based on (RH, GH, BH) extracted in step S41, a reference address ZHADR (Z) of “Z” indicating whether or not an exception process is applicable is calculated. Specifically, based on the above (Equation 15), the reference address Z of “Z” indicating whether or not the exception processing is performed.
HADR (Z) is calculated.

【0112】ステップS43においては、前記ステップ
S42において算出された「Z」の参照アドレスZHA
DR(Z)に基づいて、「Z」の値が抽出される。具体
的には、図9に示す変換点Pが例外処理に該当するか否
かを判断するためのLUTに基づいて、「Z」の値が抽
出される。従って、この「Z」の値が「0」の場合は、
変換点Pが例外処理に該当しないと判断することができ
る。また、この「Z」の値が「1〜7」の場合は、変換
点Pが例外処理に該当することを判断できるとともに、
前記[1]〜[7]の7通りのうちの何れの例外処理に
該当するかをも判断することができる。
In step S43, reference address ZHA of "Z" calculated in step S42.
The value of “Z” is extracted based on DR (Z). Specifically, the value of “Z” is extracted based on the LUT for determining whether the conversion point P shown in FIG. 9 corresponds to exception processing. Therefore, when the value of “Z” is “0”,
It can be determined that the conversion point P does not correspond to exception processing. When the value of “Z” is “1 to 7”, it can be determined that the conversion point P corresponds to exception processing,
It is possible to determine which of the seven exceptions [1] to [7] corresponds to the exception processing.

【0113】ステップS44においては、変換点PのR
GB信号から各下位4〔bit〕、すなわち(RL,G
L,BL)が抽出される。ステップS45においては、
前記ステップS44において抽出された(RL,GL,
BL)に基づいて、例外処理に該当する場合を含む重み
係数w1の参照アドレスELADR(w1)が算出され
る。具体的には、前記(式16−1)に基づいて、重み
係数w1の参照アドレスELADR(w1)が算出され
る。
In step S44, R of conversion point P
The lower 4 bits from the GB signal, that is, (RL, G
L, BL) are extracted. In step S45,
(RL, GL,
BL), the reference address ELADR (w1) of the weight coefficient w1 including the case corresponding to the exception processing is calculated. Specifically, the reference address ELADR (w1) of the weight coefficient w1 is calculated based on the above (Equation 16-1).

【0114】ステップS46においては、変換点Pを取
り囲む立方体における重み係数W(w1〜w8)がRO
M12から順次読み出される。具体的には、前記ステッ
プS45において算出された重み係数w1の参照アドレ
スELADR(w1)から順次インクリメントされて、
すべての重み係数W(w1〜w8)が、前記図10に示
す例外処理に該当する場合を含む重み係数W(w1〜w
8)のLUTから順次読み出される。より具体的には、
前記図10に示す例外処理に該当する場合を含む重み係
数W(w1〜w8)において、前記ステップS43にお
いて抽出された「Z(=0〜7)」に応じた重み係数W
(w1〜w8)が読み出される。
In step S46, the weighting factors W (w1 to w8) in the cube surrounding the transformation point P are set to RO
They are sequentially read from M12. Specifically, the weight coefficient w1 calculated in step S45 is sequentially incremented from the reference address ELADR (w1),
All the weighting factors W (w1 to w8) include the weighting factors W (w1 to w8) including the case where the exception processing shown in FIG.
8) are sequentially read from the LUT. More specifically,
In the weight coefficient W (w1 to w8) including the case corresponding to the exception processing shown in FIG. 10, the weight coefficient W corresponding to “Z (= 0 to 7)” extracted in step S43.
(W1 to w8) are read.

【0115】ステップS47においては、変換点PのR
GB信号から各上位4〔bit〕、すなわち(RH,G
H,BH)が抽出される。なお、この上位4〔bit〕
の抽出処理は、前記ステップS41と同様な処理である
ため、前記ステップS41において抽出した上位4〔b
it〕をそのまま用いても良い。
In step S47, R of conversion point P
The upper 4 bits from the GB signal, that is, (RH, G
H, BH) are extracted. Note that the upper 4 bits
Is the same processing as in step S41, so the top 4 [b] extracted in step S41
it] may be used as it is.

【0116】ステップS48においては、前記ステップ
S47において抽出された(RH,GH,BH)に基づ
いて、「C」成分における格子点「A」の参照アドレス
HADR(A)が算出される。具体的には、前記(式2
−1)に基づいて、「C」成分における格子点「A」の
参照アドレスHADR(A)が算出される。
In step S48, the reference address HADR (A) of the grid point "A" in the "C" component is calculated based on (RH, GH, BH) extracted in step S47. Specifically, the above (Equation 2)
Based on -1), the reference address HADR (A) of the grid point “A” in the “C” component is calculated.

【0117】なお、「C」成分における格子点「A」の
参照アドレスHADR(A)は、前記ステップS42に
おいて算出された「Z」の参照アドレスZHADR
(Z)、すなわち前記(式15)に示した例外処理に該
当するか否かを示す「Z」の参照アドレスZHADR
(Z)に「32」を乗算して、「C」成分における格子
点「A」の参照アドレスHADR(A)を算出しても良
い。
The reference address HADR (A) of the grid point “A” in the “C” component is the reference address ZHADR of “Z” calculated in step S42.
(Z), that is, a reference address ZHADR of “Z” indicating whether or not the exception processing shown in (Equation 15) is applicable.
(Z) may be multiplied by “32” to calculate the reference address HADR (A) of the grid point “A” in the “C” component.

【0118】ステップS49においては、変換点Pを取
り囲む立方体における格子点「A〜H」の格子点データ
がROM12から順次読み出される。具体的には、前記
ステップS48において算出された「C」成分における
格子点「A」の参照アドレスHADR(A)から順次イ
ンクリメントされて、「C」成分における格子点「A〜
H」の格子点データが前記図5に示す格子点「A〜H」
の格子点データのLUTから順次読み出される。
In step S 49, the grid point data of the grid points “A to H” in the cube surrounding the conversion point P are sequentially read from the ROM 12. Specifically, the grid point “A” is incremented sequentially from the reference address HADR (A) of the grid point “A” in the “C” component calculated in step S48.
H "is the grid point data" A to H "shown in FIG.
Are sequentially read from the LUT of the lattice point data.

【0119】ステップS50においては、変換点Pにお
ける補間演算が行われる。具体的には、前記ステップS
46において読み出された重み係数W(w1〜w8)
と、前記ステップS49において読み出された「C」成
分における格子点「A〜H」の格子点データとに基づい
て、前記(式5)により、変換点Pにおける補間演算が
行われる。
In step S50, an interpolation operation at the conversion point P is performed. Specifically, the step S
Weight coefficient W (w1 to w8) read out at 46
Based on the above and the grid point data of the grid points “A to H” in the “C” component read in step S49, the interpolation calculation at the conversion point P is performed by (Equation 5).

【0120】ステップS51においては、次成分がある
か否かが判断される。具体的には、「C」成分の補間演
算を行った場合には「M」成分、「M」成分の補間演算
を行った場合には「Y」成分、「Y」成分の補間演算を
行った場合には「K」成分があるか否かが判断される。
そして、次成分がある場合には、ステップS52に移行
する。一方、次成分がない場合、すなわち全ての「C,
M,Y,K」成分について、補間演算が終了した場合に
は、この処理を終了する。
In step S51, it is determined whether there is a next component. Specifically, the interpolation operation of the “M” component is performed when the interpolation operation of the “C” component is performed, and the interpolation operation of the “Y” component and the “Y” component is performed when the interpolation operation of the “M” component is performed. In this case, it is determined whether or not there is a “K” component.
If there is a next component, the process proceeds to step S52. On the other hand, when there is no next component, that is, when all “C,
When the interpolation calculation has been completed for the "M, Y, K" components, this processing ends.

【0121】ステップS52においては、次成分におけ
る格子点「A」の参照アドレスが算出される。具体的に
は、前記図5に示したように、「C,M,Y,K」成分
に対して格子点「A〜H」の格子点データが記憶されて
いるため、前記ステップS48において算出された
「C」成分における格子点「A」の参照アドレスHAD
R(A)を順次インクリメントするだけである。そし
て、ステップS49〜ステップS52が繰り返し実行さ
れて、変換点Pにおける「M,Y,K」の補間演算が行
われる。すなわち、ステップS49〜ステップS52が
繰り返し実行されて、変換点Pにおける「C,M,Y,
K」成分の補間演算が行われ、変換点PのRGB信号が
CMYK信号に変換される。なお、一般的に、変換する
画素は多数あるので、読み取ったすべての画素に対し
て、この処理が繰り返し実行される。
In step S52, the reference address of the grid point "A" in the next component is calculated. Specifically, as shown in FIG. 5, since the grid point data of the grid points “A to H” is stored for the “C, M, Y, K” components, the calculation is performed in the step S48. Address HAD of the grid point "A" in the calculated "C" component
It simply increments R (A) sequentially. Then, steps S49 to S52 are repeatedly executed, and the interpolation calculation of “M, Y, K” at the conversion point P is performed. That is, steps S49 to S52 are repeatedly executed, and “C, M, Y,
The interpolation operation of the “K” component is performed, and the RGB signals at the conversion point P are converted into CMYK signals. In general, since there are a large number of pixels to be converted, this process is repeatedly performed on all the read pixels.

【0122】以上、詳述したように第3の実施形態によ
れば、前記第2の実施形態の作用、効果に加えて、次の
ような作用、効果を得ることができる。 (1)変換点Pが例外処理に該当するか否かを判断する
ことなく、補間演算が行われている。このため、前記第
2の実施形態(図12及び図13に示すフローチャー
ト)とは異なり、変換点Pが例外処理に該当するか否か
に拘わらず、同一の処理(図14に示すフローチャー
ト)で色変換処理を行うことができる。従って、色変換
処理をソフトウェアで処理させる場合でも、より一層高
速に処理を行わせることができる。しかも、色変換処理
をハードウェアで構成する場合であっても、同一の処理
で色変換処理を行うことができるため、より簡単な構成
にすることができる。
As described above in detail, according to the third embodiment, the following operation and effect can be obtained in addition to the operation and effect of the second embodiment. (1) The interpolation calculation is performed without determining whether the conversion point P corresponds to the exception processing. Therefore, unlike the second embodiment (the flowcharts shown in FIGS. 12 and 13), the same processing (the flowchart shown in FIG. 14) is performed regardless of whether the conversion point P corresponds to the exception processing. Color conversion processing can be performed. Therefore, even when the color conversion processing is performed by software, the processing can be performed at a higher speed. Moreover, even when the color conversion processing is configured by hardware, the color conversion processing can be performed by the same processing, so that a simpler configuration can be achieved.

【0123】[第4の実施形態]…三角錐補間(4点補
間)の場合 次に、本発明をファクシミリ装置に具体化した第4の実
施形態について、図面を用いて説明する。なお、この第
4の実施形態において、前記第1の実施形態と同様な構
成については、前記第1の実施形態と同一の符号を付し
て説明を省略する。
[Fourth Embodiment] Case of Triangular Pyramid Interpolation (Four-Point Interpolation) Next, a fourth embodiment in which the present invention is embodied in a facsimile apparatus will be described with reference to the drawings. In the fourth embodiment, the same components as those in the first embodiment are denoted by the same reference numerals as in the first embodiment, and the description is omitted.

【0124】この第4の実施形態においては、ROM1
2に記憶するLUTのデータが異なる。すなわち、立方
体を6分割した三角錐補間(4点補間)に必要なデータ
を記憶している。具体的には、後述する図35に示す重
み係数W(w1〜w4)のLUT、図36に示す(R
L,GL,BL)の各値の大小関係で決定されるオフセ
ットを示すLUT及び図37に示す格子点データのLU
Tを記憶する。
In the fourth embodiment, the ROM 1
2 has different LUT data. That is, data necessary for triangular pyramid interpolation (four-point interpolation) obtained by dividing a cube into six is stored. Specifically, an LUT of weighting coefficients W (w1 to w4) shown in FIG.
L, GL, and BL) indicating the offset determined by the magnitude relationship between the values and the LU of the grid point data shown in FIG.
Store T.

【0125】次に、三角錐補間(4点補間)の原理につ
いて、図面を用いて説明する。図15(a)に示すよう
に、RGB空間において、RGB信号の各下位4〔bi
t〕を(RL,GL,BL)とし、立方体を「RL=G
L平面」、「GL=BL平面」及び「BL=RL平面」
で分割すると、図15(b)に示すように、立方体は6
つの三角錐に分割される。
Next, the principle of triangular pyramid interpolation (four-point interpolation) will be described with reference to the drawings. As shown in FIG. 15 (a), in the RGB space, each lower 4 [bi] of the RGB signal
t] is (RL, GL, BL), and the cube is expressed as “RL = G
“L plane”, “GL = BL plane” and “BL = RL plane”
, The cube becomes 6 as shown in FIG.
Divided into three triangular pyramids.

【0126】図16に示すように、立方体を6つの三角
錐に分割すると、この(RL、GL、BL)の各値の大
小関係に基づいて、変換点Pが6つの三角錐のうち、何
れの三角錐に存在するか否かを判断することができる。
As shown in FIG. 16, when the cube is divided into six triangular pyramids, based on the magnitude relation of each value of (RL, GL, BL), the transformation point P It can be determined whether or not there is a triangular pyramid.

【0127】すなわち、図16(a)はBL>GL>R
Lの場合を、図16(b)はGL>RL>BLの場合
を、図16(c)はRL>BL>GLの場合を、図16
(d)はGL≧BL≧RL(但し、RL≠GL)の場合
を、図16(e)はRL≧GL≧BLの場合を、図16
(f)はBL≧RL≧GL(但し、GL≠BL)の場合
を、それぞれ示している。なお、図16(d)はGL=
BL及びBL=RLの面を含み、図16(e)はRL=
GL及びGL=BLの面と、RL=GL=BLの線を含
み、図16(f)はBL=RL及びRL=GLの面を含
む。
That is, FIG. 16A shows BL>GL> R
16B shows the case of GL>RL> BL, FIG. 16C shows the case of RL>BL> GL, and FIG.
FIG. 16D shows the case where GL ≧ BL ≧ RL (where RL ≠ GL), and FIG. 16E shows the case where RL ≧ GL ≧ BL.
(F) shows the case where BL ≧ RL ≧ GL (where GL ≠ BL). FIG. 16D shows GL =
FIG. 16E includes the planes BL and BL = RL, and FIG.
FIG. 16F includes the planes of GL and GL = BL and the line of RL = GL = BL, and FIG. 16F includes the planes of BL = RL and RL = GL.

【0128】ここで、図16(a)〜(f)は、何れも
他の三角錐の2面と接している。このため、境界面は何
れの三角錐に含んでも演算結果は同じである。そこで、
本実施形態では、これらの境界面及び境界線が図16
(d)〜(f)に含まれるものとして説明している。な
お、図16(a)〜(c)に含まれるものとして考える
ことも可能である。
Here, FIGS. 16A to 16F are in contact with the other two surfaces of the other triangular pyramid. Therefore, the calculation result is the same regardless of which triangular pyramid includes the boundary surface. Therefore,
In the present embodiment, these boundary surfaces and boundaries are shown in FIG.
It is described as being included in (d) to (f). In addition, it is also possible to think that it is included in FIGS.

【0129】加えて、(RL、GL、BL)の各値の大
小関係に基づいて、重み係数W(w1〜w4)が算出さ
れる。つまり、(RL,GL,BL)の各値の大きい順
に「LL,LM,LS」とすると、重み係数W(w1〜
w4)は、以下のように示すことができる。 w1=16-LL ………(式30−1) w2=LL-LM ………(式30−2) w3=LM-LS ………(式30−3) w4=LS ………(式30−4)
In addition, the weight coefficients W (w1 to w4) are calculated based on the magnitude relation between the values of (RL, GL, BL). That is, when “LL, LM, LS” are set in the descending order of the values of (RL, GL, BL), the weighting factors W (w1 to w1)
w4) can be shown as follows. w1 = 16-LL (Equation 30-1) w2 = LL-LM (Equation 30-2) w3 = LM-LS (Equation 30-3) w4 = LS (Equation 30-3) 30-4)

【0130】そこで、前記図16(a)〜(f)の場合
における重み係数W(w1〜w4)を算出する。 [a]前記図16(a)に示すBL>GL>RLの場合
における重み係数W 図17には、前記図16(a)の場合、すなわち変換点
PがBL>GL>RLの場合における三角錐を示してい
る。
Therefore, the weighting factors W (w1 to w4) in the cases of FIGS. 16A to 16F are calculated. [A] Weight coefficient W in the case of BL>GL> RL shown in FIG. 16 (a) FIG. 17 shows a triangle in the case of FIG. 16 (a), that is, the case where the conversion point P is BL>GL> RL. The cone is shown.

【0131】図18(a)〜(d)に示すように、前記
図17に示す三角錐を変換点Pを基準に、さらに4つの
三角錐に分割して、それぞれの三角錐の体積Va〜Vd
を算出する。先ず、図18(a)に示す三角錐の体積V
aは、以下のように示すことができる。 Va=1/3*(16*16)/2*(16-BL) =1/6*16*16*(16-BL) ………(式35−1)
As shown in FIGS. 18 (a) to (d), the triangular pyramid shown in FIG. 17 is further divided into four triangular pyramids based on the conversion point P, and the volumes Va to Vd
Is calculated. First, the volume V of the triangular pyramid shown in FIG.
a can be shown as follows. Va = 1/3 * (16 * 16) / 2 * (16-BL) = 1/6 * 16 * 16 * (16-BL) ............ (Equation 35-1)

【0132】次に、図18(c)に示す三角錐を、図1
9(a)に示す。この図19(a)に示す三角錐を上方
向から見ると、図19(b)のように示すことができ
る。このため、図18(c)に示す三角錐の体積Vc
は、以下のように示すことができる。 Vc=1/3*(16*16*SQRT(2))/2*(GL-RL)/SQRT(2) =1/6*16*16*(GL-RL) ………(式35−2) なお、「SQRT」は、平方根を示す。以下、同じ。
Next, the triangular pyramid shown in FIG.
This is shown in FIG. When the triangular pyramid shown in FIG. 19A is viewed from above, it can be seen as shown in FIG. 19B. Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as follows. Vc = 1/3 * (16 * 16 * SQRT (2)) / 2 * (GL-RL) / SQRT (2) = 1/6 * 16 * 16 * (GL-RL) ............ (Equation 35- 2) “SQRT” indicates a square root. same as below.

【0133】次に、図18(d)に示す三角錐の体積V
dは、以下のように示すことができる。 Vd=1/3*(16*16)/2*RL =1/6*16*16*RL ………(式35−3)
Next, the volume V of the triangular pyramid shown in FIG.
d can be expressed as follows. Vd = 1/3 * (16 * 16) / 2 * RL = 1/6 * 16 * 16 * RL ............ (Equation 35-3)

【0134】以上、(式35−1)〜(式35−3)よ
り、図18(b)に示す三角錐の体積Vbは、以下のよ
うに示すことができる。 Vb=全体積-(Va+Vc+Vd) =1/6*16*16*{16-(16-BL)-(GL-RL)-RL} =1/6*16*16*(BL-GL) ………(式35−4)
From the above (Equation 35-1) to (Equation 35-3), the volume Vb of the triangular pyramid shown in FIG. 18B can be expressed as follows. Vb = Overall product-(Va + Vc + Vd) = 1/6 * 16 * 16 * {16- (16-BL)-(GL-RL) -RL} = 1/6 * 16 * 16 * (BL- GL) ... (Equation 35-4)

【0135】その結果、図18(a)〜(d)に示す三
角錐の体積Va〜Vdの比は、以下のように示すことが
できる。 Va:Vb:Vc:Vd=16-BL:BL-GL:GL-RL:RL ………(式35−5) よって、RGB信号の下位4〔bit〕、すなわち(R
L,GL,BL)で示される体積比Va:Vb:Vc:
Vdが、三角錐における重み係数Wとなる。
As a result, the ratio of the volumes Va to Vd of the triangular pyramids shown in FIGS. 18A to 18D can be expressed as follows. Va: Vb: Vc: Vd = 16-BL: BL-GL: GL-RL: RL (Equation 35-5) Therefore, the lower 4 bits of the RGB signal, that is, (R
L, GL, BL) by volume ratio Va: Vb: Vc:
Vd is the weight coefficient W in the triangular pyramid.

【0136】従って、BL>GL>RLの関係と、前記
(式30−1)〜(式30−4)とにより、重み係数W
(w1〜w4)は、以下のように示すことができる。 w1:w2:w3:w4=16-BL:BL-GL:GL-RL:RL ………(式35−6)
Therefore, according to the relationship of BL>GL> RL and (Equation 30-1) to (Equation 30-4), the weight coefficient W
(W1 to w4) can be shown as follows. w1: w2: w3: w4 = 16-BL: BL-GL: GL-RL: RL (Equation 35-6)

【0137】[b]前記図16(b)に示すGL>RL
>BLの場合における重み係数W 図20には、前記図16(b)の場合、すなわち変換点
PがGL>RL>BLの場合における三角錐を示してい
る。
[B] GL> RL shown in FIG. 16B
Weight coefficient W in case of> BL FIG. 20 shows a triangular pyramid in the case of FIG. 16B, that is, in the case where the conversion point P is GL>RL> BL.

【0138】図21(a)〜(d)に示すように、前記
図20に示す三角錐を変換点Pを基準に、さらに4つの
三角錐に分割して、それぞれの三角錐の体積Va〜Vd
を算出する。先ず、図21(a)に示す三角錐の体積V
aは、以下のように示すことができる。 Va=1/3*(16*16)/2*(16-GL) =1/6*16*16*(16-GL) ………(式36−1)
As shown in FIGS. 21 (a) to 21 (d), the triangular pyramid shown in FIG. 20 is further divided into four triangular pyramids based on the transformation point P, and the volumes Va to Vd
Is calculated. First, the volume V of the triangular pyramid shown in FIG.
a can be shown as follows. Va = 1/3 * (16 * 16) / 2 * (16-GL) = 1/6 * 16 * 16 * (16-GL) ............ (Equation 36-1)

【0139】次に、図21(c)に示す三角錐を、図2
2(a)に示す。この図22(a)に示す三角錐を手前
方向から見ると、図22(b)のように示すことができ
る。このため、図21(c)に示す三角錐の体積Vc
は、以下のように示すことができる。 Vc=1/3*(16*16*SQRT(2))/2*(RL-BL)/SQRT(2) =1/6*16*16*(RL-BL) ………(式36−2)
Next, the triangular pyramid shown in FIG.
This is shown in FIG. When the triangular pyramid shown in FIG. 22A is viewed from the near side, it can be shown as shown in FIG. 22B. Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as follows. Vc = 1/3 * (16 * 16 * SQRT (2)) / 2 * (RL-BL) / SQRT (2) = 1/6 * 16 * 16 * (RL-BL) ............ (Equation 36− 2)

【0140】次に、図21(d)に示す三角錐の体積V
dは、以下のように示すことができる。 Vd=1/3*(16*16)/2*BL =1/6*16*16*BL ………(式36−3)
Next, the volume V of the triangular pyramid shown in FIG.
d can be expressed as follows. Vd = 1/3 * (16 * 16) / 2 * BL = 1/6 * 16 * 16 * BL ............ (Equation 36-3)

【0141】以上、(式36−1)〜(式36−3)よ
り、図21(b)に示す三角錐の体積Vbは、以下のよ
うに示すことができる。 Vb=全体積-(Va+Vc+Vd) =1/6*16*16*{16-(16-GL)-(RL-BL)-BL} =1/6*16*16*(GL-RL) ………(式36−4)
From the above (Equation 36-1) to (Equation 36-3), the volume Vb of the triangular pyramid shown in FIG. 21B can be expressed as follows. Vb = Overall product-(Va + Vc + Vd) = 1/6 * 16 * 16 * {16- (16-GL)-(RL-BL) -BL} = 1/6 * 16 * 16 * (GL- RL) ... (Equation 36-4)

【0142】その結果、図21(a)〜(d)に示す三
角錐の体積Va〜Vdの比は、以下のように示すことが
できる。 Va:Vb:Vc:Vd=16-GL:GL-RL:RL-BL:BL ………(式36−5) よって、RGB信号の下位4〔bit〕、すなわち(R
L,GL,BL)で示される体積比Va:Vb:Vc:
Vdが、三角錐における重み係数Wとなる。
As a result, the ratio of the volumes Va to Vd of the triangular pyramids shown in FIGS. 21A to 21D can be expressed as follows. Va: Vb: Vc: Vd = 16-GL: GL-RL: RL-BL: BL (Equation 36-5) Therefore, the lower 4 bits of the RGB signal, that is, (R
L, GL, BL) by volume ratio Va: Vb: Vc:
Vd is the weight coefficient W in the triangular pyramid.

【0143】従って、GL>RL>BLの関係と、前記
(式30−1)〜(式30−4)とにより、重み係数W
(w1〜w4)は、以下のように示すことができる。 w1:w2:w3:w4=16-GL:GL-RL:RL-BL:BL ………(式36−6)
Therefore, according to the relationship of GL>RL> BL and the above (Equation 30-1) to (Equation 30-4), the weight coefficient W
(W1 to w4) can be shown as follows. w1: w2: w3: w4 = 16-GL: GL-RL: RL-BL: BL (Equation 36-6)

【0144】[c]前記図16(c)に示すRL>BL
>GLの場合における重み係数W 図23には、前記図16(c)の場合、すなわち変換点
PがRL>BL>GLの場合における三角錐を示してい
る。
[C] RL> BL shown in FIG. 16 (c)
Weight coefficient W in case of> GL FIG. 23 shows a triangular pyramid in the case of FIG. 16C, that is, in the case where the transformation point P is RL>BL> GL.

【0145】図24(a)〜(d)に示すように、前記
図23に示す三角錐を変換点Pを基準に、さらに4つの
三角錐に分割して、それぞれの三角錐の体積Va〜Vd
を算出する。先ず、図24(a)に示す三角錐の体積V
aは、以下のように示すことができる。 Va=1/3*(16*16)/2*(16-RL) =1/6*16*16*(16-RL) ………(式37−1)
As shown in FIGS. 24 (a) to 24 (d), the triangular pyramid shown in FIG. 23 is further divided into four triangular pyramids based on the conversion point P, and the volumes Va to Vd
Is calculated. First, the volume V of the triangular pyramid shown in FIG.
a can be shown as follows. Va = 1/3 * (16 * 16) / 2 * (16-RL) = 1/6 * 16 * 16 * (16-RL) ............ (Equation 37-1)

【0146】次に、図24(c)に示す三角錐を、図2
5(a)に示す。この図25(a)に示す三角錐を右方
向から見ると、図25(b)のように示すことができ
る。このため、図24(c)に示す三角錐の体積Vc
は、以下のように示すことができる。 Vc=1/3*(16*16*SQRT(2))/2*(BL-GL)/SQRT(2) =1/6*16*16*(BL-GL) ………(式37−2)
Next, the triangular pyramid shown in FIG.
This is shown in FIG. When the triangular pyramid shown in FIG. 25A is viewed from the right, it can be shown as in FIG. 25B. Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as follows. Vc = 1/3 * (16 * 16 * SQRT (2)) / 2 * (BL-GL) / SQRT (2) = 1/6 * 16 * 16 * (BL-GL) ............ (Equation 37- 2)

【0147】次に、図24(d)に示す三角錐の体積V
dは、以下のように示すことができる。 Vd=1/3*(16*16)/2*GL =1/6*16*16*GL ………(式37−3)
Next, the volume V of the triangular pyramid shown in FIG.
d can be expressed as follows. Vd = 1/3 * (16 * 16) / 2 * GL = 1/6 * 16 * 16 * GL ... (Equation 37-3)

【0148】以上、(式37−1)〜(式37−3)よ
り、図24(b)に示す三角錐の体積Vbは、以下のよ
うに示すことができる。 Vb=全体積-(Va+Vc+Vd) =1/6*16*16*{16-(16-RL)-(BL-GL)-GL} =1/6*16*16*(RL-BL) ………(式37−4)
From the above (Equation 37-1) to (Equation 37-3), the volume Vb of the triangular pyramid shown in FIG. 24B can be expressed as follows. Vb = Overall product- (Va + Vc + Vd) = 1/6 * 16 * 16 * {16- (16-RL)-(BL-GL) -GL} = 1/6 * 16 * 16 * (RL- BL) ............ (Equation 37-4)

【0149】その結果、図24(a)〜(d)に示す三
角錐の体積Va〜Vdの比は、以下のように示すことが
できる。 Va:Vb:Vc:Vd=16-RL:RL-BL:BL-GL:GL ………(式37−5) よって、RGB信号の下位4〔bit〕、すなわち(R
L,GL,BL)で示される体積比Va:Vb:Vc:
Vdが、三角錐における重み係数Wとなる。
As a result, the ratio of the volumes Va to Vd of the triangular pyramids shown in FIGS. 24A to 24D can be expressed as follows. Va: Vb: Vc: Vd = 16-RL: RL-BL: BL-GL: GL (Expression 37-5) Therefore, the lower 4 bits of the RGB signal, that is, (R
L, GL, BL) by volume ratio Va: Vb: Vc:
Vd is the weight coefficient W in the triangular pyramid.

【0150】従って、RL>BL>GLの関係と、前記
(式30−1)〜(式30−4)とにより、重み係数W
(w1〜w4)は、以下のように示すことができる。 w1:w2:w3:w4=16-RL:RL-BL:BL-GL:GL ………(式37−6)
Therefore, according to the relationship of RL>BL> GL and (Equation 30-1) to (Equation 30-4), the weight coefficient W
(W1 to w4) can be shown as follows. w1: w2: w3: w4 = 16-RL: RL-BL: BL-GL: GL (Equation 37-6)

【0151】[d]前記図16(d)に示すGL≧BL
≧RL(但し、RL≠GL)の場合における重み係数W 図26には、前記図16(d)の場合、すなわち変換点
PがGL≧BL≧RLの場合における三角錐を示してい
る。
[D] GL ≧ BL shown in FIG.
Weight coefficient W in the case of ≧ RL (where RL ≠ GL) FIG. 26 shows a triangular pyramid in the case of FIG. 16D, that is, in the case where the conversion point P is GL ≧ BL ≧ RL.

【0152】図27(a)〜(d)に示すように、前記
図26に示す三角錐を変換点Pを基準に、さらに4つの
三角錐に分割して、それぞれの三角錐の体積Va〜Vd
を算出する。先ず、図27(a)に示す三角錐の体積V
aは、以下のように示すことができる。 Va=1/3*(16*16)/2*(16-GL) =1/6*16*16*(16-GL) ………(式38−1)
As shown in FIGS. 27 (a) to (d), the triangular pyramid shown in FIG. 26 is further divided into four triangular pyramids based on the transformation point P, and the volumes Va to Vd
Is calculated. First, the volume V of the triangular pyramid shown in FIG.
a can be shown as follows. Va = 1/3 * (16 * 16) / 2 * (16-GL) = 1/6 * 16 * 16 * (16-GL) ............ (Equation 38-1)

【0153】次に、図27(c)に示す三角錐を、図2
8(a)に示す。この図28(a)に示す三角錐を手前
方向から見ると、図28(b)のように示すことができ
る。このため、図27(c)に示す三角錐の体積Vc
は、以下のように示すことができる。 Vc=1/3*(16*16*SQRT(2))/2*(BL-RL)/SQRT(2) =1/6*16*16*(BL-RL) ………(式38−2)
Next, the triangular pyramid shown in FIG.
This is shown in FIG. When the triangular pyramid shown in FIG. 28A is viewed from the near side, it can be shown as shown in FIG. Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as follows. Vc = 1/3 * (16 * 16 * SQRT (2)) / 2 * (BL-RL) / SQRT (2) = 1/6 * 16 * 16 * (BL-RL) ............ (Equation 38- 2)

【0154】次に、図27(d)に示す三角錐の体積V
dは、以下のように示すことができる。 Vd=1/3*(16*16)/2*RL =1/6*16*16*RL ………(式38−3)
Next, the volume V of the triangular pyramid shown in FIG.
d can be expressed as follows. Vd = 1/3 * (16 * 16) / 2 * RL = 1/6 * 16 * 16 * RL ............ (Equation 38-3)

【0155】以上、(式38−1)〜(式38−3)よ
り、図27(b)に示す三角錐の体積Vbは、以下のよ
うに示すことができる。 Vb=全体積-(Va+Vc+Vd) =1/6*16*16*{16-(16-GL)-(BL-RL)-RL} =1/6*16*16*(GL-BL) ………(式38−4)
From Equations 38-1 to 38-3, the volume Vb of the triangular pyramid shown in FIG. 27B can be expressed as follows. Vb = Overall product-(Va + Vc + Vd) = 1/6 * 16 * 16 * {16- (16-GL)-(BL-RL) -RL} = 1/6 * 16 * 16 * (GL- BL) ... (Equation 38-4)

【0156】その結果、図27(a)〜(d)に示す三
角錐の体積Va〜Vdの比は、以下のように示すことが
できる。 Va:Vb:Vc:Vd=16-GL:GL-BL:BL-RL:RL ………(式38−5) よって、RGB信号の下位4〔bit〕、すなわち(R
L,GL,BL)で示される体積比Va:Vb:Vc:
Vdが、三角錐における重み係数Wとなる。
As a result, the ratio of the volumes Va to Vd of the triangular pyramids shown in FIGS. 27A to 27D can be expressed as follows. Va: Vb: Vc: Vd = 16-GL: GL-BL: BL-RL: RL (Equation 38-5) Therefore, the lower 4 bits of the RGB signal, that is, (R
L, GL, BL) by volume ratio Va: Vb: Vc:
Vd is the weight coefficient W in the triangular pyramid.

【0157】従って、GL≧BL≧RLの関係と、前記
(式30−1)〜(式30−4)とにより、重み係数W
(w1〜w4)は、以下のように示すことができる。 w1:w2:w3:w4=16-GL:GL-BL:BL-RL:RL ………(式38−6)
Therefore, according to the relationship of GL ≧ BL ≧ RL and (Equation 30-1) to (Equation 30-4), the weight coefficient W
(W1 to w4) can be shown as follows. w1: w2: w3: w4 = 16-GL: GL-BL: BL-RL: RL (Equation 38-6)

【0158】[e]前記図16(e)に示すRL≧GL
≧BLの場合における重み係数W 図29には、前記図16(e)の場合、すなわち変換点
PがRL≧GL≧BLの場合における三角錐を示してい
る。
[E] RL ≧ GL shown in FIG.
Weighting coefficient W in case of ≧ BL FIG. 29 shows a triangular pyramid in the case of FIG. 16E, that is, in the case where the conversion point P satisfies RL ≧ GL ≧ BL.

【0159】図30(a)〜(d)に示すように、前記
図29に示す三角錐を変換点Pを基準に、さらに4つの
三角錐に分割して、それぞれの三角錐の体積Va〜Vd
を算出する。先ず、図30(a)に示す三角錐の体積V
aは、以下のように示すことができる。 Va=1/3*(16*16)/2*(16-RL) =1/6*16*16*(16-RL) ………(式39−1)
As shown in FIGS. 30 (a) to 30 (d), the triangular pyramid shown in FIG. 29 is further divided into four triangular pyramids based on the transformation point P, and the volumes Va to Vd
Is calculated. First, the volume V of the triangular pyramid shown in FIG.
a can be shown as follows. Va = 1/3 * (16 * 16) / 2 * (16-RL) = 1/6 * 16 * 16 * (16-RL) ............ (Equation 39-1)

【0160】次に、図30(c)に示す三角錐を、図3
1(a)に示す。この図31(a)に示す三角錐を右方
向から見ると、図31(b)のように示すことができ
る。このため、図30(c)に示す三角錐の体積Vc
は、以下のように示すことができる。 Vc=1/3*(16*16*SQRT(2))/2*(GL-BL)/SQRT(2) =1/6*16*16*(GL-BL) ………(式39−2)
Next, the triangular pyramid shown in FIG.
This is shown in FIG. When the triangular pyramid shown in FIG. 31 (a) is viewed from the right, it can be shown as shown in FIG. 31 (b). Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as follows. Vc = 1/3 * (16 * 16 * SQRT (2)) / 2 * (GL-BL) / SQRT (2) = 1/6 * 16 * 16 * (GL-BL) ............ (Equation 39- 2)

【0161】次に、図30(d)に示す三角錐の体積V
dは、以下のように示すことができる。 Vd=1/3*(16*16)/2*BL =1/6*16*16*BL ………(式39−3)
Next, the volume V of the triangular pyramid shown in FIG.
d can be expressed as follows. Vd = 1/3 * (16 * 16) / 2 * BL = 1/6 * 16 * 16 * BL ............ (Equation 39-3)

【0162】以上、(式39−1)〜(式39−3)よ
り、図30(b)に示す三角錐の体積Vbは、以下のよ
うに示すことができる。 Vb=全体積-(Va+Vc+Vd) =1/6*16*16*{16-(16-RL)-(GL-BL)-BL} =1/6*16*16*(RL-GL) ………(式39−4)
From the above (Equations 39-1) to (Equation 39-3), the volume Vb of the triangular pyramid shown in FIG. 30B can be expressed as follows. Vb = Overall product-(Va + Vc + Vd) = 1/6 * 16 * 16 * {16- (16-RL)-(GL-BL) -BL} = 1/6 * 16 * 16 * (RL- GL) ... (Equation 39-4)

【0163】その結果、図30(a)〜(d)に示す三
角錐の体積Va〜Vdの比は、以下のように示すことが
できる。 Va:Vb:Vc:Vd=16-RL:RL-GL:GL-BL:BL ………(式39−5) よって、RGB信号の下位4〔bit〕、すなわち(R
L,GL,BL)で示される体積比Va:Vb:Vc:
Vdが、三角錐における重み係数Wとなる。
As a result, the ratio of the volumes Va to Vd of the triangular pyramids shown in FIGS. 30A to 30D can be expressed as follows. Va: Vb: Vc: Vd = 16-RL: RL-GL: GL-BL: BL (Equation 39-5) Therefore, the lower 4 bits of the RGB signal, that is, (R
L, GL, BL) by volume ratio Va: Vb: Vc:
Vd is the weight coefficient W in the triangular pyramid.

【0164】従って、RL≧GL≧BLの関係と、前記
(式30−1)〜(式30−4)とにより、重み係数W
(w1〜w4)は、以下のように示すことができる。 w1:w2:w3:w4=16-RL:RL-GL:GL-BL:BL ………(式39−6)
Therefore, according to the relationship of RL ≧ GL ≧ BL and (Equation 30-1) to (Equation 30-4), the weight coefficient W
(W1 to w4) can be shown as follows. w1: w2: w3: w4 = 16-RL: RL-GL: GL-BL: BL (Equation 39-6)

【0165】[f]前記図16(f)に示すBL≧RL
≧GL(但し、GL≠BL)の場合における重み係数W 図32には、前記図16(f)の場合、すなわち変換点
PがBL≧RL≧GLの場合における三角錐を示してい
る。
[F] BL ≧ RL shown in FIG.
Weighting coefficient W in the case of ≧ GL (GL ≠ BL) FIG. 32 shows a triangular pyramid in the case of FIG. 16F, that is, in the case where the conversion point P satisfies BL ≧ RL ≧ GL.

【0166】図33(a)〜(d)に示すように、前記
図32に示す三角錐を変換点Pを基準に、さらに4つの
三角錐に分割して、それぞれの三角錐の体積Va〜Vd
を算出する。先ず、図33(a)に示す三角錐の体積V
aは、以下のように示すことができる。 Va=1/3*(16*16)/2*(16-BL) =1/6*16*16*(16-BL) ………(式40−1)
As shown in FIGS. 33 (a) to (d), the triangular pyramid shown in FIG. 32 is further divided into four triangular pyramids based on the transformation point P, and the volumes Va to Vd
Is calculated. First, the volume V of the triangular pyramid shown in FIG.
a can be shown as follows. Va = 1/3 * (16 * 16) / 2 * (16-BL) = 1/6 * 16 * 16 * (16-BL) ............ (Equation 40-1)

【0167】次に、図33(c)に示す三角錐を、図3
4(a)に示す。この図34(a)に示す三角錐を上方
向から見ると、図34(b)のように示すことができ
る。このため、図33(c)に示す三角錐の体積Vc
は、以下のように示すことができる。 Vc=1/3*(16*16*SQRT(2))/2*(RL-GL)/SQRT(2) =1/6*16*16*(RL-GL) ………(式40−2)
Next, the triangular pyramid shown in FIG.
This is shown in FIG. When the triangular pyramid shown in FIG. 34A is viewed from above, it can be seen as shown in FIG. 34B. Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as follows. Vc = 1/3 * (16 * 16 * SQRT (2)) / 2 * (RL-GL) / SQRT (2) = 1/6 * 16 * 16 * (RL-GL) ............ (Equation 40- 2)

【0168】次に、図33(d)に示す三角錐の体積V
dは、以下のように示すことができる。 Vd=1/3*(16*16)/2*GL =1/6*16*16*GL ………(式40−3)
Next, the volume V of the triangular pyramid shown in FIG.
d can be expressed as follows. Vd = 1/3 * (16 * 16) / 2 * GL = 1/6 * 16 * 16 * GL ... (Equation 40-3)

【0169】以上、(式40−1)〜(式40−3)よ
り、図33(b)に示す三角錐の体積Vbは、以下のよ
うに示すことができる。 Vb=全体積-(Va+Vc+Vd) =1/6*16*16*{16-(16-BL)-(RL-GL)-GL} =1/6*16*16*(BL-RL) ………(式40−4)
From the above (Equation 40-1) to (Equation 40-3), the volume Vb of the triangular pyramid shown in FIG. 33B can be expressed as follows. Vb = Overall product-(Va + Vc + Vd) = 1/6 * 16 * 16 * {16- (16-BL)-(RL-GL) -GL} = 1/6 * 16 * 16 * (BL- RL) ... (Equation 40-4)

【0170】その結果、図33(a)〜(d)に示す三
角錐の体積Va〜Vdの比は、以下のように示すことが
できる。 Va:Vb:Vc:Vd=16-BL:BL-RL:RL-GL:GL ………(式40−5) よって、RGB信号の下位4〔bit〕、すなわち(R
L,GL,BL)で示される体積比Va:Vb:Vc:
Vdが、三角錐における重み係数Wとなる。
As a result, the ratio of the volumes Va to Vd of the triangular pyramids shown in FIGS. 33A to 33D can be expressed as follows. Va: Vb: Vc: Vd = 16-BL: BL-RL: RL-GL: GL (Equation 40-5) Therefore, the lower 4 bits of the RGB signal, that is, (R
L, GL, BL) by volume ratio Va: Vb: Vc:
Vd is the weight coefficient W in the triangular pyramid.

【0171】従って、BL≧RL≧GLの関係と、前記
(式30−1)〜(式30−4)とにより、重み係数W
(w1〜w4)は、以下のように示すことができる。 w1:w2:w3:w4=16-BL:BL-RL:RL-GL:GL ………(式40−6)
Therefore, according to the relationship of BL ≧ RL ≧ GL and (Equation 30-1) to (Equation 30-4), the weight coefficient W
(W1 to w4) can be shown as follows. w1: w2: w3: w4 = 16-BL: BL-RL: RL-GL: GL (Equation 40-6)

【0172】次に、前記第1の実施形態における立方体
補間と同様に、三角錐補間における重み係数W(w1〜
w4)を記憶させる順序について検討する。三角錐補間
においても、前記第1の実施形態における立方体補間と
同様に、重み係数W(w1〜w4)を連続して記憶させ
る。すなわち、図35に示すように、読取部14から出
力されるカラー画像のデータ、すなわちRGB信号の各
下位4〔bit〕を(RL,GL,BL)とすると、
(0,0,0)、(1,0,0)、(2,0,0)、・
・・、(15,15,14)、(15,15,15)の
各格子点の順に、それぞれ対応する重み係数W(w1〜
w4)を連続して記憶させる。
Next, similarly to the cubic interpolation in the first embodiment, the weight coefficients W (w1 to
Consider the order in which w4) is stored. Also in the triangular pyramid interpolation, similarly to the cubic interpolation in the first embodiment, the weight coefficients W (w1 to w4) are continuously stored. That is, as shown in FIG. 35, when the lower 4 bits of the color image data output from the reading unit 14, that is, each of the RGB signals is (RL, GL, BL),
(0,0,0), (1,0,0), (2,0,0),.
.., (15, 15, 14) and (15, 15, 15) in the order of respective lattice points, the corresponding weighting factors W (w1 to w1)
w4) is stored continuously.

【0173】具体的には、(0,0,0)に対して、重
み係数W(w1〜w4)を記憶させる。続いて、(1,
0,0)に対して、重み係数W(w1〜w4)を記憶さ
せる。そして、最後に(15,15,15)に対して、
重み係数W(w1〜w4)を記憶させる。
Specifically, a weighting coefficient W (w1 to w4) is stored for (0, 0, 0). Then, (1,
A weight coefficient W (w1 to w4) is stored for (0, 0). And finally, for (15,15,15),
The weight coefficients W (w1 to w4) are stored.

【0174】このため、重み係数w1の参照アドレスL
ADR(w1)は、以下のように示すことができる。 LADR(w1)=RL+GL*16+BL*16^2*4 =RL+GL*16+BL*256*4 ………(式41−1) また、重み係数w2〜w4の参照アドレスLADR
(N)(但し、N=w2〜w4)は、以下のように示す
ことができる。 LADR(w2)=RL+GL*16+BL*16^2*4+1 =LADR(A)+1 ………(式41−2)
Therefore, the reference address L of the weight coefficient w1
ADR (w1) can be expressed as follows. LADR (w1) = RL + GL * 16 + BL * 16 ^ 2 * 4 = RL + GL * 16 + BL * 256 * 4 (Equation 41-1) Further, the reference address LADR of the weighting factors w2 to w4.
(N) (where N = w2 to w4) can be shown as follows. LADR (w2) = RL + GL * 16 + BL * 16 ^ 2 * 4 + 1 = LADR (A) +1 (Equation 41-2)

【0175】 LADR(w3)=RL+GL*16+BL*16^2*4+2 =LADR(A)+2 ………(式41−3) LADR(w4)=RL+GL*16+BL*16^2*4+3 =LADR(A)+3 ………(式41−4) 従って、このように記憶すれば、重み係数w1の参照ア
ドレスLADR(w1)が分かれば、3回インクリメン
トするだけで、すべての重み係数W(w1〜w4)を順
次得ることができる。
LADR (w3) = RL + GL * 16 + BL * 16 ^ 2 * 4 + 2 = LADR (A) +2 (Formula 41-3) LADR (w4) = RL + GL * 16 + BL * 16 ^ 2 * 4 + 3 = LADR (A) +3 (Equation 41-4) Therefore, if the reference address LADR (w1) of the weighting coefficient w1 is known by storing as above, three times. By simply incrementing, all weighting factors W (w1 to w4) can be sequentially obtained.

【0176】次に、前記第1の実施形態における立方体
補間と同様に、三角錐補間の場合において、格子点「A
〜H」の格子点データを記憶させる順序について検討す
る。前記図16に示すように、6つに分割した三角錐
は、立方体を構成する8つの格子点「A〜H」のうち、
格子点「A」と格子点「H」とは必ず含まれている。す
なわち、6つに分割された全ての三角錐は、格子点
「A,H」と他の格子点「B〜G」のうちの2つの格子
点とから構成されている。
Next, similarly to the cubic interpolation in the first embodiment, in the case of triangular pyramid interpolation, the grid point “A
The order in which the grid point data of “〜H” is stored will be considered. As shown in FIG. 16, the triangular pyramid divided into six is one of the eight grid points “A to H” constituting the cube.
The lattice point “A” and the lattice point “H” are always included. That is, all the triangular pyramids divided into six are composed of the lattice point “A, H” and two lattice points of the other lattice points “B to G”.

【0177】三角錐補間においては、格子点「A、H」
と、格子点「B〜G」のうちの2つの格子点とから構成
される格子点データから補間演算処理を行う。従って、
6つに分割された三角錐のうちから、1つの三角錐を決
定するためには、RGB信号の各下位4〔bit〕、す
なわち(RL,GL,BL)の各値の大小関係を判断す
る必要がある。
In the triangular pyramid interpolation, the grid points "A, H"
And interpolation calculation processing is performed from the grid point data including the two grid points among the grid points “B to G”. Therefore,
In order to determine one triangular pyramid from the triangular pyramids divided into six, the lower 4 bits of the RGB signal, that is, the magnitude relation of each value of (RL, GL, BL) is determined. There is a need.

【0178】そこで、(RL,GL,BL)の各値の大
小関係によって、決定される三角錐の格子点における参
照アドレスのオフセットを検討する。 [a]BL>GL>RLの三角錐の場合(図16(a)
参照) この三角錐を構成する格子点は、「A,B,D,H」で
ある。このため、基準となる「C」成分における格子点
「A」の参照アドレスからの各格子点「A,B,D,
H」のオフセットは、前記(式1−1)〜(式1−8)
より、それぞれ「0,289,306,307」であ
る。
Therefore, the offset of the reference address at the lattice point of the triangular pyramid determined based on the magnitude relation of the values of (RL, GL, BL) will be examined. [A] In the case of a triangular pyramid of BL>GL> RL (FIG. 16 (a)
(See reference.) The lattice points constituting this triangular pyramid are “A, B, D, H”. For this reason, each grid point “A, B, D,” from the reference address of the grid point “A” in the reference “C” component
The offset of “H” is calculated by the above (Equation 1-1) to (Equation 1-8)
Therefore, they are "0,289,306,307", respectively.

【0179】[b]GL>RL>BLの三角錐の場合
(図16(b)参照) この三角錐を構成する格子点は、「A,C,G,H」で
ある。このため、基準となる「C」成分における格子点
「A」の参照アドレスからの各格子点「A,C,G,
H」のオフセットは、前記(式1−1)〜(式1−8)
より、それぞれ「0,17,18,307」である。
[B] In the case of a triangular pyramid of GL>RL> BL (see FIG. 16B) The lattice points constituting this triangular pyramid are “A, C, G, H”. Therefore, each of the grid points “A, C, G, and” from the reference address of the grid point “A” in the reference “C” component
The offset of “H” is calculated by the above (Equation 1-1) to (Equation 1-8)
Thus, they are "0, 17, 18, 307", respectively.

【0180】[c]RL>BL>GLの三角錐の場合
(図16(c)参照) この三角錐を構成する格子点は、「A,E,F,H」で
ある。このため、基準となる「C」成分における格子点
「A」の参照アドレスからの各格子点「A,E,F,
H」のオフセットは、前記(式1−1)〜(式1−8)
より、それぞれ「0,1,290,307」となる。
[C] In the case of a triangular pyramid of RL>BL> GL (see FIG. 16 (c)) The lattice points constituting this triangular pyramid are “A, E, F, H”. Therefore, each of the grid points “A, E, F, and” from the reference address of the grid point “A” in the reference “C” component
The offset of “H” is calculated by the above (Equation 1-1) to (Equation 1-8)
Thus, they become "0, 1, 290, 307", respectively.

【0181】[d]GL≧BL≧RL(但し、RL≠G
L)の三角錐の場合(図16(d)参照) この三角錐を構成する格子点は、「A,C,D,H」で
ある。このため、基準となる「C」成分における格子点
「A」の参照アドレスからの各格子点「A,C,D,
H」のオフセットは、前記(式1−1)〜(式1−8)
より、それぞれ「0,17,306,307」である。
[D] GL ≧ BL ≧ RL (where RL ≠ G
L) Triangular pyramid (see FIG. 16 (d)) The lattice points constituting this triangular pyramid are "A, C, D, H". For this reason, each grid point “A, C, D,” from the reference address of the grid point “A” in the reference “C” component
The offset of “H” is calculated by the above (Equation 1-1) to (Equation 1-8)
Thus, they are "0, 17, 306, 307", respectively.

【0182】[e]RL≧GL≧BLの三角錐の場合
(図16(e)参照) この三角錐を構成する格子点は、「A,E,G,H」で
ある。このため、基準となる「C」成分における格子点
「A」の参照アドレスからの各格子点「A,E,G,
H」のオフセットは、前記(式1−1)〜(式1−8)
より、それぞれ「0,1,18,307」である。
[E] In the case of a triangular pyramid of RL ≧ GL ≧ BL (see FIG. 16 (e)) The lattice points constituting this triangular pyramid are “A, E, G, H”. Therefore, each of the grid points “A, E, G, and” from the reference address of the grid point “A” in the reference “C” component
The offset of “H” is calculated by the above (Equation 1-1) to (Equation 1-8)
Thus, they are "0, 1, 18, 307", respectively.

【0183】[f]BL≧RL≧GL(但し、GL≠B
L)の三角錐の場合(図16(f)参照) この三角錐を構成する格子点は、「A,B,F,H」で
ある。このため、基準となる「C」成分における格子点
「A」の参照アドレスからの各格子点「A,B,F,
H」のオフセットは、前記(式1−1)〜(式1−8)
より、それぞれ「0,29,289,307」である。
[F] BL ≧ RL ≧ GL (where GL ≠ B
L) Triangular pyramid (see FIG. 16 (f)) The lattice points constituting this triangular pyramid are "A, B, F, H". Therefore, each grid point “A, B, F,...” From the reference address of the grid point “A” in the reference “C” component
The offset of “H” is calculated by the above (Equation 1-1) to (Equation 1-8)
Thus, they are "0, 29, 289, 307", respectively.

【0184】従って、[a]〜[f]に示す三角錐の場
合も、前記第1の実施形態における立方体補間の場合と
同様に、「C」成分における格子点「A」の参照アドレ
スを基準とすると、格子点「B〜H」における参照アド
レスのオフセットが、格子点「B〜H」により異なる。
加えて、(RL,GL,BL)の各値の大小関係を比較
命令を用いて判断する方法も考えられるが、ソフトウェ
アを用いて大小関係を判断する場合に、比較命令を用い
ると装置全体としての処理速度が遅くなる。
Therefore, in the case of the triangular pyramids shown in [a] to [f], similarly to the case of the cubic interpolation in the first embodiment, the reference address of the grid point “A” in the “C” component is used as a reference. Then, the offset of the reference address at the lattice points “BH” differs depending on the lattice points “BH”.
In addition, a method of judging the magnitude relation of each value of (RL, GL, BL) using a comparison instruction is also conceivable. However, when judging the magnitude relation using software, the use of the comparison instruction as a whole apparatus Processing speed slows down.

【0185】そこで、前記[a]〜[f](図16
(a)〜(f)参照)の三角錐の場合を、それぞれオフ
セット「X」を用いて、以下のように定義する。 [a]BL>GL>RLの三角錐の場合、換言すれば格子点「A,B,D,H 」で構成される三角錐の場合 :X=0 ………(式42−1) [b]GL>RL>BLの三角錐の場合、換言すれば格子点「A,C,G,H 」で構成される三角錐の場合 :X=1 ………(式42−2) [c]RL>BL>GLの三角錐の場合、換言すれば格子点「A,E,F,H 」で構成される三角錐の場合 :X=2 ………(式42−3)
Therefore, [a] to [f] (FIG. 16)
The cases of the triangular pyramids (a) to (f)) are defined as follows using the offset “X”, respectively. [A] In the case of a triangular pyramid of BL>GL> RL, in other words, in the case of a triangular pyramid composed of lattice points “A, B, D, H”: X = 0 (Equation 42-1) b] In the case of a triangular pyramid of GL>RL> BL, in other words, in the case of a triangular pyramid composed of lattice points “A, C, G, H”: X = 1 (Equation 42-2) [c] ] RL>BL> GL, that is, a triangular pyramid composed of lattice points “A, E, F, H”: X = 2 (Equation 42-3)

【0186】 [d]GL≧BL≧RL、RL≠GLの三角錐の場合、換言すれば格子点「A ,C,D,H」で構成される三角錐の場合:X=3 ………(式42−4) [e]RL≧GL≧BLの三角錐の場合、換言すれば格子点「A,E,G,H 」で構成される三角錐の場合 :X=4 ………(式42−5) [f]BL≧RL≧GL、GL≠BLの三角錐の場合、換言すれば格子点「A ,B,F,H」で構成される三角錐の場合:X=5 ………(式42−6)[D] In the case of a triangular pyramid of GL ≧ BL ≧ RL, RL ≠ GL, in other words, in the case of a triangular pyramid composed of lattice points “A, C, D, H”: X = 3 (Equation 42-4) [e] In the case of a triangular pyramid of RL ≧ GL ≧ BL, in other words, in the case of a triangular pyramid composed of lattice points “A, E, G, H”: X = 4 (X = 4) Equation 42-5) [f] In the case of a triangular pyramid of BL ≧ RL ≧ GL, GL ≠ BL, in other words, in the case of a triangular pyramid composed of lattice points “A, B, F, H”: X = 5 ... (Equation 42-6)

【0187】そして、図36に示すように、[a]〜
[f]の場合、すなわち(RL,GL,BL)の大小関
係で決定されるオフセット「X」をLUTとして記憶さ
せる。このように記憶すれば、(RL,GL,BL)の
各値の大小関係を比較命令を用いることなく、しかも、
変換点Pが何れの三角錐に該当するかをも判断すること
ができる。
Then, as shown in FIG. 36, [a] to
In the case of [f], that is, the offset “X” determined by the magnitude relationship of (RL, GL, BL) is stored as an LUT. By storing in this way, the magnitude relation of each value of (RL, GL, BL) can be determined without using a comparison instruction, and
It is possible to determine which of the triangular pyramids the conversion point P corresponds to.

【0188】次に、三角錐を構成する4つの格子点にお
ける格子点データを記憶させる順序について検討する。
図37に示すように、RGB信号の各上位4〔bit〕
を(RH,GH,BH)とすると、(0,0,0)、
(1,0,0)、(2,0,0)、・・・、(15,1
5,14)、(15,15,15)の格子点の順に、そ
れぞれCMYK毎に、4つの格子点「A,B,D,
H」、「A,C,G,H」、「A,E,F,H」、
「A,C,D,H」、「A,E,G,H」、「A,B,
F,H」の格子点データを記憶させる。
Next, the order of storing grid point data at the four grid points forming the triangular pyramid will be discussed.
As shown in FIG. 37, each of the upper 4 bits of the RGB signal
Is (RH, GH, BH), (0,0,0),
(1,0,0), (2,0,0), ..., (15,1
5,14) and (15,15,15) in the order of four grid points for each of CMYK.
H "," A, C, G, H "," A, E, F, H ",
"A, C, D, H", "A, E, G, H", "A, B,
F, H "is stored.

【0189】具体的には、まず(0,0,0)に対し
て、「C」成分に対応する格子点「A,B,D,H」の
格子点データ、「M」成分に対応する格子点「A,B,
D,H」の格子点データ、「Y」成分に対応する格子点
「A,B,D,H」の格子点データ、「K」成分に対応
する格子点「A,B,D,H」の格子点データを記憶さ
せる。
Specifically, first, for (0, 0, 0), the grid point data of the grid point “A, B, D, H” corresponding to the “C” component, and the grid point data corresponding to the “M” component The grid points "A, B,
D, H "grid point data," Y "component corresponding grid point data" A, B, D, H "grid point data," K "component corresponding grid point data" A, B, D, H " Is stored.

【0190】続いて、(0,0,0)に対して、「C」
成分に対応する格子点「A,C,G,H」の格子点デー
タ、「M」成分に対応する格子点「A,C,G,H」の
格子点データ、「Y」成分に対応する格子点「A,C,
G,H」の格子点データ、「K」成分に対応する格子点
「A,C,G,H」の格子点データを記憶させる。
Subsequently, “C” is assigned to (0, 0, 0).
Grid point data of grid points "A, C, G, H" corresponding to the component, grid point data of grid points "A, C, G, H" corresponding to the "M" component, and corresponding to the "Y" component The grid points "A, C,
G, H ”and the grid point data of the grid points“ A, C, G, H ”corresponding to the“ K ”component are stored.

【0191】次に、(0,0,0)に対して、「C」成
分に対応する格子点「A,E,F,H」の格子点デー
タ、「M」成分に対応する格子点「A,E,F,H」の
格子点データ、「Y」成分に対応する格子点「A,E,
F,H」の格子点データ、「K」成分に対応する格子点
「A,E,F,H」の格子点データを記憶させる。
Next, for (0, 0, 0), the grid point data of the grid point “A, E, F, H” corresponding to the “C” component, and the grid point “ A, E, F, H "grid point data, and grid points" A, E,
The grid point data of “F, H” and the grid point data of the grid points “A, E, F, H” corresponding to the “K” component are stored.

【0192】そして、最後に(15,15,15)に対
して、「C」成分に対応する格子点「A,B,F,H」
の格子点データ、「M」成分に対応する格子点「A,
B,F,H」の格子点データ、「Y」成分に対応する格
子点「A,B,F,H」の格子点データ、「K」成分に
対応する格子点「A,B,F,H」の格子点データを記
憶させる。
Finally, with respect to (15, 15, 15), the grid points “A, B, F, H” corresponding to the “C” component
Grid point data, grid points “A,
B, F, H ”grid point data, the grid point data“ A, B, F, H ”corresponding to the“ Y ”component, the grid point data“ A, B, F, H ”is stored.

【0193】このように記憶すれば、記憶すべき格子点
データは増加するが、「C」成分における格子点「A」
の参照アドレスHADR(A)が決定すれば、順次イン
クリメントするだけで、三角錐を構成する他の3つの格
子点「X1,X2,H」(但し、X1,X2は、格子点
「B〜G」のうちの2つ)の参照アドレスを得ることが
できる。このため、(RH,GH,BH)の格子点デー
タとしては、(0,0,0)〜(16,16,16)ま
での格子点データではなく、(0,0,0)〜(15,
15,15)までの格子点データを記憶するのみで良
い。
By storing in this way, the grid point data to be stored increases, but the grid point “A” in the “C” component
Is determined, the other three grid points “X1, X2, H” that form the triangular pyramid (where X1 and X2 are grid points “B to G”) are merely incremented sequentially. 2) reference address can be obtained. Therefore, the grid point data of (RH, GH, BH) is not (0, 0, 0) to (16, 16, 16), but (0, 0, 0) to (15). ,
It is only necessary to store the grid point data up to 15, 15).

【0194】よって、「C」成分における格子点「A」
の参照アドレスHADR(A)は、以下のように示すこ
とができる。 HADR(A)=(RH+GH*16+BH*16^2)*4*4*6+4*4*X =(RH+GH*16+BH*256)*96+16*X ………(式43)
Therefore, the grid point “A” in the “C” component
Of the reference address HADR (A) can be expressed as follows. HADR (A) = (RH + GH * 16 + BH * 16 ^ 2) * 4 * 4 * 6 + 4 * 4 * X = (RH + GH * 16 + BH * 256) * 96 + 16 * X …… … (Equation 43)

【0195】ところで、前記図37に示すように、三角
錐を構成する4つの格子点のうちの2つ格子点「A,
H」は、RGB信号の各下位4〔bit〕、すなわち
(RL,GL,BL)の各値の大小関係に無関係であ
る。換言すれば、格子点「A,H」の格子点データは、
前記[a]〜[f]の何れの三角錐の場合であっても、
三角錐補間の演算に必須の格子点データである。このた
め、三角錐補間に用いられる残りの2つ格子点が、格子
点「B〜G」の6つから選択される。つまり、三角錐補
間に必要な格子点データは、格子点「A,H」と格子点
「X1,X2」(但し、X1,X2は、格子点「B〜
G」のうちの2つ)との格子点データである。具体的に
は、格子点「B〜G」のうち、格子点「A,H」と組み
合わされる格子点は、「B,D」、「C,G」、「E,
F」、「C,D」、「E,G」、「B,F」である。
By the way, as shown in FIG. 37, two of the four lattice points constituting the triangular pyramid, "A,
“H” is irrelevant to the magnitude relationship between the lower 4 bits of the RGB signal, ie, the values of (RL, GL, BL). In other words, the grid point data of grid point “A, H” is
In any of the above triangular pyramids [a] to [f],
This is grid point data that is essential for triangular pyramid interpolation calculations. Therefore, the remaining two grid points used for triangular pyramid interpolation are selected from the six grid points “B to G”. That is, grid point data necessary for triangular pyramid interpolation is grid point “A, H” and grid point “X1, X2” (where X1, X2 are grid points “B to
G ”). Specifically, among the grid points “B to G”, the grid points combined with the grid point “A, H” are “B, D”, “C, G”, “E,
F "," C, D "," E, G "," B, F ".

【0196】そこで、まず格子点「A,H」の格子点デ
ータを1つの組みにして記憶させる。続いて、格子点
「B,D」の格子点データを1つの組みにして記憶させ
る。以下、同様に、格子点「C,G」、格子点「E,
F」、格子点「C,D」、格子点「E,G」、格子点
「B,F」の格子点データを、それぞれ1つの組みにし
て記憶させる。
Therefore, the grid point data of the grid point "A, H" is stored as one set. Subsequently, the grid point data of the grid points “B, D” is stored as one set. Hereinafter, similarly, the grid points “C, G” and the grid points “E,
F, the grid points "C, D", the grid points "E, G", and the grid point data "B, F" are stored as one set.

【0197】すなわち、図38に示すように、RGB信
号の各上位4〔bit〕を(RH,GH,BH)とする
と、(0,0,0)、(1,0,0)、(2,0,
0)、・・・、(15,15,14)、(15,15,
15)の格子点の順に、それぞれCMYK毎に、格子点
「A,H」、格子点「B,D」、格子点「C,G」、格
子点「E,F」、格子点「C,D」、格子点「E,
G」、格子点「B,F」の格子点データを1つの組みに
して記憶させる。
That is, as shown in FIG. 38, if each of the upper 4 bits of the RGB signal is (RH, GH, BH), (0, 0, 0), (1, 0, 0), (2) , 0,
0),..., (15, 15, 14), (15, 15,
15) In the order of the grid points, grid points “A, H”, grid points “B, D”, grid points “C, G”, grid points “E, F”, grid points “C, D ", the grid point" E,
G "and grid point data of grid points" B, F "are stored as one set.

【0198】具体的には、まず(0,0,0)に対し
て、「C」成分に対応する格子点「A,H」の格子点デ
ータ、「M」成分に対応する格子点「A,H」の格子点
データ、「Y」成分に対応する格子点「A,H」の格子
点データ、「K」成分に対応する格子点「A,H」の格
子点データを記憶させる。
Specifically, first, for (0, 0, 0), the grid point data of the grid point “A, H” corresponding to the “C” component and the grid point “A” corresponding to the “M” component , H ", the grid point data of the grid point" A, H "corresponding to the" Y "component, and the grid point data of the grid point" A, H "corresponding to the" K "component.

【0199】続いて、(1,0,0)に対して、「C」
成分に対応する格子点「B,D」の格子点データ、
「M」成分に対応する格子点「B,D」の格子点デー
タ、「Y」成分に対応する格子点「B,D」の格子点デ
ータ、「K」成分に対応する格子点「B,D」の格子点
データを記憶させる。
Subsequently, for (1, 0, 0), "C"
Grid point data of grid points "B, D" corresponding to the components,
Grid point data of grid points “B, D” corresponding to “M” component, grid point data of grid points “B, D” corresponding to “Y” component, grid point “B, D” corresponding to “K” component D ”is stored.

【0200】そして、最後に(15,15,15)に対
して、「C」成分に対応する格子点「B,F」の格子点
データ、「M」成分に対応する格子点「B,F」の格子
点データ、「Y」成分に対応する格子点「B,F」の格
子点データ、「K」成分に対応する格子点「B,F」の
格子点データを記憶させる。
Finally, for (15, 15, 15), the grid point data of the grid point “B, F” corresponding to the “C” component, and the grid point “B, F” corresponding to the “M” component , The grid point data of the grid point “B, F” corresponding to the “Y” component, and the grid point data of the grid point “B, F” corresponding to the “K” component.

【0201】このように記憶すれば、三角錐を構成する
4つの格子点「A,X1,X2,H」の格子点データを
連続して記憶させることはできないが、前記図37に示
す記憶順序に比べると、(RH,GH,BH)に対し
て、格子点「A,H」の格子点データは1つのみしか記
憶されない。その結果、前記図37に示す記憶順序に比
べて、記憶すべき格子点データを少なくすることができ
る。
With this storage, the grid point data of the four grid points "A, X1, X2, H" constituting the triangular pyramid cannot be stored continuously, but the storage order shown in FIG. In comparison with (RH, GH, BH), only one grid point data of the grid point “A, H” is stored. As a result, the number of grid point data to be stored can be reduced as compared with the storage order shown in FIG.

【0202】従って、「C」成分における格子点「A」
の参照アドレスHADR(A)は、以下のように示すこ
とができる。 HADR(A)=(RH+GH*16+BH*16^2)*16 =(RH+GH*16+BH*256)*16 ………(式44−1) 従って、「C」成分における格子点「H」の参照アドレ
スHADR(H)は、以下のように示すことができる。 HADR(H)=(RH+GH*16+BH*16^2)*16+1 =HADR(A)+1 ………(式44−2)
Therefore, the grid point “A” in the “C” component
Of the reference address HADR (A) can be expressed as follows. HADR (A) = (RH + GH * 16 + BH * 16 ^ 2) * 16 = (RH + GH * 16 + BH * 256) * 16 (Equation 44-1) Therefore, in the “C” component The reference address HADR (H) of the grid point “H” can be represented as follows. HADR (H) = (RH + GH * 16 + BH * 16 ^ 2) * 16 + 1 = HADR (A) +1 ............ (Formula 44-2)

【0203】また、「C」成分における格子点「B〜
G」の参照アドレスHADR(BG)は、以下のように
示すことができる。 HADR(BG)=(RH+GH*16+BH*16^2)*14*4+8*(X+1) =(RH+GH*16+BH*256)*56+8*(X+1) ………(式45)
The grid points “B to B” in the “C” component
The reference address HADR (BG) of "G" can be indicated as follows. HADR (BG) = (RH + GH * 16 + BH * 16 ^ 2) * 14 * 4 + 8 * (X + 1) = (RH + GH * 16 + BH * 256) * 56 + 8 * (X + 1) ...... (Equation 45)

【0204】さらに、格子点「B〜G」のうち、(R
L,GL,BL)の大小関係で決定される2つの格子点
を「X1,X2」とすると、「C」成分における格子点
「X1,X2」の参照アドレスHADR(X1),HA
DR(X2)は、以下のように示すことができる。 HADR(X1)=(RH+GH*16+BH*16^2)*14*4+8*(X+1) =(RH+GH*16+BH*256)*56+8*(X+1) ………(式46−1) HADR(X2)=(RH+GH*16+BH*16^2)*14*4+8*(X+1)+1 =(RH+GH*16+BH*256)*56+8*(X+1)+1 ………(式46−2)
Further, among the grid points "BG", (R
Assuming that two grid points determined by the magnitude relation of (L, GL, BL) are “X1, X2”, reference addresses HADR (X1), HA of the grid point “X1, X2” in the “C” component
DR (X2) can be expressed as follows. HADR (X1) = (RH + GH * 16 + BH * 16 ^ 2) * 14 * 4 + 8 * (X + 1) = (RH + GH * 16 + BH * 256) * 56 + 8 * (X + 1) ...... (Equation 46-1) HADR (X2) = (RH + GH * 16 + BH * 16 ^ 2) * 14 * 4 + 8 * (X + 1) +1 = (RH + GH * 16 + BH * 256) * 56 + 8 * (X + 1) +1 ............ (Equation 46-2)

【0205】なお、(式45)、(式46−1)及び
(式46−2)に示す「X」は、(RL,GL,BL)
の各値の大小関係で決定されるオフセットであって、具
体的には(RL,GL,BL)の各値の大小関係によ
り、前記(式42−1)〜(式42−6)の定義式で決
定される。また、オフセット「X」は、前記図36に示
す(RL,GL,BL)の各値に応じても決定される。
It should be noted that “X” shown in (Equation 45), (Equation 46-1) and (Equation 46-2) is (RL, GL, BL)
Is defined by the magnitude relation between the values of (RL), (GL, BL), and specifically, the definition of the above (Equation 42-1) to (Equation 42-6) by the magnitude relation of each value of (RL, GL, BL) Determined by the formula. The offset “X” is also determined according to each value of (RL, GL, BL) shown in FIG.

【0206】よって、「C」成分における格子点「A」
の参照アドレスHADR(A)は、前記(式44−1)
から算出することができる。また、「C」成分における
格子点「H」の参照アドレスHADR(H)は、前記
(式44−2)からも明らかなように、前記(式44−
1)をインクリメントすることにより得ることができ
る。さらに、「M,Y,K」における格子点「A,H」
も、前記(式44−1)を順次インクリメントすること
により得ることができる。
Therefore, the grid point “A” in the “C” component
The reference address HADR (A) of the formula
Can be calculated from Further, the reference address HADR (H) of the grid point “H” in the “C” component is, as apparent from the above (Equation 44-2), the above (Eq.
It can be obtained by incrementing 1). Further, the grid points “A, H” in “M, Y, K”
Can also be obtained by sequentially incrementing (Equation 44-1).

【0207】加えて、「C」成分における格子点「X
1」の参照アドレスHADR(X1)は、前記(式46
−1)にから算出することができる。また、他方の
「C」成分における格子点「X2」の参照アドレスHA
DR(X2)は、前記(式46−2)からも明らかなよ
うに、前記(式46−1)をインクリメントすることに
より得ることができる。さらに、「M,Y,K」におけ
る格子点「X1,X2」も、前記(式46−1)をイン
クリメントすることにより得ることができる。
In addition, the grid point “X” in the “C” component
The reference address HADR (X1) of “1”
-1) can be calculated. The reference address HA of the grid point “X2” in the other “C” component
DR (X2) can be obtained by incrementing (Equation 46-1) as is clear from (Equation 46-2). Further, the grid points “X1, X2” in “M, Y, K” can also be obtained by incrementing the above (Equation 46-1).

【0208】次に、「C,M,Y,K」成分の補間値I
PL(N)(但し、N=C,M,Y,K)を算出する方
法について説明する。読取部14から出力されるカラー
画像のデータ、すなわちRGB信号の各下位4〔bi
t〕を(RL,GL,BL)とし、その(RL,GL,
BL)の各値の大きい順に「LL,LM,LS」とする
と、「C,M,Y,K」成分の補間値IPL(N)(但
し、N=C,M,Y,K)は、前記第1の実施形態にお
ける立方体補間と同様に、以下のように示すことができ
る。 IPL(N)={(16-LL)*f(A) +(LL-LM)*f(X1) +(LM-LS)*f(X2) + LS *f(H) }/16 ………(式47)
Next, the interpolation value I of the “C, M, Y, K” component
A method of calculating PL (N) (where N = C, M, Y, K) will be described. The color image data output from the reading unit 14, that is, each of the lower 4 [bi] of the RGB signal
t] is (RL, GL, BL), and (RL, GL, BL)
Assuming that “LL, LM, LS” is in descending order of each value of BL), the interpolation value IPL (N) of the “C, M, Y, K” component (where N = C, M, Y, K) is Similar to the cubic interpolation in the first embodiment, the following can be shown. IPL (N) = {(16-LL) * f (A) + (LL-LM) * f (X1) + (LM-LS) * f (X2) + LS * f (H)} / 16 …… … (Equation 47)

【0209】なお、(式47)に示す「X1,X2」
は、(RL,GL,BL)の各値の大小関係で決定され
る格子点「B〜G」のうちの2つである。また、(式4
7)に示すf(A)、f(X1)、f(X2)及びf
(H)は、前記(式44−1)及び前記(式46−1)
に基づき、インクリメントによって得られる「C,M,
Y,K」成分における格子点「A,X1,X2,H」の
格子点データである。
Note that “X1, X2” shown in (Equation 47)
Are two of the grid points “B to G” determined by the magnitude relation of the values of (RL, GL, BL). Also, (Equation 4
F (A), f (X1), f (X2) and f shown in 7)
(H) is obtained by using the above (Formula 44-1) and the above (Formula 46-1)
"C, M, obtained by the increment
This is the grid point data of the grid point “A, X1, X2, H” in the “Y, K” component.

【0210】次に、三角錐補間において、変換点Pが例
外処理に該当する場合について説明する。前記第1の実
施形態における立方体補間の場合と同様に、三角錐補間
における例外処理に該当する場合とは、前記図8に示す
立方体において、RGB信号の各上位4〔bit〕を
(RH,GH,BH)とすると、その(RH,GH,B
H)の各値の何れかが「15」となる場合である。
Next, the case where the conversion point P corresponds to the exception processing in the triangular pyramid interpolation will be described. Similarly to the case of the cube interpolation in the first embodiment, the case corresponding to the exceptional processing in the triangular pyramid interpolation means that the upper 4 bits of the RGB signal in the cube shown in FIG. 8 are set to (RH, GH). , BH), the (RH, GH, B)
This is a case where any one of the values of H) is “15”.

【0211】従って、変換点Pが例外処理に該当する場
合は、前記第1の実施形態における立方体補間の場合と
同様に、以下の「7通り」である。 [1]RH=15,GH<15,BH<15(前記図8に示すE1) [2]RH<15,GH=15,BH<15(前記図8に示すE2) [3]RH<15,GH<15,BH=15(前記図8に示すE3) [4]RH=15,GH=15,BH<15(前記図8に示すE4) [5]RH<15,GH=15,BH=15(前記図8に示すE5) [6]RH=15,GH<15,BH=15(前記図8に示すE6) [7]RH=15,GH=15,BH=15(前記図8に示すE7)
Therefore, when the conversion point P corresponds to the exception processing, the following “seven patterns” are performed as in the case of the cubic interpolation in the first embodiment. [1] RH = 15, GH <15, BH <15 (E1 shown in FIG. 8) [2] RH <15, GH = 15, BH <15 (E2 shown in FIG. 8) [3] RH <15 , GH <15, BH = 15 (E3 shown in FIG. 8) [4] RH = 15, GH = 15, BH <15 (E4 shown in FIG. 8) [5] RH <15, GH = 15, BH = 15 (E5 shown in FIG. 8) [6] RH = 15, GH <15, BH = 15 (E6 shown in FIG. 8) [7] RH = 15, GH = 15, BH = 15 (FIG. 8 E7 shown in)

【0212】しかしながら、三角錐補間においては、立
方体をさらに6つに分割して三角錐を得ている。換言す
れば、前記図16に示すように、RGB信号の各下位4
〔bit〕を(RL,GL,BL)とすると、その(R
L,GL,BL)の各値の大小関係によって、立方体を
さらに6つに分割して三角錐を得ている。つまり、(R
L,GL,BL)が、以下に示す関係を有している場合
である。 [a]BL>GL>RLの場合 [b]GL>RL>BLの場合 [c]RL>BL>GLの場合 [d]GL≧BL≧RL(但し、RL≠GL)の場合 [e]RL≧GL≧BLの場合 [f]BL≧RL≧GL(但し、GL≠BL)の場合
However, in the triangular pyramid interpolation, the cube is further divided into six to obtain a triangular pyramid. In other words, as shown in FIG.
If [bit] is (RL, GL, BL), then (R
(L, GL, BL), the cube is further divided into six parts to obtain a triangular pyramid. That is, (R
L, GL, BL) have the following relationship. [A] When BL>GL> RL [b] When GL>RL> BL [c] When RL>BL> GL [d] When GL ≧ BL ≧ RL (where RL ≠ GL) [e] When RL ≧ GL ≧ BL [f] When BL ≧ RL ≧ GL (GL ≠ BL)

【0213】その結果、三角錐補間において、例外処理
に該当する場合は、(RH,GH,BH)の各値の取り
得る値によって「7通り」、加えて(RL,GL,B
L)の各値の大小関係によって、「6通り」ある。従っ
て、三角錐補間において、変換点Pが例外処理に該当す
る場合は、「7通り」*「6通り」=「42通り」とな
る。
As a result, in the triangular pyramid interpolation, if it corresponds to the exception processing, “RL”, “RL”, and “B” are added according to the possible values of each value of (RH, GH, BH).
There are “six types” depending on the magnitude relation of each value of L). Therefore, in the triangular pyramid interpolation, when the conversion point P corresponds to the exception processing, “7 patterns” * “6 patterns” = “42 patterns”.

【0214】そこで、まず[1]RH=15,GH<1
5,BH<15の場合であって、且つ、[e]RL≧G
L≧BLの場合における重み係数W(w1〜w4)を算
出する。図39には、RH=15,GH<15,BH<
15の場合であって、且つ、RL≧GL≧BLの場合に
おける三角錐を示している。
Therefore, [1] RH = 15, GH <1
5, BH <15, and [e] RL ≧ G
The weight coefficient W (w1 to w4) in the case of L ≧ BL is calculated. FIG. 39 shows that RH = 15, GH <15, BH <
15 shows a triangular pyramid in the case of RL ≧ GL ≧ BL.

【0215】そこで、図40(a)〜(d)に示すよう
に、前記図39に示す三角錐を変換点Pを基準に、さら
に4つの三角錐に分割して、それぞれの三角錐の体積V
a〜Vdを算出する。先ず、図40(a)に示す三角錐
の体積Vaは、以下のように示すことができる。 Va=1/3*(16*16)/2*(15-RL) =1/6*16*15*(16-16*RL/15) ………(式48−1)
Therefore, as shown in FIGS. 40 (a) to (d), the triangular pyramid shown in FIG. 39 is further divided into four triangular pyramids based on the transformation point P, and the volume of each triangular pyramid is V
a to Vd are calculated. First, the volume Va of the triangular pyramid shown in FIG. 40A can be shown as follows. Va = 1/3 * (16 * 16) / 2 * (15-RL) = 1/6 * 16 * 15 * (16-16 * RL / 15) ............ (Equation 48-1)

【0216】次に、図40(c)に示す三角錐を、図4
1(a)に示す。この図41(a)に示す三角錐を右方
向から見ると、図41(b)のように示すことができ
る。このため、図40(c)に示す三角錐の体積Vc
は、以下のように示すことができる。 Vc=1/3*(16*15*SQRT(2))/2*(GL-BL)/SQRT(2) =1/6*16*15*(GL-BL) ………(式48−2)
Next, the triangular pyramid shown in FIG.
This is shown in FIG. When the triangular pyramid shown in FIG. 41 (a) is viewed from the right, it can be shown as shown in FIG. 41 (b). For this reason, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as follows. Vc = 1/3 * (16 * 15 * SQRT (2)) / 2 * (GL-BL) / SQRT (2) = 1/6 * 16 * 15 * (GL-BL) ............ (Equation 48- 2)

【0217】次に、図40(d)に示す三角錐の体積V
dは、以下のように示すことができる。 Vd=1/3*(16*15)/2*BL =1/6*16*15*BL ………(式48−3)
Next, the volume V of the triangular pyramid shown in FIG.
d can be expressed as follows. Vd = 1/3 * (16 * 15) / 2 * BL = 1/6 * 16 * 15 * BL (Equation 48-3)

【0218】以上、(式48−1)〜(式48−3)よ
り、図40(b)に示す三角錐の体積Vbは、以下のよ
うに示すことができる。 Vb=全体積-(Va+Vc+Vd) =1/6*16*{16*15-16*(15-RL)-15*(GL-BL)-15*BL} =1/6*16*15*(16*RL/15-GL) ………(式48−4)
From the above (Equation 48-1) to (Equation 48-3), the volume Vb of the triangular pyramid shown in FIG. 40B can be expressed as follows. Vb = Overall product-(Va + Vc + Vd) = 1/6 * 16 * {16 * 15-16 * (15-RL) -15 * (GL-BL) -15 * BL} = 1/6 * 16 * 15 * (16 * RL / 15-GL) ............ (Equation 48-4)

【0219】その結果、図40(a)〜(d)に示す三
角錐の体積Va〜Vdの比は、以下のように示すことが
できる。 Va:Vb:Vc:Vd=16-16*RL/15:16*RL/15-GL:GL-BL:BL ………(式48−5) よって、RGB信号の下位4〔bit〕、すなわち(R
L,GL,BL)で示される体積比Va:Vb:Vc:
Vdが、三角錐における重み係数Wとなる。
As a result, the ratio of the volumes Va to Vd of the triangular pyramids shown in FIGS. 40A to 40D can be expressed as follows. Va: Vb: Vc: Vd = 16-16 * RL / 15: 16 * RL / 15-GL: GL-BL: BL (Equation 48-5) Therefore, the lower 4 bits of the RGB signal, that is, (R
L, GL, BL) by volume ratio Va: Vb: Vc:
Vd is the weight coefficient W in the triangular pyramid.

【0220】従って、RL≧GL≧BLの関係と、前記
(式30−1)〜(式30−4)とにより、重み係数W
(w1〜w4)は、以下のように示すことができる。 w1:w2:w3:w4=16-16*RL/15:16*RL/15-GL:GL-BL:BL ………(式48−6)
Therefore, according to the relationship of RL ≧ GL ≧ BL and (Equation 30-1) to (Equation 30-4), the weight coefficient W
(W1 to w4) can be shown as follows. w1: w2: w3: w4 = 16-16 * RL / 15: 16 * RL / 15-GL: GL-BL: BL (Equation 48-6)

【0221】次に、[5]RH<15,GH=15,B
H=15の場合であって、且つ、[c]RL>BL>G
Lの場合における重み係数W(w1〜w4)を算出す
る。図42には、RH<15,GH=15,BH=15
の場合であって、且つ、RL>BL>GLの場合におけ
る三角錐を示している。
Next, [5] RH <15, GH = 15, B
H = 15 and [c] RL>BL> G
The weight coefficient W (w1 to w4) in the case of L is calculated. FIG. 42 shows that RH <15, GH = 15, BH = 15
And a triangular pyramid in the case of RL>BL> GL.

【0222】そこで、図43(a)〜(d)に示すよう
に、前記図42に示す三角錐を変換点Pを基準に、さら
に4つの三角錐に分割して、それぞれの三角錐の体積V
a〜Vdを算出する。先ず、図43(a)に示す三角錐
の体積Vaは、以下のように示すことができる。 Va=1/3*(15*15)/2*(16-RL) =1/6*15*15*(16-RL) ………(式49−1)
Therefore, as shown in FIGS. 43 (a) to 43 (d), the triangular pyramid shown in FIG. 42 is further divided into four triangular pyramids based on the conversion point P, and the volume of each triangular pyramid is V
a to Vd are calculated. First, the volume Va of the triangular pyramid shown in FIG. 43A can be expressed as follows. Va = 1/3 * (15 * 15) / 2 * (16-RL) = 1/6 * 15 * 15 * (16-RL) ... (Equation 49-1)

【0223】次に、図43(c)に示す三角錐を、図4
4(a)に示す。この図44(a)に示す三角錐を右方
向から見ると、図44(b)のように示すことができ
る。このため、図43(c)に示す三角錐の体積Vc
は、以下のように示すことができる。 Vc=1/3*(16*15*SQRT(2))/2*(BL-GL)/SQRT(2) =1/6*15*15*(16*BL/15-16*GL/15) ………(式49−2)
Next, the triangular pyramid shown in FIG.
This is shown in FIG. When the triangular pyramid shown in FIG. 44 (a) is viewed from the right, it can be shown as shown in FIG. 44 (b). Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as follows. Vc = 1/3 * (16 * 15 * SQRT (2)) / 2 * (BL-GL) / SQRT (2) = 1/6 * 15 * 15 * (16 * BL / 15-16 * GL / 15 ) (Equation 49-2)

【0224】次に、図43(d)に示す三角錐の体積V
dは、以下のように示すことができる。 Vd=1/3*(16*15)/2*GL =1/6*15*15*(16*GL/15) ………(式49−3) 以上、(式49−1)〜(式49−3)より、図43
(b)に示す三角錐の体積Vbは、以下のように示すこ
とができる。 Vb=全体積-(Va+Vc+Vd) =1/6*15*{16*15-15*(16-RL)-16*(BL-GL)-16*GL} =1/6*15*15*(RL-16*BL/15) ………(式49−4)
Next, the volume V of the triangular pyramid shown in FIG.
d can be expressed as follows. Vd = 1/3 * (16 * 15) / 2 * GL = 1/6 * 15 * 15 * (16 * GL / 15) (Equation 49-3) From Equation 49-3), FIG.
The volume Vb of the triangular pyramid shown in (b) can be shown as follows. Vb = Overall product-(Va + Vc + Vd) = 1/6 * 15 * {16 * 15-15 * (16-RL) -16 * (BL-GL) -16 * GL} = 1/6 * 15 * 15 * (RL-16 * BL / 15) ............ (Equation 49-4)

【0225】その結果、図43(a)〜(d)に示す三
角錐の体積Va〜Vdの比は、以下のように示すことが
できる。 Va:Vb:Vc:Vd=16-RL:RL-16*BL/15 :16*BL/15-16*GL/15:16*GL/15 ………(式49−5) よって、RGB信号の下位4〔bit〕、すなわち(R
L,GL,BL)で示される体積比Va:Vb:Vc:
Vdが、三角錐における重み係数Wとなる。
As a result, the ratio of the volumes Va to Vd of the triangular pyramids shown in FIGS. 43A to 43D can be expressed as follows. Va: Vb: Vc: Vd = 16-RL: RL-16 * BL / 15: 16 * BL / 15-16 * GL / 15: 16 * GL / 15 (Equation 49-5) Therefore, the RGB signal The lower 4 bits of (R)
L, GL, BL) by volume ratio Va: Vb: Vc:
Vd is the weight coefficient W in the triangular pyramid.

【0226】従って、RL>BL>GLの関係と、前記
(式30−1)〜(式30−4)とにより、重み係数W
(w1〜w4)は、以下のように示すことができる。 w1:w2:w3:w4=16-RL:RL-16*BL/15 :16*BL/15-16*GL/15:16*GL/15 ………(式49−6)
Therefore, according to the relationship of RL>BL> GL and (Equation 30-1) to (Equation 30-4), the weight coefficient W
(W1 to w4) can be shown as follows. w1: w2: w3: w4 = 16-RL: RL-16 * BL / 15: 16 * BL / 15-16 * GL / 15: 16 * GL / 15 ............ (Equation 49-6)

【0227】ここで、上記2つの例に基づいて、例外処
理に該当しない場合の重み係数W(w1〜w4)と、例
外処理に該当する場合の重み係数W(w1〜w4)とを
比較検討する。
Here, based on the above two examples, the weight coefficient W (w1 to w4) when the exception processing is not applied and the weight coefficient W (w1 to w4) when the exception processing is applied are compared and examined. I do.

【0228】具体的には、例外処理に該当しない場合に
おけるRL≧GL≧BLの場合の重み係数W(w1〜w
4)を示す前記(式39−6)と、例外処理に該当する
場合におけるRL≧GL≧BLの場合の重み係数W(w
1〜w4)を示す前記(式48−6)とを比較検討する
と、(式48−6)は、(式39−6)の「RL」に
「16*RL/15」を代入したものであることが分か
る。
More specifically, the weighting factor W (w1 to w
(4) and the weighting coefficient W (w in the case of RL ≧ GL ≧ BL in the case of exception processing.
Comparing with (Equation 48-6) showing (1 to w4), (Equation 48-6) is obtained by substituting “16 * RL / 15” for “RL” in (Equation 39-6). You can see that there is.

【0229】また、例外処理に該当しない場合における
RL>BL>GLの場合の重み係数W(w1〜w4)を
示す前記(式37−6)と、例外処理に該当する場合に
おけるRL>BL>GLの場合の重み係数W(w1〜w
4)を示す前記(式49−6)とを比較検討すると、
(式49−6)は、(式37−6)の「GL」に「16
*GL/15」を、「BL」に「16*BL/15」を
それぞれ代入したものであることが分かる。
The above equation (37-6) indicating the weight coefficient W (w1 to w4) when RL>BL> GL when the exception processing does not apply, and RL>BL> when the exception processing applies. Weight coefficient W (w1 to w
Comparing and examining the above (Equation 49-6) showing 4),
(Equation 49-6) is obtained by adding “16” to “GL” of (Equation 37-6).
It can be seen that * GL / 15 is substituted for "16 * BL / 15" for "BL".

【0230】以上、2つの例に示す(式39−6)及び
(式48−6)と、(式37−6)及び(式49−6)
とからも類推されるように、三角錐補間の例外処理にお
いては、例外処理に該当しない場合の重み係数W(w1
〜w4)を示す前記(式35〜40−6)に、(RH,
GH,BH)の各値の取り得る値に基づいて、以下に示
す関係式を代入することで得られることが分かる。
As described above, (Equation 39-6) and (Equation 48-6), (Equation 37-6) and (Equation 49-6) shown in the two examples
As can be inferred from the above, in the exceptional processing of the triangular pyramid interpolation, the weight coefficient W (w1
To w4) (Formulas 35 to 40-6), (RH,
GH, BH) can be obtained by substituting the following relational expressions based on the possible values of the respective values.

【0231】 [1]RH=15,GH<15,BH<15の場合 RL←16*RL/15 ………(式50) [2]RH<15,GH=15,BH<15の場合 GL←16*GL/15 ………(式51) [3]RH<15,GH<15,BH=15の場合 BL←16*BL/15 ………(式52) [4]RH=15,GH=15,BH<15の場合 RL←16*RL/15 ………(式53−1) GL←16*GL/15 ………(式53−2)[1] When RH = 15, GH <15, BH <15 RL ← 16 * RL / 15 (Equation 50) [2] GL when RH <15, GH = 15, BH <15 ← 16 * GL / 15 (Equation 51) [3] When RH <15, GH <15, BH = 15 BL ← 16 * BL / 15 (Equation 52) [4] RH = 15, When GH = 15, BH <15 RL ← 16 * RL / 15 (Equation 53-1) GL ← 16 * GL / 15 (Equation 53-2)

【0232】 [5]RH<15,GH=15,BH=15の場合 GL←16*GL/15 ………(式54−1) BL←16*BL/15 ………(式54−2) [6]RH=15,GH<15,BH=15の場合 RL←16*RL/15 ………(式55−1) BL←16*BL/15 ………(式55−2) [7]RH=15,GH=15,BH=15の場合 RL←16*RL/15 ………(式56−1) GL←16*GL/15 ………(式56−2) BL←16*BL/15 ………(式56−3)[5] When RH <15, GH = 15, BH = 15 GL ← 16 * GL / 15 (Expression 54-1) BL ← 16 * BL / 15 (Expression 54-2) [6] When RH = 15, GH <15, BH = 15 RL ← 16 * RL / 15 (Equation 55-1) BL ← 16 * BL / 15 (Equation 55-2) 7] When RH = 15, GH = 15, BH = 15 RL ← 16 * RL / 15 (Equation 56-1) GL ← 16 * GL / 15 (Equation 56-2) BL ← 16 * BL / 15 ............ (Equation 56-3)

【0233】次に、変換点Pが例外処理に該当するか否
かを判断する方法について、検討する。変換点Pが例外
処理に該当する場合は、前記第1の実施形態における立
方体補間の場合と同様に、変換点PにおけるRGB信号
の各上位4〔bit〕、すなわち(RH,GH,BH)
の各値の何れかが「15」か否かで判断することができ
る。
Next, a method of determining whether the conversion point P corresponds to exception processing will be discussed. When the conversion point P corresponds to the exception processing, the upper 4 bits of the RGB signal at the conversion point P, that is, (RH, GH, BH), as in the case of the cubic interpolation in the first embodiment.
Can be determined based on whether or not any of the respective values is “15”.

【0234】その結果、前記第1の実施形態における立
方体補間の場合と同様にして判断することができる。具
体的には、前記図9に示すように、例外処理に該当する
か否かを示す値を「Z」とし、(RH,GH,BH)に
対する「Z」の値を記憶させれば、この「Z」の値に基
づいて、例外処理に該当するか否かを判断することがで
きる。従って、例外処理に該当するか否かを示す「Z」
の参照アドレスZHADR(Z)は、前記(式15)と
同様に示すことができる。
As a result, the determination can be made in the same manner as in the case of the cubic interpolation in the first embodiment. Specifically, as shown in FIG. 9, the value indicating whether or not the exception processing is performed is “Z”, and the value of “Z” for (RH, GH, BH) is stored. Based on the value of “Z”, it can be determined whether or not the process corresponds to exception processing. Therefore, "Z" indicating whether or not it corresponds to exception processing
The reference address ZHADR (Z) can be expressed in the same manner as in the above (Equation 15).

【0235】次に、例外処理に該当する場合における重
み係数W(w1〜w4)を記憶させる順序について、図
面を用いて説明する。図45に示すように、例外処理に
該当するか否かを示す値を「Z」、読取部14から出力
されるカラー画像のデータ、すなわちRGB信号の各下
位4〔bit〕を(RL,GL,BL)、重み係数を
「W」とし、各Z(=0〜7)に対応する(RL,G
L,BL)を記憶させる。また、(RL,GL,BL)
に対応する重み係数Wをw1〜w4の順に連続して記憶
させる。
Next, the order of storing the weighting factors W (w1 to w4) in the case of exception processing will be described with reference to the drawings. As shown in FIG. 45, the value indicating whether the process corresponds to the exception process is “Z”, and the data of the color image output from the reading unit 14, that is, the lower 4 bits of the RGB signal are (RL, GL). , BL), the weighting factor is “W”, and (RL, G) corresponding to each Z (= 0 to 7)
(L, BL). Also, (RL, GL, BL)
Are successively stored in the order of w1 to w4.

【0236】具体的には、Z=「0」の場合における
(0,0,0)に対して、重み係数W(w1〜w4)を
記憶させる。続いて、(1,0,0)に対して、重み係
数W(w1〜w4)を記憶させる。そして、最後に、Z
=「7」の場合における(15,15,15)に対し
て、重み係数W(w1〜w4)を記憶させる。
Specifically, a weighting coefficient W (w1 to w4) is stored for (0, 0, 0) when Z = "0". Subsequently, a weighting coefficient W (w1 to w4) is stored for (1, 0, 0). And finally, Z
Weight coefficients W (w1 to w4) are stored for (15, 15, 15) in the case of = “7”.

【0237】このため、例外処理を含む重み係数W1の
参照アドレスELADR(w1)は、以下のように示す
ことができる。 ELADR(w1)=(RL+GL*16+BL*16^2)*8+Z*16^3*4 =(RL+GL*16+BL*256)*8+Z*4096*4 ………(式57−1)
For this reason, the reference address ELADR (w1) of the weight coefficient W1 including the exception processing can be expressed as follows. ELADR (w1) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 4 = (RL + GL * 16 + BL * 256) * 8 + Z * 4096 * 4 …… ... (Equation 57-1)

【0238】また、例外処理を含む重み係数w2〜w4
の参照アドレスELADR(N)(但し、N=w2〜w
4)は、以下のように示すことができる。 ELADR(w2)=(RL+GL*16+BL*16^2)*8+Z*16^3*4+1 =ELADR(w1)+1 ………(式57−2) ELADR(w3)=(RL+GL*16+BL*16^2)*8+Z*16^3*4+2 =ELADR(w1)+2 ………(式57−3) ELADR(w4)=(RL+GL*16+BL*16^2)*8+Z*16^3*4+3 =ELADR(w1)+3 ………(式57−4)
Also, weighting factors w2 to w4 including exception processing
Reference address ELADR (N) (where N = w2 to w
4) can be shown as follows. ELADR (w2) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 4 + 1 = ELADR (w1) +1 ............ (Formula 57-2) ELADR (w3) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 4 + 2 = ELADR (w1) +2 ... (Equation 57-3) ELADR (w4) = (RL + GL * 16 + BL * 16 ^ 2) * 8 + Z * 16 ^ 3 * 4 + 3 = ELADR (w1) +3 ... (Equation 57-4)

【0239】従って、このように記憶すれば、重み係数
w1の参照アドレスELADR(w1)が分かれば、3
回インクリメントするだけで、すべての重み係数W(w
1〜w4)を順次得ることができる。
Therefore, by storing in this way, if the reference address ELADR (w1) of the weight coefficient w1 is known, 3
By simply incrementing the number of times, all the weighting factors W (w
1 to w4) can be sequentially obtained.

【0240】次に、例外処理において、「C,M,Y,
K」成分の補間値IPL(N)(但し、N=C,M,
Y,K)を算出する方法について説明する。すなわち、
例外処理においては、(RH,GH,BH)の各値の取
り得る値によって「7通り」、(RL,GL,BL)の
各値の大小関係によって「6通り」ある。従って、例外
処理に該当する場合は、例外処理に該当しない場合の補
間値IPL(N)を示す前記(式47)に、(RH,G
H,BH)の各値の取り得る値に基づいて決定される前
記(式50)〜(式56−3)の関係式を代入すること
により得ることができる。
Next, in the exception processing, “C, M, Y,
K ”component interpolation value IPL (N) (where N = C, M,
(Y, K) will be described. That is,
In the exception processing, there are "seven patterns" depending on the possible values of (RH, GH, BH) and "six patterns" depending on the magnitude relationship of the values of (RL, GL, BL). Therefore, when the exception processing is applied, (RH, G) is added to the above (Equation 47) indicating the interpolation value IPL (N) when the exception processing is not applied.
H, BH) can be obtained by substituting the relational expressions (Equation 50) to (Equation 56-3) determined based on the possible values of the respective values of (H, BH).

【0241】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、前記第1の実施形
態における図11に示すフローチャートを用いて説明す
る。なお、この動作は、ROM12に記憶されたプログ
ラムに基づき、MPU11の制御により実行される。
Next, in the facsimile machine 1, when the RGB signal of the conversion point P is output from the reading unit 14,
The operation of the color conversion processing for pixels will be described with reference to the flowchart shown in FIG. 11 in the first embodiment. This operation is performed under the control of the MPU 11 based on a program stored in the ROM 12.

【0242】図11に示すステップS1においては、変
換点PのRGB信号から各下位4〔bit〕、すなわち
(RL,GL,BL)が抽出される。ステップS2にお
いては、前記ステップS1において抽出された(RL,
GL,BL)に基づいて、重み係数(w1)の参照アド
レスLADR(w1)が算出される。具体的には、前記
(式41−1)に基づいて、重み係数w1の参照アドレ
スLADR(w1)が算出される。
In step S1 shown in FIG. 11, the lower 4 bits, ie, (RL, GL, BL), are extracted from the RGB signal at the conversion point P. In step S2, (RL,
GL, BL), the reference address LADR (w1) of the weight coefficient (w1) is calculated. Specifically, the reference address LADR (w1) of the weight coefficient w1 is calculated based on the above (Equation 41-1).

【0243】ステップS3においては、変換点Pを取り
囲む三角錐における重み係数W(w1〜w4)がROM
12から順次読み出される。具体的には、前記ステップ
S2において算出された参照アドレスLADR(w1)
から順次インクリメントされて、すべての重み係数W
(w1〜w4)が、前記図35に示す重み係数W(w1
〜w4)のLUTから順次読み出される。
In step S3, the weighting factors W (w1 to w4) of the triangular pyramid surrounding the transformation point P are stored in the ROM.
12 are sequentially read. Specifically, the reference address LADR (w1) calculated in step S2
Are sequentially incremented, and all weighting factors W
(W1 to w4) are weighting factors W (w1
To w4) are sequentially read from the LUT.

【0244】ステップS4においては、変換点PのRG
B信号から各上位4〔bit〕、すなわち(RH,G
H,BH)が抽出される。ステップS5においては、前
記ステップS4において抽出された(RH,GH,B
H)に基づいて、「C」成分における格子点「A」の参
照アドレスHADR(A)が算出される。具体的には、
まず、図36に示す(RL,GL,BL)の各値の大小
関係で決定されるオフセット「X」が読み出される。そ
して、前記(式43)に基づいて、「C」成分における
格子点「A」の参照アドレスHADR(A)が算出され
る。
In step S4, the RG of the conversion point P
The upper 4 bits from the B signal, that is, (RH, G
H, BH) are extracted. In step S5, (RH, GH, B
Based on H), the reference address HADR (A) of the grid point “A” in the “C” component is calculated. In particular,
First, the offset “X” determined by the magnitude relationship between the values of (RL, GL, BL) shown in FIG. 36 is read. Then, the reference address HADR (A) of the grid point “A” in the “C” component is calculated based on the above (Equation 43).

【0245】ステップS6においては、変換点Pを取り
囲む三角錐における格子点「A,X1,X2,H」(但
し、X1,X2は、格子点「B〜G」のうちの2つ、換
言すれば前記ステップS5におけるオフセット「X」で
決定される格子点「B〜G」のうちの2つ)がROM1
2から順次読み出される。具体的には、前記ステップS
5において算出された「C」成分における格子点「A」
の参照アドレスHADR(A)から順次インクリメント
されて、「C」成分における格子点「A,X1,X2,
H」の格子点データが、前記図37に示す格子点データ
のLUTから順次読み出される。
In step S6, the grid points "A, X1, X2, H" in the triangular pyramid surrounding the conversion point P (where X1 and X2 are two of the grid points "B to G", in other words, For example, two of the grid points "BG" determined by the offset "X" in step S5 are stored in the ROM1.
2 are sequentially read. Specifically, the step S
Grid point “A” in the “C” component calculated in 5
Are sequentially incremented from the reference address HADR (A) of the grid point “A, X1, X2,
The grid point data “H” is sequentially read from the grid point data LUT shown in FIG.

【0246】ステップS7においては、変換点Pにおけ
る補間演算が行われる。具体的には、前記ステップS3
において読み出された重み係数W(w1〜w4)と、前
記ステップS6において読み出された「C」成分におけ
る格子点「A,X1,X2,H」の格子点データとに基
づいて、前記(式47)により、変換点Pにおける補間
演算が行われる。
In step S7, an interpolation operation at the conversion point P is performed. Specifically, step S3
Based on the weighting factors W (w1 to w4) read out at step S6 and the grid point data of the grid points “A, X1, X2, H” in the “C” component read at step S6. The interpolation operation at the conversion point P is performed by Expression 47).

【0247】ステップS8においては、次成分があるか
否かが判断される。具体的には、「C」成分の補間演算
を行った場合には「M」成分、「M」成分の補間演算を
行った場合には「Y」成分、「Y」成分の補間演算を行
った場合には「K」成分があるか否かが判断される。そ
して、次成分がある場合には、ステップS9に移行す
る。一方、次成分がない場合、つまり全ての「C,M,
Y,K」成分について、補間演算が終了した場合には、
この処理を終了する。
In step S8, it is determined whether there is a next component. Specifically, the interpolation operation of the “M” component is performed when the interpolation operation of the “C” component is performed, and the interpolation operation of the “Y” component and the “Y” component is performed when the interpolation operation of the “M” component is performed. In this case, it is determined whether or not there is a “K” component. If there is a next component, the process proceeds to step S9. On the other hand, when there is no next component, that is, all “C, M,
When the interpolation calculation is completed for the “Y, K” components,
This processing ends.

【0248】ステップS9においては、次成分における
格子点「A」の参照アドレスが算出される。具体的に
は、前記図37に示したように、「C,M,Y,K」成
分に対して格子点「A,X1,X2,H」の格子点デー
タが記憶されているため、前記ステップS5において算
出された「C」成分における格子点「A」の参照アドレ
スHADR(A)を順次インクリメントするだけであ
る。そして、ステップS6〜ステップS9が繰り返し実
行されて、変換点Pにおける「M,Y,K」の補間演算
が行われる。すなわち、ステップS6〜ステップS9が
繰り返し実行されて、変換点Pにおける「C,M,Y,
K」成分の補間演算が行われ、変換点PのRGB信号が
CMYK信号に変換される。なお、一般的に、変換する
画素は多数あるので、読み取ったすべての画素に対し
て、この処理が繰り返し実行される。
In step S9, the reference address of grid point "A" in the next component is calculated. Specifically, as shown in FIG. 37, the grid point data of the grid points “A, X1, X2, H” is stored for the “C, M, Y, K” components. It only needs to sequentially increment the reference address HADR (A) of the grid point “A” in the “C” component calculated in step S5. Then, steps S6 to S9 are repeatedly executed, and the interpolation calculation of “M, Y, K” at the conversion point P is performed. That is, steps S6 to S9 are repeatedly executed, and “C, M, Y,
The interpolation operation of the “K” component is performed, and the RGB signals at the conversion point P are converted into CMYK signals. In general, since there are a large number of pixels to be converted, this process is repeatedly performed on all the read pixels.

【0249】以上、詳述したように第4の実施形態によ
れば、前記第1の実施形態の作用、効果に加えて、次の
ような作用、効果を得ることができる。 (1)この第4の実施形態においては、図38に示す格
子点データのLUTを用いずに、あえて記憶すべき格子
点データが多い図37に示す格子点データのLUTを用
いている。それは、格子点「A」の参照アドレスHAD
R(A)を算出すれば、順次インクリメントするだけ
で、三角錐を構成する他の4つの格子点における格子点
データを得られるからである。換言すれば、図38に示
す格子点データのLUTを用いた場合は、前記(式44
−1)及び(式45)に基づいて、格子点「A」の参照
アドレスHADR(A)及び格子点「X1」の参照アド
レスHADR(X1)を算出しなければならない。そし
て、これらの参照アドレスHADR(A)及びHADR
(X1)からインクリメントを行い、格子点「H」及び
「X2」の格子点データを得なければならない。このた
め、あえて図37に示す格子点データのLUTを用いて
いるのである。従って、三角錐補間の場合であっても、
ソフトウェアを用いて高速に色変換処理を行うことがで
きる。
As described above in detail, according to the fourth embodiment, the following operation and effect can be obtained in addition to the operation and effect of the first embodiment. (1) In the fourth embodiment, the LUT of the lattice point data shown in FIG. 37, which has a large amount of lattice point data to be stored, is used instead of the LUT of the lattice point data shown in FIG. It is the reference address HAD of the grid point "A".
This is because, if R (A) is calculated, grid point data at the other four grid points forming the triangular pyramid can be obtained only by sequentially incrementing. In other words, when the LUT of the grid point data shown in FIG.
-1) and (Equation 45), the reference address HADR (A) of the grid point “A” and the reference address HADR (X1) of the grid point “X1” must be calculated. Then, these reference addresses HADR (A) and HADR (A)
The increment must be performed from (X1) to obtain grid point data of grid points “H” and “X2”. For this reason, the LUT of the grid point data shown in FIG. 37 is used. Therefore, even in the case of triangular pyramid interpolation,
Color conversion processing can be performed at high speed using software.

【0250】(2)この第4の実施形態においては、三
角錐補間を用いているため、補間演算処理に必要なデー
タは、格子点データ及び重み係数Wともそれぞれ4つで
ある。すなわち、格子点「A,X1,X2,H」の格子
点データ及び重み係数W(w1〜w4)である。このた
め、前記第1〜3の実施形態における立方体補間の場合
に比べて、変換点Pの補間演算結果の精度は劣るもの
の、読み出すデータ量が少なくなるため、一層高速に色
変換処理を行うことができる。
(2) In the fourth embodiment, since triangular pyramid interpolation is used, the data required for the interpolation calculation process is four for each of the lattice point data and the weight coefficient W. That is, the grid point data of the grid points “A, X1, X2, H” and the weighting factors W (w1 to w4). For this reason, although the accuracy of the interpolation calculation result of the conversion point P is inferior to the case of the cubic interpolation in the first to third embodiments, the amount of data to be read is reduced, so that the color conversion processing can be performed at higher speed. Can be.

【0251】(3)前記(式47)からも明らかなよう
に、三角錐補間の演算処理においては、積和演算が4
〔回〕行われている。このため、前記第1〜3の実施形
態における立方体補間の場合に比べて、一層高速に色変
換処理を行うことができる。
(3) As is clear from the above (Equation 47), in the calculation processing of triangular pyramid interpolation, the product-sum
[Times] Have been performed. Therefore, the color conversion processing can be performed at a higher speed than in the case of the cubic interpolation in the first to third embodiments.

【0252】(4)三角錐補間の場合であっても、前記
第1の実施形態における立方体補間で用いられた図11
に示すフローチャートの処理を適用することができる。
このため、図11に示すフローチャートの処理は、種々
の補間演算法に対応することが容易である。
(4) Even in the case of triangular pyramid interpolation, FIG. 11 used in the cubic interpolation in the first embodiment is used.
Can be applied.
Therefore, the processing of the flowchart shown in FIG. 11 can easily correspond to various interpolation calculation methods.

【0253】[第5の実施形態]…三角錐補間(4点補
間)の場合 この第5の実施形態において、前記第1の実施形態と同
様な構成については、前記第1の実施形態と同一の符号
を付して説明を省略する。この第5の実施形態は、前記
第4の実施形態において、例外処理に該当する場合を考
慮したものである。従って、この第5の実施形態におい
て、ROM12は、図9に示す変換点Pが例外処理に該
当するか否かを判断するためのLUT、図36に示す
(RL,GL,BL)の各値の大小関係で決定されるオ
フセットのLUT、図37に示す格子点データのLUT
及び図45に示す例外処理に該当する場合を含む重み係
数W(w1〜w4)のLUTを記憶する。
[Fifth Embodiment] In the Case of Triangular Pyramid Interpolation (Four-Point Interpolation) In the fifth embodiment, the configuration similar to that of the first embodiment is the same as that of the first embodiment. And the description is omitted. In the fifth embodiment, a case corresponding to exception processing in the fourth embodiment is considered. Therefore, in the fifth embodiment, the ROM 12 stores the LUT for determining whether the conversion point P shown in FIG. 9 corresponds to the exception processing, and the values of (RL, GL, BL) shown in FIG. LUT determined by the magnitude relation of LUT and LUT of grid point data shown in FIG.
And the LUT of the weight coefficient W (w1 to w4) including the case corresponding to the exception processing shown in FIG.

【0254】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、図12及び図13
に示すフローチャートを用いて説明する。なお、この動
作は、ROM12に記憶されたプログラムに基づき、M
PU11の制御により実行される。
Next, in the facsimile machine 1, when the RGB signal of the conversion point P is output from the reading unit 14,
FIGS. 12 and 13 show the operation of the color conversion processing for the pixels.
This will be described with reference to the flowchart shown in FIG. This operation is performed based on a program stored in the ROM 12 based on M
It is executed under the control of the PU 11.

【0255】図12に示すステップS11においては、
変換点PのRGB信号から各上位4〔bit〕、すなわ
ち(RH,GH,BH)が抽出される。ステップS12
においては、前記ステップS11において抽出された
(RH,GH,BH)に基づいて、変換点Pが例外処理
に該当するか否かが判断される。具体的には、前記(式
15)に基づいて、例外処理に該当するか否かを示す
「Z」の参照アドレスZHADR(Z)が算出される。
そして、この参照アドレスZHADR(Z)に基づい
て、「Z」の値が抽出される。具体的には、図9に示す
変換点Pが例外処理に該当するか否かを判断するための
LUTに基づいて、変換点Pが例外処理に該当するか否
かが判断される。つまり、例外処理に該当するか否かを
示す「Z」の値が「1〜7」の場合は、例外処理に該当
すると判断して、図13に示すステップS31に移行す
る。一方、例外処理に該当するか否かを示す「Z」の値
が「0」の場合は、例外処理に該当しないと判断して、
ステップS13に移行する。なお、前記(式15−1)
に基づいて、例外処理に該当するか否かを判断するよう
にしても良い。
In step S11 shown in FIG.
The upper 4 bits, that is, (RH, GH, BH) are extracted from the RGB signal at the conversion point P. Step S12
In, it is determined based on (RH, GH, BH) extracted in step S11 whether or not the conversion point P corresponds to exception processing. Specifically, the reference address ZHADR (Z) of “Z” indicating whether or not the exception processing is performed is calculated based on the above (Equation 15).
Then, the value of “Z” is extracted based on the reference address ZHADR (Z). Specifically, whether or not the conversion point P corresponds to the exception processing is determined based on the LUT for determining whether or not the conversion point P corresponds to the exception processing. That is, when the value of “Z” indicating whether or not the exception processing is performed is “1 to 7”, it is determined that the processing corresponds to the exception processing, and the process proceeds to step S31 illustrated in FIG. On the other hand, when the value of “Z” indicating whether or not the exception processing is performed is “0”, it is determined that the processing does not correspond to the exception processing, and
Move to step S13. Note that the above (Equation 15-1)
May be determined on the basis of the exception processing.

【0256】ステップS13においては、変換点PのR
GB信号から各下位4〔bit〕、すなわち(RL,G
L,BL)が抽出される。ステップS14においては、
前記ステップS13において抽出された(RL,GL,
BL)に基づいて、例外処理に該当する場合を含む重み
係数(w1)の参照アドレスELADR(w1)が算出
される。具体的には、前記(式57−1)に基づいて、
重み係数w1の参照アドレスELADR(w1)が算出
される。
In the step S13, the R of the conversion point P
The lower 4 bits from the GB signal, that is, (RL, G
L, BL) are extracted. In step S14,
(RL, GL,
BL), the reference address ELADR (w1) of the weight coefficient (w1) including the case corresponding to the exception processing is calculated. Specifically, based on the above (Equation 57-1),
The reference address ELADR (w1) of the weight coefficient w1 is calculated.

【0257】ステップS15においては、変換点Pを取
り囲む三角錐における重み係数W(w1〜w4)がRO
M12から順次読み出される。具体的には、前記ステッ
プS4において算出された参照アドレスELADR(w
1)から順次インクリメントされて、すべての重み係数
W(w1〜w4)が、前記図45に示す例外処理に該当
する場合を含む重み係数W(w1〜w4)のLUTから
読み出される。具体的には、前記ステップS14におい
て算出された重み係数w1の参照アドレスELADR
(w1)から順次インクリメントされて、すべての重み
係数W(w1〜w4)が、前記図45に示す例外処理に
該当する場合を含む重み係数W(w1〜w4)のLUT
から順次読み出される。より具体的には、前記図45に
示す例外処理に該当する場合を含む重み係数W(w1〜
w4)のLUTにおいて、前記図12に示すステップS
12の処理における前記(式15)に基づいて算出され
た「Z(=0)」の値に応じた重み係数W(w1〜w
4)が順次読み出される。
In step S15, the weight coefficient W (w1 to w4) in the triangular pyramid surrounding the transformation point P is set to RO
They are sequentially read from M12. Specifically, the reference address ELADR (w calculated in step S4)
From 1), all the weighting factors W (w1 to w4) are read out from the LUT of the weighting factors W (w1 to w4) including the case corresponding to the exception processing shown in FIG. Specifically, the reference address ELADR of the weight coefficient w1 calculated in step S14
(W1) are sequentially incremented, and all the weighting factors W (w1 to w4) are LUTs of the weighting factors W (w1 to w4) including a case corresponding to the exception processing shown in FIG.
Are sequentially read out. More specifically, the weighting factors W (w1 to w1) including the case corresponding to the exception processing shown in FIG.
w4) In the LUT, step S shown in FIG.
The weighting coefficient W (w1 to w) corresponding to the value of “Z (= 0)” calculated based on the above (Equation 15) in the processing of No. 12
4) are sequentially read.

【0258】なお、ステップS14及びS15の処理に
代えて、前記ステップS13において抽出された(R
L,GL,BL)に基づいて、重み係数W(w1〜w
4)を算出しても良い。具体的には、(RL,GL,B
L)の各値の大小関係に基づいて、前記(式35〜40
−6)により、重み係数W(w1〜w4)を算出しても
良い。
It should be noted that, instead of the processing of steps S14 and S15, the (R
L, GL, BL) based on the weighting factors W (w1 to w
4) may be calculated. Specifically, (RL, GL, B
L) based on the magnitude relationship between the values of (L)
-6), the weighting coefficient W (w1 to w4) may be calculated.

【0259】ステップS16においては、変換点PのR
GB信号から各上位4〔bit〕、すなわち(RH,G
H,BH)が抽出される。なお、この上位4〔bit〕
の抽出処理は、前記ステップS11と同様な処理である
ため、前記ステップS11において抽出した上位4〔b
it〕をそのまま用いても良い。
In step S16, the R of the conversion point P
The upper 4 bits from the GB signal, that is, (RH, G
H, BH) are extracted. Note that the upper 4 bits
Is the same processing as in step S11, so the top 4 [b] extracted in step S11
it] may be used as it is.

【0260】ステップS17においては、前記ステップ
S16において抽出された(RH,GH,BH)に基づ
いて、「C」成分における格子点「A」の参照アドレス
HADR(A)が算出される。具体的には、まず、図3
6に示す(RL,GL,BL)の各値の大小関係で決定
されるオフセット「X」が読み出される。そして、前記
(式43)に基づいて、「C」成分における格子点
「A」の参照アドレスHADR(A)が算出される。
In step S17, the reference address HADR (A) of the grid point "A" in the "C" component is calculated based on (RH, GH, BH) extracted in step S16. Specifically, first, FIG.
6, the offset “X” determined by the magnitude relationship of the values of (RL, GL, BL) is read. Then, the reference address HADR (A) of the grid point “A” in the “C” component is calculated based on the above (Equation 43).

【0261】なお、「C」成分における格子点「A」の
参照アドレスHADR(A)は、前記ステップS12に
おいて算出された「Z」の参照アドレスZHADR
(Z)、すなわち前記(式15)に示した例外処理に該
当するか否かを示す「Z」の参照アドレスZHADR
(Z)に「96」を乗算した後、「16*X」の値を加
算して、「C」成分における格子点「A」の参照アドレ
スHADR(A)を算出しても良い。
The reference address HADR (A) of the grid point “A” in the “C” component is the reference address ZHADR of “Z” calculated in step S12.
(Z), that is, a reference address ZHADR of “Z” indicating whether or not the exception processing shown in (Equation 15) is applicable.
After multiplying (Z) by “96”, the value of “16 * X” may be added to calculate the reference address HADR (A) of the grid point “A” in the “C” component.

【0262】ステップS18においては、変換点Pを取
り囲む三角錐における格子点「A,X1,X2,H」
(但し、X1,X2は、格子点「B〜G」のうちの2
つ、換言すれば前記ステップS17におけるオフセット
「X」で決定される格子点「B〜G」のうちの2つ)が
ROM12から順次読み出される。具体的には、前記ス
テップS17において算出された「C」成分における格
子点「A」の参照アドレスHADR(A)から順次イン
クリメントされて、「C」成分における格子点「A,X
1,X2,H」の格子点データが、図37に示す格子点
データのLUTから順次読み出される。
In step S18, the lattice points “A, X1, X2, H” in the triangular pyramid surrounding the transformation point P
(However, X1 and X2 are two of the grid points “B to G”.
In other words, two of the grid points “B to G” determined by the offset “X” in step S17 are sequentially read from the ROM 12. More specifically, the grid point “A, X” of the “C” component is sequentially incremented from the reference address HADR (A) of the grid point “A” in the “C” component calculated in step S17.
The grid point data of “1, X2, H” is sequentially read from the grid point data LUT shown in FIG.

【0263】ステップS19においては、変換点Pにお
ける補間演算が行われる。具体的には、前記ステップS
15において読み出された重み係数W(w1〜w4)
と、前記ステップS18において読み出された「C」成
分における格子点「A,X1,X2,H」の格子点デー
タとに基づいて、前記(式47)により、変換点Pにお
ける補間演算が行われる。
In step S19, an interpolation operation at the conversion point P is performed. Specifically, the step S
Weighting coefficient W (w1 to w4) read out at 15
Based on the grid point data of the grid points “A, X1, X2, H” in the “C” component read in step S18, the interpolation calculation at the conversion point P is performed by (Equation 47). Will be

【0264】ステップS20においては、次成分がある
か否かが判断される。具体的には、「C」成分の補間演
算を行った場合には「M」成分、「M」成分の補間演算
を行った場合には「Y」成分、「Y」成分の補間演算を
行った場合には「K」成分があるか否かが判断される。
そして、次成分がある場合には、ステップS21に移行
する。一方、次成分がない場合、すなわち全ての「C,
M,Y,K」成分について、補間演算が終了した場合に
は、この処理を終了する。
In step S20, it is determined whether there is a next component. Specifically, the interpolation operation of the “M” component is performed when the interpolation operation of the “C” component is performed, and the interpolation operation of the “Y” component and the “Y” component is performed when the interpolation operation of the “M” component is performed. In this case, it is determined whether or not there is a “K” component.
If there is a next component, the process proceeds to step S21. On the other hand, when there is no next component, that is, when all “C,
When the interpolation calculation has been completed for the "M, Y, K" components, this processing ends.

【0265】ステップS21においては、次成分におけ
る格子点「A」の参照アドレスが算出される。具体的に
は、前記図37に示すように、「C,M,Y,K」成分
に対して、それぞれ格子点「A,B,D,H」、格子点
「A,C,G,H」、格子点「A,E,F,H」、格子
点「A,C,D,H」、格子点「A,E,G,H」、格
子点「A,B,F,H」の格子点データが記憶されてい
るため、前記ステップS17において算出された「C」
成分における格子点「A」の参照アドレスHADR
(A)から順次インクリメントするだけである。そし
て、ステップS18〜ステップS21が繰り返し実行さ
れて、変換点Pにおける「M,Y,K」の補間演算が行
われる。すなわち、ステップS18〜ステップS21が
繰り返し実行されて、変換点Pにおける「C,M,Y,
K」成分の補間演算が行われ、変換点PのRGB信号が
CMYK信号に変換される。
In step S21, the reference address of grid point "A" in the next component is calculated. Specifically, as shown in FIG. 37, for the “C, M, Y, K” components, the grid points “A, B, D, H” and the grid points “A, C, G, H” , Grid points “A, E, F, H”, grid points “A, C, D, H”, grid points “A, E, G, H”, and grid points “A, B, F, H”. Since the grid point data is stored, “C” calculated in step S17 is used.
Address HADR of grid point "A" in the component
It is merely incremented sequentially from (A). Then, steps S18 to S21 are repeatedly executed, and the interpolation calculation of “M, Y, K” at the conversion point P is performed. That is, steps S18 to S21 are repeatedly executed, and “C, M, Y,
The interpolation operation of the “K” component is performed, and the RGB signals at the conversion point P are converted into CMYK signals.

【0266】図13に示すステップS31においては、
変換点PのRGB信号から各下位4〔bit〕、すなわ
ち(RL,GL,BL)が抽出される。ステップS32
においては、前記ステップS31において抽出された
(RL,GL,BL)に基づいて、例外処理に該当する
場合を含む重み係数(w1)の参照アドレスELADR
(w1)が算出される。具体的には、前記(式57−
1)に基づいて、重み係数w1の参照アドレスELAD
R(w1)が算出される。
In step S31 shown in FIG.
The lower 4 bits, that is, (RL, GL, BL), are extracted from the RGB signal at the conversion point P. Step S32
In the above, based on the (RL, GL, BL) extracted in the step S31, the reference address ELADR of the weight coefficient (w1) including the case corresponding to the exception processing
(W1) is calculated. Specifically, the above (Equation 57-
1), the reference address ELAD of the weight coefficient w1
R (w1) is calculated.

【0267】ステップS33においては、変換点Pを取
り囲む三角錐における重み係数W(w1〜w4)がRO
M12から順次読み出される。具体的には、前記ステッ
プS32において算出された重み係数w1の参照アドレ
スELADR(w1)から順次インクリメントされて、
すべての重み係数W(w1〜w4)が、前記図45に示
す例外処理に該当する場合を含む重み係数W(w1〜w
4)のLUTから順次読み出される。より具体的には、
前記図45に示す例外処理に該当する場合を含む重み係
数W(w1〜w4)のLUTにおいて、前記図12に示
すステップS12の処理における前記(式15)に基づ
いて算出された「Z(=1〜7)」の値に応じた重み係
数W(w1〜w4)が順次読み出される。
In step S33, the weight coefficient W (w1 to w4) in the triangular pyramid surrounding the transformation point P is set to RO
They are sequentially read from M12. Specifically, the weight coefficient w1 calculated in step S32 is sequentially incremented from the reference address ELADR (w1),
All the weighting factors W (w1 to w4) include the weighting factors W (w1 to w4
The data is sequentially read from the LUT of 4). More specifically,
In the LUT of the weight coefficient W (w1 to w4) including the case corresponding to the exception processing shown in FIG. 45, “Z (=) calculated based on the (Equation 15) in the processing of step S12 shown in FIG. 1 to 7) are sequentially read out.

【0268】なお、ステップS32及びS33の処理に
代えて、前記図12に示すステップS2の処理において
示された例外処理に該当するか否かを示す値「Z」に応
じて、重み係数W(w1〜w4)を算出しても良い。具
体的には、例外処理に該当するか否かを示す値「Z」が
「1〜7」の場合に応じて、換言すれば(RH,GH,
BH)に応じて、前記(式48−6)及び(式49−
6)に示した2つの例のようにして、重み係数W(w1
〜w4)を算出しても良い。
Note that, instead of the processing of steps S32 and S33, the weighting factor W () is determined according to the value “Z” indicating whether or not the processing corresponds to the exception processing shown in the processing of step S2 shown in FIG. w1 to w4) may be calculated. Specifically, according to the case where the value “Z” indicating whether or not the exception processing is applicable is “1 to 7”, in other words, (RH, GH,
BH), (Equation 48-6) and (Equation 49-
6), the weighting coefficient W (w1
To w4) may be calculated.

【0269】ステップS34においては、変換点PのR
GB信号から各上位4〔bit〕、すなわち(RH,G
H,BH)が抽出される。なお、この上位4〔bit〕
の抽出処理は、前記図12に示すステップS11と同様
な処理であるため、前記図12に示すステップS11に
おいて抽出した上位4〔bit〕をそのまま用いても良
い。
In step S34, R of conversion point P
The upper 4 bits from the GB signal, that is, (RH, G
H, BH) are extracted. Note that the upper 4 bits
Is the same as step S11 shown in FIG. 12, and the upper 4 bits extracted in step S11 shown in FIG. 12 may be used as it is.

【0270】ステップS35においては、前記ステップ
S34において抽出された(RH,GH,BH)に基づ
いて、「C」成分における格子点「A」の参照アドレス
HADR(A)が算出される。具体的には、まず、図3
6に示す(RL,GL,BL)の各値の大小関係で決定
されるオフセット「X」が読み出される。そして、前記
(式43)に基づいて、「C」成分における格子点
「A」の参照アドレスHADR(A)が算出される。
In step S35, the reference address HADR (A) of the grid point "A" in the "C" component is calculated based on the (RH, GH, BH) extracted in step S34. Specifically, first, FIG.
6, the offset “X” determined by the magnitude relationship of the values of (RL, GL, BL) is read. Then, the reference address HADR (A) of the grid point “A” in the “C” component is calculated based on the above (Equation 43).

【0271】なお、「C」成分における格子点「A」の
参照アドレスHADR(A)は、前記ステップS12に
おいて算出された「Z」の参照アドレスZHADR
(Z)、すなわち前記(式15)に示した例外処理に該
当するか否かを示す「Z」の参照アドレスZHADR
(Z)に「96」を乗算した後、「16*X」の値を加
算して、「C」成分における格子点「A」の参照アドレ
スHADR(A)を算出しても良い。
The reference address HADR (A) of the grid point “A” in the “C” component is the reference address ZHADR of “Z” calculated in step S12.
(Z), that is, a reference address ZHADR of “Z” indicating whether or not the exception processing shown in (Equation 15) is applicable.
After multiplying (Z) by “96”, the value of “16 * X” may be added to calculate the reference address HADR (A) of the grid point “A” in the “C” component.

【0272】ステップS36においては、変換点Pを取
り囲む三角錐における格子点「A,X1,X2,H」
(但し、X1,X2は、格子点「B〜G」のうちの2
つ、換言すれば前記ステップS35におけるオフセット
「X」で決定される格子点「B〜G」のうちの2つ)が
ROM12から順次読み出される。具体的には、前記ス
テップS35において算出された「C」成分における格
子点「A」の参照アドレスHADR(A)から順次イン
クリメントされて、「C」成分における格子点「A,X
1,X2,H」の格子点データが、図37に示す格子点
データのLUTから順次読み出される。
In step S36, the lattice points “A, X1, X2, H” in the triangular pyramid surrounding the transformation point P
(However, X1 and X2 are two of the grid points “B to G”.
In other words, two of the grid points “B to G” determined by the offset “X” in step S35 are sequentially read from the ROM 12. Specifically, the grid point “A, X” of the “C” component is sequentially incremented from the reference address HADR (A) of the grid point “A” of the “C” component calculated in step S35.
The grid point data of “1, X2, H” is sequentially read from the grid point data LUT shown in FIG.

【0273】ステップS37においては、変換点Pにお
ける補間演算が行われる。具体的には、前記ステップS
33において読み出された重み係数W(w1〜w4)
と、前記ステップS36において読み出された「C」成
分における格子点「A,X1,X2,H」の格子点デー
タとに基づいて、前記(式47)により、変換点Pにお
ける補間演算が行われる。
At step S37, an interpolation operation at the conversion point P is performed. Specifically, the step S
Weighting coefficient W (w1 to w4) read out at 33
Based on the grid point data of the grid points “A, X1, X2, H” in the “C” component read in step S36, the interpolation calculation at the conversion point P is performed by (Equation 47). Will be

【0274】ステップS38においては、次成分がある
か否かが判断される。具体的には、「C」成分の補間演
算を行った場合には「M」成分、「M」成分の補間演算
を行った場合には「Y」成分、「Y」成分の補間演算を
行った場合には「K」成分があるか否かが判断される。
そして、次成分がある場合には、ステップS39に移行
する。一方、次成分がない場合、すなわち全ての「C,
M,Y,K」成分について、補間演算が終了した場合に
は、この処理を終了する。
In step S38, it is determined whether there is a next component. Specifically, the interpolation operation of the “M” component is performed when the interpolation operation of the “C” component is performed, and the interpolation operation of the “Y” component and the “Y” component is performed when the interpolation operation of the “M” component is performed. In this case, it is determined whether or not there is a “K” component.
If there is a next component, the process proceeds to step S39. On the other hand, when there is no next component, that is, when all “C,
When the interpolation calculation has been completed for the "M, Y, K" components, this processing ends.

【0275】ステップS39においては、次成分におけ
る格子点「A」の参照アドレスが算出される。具体的に
は、前記図37に示すように、「C,M,Y,K」成分
に対して、それぞれ格子点「A,B,D,H」、格子点
「A,C,G,H」、格子点「A,E,F,H」、格子
点「A,C,D,H」、格子点「A,E,G,H」、格
子点「A,B,F,H」の格子点データが記憶されてい
るため、前記ステップS35において算出された「C」
成分における格子点「A」の参照アドレスHADR
(A)から順次インクリメントするだけである。そし
て、ステップS36〜ステップS39が繰り返し実行さ
れて、変換点Pにおける「M,Y,K」の補間演算が行
われる。すなわち、ステップS36〜ステップS39が
繰り返し実行されて、変換点Pにおける「C,M,Y,
K」成分の補間演算が行われ、変換点PのRGB信号が
CMYK信号に変換される。なお、一般的に、変換する
画素は多数あるので、読み取ったすべての画素に対し
て、この処理が繰り返し実行される。
In step S39, the reference address of grid point "A" in the next component is calculated. Specifically, as shown in FIG. 37, for the “C, M, Y, K” components, the grid points “A, B, D, H” and the grid points “A, C, G, H” , Grid points “A, E, F, H”, grid points “A, C, D, H”, grid points “A, E, G, H”, and grid points “A, B, F, H”. Since the grid point data is stored, “C” calculated in step S35 is used.
Address HADR of grid point "A" in the component
It is merely incremented sequentially from (A). Then, steps S36 to S39 are repeatedly executed, and the interpolation calculation of “M, Y, K” at the conversion point P is performed. That is, steps S36 to S39 are repeatedly executed, and “C, M, Y,
The interpolation operation of the “K” component is performed, and the RGB signals at the conversion point P are converted into CMYK signals. In general, since there are a large number of pixels to be converted, this process is repeatedly performed on all the read pixels.

【0276】以上、詳述したように第5の実施形態によ
れば、前記第4の実施形態の作用、効果に加えて、次の
ような作用、効果を得ることができる。 (1)この第5の実施形態においては、図45に示すよ
うに、例外処理に該当する場合を含む重み係数Wがw1
〜w4の順で、ROM12に記憶されている。このた
め、前記(式57−1)に基づいて、例外処理に該当す
る場合における重み係数w1の参照アドレスELADR
(w1)が分かれば、順次インクリメントするだけで、
他の重み係数w2〜w4も得ることができる。従って、
変換点Pが例外処理に該当する場合であっても、RGB
信号からCMYK信号に色変換処理する場合において、
ソフトウェアを用いても高速に色変換処理を行うことが
できる。しかも、変換点Pが例外処理に該当する場合で
あっても、誤差を含むことなく色変換処理を実行するこ
とができる。
As described above in detail, according to the fifth embodiment, the following operation and effect can be obtained in addition to the operation and effect of the fourth embodiment. (1) In the fifth embodiment, as shown in FIG. 45, the weight coefficient W including the case corresponding to the exceptional processing is w1
Ww4 are stored in the ROM 12 in this order. For this reason, based on the above (Equation 57-1), the reference address ELADR of the weight coefficient w1 in the case of exception processing
Once (w1) is known, it is only necessary to increment sequentially,
Other weighting factors w2 to w4 can also be obtained. Therefore,
Even if the conversion point P corresponds to exception processing, RGB
When performing color conversion processing from a signal to a CMYK signal,
Even if software is used, color conversion processing can be performed at high speed. Moreover, even when the conversion point P corresponds to the exception processing, the color conversion processing can be executed without including an error.

【0277】[第6の実施形態]…三角錐補間(4点補
間)の場合 この第6の実施形態において、前記第1の実施形態と同
様な構成については、前記第1の実施形態と同一の符号
を付して説明を省略する。この第6の実施形態は、前記
第5の実施形態と同様に、前記第4の実施形態におい
て、例外処理に該当する場合を考慮したものである。加
えて、この第6の実施形態は、前記第5の実施形態とは
異なり、例外処理に該当するか否かを判断させることな
く、色変換処理を実行させるものである。
[Sixth Embodiment] In the Case of Triangular Pyramid Interpolation (Four-Point Interpolation) In the sixth embodiment, the configuration similar to that of the first embodiment is the same as that of the first embodiment. And the description is omitted. In the sixth embodiment, as in the fifth embodiment, a case corresponding to exception processing in the fourth embodiment is considered. In addition, the sixth embodiment is different from the fifth embodiment in that the color conversion process is executed without determining whether or not the process corresponds to the exception process.

【0278】この第6の実施形態において、ROM12
は、図9に示す変換点Pが例外処理に該当するか否かを
判断するためのLUT、図36に示す(RL,GL,B
L)の各値の大小関係で決定されるオフセットのLU
T、図37に示す格子点データのLUT及び図45に示
す例外処理に該当する場合を含む重み係数W(w1〜w
4)のLUTを記憶する。
In the sixth embodiment, the ROM 12
Is an LUT for judging whether or not the conversion point P shown in FIG. 9 corresponds to exception processing, and FIG. 36 shows (RL, GL, B
L) of the offset determined by the magnitude relationship of each value of L)
T, LUT of grid point data shown in FIG. 37, and weighting factors W (w1 to w
4) The LUT is stored.

【0279】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、図14に示すフロ
ーチャートを用いて説明する。なお、この動作は、RO
M12に記憶されたプログラムに基づき、MPU11の
制御により実行される。
[0279] Next, in the facsimile apparatus 1, 1 when the RGB signal of the conversion point P is output from the reading unit 14
The operation of the color conversion process for pixels will be described with reference to the flowchart shown in FIG. Note that this operation is performed by the RO
The program is executed under the control of the MPU 11 based on the program stored in the M12.

【0280】図14に示すステップS41においては、
変換点PのRGB信号から各上位4〔bit〕、すなわ
ち(RH,GH,BH)が抽出される。ステップS42
においては、前記ステップS41において抽出された
(RH,GH,BH)に基づいて、例外処理に該当する
か否かを示す「Z」の参照アドレスZHADR(Z)が
算出される。具体的には前記(式15)に基づいて、例
外処理に該当するか否かを示す「Z」の参照アドレスZ
HADR(Z)が算出される。
In step S41 shown in FIG.
The upper 4 bits, that is, (RH, GH, BH) are extracted from the RGB signal at the conversion point P. Step S42
In, based on (RH, GH, BH) extracted in step S41, a reference address ZHADR (Z) of “Z” indicating whether or not an exception process is applicable is calculated. Specifically, based on the above (Equation 15), the reference address Z of “Z” indicating whether or not the exception processing is performed.
HADR (Z) is calculated.

【0281】ステップS43においては、前記ステップ
S42において算出された「Z」の参照アドレスZHA
DR(Z)に基づいて、「Z」の値が抽出される。具体
的には、図9に示す変換点Pが例外処理に該当するか否
かを判断するためのLUTに基づいて、「Z」の値が抽
出される。従って、この「Z」の値が「0」の場合は、
変換点Pが例外処理に該当しないと判断することができ
る。また、この「Z」の値が「1〜7」の場合は、変換
点Pが例外処理に該当することを判断できるとともに、
前記[1]〜[7]の7通りのうちの何れの例外処理に
該当するかをも判断することができる。
In step S43, the reference address ZHA of "Z" calculated in step S42 is set.
The value of “Z” is extracted based on DR (Z). Specifically, the value of “Z” is extracted based on the LUT for determining whether the conversion point P shown in FIG. 9 corresponds to exception processing. Therefore, when the value of “Z” is “0”,
It can be determined that the conversion point P does not correspond to exception processing. When the value of “Z” is “1 to 7”, it can be determined that the conversion point P corresponds to exception processing,
It is possible to determine which of the seven exceptions [1] to [7] corresponds to the exception processing.

【0282】ステップS44においては、変換点PのR
GB信号から各下位4〔bit〕、すなわち(RL,G
L,BL)が抽出される。ステップS45においては、
前記ステップS44において抽出された(RL,GL,
BL)に基づいて、重み係数(w1)の参照アドレスE
LADR(w1)が算出される。具体的には、前記(式
57−1)に基づいて、重み係数w1の参照アドレスE
LADR(w1)が算出される。
In step S44, the R of conversion point P
The lower 4 bits from the GB signal, that is, (RL, G
L, BL) are extracted. In step S45,
(RL, GL,
BL), the reference address E of the weight coefficient (w1)
LADR (w1) is calculated. Specifically, based on the above (Equation 57-1), the reference address E of the weight coefficient w1 is obtained.
LADR (w1) is calculated.

【0283】ステップS46においては、変換点Pを取
り囲む三角錐における重み係数W(w1〜w4)がRO
M12から順次読み出される。具体的には、前記ステッ
プS45において算出された重み係数w1の参照アドレ
スELADR(w1)から順次インクリメントされて、
すべての重み係数W(w1〜w4)が、前記図45に示
す例外処理に該当する場合を含む重み係数W(w1〜w
4)のLUTから順次読み出される。より具体的には、
前記図45に示す例外処理に該当する場合を含む重み係
数W(w1〜w4)において、前記ステップS43にお
いて抽出された「Z(=0〜7)」に応じた重み係数W
(w1〜w4)が読み出される。
In step S46, the weight coefficient W (w1 to w4) in the triangular pyramid surrounding the transformation point P is set to RO
They are sequentially read from M12. Specifically, the weight coefficient w1 calculated in step S45 is sequentially incremented from the reference address ELADR (w1),
All the weighting factors W (w1 to w4) include the weighting factors W (w1 to w4
The data is sequentially read from the LUT of 4). More specifically,
In the weight coefficient W (w1 to w4) including the case corresponding to the exception processing shown in FIG. 45, the weight coefficient W corresponding to “Z (= 0 to 7)” extracted in the step S43.
(W1 to w4) are read.

【0284】ステップS47においては、変換点PのR
GB信号から各上位4〔bit〕、すなわち(RH,G
H,BH)が抽出される。なお、この上位4〔bit〕
の抽出処理は、前記ステップS41と同様な処理である
ため、前記ステップS41において抽出した上位4〔b
it〕をそのまま用いても良い。
[0284] In step S47, the R of the conversion point P
The upper 4 bits from the GB signal, that is, (RH, G
H, BH) are extracted. Note that the upper 4 bits
Is the same processing as in step S41, so the top 4 [b] extracted in step S41
it] may be used as it is.

【0285】ステップS48においては、「C」成分に
おける格子点「A」の参照アドレスHADR(A)が算
出される。具体的には、まず、図36に示す(RL,G
L,BL)の各値の大小関係で決定されるオフセット
「X」が読み出される。そして、前記(式43)に基づ
いて、「C」成分における格子点「A」の参照アドレス
HADR(A)が算出される。
In step S48, the reference address HADR (A) of the grid point "A" in the "C" component is calculated. Specifically, first, (RL, G
The offset “X” determined by the magnitude relationship between the values of (L, BL) is read. Then, the reference address HADR (A) of the grid point “A” in the “C” component is calculated based on the above (Equation 43).

【0286】なお、「C」成分における格子点「A」の
参照アドレスHADR(A)は、前記ステップS42に
おいて算出された「Z」の参照アドレスZHADR
(Z)、すなわち前記(式15)に示した例外処理に該
当するか否かを示す「Z」の参照アドレスZHADR
(Z)に「96」を乗算した後、「16*X」の値を加
算して、「C」成分における格子点「A」の参照アドレ
スHADR(A)を算出しても良い。
The reference address HADR (A) of the grid point “A” in the “C” component is the reference address ZHADR of “Z” calculated in step S42.
(Z), that is, a reference address ZHADR of “Z” indicating whether or not the exception processing shown in (Equation 15) is applicable.
After multiplying (Z) by “96”, the value of “16 * X” may be added to calculate the reference address HADR (A) of the grid point “A” in the “C” component.

【0287】ステップS49においては、変換点Pを取
り囲む三角錐における格子点「A,X1,X2,H」
(但し、X1,X2は、格子点「B〜G」のうちの2
つ、換言すれば前記ステップS48におけるオフセット
「X」で決定される格子点「B〜G」のうちの2つ)が
ROM12から順次読み出される。具体的には、前記ス
テップS48において算出された「C」成分における格
子点「A」の参照アドレスHADR(A)から順次イン
クリメントされて、「C」成分における格子点「A,X
1,X2,H」の格子点データが、図37に示す格子点
データのLUTから順次読み出される。
In step S49, the lattice points “A, X1, X2, H” in the triangular pyramid surrounding the transformation point P
(However, X1 and X2 are two of the grid points “B to G”.
In other words, two of the grid points “B to G” determined by the offset “X” in step S48 are sequentially read from the ROM 12. Specifically, the grid point “A, X” of the “C” component is sequentially incremented from the reference address HADR (A) of the grid point “A” in the “C” component calculated in step S48.
The grid point data of “1, X2, H” is sequentially read from the grid point data LUT shown in FIG.

【0288】ステップS50においては、変換点Pにお
ける補間演算が行われる。具体的には、前記ステップS
46において読み出された重み係数W(w1〜w4)
と、前記ステップS49において読み出された「C」成
分における格子点「A,X1,X2,H」の格子点デー
タとに基づいて、前記(式47)により、変換点Pにお
ける補間演算が行われる。
In step S50, an interpolation operation at the conversion point P is performed. Specifically, the step S
Weight coefficient W (w1 to w4) read out at 46
Based on the grid point data of the grid points “A, X1, X2, H” in the “C” component read in step S49, the interpolation calculation at the conversion point P is performed by (Equation 47). Will be

【0289】ステップS51においては、次成分がある
か否かが判断される。具体的には、「C」成分の補間演
算を行った場合には「M」成分、「M」成分の補間演算
を行った場合には「Y」成分、「Y」成分の補間演算を
行った場合には「K」成分があるか否かが判断される。
そして、次成分がある場合には、ステップS52に移行
する。一方、次成分がない場合、すなわち全ての「C,
M,Y,K」成分について、補間演算が終了した場合に
は、この処理を終了する。
In step S51, it is determined whether there is a next component. Specifically, the interpolation operation of the “M” component is performed when the interpolation operation of the “C” component is performed, and the interpolation operation of the “Y” component and the “Y” component is performed when the interpolation operation of the “M” component is performed. In this case, it is determined whether or not there is a “K” component.
If there is a next component, the process proceeds to step S52. On the other hand, when there is no next component, that is, when all “C,
When the interpolation calculation has been completed for the "M, Y, K" components, this processing ends.

【0290】ステップS52においては、次成分におけ
る格子点「A」の参照アドレスが算出される。具体的に
は、前記図37に示すように、「C,M,Y,K」成分
に対して、それぞれ格子点「A,B,D,H」、格子点
「A,C,G,H」、格子点「A,E,F,H」、格子
点「A,C,D,H」、格子点「A,E,G,H」、格
子点「A,B,F,H」の格子点データが記憶されてい
るため、前記ステップS48において算出された「C」
成分における格子点「A」の参照アドレスHADR
(A)から順次インクリメントするだけである。そし
て、ステップS49〜ステップS52が繰り返し実行さ
れて、変換点Pにおける「M,Y,K」の補間演算が行
われる。すなわち、ステップS49〜ステップS52が
繰り返し実行されて、変換点Pにおける「C,M,Y,
K」成分の補間演算が行われ、変換点PのRGB信号が
CMYK信号に変換される。なお、一般的に、変換する
画素は多数あるので、読み取ったすべての画素に対し
て、この処理が繰り返し実行される。
In step S52, the reference address of grid point "A" in the next component is calculated. Specifically, as shown in FIG. 37, for the “C, M, Y, K” components, the grid points “A, B, D, H” and the grid points “A, C, G, H” , Grid points “A, E, F, H”, grid points “A, C, D, H”, grid points “A, E, G, H”, and grid points “A, B, F, H”. Since the grid point data is stored, “C” calculated in step S48 is used.
Address HADR of grid point "A" in the component
It is merely incremented sequentially from (A). Then, steps S49 to S52 are repeatedly executed, and the interpolation calculation of “M, Y, K” at the conversion point P is performed. That is, steps S49 to S52 are repeatedly executed, and “C, M, Y,
The interpolation operation of the “K” component is performed, and the RGB signals at the conversion point P are converted into CMYK signals. In general, since there are a large number of pixels to be converted, this process is repeatedly performed on all the read pixels.

【0291】以上、詳述したように第6の実施形態によ
れば、前記第5の実施形態の作用、効果に加えて、次の
ような作用、効果を得ることができる。 (1)三角錐補間においても、変換点Pが例外処理に該
当するか否かを判断することなく、補間演算を行うこと
ができる。このため、前記第2の実施形態(図12及び
図13に示すフローチャート)とは異なり、変換点Pが
例外処理に該当するか否かに拘わらず、同一の処理(図
14に示すフローチャート)で重み係数W(w1〜w
8)と格子点データとを読み出すことができる。従っ
て、色変換処理をソフトウェアで処理させる場合でも、
より一層高速に処理を行わせることができる。しかも、
色変換処理をハードウェアで構成する場合であっても、
より簡単な構成にすることができる。
As described in detail above, according to the sixth embodiment, the following operation and effect can be obtained in addition to the operation and effect of the fifth embodiment. (1) Also in the triangular pyramid interpolation, the interpolation calculation can be performed without determining whether or not the conversion point P corresponds to the exception processing. Therefore, unlike the second embodiment (the flowcharts shown in FIGS. 12 and 13), the same processing (the flowchart shown in FIG. 14) is performed regardless of whether the conversion point P corresponds to the exception processing. Weight coefficient W (w1 to w
8) and grid point data can be read. Therefore, even if the color conversion processing is performed by software,
Processing can be performed even faster. Moreover,
Even if the color conversion process is configured by hardware,
A simpler configuration can be achieved.

【0292】なお、前記各実施形態は、次のように変更
して具体化することも可能である。 ・補間演算に必要な各種データは、ROM12に記憶さ
れるが、高速に読み出すために、変換処理前にRAM1
3等に転送して処理を行うようにしても良い。 ・上記RAM13にデータ転送して処理を行う場合、R
OM12に記憶させておく各種データは、前記図3に示
すデータ構造をとり、RAM13に転送する際に、前記
図5に示すデータ構造になるように転送しても良い。な
お、重み係数にあっては、ROM12に記憶することな
く、演算で求めてRAM13に記憶する構成であっても
良い。
Each of the above embodiments can be modified and embodied as follows. Various data necessary for the interpolation calculation are stored in the ROM 12, but in order to read them out at high speed, the RAM 1
The processing may be performed by transferring the data to a third party or the like. When performing processing by transferring data to the RAM 13, R
Various data stored in the OM 12 may have the data structure shown in FIG. 3 and be transferred to the RAM 13 so as to have the data structure shown in FIG. The weight coefficient may be obtained by calculation and stored in the RAM 13 without storing it in the ROM 12.

【0293】・図11に示すステップS3において重み
係数の読み出しは、積和演算を繰り返して行う命令を持
つMPUの場合は、ステップS7の処理時に行われる。
つまり、ステップS7の処理では、ステップS2におい
て算出した重み係数の参照アドレスと、ステップS5に
おいて算出した「C」成分における格子点「A」の参照
アドレスと、積和演算回数とに基づいて、ステップS2
において算出した重み係数の参照アドレスから重み係数
を読み出し、ステップS5において算出した「C」成分
における格子点「A」の参照アドレスから格子点データ
を読み出して、乗算し、それぞれの参照アドレスを順次
インクリメントして、積和演算回数だけ繰り返すことと
なる。なお、図12及び図13に示すフローチャート並
びに図14に示すフローチャートにおいても同様であ
る。
In step S3 shown in FIG. 11, the readout of the weighting coefficient is performed during the processing of step S7 in the case of an MPU having an instruction for repeatedly performing the product-sum operation.
That is, in the process of step S7, the step is performed based on the reference address of the weighting factor calculated in step S2, the reference address of the grid point “A” in the “C” component calculated in step S5, and the number of product-sum operations. S2
The weighting factor is read from the reference address of the weighting factor calculated in the above, the grid point data is read out from the reference address of the grid point “A” in the “C” component calculated in step S5, multiplied, and each reference address is sequentially incremented. Then, the operation is repeated by the number of product-sum operations. The same applies to the flowcharts shown in FIGS. 12 and 13 and the flowchart shown in FIG.

【0294】・前記各実施形態においては、格子点
「A」を基準にして説明したが、他の格子点「B〜H」
であっても良い。なお、第4〜6の実施形態において
は、格子点「A,H」のみが、6つの三角錐において含
まれる格子点であるため、格子点「A」以外を基準とす
る場合には、格子点「H」が最適である。
In the above embodiments, the description has been made with reference to the grid point “A”, but other grid points “B to H”
It may be. In the fourth to sixth embodiments, only the grid point “A, H” is a grid point included in the six triangular pyramids. Point "H" is optimal.

【0295】・各実施形態においては、「C,M,Y,
K」成分の順に格子点データを記憶させたが、この順序
に拘わらず、どのような順序であっても良い。 ・RGB信号をCMYK信号に変換した後、2値化処理
或いはディザ処理を連続して実行させ、記録部15で記
録紙に記録させても良い。 ・図46に示すように、立方体をR=G平面で2分割し
た三角柱を用いる三角柱補間(6点補間)の場合にも、
前記実施形態を適用しても良い。
In each embodiment, “C, M, Y,
Although the grid point data is stored in the order of the “K” component, the order may be any order regardless of this order. After the RGB signals are converted into the CMYK signals, the binarization processing or the dither processing may be continuously performed, and the recording unit 15 may record the signals on recording paper. As shown in FIG. 46, even in the case of triangular prism interpolation (six-point interpolation) using a triangular prism obtained by dividing a cube into two in the R = G plane,
The above embodiment may be applied.

【0296】・図47に示すように、立方体の8つの頂
点から任意の5点を選択した四角錐を用いる四角錐補間
(5点補間)の場合にも、前記各実施形態を適用しても
良い。 ・色空間の変換は、RGB信号からCMYK信号への変
換以外にも、Lab変換、XYZ変換等いくつかあるの
で、前記各実施形態に限定されないことは言うまでもな
い。
As shown in FIG. 47, even in the case of quadrangular pyramid interpolation (five-point interpolation) using a quadrangular pyramid in which arbitrary five points are selected from eight vertices of a cube, the above embodiments can be applied. good. The color space conversion is not limited to the above embodiments, since there are some conversions such as Lab conversion and XYZ conversion other than conversion from RGB signals to CMYK signals.

【0297】さらに、上記各実施形態等より把握される
請求項以外の技術的思想について、以下にそれらの効果
と共に記載する。 〔1〕色空間を変換する画像処理装置において、変換点
を取り囲む格子点の格子点データ及び重み係数を演算に
必要な順に連続して記憶する記憶手段と、基準となる格
子点の格子点データ及び基準となる重み係数の参照アド
レスを算出するとともに、それらの参照アドレスから順
次インクリメントを行って、変換点の補間演算に必要な
格子点データ及び重み係数を読み出し、変換点の補間演
算を行う制御手段とを備えた画像処理装置。このように
構成すれば、ソフトウェアを用いても高速に色変換処理
することができる。
Further, technical ideas other than the claims grasped from the above embodiments and the like will be described below together with their effects. [1] In an image processing apparatus for converting a color space, storage means for continuously storing grid point data and weighting factors of grid points surrounding a conversion point in the order necessary for calculation, and grid point data of grid points serving as references And a control for calculating reference addresses of weighting coefficients serving as references, sequentially incrementing the reference addresses, reading grid point data and weighting coefficients necessary for interpolation calculation of conversion points, and performing interpolation calculation of conversion points. Image processing apparatus comprising: With this configuration, color conversion processing can be performed at high speed using software.

【0298】〔2〕請求項1〜請求項3、前記〔1〕の
いずれか1項に記載の画像処理装置において、制御手段
は、色空間を変換した後、2値化処理或いはディザ処理
を連続して実行させる画像処理装置。このように構成す
れば、色空間を変換した値を、一旦メモり等に記憶させ
ることなく、記録部で記録紙に記録させることができ
る。従って、変換した値を記憶させるためのメモリが不
要なり、読取動作から記録動作を一括処理させることが
できる。
[2] In the image processing apparatus according to any one of [1] to [3] and [1], the control means performs a binarization process or a dither process after converting the color space. An image processing device to be executed continuously. With this configuration, the value obtained by converting the color space can be recorded on a recording sheet by the recording unit without temporarily storing the value in a memory or the like. Therefore, a memory for storing the converted value is not required, and the reading operation and the recording operation can be collectively processed.

【0299】〔3〕請求項1または前記〔1〕に記載の
画像処理装置において、記憶手段は、変換点を取り囲む
格子点の格子点データを組みにして記憶する画像処理装
置。このように構成すれば、記憶する格子点データを減
少させることができる。従って、記憶手段の記憶容量を
小さくすることができる。
[3] The image processing apparatus according to [1] or [1], wherein the storage means stores a set of grid point data of grid points surrounding the conversion point. With this configuration, it is possible to reduce grid point data to be stored. Therefore, the storage capacity of the storage means can be reduced.

【0300】〔4〕請求項2に記載の画像処理装置にお
いて、記憶手段は、何れの例外処理に該当するか否かを
も記憶する画像処理装置。このように構成すれば、何れ
の例外処理に該当するか否かをも判断することができ
る。
[4] The image processing apparatus according to claim 2, wherein the storage means stores any exceptional processing. With this configuration, it is possible to determine whether any of the exceptional processes is applicable.

【0301】〔5〕色空間を変換する画像処理装置に備
えられる記録媒体であって、変換点を取り囲む格子点の
格子点データ及び重み係数を演算に必要な順に連続して
記憶し、基準となる格子点の格子点データ及び基準とな
る重み係数の参照アドレスを算出するとともに、それら
の参照アドレスから順次インクリメントを行って、変換
点の補間演算に必要な格子点データ及び重み係数を読み
出し、変換点の補間演算を行う処理をコンピュータに実
行させるためのプログラムとして記録した記録媒体。こ
のように構成すれば、高速に色変換処理を行わせること
ができるプログラムを提供することができる。
[5] A recording medium provided in an image processing apparatus for converting a color space, in which grid point data and weighting factors of grid points surrounding a conversion point are successively stored in the order required for the calculation, and Calculates grid point data of grid points and reference addresses of reference weighting factors, and sequentially increments from these reference addresses to read grid point data and weighting factors necessary for interpolation calculation of conversion points, and perform conversion. A recording medium on which a program for causing a computer to execute a process of performing a point interpolation operation is recorded. With this configuration, it is possible to provide a program capable of performing color conversion processing at high speed.

【0302】ところで、本明細書において、記録媒体と
は、読み出しが可能な半導体記憶装置、磁気記憶装置の
記録媒体、光磁気記憶装置の記録媒体など、コンピュー
タのプログラムを記録できるものならどのようなもので
もよい。具体的には、半導体ROM、フロッピーディス
ク、ハードディスク、光ディスク、光磁気ディスク、相
変化ディスク、磁気テープなどを含むものとする。
[0302] In this specification, the term "recording medium" refers to any medium that can record a computer program, such as a readable semiconductor storage device, a magnetic storage device, and a magneto-optical storage device. It may be something. Specifically, it includes a semiconductor ROM, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a phase change disk, a magnetic tape, and the like.

【0303】[0303]

【発明の効果】本発明は、以上のように構成されている
ため、次のような効果を奏する。請求項1に記載の発明
によれば、ソフトウェアを用いても高速に色変換処理す
ることができる。
Since the present invention is configured as described above, it has the following effects. According to the first aspect of the present invention, color conversion processing can be performed at high speed using software.

【0304】請求項2に記載の発明によれば、請求項1
に記載の発明の効果に加えて、誤差を含むことなく、正
確に色変換処理を行うことができる。請求項3に記載の
発明によれば、請求項1に記載の発明の効果に加えて、
より一層高速化を図ることができる。
According to the second aspect of the present invention, the first aspect
In addition to the effects of the invention described in (1), color conversion processing can be performed accurately without errors. According to the third aspect of the invention, in addition to the effects of the first aspect of the invention,
Higher speed can be achieved.

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

【図1】第1〜第6の実施形態におけるファクシミリ装
置の回路構成図。
FIG. 1 is a circuit configuration diagram of a facsimile apparatus according to first to sixth embodiments.

【図2】RGB空間における格子点を説明するための説
明図。
FIG. 2 is an explanatory diagram for explaining lattice points in an RGB space.

【図3】立方体補間における格子点データのLUTを説
明するための説明図。
FIG. 3 is an explanatory diagram for explaining an LUT of grid point data in cubic interpolation;

【図4】RGB空間における変換点Pを取り囲む立方体
を説明するための説明図。
FIG. 4 is an explanatory diagram for explaining a cube surrounding a conversion point P in an RGB space.

【図5】立方体補間における格子点データのLUTを説
明するための説明図。
FIG. 5 is an explanatory diagram for explaining an LUT of grid point data in cubic interpolation.

【図6】(a)立方体補間における補間の原理を説明す
るための説明図。 (b)立方体補間における重み係数を説明するための説
明図。
FIG. 6A is an explanatory diagram for explaining the principle of interpolation in cubic interpolation. (B) Explanatory drawing for explaining the weight coefficient in cubic interpolation.

【図7】立方体補間における重み係数のLUTを説明す
るための説明図。
FIG. 7 is an explanatory diagram for explaining an LUT of a weight coefficient in cubic interpolation.

【図8】RGB空間における変換点Pが例外処理に該当
する場合を説明するための説明図。
FIG. 8 is an explanatory diagram for explaining a case where a conversion point P in the RGB space corresponds to exception processing.

【図9】変換点Pが例外処理に該当するか否かを判断す
るためのLUTを説明するための説明図。
FIG. 9 is an explanatory diagram for explaining an LUT for determining whether a conversion point P corresponds to exception processing.

【図10】例外処理に該当する場合を含む重み係数のL
UTを説明するための説明図。
FIG. 10 illustrates L of a weight coefficient including a case corresponding to exception processing.
FIG. 3 is an explanatory diagram for explaining a UT.

【図11】第1及び第4の実施形態における色変換処理
を行うときの動作を示すフローチャート。
FIG. 11 is a flowchart showing an operation when performing color conversion processing in the first and fourth embodiments.

【図12】第2及び第5の実施形態における色変換処理
を行うときの動作を示すフローチャート。
FIG. 12 is a flowchart showing an operation when performing color conversion processing in the second and fifth embodiments.

【図13】第2及び第5の実施形態における色変換処理
を行うときの動作を示すフローチャート。
FIG. 13 is a flowchart showing an operation when performing color conversion processing in the second and fifth embodiments.

【図14】第3及び第6の実施形態における色変換処理
を行うときの動作を示すフローチャート。
FIG. 14 is a flowchart illustrating an operation when performing color conversion processing in the third and sixth embodiments.

【図15】(a)立方体を6分割する方法を説明するた
めの説明図。 (b)6分割して得られた三角錐を説明するための説明
図。
FIG. 15A is an explanatory diagram for explaining a method of dividing a cube into six. (B) Explanatory drawing for demonstrating the triangular pyramid obtained by dividing into six.

【図16】(a)BL>GL>RLの場合における三角
錐を説明するための説明図。 (b)GL>RL>BLの場合における三角錐を説明す
るための説明図。 (c)RL>BL>GLの場合における三角錐を説明す
るための説明図。 (d)GL≧BL≧RL(RL≠GL)の場合における
三角錐を説明するための説明図。 (e)RL≧GL≧BLの場合における三角錐を説明す
るための説明図。 (f)BL≧RL≧GL(GL≠BL)の場合における
三角錐を説明するための説明図。
FIG. 16A is an explanatory diagram for explaining a triangular pyramid in a case where BL>GL> RL. (B) Explanatory drawing for demonstrating the triangular pyramid in case of GL>RL> BL. (C) Explanatory drawing for demonstrating the triangular pyramid in case of RL>BL> GL. (D) An explanatory diagram for explaining a triangular pyramid in the case of GL ≧ BL ≧ RL (RL ≠ GL). (E) Explanatory drawing for demonstrating the triangular pyramid in case of RL≥GL≥BL. (F) An explanatory diagram for explaining a triangular pyramid in the case of BL ≧ RL ≧ GL (GL ≠ BL).

【図17】BL>GL>RLの場合における三角錐を説
明するための説明図。
FIG. 17 is an explanatory diagram for explaining a triangular pyramid in a case where BL>GL> RL.

【図18】(a)BL>GL>RLの場合における三角
錐Vaの体積を説明するための説明図。 (b)BL>GL>RLの場合における三角錐Vbの体
積を説明するための説明図。 (c)BL>GL>RLの場合における三角錐Vcの体
積を説明するための説明図。 (d)BL>GL>RLの場合における三角錐Vdの体
積を説明するための説明図。
FIG. 18A is an explanatory diagram for explaining the volume of the triangular pyramid Va in the case of BL>GL> RL. (B) Explanatory drawing for demonstrating the volume of the triangular pyramid Vb in case of BL>GL> RL. (C) Explanatory drawing for demonstrating the volume of the triangular pyramid Vc in case of BL>GL> RL. (D) Explanatory drawing for demonstrating the volume of the triangular pyramid Vd in case of BL>GL> RL.

【図19】(a)BL>GL>RLの場合における三角
錐Vcの体積を説明するための説明図。 (b)(a)に示す三角錐Vcを矢印方向から見た側面
図。
FIG. 19A is an explanatory diagram for explaining the volume of the triangular pyramid Vc in the case of BL>GL> RL. (B) The side view which looked at the triangular pyramid Vc shown to (a) from the arrow direction.

【図20】GL>RL>BLの場合における三角錐を説
明するための説明図。
FIG. 20 is an explanatory diagram for explaining a triangular pyramid in the case of GL>RL> BL.

【図21】(a)GL>RL>BLの場合における三角
錐Vaの体積を説明するための説明図。 (b)GL>RL>BLの場合における三角錐Vbの体
積を説明するための説明図。 (c)GL>RL>BLの場合における三角錐Vcの体
積を説明するための説明図。 (d)GL>RL>BLの場合における三角錐Vdの体
積を説明するための説明図。
FIG. 21A is an explanatory diagram for explaining the volume of the triangular pyramid Va in the case of GL>RL> BL. (B) Explanatory drawing for demonstrating the volume of the triangular pyramid Vb in case of GL>RL> BL. (C) Explanatory drawing for demonstrating the volume of the triangular pyramid Vc in case of GL>RL> BL. (D) Explanatory drawing for demonstrating the volume of the triangular pyramid Vd in case of GL>RL> BL.

【図22】(a)GL>RL>BLの場合における三角
錐Vcの体積を説明するための説明図。 (b)(a)に示す三角錐Vcを矢印方向から見た側面
図。
FIG. 22 (a) is an explanatory diagram for explaining the volume of the triangular pyramid Vc when GL>RL> BL. (B) The side view which looked at the triangular pyramid Vc shown to (a) from the arrow direction.

【図23】RL>BL>GLの場合における三角錐を説
明するための説明図。
FIG. 23 is an explanatory diagram for explaining a triangular pyramid in the case of RL>BL> GL.

【図24】(a)RL>BL>GLの場合における三角
錐Vaの体積を説明するための説明図。 (b)RL>BL>GLの場合における三角錐Vbの体
積を説明するための説明図。 (c)RL>BL>GLの場合における三角錐Vcの体
積を説明するための説明図。 (d)RL>BL>GLの場合における三角錐Vdの体
積を説明するための説明図。
24A is an explanatory diagram for explaining the volume of a triangular pyramid Va in the case of RL>BL> GL. FIG. (B) Explanatory drawing for demonstrating the volume of the triangular pyramid Vb in case of RL>BL> GL. (C) Explanatory drawing for demonstrating the volume of the triangular pyramid Vc in case of RL>BL> GL. (D) Explanatory drawing for demonstrating the volume of the triangular pyramid Vd in case of RL>BL> GL.

【図25】(a)RL>BL>GLの場合における三角
錐Vcの体積を説明するための説明図。 (b)(a)に示す三角錐Vcを矢印方向から見た側面
図。
FIG. 25A is an explanatory diagram for explaining the volume of the triangular pyramid Vc in the case of RL>BL> GL. (B) The side view which looked at the triangular pyramid Vc shown to (a) from the arrow direction.

【図26】GL≧BL≧RL(RL≠GL)の場合にお
ける三角錐を説明するための説明図。
FIG. 26 is an explanatory diagram for explaining a triangular pyramid in the case of GL ≧ BL ≧ RL (RL ≠ GL).

【図27】(a)GL≧BL≧RL(RL≠GL)の場
合における三角錐Vaの体積を説明するための説明図。 (b)GL≧BL≧RL(RL≠GL)の場合における
三角錐Vbの体積を説明するための説明図。 (c)GL≧BL≧RL(RL≠GL)の場合における
三角錐Vcの体積を説明するための説明図。 (d)GL≧BL≧RL(RL≠GL)の場合における
三角錐Vdの体積を説明するための説明図。
FIG. 27 (a) is an explanatory diagram for explaining the volume of a triangular pyramid Va when GL ≧ BL ≧ RL (RL ≠ GL). (B) An explanatory diagram for explaining the volume of the triangular pyramid Vb when GL ≧ BL ≧ RL (RL ≧ GL). (C) Explanatory drawing for demonstrating the volume of the triangular pyramid Vc in case of GL≥BL≥RL (RL ≠ GL). (D) An explanatory diagram for explaining the volume of the triangular pyramid Vd when GL ≧ BL ≧ RL (RLLGL).

【図28】(a)GL≧BL≧RL(RL≠GL)の場
合における三角錐Vcの体積を説明するための説明図。 (b)(a)に示す三角錐Vcを矢印方向から見た側面
図。
FIG. 28 (a) is an explanatory diagram for explaining the volume of the triangular pyramid Vc when GL ≧ BL ≧ RL (RL ≠ GL). (B) The side view which looked at the triangular pyramid Vc shown to (a) from the arrow direction.

【図29】RL≧GL≧BLの場合における三角錐を説
明するための説明図。
FIG. 29 is an explanatory diagram for explaining a triangular pyramid when RL ≧ GL ≧ BL.

【図30】(a)RL≧GL≧BLの場合における三角
錐Vaの体積を説明するための説明図。 (b)RL≧GL≧BLの場合における三角錐Vbの体
積を説明するための説明図。 (c)RL≧GL≧BLの場合における三角錐Vcの体
積を説明するための説明図。 (d)RL≧GL≧BLの場合における三角錐Vdの体
積を説明するための説明図。
FIG. 30 (a) is an explanatory diagram for explaining the volume of a triangular pyramid Va when RL ≧ GL ≧ BL. (B) An explanatory diagram for explaining the volume of the triangular pyramid Vb when RL ≧ GL ≧ BL. (C) Explanatory drawing for demonstrating the volume of the triangular pyramid Vc in case of RL≥GL≥BL. (D) Explanatory drawing for demonstrating the volume of the triangular pyramid Vd in case of RL≥GL≥BL.

【図31】(a)RL≧GL≧BLの場合における三角
錐Vcの体積を説明するための説明図。 (b)(a)に示す三角錐Vcを矢印方向から見た側面
図。
FIG. 31A is an explanatory diagram for explaining the volume of the triangular pyramid Vc when RL ≧ GL ≧ BL. (B) The side view which looked at the triangular pyramid Vc shown to (a) from the arrow direction.

【図32】BL≧RL≧GL(GL≠BL)の場合にお
ける三角錐を説明するための説明図。
FIG. 32 is an explanatory diagram for explaining a triangular pyramid in a case where BL ≧ RL ≧ GL (GL ≠ BL).

【図33】(a)BL≧RL≧GL(GL≠BL)の場
合における三角錐Vaの体積を説明するための説明図。 (b)BL≧RL≧GL(GL≠BL)の場合における
三角錐Vbの体積を説明するための説明図。 (c)BL≧RL≧GL(GL≠BL)の場合における
三角錐Vcの体積を説明するための説明図。 (d)BL≧RL≧GL(GL≠BL)の場合における
三角錐Vdの体積を説明するための説明図。
FIG. 33 (a) is an explanatory diagram for explaining the volume of a triangular pyramid Va when BL ≧ RL ≧ GL (GL ≠ BL). (B) An explanatory diagram for explaining the volume of the triangular pyramid Vb when BL ≧ RL ≧ GL (GL ≠ BL). (C) Explanatory drawing for demonstrating the volume of the triangular pyramid Vc in case of BL ≧ RL ≧ GL (GL ≠ BL). (D) An explanatory diagram for explaining the volume of the triangular pyramid Vd when BL ≧ RL ≧ GL (GL ≠ BL).

【図34】(a)BL≧RL≧GL(GL≠BL)の場
合における三角錐Vcの体積を説明するための説明図。 (b)(a)に示す三角錐Vcを矢印方向から見た側面
図。
FIG. 34 (a) is an explanatory diagram for explaining the volume of the triangular pyramid Vc when BL ≧ RL ≧ GL (GL ≠ BL). (B) The side view which looked at the triangular pyramid Vc shown to (a) from the arrow direction.

【図35】三角錐補間における重み係数のLUTを説明
するための説明図。
FIG. 35 is an explanatory diagram for explaining an LUT of a weight coefficient in triangular pyramid interpolation.

【図36】(RL,GL,BL)の各値の大小関係で決
定されるオフセットを記憶するLUTを説明するための
説明図。
FIG. 36 is an explanatory diagram for explaining an LUT that stores an offset determined based on the magnitude relationship of each value of (RL, GL, BL).

【図37】三角錐補間における格子点データのLUTを
説明するための説明図。
FIG. 37 is an explanatory diagram for explaining an LUT of grid point data in triangular pyramid interpolation.

【図38】三角錐補間における格子点データのLUTを
説明するための説明図。
FIG. 38 is an explanatory diagram for explaining an LUT of grid point data in triangular pyramid interpolation.

【図39】RH=15,GH<15,BH<15の場合
であって、且つ、RL≧GL≧BLの場合における三角
錐を説明するための説明図。
FIG. 39 is an explanatory diagram for explaining a triangular pyramid when RH = 15, GH <15, and BH <15, and when RL ≧ GL ≧ BL.

【図40】(a)RH=15,GH<15,BH<15
の場合であって、且つ、RL≧GL≧BLの場合におけ
る三角錐Vaの体積を説明するための説明図。 (b)RH=15,GH<15,BH<15の場合であ
って、且つ、RL≧GL≧BLの場合における三角錐V
bの体積を説明するための説明図。 (c)RH=15,GH<15,BH<15の場合であ
って、且つ、RL≧GL≧BLの場合における三角錐V
cの体積を説明するための説明図。 (d)RH=15,GH<15,BH<15の場合であ
って、且つ、RL≧GL≧BLの場合における三角錐V
dの体積を説明するための説明図。
FIG. 40 (a) RH = 15, GH <15, BH <15
FIG. 4 is an explanatory diagram for explaining the volume of the triangular pyramid Va in the case of RL ≧ GL ≧ BL. (B) Triangular pyramid V when RH = 15, GH <15, BH <15, and when RL ≧ GL ≧ BL
Explanatory drawing for demonstrating the volume of b. (C) Triangular pyramid V when RH = 15, GH <15, BH <15, and when RL ≧ GL ≧ BL
FIG. 4 is an explanatory diagram for explaining the volume of c. (D) Triangular pyramid V when RH = 15, GH <15, BH <15, and RL ≧ GL ≧ BL
FIG. 4 is an explanatory diagram for explaining the volume of d.

【図41】(a)RH=15,GH<15,BH<15
の場合であって、且つ、RL≧GL≧BLの場合におけ
る三角錐Vcの体積を説明するための説明図。 (b)(a)に示す三角錐Vcを矢印方向から見た側面
図。
FIG. 41 (a) RH = 15, GH <15, BH <15
FIG. 9 is an explanatory diagram for explaining the volume of the triangular pyramid Vc in the case of RL ≧ GL ≧ BL. (B) The side view which looked at the triangular pyramid Vc shown to (a) from the arrow direction.

【図42】RH<15,GH=15,BH=15の場合
であって、且つ、RL>BL>GLの場合における三角
錐を説明するための説明図。
FIG. 42 is an explanatory diagram for explaining a triangular pyramid when RH <15, GH = 15, BH = 15, and when RL>BL> GL.

【図43】(a)RH<15,GH=15,BH=15
の場合であって、且つ、RL>BL>GLの場合におけ
る三角錐Vaの体積を説明するための説明図。 (b)RH<15,GH=15,BH=15の場合であ
って、且つ、RL>BL>GLの場合における三角錐V
bの体積を説明するための説明図。 (c)RH<15,GH=15,BH=15の場合であ
って、且つ、RL>BL>GLの場合における三角錐V
cの体積を説明するための説明図。 (d)RH<15,GH=15,BH=15の場合であ
って、且つ、RL>BL>GLの場合における三角錐V
dの体積を説明するための説明図。
FIG. 43 (a) RH <15, GH = 15, BH = 15
FIG. 4 is an explanatory diagram for explaining the volume of the triangular pyramid Va in the case of RL>BL> GL. (B) Triangular pyramid V when RH <15, GH = 15, BH = 15, and when RL>BL> GL
Explanatory drawing for demonstrating the volume of b. (C) Triangular pyramid V when RH <15, GH = 15, BH = 15, and when RL>BL> GL
FIG. 4 is an explanatory diagram for explaining the volume of c. (D) Triangular pyramid V when RH <15, GH = 15, BH = 15, and when RL>BL> GL
FIG. 4 is an explanatory diagram for explaining the volume of d.

【図44】(a)RH<15,GH=15,BH=15
の場合であって、且つ、RL>BL>GLの場合におけ
る三角錐Vcの体積を説明するための説明図。 (b)(a)に示す三角錐Vcを矢印方向から見た側面
図。
FIG. 44 (a) RH <15, GH = 15, BH = 15
FIG. 9 is an explanatory diagram for explaining the volume of the triangular pyramid Vc in the case of RL>BL> GL in the case of FIG. (B) The side view which looked at the triangular pyramid Vc shown to (a) from the arrow direction.

【図45】例外処理に該当する場合を含む重み係数のL
UTを説明するための説明図。
[FIG. 45] L of weight coefficient including a case corresponding to exception processing
FIG. 3 is an explanatory diagram for explaining a UT.

【図46】別の実施形態としての三角柱補間(6点補
間)の例を示す説明図。
FIG. 46 is an explanatory diagram showing an example of triangular prism interpolation (six-point interpolation) as another embodiment.

【図47】別の実施形態としての四角錐補間(5点補
間)の例を示す説明図。
FIG. 47 is an explanatory diagram showing an example of quadrangular pyramid interpolation (5-point interpolation) as another embodiment.

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

1…画像処理装置としてのファクシミリ装置、11…制
御手段を構成するMPU、12…記憶手段及び制御手段
を構成するROM、13…制御手段を構成するRAM。
DESCRIPTION OF SYMBOLS 1 ... Facsimile machine as an image processing apparatus, 11 ... MPU which comprises control means, 12 ... ROM which comprises storage means and control means, 13 ... RAM which comprises control means.

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 2H030 AD12 BB02 5B057 CA01 CB01 CE18 CH07 CH11 CH18 5C077 LL18 MP08 PP32 PP33 PQ08 PQ23 RR19 5C079 HB01 HB03 HB12 LA28 LA31 MA04 NA11 PA01  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 2H030 AD12 BB02 5B057 CA01 CB01 CE18 CH07 CH11 CH18 5C077 LL18 MP08 PP32 PP33 PQ08 PQ23 RR19 5C079 HB01 HB03 HB12 LA28 LA31 MA04 NA11 PA01

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 色空間を変換する画像処理装置におい
て、少なくとも変換点を取り囲む格子点の格子点データ
を演算に必要な順に連続して記憶する記憶手段と、基準
となる格子点における格子点データの参照アドレスを算
出するとともに、その参照アドレスから順次インクリメ
ントを行って、変換点の補間演算に必要な格子点データ
を読み出し、変換点の補間演算を行う制御手段とを備え
た画像処理装置。
1. An image processing apparatus for converting a color space, comprising: storage means for continuously storing at least grid point data of grid points surrounding a conversion point in an order necessary for calculation; and grid point data at a grid point serving as a reference. And a control means for calculating the reference address, sequentially incrementing the reference address, reading grid point data necessary for the interpolation operation of the conversion point, and performing the interpolation operation of the conversion point.
【請求項2】 請求項1に記載の画像処理装置におい
て、記憶手段は、例外処理に該当するか否かを記憶し、
制御手段は、例外処理に該当する場合と該当しない場合
とに応じて変換点の補間演算を行う画像処理装置。
2. The image processing apparatus according to claim 1, wherein the storage unit stores whether or not the exception processing is performed.
An image processing apparatus wherein the control means performs an interpolation calculation of a conversion point depending on whether or not the exception processing is performed.
【請求項3】 請求項1に記載の画像処理装置におい
て、制御手段は、例外処理に該当するか否かを判断する
ことなく、変換点の補間演算を行う画像処理装置。
3. The image processing apparatus according to claim 1, wherein the control unit performs an interpolation operation of the conversion point without determining whether the exception processing is performed.
JP29533098A 1998-10-16 1998-10-16 Image processing device Expired - Fee Related JP3409713B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29533098A JP3409713B2 (en) 1998-10-16 1998-10-16 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29533098A JP3409713B2 (en) 1998-10-16 1998-10-16 Image processing device

Publications (2)

Publication Number Publication Date
JP2000123153A true JP2000123153A (en) 2000-04-28
JP3409713B2 JP3409713B2 (en) 2003-05-26

Family

ID=17819226

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29533098A Expired - Fee Related JP3409713B2 (en) 1998-10-16 1998-10-16 Image processing device

Country Status (1)

Country Link
JP (1) JP3409713B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007189487A (en) * 2006-01-13 2007-07-26 Seiko Epson Corp Image processor
JP2012186832A (en) * 2012-05-07 2012-09-27 Konica Minolta Ij Technologies Inc Color adjustment method and color adjustment device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007189487A (en) * 2006-01-13 2007-07-26 Seiko Epson Corp Image processor
JP2012186832A (en) * 2012-05-07 2012-09-27 Konica Minolta Ij Technologies Inc Color adjustment method and color adjustment device

Also Published As

Publication number Publication date
JP3409713B2 (en) 2003-05-26

Similar Documents

Publication Publication Date Title
JP3664364B2 (en) Color conversion method
JP3083067B2 (en) Method and apparatus for determining color conversion coefficient
TW200534229A (en) Systems and methods for improved gamut mapping from one image data set to another
JP2008048432A (en) Image processing apparatus
US6922198B2 (en) Color signal processing apparatus and method for reproducing colors on MPD
JP3560521B2 (en) Image display device
JP3409713B2 (en) Image processing device
JP2001045313A (en) Method and device for converting color, color conversion program storage medium and method for correcting color
JP2893682B2 (en) Color image processing method
JPH11132850A (en) Conversion of color-expressing data and simulation of color printed matter with using the same
JP2007151055A6 (en) Image processing apparatus, image processing method, and image processing program
JP2007151055A (en) Image processing equipment, image processing method, and image processing program
JPH0795427A (en) Method and device for picture processing
JP3152186B2 (en) Color conversion method, color conversion table creation device, color conversion device, and recording medium
JP3584515B2 (en) Color signal conversion device and color signal conversion method
JP3153002B2 (en) Color conversion method, color conversion table creation method, color conversion device, and color conversion table creation device
JP2560972B2 (en) Automatic color gamut conversion method, automatic color gamut conversion device and automatic color conversion device
US7202971B2 (en) Color processing method, color processing apparatus, and color processing program storage medium
JP4062397B2 (en) Image processing apparatus, color conversion definition generation apparatus, image processing method, color conversion definition generation method, storage medium
JPH09224162A (en) Chrominance converter
JPH10198793A (en) Image processor
JP4400734B2 (en) Color conversion coefficient calculation apparatus, color conversion coefficient calculation method, image processing apparatus, color conversion coefficient calculation processing program, image processing program, and storage medium
JP2001148794A (en) Color conversion method, color conversion table generator, color converter and recording medium
JP2774879B2 (en) Color correction circuit
JP2001203903A (en) Color converting device

Legal Events

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

Free format text: PAYMENT UNTIL: 20090320

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120320

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120320

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130320

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130320

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20140320

Year of fee payment: 11

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees