JP2739345B2 - Color correction method - Google Patents

Color correction method

Info

Publication number
JP2739345B2
JP2739345B2 JP1193489A JP19348989A JP2739345B2 JP 2739345 B2 JP2739345 B2 JP 2739345B2 JP 1193489 A JP1193489 A JP 1193489A JP 19348989 A JP19348989 A JP 19348989A JP 2739345 B2 JP2739345 B2 JP 2739345B2
Authority
JP
Japan
Prior art keywords
value
color
bits
color correction
data
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
JP1193489A
Other languages
Japanese (ja)
Other versions
JPH0357376A (en
Inventor
武彦 斎藤
Original Assignee
セイコーインスツルメンツ株式会社
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 セイコーインスツルメンツ株式会社 filed Critical セイコーインスツルメンツ株式会社
Priority to JP1193489A priority Critical patent/JP2739345B2/en
Priority to EP19900308144 priority patent/EP0410719A3/en
Publication of JPH0357376A publication Critical patent/JPH0357376A/en
Priority to US08/106,486 priority patent/US5479272A/en
Application granted granted Critical
Publication of JP2739345B2 publication Critical patent/JP2739345B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、カラープリンタ等の色再現特性を改善する
ための色補正方法に関するものである。
Description: TECHNICAL FIELD The present invention relates to a color correction method for improving color reproduction characteristics of a color printer or the like.

〔発明の概要〕 本発明は、カラープリンタ等の色補正処理をテーブル
メモリ方式で行う際、テーブルメモリの容量を削減し、
なおかつ精度の高い色補正処理を行うために、各色再現
諧調数に相当するより小さい上位nビットの組み合わせ
の色補正結果のデータを記憶させて、あるアルゴリズム
に従った補間方法を用いることにより、上記目的を達成
する。
[Summary of the Invention] The present invention reduces the capacity of a table memory when performing color correction processing of a color printer or the like by a table memory method,
In addition, in order to perform high-precision color correction processing, by storing data of a color correction result of a combination of smaller high-order n bits corresponding to the number of color reproduction gradations and using an interpolation method according to a certain algorithm, Achieve the goal.

〔従来の技術〕[Conventional technology]

カラープリンタの色補正方法として、カラーマスキン
グ処理が知られている。たとえば、1次のマスキング演
算は、 で表わされ、 2次のマスキング演算は、 で表わされる。入力データ(C,M,Y)はマスキング演算
によって(C′,M′,Y′)に補正される。色補正を実現
する方法として、(1)式又は(2)式の演算結果、又
は入力データに対して直接的に対応づけた出力データを
入力データ(C,M,Y)の全ての階調の組み合わせに対し
てテーブルメモリに記憶させておく方法がある。しか
し、この方法ではC,M,Yそれぞれ8ビットの入力データ
とすれば224×3バイトの大量のメモリが必要となり、
装置のコストが大幅に上がってしまう。この点を改善す
る方式として、特公昭52−16403号公報には、テーブル
メモリの容量を減じて、テーブルメモリでもたない入力
データの組み合わせに関しては補間する方式が記載され
ている。
As a color correction method of a color printer, a color masking process is known. For example, the first order masking operation is And the secondary masking operation is Is represented by The input data (C, M, Y) is corrected to (C ', M', Y ') by a masking operation. As a method of realizing color correction, the calculation result of the expression (1) or (2) or the output data directly associated with the input data is used for all gradations of the input data (C, M, Y). There is a method of storing the combinations in the table memory. However, this method requires a large amount of memory of 2 24 × 3 bytes if the input data of each of C, M, and Y is 8 bits.
The cost of the equipment will increase significantly. As a method for improving this point, Japanese Patent Publication No. 52-16403 discloses a method of reducing the capacity of a table memory and interpolating a combination of input data that does not have a table memory.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

前記補間方法では、入力データ(C,M,Y)に対してた
とえば出力データC′を求める際にCの値にのみ注目し
て補間演算しているため、補間演算の精度が大変悪くな
る。入力データ(C,M,Y)に対応するテーブルを(Cr,M
r,Yr),該入力データの1段階上位のテーブルを
(Cr+1,Mr+1,Yr+1)とすれば、補間演算をCとCrとCr+1
の関係から求めている。このため入力データMとYがMr
≦M≦Mr+1,Yr≦Y≦Yr+1の範囲であればすべて同じ値
となってしまう。M′,Y′を求める際も同様である。
In the interpolation method, for example, when calculating output data C 'for input data (C, M, Y), the interpolation calculation is performed by paying attention only to the value of C, so that the accuracy of the interpolation calculation is very poor. The table corresponding to the input data (C, M, Y) is (Cr, M
r, Yr), and the table one level higher than the input data is (C r + 1 , M r + 1 , Y r + 1 ), the interpolation calculation is performed for C, Cr and Cr + 1.
Seeking from the relationship. Therefore, the input data M and Y are Mr.
In the range of ≦ M ≦ Mr + 1 , Yr ≦ Y ≦ Yr + 1 , all values are the same. The same applies when M 'and Y' are obtained.

またCがCrとCr+1のどの割合にあるかを演算するため
に乗算器が必要となり、装置が高価なものになってしま
う。
Further, a multiplier is required to calculate the ratio of C to Cr + 1 , which makes the device expensive.

〔課題を解決するための手段〕[Means for solving the problem]

本発明は上記課題を解決するためになされたもので、
3色の入力データのビット数より少ない上位nビットの
組み合わせによる補正結果のみをテーブルメモリに記憶
させておき、テーブルメモリに記憶されていない入力デ
ータの組み合わせに関してはあるアルゴリズムに従った
数種類のテーブルデータを読み出し、該数種類のデータ
を演算することにより補間データを生成するすなわち、
カラー画像の色分解入力データC,M,Y各色mヒットに対
して、上位n(m>n)ビットの組み合わせの色補正さ
れた出力データC′,M′,Y′をテーブルメモリとして具
備し、C,M,Y各色の入力データの下位(m−n)ビット
の組み合わせによって、テーブルメモリから2種類のデ
ータを読み出して、該2つのデータの中間値を演算し、
同様な手順を最大2(m-n)−1回繰り返すことにより補間
データを生成する。
The present invention has been made to solve the above problems,
Only the correction result by the combination of the upper n bits smaller than the number of bits of the input data of three colors is stored in the table memory, and several combinations of the input data not stored in the table memory are stored in the table memory according to an algorithm. To generate interpolation data by calculating the several types of data, that is,
The color separation input data C, M, and Y of the color image are provided as a table memory with color-corrected output data C ', M', and Y 'of a combination of upper n bits (m> n) for each m hits of each color. , C, M, and Y, two types of data are read from the table memory according to the combination of the lower (mn) bits of the input data of each color, and an intermediate value between the two data is calculated.
The same procedure is repeated a maximum of 2 (mn) -1 times to generate interpolation data.

〔作用〕[Action]

本発明では、テーブルメモリにもたない入力データの
組み合わせでも、テーブルメモリから読み出した数種類
のデータを演算して補間データを生成することにより各
色上位nビットの入力データの組み合わせのテーブルメ
モリしか具備しなくとも、各色入力データmビットの組
み合わせすべてのテーブルメモリをもつ場合と、略同等
な精度で色補正処理を行うことができる。
According to the present invention, even with a combination of input data that does not exist in the table memory, only a table memory of a combination of input data of the upper n bits of each color is generated by calculating several types of data read from the table memory to generate interpolation data. At least, the color correction process can be performed with substantially the same accuracy as in the case where the table memory has all the combinations of m bits of each color input data.

〔実施例〕〔Example〕

第1図は本発明を説明するためのフローチャート図で
ある。本実施例ではm=8,n=6の場合、つまりC,M,Y各
8ビット(0〜255)入力データの組み合わせのうち下
位2ビットが00の組み合わせの色補正結果をテーブルメ
モリに記憶させる場合について説明する。第2図はテー
ブルメモリに記憶されている入力データの組み合わせの
空間座標図である。
FIG. 1 is a flow chart for explaining the present invention. In this embodiment, when m = 8, n = 6, that is, in the table memory, the color correction result of the combination in which the lower 2 bits are 00 among the combinations of the input data of 8 bits (0 to 255) for each of C, M, and Y is stored. The case in which it is performed will be described. FIG. 2 is a spatial coordinate diagram of a combination of input data stored in the table memory.

入力データ8ビット(0〜〜255)を上位6ビット
(0〜63)と下位2ビット(0〜3)に分けると入力デ
ータは、 C=4C1+i(C1:0〜63,i:0〜3) M=4M1+j(M1:0〜63,j:0〜3) Y=4Y1+k(Y1:0〜63,k:0〜3) とおくことができる。ここでC1,M1,Y1は上位6ビット,
i,j,kは下位2ビットの値である。i=j=k=0の場
合はテーブルメモリで記憶されているデータを読み出せ
ばよい。それ以外のi,j,kの組み合わせに関しては以下
に示す補間方法により、データを生成する。
When 8 bits (0 to 255) of input data are divided into upper 6 bits (0 to 63) and lower 2 bits (0 to 3), the input data becomes C = 4C 1 + i (C 1 : 0 to 63, i: 0~3) M = 4M 1 + j (M 1: 0~63, j: 0~3) Y = 4Y 1 + k (Y 1: 0~63, k: can be placed and 0-3). Where C 1 , M 1 , and Y 1 are the upper 6 bits,
i, j, k are the values of the lower two bits. If i = j = k = 0, the data stored in the table memory may be read. For other combinations of i, j, and k, data is generated by the following interpolation method.

第3図は、第2図の空間座標から(C,M,Y)=(80,4
0,12)と(C,M,Y)=(84,44,16)のテーブルの抜き出
したもので以下の具体例を図示したものである。i,j,k
が2のときは、それぞれC=4(C1+1),M=4(M1
1),Y=4(Y1+1)とおいたテーブルとおいたテーブ
ルとi=j=k=0とした場合のテーブルを選択して、
該2つのテーブルデータの中間値を演算する。例えば
(C,M,Y)=(82,42,16)の場合、テーブル(80,40,1
6)とテーブル(84,44,16)を選択して該2つのテーブ
ルからデータを読み出し、読み出したデータの中間値を
演算する。i,j,kが2のときの選択テーブルを第4図に
示す。次にi,j,kが1のときは、i,j,kを2とした場合の
演算結果を、上記のi,j,kが2の場合の方法により求
め、該演算結果とi=j=k=0とした場合のテーブル
データの中間値を演算する。また、i,j,kが3のとき
は、それぞれC=4(C1+1),M=4(M1+1),Y=4
(Y1+1)としたテーブル値とi,j,kを2とした場合の
演算結果の中間値を演算する。
FIG. 3 shows (C, M, Y) = (80, 4) from the spatial coordinates of FIG.
(0,12) and (C, M, Y) = (84,44,16) are extracted from the tables and illustrate the following specific examples. i, j, k
Is 2, C = 4 (C 1 +1) and M = 4 (M 1 +
1) Select a table in which Y = 4 (Y 1 +1), a table in which i = j = k = 0, and a table in which i = j = k = 0.
An intermediate value between the two table data is calculated. For example, if (C, M, Y) = (82,42,16), the table (80,40,1)
6) and the tables (84, 44, 16) are selected, data is read from the two tables, and an intermediate value of the read data is calculated. FIG. 4 shows a selection table when i, j, k is 2. Next, when i, j, k is 1, the calculation result when i, j, k is 2 is obtained by the above method when i, j, k is 2, and the calculation result and i = An intermediate value of the table data when j = k = 0 is calculated. When i, j, k is 3, C = 4 (C 1 +1), M = 4 (M 1 +1), and Y = 4, respectively.
An intermediate value between the table value (Y 1 +1) and the calculation result when i, j, k is 2 is calculated.

例えば入力データが(C,M,Y)=(83,42,13)の場合
(4×20+3,4×10+2,4×3+1)とおくことができ
る。先ず上記の方法で、i,j,kが1又は3の場合の処理
をすると(4×20+2,4×10+2,4×3)−の値と(4
×21,4×10+2,4×3+2)−の値の中間値を演算す
ればよい。次に上記のi,j,kが2の場合の処理を行うと
の値はテーブル(80,40,12)とテーブル(84,44,12)
のテーブルデータより求めることができ、の値は、テ
ーブル(84,40,12)とテーブル(84,44,16)のテーブル
データより求めることができる。さらにとの中間値
を演算することにより入力データ(83,42,13)の色補正
データを得ることができる。
For example, when the input data is (C, M, Y) = (83, 42, 13), it can be set to (4 × 20 + 3, 4 × 10 + 2, 4 × 3 + 1). First, when the processing in the case where i, j, k is 1 or 3 is performed by the above method, the value of (4 × 20 + 2, 4 × 10 + 2, 4 × 3) − and (4
It is sufficient to calculate an intermediate value between the values of (21, 4 × 10 + 2, 4 × 3 + 2) −. Next, the values for performing the processing in the case where i, j, k is 2 are as shown in the table (80, 40, 12) and the table (84, 44, 12).
Can be obtained from the table data of Table (84, 40, 12) and Table (84, 44, 16). Further, the color correction data of the input data (83, 42, 13) can be obtained by calculating an intermediate value between the two.

また本発明の補間方法を用いれば同様のアルゴリズム
で、C,M,Y各8ビット入力データのうち下位3ビットが0
00の組み合わせや、下位4ビットが0000の組み合わせの
色補正結果をテーブルメモリに記憶するだけで各色8ビ
ットの組み合わせの色補正結果をすべてテーブルメモリ
に記憶させる場合と略同等な精度で色補正処理を行うこ
とができる。
If the interpolation method of the present invention is used, the lower 3 bits of the 8-bit input data for each of C, M, and Y are set to 0 using the same algorithm.
The color correction processing is performed with almost the same accuracy as when all the color correction results of the combination of 8 bits for each color are stored in the table memory simply by storing the color correction result of the combination of 00 and the combination of the lower 4 bits of 0000 in the table memory. It can be performed.

〔発明の効果〕〔The invention's effect〕

本発明は以上のような補間方式を用いることにより、
テーブルメモリの容量を大幅に削減し、なおかつ各色m
ビットの入力データの組み合わせすべてのテーブルメモ
リを具備する場合と略同等な精度で各補正処理を行うこ
とができる。
The present invention uses the interpolation method as described above,
Significantly reduced table memory capacity, and each color m
Each correction process can be performed with approximately the same accuracy as when a table memory is provided for all combinations of bit input data.

さらに、本発明をハードウエア化する際に、乗算器を
使用することなく構成できるため装置のコストが上がる
のを防ぐことができる。
Furthermore, when the present invention is implemented in hardware, the present invention can be configured without using a multiplier, thereby preventing an increase in the cost of the apparatus.

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

第1図はフローチャート図、第2図は空間座標図、第3
図は具体例の空間座標図、第4図は選択テーブルを示す
説明図である。
FIG. 1 is a flowchart, FIG. 2 is a spatial coordinate diagram, FIG.
FIG. 4 is a spatial coordinate diagram of a specific example, and FIG. 4 is an explanatory diagram showing a selection table.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】カラー画像の3色の色分解入力データ各色
mビットに対して、上位n(m>n)ビットに対し下位
(m−n)ビットの値が0の時の前記各色mビットの各
値に対応する組み合わせに対応する(2n個の色補正
結果データを、原点を(0,0,0)とする、入力データの
各色に対応する3つの軸からなる空間座標上にテーブル
メモリとして具備し、入力データが各座標値のいずれか
について、下位(m−n)ビットの値が0でない値を含
む時は、前記テーブルメモリのうち、入力データの各座
標値について、下位(m−n)ビットの値が0の時の値
と、該値に対し上位nビットの値をインクリメントした
値の組み合わせで決まる各座標点の前記テーブルメモリ
の色補正結果データを読み出し、前記各座標点の色補正
結果データの中間値を演算し、該中間値を用いて補間デ
ータを生成することを特徴とする色補正方法。
1. An m bit of each color when the value of lower (mn) bits is 0 for higher n (m> n) bits for each m bits of color separation input data of three colors of a color image. (2 n ) three color correction result data corresponding to the combination corresponding to each value of the input data are represented on spatial coordinates consisting of three axes corresponding to each color of the input data, with the origin being (0,0,0). Is provided as a table memory, and when the input data includes a value whose lower (mn) bit is not 0 for any of the coordinate values, for each coordinate value of the input data in the table memory, The color correction result data of the table memory at each coordinate point determined by a combination of a value when the value of the lower (mn) bit is 0 and a value obtained by incrementing the value of the upper n bits with respect to the value is read out. Intermediate value of color correction result data of each coordinate point , And using the intermediate value to generate interpolation data.
【請求項2】カラー画像の色分解入力データC,M,Y各色
mビットに対して、上位n(m>n)ビットに対し下位
(m−n)ビットの値が0の時の前記各色mビットの各
値に対応する組み合わせ(C,M,Y)に対応する(2n
個の色補正結果データ(C′,M′,Y′)を、原点を(0,
0,0)とするC軸、M軸、Y軸からなる空間座標上にテ
ーブルメモリとして具備し、入力データ(C,M,Y)がC,
M,Yのいずれかについて、下位(m−n)ビットの値が
0でない値を含む時は、前記テーブルメモリのうち、
C、M、Yの各座標値について、下位(m−n)ビット
の値が0の時の値と、該値に対し上位nビットの値をイ
ンクリメントした値の組み合わせで決まる各座標点の前
記テーブルメモリの色補正結果データを読み出し、前記
各座標点の色補正結果データ(C′,M′,Y′)の中間値
を演算し、該中間値を用いて補間データを生成すること
を特徴とする色補正方法。
2. The color separation input data C, M, and Y of a color image. For each m bits of each color, each color when the value of the lower (mn) bits is 0 for the upper n (m> n) bits. (2 n ) 3 corresponding to the combination (C, M, Y) corresponding to each value of m bits
The color correction result data (C ′, M ′, Y ′) is set to the origin (0,
(0,0) is provided as a table memory on the spatial coordinates of the C axis, M axis, and Y axis, and the input data (C, M, Y) is C, M, Y.
When the value of the lower (mn) bit includes a value other than 0 for any of M and Y, in the table memory,
For each coordinate value of C, M, and Y, the value of each coordinate point determined by a combination of a value when the value of the lower (mn) bit is 0 and a value obtained by incrementing the value of the upper n bits with respect to the value Reading the color correction result data from the table memory, calculating an intermediate value of the color correction result data (C ′, M ′, Y ′) at each coordinate point, and generating interpolation data using the intermediate value. Color correction method.
【請求項3】前記中間値と前記各座標点の色補正結果デ
ータとの中間値あるいは前記中間値同士の中間値を演算
することを最大2(m-n)−1回繰り返すことにより、補間
データを生成することを特徴とする請求項1または2記
載の色補正方法。
3. Computing an intermediate value between the intermediate value and the color correction result data of each of the coordinate points or an intermediate value between the intermediate values at a maximum of 2 (mn) -1 times at maximum, thereby interpolating the interpolation data. The color correction method according to claim 1, wherein the color correction is generated.
JP1193489A 1989-07-25 1989-07-25 Color correction method Expired - Fee Related JP2739345B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP1193489A JP2739345B2 (en) 1989-07-25 1989-07-25 Color correction method
EP19900308144 EP0410719A3 (en) 1989-07-25 1990-07-25 Colour correction system and method
US08/106,486 US5479272A (en) 1989-07-25 1993-08-13 Color gradation correction system of combination of looking-up table and interpolation and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1193489A JP2739345B2 (en) 1989-07-25 1989-07-25 Color correction method

Publications (2)

Publication Number Publication Date
JPH0357376A JPH0357376A (en) 1991-03-12
JP2739345B2 true JP2739345B2 (en) 1998-04-15

Family

ID=16308889

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1193489A Expired - Fee Related JP2739345B2 (en) 1989-07-25 1989-07-25 Color correction method

Country Status (1)

Country Link
JP (1) JP2739345B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4834295B2 (en) * 2004-01-09 2011-12-14 株式会社東芝 Video display device and video display method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59210770A (en) * 1983-05-16 1984-11-29 Canon Inc Color processing device

Also Published As

Publication number Publication date
JPH0357376A (en) 1991-03-12

Similar Documents

Publication Publication Date Title
JPH0146869B2 (en)
US4837847A (en) Image processing apparatus
EP0566915B1 (en) Sharpness processing apparatus
JP2739345B2 (en) Color correction method
US5450532A (en) Cache memory system for a color ink jet printer
US7257276B2 (en) Digital image interpolation method
JP2519107B2 (en) Image processing device
EP0969413A2 (en) Data conversion apparatus and method
JP2878614B2 (en) Image synthesis method and apparatus
JPH06100906B2 (en) Character processing method
JP2910101B2 (en) Vector font data component point correction device
JPS6148275A (en) Picture signal processor
JPS6190277A (en) Histogram calculation method
JPH04329483A (en) Image processor
JPH05225299A (en) Color conversion system
JPH05110827A (en) Picture processing method
JP2802646B2 (en) A scaling method for character patterns using vector fonts
JPH0614184A (en) Color tone corrector
JPS6254377A (en) Selecting method for vector
JP2797660B2 (en) Pixel correction method
JP2746008B2 (en) Paint color figure drawing apparatus and paint color data determination method
JPS63155954A (en) Picture signal processor
JPH05333835A (en) Image display method
JPS6279575A (en) Picture correcting method and its device
JPH07200784A (en) Data transform device, data transform method and arithmetic interpolation method

Legal Events

Date Code Title Description
S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees