JP3034278B2 - Image recording apparatus and color image processing method - Google Patents
Image recording apparatus and color image processing methodInfo
- Publication number
- JP3034278B2 JP3034278B2 JP2161388A JP16138890A JP3034278B2 JP 3034278 B2 JP3034278 B2 JP 3034278B2 JP 2161388 A JP2161388 A JP 2161388A JP 16138890 A JP16138890 A JP 16138890A JP 3034278 B2 JP3034278 B2 JP 3034278B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- color
- conversion
- conversion table
- component format
- 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 - Lifetime
Links
Landscapes
- Color Image Communication Systems (AREA)
- Dot-Matrix Printers And Others (AREA)
- Color, Gradation (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明はカラーデータを入力し処理する画像処理装置
及びカラー画像処理方法に関するものである。Description: TECHNICAL FIELD The present invention relates to an image processing apparatus and a color image processing method for inputting and processing color data.
[従来の技術] 従来、このタイプの印刷装置は毎回、例えばR(レツ
ド),G(グリーン),B(ブルー)データを入力する都
度、それを色処理ルーチンによつてY(イエロー),M
(マゼンタ),C(シアン)又はY,M,C,K(ブラツク)に
変換させる処理を行つていた。2. Description of the Related Art Conventionally, a printing apparatus of this type always outputs R (red), G (green), and B (blue) data each time it inputs Y (yellow), M (color) data by a color processing routine.
(Magenta), C (cyan) or Y, M, C, K (black) has been processed.
[発明が解決しようとしている課題] しかしながら、RGBからYMC、又はYMCKの変換の精度を
上げ、色再現性を向上させようとすると、その変換式は
複雑になり、又、中間データのケタ精度を上げる必要も
あるため、変換速度が下がるという欠点があつた。特
に、個々のRGBデータは1つの画素に対するデータであ
り、全体像として得るためには膨大な回数計算しなけれ
ばならないので、なおさらである。[Problems to be Solved by the Invention] However, if the accuracy of RGB to YMC or YMCK conversion is increased to improve color reproducibility, the conversion formula becomes complicated, and the digit accuracy of intermediate data is reduced. There is a drawback that the conversion speed decreases because it is necessary to increase the conversion speed. In particular, each RGB data is data for one pixel, and it is all the more necessary to perform an enormous number of calculations to obtain an entire image.
また、最も簡単な手法は、予め入力色成分と出力色成
分との対応関係をルックアップテーブルアップとして用
意しておき、これを活用することである。The simplest method is to prepare the correspondence between the input color components and the output color components in advance as a look-up table, and utilize this.
しかしながら、色再現性を高めるためには、各色成分
のビット数はある程度は確保しなければならず、必然、
変換用テーブルのメモリ容量は膨大なものとなる。However, in order to enhance color reproducibility, the number of bits of each color component must be secured to some extent.
The memory capacity of the conversion table is enormous.
本発明は、かかる問題点に鑑みなされたものであり、
実色空間分の変換テーブルの容量を必要とせずに、高速
に出力色成分のデータを生成するカラー画像処理方法及
び、実際にカラー画像を記録する画像記録装置を提供し
ようとするものである。The present invention has been made in view of such a problem,
An object of the present invention is to provide a color image processing method for generating output color component data at high speed without requiring the capacity of a conversion table for an actual color space, and an image recording apparatus for actually recording a color image.
[課題を解決するための手段] この課題を解決するため、例えば本発明の画像記録装
置は以下の構成を備える。すなわち、 入力色成分形式のデータを、記録用色成分形式のデー
タに変換して画像を記録する画像記録装置において、 入力色成分形式のデータを演算によって記録用色成分
形式のデータに変換する第1の変換手段と、 入力色成分形式のデータと当該入力色成分形式のデー
タに対応する記録用色成分形式のデータが対応付けて記
録されている変換テーブルを利用し、入力色成分形式の
データから記録色成分形式のデータに変換する第2の変
換手段と、 入力された色成分形式のデータが、前記変換テーブル
に記憶されているか否かを判別する判別手段と、 該判別手段によって記憶されていると判別した場合に
は、前記第2の変換手段を用いて、対応する記録用色成
分形式データを得、 前記判別手段によって記憶されていないと判別された
場合、前記第1の変換手段でもって対応する記録用色成
分形式のデータに変換させると共に、その入力された色
成分形式のデータと変換して得られたデータとを対応づ
けて前記変換テーブルに記録し、前記変換テーブルを構
築する制御手段とを備える。[Means for Solving the Problems] To solve the problems, for example, an image recording apparatus of the present invention has the following configuration. That is, in an image recording apparatus that converts data in an input color component format into data in a recording color component format and records an image, a second device that converts data in the input color component format into data in a recording color component format by calculation. 1 conversion means, and a conversion table in which data of the input color component format and data of the recording color component format corresponding to the data of the input color component format are recorded in association with each other. Second converting means for converting the data of the color component format into data of the recording color component format; determining means for determining whether or not the input color component format data is stored in the conversion table; When it is determined that the data is not stored, the corresponding conversion color component format data is obtained by using the second conversion unit, and when it is determined that the data is not stored by the determination unit. The first conversion means converts the data in the corresponding color component format into the corresponding color component format data, and records the input color component format data and the data obtained by the conversion in the conversion table in association with each other. And control means for constructing the conversion table.
また、本発明のカラー画像処理方法は以下の工程を備
える。すなわち、 入力カラーデータに対する出力カラーデータに変換し
て出力するカラー画像処理方法であって、 入力カラーデータを演算によって出力カラーデータに
変換する第1の変換工程と、 入力カラーデータと当該入力カラーデータに対応する
出力カラーデータとが対応付けて記録されている変換テ
ーブルを用いて入力カラーデータから出力カラーデータ
に変換する第2の変換工程と、 入力されたカラーデータが、前記メモリに記憶されて
いるか否かを判別する判別工程と、 該判別工程によって記憶されていると判別した場合に
は、前記第2の変換工程に従って、対応する出力カラー
データを生成し、 前記判別工程によって記憶されていないと判別された
場合、前記第1の変換工程によって対応する出力カラー
データを生成すると共に、その入力カラーデータと生成
された出力カラーデータを対応付けて前記変換テーブル
に記憶し、前記変換テーブルを構築する制御工程とを備
える。The color image processing method of the present invention includes the following steps. That is, a color image processing method for converting input color data into output color data and outputting the output color data, comprising: a first conversion step of converting input color data into output color data by operation; A second conversion step of converting input color data into output color data using a conversion table in which output color data corresponding to the input color data are recorded in association with the input color data. A discriminating step of discriminating whether or not the output color data is stored in the discriminating step, corresponding output color data is generated in accordance with the second conversion step, and is not stored in the discriminating step. Is determined, the corresponding output color data is generated by the first conversion step, The input color data and associates the generated output color data has been stored in the conversion table, and a control step of constructing the conversion table.
[実施例] 以下、添付図面に従つて本発明に係る実施例を詳細に
説明する。Embodiment An embodiment according to the present invention will be described below in detail with reference to the accompanying drawings.
第1図は実施例に係る印刷装置のブロツク図である。
実施例の印刷装置はY(イエロー)、M(マゼンタ)、
C(シアン)、K(ブラツク)の4つの色成分でカラー
画像を記録する装置である。FIG. 1 is a block diagram of a printing apparatus according to an embodiment.
The printing devices of the embodiments are Y (yellow), M (magenta),
This device records a color image using four color components of C (cyan) and K (black).
図示において、実線で示された印刷装置本体1には、
外部のホストコンピユータ2が不図示のコネクタを介し
て接続されており、ホストコンピユータ2からのコマン
ド等を受け取つて、印刷出力さるように構成されてい
る。In the drawing, the printing apparatus main body 1 indicated by a solid line includes:
An external host computer 2 is connected via a connector (not shown), and is configured to receive a command or the like from the host computer 2 and print out.
そして、本体1内の全制御を行なうCPU3には以下に示
す各種構成要素が接続されている。4は、ホストコンピ
ユータ2よりのコマンド等の受信データを一時的に貯え
る受信バツファ、5は後述する第3図のフローチヤート
をはじめ、一連の制御フロー実行のためのプログラム等
が格納されているROM、6はCPU3がプログラムを実行す
る際にワークエリアとして使用するRAM、及び7はYMCK
の各々の画像データを出力する出力部である。また、不
図示の電源装置も接続されている。Various components shown below are connected to the CPU 3 that performs all controls in the main body 1. Reference numeral 4 denotes a reception buffer for temporarily storing reception data such as commands from the host computer 2; and 5, a ROM in which a program for executing a series of control flows and the like are stored, including a flowchart shown in FIG. , 6 is RAM used as a work area when CPU3 executes a program, and 7 is YMCK
Is an output unit that outputs each image data. A power supply device (not shown) is also connected.
また、RAM6内には、RGB−YMCK変換データを保存するR
GB・YMCK変換テーブル6aが確保されており、その内容は
第2図に示す通りである。The RAM 6 stores an RGB-YMCK conversion data.
The GB / YMCK conversion table 6a is secured, and the contents are as shown in FIG.
図示のように、実施例のRGB−YMCK変換テーブル6aに
は、RGB→YMCKへの変換した際のR,G,B各データとそれに
よつて変換されたY,M,C,Kのデータを1組として、全体
でN組の変換データが記憶可能になつている(“N"はRA
M6のメモリ容量に依存する値)。電源投入時、この変換
テーブル6aには何もデータが記憶されておらず、印刷処
理を繰り返していく最中にこの変換テーブルが構築され
ていく。As shown in the figure, the RGB-YMCK conversion table 6a of the embodiment stores the R, G, B data at the time of conversion from RGB to YMCK and the Y, M, C, K data converted thereby. As a set, a total of N sets of converted data can be stored (“N” is RA
Value that depends on the memory capacity of M6). When the power is turned on, no data is stored in the conversion table 6a, and the conversion table is constructed while the printing process is repeated.
実際に印刷するときには、ホストコンピユータ2より
受信した色指定命令に係るコマンドを解析することで得
られたY,M,C,Kの値に基づき、以後入力したイメージや
文字コードに対応する文字パターンを印刷する処理を行
なう。At the time of actual printing, based on the values of Y, M, C, and K obtained by analyzing a command related to a color designation command received from the host computer 2, a character pattern corresponding to an image or a character code input thereafter. Is printed.
現在の印字色(Y,M,C,Kの値)はRAM6の所定アドレス
位置に確保されたカレント変数に格納されており、この
カレント変数の値を確定する処置手順を第3図のフロー
チヤートを参照にして説明する。The current print colors (Y, M, C, and K values) are stored in a current variable secured at a predetermined address position in the RAM 6, and a procedure for determining the value of the current variable is described in the flowchart of FIG. This will be described with reference to FIG.
尚、実施例における出力部7はレーザビームプリンタ
でも、インクジエツトプリンタでも熱転写プリンタであ
つても良い。また、以下の説明で使用される変数“n"及
び“i"等もRAM6の所定アドレス位置に確保されているも
のとする。The output unit 7 in the embodiment may be a laser beam printer, an ink jet printer, or a thermal transfer printer. It is also assumed that variables “n” and “i” used in the following description are also reserved at predetermined address positions in the RAM 6.
本体1に電源が供給されると、CPU3は先ず、ステツプ
S1においてRAM6上の有効テーブル数変数nを“0"に初期
化する。この有効テーブル数変数nは、現在、RGB−YMC
K変換テーブル6aのどこまで変換データが格納されてい
るかを示すポインタ的役割を担つている。つまり、ステ
ツプS1では、RAM6のRGB−YMCK変換テーブル6aには変換
データが全く格納されていない旨をセツトしているに他
ならない。When power is supplied to the main body 1, the CPU 3 firstly executes a step.
In S1, a variable n of the number of valid tables on the RAM 6 is initialized to "0". This effective table number variable n is currently RGB-YMC
It serves as a pointer indicating how far the conversion data is stored in the K conversion table 6a. That is, in the step S1, the fact that no conversion data is stored in the RGB-YMCK conversion table 6a of the RAM 6 is set.
説明が前後するが、ホストコンピユータからデータを
受信すると、CPU3に割り込み信号が発生するようになつ
ている。CPU3はこの割り込みルーチンによつて受信した
データを順次受信バツフア4に格納する処理を行つてい
る。Before and after the description, an interrupt signal is generated in the CPU 3 when data is received from the host computer. The CPU 3 performs processing for sequentially storing the data received by this interrupt routine in the reception buffer 4.
次に、ステツプS2で受信バツフア4から1単位のデー
タを読み取り、そのデータが色指定命令に対するデータ
か、印字命令データか、或いは排紙命令データかを判断
する。Next, in step S2, one unit of data is read from the reception buffer 4, and it is determined whether the data is data corresponding to a color designation command, print command data, or paper ejection command data.
色指定命令である場合、処理はステツプS4に進み、テ
ーブル参照位置のポインタとして使用する変数iを“0"
にする。そして、次のステツプS5に進み、変数iと変数
nとを比較し、“i<n"が満足するか否かを判断する。If the instruction is a color designation instruction, the process proceeds to step S4, where a variable i used as a pointer of the table reference position is set to "0".
To Then, proceeding to the next step S5, the variable i is compared with the variable n, and it is determined whether or not "i <n" is satisfied.
詳細は後の説明より明らかになるが、この不等式を満
足しないということは、今入力した色指定命令コマンド
と同じコマンドが過去に入力されていないことを示して
いる。換言すれば、RGB−YMCK変換テーブル6aに該当す
るRGB値が存在しなかつたと判断する。従つて、この不
等式が満足しない場合、処理はステツプS9に進む。Although the details will be clear from the following description, the fact that this inequality is not satisfied indicates that the same command as the color designation command command that has just been input has not been input in the past. In other words, it is determined that the RGB value corresponding to the RGB-YMCK conversion table 6a does not exist. Therefore, if this inequality is not satisfied, the process proceeds to step S9.
ステツプS9では、入力した色指定コマンドによるR,G,
Bデータを、Y,M,C,Kデータに実際に変換する。In step S9, R, G,
B data is actually converted into Y, M, C, K data.
第4図に、このRGB−YMCK変換のアルゴリズムを簡単
に示す。FIG. 4 briefly shows the RGB-YMCK conversion algorithm.
ステツプS17で濃度変換(log変換)により、先ず、R,
G,BデータをC,M,Yデータに変換する。次に、ステツプS1
8で下色除去(UCR)処理によりC,M,YをC,M,Y,Kデータに
変換する。次に、ステツプS19でC,M,Yについてマスキン
グを行なつて、C,M,Yを補正する。最後に、ステツプS20
でγ変換によりC,M,Y,Kの各データを補正し、実際に印
刷するときのY,M,C,Kデータを得る。In step S17, by density conversion (log conversion), first, R,
Convert G, B data to C, M, Y data. Next, step S1
In step 8, C, M, and Y are converted to C, M, Y, and K data by under color removal (UCR) processing. Next, in step S19, C, M, and Y are masked to correct C, M, and Y. Finally, step S20
Then, each data of C, M, Y, K is corrected by γ conversion to obtain Y, M, C, K data for actual printing.
第3図に戻る。以上のようにして得られたY,M,C,Kデ
ータをステツプS10でRAM上のカレントYMCK変数に設定す
る。次に、ステツプS11で変数nが最大RGB−YMCK変換テ
ーブル6aの最大サイズN(この値はROM等の予め格納さ
れている)より小さいか否かを判断する。n<Nであれ
ば、RGB−YMCK変換テーブル6aにまだデータ格納の余裕
があることになるので、ステツプS12において、そのn
番目のテーブルにRGB値と変換したYMCK値を設定し、ス
テツプS13で有効テーブル数nを1加算し、ステツプS2
に戻る。Returning to FIG. In step S10, the Y, M, C, K data obtained as described above is set in the current YMCK variable on the RAM. Next, in step S11, it is determined whether or not the variable n is smaller than the maximum size N of the maximum RGB-YMCK conversion table 6a (this value is stored in advance in a ROM or the like). If n <N, there is still room for data storage in the RGB-YMCK conversion table 6a.
The RGB value and the converted YMCK value are set in the second table, and the number n of valid tables is incremented by one in step S13, and the result is determined in step S2.
Return to
また、ステツプS11で変数nが最大RGB−YMCK変換テー
ブル6aの最大サイズNより小さくないと判断された場
合、換言すれば、RGB−YMCK変換テーブル6aに空エリア
がないと判断された場合、処理はステツプS14に進み、R
GB−YMCK変換テーブル6aの先頭テーブル“0"にその新し
いRGBデータとYMCKデータを上書きし、ステツプS2に戻
る。If it is determined in step S11 that the variable n is not smaller than the maximum size N of the maximum RGB-YMCK conversion table 6a, in other words, if it is determined that there is no empty area in the RGB-YMCK conversion table 6a, the process proceeds. Goes to step S14, and R
The new RGB data and YMCK data are overwritten on the head table "0" of the GB-YMCK conversion table 6a, and the process returns to step S2.
こうして、RGB−YMCK変換テーブル6a内には、予め設
定してある最大サイズNの許す限り、異なる種類のRGB
データとそれによつて変換したYMCKデータによる変換テ
ーブルが構築されていく。Thus, different types of RGB are stored in the RGB-YMCK conversion table 6a as long as the preset maximum size N permits.
A conversion table based on the data and the YMCK data converted based on the data is constructed.
さて、ステツプS5において、“i<n"が満足すると判
断した場合、処理はステツプS6に進む。ステツプS6で
は、RGB−YMCK変換テーブル6aからi番目のテーブルを
参照し、その参照RGBの値が今入力した色指定命令によ
るRGBデータに等しい否かを判断する。例えば、参照RGB
の個々の値をR′,G′,B′とし、入力した色指定命令の
コマンドによる各色成分のデータをR,G,Bとしたとき、
R′=R,G′=G,B′=Bであるとき等しいと判断し、ど
れか1つでも満足しない場合には等しくないと判断す
る。If it is determined in step S5 that "i <n" is satisfied, the process proceeds to step S6. In step S6, the i-th table is referred to from the RGB-YMCK conversion table 6a, and it is determined whether or not the value of the reference RGB is equal to the RGB data according to the input color designation command. For example, reference RGB
Is R ', G', B 'and the data of each color component by the command of the input color designation command is R, G, B,
When R '= R, G' = G, B '= B, it is determined that they are equal. When any one of them is not satisfied, it is determined that they are not equal.
等しくないと判断した場合には、次のテーブルに対し
て参照する必要があるので、変数iを“1"インクリメン
トし、ステツプS5に戻る。こうして、次々とテーブルを
参照している過程で、RGB−YMCK変換テーブル6a内に等
しいデータが存在すると判断したとき、つまり、入力し
た色指定命令に対するYMCKデータへの変換値は既にRGB
−YMCK変換テーブルのi番目に存在すると判断したと
き、処理はステツプS7に進む。ステツプS7では、そのと
きの変数i番目のテーブルのYMCK値を求め、RAM6上のカ
レントYMCK変数にこの値を設定する処理を行ない、ステ
ツプS2に戻る。If it is determined that they are not equal to each other, it is necessary to refer to the next table, so the variable i is incremented by "1", and the process returns to step S5. Thus, when it is determined that equal data exists in the RGB-YMCK conversion table 6a in the process of referring to the tables one after another, that is, the conversion value to the YMCK data for the input color specification instruction is already RGB.
When it is determined that the i-th data exists in the -YMCK conversion table, the process proceeds to step S7. In step S7, the YMCK value of the i-th table of the variable at that time is obtained, processing for setting this value to the current YMCK variable in the RAM 6 is performed, and the process returns to step S2.
尚、ステツプS5,S6,S8のループにおいおて、最後にな
つても一致するテーブルが発見できないと判断した場合
には、ステツプS9に進み、そのYMCKデータに変換する処
理を行い、RGB−YMCK変換テーブル6aの容量(N値に依
存する)の許す限り、追加格納していく。In the loop of steps S5, S6, and S8, if it is determined that a matching table cannot be found even at the end, the process proceeds to step S9, where processing for converting the YMCK data is performed, and RGB-YMCK is performed. Additional storage is performed as long as the capacity of the conversion table 6a (depending on the N value) permits.
また、ステツプS3で印字命令と判断された場合、ステ
ツプS15に進み、印字する文字パターンをRAM6中のカレ
ントYMCK変数で示される値(印刷色)に従い、RAM6上の
YMCKビツトマツプに描画し、ステツプS2に戻る。If it is determined in step S3 that the command is a print command, the flow advances to step S15 to change the character pattern to be printed according to the value (print color) indicated by the current YMCK variable in RAM6.
Draw on the YMCK bitmap and return to step S2.
ステツプS3に排紙命令と判断された場合、ステツプS1
6に進み、RAM6上のYMCKビツトマツプを出力部7に出力
して排紙出力を行ないステツプS2に戻る。If it is determined in step S3 that the command is a sheet ejection command, step S1 is executed.
The program proceeds to step S6, where the YMCK bit map on the RAM 6 is output to the output unit 7 to output the paper, and the process returns to step S2.
以上説明したように本実施例によれば、指示されたRG
Bデータと、変換後のYMC又はYMCKのデータとを保存す
る。そして、入力RGBデータが保存されたRGBデータとあ
る比較関数により等しいと認められた場合、保存されて
いるYMC又はYMCKを使用する。これにより、同一RGBデー
タが繰り返し入力した場合には、RGBからYMC又はYMCKへ
の変換に要する処理が不要になるので、速度を向上させ
ることが可能となる。As described above, according to the present embodiment, the designated RG
The B data and the converted YMC or YMCK data are stored. If the input RGB data is determined to be equal to the stored RGB data by a certain comparison function, the stored YMC or YMCK is used. Accordingly, when the same RGB data is repeatedly input, the processing required for converting from RGB to YMC or YMCK is not required, so that the speed can be improved.
尚、実施例におけるRAM6内のRGB−YMCKテーブル6aは
入力したRGB指定データの順に構築されていくが、適当
なタイミングで昇順(或いは降順)にソーテイングし、
検索に係る処理を高速にしても良い(∵ソーテイングす
ることでおおよその位置が判明する)。Note that the RGB-YMCK table 6a in the RAM 6 in the embodiment is constructed in the order of the input RGB designation data, but is sorted in ascending order (or descending order) at appropriate timing.
The processing related to the search may be performed at high speed (∵The approximate position can be determined by sorting).
また、テーブルが一杯になつた場合、上書きするデー
タは最も古くテーブルに登録したデータ、或いは参照さ
れたのが最も古いデータとしても良い。When the table is full, the data to be overwritten may be the oldest data registered in the table or the oldest data referred to.
また、実施例の第3図におけるステツプS6で、等しい
か否かを判断する手段として、入力された色指定命令の
R,G,Bデータと変換テーブル6aの参照R,G,Bとが完全に一
致したときに等しいと判断したが、或る程度の幅を持た
せるようにしても良い。In step S6 in FIG. 3 of the embodiment, as means for judging whether or not they are equal, the input color designation command
When the R, G, B data and the reference R, G, B in the conversion table 6a completely match, it is determined that they are equal, but they may have a certain width.
例えば、入力した色指定命令によるデータをR,G,Bと
し、RGB−YMCK変換テーブル6aの参照データR′,G′,
B′としたとき、 R′−εr≦R≦R′+εr G′−εg≦G≦G′+εg B′−εb≦B≦B′+εb が満足するとき等しいと判断し、1つでも満足しないと
き等しくないと判断しても良い。For example, the data according to the input color designation command is R, G, B, and the reference data R ′, G ′,
When B ′, R′−ε r ≦ R ≦ R ′ + ε r G′−ε g ≦ G ≦ G ′ + ε g B′−ε b ≦ B ≦ B ′ + ε b is determined to be equal. If one is not satisfied, it may be determined that they are not equal.
また、RGB−YMCK変換は、本実施例のように色指定命
令コマンドによらず、RGBイメージデータの各ピクセル
単位に行なつても構わない。また、YMCKプリンタではな
く、YMCプリンタであつても構わないのは勿論である。Further, the RGB-YMCK conversion may be performed for each pixel of the RGB image data without depending on the color designation command command as in the present embodiment. It goes without saying that a YMC printer may be used instead of the YMCK printer.
また、本実施例においては、入力色成分データをR,G,
Bにしたが、例えばY,I,Qデータ、L*,a*,b*データ等
を入力することにより、Y,M,C,Kデータを得るような構
成にしても良い。In the present embodiment, the input color component data is R, G,
Although B is used, a configuration may be used in which Y, M, C, and K data is obtained by inputting, for example, Y, I, and Q data, L * , a * , and b * data.
[発明の効果] 以上説明したように本発明によれば、出力色成分を生
成するのに演算と変換テーブルの両方を用いることによ
り、実色空間の変換テーブルを用いずに、全体像を得る
までの演算回数を少なくできる。よって高速に変換処理
を行うことができるようになる。[Effects of the Invention] As described above, according to the present invention, by using both an operation and a conversion table to generate an output color component, an entire image is obtained without using a conversion table in a real color space. The number of operations up to can be reduced. Therefore, the conversion process can be performed at high speed.
第1図は本実施例の印刷装置のブロツク構成図、 第2図は本実施例のRGB−YMCK変換テーブルの概要図、 第3図は本実施例の色指定に係るフローチヤート、 第4図はRGB−YMCK変換ルーチンのアルゴリズムを示す
図である。 図中、1……印刷装置本体、2……ホストコンピユー
タ、3……CPU、4……受信バツフア、5……ROM、6…
…RAM、6a……RGB−YMCK変換テーブル、7……出力部で
ある。FIG. 1 is a block diagram of the printing apparatus of this embodiment, FIG. 2 is a schematic diagram of an RGB-YMCK conversion table of this embodiment, FIG. 3 is a flowchart relating to color designation of this embodiment, and FIG. FIG. 8 is a diagram showing an algorithm of an RGB-YMCK conversion routine. In the figure, 1 ... printing apparatus main body, 2 ... host computer, 3 ... CPU, 4 ... reception buffer, 5 ... ROM, 6 ...
... RAM, 6a ... RGB-YMCK conversion table, 7 ... output unit.
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) B41J 2/525 B41J 5/30 H04N 1/46 H04N 1/60 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) B41J 2/525 B41J 5/30 H04N 1/46 H04N 1/60
Claims (7)
形式のデータに変換して画像を記録する画像記録装置に
おいて、 入力色成分形式のデータを演算によって記録用色成分形
式のデータに変換する第1の変換手段と、 入力色成分形式のデータと当該入力色成分形式のデータ
に対応する記録用色成分形式のデータが対応付けて記録
されている変換テーブルを利用し、入力色成分形式のデ
ータから記録色成分形式のデータに変換する第2の変換
手段と、 入力された色成分形式のデータが、前記変換テーブルに
記憶されているか否かを判別する判別手段と、 該判別手段によって記憶されていると判別した場合に
は、前記第2の変換手段を用いて、対応する記録用色成
分形式データを得、 前記判別手段によって記憶されていないと判別された場
合、前記第1の変換手段でもって対応する記録用色成分
形式のデータに変換させると共に、その入力された色成
分形式のデータと変換して得られたデータとを対応づけ
て前記変換テーブルに記録し、前記変換テーブルを構築
する制御手段と を備えることを特徴とする画像記録装置。An image recording apparatus for converting an input color component format data into a recording color component format data and recording an image, wherein the input color component format data is converted into a recording color component format data by calculation. A first conversion means for converting, and a conversion table in which input color component format data and recording color component format data corresponding to the input color component format data are recorded in association with each other, Second conversion means for converting data of the color component format into data of the recording color component format; determination means for determining whether or not the input data of the color component format is stored in the conversion table; If it is determined that the data is stored, the corresponding color component format data is obtained using the second conversion means. And converting the input color component format data and the converted data into the corresponding color component format data by the first conversion means, and recording the converted color component format data in the conversion table. And a control unit for constructing the conversion table.
タに変換して出力するカラー画像処理方法であって、 入力カラーデータを演算によって出力カラーデータに変
換する第1の変換工程と、 入力カラーデータと当該入力カラーデータに対応する出
力カラーデータとが対応付けて記録されている変換テー
ブルを用いて入力カラーデータから出力カラーデータに
変換する第2の変換工程と、 入力されたカラーデータが、前記変換テーブルに記憶さ
れているか否かを判別する判別工程と、 該判別工程によって記憶されていると判別した場合に
は、前記第2の変換工程に従って、対応する出力カラー
データを生成し、 前記判別工程によって記憶されていないと判別された場
合、前記第1の変換工程によって対応する出力カラーデ
ータを生成すると共に、その入力カラーデータと生成さ
れた出力カラーデータを対応付けて前記変換テーブルに
記憶し、前記変換テーブルを構築する制御工程と を備えることを特徴とするカラー画像処理方法。2. A color image processing method for converting input color data into output color data and outputting the output color data, comprising: a first conversion step of converting input color data into output color data by operation; A second conversion step of converting input color data into output color data using a conversion table in which output color data corresponding to input color data is recorded in association with the input color data; A discriminating step of discriminating whether or not the image data is stored in the memory. If it is determined that the data is stored in the discriminating step, corresponding output color data is generated in accordance with the second conversion step. If it is determined that the output color data is not stored, corresponding output color data is generated by the first conversion step. Both the color image processing method characterized by comprising a control step of associating the output color data generated with the input color data stored in the conversion table, constructing the conversion table.
出力カラーデータの組みのN個分記憶することができ、
前記第1の色変換工程で得られた出力カラーデータを生
成した場合であって、既にN個分のデータが記憶されて
いる場合には上書きして記憶することを特徴とする請求
項第2項に記載のカラー画像処理方法。3. The conversion table can store N sets of sets of input color data and output color data.
3. The method according to claim 2, wherein the output color data obtained in the first color conversion step is overwritten and stored when N pieces of data have already been stored. The color image processing method according to the above item.
の中で最も古く記憶されたデータとすることを特徴とす
る請求項第3項に記載のカラー画像処理方法。4. The color image processing method according to claim 3, wherein the object to be overwritten is the oldest stored data in the conversion table.
の中で最も古く参照されたデータとすることを特徴とす
る請求項第3項に記載のカラー画像処理方法。5. The color image processing method according to claim 3, wherein the object to be overwritten is data that is referred to the oldest in the conversion table.
ングする工程を備えることを特徴とする請求項第2項に
記載のカラー画像処理方法。6. The color image processing method according to claim 2, further comprising the step of sorting the contents of said conversion table.
て所定の許容範囲を持たせ、前記変換テーブルに記憶さ
れている中で当該許容範囲内にあるデータが存在するか
否かを判別することを特徴とする請求項第2項に記載の
カラー画像処理方法。7. The determining step includes providing a predetermined allowable range for the input color data, and determining whether there is data within the allowable range stored in the conversion table. 3. The color image processing method according to claim 2, wherein:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2161388A JP3034278B2 (en) | 1990-06-21 | 1990-06-21 | Image recording apparatus and color image processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2161388A JP3034278B2 (en) | 1990-06-21 | 1990-06-21 | Image recording apparatus and color image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0452159A JPH0452159A (en) | 1992-02-20 |
| JP3034278B2 true JP3034278B2 (en) | 2000-04-17 |
Family
ID=15734145
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2161388A Expired - Lifetime JP3034278B2 (en) | 1990-06-21 | 1990-06-21 | Image recording apparatus and color image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3034278B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3689620B2 (en) | 2000-08-31 | 2005-08-31 | キヤノン株式会社 | Image processing apparatus and method |
| US6956580B2 (en) * | 2001-05-29 | 2005-10-18 | Kodak Polychrome Graphics, Llc | Color display device with integrated color matching processor |
-
1990
- 1990-06-21 JP JP2161388A patent/JP3034278B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0452159A (en) | 1992-02-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH1155536A (en) | Color conversion table, color conversion device, color signal generation device, color conversion table creation method, color conversion method, and color gamut determination method | |
| US7525701B2 (en) | Color image processing method, color image processing apparatus, color image processing program, and record medium | |
| US5729664A (en) | Image processing apparatus and method for converting an input color image signal from one color space to another | |
| US20070118707A1 (en) | Command interpretation using rewritable command registers | |
| US6348978B1 (en) | Method and system for image format conversion | |
| JP3262492B2 (en) | Color printer control device, color printer control method, and storage medium storing control program | |
| US6088124A (en) | Color image processing apparatus and method | |
| US5552905A (en) | Image processing apparatus which selects a type of color processing for color image data based on a characteristic of the color image data | |
| US5915075A (en) | Image processing apparatus for converting input color chart data into color data for an output device | |
| JP3034278B2 (en) | Image recording apparatus and color image processing method | |
| EP0686945A2 (en) | Image processing apparatus and method | |
| US6550382B1 (en) | Printing system, printing method and recording medium | |
| EP1093630A2 (en) | Color data inversion and reconversion | |
| US5521711A (en) | Information processing apparatus, and method of reversing color therein | |
| US5295239A (en) | Printing color control in color printing apparatus | |
| US5309259A (en) | Color outputting method and apparatus for correcting color ratios of small-sized characters | |
| US6029234A (en) | Output synchronization method and apparatus in a memory system utilizing small buffer size | |
| JPH04107163A (en) | recording device | |
| JPH08307712A (en) | Image processing apparatus and method | |
| JP2831784B2 (en) | Color image processing method | |
| JPH04331165A (en) | Color image processing method and color image processor thereof | |
| JP3209372B2 (en) | Image processing method and apparatus | |
| JPH0880642A (en) | Image processing device | |
| JPH0725072A (en) | Color printer device | |
| US20050002047A1 (en) | Printer and control method for printer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080218 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090218 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100218 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100218 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110218 Year of fee payment: 11 |
|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110218 Year of fee payment: 11 |