JP3409713B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3409713B2
JP3409713B2 JP29533098A JP29533098A JP3409713B2 JP 3409713 B2 JP3409713 B2 JP 3409713B2 JP 29533098 A JP29533098 A JP 29533098A JP 29533098 A JP29533098 A JP 29533098A JP 3409713 B2 JP3409713 B2 JP 3409713B2
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.)
Expired - Fee Related
Application number
JP29533098A
Other languages
Japanese (ja)
Other versions
JP2000123153A (en
Inventor
勝巳 南野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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

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

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 specifically, to "color primary colors (R, G, B)" handled by a color printer, color monitor, color image data, etc. The three primary colors (C, M, Y
(, K)) ”for performing color conversion processing.

【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 a computer, anyone can easily handle a color image on the screen. The color image is easily input / 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 the recording paper by the color printer, each signal of the three primary colors (C, M, Y (, K)) of the color is recorded. Must be converted to. In televisions and displays, various colors can be expressed by combining the three primary colors of light (R, G, B). This method starts from a state where no color is shining (all are 0: black), and a state where all colors are shining (all are 100: white), by adding three colors, various colors are added. In order to express, it is called additive color mixture (color additive method).

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

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

【0005】[0005]

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

【0006】[0006]

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

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

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

【0010】[0010]

【発明の実施の形態】[第1の実施形態]…立方体補間
(8点補間)の場合 以下に、本発明をファクシミリ装置に具体化した第1の
実施形態について、図面を用いて説明する。
BEST MODE FOR CARRYING OUT THE INVENTION [First Embodiment] Case of Cube Interpolation (8-Point Interpolation) A first embodiment in which the present invention is embodied in a facsimile machine 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 and an RA.
The M11, the reading unit 14, the recording unit 15, the operation unit 16, the display unit 17, the image memory 18, the codec 19, the modem 20, and the NCU 21, and each unit 11 to 21.
Are respectively connected via the 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 device 1. Also, RO
M12 stores various data necessary for interpolation calculation. Specifically, a look-up table (LUT for short) of grid point data shown in FIG. 5 described later and FIG.
The LUT of the weighting coefficient W (w1 to w8) shown in FIG.
The RAM 13 temporarily stores various data related to the facsimile device 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 color printer, and receives image data of a document read by the reading unit 14 on a recording paper in a received image data or a copy operation. Record. The operation unit 16 includes a ten-key pad (including * and # keys) 16a for inputting a FAX number, abbreviated number registration, and an abbreviated key 16 for transmitting from an 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. The display unit 17 including an LCD or the like displays various information such as the operating state of the facsimile device 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 the received image data and the image data read by the reading unit 14 and compression-coded by the codec 19 by the MH, MR or MMR system. The codec 19 encodes the image data read by the reading unit 14 by the MH, MR, MMR method, or the like for transmission. The codec 19 also decodes the received image data. The modem 20 uses the ITU-T recommendation T.264. 30 based on the facsimile transmission control procedure according to V.30. 17, V.I. 27te
r, V. The transmission / reception data is modulated and demodulated according to any one of 29 or the like. The NCU 21 has a function of controlling connection with the telephone line L and detecting sending and receiving of a dial signal corresponding to the FAX number of the other party.

【0015】次に、ルックアップテーブル(LUT)を
用いた補間演算法による色変換処理について説明する。
まず、立方体補間(8点補間)について、図面を用いて
説明する。なお、読取部14から出力されるRGB信号
は、それぞれ8〔bit〕のデータで構成されている。
従って、RGB信号は、それぞれ256階調のデータを
有する。
Next, a color conversion process by an interpolation calculation method using a look-up table (LUT) will be described.
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 RGB signal has data of 256 gradations.

【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 RGB space,
For each lower 4 [bit] of the RGB signal, in other words, when each axis is divided into 16, the number of intersections between each axis and each grid point is "1.
7 ”. That is, the intersection of each axis and each grid point is
"0, 16, 32, ..., 240, 255".
Here, when the intersection points of each axis and each grid point are expressed by hexadecimal numbers, “00h, 10h, 20h, ..., F0h, FF
h ". In addition, "h" shows 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
Up to “h)”, there is an intersection every time “16” increases,
"15" up to "240-255 (F0h-FFh)"
When it increases, it becomes the 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 the RGB signal corresponding to the grid point,
The color conversion process can be performed quickly from the grid point data without any calculation.

【0018】しかしながら、現実の色変換処理では、変
換点が格子点に該当することは、極めて稀である。この
ため、変換点が格子点に該当しない場合は、その変換点
を取り囲む立方体における格子点の格子点データに基づ
いて、補間演算を行っている。従って、変換点における
RGB信号の各上位4〔bit〕を(RH,GH,B
H)とすると、その(RH,GH,BH)の各値に基づ
けば、変換点が何れの立方体内に位置しているかを判断
することができる。
However, in the actual color conversion processing, it is extremely rare that the conversion points correspond to the grid points. Therefore, when the conversion point does not correspond to the grid point, the interpolation calculation is performed based on the grid point data of the grid point in the cube surrounding the conversion point. Therefore, each upper 4 [bit] of the RGB signal at the conversion point is (RH, GH, B
H), it is possible to determine in which cube the conversion point is located based on the respective values 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” component is stored
Assume a UT. That is, "C" component, "M" component,
The upper 4 [bit] of each RGB signal at the conversion point P corresponding to the “Y” component and the “K” component in this order are represented by (R
H, GH, BH), (0,0,0), (1,
0,0), (2,0,0), ..., (16,16,1)
5), the grid point data is stored in the order of the grid points of (16, 16, 16).

【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 represented by the RGB signal is defined as "P", and each lattice point of the cube surrounding the conversion point P. Is “A to H”, the reference address HADR (N) of the grid point data of the “C” component in the grid point data of 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)[0021]   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 ……… (Equation 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 exponentiation. 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
When the offset to the next component “M, Y, K” is examined with reference to, the offset M (os) to the next component “M”
Can be shown as: M (os) = 17∧3 = 4913 (Equation 1-9) Further, 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」に変化す
る毎に、そのアドレスを算出しなければならない。
Therefore, when the grid point data is stored as shown in FIG. 3, the above (formula 1-2) to (formula 1-8) are stored.
As is clear from the above, when the reference address of the grid point "A" in the "C" component is used as a reference, the grid point "B ~
The offset of the reference address in “H” 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 above (Formula 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 from the reference address of the grid point “A” in the reference “C” component by the next component “M, Y, K”. Therefore, in order to obtain the 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, each upper 4 [bit] of the RGB signal at the conversion point P is (RH, GH,
BH), (0,0,0), (1,0,0),
(2,0,0), ..., (15,15,14), (1
5, 15 and 15), the grid point data of eight grid points “A to H” are stored for each CMYK. Specifically, for (0,0,0), the grid point data of grid points “A to H” in the “C” component, the grid point data of grid points “A to H” in “M”, and “ 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」の格子点データを
記憶させる。
Then, 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 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 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」にお
ける全ての格子点データを得ることができる。
If the data is stored in this way, the grid point data to be stored is increased, but the grid point "A" in the "C" component is increased.
If the reference address HADR (A) of is determined, the reference addresses of the lattice points “A to H” can be obtained only by sequentially incrementing. 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 grid points “A to H” can be obtained. 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. Then, by incrementing eight times, all grid point data in the “M” component can be obtained. In addition, if it is incremented eight times, all grid point data in "Y" can be obtained. Further, if it is incremented eight times, all grid point data in "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 grid point data in the “C, M, Y, K” components can be sequentially obtained by incrementing 31 times from the reference address HADR (A). Therefore, (RH, GH,
BH) grid point data includes (0,0,0) to (1
6, 16, 16), not (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)
Therefore, 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 shown as follows. HADR (A) = (RH + GH * 16 + BH * 16∧2) * 4 * 8 = (RH + GH * 16 + BH * 256) * 32 ……… (Equation 2-1) Also, “C” The reference address HADR (N) (where N = B to H) of the lattice points “B to H” in the component can be shown 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 ……… (Equation 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) Similarly, the grid points “A to
Reference address HADR (N) of “H” (where N = A to
H) can also be shown using an expression that represents an 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, in the cube, when 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 converted with the conversion point P as a reference. 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 w
1 to w8, the interpolated 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) In addition, “c1 to c8” are in the “C” component obtained by increment based on the reference address HADR (A) of the above (Equation 2-1). It is the grid point data of the 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)
Also, the "M" component at the conversion point P,
Interpolated values IPL (M), IPL of the “Y” component and the “K” component
Similarly, (Y) and IPL (K) can be shown 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」成分に無関係
である。
Incidentally, "m1 to m8", "y1 to y8" and "k1 to k8" are also obtained by incrementing "M, Y," based on the reference address HADR (A) of (Formula 2-1). It is grid point data of grid points “A to H” in “K”. As described above, it is also clear from (Equation 3-1) to (Equation 3-4) showing the interpolated value IPL (N) of the “C, M, Y, K” component (where N = C, M, Y, K). As described above, the volumes w1 to w8 of the rectangular parallelepiped are the “weighting coefficient W” in the interpolation value IPL (N). Moreover, "C, M, Y, K"
The weighting factors W (w1 to w8) used when calculating the interpolated value IPL (N) of the component are all the same. In other words, the weighting factor 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 weighting factors W (w1 to w8) irrelevant to the "C, M, Y, K" components are continuously stored. That is, as shown in FIG. 7, color image data output from the reading unit 14, that is, RGB at the conversion point P.
If the lower 4 bits of the signal are (RL, GL, BL), (0, 0, 0), (1, 0, 0), (2, 0,
0, ..., (15,15,14), (15,15,
15) In the order of each grid point, the corresponding weighting factor 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, the weighting coefficient W (w1 to w8) is stored for (0, 0, 0). Then, (1,
The weighting coefficient W (w1 to w8) is stored for 0, 0). And finally, for (15,15,15),
The weighting factor W (w1 to w8) is stored. Therefore, the reference address LADR (w1) of the weighting factor w1 can be shown as follows. LADR (w1) = (RL + GL * 16 + BL * 16∧2) * 8 = (RL + GL * 16 + BL * 256) * 8 ……… (Equation 4-1) Weighting factors w2 to w8 Reference address LADR
(N) (however, N = w2-w8) can be shown as follows. LADR (w2) = (RL + GL * 16 + BL * 16∧2) * 8 + 1 = LADR (w1) +1 ……… (Equation 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 ……… ( Therefore, if stored in this manner, if the reference address LADR (w1) of the weighting factor w1 is known, all the weighting factors W (w1 to w8) can be sequentially obtained by incrementing by 7 times. it can. Similarly, the reference address LAD of the weighting factor W (w1 to w8) in “M, Y, K”.
R (N) (however, N = w1 to w8) can also be shown by the formula showing 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) (however, N = C, M, Y, K) will be described. When the color image data output from the reading unit 14, that is, the respective lower 4 [bits] of the RGB signal at the conversion point P is (RL, GL, BL),
Interpolated value IPL (N) of "C, M, Y, K" components (however,
N = C, M, Y, K) is expressed by (Formula 3-1) to (Formula 3-4).
Therefore, 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)) (where N = A to H) is obtained by incrementing “C, M,
It is the grid point data of the grid points "A to H" in the "Y, K" component.

【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. 6 (b),
The volumes of eight rectangular parallelepipeds based on the conversion point P, that is, the weighting factors W (w1 to w8) are set to the lower 4 [bi of the RGB signals.
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, in (Equation 5), (Equation 6-1)-
Substituting (Equation 6-8), the interpolated value IPL (N) of the “C, M, Y, K” component (where N = C, M, Y, K) 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) ……… (Equation 7) Note that f (HADR (N)) shown in (Equation 7) (however, 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 (formula 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, the case where the conversion point P corresponds to exceptional processing in cubic interpolation will be described. In the RGB space shown in FIG. 2, each RGB signal is 8 [bi
t], each axis is "0 to 255 (00
h to FFh) ”. Therefore, each axis has 16
When divided, not all have the same spacing. That is, in each axis, the intersection between "0 to 240 (00h to F0h)" is increased by "16".
The portion "55 (F0h to FFh)" becomes an intersection when "15" is increased. Therefore, the size of the interpolation calculation is "2
40-255 (F0h-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 "240-255 (F
0h to FFh) ”must be determined. However, when the interpolation calculation is configured by software, the interpolation calculation process is performed after determining whether the conversion point P corresponds to the exceptional process. Since the determination process of whether or not it corresponds to the exception process is performed for all pixels, even if the time required for the determination process for one pixel is a minute time, the determination process is performed for many pixels. If so, the determination process takes time. Therefore, as shown in FIG.
Consider the case of exception handling in a cube in GB space. In other words, the case where the exception processing is applied means that each upper 4 [bit] of the RGB signal at the conversion point P is (R
H, GH, BH), then (RH, GH, BH)
This is a case where any one of the values of 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 exceptional processing, there are the following "7 ways". [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 E5) [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)
Therefore, the weighting factor W (w1 to w8) in the case of the exceptional processing of the above [1] to [7] is
From the above (formula 6-1) to (formula 6-8), it can be shown as follows. [1] In the case of 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)[0045]   [2] In the case of RH <15, GH = 15, BH <15 (E2 shown in FIG. 8)   w1 = (16-RL) * (15-GL) * (16-BL) ……… (Equation 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-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)[0046]   [3] In case of RH <15, GH <15, BH = 15 (E3 shown in FIG. 8)   w1 = (16-RL) * (16-GL) * (15-BL) ……… (Equation 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-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)[0047]   [4] In the case of RH = 15, GH = 15, BH <15 (E4 shown in FIG. 8)   w1 = (15-RL) * (15-GL) * (16-BL) ……… (Equation 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-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)[0048]   [5] In the case of RH <15, GH = 15, BH = 15 (E5 shown in FIG. 8)   w1 = (16-RL) * (15-GL) * (15-BL) ……… (Equation 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-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)[0049]   [6] In the case of RH = 15, GH <15, BH = 15 (E6 shown in FIG. 8)   w1 = (15-RL) * (16-GL) * (15-BL) ……… (Equation 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-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)[0050]   [7] In the case of RH = 15, GH = 15, BH = 15 (E7 shown in FIG. 8)   w1 = (15-RL) * (15-GL) * (15-BL) ……… (Equation 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-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 or not the conversion point P corresponds to exceptional processing will be described. Each upper 4 [bit] of the RGB signal at the conversion point P is (RH, GH, B
H), the interpolation calculation process may be performed by determining whether any of the values (RH, GH, BH) is “15”. However, in order to perform the interpolation calculation processing at higher speed, and thus to improve the processing speed of the entire apparatus, the cases where the exception processing is applied to (RH, GH, BH) and the cases where the exception processing is not applied In order to determine that, a value of "0 to 7" is stored for (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, assuming that each of the upper 4 bits of the RGB signal is (RH, GH, BH) and the value indicating whether or not the exceptional processing is applied is "Z", In the case of [1] to [7] corresponding to the exception processing of
When the value of “Z” is set to “1 to 7,” it does not correspond to exception processing, that is, each value 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”. Therefore, whether or not the exception processing is applicable can be determined based on (RH, GH, BH) by the value “Z” indicating whether or not the exception processing is applied. In addition, it is possible to determine which of the "7 types" of exception processing shown in [1] to [7] corresponds to.

【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 it corresponds to the exception processing is (RH, G
H, BH) can be used to show 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 exceptional processing will be described. That is,
In the “7 ways” exception handling shown in [1] to [7],
A value “Z” indicating whether or not it corresponds to exception processing is respectively set to [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 If defined in advance, the value “Z” indicating whether or not it corresponds to the exception processing can be indicated as follows. Z = (RH == 15) + (GH == 15) * 2 + (BH == 15) * 4 ……… (Equation 15-1) Here, “RH == 15” means RH = 15 In the case of, the rule is “1”, and in the case of RH ≠ 15, it is “0”. In addition,
“GH == 15” and “BH == 15” also have “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 exceptional processing will be described with reference to the drawings. As shown in FIG. 10, “Z” is a value indicating whether or not exception processing is performed, and color image data output from the reading unit 14, that is, each lower 4 [bit] of the RGB signal is (RL, GL). , BL) and the weighting factor is “W”, and corresponds to each Z (= 0 to 7) (RL, G
L, BL) are stored. Also, (RL, GL, BL)
The weighting factor W corresponding to is sequentially 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)を記憶させる。
Specifically, the weighting coefficient W (w1 to w8) is stored for (0, 0, 0) when Z = “0”. Then, the weighting factor W (w1 to w8) is stored for (1, 0, 0). And finally, Z
The weighting factor W (w1 to w8) is 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)
Therefore, the reference address ELADR (w1) of the weighting factor w1 including the case corresponding to the exceptional processing can be shown 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) In addition, the weighting factors w2 to w including the case corresponding to 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 weighting factor w1 Based on the reference address ELADR (w1), all the weighting factors W (w1 to w8) can be sequentially obtained only by incrementing seven times.

【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,
Interpolated value IPL (N) of the “K” component (where N = C, M,
A method of calculating Y, K) will be described. Reading unit 14
If the lower 4 [bits] of the RGB image data, that is, the lower 4 bits of the RGB signal are (RL, GL, BL), the interpolated value IPL (N) of the “C, M, Y, K” components (however, N = C, M, Y, K) is similar to 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 (Expression 17) is
(N)) (where N = A to H) is obtained by incrementing “C, M,
It is the grid point data of the grid points "A to H" in the "Y, K" component.

【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 weighting factor W (w1 to w8) is RG
Each lower 4 [bit] of the B signal, that is, (RL, GL,
When expressed by BL), (Equation 8-1) to (Equation 14-)
From 8), interpolation value IPL (N) (where N = C, M,
The above (formula 17) indicating 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) Note that ( Formula 18) can also be obtained by substituting “16 * RL / 15” for “RL” shown in (Formula 7).

【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) Note that (Equation 19) can also be obtained by substituting “16 * GL / 15” into “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) Note that (Equation 20) can also be obtained by substituting “16 * BL / 15” into “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, in (Expression 21), "RL" shown in (Expression 7) is "16 * RL / 15", and "GL" is "16 * GL / 1".
5 ”can also be obtained by substituting each of them.

【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, in (Expression 22), "16 * GL / 15" is added to "GL" and "16 * BL / 1" is added to "BL" shown in (Expression 7).
5 ”can also be obtained by substituting each of them.

【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) In addition, (Expression 23) is changed to "16" in "RL" shown in (Expression 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, in (Formula 24), "16 * RL / 15" is added to "RL" and "16 * GL / 1" is added to "GL" shown in (Formula 7).
5 ”can also be obtained by substituting“ 16 * BL / 15 ”into“ 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)を演算することができる。
In addition, f shown in (Equation 18) to (Equation 24)
(HADR (N)) (where N = A to H) is the value of the grid point "A to H" in the "C, M, Y, K" components obtained by increment based on the above (Equation 2-1). This is grid point data. Therefore, as shown in the LUT of the weighting coefficient including the case corresponding to the exceptional processing of FIG. 10, [1] to
According to the “7 ways” exception handling shown in [7], “RL,
"GL, BL" to "16 * RL / 15, 16 * G" respectively
L / 15, 16 * BL / 15 ”substituting weighting factor W
When (w1 to w8) is stored, (Equation 18) to (Equation 2)
Without performing the calculation of 4), from the above (Formula 7), “C,
Interpolated value IPL (N) of the “M, Y, K” component (where N =
C, M, Y, K) can be calculated.

【0069】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、図11に示すフロ
ーチャートを用いて説明する。なお、この動作は、RO
M12に記憶されたプログラムに基づき、MPU11の
制御により実行される。
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 color conversion processing for pixels will be described with reference to the flowchart shown in FIG. In addition, this operation is RO
It is executed under the control of the MPU 11 based on the program stored in 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, each lower 4 bits, that is, (RL, GL, BL) is extracted from the RGB signal at the conversion point P. In step S2, (RL,
GL, BL), the reference address LADR (w1) of the weighting factor w1 is calculated. Specifically, the reference address LA of the weighting factor w1 is calculated based on the above (formula 4-1).
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 conversion point P are stored in the ROM.
It is sequentially read from 12. Specifically, the reference address L of the weighting factor w1 calculated in step S2
The weighting factors W (w1 to w8) are sequentially incremented from ADR (w1), and are sequentially read from the LUT of the weighting factors W (w1 to w8) shown in FIG. Note that the weighting factors W (w1 to w8) may be calculated based on (RL, GL, BL) extracted in step S1 instead of the processing in steps S2 and S3. Specifically, the weighting factor 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
Each upper 4 bits from the B signal, that is, (RH, G
H, BH) is extracted. In step S5, (RH, GH, B extracted in step S4 is extracted.
Based on H), the reference address HADR (A) of the grid point “A” in the “C” component is calculated. In particular,
The reference address HADR (A) of the grid point “A” in the “C” component is calculated based on the above (formula 2-1).

【0073】ステップS6においては、変換点Pを取り
囲む立方体における格子点「A〜H」の格子点データが
ROM12から順次読み出される。具体的には、前記ス
テップS5において算出された「C」成分における格子
点「A」の参照アドレスHADR(A)から順次インク
リメントされて、「C」成分における格子点「A〜H」
の格子点データが、前記図5に示す格子点データのLU
Tから順次読み出される。
In step S6, the grid point data of 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.
The data is sequentially read from T.

【0074】ステップS7においては、変換点Pにおけ
る補間演算が行われる。具体的には、前記ステップS3
において読み出された重み係数W(w1〜w8)と、前
記ステップS6において読み出された「C」成分におけ
る格子点「A〜H」の格子点データとに基づいて、前記
(式5)により、変換点Pにおける補間演算が行われ
る。
In step S7, interpolation calculation at the conversion point P is performed. Specifically, the step S3
Based on the weighting factor W (w1 to w8) read in step S6 and the grid point data of grid points “A to H” in the “C” component read in step S6, The interpolation calculation 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 or not there is a next component. Specifically, when the "C" component is interpolated, the "M" component is interpolated, and when the "M" component is interpolated, the "Y" component and the "Y" component are interpolated. If it does, 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, for all "C, M,
When the interpolation calculation is completed for the “Y, K” components,
This process 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 lattice 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” for the “C, M, Y, K” components are stored, the calculation is performed in step S5. "C"
Reference address HADR of grid point "A" in the component
It only increments (A) sequentially. And
Steps S6 to S9 are repeatedly executed to perform interpolation calculation of "M, Y, K" at the conversion point P.
That is, steps S6 to S9 are repeatedly executed to perform interpolation calculation of the "C, M, Y, K" components at the conversion point P, and the RGB signal at the conversion point P is converted into a CMYK signal. Note that generally, since there are many pixels to be converted, this processing is repeatedly executed for 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 actions and effects can be obtained. (1) As shown in FIG. 5, in order of (RH, GH, BH), "C, M, Y, K" components are arranged in the order of "C, M, Y,
The 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. Therefore, if the reference address HADR (A) of the lattice point “A” in the cube surrounding the conversion point P is known based on the above (Equation 2-1), it is simply incremented sequentially and the other lattice points “B to H” are obtained. It is possible to obtain grid point data of ". As a result, the lattice point “A
It is possible to quickly obtain the grid point data of "~ H".

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

【0079】(2)色変換処理をソフトウェアを用いて
処理しているため、専用のLSIは不要である。しか
も、ハードウェアを用いて構成していないため、LSI
の小型化やコストダウンを容易に図ることができる。加
えて、専用の回路が不要となるため、種々の補間演算法
に対応することができる。
(2) Since the color conversion processing is performed using software, a dedicated LSI is unnecessary. Moreover, because it is not configured using hardware, the LSI
It is possible to easily reduce the size and reduce the cost. In addition, since a dedicated circuit is unnecessary, 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, the weighting factor W (w1 to w8) is first read.
This is because the weighting factor W (w1 to w8) is "C, M, Y,
This is because it is the same regardless of the “K” component. Therefore, the interpolation calculation process can be performed quickly. Therefore, the color conversion process can be performed at high speed.

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

【0082】(5)この第1の実施形態においては、変
換点Pが例外処理に該当する場合であっても、通常通り
の重み係数Wを利用して色変換処理を行わせている。こ
のため、変換点Pが例外処理に該当する場合は、色変換
処理後の値に多少の誤差が含まれる。しかしながら、変
換点Pが例外処理に該当する場合は極稀である。従っ
て、色変換処理をより一層高速にすることができる。し
かも、変換点Pが例外処理に該当することは極稀である
ため、色変換処理を行っている画像全体において誤差が
大きく影響することはない。
(5) In the first embodiment, even when the conversion point P corresponds to an exceptional process, the color conversion process is performed using the normal weighting coefficient W. Therefore, when the conversion point P corresponds to the exceptional processing, the value after the color conversion processing includes some error. However, it is extremely rare that the conversion point P corresponds to exceptional processing. Therefore, the color conversion processing can be made even faster. Moreover, since the conversion point P rarely corresponds to exceptional processing, the error does not significantly 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] ... In the case of cubic interpolation (8-point interpolation) In the second embodiment, the same configuration as that of the first embodiment is the same as that of the first embodiment. The reference numerals are given and the description is omitted. The second embodiment takes into consideration the case corresponding to the exception processing in the first embodiment. Therefore, in the second embodiment, the ROM 12 stores the LUT of grid point data shown in FIG.
The LUT for determining whether the conversion point P shown in FIG. 9 corresponds to an exceptional process and the LUT of the weighting coefficient W (w1 to w8) including the case where it corresponds to the exceptional process shown in FIG. 10 are stored.

【0084】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、図12及び図13
に示すフローチャートを用いて説明する。なお、この動
作は、ROM12に記憶されたプログラムに基づき、M
PU11の制御により実行される。
Next, in the facsimile apparatus 1, 1 when the RGB signal of the conversion point P is output from the reading unit 14.
Regarding the operation of color conversion processing for pixels, FIG. 12 and FIG.
This will be described with reference to the flowchart shown in. Note that this operation is based on a program stored in the ROM 12,
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. 12,
From the RGB signal at the conversion point P, each upper 4 [bit], that is, (RH, GH, BH) is extracted. Step S12
In step S11, it is determined whether the conversion point P corresponds to an exceptional process, based on (RH, GH, BH) extracted in step S11. 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, it is determined whether or not the conversion point P corresponds to the exceptional process based on the LUT for determining whether or not the conversion point P shown in FIG. 9 corresponds to the exceptional process. That is, when the value of “Z” indicating whether or not the exception processing is applied is “1 to 7”, it is determined that the exception processing is applied, and the process proceeds to step S31 shown in FIG. On the other hand, when the value of “Z” indicating whether or not the exception processing is applied is “0”, it is determined that the exception processing is not applied,
Control goes to step S13. In addition, the above (formula 15-1)
It may be possible to determine whether or not it corresponds to the exception processing based on.

【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, R of the conversion point P
Each lower 4 bits from the GB signal, that is, (RL, G
L, BL) are extracted. In step S14,
(RL, GL, extracted in step S13)
Based on BL), the reference address ELADR (w1) of the weighting factor w1 including the case corresponding to the exceptional process is calculated. Specifically, the reference address ELADR (w1) of the weighting factor 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 weighting coefficient W (w1 to w8) in the cube surrounding the conversion point P is RO.
The data is sequentially read from M12. Specifically, the reference address ELADR (w1) of the weighting factor w1 calculated in step S14 is sequentially incremented,
Weighting factors W (w1 to w8) including the case where all the weighting factors W (w1 to w8) correspond to the exceptional processing shown in FIG.
It is sequentially read from the LUT of 8). More specifically,
In the LUT of the weighting coefficient W (w1 to w8) including the case corresponding to the exceptional process shown in FIG. 10, “Z (= (Eq.15)” calculated based on the (Formula 15) in the process of step S12 shown in FIG. 0) ”weighting coefficient W according to the value
(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)
を算出しても良い。
Incidentally, instead of the processing of steps S14 and S15, (R
Based on L, GL, BL), the weighting factor W (w1 to w
8) may be calculated. Specifically, the above (formula 6-1)
~ Based on (Equation 6-8), the weighting factor 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, R of the conversion point P
Each upper 4 bits from the GB signal, that is, (RH, G
H, BH) is extracted. In addition, this upper 4 [bit]
Since the extraction processing of step S11 is the same as that of step S11, the top 4 [b
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 lattice point "A" in the "C" component is calculated based on (RH, GH, BH) extracted in step S16. Specifically, the above (formula 2
The reference address HADR (A) of the grid point “A” in the “C” component is calculated based on −1).

【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 lattice point "A" in the "C" component is the reference address ZHADR of "Z" calculated in step S12.
(Z), that is, the reference address ZHADR of "Z" indicating whether or not the exception processing shown in (Equation 15) is satisfied.
The reference address HADR (A) of the lattice point “A” in the “C” component may be calculated by multiplying (Z) by “32”.

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

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

【0094】ステップS20においては、次成分がある
か否かが判断される。具体的には、「C」成分の補間演
算を行った場合には「M」成分、「M」成分の補間演算
を行った場合には「Y」成分、「Y」成分の補間演算を
行った場合には「K」成分があるか否かが判断される。
そして、次成分がある場合には、ステップS21に移行
する。一方、次成分がない場合、すなわち全ての「C,
M,Y,K」成分について、補間演算が終了した場合に
は、この処理を終了する。
In step S20, it is determined whether or not there is a next component. Specifically, when the "C" component is interpolated, the "M" component is interpolated, and when the "M" component is interpolated, the "Y" component and the "Y" component are interpolated. If it does, 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, for all "C,
When the interpolation calculation is completed for the “M, Y, K” components, this process is completed.

【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 lattice 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” for the “C, M, Y, K” components are stored, the calculation is performed in step S7. "C"
Reference address HADR of grid point "A" in the component
It only increments (A) sequentially. And
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 K ”component is interpolated, and the RGB signal at the conversion point P is converted into a CMYK signal.

【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. 13,
Each lower 4 bits, that is, (RL, GL, BL) is extracted from the RGB signal at the conversion point P. Step S32
, The reference address ELADR (w of the weighting factor w1 including the case corresponding to the exception processing is based on (RL, GL, BL) extracted in step S31.
1) is calculated. Specifically, based on (Equation 16-1), the reference address ELADR (w of the weighting factor w1
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 weighting factor W (w1 to w8) in the cube surrounding the conversion point P is RO.
The data is sequentially read from M12. Specifically, the weighting coefficient w1 calculated in step S32 is sequentially incremented from the reference address ELADR (w1),
Weighting factors W (w1 to w8) including the case where all the weighting factors W (w1 to w8) correspond to the exceptional processing shown in FIG.
It is sequentially read from the LUT of 8). More specifically,
In the LUT of the weighting coefficient W (w1 to w8) including the case corresponding to the exceptional process shown in FIG. 10, “Z (= (Eq.15)” calculated based on the (Formula 15) in the process of step S12 shown in FIG. 1 to 7) ”, the weighting factors W (w1 to w8) are sequentially read.

【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)を算出しても良い。
Note that, instead of the processing of steps S32 and S33, a value "Z" indicating whether or not the exceptional processing calculated in the processing of step S12 shown in FIG.
The weighting factor W (w1 to w8) may be calculated according to Specifically, depending on 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) depending on the above (formula 8-1 to 8) ~
The weighting coefficient 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 the conversion point P
Each upper 4 bits from the GB signal, that is, (RH, G
H, BH) is extracted. In addition, this upper 4 [bit]
Since the extraction processing of step S11 is the same as the step S11 shown in FIG. 12, the upper 4 bits extracted in step S11 shown in FIG. 12 may be used as they are.

【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 lattice point "A" in the "C" component is calculated based on (RH, GH, BH) extracted in step S34. Specifically, the above (formula 2
The reference address HADR (A) of the grid point “A” in the “C” component is calculated based on −1).

【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 lattice point "A" in the "C" component is the reference address ZHADR of "Z" calculated in step S12.
(Z), that is, the reference address ZHADR of "Z" indicating whether or not the exception processing shown in (Equation 15) is satisfied.
The reference address HADR (A) of the lattice point “A” in the “C” component may be calculated by multiplying (Z) by “32”.

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

【0103】ステップS37においては、変換点Pにお
ける補間演算が行われる。具体的には、前記ステップS
33において読み出された重み係数W(w1〜w8)
と、前記ステップS36において読み出された「C」成
分における格子点「A〜H」の格子点データとに基づい
て、前記(式5)により、変換点Pにおける補間演算が
行われる。
In step S37, interpolation calculation at the conversion point P is performed. Specifically, the step S
Weighting coefficient W (w1 to w8) read in 33
And 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 the above (formula 5).

【0104】ステップS38においては、次成分がある
か否かが判断される。具体的には、「C」成分の補間演
算を行った場合には「M」成分、「M」成分の補間演算
を行った場合には「Y」成分、「Y」成分の補間演算を
行った場合には「K」成分があるか否かが判断される。
そして、次成分がある場合には、ステップS39に移行
する。一方、次成分がない場合、すなわち全ての「C,
M,Y,K」成分について、補間演算が終了した場合に
は、この処理を終了する。
In step S38, it is determined whether or not there is a next component. Specifically, when the "C" component is interpolated, the "M" component is interpolated, and when the "M" component is interpolated, the "Y" component and the "Y" component are interpolated. If it does, 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, for all "C,
When the interpolation calculation is completed for the “M, Y, K” components, this process is completed.

【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 the lattice 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” are stored for the “C, M, Y, K” components, the calculation is performed in step S35. Address HAD of grid point "A" in the extracted "C" component
It only 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 K ”component is interpolated, and the RGB signal at the conversion point P is converted into a CMYK signal. Note that generally, since there are many pixels to be converted, this processing is repeatedly executed for 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 above in detail, 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 weighting coefficient W including the case corresponding to the exceptional process is w1.
The data are stored in the ROM 12 in the order of to w8. Therefore, the reference address ELADR of the weighting factor w1 including the case corresponding to the exceptional process is calculated based on the above (formula 16-1).
If you know (w1), you can simply increment it,
The weighting factors w2 to w8 can also be obtained. Therefore, even when the conversion point P corresponds to the exceptional process, the color conversion process can be performed at high speed even by using software. Moreover, even if the conversion point P corresponds to the exception processing,
Color conversion processing can be performed without including an error.

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

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

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

【0110】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、図14に示すフロ
ーチャートを用いて説明する。なお、この動作は、RO
M12に記憶されたプログラムに基づき、MPU11の
制御により実行される。
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 color conversion processing for pixels will be described with reference to the flowchart shown in FIG. In addition, this operation is RO
It is executed under the control of the MPU 11 based on the program stored in 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. 14,
From the RGB signal at the conversion point P, each upper 4 [bit], that is, (RH, GH, BH) is extracted. Step S42
In, the reference address ZHADR (Z) of “Z” indicating whether or not the exception processing is performed is calculated based on (RH, GH, BH) extracted in step S41. Specifically, based on the above (Equation 15), the reference address Z of "Z" indicating whether or not it corresponds to exception processing.
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通りのうちの何れの例外処理に
該当するかをも判断することができる。
At step S43, the reference address ZHA of "Z" calculated at 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 or not the conversion point P shown in FIG. 9 corresponds to exceptional 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 exceptional processing, and
It is also possible to determine which of the seven exceptions [1] to [7] corresponds to the exception handling.

【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 the conversion point P
Each lower 4 bits from the GB signal, that is, (RL, G
L, BL) are extracted. In step S45,
Extracted in step S44 (RL, GL,
Based on BL), the reference address ELADR (w1) of the weighting factor w1 including the case corresponding to the exceptional process is calculated. Specifically, the reference address ELADR (w1) of the weighting factor 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 factor W (w1 to w8) in the cube surrounding the conversion point P is RO.
The data is sequentially read from M12. Specifically, the weighting coefficient w1 calculated in step S45 is sequentially incremented from the reference address ELADR (w1),
Weighting factors W (w1 to w8) including the case where all the weighting factors W (w1 to w8) correspond to the exceptional processing shown in FIG.
It is sequentially read from the LUT of 8). More specifically,
In the weighting factor W (w1 to w8) including the case corresponding to the exceptional process shown in FIG. 10, the weighting factor W corresponding to “Z (= 0 to 7)” extracted in step S43.
(W1 to w8) is read.

【0115】ステップS47においては、変換点PのR
GB信号から各上位4〔bit〕、すなわち(RH,G
H,BH)が抽出される。なお、この上位4〔bit〕
の抽出処理は、前記ステップS41と同様な処理である
ため、前記ステップS41において抽出した上位4〔b
it〕をそのまま用いても良い。
In step S47, R of the conversion point P
Each upper 4 bits from the GB signal, that is, (RH, G
H, BH) is extracted. In addition, this upper 4 [bit]
Since the extraction processing of step S41 is similar to that of step S41, the top 4 [b
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 (formula 2
The reference address HADR (A) of the grid point “A” in the “C” component is calculated based on −1).

【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 lattice point "A" in the "C" component is the reference address ZHADR of "Z" calculated in step S42.
(Z), that is, the reference address ZHADR of "Z" indicating whether or not the exception processing shown in (Equation 15) is satisfied.
The reference address HADR (A) of the lattice point “A” in the “C” component may be calculated by multiplying (Z) by “32”.

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

【0119】ステップS50においては、変換点Pにお
ける補間演算が行われる。具体的には、前記ステップS
46において読み出された重み係数W(w1〜w8)
と、前記ステップS49において読み出された「C」成
分における格子点「A〜H」の格子点データとに基づい
て、前記(式5)により、変換点Pにおける補間演算が
行われる。
In step S50, the interpolation calculation at the conversion point P is performed. Specifically, the step S
Weighting coefficient W (w1 to w8) read at 46
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 the above (formula 5).

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

【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 lattice 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” for the “C, M, Y, K” components are stored, the calculation is performed in step S48. Address HAD of grid point "A" in the extracted "C" component
It only 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 K ”component is interpolated, and the RGB signal at the conversion point P is converted into a CMYK signal. Note that generally, since there are many pixels to be converted, this processing is repeatedly executed for all the read pixels.

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

【0123】[第4の実施形態]…三角錐補間(4点補
間)の場合 次に、本発明をファクシミリ装置に具体化した第4の実
施形態について、図面を用いて説明する。なお、この第
4の実施形態において、前記第1の実施形態と同様な構
成については、前記第1の実施形態と同一の符号を付し
て説明を省略する。
[Fourth Embodiment] ... Triangular Pyramid Interpolation (Four-Point Interpolation) Next, a fourth embodiment in which the present invention is embodied in a facsimile machine will be described with reference to the drawings. In the fourth embodiment, the same components as those in the first embodiment are designated by the same reference numerals as those in the first embodiment, and the description thereof will be 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 ROM1
The LUT data stored in 2 is different. That is, data required for triangular pyramid interpolation (four-point interpolation) in which a cube is divided into six is stored. Specifically, the LUT of weighting factors W (w1 to w4) shown in FIG. 35 described later, and (R
L, GL, BL) LUT indicating the offset determined by the magnitude relationship of each value and LU of the grid point data shown in FIG.
Remember 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. 15A, in the RGB space, each lower 4 [bi of RGB signals is
t] is (RL, GL, BL), and the cube is “RL = G
"L plane", "GL = BL plane" and "BL = RL plane"
When divided by, the cube is 6 as shown in FIG.
It is divided into three triangular pyramids.

【0126】図16に示すように、立方体を6つの三角
錐に分割すると、この(RL、GL、BL)の各値の大
小関係に基づいて、変換点Pが6つの三角錐のうち、何
れの三角錐に存在するか否かを判断することができる。
As shown in FIG. 16, when a cube is divided into six triangular pyramids, one of the six triangular pyramids with the conversion point P among the six triangular pyramids is based on the magnitude relation of each value of (RL, GL, BL). It is possible to determine whether or not it exists in the 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, in FIG. 16A, BL>GL> R
In the case of L, FIG. 16B shows the case of GL>RL> BL, and FIG. 16C shows the case of RL>BL> GL.
16D shows a case of GL ≧ BL ≧ RL (where RL ≠ GL), and FIG. 16E shows a case of RL ≧ GL ≧ BL.
(F) shows the case of BL ≧ RL ≧ GL (where GL ≠ BL). Note that GL = in FIG.
Including the planes of BL and BL = RL, RL = in FIG.
It includes a plane of GL and GL = BL and a line of RL = GL = BL, and FIG. 16 (f) includes a plane 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 two faces of another triangular pyramid. Therefore, the calculation result is the same regardless of which triangular pyramid the boundary surface is included in. Therefore,
In the present embodiment, these boundary surfaces and boundaries are shown in FIG.
It is described as being included in (d) to (f). It can be considered as included in FIGS. 16 (a) to 16 (c).

【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 weighting coefficient W (w1 to w4) is calculated based on the magnitude relation of the respective values of (RL, GL, BL). In other words, assuming that the values of (RL, GL, BL) are large in the order of "LL, LM, LS", the weighting factor W (w1 ~ 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-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. 16 (a) to 16 (f) are calculated. [A] Weighting 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, when the conversion point P is BL>GL> RL. Shows a cone.

【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. 18A to 18D, the triangular pyramid shown in FIG. 17 is further divided into four triangular pyramids with the conversion point P as a reference, and the volumes Va to Vd
To calculate. 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.
9 (a). When the triangular pyramid shown in FIG. 19 (a) is viewed from above, it can be shown as shown in FIG. 19 (b). Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as: 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 shown 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 equations (35-1) to (35-3), the volume Vb of the triangular pyramid shown in FIG. 18 (b) can be expressed as follows. Vb = Total volume- (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 pyramid shown in FIGS. 18A to 18D can be shown 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) volume ratio Va: Vb: Vc:
Vd becomes the weighting factor 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, the weighting factor W is obtained from the relation of BL>GL> RL and (Equation 30-1) to (Equation 30-4).
(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. 16 (b)
Weighting coefficient W in the case of> BL FIG. 20 shows a triangular pyramid in the case of FIG. 16B, that is, when 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. 21A to 21D, the triangular pyramid shown in FIG. 20 is further divided into four triangular pyramids on the basis of the conversion point P, and the volume Va of each triangular pyramid. Vd
To calculate. 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.
2 (a). When the triangular pyramid shown in FIG. 22 (a) is viewed from the front side, it can be shown as shown in FIG. 22 (b). Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as: 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 shown 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 expressions (36-1) to (36-3), the volume Vb of the triangular pyramid shown in FIG. 21 (b) can be expressed as follows. Vb = Total volume- (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 pyramid shown in FIGS. 21 (a) to 21 (d) can be shown 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) volume ratio Va: Vb: Vc:
Vd becomes the weighting factor 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, the weighting factor W is obtained from the relationship of GL>RL> BL and the above (formula 30-1) to (formula 30-4).
(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)
Weighting coefficient W in case of> GL FIG. 23 shows a triangular pyramid in the case of FIG. 16C, that is, when the conversion 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 with the conversion point P as a reference, and each triangular pyramid has a volume Va ~. Vd
To calculate. 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.
5 (a). When the triangular pyramid shown in FIG. 25 (a) is viewed from the right, it can be shown as shown in FIG. 25 (b). Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as: 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 shown 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. 24 (b) can be expressed as follows. Vb = Total volume- (Va + Vc + Vd) = 1/6 * 16 * 16 * {16- (16-RL)-(BL-GL) -GL} = 1/6 * 16 * 16 * (RL- BL) ……… (Formula 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 pyramid shown in FIGS. 24 (a) to 24 (d) can be shown as follows. Va: Vb: Vc: Vd = 16-RL: RL-BL: BL-GL: GL (Equation 37-5) Therefore, the lower 4 bits of the RGB signal, that is, (R
L, GL, BL) volume ratio Va: Vb: Vc:
Vd becomes the weighting factor 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, the weighting factor W is obtained from the relationship of RL>BL> GL and the above (formula 30-1) to (formula 30-4).
(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. 16 (d)
Weighting coefficient W in the case of ≧ RL (provided that RL ≠ GL) FIG. 26 shows a triangular pyramid in the case of FIG. 16D, that is, when 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. 27A to 27D, the triangular pyramid shown in FIG. 26 is further divided into four triangular pyramids on the basis of the conversion point P, and the volumes Va to Vd
To calculate. 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.
8 (a). When the triangular pyramid shown in FIG. 28 (a) is viewed from the front side, it can be shown as shown in FIG. 28 (b). Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as: 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 shown 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)
As described above, from (Equation 38-1) to (Equation 38-3), the volume Vb of the triangular pyramid shown in FIG. 27 (b) can be expressed as follows. Vb = Total volume- (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 pyramid shown in FIGS. 27A to 27D can be shown 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) volume ratio Va: Vb: Vc:
Vd becomes the weighting factor 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, the weighting factor W is obtained from the relationship of GL ≧ BL ≧ RL and the above (formula 30-1) to (formula 30-4).
(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. 16 (e)
Weighting coefficient W in the case of ≧ BL FIG. 29 shows a triangular pyramid in the case of FIG. 16E, that is, when the conversion point P is 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 with the conversion point P as a reference, and each triangular pyramid has a volume Va ~. Vd
To calculate. 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.
1 (a). When the triangular pyramid shown in FIG. 31A is viewed from the right, it can be shown as shown in FIG. Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as: 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 shown 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 (Equation 39-1) to (Equation 39-3), the volume Vb of the triangular pyramid shown in FIG. 30 (b) can be expressed as follows. Vb = Total volume- (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 pyramid shown in FIGS. 30 (a) to 30 (d) can be shown 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) volume ratio Va: Vb: Vc:
Vd becomes the weighting factor 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, the weighting factor W is obtained from the relationship of RL ≧ GL ≧ BL and the above (formula 30-1) to (formula 30-4).
(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. 16 (f)
Weighting coefficient W in the case of ≧ GL (where GL ≠ BL) FIG. 32 shows a triangular pyramid in the case of FIG. 16 (f), that is, when the conversion point P is 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. 33A to 33D, the triangular pyramid shown in FIG. 32 is further divided into four triangular pyramids with the conversion point P as a reference, and the volumes Va to Vd
To calculate. 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.
4 (a). When the triangular pyramid shown in FIG. 34 (a) is viewed from above, it can be shown as in FIG. 34 (b). Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as: 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 shown 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. 33 (b) can be expressed as follows. Vb = Total volume- (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 pyramid shown in FIGS. 33 (a) to 33 (d) can be shown 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) volume ratio Va: Vb: Vc:
Vd becomes the weighting factor 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, the weighting factor W is obtained from the relation of BL ≧ RL ≧ GL and the above (formula 30-1) to (formula 30-4).
(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, as in the case of the cubic interpolation in the first embodiment, the weighting factor W (w1 ...
Consider the order in which w4) is stored. Also in the triangular pyramid interpolation, the weighting factors W (w1 to w4) are continuously stored, similarly to the cubic interpolation in the first embodiment. That is, as shown in FIG. 35, when the data of the color image output from the reading unit 14, that is, each of the lower 4 [bits] 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 the grid points, the corresponding weighting factors W (w1 to w1).
Store w4) continuously.

【0173】具体的には、(0,0,0)に対して、重
み係数W(w1〜w4)を記憶させる。続いて、(1,
0,0)に対して、重み係数W(w1〜w4)を記憶さ
せる。そして、最後に(15,15,15)に対して、
重み係数W(w1〜w4)を記憶させる。
Specifically, the weighting coefficient W (w1 to w4) is stored for (0, 0, 0). Then, (1,
The weighting factor W (w1 to w4) is stored for 0, 0). And finally, for (15,15,15),
The weighting factor W (w1 to w4) is 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 weighting factor w1
ADR (w1) can be shown 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) (however, N = w2-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 stored in this way, three times if the reference address LADR (w1) of the weight coefficient w1 is known. All the weighting factors W (w1 to w4) can be sequentially obtained only by incrementing.

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

【0177】三角錐補間においては、格子点「A、H」
と、格子点「B〜G」のうちの2つの格子点とから構成
される格子点データから補間演算処理を行う。従って、
6つに分割された三角錐のうちから、1つの三角錐を決
定するためには、RGB信号の各下位4〔bit〕、す
なわち(RL,GL,BL)の各値の大小関係を判断す
る必要がある。
In the triangular pyramid interpolation, grid points "A, H"
And the grid point data composed of two grid points of the grid points “B to G” are subjected to interpolation calculation processing. Therefore,
In order to determine one triangular pyramid from among the six divided triangular pyramids, the magnitude relationship of each lower 4 [bit] of the RGB signal, that is, 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 by the magnitude relation of the values of (RL, GL, BL) will be examined. [A] BL>GL> RL triangular pyramid (FIG. 16A)
Reference) The lattice points forming this triangular pyramid are "A, B, D, H". Therefore, 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 (Formula 1-1) to (Formula 1-8) above.
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 forming this triangular pyramid are "A, C, G, H". Therefore, each grid point "A, C, G," from the reference address of the grid point "A" in the reference "C" component
The offset of “H” is (Formula 1-1) to (Formula 1-8) above.
Therefore, 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 forming this triangular pyramid are "A, E, F, H". Therefore, each grid point “A, E, F,” from the reference address of the grid point “A” in the reference “C” component
The offset of “H” is (Formula 1-1) to (Formula 1-8) above.
As a result, it becomes “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
In the case of the L) triangular pyramid (see FIG. 16D), the lattice points forming this triangular pyramid are “A, C, D, H”. Therefore, 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 (Formula 1-1) to (Formula 1-8) above.
Therefore, 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 forming this triangular pyramid are “A, E, G, H”. Therefore, each grid point "A, E, G," from the reference address of the grid point "A" in the reference "C" component
The offset of “H” is (Formula 1-1) to (Formula 1-8) above.
Therefore, 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
In the case of the L) triangular pyramid (see FIG. 16 (f)), the lattice points forming 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 (Formula 1-1) to (Formula 1-8) above.
Therefore, they are respectively “0, 29, 289, 307”.

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

【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, the above [a] to [f] (see FIG. 16)
The cases of the triangular pyramids (see (a) to (f)) are defined as follows by using the offset “X”. [A] In the case of a BL>GL> RL triangular pyramid, 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 ] In the case of a triangular pyramid of RL>BL> GL, in other words, in the case of 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)[0186]   [D] In the case of a triangular pyramid of GL ≧ BL ≧ RL and RL ≠ GL, in other words, the grid point “A , C, D, H ”in the case of a triangular pyramid: X = 3 ... (Equation 42-4)   [E] In the case of a triangular pyramid with RL ≧ GL ≧ BL, in other words, the grid points “A, E, G, H In the case of a triangular pyramid consisting of: X = 4 ... (Equation 42-5)   [F] In the case of BL ≧ RL ≧ GL and GL ≠ BL triangular pyramids, in other words, the grid point “A , B, F, H ”in the case of a triangular pyramid: 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]-
In the case of [f], that is, the offset “X” determined by the magnitude relationship of (RL, GL, BL) is stored as the LUT. If stored in this way, the magnitude relationship of the respective values of (RL, GL, BL) can be used without using a comparison instruction, and
It can also be determined which triangular pyramid 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 the grid point data at the four grid points forming the triangular pyramid will be examined.
As shown in FIG. 37, each upper 4 [bit] of the RGB signal
Let (RH, GH, BH) be (0,0,0),
(1,0,0), (2,0,0), ..., (15,1)
5, 14) and (15, 15, 15) in the order of four grid points “A, B, D, CMYK”.
"H", "A, C, G, H", "A, E, F, H",
"A, C, D, H", "A, E, G, H", "A, B,
F, H ”grid point data 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 lattice point data of the lattice points "A, B, D, H" corresponding to the "C" component, and the "M" component. Lattice points “A, B,
"D, H" grid point data, "Y" component grid point data "A, B, D, H" grid point data, "K" component grid point "A, B, D, H" The grid point data of 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」の格子点データを記憶させる。
Then, for (0,0,0), "C"
It corresponds to the grid point data of the grid points “A, C, G, H” corresponding to the component, the grid point data of the grid point “A, C, G, H” corresponding to the “M” component, and the “Y” component. Lattice points “A, C,
The grid point data of "G, H" and the grid point data of 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), grid point data of grid points "A, E, F, H" corresponding to the "C" component and grid point "M" of the "M" component. "A, E, F, H" grid point data, grid points "A, E, corresponding to the" Y "component
The grid point data of "F, H" and the grid point data of "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, for (15,15,15), the grid point "A, B, F, H" corresponding to the "C" component
Grid point data of the grid point “A,
"B, F, H" grid point data, "Y" component grid point data "A, B, F, H" grid point data, "K" component grid point "A, B, F, The “H” grid point data 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)までの格子点データを記憶するのみで良
い。
If stored in this way, the grid point data to be stored increases, but the grid point "A" in the "C" component is increased.
If the reference address HADR (A) of the above is determined, the other three lattice points “X1, X2, H” forming the triangular pyramid are simply incremented (where X1 and X2 are the lattice points “B to G”). Of the two) can be obtained. Therefore, the grid point data of (RH, GH, BH) is not the grid point data of (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
The reference address HADR (A) can be shown as follows. HADR (A) = (RH + GH * 16 + BH * 16∧2) * 4 * 4 * 6 + 4 * 4 * X = (RH + GH * 16 + BH * 256) * 96 + 16 * X ...... ... (Formula 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 grid points "A,
"H" is irrelevant to the magnitude relationship of each lower 4 bits of the RGB signal, that is, each value of (RL, GL, BL). In other words, the grid point data of grid point “A, H” is
In the case of any of the pyramids [a] to [f],
This is grid point data that is essential for the calculation of triangular pyramid interpolation. Therefore, the remaining two grid points used for the triangular pyramid interpolation are selected from the six grid points “B to G”. That is, the grid point data necessary for the triangular pyramid interpolation is the grid points "A, H" and the grid points "X1, X2" (where X1, X2 are the grid points "B ~
2) of “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, first, the grid point data of the grid points "A, H" are stored as one set. Subsequently, the grid point data of the grid points "B, D" are stored as one set. Similarly, the grid points “C, G” and the grid points “E,
The grid point data of “F”, grid point “C, D”, grid point “E, G”, and grid point “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, assuming that the upper 4 bits of the RGB signal are (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, for each CMYK. D ", grid point" E,
The grid point data of “G” and the grid point “B, F” is 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 ”grid point data, grid point data“ A, H ”grid point data corresponding to the“ Y ”component, and grid point data“ A, H ”grid point data corresponding to the“ K ”component.

【0199】続いて、(1,0,0)に対して、「C」
成分に対応する格子点「B,D」の格子点データ、
「M」成分に対応する格子点「B,D」の格子点デー
タ、「Y」成分に対応する格子点「B,D」の格子点デ
ータ、「K」成分に対応する格子点「B,D」の格子点
データを記憶させる。
Then, for (1, 0, 0), "C"
Grid point data of grid points “B, D” corresponding to the components,
The grid point data of the grid point “B, D” corresponding to the “M” component, the grid point data of the grid point “B, D” corresponding to the “Y” component, the grid point “B, corresponding to the K component” The grid point data of "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 data of grid points "B, F" corresponding to the "Y" component, and the grid point data of grid points "B, F" corresponding to the "K" component are stored.

【0201】このように記憶すれば、三角錐を構成する
4つの格子点「A,X1,X2,H」の格子点データを
連続して記憶させることはできないが、前記図37に示
す記憶順序に比べると、(RH,GH,BH)に対し
て、格子点「A,H」の格子点データは1つのみしか記
憶されない。その結果、前記図37に示す記憶順序に比
べて、記憶すべき格子点データを少なくすることができ
る。
If stored in this way, the grid point data of the four grid points "A, X1, X2, H" forming the triangular pyramid cannot be stored continuously, but the storage order shown in FIG. Compared with (1), only one grid point data of the grid point “A, H” is stored for (RH, GH, BH). 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
The reference address HADR (A) can be shown 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 shown as follows. HADR (H) = (RH + GH * 16 + BH * 16∧2) * 16 + 1 = HADR (A) +1 ……… (Equation 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)
Also, the grid point "B ~
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 “B to G”, (R
If two grid points determined by the magnitude relationship of L, GL, and BL) are “X1, X2”, reference addresses HADR (X1), HA of grid points “X1, X2” in the “C” component
DR (X2) can be shown 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)の各値に応じても決定される。
"X" in (Equation 45), (Equation 46-1) and (Equation 46-2) is (RL, GL, BL).
Of the values of (RL, GL, BL). Specifically, according to the magnitude relationship of the values of (RL, GL, BL), the definitions of (Expression 42-1) to (Expression 42-6) above are defined. 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 above is (Formula 44-1)
Can be calculated from In addition, the reference address HADR (H) of the lattice point “H” in the “C” component is, as is clear from the above (Equation 44-2), the above (Equation 44-
It can be obtained by incrementing 1). Furthermore, the grid points “A, H” at “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
1 ”is the reference address HADR (X1),
-1) can be calculated from. Also, 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). Furthermore, the grid points “X1, X2” at “M, Y, K” can also be obtained by incrementing the above (formula 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 interpolated value I of the "C, M, Y, K" components
A method of calculating PL (N) (however, N = C, M, Y, K) will be described. Color image data output from the reading unit 14, that is, each lower 4 [bi of RGB signals
t] is (RL, GL, BL), and (RL, GL,
Assuming that “LL, LM, LS” are arranged in descending order of the values of (BL), the interpolated value IPL (N) of the “C, M, Y, K” components (where N = C, M, Y, K) is Similar to the cubic interpolation in the first embodiment, it can be shown as follows. IPL (N) = {(16-LL) * f (A) + (LL-LM) * f (X1) + (LM-LS) * f (X2) + LS * f (H)} / 16 ...... ... (Formula 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」の
格子点データである。
"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). In addition, (Equation 4
F (A), f (X1), f (X2) and f shown in 7)
(H) is the above (formula 44-1) and the above (formula 46-1).
Based on, "C, M,
It is the grid point data of the grid points "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, in the triangular pyramid interpolation, the case where the conversion point P corresponds to exceptional processing will be described. Similar to the case of the cubic interpolation in the first embodiment, the case corresponding to the exceptional processing in the triangular pyramid interpolation means that the upper 4 [bit] of each RGB signal is (RH, GH) in the cube shown in FIG. , BH), the (RH, GH, B
This is the case where any of the values in (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 exceptional processing, there are the following "7 ways" 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 above) E7)

【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 the 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 6 to obtain a triangular pyramid according to the magnitude relation of each value. That is, (R
L, GL, BL) have the following relationship. [A] BL>GL> RL [b] GL>RL> BL [c] RL>BL> GL [d] GL ≧ BL ≧ RL (where RL ≠ GL) [e] When RL ≧ GL ≧ BL [f] When BL ≧ RL ≧ GL (where GL ≠ BL)

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

【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, first, [1] RH = 15, GH <1
5, BH <15, and [e] RL ≧ G
The weighting coefficient W (w1 to w4) when L ≧ BL is calculated. In FIG. 39, RH = 15, GH <15, BH <
15 shows a triangular pyramid in the case of 15 and 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. 40A to 40D, the triangular pyramid shown in FIG. 39 is further divided into four triangular pyramids on the basis of the conversion point P, and the volume of each triangular pyramid is divided. V
Calculate a to Vd. First, the volume Va of the triangular pyramid shown in FIG. 40 (a) 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.
1 (a). When viewed from the right, the triangular pyramid shown in FIG. 41 (a) can be shown as shown in FIG. 41 (b). Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as: 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 shown 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)
As described above, from (Equation 48-1) to (Equation 48-3), the volume Vb of the triangular pyramid shown in FIG. 40 (b) can be expressed as follows. Vb = Total volume- (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 pyramid shown in FIGS. 40 (a) to 40 (d) can be shown 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) volume ratio Va: Vb: Vc:
Vd becomes the weighting factor 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, the weighting factor W is obtained by the relation of RL ≧ GL ≧ BL and the above (formula 30-1) to (formula 30-4).
(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の場合におけ
る三角錐を示している。
[5] RH <15, GH = 15, B
When H = 15 and [c] RL>BL> G
The weighting coefficient W (w1 to w4) in the case of L is calculated. In FIG. 42, RH <15, GH = 15, BH = 15
And the 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 divided. V
Calculate a to Vd. First, the volume Va of the triangular pyramid shown in FIG. 43 (a) can be shown 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.
4 (a). When viewed from the right, the triangular pyramid shown in FIG. 44 (a) can be shown as shown in FIG. 44 (b). Therefore, the volume Vc of the triangular pyramid shown in FIG.
Can be shown as: 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 shown as follows. Vd = 1/3 * (16 * 15) / 2 * GL = 1/6 * 15 * 15 * (16 * GL / 15) ……… (Equation 49-3) Above, (Equation 49-1) to ( From Equation 49-3), FIG.
The volume Vb of the triangular pyramid shown in (b) can be shown as follows. Vb = Total volume- (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 pyramid shown in FIGS. 43 (a) to 43 (d) can be shown 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, RGB signal Lower 4 bits of, that is, (R
L, GL, BL) volume ratio Va: Vb: Vc:
Vd becomes the weighting factor 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, the weighting factor W is obtained from the relation of RL>BL> GL and the above (formula 30-1) to (formula 30-4).
(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 weighting factor W (w1 to w4) when not corresponding to the exception processing and the weighting factor W (w1 to w4) when corresponding to the exception processing are compared and examined. To 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」を代入したものであることが分か
る。
Specifically, the weighting factor W (w1 to w in the case of RL ≧ GL ≧ BL in the case where exception processing is not applicable)
4) and the weighting coefficient W (w in the case of RL ≧ GL ≧ BL in the case of exception processing).
1-w4) and (Equation 48-6) are compared and examined, (Equation 48-6) is obtained by substituting “16 * RL / 15” into “RL” of (Equation 39-6). I know 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」を
それぞれ代入したものであることが分かる。
[0229] Also, the above (Equation 37-6) showing the weighting coefficient W (w1 to w4) in the case of RL>BL> GL in the case of non-exception processing, and RL>BL> in the case of exceptional processing. Weighting coefficient W (w1 to w for GL)
4), the above (formula 49-6) is compared and examined.
(Equation 49-6) has "16" added to "GL" of (Equation 37-6).
It can be seen that “* GL / 15” is a substitution of “16 * BL / 15” into “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) and (Equation 37-6) and (Equation 49-6) shown in two examples.
As can be inferred from, in the exceptional processing of the triangular pyramid interpolation, the weighting factor W (w1
~ W4) in the above (Formulas 35-40-6), (RH,
It can be seen that it can be obtained by substituting the following relational expressions based on the possible values of each value of (GH, BH).

【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)[0231]   [1] When RH = 15, GH <15, BH <15   RL ← 16 * RL / 15 ……… (Equation 50)   [2] When RH <15, GH = 15, BH <15   GL ← 16 * GL / 15 ……… (Equation 51)   [3] In the case of RH <15, GH <15, BH = 15   BL ← 16 * BL / 15 ……… (Equation 52)   [4] When RH = 15, 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)[0232]   [5] When RH <15, GH = 15, BH = 15   GL ← 16 * GL / 15 ……… (Equation 54-1)   BL ← 16 * BL / 15 ……… (Equation 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 or not the conversion point P corresponds to exceptional processing will be examined. When the conversion point P corresponds to an exceptional process, as in the case of the cubic interpolation in the first embodiment, each upper 4 [bit] of the RGB signal at the conversion point P, that is, (RH, GH, BH).
It is possible to judge whether or not any one of the values is “15”.

【0234】その結果、前記第1の実施形態における立
方体補間の場合と同様にして判断することができる。具
体的には、前記図9に示すように、例外処理に該当する
か否かを示す値を「Z」とし、(RH,GH,BH)に
対する「Z」の値を記憶させれば、この「Z」の値に基
づいて、例外処理に該当するか否かを判断することがで
きる。従って、例外処理に該当するか否かを示す「Z」
の参照アドレスZHADR(Z)は、前記(式15)と
同様に示すことができる。
As a result, the judgment 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, if the value indicating whether or not the exception processing is applied 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 exception processing is applicable. Therefore, "Z" indicating whether or not it corresponds to exception processing
The reference address ZHADR (Z) of can be expressed in the same manner as the above (Formula 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 exceptional processing will be described with reference to the drawings. As shown in FIG. 45, the value indicating whether or not the exception processing is applied is “Z”, the data of the color image output from the reading unit 14, that is, each lower 4 [bit] of the RGB signal is (RL, GL). , BL) and the weighting factor is “W”, and corresponds to each Z (= 0 to 7) (RL, G
L, BL) are stored. Also, (RL, GL, BL)
The weighting factor W corresponding to is continuously 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, the weighting coefficient W (w1 to w4) is stored for (0, 0, 0) when Z = “0”. Then, the weighting factor W (w1 to w4) is stored for (1, 0, 0). And finally, Z
The weighting factor W (w1 to w4) is 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)
Therefore, the reference address ELADR (w1) of the weighting coefficient W1 including the exception process can be shown 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, the weighting factors w2 to w4 including the exception handling.
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 ……… (Equation 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, if stored in this way, if the reference address ELADR (w1) of the weighting factor w1 is known, then 3
All 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,
Interpolated value IPL (N) of the “K” component (where N = C, M,
A method of calculating Y, K) will be described. That is,
In the exception processing, there are “7 ways” depending on the possible values of (RH, GH, BH) and “6 ways” depending on the magnitude relationship of the values of (RL, GL, BL). Therefore, if it corresponds to the exceptional process, (RH, G) is added to the (Formula 47) indicating the interpolation value IPL (N) when the exceptional process is not applied.
H, BH) can be obtained by substituting the relational expressions of (Expression 50) to (Expression 56-3) determined based on the possible values of each value of (H, BH).

【0241】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、前記第1の実施形
態における図11に示すフローチャートを用いて説明す
る。なお、この動作は、ROM12に記憶されたプログ
ラムに基づき、MPU11の制御により実行される。
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 color conversion processing for pixels will be described with reference to the flowchart shown in FIG. 11 in the first embodiment. It should be noted that this operation is executed under the control of the MPU 11 based on the 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, each lower 4 bits, that is, (RL, GL, BL) is extracted from the RGB signal at the conversion point P. In step S2, (RL,
The reference address LADR (w1) of the weighting factor (w1) is calculated based on GL, BL). Specifically, the reference address LADR (w1) of the weighting factor w1 is calculated based on the (formula 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) in the triangular pyramid surrounding the conversion point P are stored in the ROM.
It is sequentially read from 12. Specifically, the reference address LADR (w1) calculated in step S2
Are sequentially incremented from, and all weighting factors W
(W1 to w4) is the weighting factor W (w1 shown in FIG. 35.
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)が算出され
る。
At step S4, the RG of the conversion point P
Each upper 4 bits from the B signal, that is, (RH, G
H, BH) is extracted. In step S5, (RH, GH, B extracted in step S4 is extracted.
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 relation of the respective 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 (formula 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, 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 "BG", in other words, For example, two of the grid points "B to G" determined by the offset "X" in step S5) are stored in the ROM1.
It is sequentially read from 2. Specifically, the step S
Lattice point "A" in "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 of "H" is sequentially read from the LUT of the grid point data shown in FIG.

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

【0247】ステップS8においては、次成分があるか
否かが判断される。具体的には、「C」成分の補間演算
を行った場合には「M」成分、「M」成分の補間演算を
行った場合には「Y」成分、「Y」成分の補間演算を行
った場合には「K」成分があるか否かが判断される。そ
して、次成分がある場合には、ステップS9に移行す
る。一方、次成分がない場合、つまり全ての「C,M,
Y,K」成分について、補間演算が終了した場合には、
この処理を終了する。
In step S8, it is determined whether or not there is a next component. Specifically, when the "C" component is interpolated, the "M" component is interpolated, and when the "M" component is interpolated, the "Y" component and the "Y" component are interpolated. If it does, 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, for all "C, M,
When the interpolation calculation is completed for the “Y, K” components,
This process 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 the lattice point "A" in the next component is calculated. Specifically, as shown in FIG. 37, since the grid point data of the grid points “A, X1, X2, H” for the “C, M, Y, K” components is stored, The reference address HADR (A) of the lattice point "A" in the "C" component calculated in step S5 is simply incremented. 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 K ”component is interpolated, and the RGB signal at the conversion point P is converted into a CMYK signal. Note that generally, since there are many pixels to be converted, this processing is repeatedly executed for 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 grid point data shown in FIG. 37 is used instead of the LUT of grid point data shown in FIG. 38. It is the reference address HAD of the grid point "A"
This is because if R (A) is calculated, the grid point data at the other four grid points forming the triangular pyramid can be obtained only by sequentially incrementing it. In other words, when the LUT of the grid point data shown in FIG.
The reference address HADR (A) of the grid point "A" and the reference address HADR (X1) of the grid point "X1" must be calculated based on -1) and (Equation 45). Then, these reference addresses HADR (A) and HADR
It is necessary to increment from (X1) to obtain grid point data of grid points “H” and “X2”. Therefore, the LUT of the grid point data shown in FIG. 37 is intentionally 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 the triangular pyramid interpolation is used, the data required for the interpolation calculation processing is four each for the grid point data and the weighting coefficient W. That is, the grid point data of the grid points “A, X1, X2, H” and the weighting coefficient W (w1 to w4). Therefore, compared with the case of the cubic interpolation in the first to third embodiments, the accuracy of the interpolation calculation result of the conversion point P is inferior, but the amount of data to be read becomes small, so that the color conversion processing is performed at higher speed. You can

【0251】(3)前記(式47)からも明らかなよう
に、三角錐補間の演算処理においては、積和演算が4
〔回〕行われている。このため、前記第1〜3の実施形
態における立方体補間の場合に比べて、一層高速に色変
換処理を行うことができる。
(3) As is clear from (Equation 47), in the calculation processing of the triangular pyramid interpolation, the product-sum calculation is 4
[Times] 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.
The processing of the flowchart shown in can be applied.
For this reason, the process of the flowchart shown in FIG. 11 can be easily applied 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] ... Triangular pyramid interpolation (four-point interpolation) In this fifth embodiment, the same structure as that of the first embodiment is the same as that of the first embodiment. And the description thereof will be omitted. The fifth embodiment considers the case corresponding to the exception processing in the fourth embodiment. Therefore, in the fifth embodiment, the ROM 12 is an LUT for determining whether or not the conversion point P shown in FIG. 9 corresponds to exception processing, and each value of (RL, GL, BL) shown in FIG. 36. Of the offset determined by the magnitude relationship of L, and the LUT of the grid point data shown in FIG.
And the LUT of the weighting factors W (w1 to w4) including the case corresponding to the exceptional processing shown in FIG. 45 is stored.

【0254】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、図12及び図13
に示すフローチャートを用いて説明する。なお、この動
作は、ROM12に記憶されたプログラムに基づき、M
PU11の制御により実行される。
Next, in the facsimile apparatus 1, 1 when the RGB signal of the conversion point P is output from the reading unit 14.
Regarding the operation of color conversion processing for pixels, FIG. 12 and FIG.
This will be described with reference to the flowchart shown in. Note that this operation is based on a program stored in the ROM 12,
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. 12,
From the RGB signal at the conversion point P, each upper 4 [bit], that is, (RH, GH, BH) is extracted. Step S12
In step S11, it is determined whether the conversion point P corresponds to an exceptional process, based on (RH, GH, BH) extracted in step S11. 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, it is determined whether or not the conversion point P corresponds to the exceptional process based on the LUT for determining whether or not the conversion point P shown in FIG. 9 corresponds to the exceptional process. That is, when the value of “Z” indicating whether or not the exception processing is applied is “1 to 7”, it is determined that the exception processing is applied, and the process proceeds to step S31 shown in FIG. On the other hand, when the value of “Z” indicating whether or not the exception processing is applied is “0”, it is determined that the exception processing is not applied,
Control goes to step S13. In addition, the above (formula 15-1)
It may be possible to determine whether or not it corresponds to the exception processing based on.

【0256】ステップS13においては、変換点PのR
GB信号から各下位4〔bit〕、すなわち(RL,G
L,BL)が抽出される。ステップS14においては、
前記ステップS13において抽出された(RL,GL,
BL)に基づいて、例外処理に該当する場合を含む重み
係数(w1)の参照アドレスELADR(w1)が算出
される。具体的には、前記(式57−1)に基づいて、
重み係数w1の参照アドレスELADR(w1)が算出
される。
At step S13, R of the conversion point P
Each lower 4 bits from the GB signal, that is, (RL, G
L, BL) are extracted. In step S14,
(RL, GL, extracted in step S13)
The reference address ELADR (w1) of the weighting coefficient (w1) including the case corresponding to the exceptional process is calculated based on BL). Specifically, based on the above (formula 57-1),
The reference address ELADR (w1) of the weighting factor 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 weighting coefficient W (w1 to w4) in the triangular pyramid surrounding the conversion point P is RO.
The data is sequentially read from M12. Specifically, the reference address ELADR (w calculated in step S4 is
1) are sequentially incremented, and all the weighting factors W (w1 to w4) are read from the LUT of the weighting factors W (w1 to w4) including the case corresponding to the exceptional processing shown in FIG. Specifically, the reference address ELADR of the weighting factor w1 calculated in step S14.
The LUT of the weighting factors W (w1 to w4) including the case where all the weighting factors W (w1 to w4) are sequentially incremented from (w1) and correspond to the exceptional processing shown in FIG. 45.
Are sequentially read. More specifically, the weighting factor W (w1−w1) including the case corresponding to the exceptional processing shown in FIG.
w4) 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 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, (R
Based on L, GL, BL), the weighting factor W (w1 to w
4) may be calculated. Specifically, (RL, GL, B
Based on the magnitude relation of each value of L),
The weighting factor W (w1 to w4) may be calculated by -6).

【0259】ステップS16においては、変換点PのR
GB信号から各上位4〔bit〕、すなわち(RH,G
H,BH)が抽出される。なお、この上位4〔bit〕
の抽出処理は、前記ステップS11と同様な処理である
ため、前記ステップS11において抽出した上位4〔b
it〕をそのまま用いても良い。
In step S16, R of the conversion point P
Each upper 4 bits from the GB signal, that is, (RH, G
H, BH) is extracted. In addition, this upper 4 [bit]
Since the extraction processing of step S11 is the same as that of step S11, the top 4 [b
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.
The offset "X" determined by the magnitude relation of the respective values of (RL, GL, BL) shown in 6 is read. Then, the reference address HADR (A) of the grid point “A” in the “C” component is calculated based on the above (formula 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 lattice point "A" in the "C" component is the reference address ZHADR of "Z" calculated in step S12.
(Z), that is, the reference address ZHADR of "Z" indicating whether or not the exception processing shown in (Equation 15) is satisfied.
The reference address HADR (A) of the grid point “A” in the “C” component may be calculated by multiplying (Z) by “96” and then adding the value of “16 * X”.

【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, grid points "A, X1, X2, H" in the triangular pyramid surrounding the conversion point P are shown.
(However, X1 and X2 are 2 of the lattice points “BG”)
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. Specifically, it is sequentially incremented from the reference address HADR (A) of the grid point “A” in the “C” component calculated in step S17, and the grid point “A, X in the“ C ”component is sequentially incremented.
1, X2, H ”grid point data are sequentially read from the LUT of grid point data shown in FIG.

【0263】ステップS19においては、変換点Pにお
ける補間演算が行われる。具体的には、前記ステップS
15において読み出された重み係数W(w1〜w4)
と、前記ステップS18において読み出された「C」成
分における格子点「A,X1,X2,H」の格子点デー
タとに基づいて、前記(式47)により、変換点Pにお
ける補間演算が行われる。
In step S19, interpolation calculation at the conversion point P is performed. Specifically, the step S
Weighting coefficient W (w1 to w4) read in 15
And 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 the above (formula 47). Be seen.

【0264】ステップS20においては、次成分がある
か否かが判断される。具体的には、「C」成分の補間演
算を行った場合には「M」成分、「M」成分の補間演算
を行った場合には「Y」成分、「Y」成分の補間演算を
行った場合には「K」成分があるか否かが判断される。
そして、次成分がある場合には、ステップS21に移行
する。一方、次成分がない場合、すなわち全ての「C,
M,Y,K」成分について、補間演算が終了した場合に
は、この処理を終了する。
In step S20, it is determined whether or not there is a next component. Specifically, when the "C" component is interpolated, the "M" component is interpolated, and when the "M" component is interpolated, the "Y" component and the "Y" component are interpolated. If it does, 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, for all "C,
When the interpolation calculation is completed for the “M, Y, K” components, this process is completed.

【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 the lattice 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", respectively. , Grid point “A, E, F, H”, grid point “A, C, D, H”, grid point “A, E, G, H”, grid point “A, B, F, H” Since the grid point data is stored, "C" calculated in step S17
Reference address HADR of grid point "A" in the component
It simply increments 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 K ”component is interpolated, and the RGB signal at the conversion point P is converted into a CMYK signal.

【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. 13,
Each lower 4 bits, that is, (RL, GL, BL) is extracted from the RGB signal at the conversion point P. Step S32
In step S31, the reference address ELADR of the weighting factor (w1) including the case corresponding to the exceptional processing is included based on (RL, GL, BL) extracted in step S31.
(W1) is calculated. Specifically, (Formula 57-
1) Based on 1) the reference address ELAD of the weighting factor 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 weighting coefficient W (w1 to w4) in the triangular pyramid surrounding the conversion point P is RO.
The data is sequentially read from M12. Specifically, the weighting coefficient w1 calculated in step S32 is sequentially incremented from the reference address ELADR (w1),
The weighting factors W (w1 to w4) including the case where all the weighting factors W (w1 to w4) correspond to the exceptional processing shown in FIG.
It is sequentially read from the LUT of 4). More specifically,
In the LUT of the weighting factors W (w1 to w4) including the case corresponding to the exceptional process shown in FIG. 45, “Z (= 1 to 7) ”, the weighting factors W (w1 to w4) are sequentially read.

【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 (depending on the value "Z" indicating whether or not the exceptional processing shown in the processing of step S2 shown in FIG. You may calculate w1-w4). Specifically, depending on 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) depending on the above (formula 48-6) and (formula 49-
6), the weighting factor W (w1
~ 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 the conversion point P
Each upper 4 bits from the GB signal, that is, (RH, G
H, BH) is extracted. In addition, this upper 4 [bit]
Since the extraction processing of step S11 is the same as the step S11 shown in FIG. 12, the upper 4 bits extracted in step S11 shown in FIG. 12 may be used as they are.

【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 (RH, GH, BH) extracted in step S34. Specifically, first, FIG.
The offset "X" determined by the magnitude relation of the respective values of (RL, GL, BL) shown in 6 is read. Then, the reference address HADR (A) of the grid point “A” in the “C” component is calculated based on the above (formula 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, the reference address ZHADR of "Z" indicating whether or not the exception processing shown in (Equation 15) is satisfied.
The reference address HADR (A) of the grid point “A” in the “C” component may be calculated by multiplying (Z) by “96” and then adding the value of “16 * X”.

【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, grid points "A, X1, X2, H" in the triangular pyramid surrounding the conversion point P are shown.
(However, X1 and X2 are 2 of the lattice points “BG”)
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 reference address HADR (A) of the grid point “A” in the “C” component calculated in step S35 is sequentially incremented to obtain the grid points “A, X in the“ C ”component.
1, X2, H ”grid point data are sequentially read from the LUT of grid point data shown in FIG.

【0273】ステップS37においては、変換点Pにお
ける補間演算が行われる。具体的には、前記ステップS
33において読み出された重み係数W(w1〜w4)
と、前記ステップS36において読み出された「C」成
分における格子点「A,X1,X2,H」の格子点デー
タとに基づいて、前記(式47)により、変換点Pにお
ける補間演算が行われる。
In step S37, interpolation calculation at the conversion point P is performed. Specifically, the step S
Weighting coefficient W (w1 to w4) read in 33
And 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 the above (formula 47). Be seen.

【0274】ステップS38においては、次成分がある
か否かが判断される。具体的には、「C」成分の補間演
算を行った場合には「M」成分、「M」成分の補間演算
を行った場合には「Y」成分、「Y」成分の補間演算を
行った場合には「K」成分があるか否かが判断される。
そして、次成分がある場合には、ステップS39に移行
する。一方、次成分がない場合、すなわち全ての「C,
M,Y,K」成分について、補間演算が終了した場合に
は、この処理を終了する。
In step S38, it is determined whether or not there is a next component. Specifically, when the "C" component is interpolated, the "M" component is interpolated, and when the "M" component is interpolated, the "Y" component and the "Y" component are interpolated. If it does, 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, for all "C,
When the interpolation calculation is completed for the “M, Y, K” components, this process is completed.

【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 the lattice 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", respectively. , Grid point “A, E, F, H”, grid point “A, C, D, H”, grid point “A, E, G, H”, grid point “A, B, F, H” Since the grid point data is stored, "C" calculated in step S35 is stored.
Reference address HADR of grid point "A" in the component
It simply increments 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 K ”component is interpolated, and the RGB signal at the conversion point P is converted into a CMYK signal. Note that generally, since there are many pixels to be converted, this processing is repeatedly executed for 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 weighting factor W including the case corresponding to the exceptional process is w1.
They are stored in the ROM 12 in the order of to w4. Therefore, based on (Equation 57-1), the reference address ELADR of the weighting factor w1 in the case of exception processing.
If you know (w1), you can simply increment it,
Other weighting factors w2-w4 can also be obtained. Therefore,
Even if the conversion point P corresponds to exceptional processing, RGB
When performing color conversion processing from signals to CMYK signals,
High-speed color conversion processing can be performed using software. Moreover, even if the conversion point P corresponds to an exceptional process, the color conversion process can be executed without any error.

【0277】[第6の実施形態]…三角錐補間(4点補
間)の場合 この第6の実施形態において、前記第1の実施形態と同
様な構成については、前記第1の実施形態と同一の符号
を付して説明を省略する。この第6の実施形態は、前記
第5の実施形態と同様に、前記第4の実施形態におい
て、例外処理に該当する場合を考慮したものである。加
えて、この第6の実施形態は、前記第5の実施形態とは
異なり、例外処理に該当するか否かを判断させることな
く、色変換処理を実行させるものである。
[Sixth Embodiment] ... Triangular pyramid interpolation (four-point interpolation) In this sixth embodiment, the same structure as that of the first embodiment is the same as that of the first embodiment. And the description thereof will be omitted. The sixth embodiment is similar to the fifth embodiment in consideration of the exception processing in the fourth embodiment. In addition, the sixth embodiment is different from the fifth embodiment in that the color conversion process is executed without making a judgment as to whether or not the process corresponds to the exceptional 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 determining whether or not the conversion point P shown in FIG. 9 corresponds to exception processing, and (RL, GL, B shown in FIG. 36.
L) The offset LU determined by the magnitude relationship of each value
T, the LUT of the grid point data shown in FIG. 37, and the weighting factor W (w1 to w including the case corresponding to the exceptional processing shown in FIG. 45).
4) Store the LUT.

【0279】次に、ファクシミリ装置1において、読取
部14から変換点PのRGB信号が出力された場合の1
画素分の色変換処理の動作について、図14に示すフロ
ーチャートを用いて説明する。なお、この動作は、RO
M12に記憶されたプログラムに基づき、MPU11の
制御により実行される。
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 color conversion processing for pixels will be described with reference to the flowchart shown in FIG. In addition, this operation is RO
It is executed under the control of the MPU 11 based on the program stored in 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. 14,
From the RGB signal at the conversion point P, each upper 4 [bit], that is, (RH, GH, BH) is extracted. Step S42
In, the reference address ZHADR (Z) of “Z” indicating whether or not the exception processing is performed is calculated based on (RH, GH, BH) extracted in step S41. Specifically, based on the above (Equation 15), the reference address Z of "Z" indicating whether or not it corresponds to exception processing.
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通りのうちの何れの例外処理に
該当するかをも判断することができる。
At step S43, the reference address ZHA of "Z" calculated at 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 or not the conversion point P shown in FIG. 9 corresponds to exceptional 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 exceptional processing, and
It is also possible to determine which of the seven exceptions [1] to [7] corresponds to the exception handling.

【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)が算出される。
At step S44, R of the conversion point P
Each lower 4 bits from the GB signal, that is, (RL, G
L, BL) are extracted. In step S45,
Extracted in step S44 (RL, GL,
BL) based on the reference address E of the weighting factor (w1)
LADR (w1) is calculated. Specifically, the reference address E of the weighting factor w1 is calculated based on the above (formula 57-1).
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)が読み出される。
At step S46, the weighting coefficient W (w1 to w4) in the triangular pyramid surrounding the conversion point P is RO.
The data is sequentially read from M12. Specifically, the weighting coefficient w1 calculated in step S45 is sequentially incremented from the reference address ELADR (w1),
The weighting factors W (w1 to w4) including the case where all the weighting factors W (w1 to w4) correspond to the exceptional processing shown in FIG.
It is sequentially read from the LUT of 4). More specifically,
In the weighting factor W (w1 to w4) including the case corresponding to the exceptional process shown in FIG. 45, the weighting factor W corresponding to “Z (= 0 to 7)” extracted in step S43.
(W1 to w4) is read.

【0284】ステップS47においては、変換点PのR
GB信号から各上位4〔bit〕、すなわち(RH,G
H,BH)が抽出される。なお、この上位4〔bit〕
の抽出処理は、前記ステップS41と同様な処理である
ため、前記ステップS41において抽出した上位4〔b
it〕をそのまま用いても良い。
At step S47, R of the conversion point P
Each upper 4 bits from the GB signal, that is, (RH, G
H, BH) is extracted. In addition, this upper 4 [bit]
Since the extraction processing of step S41 is similar to that of step S41, the top 4 [b
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, as shown in FIG. 36 (RL, G
The offset “X” determined by the magnitude relationship between the respective 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 (formula 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 lattice point "A" in the "C" component is the reference address ZHADR of "Z" calculated in step S42.
(Z), that is, the reference address ZHADR of "Z" indicating whether or not the exception processing shown in (Equation 15) is satisfied.
The reference address HADR (A) of the grid point “A” in the “C” component may be calculated by multiplying (Z) by “96” and then adding the value of “16 * X”.

【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から順次読み出される。
At step S49, grid points "A, X1, X2, H" in the triangular pyramid surrounding the conversion point P are formed.
(However, X1 and X2 are 2 of the lattice points “BG”)
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, it is sequentially incremented from the reference address HADR (A) of the grid point “A” in the “C” component calculated in step S48 to calculate the grid point “A, X in the“ C ”component.
1, X2, H ”grid point data are sequentially read from the LUT of grid point data shown in FIG.

【0288】ステップS50においては、変換点Pにお
ける補間演算が行われる。具体的には、前記ステップS
46において読み出された重み係数W(w1〜w4)
と、前記ステップS49において読み出された「C」成
分における格子点「A,X1,X2,H」の格子点デー
タとに基づいて、前記(式47)により、変換点Pにお
ける補間演算が行われる。
In step S50, the interpolation calculation at the conversion point P is performed. Specifically, the step S
Weighting coefficient W (w1 to w4) read in 46
And 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 the (Equation 47). Be seen.

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

【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 the lattice 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", respectively. , Grid point “A, E, F, H”, grid point “A, C, D, H”, grid point “A, E, G, H”, grid point “A, B, F, H” Since the grid point data is stored, "C" calculated in step S48
Reference address HADR of grid point "A" in the component
It simply increments 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 K ”component is interpolated, and the RGB signal at the conversion point P is converted into a CMYK signal. Note that generally, since there are many pixels to be converted, this processing is repeatedly executed for all the read pixels.

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

【0292】なお、前記各実施形態は、次のように変更
して具体化することも可能である。 ・補間演算に必要な各種データは、ROM12に記憶さ
れるが、高速に読み出すために、変換処理前にRAM1
3等に転送して処理を行うようにしても良い。 ・上記RAM13にデータ転送して処理を行う場合、R
OM12に記憶させておく各種データは、前記図3に示
すデータ構造をとり、RAM13に転送する際に、前記
図5に示すデータ構造になるように転送しても良い。な
お、重み係数にあっては、ROM12に記憶することな
く、演算で求めてRAM13に記憶する構成であっても
良い。
The above-described respective embodiments can be modified and embodied as follows. -Various data required for the interpolation calculation are stored in the ROM 12, but in order to read them at high speed, the RAM 1 is used before the conversion process.
You may make it transfer to 3 etc. and perform a process.・ When data is transferred to the RAM 13 for processing, R
The various data stored in the OM 12 may have the data structure shown in FIG. 3 and may be transferred to the RAM 13 so as to have the data structure shown in FIG. Note that the weighting coefficient may be calculated and stored in the RAM 13 instead of being stored 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 weighting coefficient is read at the time of the process of step S7 in the case of the MPU having the instruction to repeatedly perform the product-sum calculation.
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 weight coefficient is read from the reference address of the weight coefficient calculated in step S5, the grid point data is read from the reference address of the grid point "A" in the "C" component calculated in step S5, multiplication is performed, and each reference address is sequentially incremented. Then, the product-sum calculation is repeated. 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 each of the above-described embodiments, the description has been made based on the grid point "A", but other grid points "B to H".
May be In addition, in the fourth to sixth embodiments, since only the grid points “A, H” are grid points included in the six triangular pyramids, when grids other than the grid point “A” are used as a reference, the grid points 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 lattice point data is stored in the order of the “K” component, any order may be used regardless of this order. After the RGB signal is converted into the CMYK signal, the binarization process or the dither process may be continuously executed and the recording unit 15 may record the recording paper. As shown in FIG. 46, even in the case of triangular prism interpolation (6-point interpolation) using a triangular prism that divides 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 (5-point interpolation) using quadrangular pyramids in which arbitrary five points are selected from eight vertices of a cube, each of the above embodiments is also applied. good. It goes without saying that the color space conversion is not limited to the above-mentioned respective embodiments because there are several 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-described respective embodiments will be described below together with their effects. [1] In an image processing device for converting a color space, storage means for continuously storing grid point data and weighting factors of grid points surrounding the conversion point, and grid point data of reference grid points. And the reference address of the reference weighting coefficient, and by sequentially incrementing from those reference addresses, the grid point data and weighting coefficient necessary for the interpolation calculation of the conversion point are read, and the interpolation calculation of the conversion point is performed. And an image processing apparatus including means. 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 that is continuously executed. According to this structure, the value obtained by converting the color space can be recorded on the recording paper by the recording unit without temporarily storing it in a memo or the like. Therefore, a memory for storing the converted value is unnecessary, and the reading operation and the recording operation can be collectively processed.

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

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

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

【0302】ところで、本明細書において、記録媒体と
は、読み出しが可能な半導体記憶装置、磁気記憶装置の
記録媒体、光磁気記憶装置の記録媒体など、コンピュー
タのプログラムを記録できるものならどのようなもので
もよい。具体的には、半導体ROM、フロッピーディス
ク、ハードディスク、光ディスク、光磁気ディスク、相
変化ディスク、磁気テープなどを含むものとする。
In the present specification, the term "recording medium" refers to any readable semiconductor memory device, magnetic recording device recording medium, magneto-optical recording device recording medium, etc. as long as it can record a computer program. It may be one. 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 constructed as described above, it has the following effects. According to the first aspect of the invention, color conversion processing can be performed at high speed even with software.

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

【図面の簡単な説明】[Brief description of 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 grid points in 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 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 demonstrating the weighting factor in cubic interpolation.

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

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

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

【図10】例外処理に該当する場合を含む重み係数のL
UTを説明するための説明図。
FIG. 10 is a weighting coefficient L including a case corresponding to exceptional processing.
Explanatory drawing for demonstrating 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 showing 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 parts. (B) Explanatory drawing for demonstrating the triangular pyramid obtained by dividing into 6 parts.

【図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 the case of BL>GL> RL. (B) Explanatory drawing for demonstrating the triangular pyramid in case of GL>RL> BL. (C) Explanatory drawing for demonstrating a triangular pyramid in case of RL>BL> GL. (D) Explanatory drawing for explaining a triangular pyramid in the case of GL ≧ BL ≧ RL (RL ≠ GL). (E) Explanatory drawing for explaining a triangular pyramid in the case of RL ≧ GL ≧ BL. (F) Explanatory drawing for demonstrating the triangular pyramid in case of BL> = RL> = GL (GL <= BL).

【図17】BL>GL>RLの場合における三角錐を説
明するための説明図。
FIG. 17 is an explanatory diagram for explaining a triangular pyramid in the case of 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. 19 (a) 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 in (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. 21 (a) 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 in the case of GL>RL> BL. (B) The side view which looked at the triangular pyramid Vc shown in (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の体
積を説明するための説明図。
FIG. 24A is an explanatory diagram for explaining the volume of the triangular pyramid Va in the case of RL>BL> GL. (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 the case of RL>BL> GL.

【図25】(a)RL>BL>GLの場合における三角
錐Vcの体積を説明するための説明図。 (b)(a)に示す三角錐Vcを矢印方向から見た側面
図。
FIG. 25 (a) 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 in (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 the triangular pyramid Va in the case of GL ≧ BL ≧ RL (RL ≠ GL). (B) Explanatory drawing for demonstrating the volume of the triangular pyramid Vb in case of GL> = BL> = RL (RL <= GL). (C) An explanatory view for explaining the volume of the triangular pyramid Vc in the case of GL ≧ BL ≧ RL (RL ≠ GL). (D) An explanatory diagram for explaining the volume of the triangular pyramid Vd in the case of GL ≧ BL ≧ RL (RL ≠ GL).

【図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 in the case of GL ≧ BL ≧ RL (RL ≠ GL). (B) The side view which looked at the triangular pyramid Vc shown in (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 the triangular pyramid Va in the case of RL ≧ GL ≧ BL. (B) Explanatory drawing for demonstrating the volume of the triangular pyramid Vb in case of RL> = GL> = BL. (C) Explanatory drawing for explaining the volume of the triangular pyramid Vc in the case of RL ≧ GL ≧ BL. (D) Explanatory drawing for demonstrating the volume of the triangular pyramid Vd when 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 in (a) from the arrow direction.

【図32】BL≧RL≧GL(GL≠BL)の場合にお
ける三角錐を説明するための説明図。
FIG. 32 is an explanatory diagram for explaining a triangular pyramid in the case of 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 the triangular pyramid Va in the case of BL ≧ RL ≧ GL (GL ≠ BL). (B) An explanatory diagram for explaining the volume of the triangular pyramid Vb in the case of BL ≧ RL ≧ GL (GL ≠ BL). (C) An explanatory view for explaining the volume of the triangular pyramid Vc in the case of BL ≧ RL ≧ GL (GL ≠ BL). (D) Explanatory diagram for explaining the volume of the triangular pyramid Vd in the case of 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 in (a) from the arrow direction.

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

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

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

【図38】三角錐補間における格子点データのLUTを
説明するための説明図。
FIG. 38 is an explanatory diagram illustrating 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 in the case of RH = 15, GH <15, BH <15 and in the case of 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
2 is an explanatory diagram for explaining the volume of the triangular pyramid Va in the case of RL ≧ GL ≧ BL. (B) Triangle pyramid V in the case of RH = 15, GH <15, BH <15, and in the case of 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
Explanatory drawing for demonstrating the volume of c. (D) Triangular pyramid V in the case of RH = 15, GH <15, BH <15, and in the case of RL ≧ GL ≧ BL
Explanatory drawing for demonstrating 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
2 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 in (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 in the case of RH <15, GH = 15, BH = 15 and in the case of 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. 6 is an explanatory diagram for explaining the volume of the triangular pyramid Va in the case of RL>BL> GL. (B) Triangle pyramid V in the case of RH <15, GH = 15, BH = 15 and in the case of 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
Explanatory drawing for demonstrating the volume of c. (D) Triangular pyramid V in the case of RH <15, GH = 15, BH = 15 and in the case of RL>BL> GL
Explanatory drawing for demonstrating 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
2 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 in (a) from the arrow direction.

【図45】例外処理に該当する場合を含む重み係数のL
UTを説明するための説明図。
FIG. 45 is a weighting coefficient L including a case corresponding to exceptional processing;
Explanatory drawing for demonstrating UT.

【図46】別の実施形態としての三角柱補間(6点補
間)の例を示す説明図。
FIG. 46 is an explanatory diagram showing an example of triangular prism interpolation (6-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 a control means, 12 ... ROM which comprises a memory means and a control means, 13 ... RAM which comprises a control means.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06T 1/00 510 G06T 11/60 120 G09G 5/06 H04N 1/46 H04N 1/60 H04N 9/64 JICSTファイル(JOIS)─────────────────────────────────────────────────── ─── Continued Front Page (58) Fields surveyed (Int.Cl. 7 , DB name) G06T 1/00 510 G06T 11/60 120 G09G 5/06 H04N 1/46 H04N 1/60 H04N 9/64 JISST File (JOIS)

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 色空間を変換する画像処理装置におい
て、少なくとも変換点を取り囲む格子点の格子点データ
を演算に必要な順に連続して記憶する記憶手段と、基準
となる格子点における格子点データの参照アドレスを算
出するとともに、その参照アドレスから順次インクリメ
ントを行って、変換点の補間演算に必要な格子点データ
を読み出し、変換点の補間演算を行う制御手段とを備え
た画像処理装置。
1. In an image processing device for converting a color space, a 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 reference grid point. The image processing apparatus includes a control unit that calculates the reference address of, and sequentially increments from the reference address to read grid point data necessary for the interpolation calculation of the conversion point, and perform the interpolation calculation of the conversion point.
【請求項2】 請求項1に記載の画像処理装置におい
て、記憶手段は、例外処理に該当するか否かを記憶し、
制御手段は、例外処理に該当する場合と該当しない場合
とに応じて変換点の補間演算を行う画像処理装置。
2. The image processing apparatus according to claim 1, wherein the storage means stores whether or not the exceptional processing is applied,
The control means is an image processing device for performing interpolation calculation of conversion points depending on whether the exception processing is applied or not.
【請求項3】 請求項1に記載の画像処理装置におい
て、制御手段は、例外処理に該当するか否かを判断する
ことなく、変換点の補間演算を行う画像処理装置。
3. The image processing apparatus according to claim 1, wherein the control means performs the interpolation calculation of the conversion points without determining whether or not the exception processing is applicable.
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 JP2000123153A (en) 2000-04-28
JP3409713B2 true 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)

Families Citing this family (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
JP5327355B2 (en) * 2012-05-07 2013-10-30 コニカミノルタ株式会社 Color adjustment method and color adjustment apparatus

Also Published As

Publication number Publication date
JP2000123153A (en) 2000-04-28

Similar Documents

Publication Publication Date Title
JP3664364B2 (en) Color conversion method
JP3083067B2 (en) Method and apparatus for determining color conversion coefficient
JP2002016818A (en) Color correction method and device, and recording medium
JP2002016939A (en) Method and apparatus for processing image as well as recording medium
CN101610342A (en) Color signal processing apparatus and method, color conversion apparatus and method
JP3409713B2 (en) Image processing device
JP4061046B2 (en) Color image processing method
JP2001045313A (en) Method and device for converting color, color conversion program storage medium and method for correcting color
JP4468270B2 (en) Normalization method, multidimensional interpolation apparatus and program
JP4321698B2 (en) Image output method and apparatus, and recording medium
JPH01167791A (en) Color image processing method
JPH05227421A (en) Chromimage signal conversion device
JPH10191090A (en) Apparatus and method for manufacturing color conversion table, and recording medium
JPH0795427A (en) Method and device for picture processing
JP3110041B2 (en) Image information processing device
JP3337697B2 (en) Image processing method
JPH10173951A (en) Device and method for manufacturing color conversion table, and recording medium
JP4139052B2 (en) Color processing method, color processing apparatus, and color processing program storage medium
JPH06121160A (en) Color correction circuit
JP2774879B2 (en) Color correction circuit
JPH10198793A (en) Image processor
JP2961953B2 (en) Color correction method and apparatus
JP2001203903A (en) Color converting device
JP2000078421A (en) Device, method and system for processing image
JP5429456B2 (en) Color conversion apparatus and color conversion program

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