JPH1155535A - Image processing device - Google Patents

Image processing device

Info

Publication number
JPH1155535A
JPH1155535A JP9206649A JP20664997A JPH1155535A JP H1155535 A JPH1155535 A JP H1155535A JP 9206649 A JP9206649 A JP 9206649A JP 20664997 A JP20664997 A JP 20664997A JP H1155535 A JPH1155535 A JP H1155535A
Authority
JP
Japan
Prior art keywords
color
data
output
color difference
image processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9206649A
Other languages
Japanese (ja)
Other versions
JPH1155535A5 (en
JP3996980B2 (en
Inventor
Toru Ikeda
徹 池田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP20664997A priority Critical patent/JP3996980B2/en
Publication of JPH1155535A publication Critical patent/JPH1155535A/en
Publication of JPH1155535A5 publication Critical patent/JPH1155535A5/en
Application granted granted Critical
Publication of JP3996980B2 publication Critical patent/JP3996980B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

(57)【要約】 【課題】 多値入力画像データに基づいて出力装置で用
いる2値の画像データを求める画像処理装置において、
処理負荷を増すことなく出力画像全体の色再現性を向上
させる。 【解決手段】 画素毎に入出力部201を介して入力す
る多値入力画像データに対し、色差加算回路203によ
り、直前処理画素および前ラインの所定位置関係の画素
で2値化により生じた色差がそれぞれ所定の割合で加算
され、アドレス生成回路205は、この色差を加算した
入力画像データに基づいてアドレスを達成し、これによ
り、入力画像データと2値データに基づく測定データと
の色空間上の距離が最小となる対応関係の出力色テーブ
ル2112から、記録部でプリントに用いる2値データ
が読み出される。
(57) [Summary] An image processing apparatus for obtaining binary image data used in an output device based on multi-valued input image data,
The color reproducibility of the entire output image is improved without increasing the processing load. SOLUTION: A multi-level input image data input for each pixel via an input / output unit 201 is subjected to a color difference addition circuit 203 to generate a color difference generated by binarization in a pixel having a predetermined positional relationship between a immediately preceding processed pixel and a previous line. Are added at predetermined ratios, and the address generation circuit 205 achieves an address based on the input image data to which the color difference has been added, whereby the color space between the input image data and the measurement data based on the binary data is obtained. The binary data used for printing in the recording unit is read from the output color table 2112 of the correspondence that minimizes the distance of.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は画像処理装置に関
し、詳しくはカラー画像出力装置における色再現のため
の色修正処理を行う画像処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly, to an image processing apparatus for performing a color correction process for color reproduction in a color image output device.

【0002】[0002]

【従来の技術】カラー画像を出力する出力装置として
は、2値の原色の組合せによって色を表現するものが多
く、カラープリンタやカラーディスプレイ等がその具体
例として知られている。このような2値出力装置のため
の画像処理を行う画像処理装置では、まず、入力カラー
画像データに対し、これらデータ等がつくる入力色空間
と出力装置が有する出力色空間との変換関係を調整する
ための色修正が施され、これにより、入力カラー画像デ
ータはイエロー、マゼンタ、シアンないしはこれらにブ
ラックを加えた各原色成分あるいはレッド、グリーン、
ブルーの各原色成分に分解される。そして、この色修正
によって得られた色成分データに対し疑似階調表現処理
を行うことにより得られた2値画像を出力するのが一般
的である。
2. Description of the Related Art Many output devices for outputting a color image express colors by a combination of binary primary colors, and color printers and color displays are known as specific examples. In an image processing apparatus that performs image processing for such a binary output device, first, for input color image data, a conversion relationship between an input color space created by these data and the like and an output color space of the output device is adjusted. The input color image data is converted into yellow, magenta, cyan, or primary color components obtained by adding black to these, or red, green,
Decomposed into each blue primary color component. In general, a binary image obtained by performing a pseudo gradation expression process on the color component data obtained by the color correction is output.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
た従来の画像処理では画素単位に出力する色を求めるこ
とから、出力できる色の組合せが少ない上述のような2
値出力装置では実際に出力される色と入力画像データに
おいて対応する色との誤差が大きくなるという問題があ
る。
However, in the above-described conventional image processing, since the colors to be output are obtained in pixel units, the above-described two-color output is limited in the number of combinations of colors that can be output.
The value output device has a problem that an error between a color actually output and a color corresponding to the input image data increases.

【0004】また、2値出力装置においては、疑似階調
表現処理を色成分ごとに独立して行うため、最終的に出
力される色が予測される色と一致しないことがあるとい
う問題もある。
Further, in the binary output device, since the pseudo gradation expression processing is performed independently for each color component, there is a problem that the finally output color may not match the predicted color. .

【0005】これに対し、出力装置で再現可能な色の組
合せのうち、入力画像データにおける色に最も近い色が
対応づけられるよう、色空間における距離を上記組合せ
の色毎に計算して距離が最小となる色の組合せを選択す
るとともに、上記対応づけられた色の差を他の画素に拡
散する構成が考慮できる。
On the other hand, the distance in the color space is calculated for each color of the combination so that the color closest to the color in the input image data is associated with the color combination reproducible by the output device. In addition to selecting the minimum color combination, a configuration in which the associated color difference is diffused to other pixels can be considered.

【0006】しかし、この場合には、画像処理装置にお
いて上記色の組合せを選択するための演算の負荷が比較
的大きくなるという問題がある。
However, in this case, there is a problem that the load of calculation for selecting the color combination in the image processing apparatus becomes relatively large.

【0007】本発明は、上記問題を解消するためになさ
れたものであり、その目的とするところは、処理負荷を
増すことなく、出力画像全体における色再現性を向上さ
せることが可能な画像処理装置を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to provide an image processing apparatus capable of improving the color reproducibility of the entire output image without increasing the processing load. It is to provide a device.

【0008】[0008]

【課題を解決するための手段】そのために本発明では、
多値カラーデータを、出力装置で表現可能な色の2値デ
ータに変換する画像処理装置であって、多値カラーデー
タに色差データを加算することにより、色差補正データ
を得る色差加算手段と、該色差加算手段によって得られ
た色差補正データに基づき、当該色差補正データが示す
色に対応する、前記出力装置で表現可能な色の2値デー
タをテーブルを用いて出力するデータ出力手段と、前記
データ出力手段が出力する2値データに対応した多値の
色点データと当該2値データの出力に係る色差補正デー
タとの色差を演算する色差演算手段と、該色差演算手段
が演算した色差を、前記色差加算手段が用いる色差デー
タとして格納する格納手段と、を有することを特徴とす
る。
According to the present invention, there is provided:
An image processing apparatus that converts multi-valued color data into binary data of a color that can be expressed by an output device, wherein a color difference adding unit that obtains color difference correction data by adding color difference data to the multi-valued color data; A data output unit that outputs, using a table, binary data of a color that can be represented by the output device and that corresponds to a color indicated by the color difference correction data, based on the color difference correction data obtained by the color difference addition unit; A color difference calculating means for calculating a color difference between multi-valued color point data corresponding to the binary data output from the data output means and color difference correction data relating to the output of the binary data; and a color difference calculated by the color difference calculating means. And storage means for storing as color difference data used by the color difference adding means.

【0009】以上の構成によれば、多値の入力カラーデ
ータに他の画素の2値化で生じた色差を加算した色差補
正データを得るとともに、この色差補正データに基づい
てテーブルを参照し2値データを出力するので、画像処
理において2値データを得るための特に多値カラーデー
タと2値データの対応を求める演算を省略でき、また、
出力画像全体に色差が拡散される。
According to the above arrangement, the color difference correction data is obtained by adding the color difference generated by the binarization of the other pixels to the multi-valued input color data, and the table is referred to based on the color difference correction data. Since the output of the value data, it is possible to omit the operation for obtaining the binary data in the image processing, in particular, the operation for obtaining the correspondence between the multi-valued color data and the binary data.
Color differences are diffused throughout the output image.

【0010】[0010]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態を詳細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0011】図1は本発明の一実施形態に係るファクシ
ミリ装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing the configuration of a facsimile apparatus according to one embodiment of the present invention.

【0012】図において、CPU1は、ROM6に記憶
されているプログラムに従って、後述する本実施形態の
画像処理を実行するとともに、本ファクシミリ装置が有
する種々の機能を制御する。
In FIG. 1, a CPU 1 executes image processing of the present embodiment, which will be described later, according to a program stored in a ROM 6 and controls various functions of the facsimile apparatus.

【0013】本実施形態のファクシミリ装置が有してい
る機能としては、次のようなものがある。
The functions of the facsimile apparatus of this embodiment include the following.

【0014】カラーコピー機としての機能 CCDを備えた読取り部4において原稿画像を読取り、
R、G、B各色のアナログデータを出力する。なお、読
取り部4は、CCDの代わりに密着型イメージセンサ
(CS)を備えてもよく、また出力される読取りデータ
はC、M、Yの各色に係るものであってもよい。
Function as a Color Copier A document image is read by a reading unit 4 equipped with a CCD.
Outputs analog data of each color of R, G, B. The reading unit 4 may include a contact image sensor (CS) instead of the CCD, and the read data to be output may be for C, M, and Y colors.

【0015】画像処理部5は、読取り部4から送られて
きたアナログデータをデジタルデータに、例えば各色1
画素8ビット、幅256階調を表現可能なディジタルデ
ータに変換し、RAM7に格納する。さらに、このデー
タを2値化処理部2に書き込むことにより、後述される
本実施形態の画像処理が行われ、これによって得られる
2値カラーデータを読み出してRAM7に格納する。そ
して、この格納されるデータが、記録部11で所定量の
記録を行うのに必要な量に達した時点で、記録部11に
よる記録動作が実行される。
The image processing unit 5 converts the analog data sent from the reading unit 4 into digital data, for example, for each color.
The data is converted into digital data capable of expressing 8 bits of pixels and 256 gradations and stored in the RAM 7. Further, by writing this data into the binarization processing unit 2, image processing of the present embodiment described later is performed, and the binary color data obtained thereby is read and stored in the RAM. Then, when the stored data reaches an amount necessary for the recording unit 11 to perform a predetermined amount of recording, the recording operation by the recording unit 11 is performed.

【0016】モノクロコピー機としての機能 上記と同様にして読取り部4から出力されたアナログデ
ータを画像処理部5において、白、黒に2値化しRAM
7に格納する。その後、上記と同様にして記録部11に
よってモノクロ記録が行われる。
Function as Monochrome Copier In the same manner as described above, the analog data output from the reading unit 4 is binarized into white and black in the image processing unit 5 and stored in the RAM.
7 is stored. Thereafter, monochrome recording is performed by the recording unit 11 in the same manner as described above.

【0017】スキャナとしての機能 上述したように、読取り部4および画像処理部5を介し
て得られたデジタルデータはRAM7に格納され、その
後、PC I/F部12を開始パーソナルコンピュータ
(以下、PCともいう)に受け渡す。
Function as Scanner As described above, digital data obtained via the reading unit 4 and the image processing unit 5 is stored in the RAM 7, and thereafter, the PC I / F unit 12 is started, and a personal computer (hereinafter, referred to as PC) is started. Handover).

【0018】プリンタとしての機能 PC I/F部12を介してPCから入力されたデータ
に基づき、記録部11により出力される。
Function as Printer The recording section 11 outputs the data based on the data input from the PC via the PC I / F section 12.

【0019】ファクシミリ送信の機能 上述のように読取り部4および画像処理部5を介してR
AM7に格納されたデータを符号化し、モデム15によ
って変調した後、NCU16を経由し回線に出力する。
Function of facsimile transmission As described above, R is transmitted via the reading unit 4 and the image processing unit 5.
The data stored in the AM 7 is encoded, modulated by the modem 15, and then output to the line via the NCU 16.

【0020】また、PCによるデータのファクシミリ送
信は、PC I/F部12を介して転送された送信画像
を符号化しモデム15により変調したデータを、PC
I/F部12を介して転送された送信先情報に基づきN
CU16を制御し回線に出力する。
In the facsimile transmission of data by the PC, the transmission image transferred via the PC I / F unit 12 is encoded, and the data modulated by the modem 15 is converted into the PC data.
N based on the destination information transferred via the I / F unit 12
It controls the CU 16 and outputs it to the line.

【0021】ファクシミリ受信の機能 回線を介して入力されたアナログ波形をNCU16およ
びモデム15を介して復調し、これをさらに復号化した
データをRAM77に格納する。そして、ROM6に記
憶されているプログラムに応じて記録部11によって出
力し、またはPCによって格納データが読取られる。
Function of Facsimile Reception The analog waveform input via the line is demodulated through the NCU 16 and the modem 15, and the decoded data is stored in the RAM 77. Then, the data is output by the recording unit 11 according to the program stored in the ROM 6, or the stored data is read by the PC.

【0022】さらに、図1に示す構成において、不揮発
性RAM8はバッテリーによってバックアップされたS
RAMであり、装置固有の電話番号、ユーザー略称等の
データや通信結果などを記憶することができ、また、操
作部9は、モノクロコピー時やカラーコピー時における
コピーキー、送信、受信などのスタートキー、送信画像
におけるファイン、スタンダードの画質の別やコピーに
おける解像度などのモードを指定するモードキー、動作
を停止させるストップキー、ワンタッチ登録するための
登録キーなどから構成されている。そして、CPU1は
これらキーの押下状態を検出し、その状態に応じて各部
を制御する。
Further, in the configuration shown in FIG. 1, the nonvolatile RAM 8 stores the S
The RAM is used to store data such as a telephone number unique to the apparatus and a user abbreviation, communication results, and the like. The operation unit 9 is used to start copy keys for monochrome copying and color copying, and to start transmission and reception. The keys include a mode key for designating a mode such as a key, a fine mode for a transmitted image, a different image quality of a standard, a resolution mode for a copy, a stop key for stopping an operation, a registration key for one-touch registration, and the like. Then, the CPU 1 detects the pressed state of these keys, and controls each unit according to the detected state.

【0023】表示部10は、ドットマトリックスタイプ
の液晶表示部(LCD)とLCDドライバを備え、CP
U1の制御に基づいて各種表示を行う。記録部11は、
DMAコントローラ、バブルジェット方式のインクジェ
ットヘッド、汎用ICなどによって構成され、CPU1
の制御により、RAM7に格納されている記録データを
読み出し、ハードコピーとしてプリント出力することが
できる。駆動部14は、上述した読取り部4および記録
部11のそれぞれ読取り動作や記録動作において給,排
紙ローラを駆動するためのステッピングモータ、このモ
ータの駆動力を伝達するためのギヤ、さらにモータを制
御するためのドライバ回路などから構成されている。
The display unit 10 includes a dot matrix type liquid crystal display (LCD) and an LCD driver.
Various displays are performed based on the control of U1. The recording unit 11
The CPU 1 includes a DMA controller, a bubble jet type inkjet head, a general-purpose IC, and the like.
With this control, the recording data stored in the RAM 7 can be read and printed out as a hard copy. The driving unit 14 includes a stepping motor for driving the feeding and discharging rollers in the reading operation and the recording operation of the reading unit 4 and the recording unit 11 described above, a gear for transmitting the driving force of the motor, and a motor. It is composed of a driver circuit for controlling and the like.

【0024】モデム15は、V.34、V.32、V.
32bis、V.17、V.29、V.27ter、
V.23、V.21(H、L)モデムと、これらのモデ
ムに接続されたクロック発生回路などから構成され、C
PU1の制御に基づいてRAM7に格納されている送信
データを変調し、NCU16を介して加入者回線に出力
するものである。さらに、モデム11は、加入者回線か
らのアナログ信号をNCU16を介して導入しこれを復
調して2値化したデータをRAM7に格納する。NCU
16は、直流の捕捉回路、交流の補足回路、Ci/極反
検出回路、2線4線変換回路を備え、加入者回線をモデ
ム15に接続するものである。また、ハンドセット18
もNCU16に接続可能である。
The modem 15 has a 34, V.I. 32, V.I.
32 bis, V.I. 17, V.I. 29, V.I. 27ter,
V. 23, V.I. 21 (H, L) modems and a clock generation circuit connected to these modems.
The transmission data stored in the RAM 7 is modulated based on the control of the PU 1 and output to the subscriber line via the NCU 16. Furthermore, the modem 11 introduces an analog signal from the subscriber line via the NCU 16, demodulates the analog signal, and stores it in the RAM 7 in binary form. NCU
Reference numeral 16 is provided with a DC capturing circuit, an AC supplementary circuit, a Ci / pole detection circuit, and a two-wire / four-wire conversion circuit, and connects a subscriber line to the modem 15. In addition, handset 18
Can also be connected to the NCU 16.

【0025】センサ部13は、記録紙幅センサ、記録紙
有無センサ、原稿幅センサおよび、原稿有無センサから
構成され、CPU1の制御により、原稿および記録紙の
状態検知を行う。
The sensor section 13 includes a recording paper width sensor, a recording paper presence / absence sensor, a document width sensor, and a document presence / absence sensor, and detects the state of the document and the recording paper under the control of the CPU 1.

【0026】図2は、図1に示した2値化処理部2の詳
細を示す図であり、本発明の画像処理装置の主要な実施
形態を示すものである。2値化処理部は、後述のことか
ら明らかなように、各8ビットの入力画像データR、
G、Bについて、従来のように色変化によって得られる
各Y、M、C、Kの色成分データに対して疑似階調処理
を行って2値化するものではなく、入力画像データに対
して直接記録部11で用いる2値のY、M、C、Kに対
応づける処理を行う。
FIG. 2 is a diagram showing details of the binarization processing section 2 shown in FIG. 1, and shows a main embodiment of the image processing apparatus of the present invention. As will be apparent from the description below, the binarization processing unit performs the input image data R of 8 bits each,
For G and B, pseudo-gradation processing is not performed on each of the Y, M, C, and K color component data obtained by color change as in the related art, and binarization is performed. A process of associating with binary Y, M, C, and K used in the direct recording unit 11 is performed.

【0027】図2に示す構成において、201はデータ
バスおよび制御データバスを介してデータを入出力する
ための入出力部であり、バスとのデータ受渡しのための
レジスタ部、および本2値化処理部2の処理タイミング
を管理するためのシステムカウンタ部を有する。
In the configuration shown in FIG. 2, reference numeral 201 denotes an input / output unit for inputting / outputting data via a data bus and a control data bus; a register unit for transferring data to / from the bus; It has a system counter unit for managing the processing timing of the processing unit 2.

【0028】202は入出力部201を介して入力画像
データをCMYに変換するlogテーブル、203は上
記log変換されて入力する入力画像データCMYに、
後述の色差データを加える色差加算回路、204は色差
が加算された入力画像データをCMY毎に分離し保持す
るセレクタ/バッファ回路である。このCMY毎の入力
画像データは、アドレス生成回路205に入力し、後述
の出力色テーブルのアドレスを生成するとともに、減算
回路209で入力画像データと出力画像データとの色差
を演算するためバッファ206に一時的に格納される。
Reference numeral 202 denotes a log table for converting input image data into CMY via the input / output unit 201, and reference numeral 203 denotes input image data CMY to be input after being log-converted.
A color difference addition circuit 204 for adding color difference data, which will be described later, is a selector / buffer circuit 204 for separating and holding input image data to which color differences have been added for each CMY. The input image data for each CMY is input to an address generation circuit 205 to generate an address of an output color table to be described later, and to a buffer 206 for calculating a color difference between the input image data and the output image data by a subtraction circuit 209. Stored temporarily.

【0029】208は、減算回路209で得られた色差
を各画素に分配する色差分配回路である。すなわち、色
差は、後述のように、次画素の入力画像データに加算す
るため前述の色差加算回路203へ送られるとともに、
次のラインの画素に拡散するため色差換算回路207に
送られる。この色差換算回路207は、後述のように次
のラインのそれぞれの画素に対応する画素ごとに色差の
和をとり前ライン色差メモリ2110に保管するもので
ある。
A color difference distribution circuit 208 distributes the color difference obtained by the subtraction circuit 209 to each pixel. That is, the color difference is sent to the above-described color difference addition circuit 203 for addition to the input image data of the next pixel, as described later,
It is sent to the color difference conversion circuit 207 to diffuse to the pixels of the next line. The color difference conversion circuit 207 calculates the sum of the color differences for each pixel corresponding to each pixel of the next line and stores it in the previous line color difference memory 2110 as described later.

【0030】210はRAM211の領域を管理するR
AM I/F部であり、RAMのアドレスおよび書き込
み・読み出しのタイミングを制御するRAM管理部21
00を有している。
An R 210 manages an area of the RAM 211.
RAM management unit 21 which is an AM I / F unit and controls RAM addresses and write / read timings
00.

【0031】RAM211は2値化処理用RAMであ
り、RAM7と共用してもよい。このRAM211は、
前ラインの色差を格納する上述の前ライン色差格納メモ
リ2110、出力色が記録部11において実際に出力さ
れる色いずれに相当するかを対応づけた出力色点テーブ
ル2111、および入力画像データが示す入力色から色
空間上最も近い出力点を示す出力色テーブルを有してい
る。
The RAM 211 is a RAM for binarization processing, and may be shared with the RAM 7. This RAM 211 is
The previous line color difference storage memory 2110 that stores the color difference of the previous line, the output color point table 2111 that associates the output color with the color actually output in the recording unit 11, and the input image data indicate It has an output color table indicating the output point closest to the input color in the color space.

【0032】図3は、主に上記2値化処理部2による2
値化処理、すなわち記録部11で用いるプリント用デー
タを得るための処理を示すフローチャートである。
FIG. 3 is a diagram mainly showing the binary processing performed by the binarization processing unit 2.
6 is a flowchart illustrating a binarization process, that is, a process for obtaining print data used by a recording unit.

【0033】以下、図に示すフローチャートに従い、各
ステップ毎にその処理について説明する。
Hereinafter, the processing will be described for each step in accordance with the flowchart shown in FIG.

【0034】ステップS101:カラーコピーやカラー
プリントが実行されると、前ライン色差格納メモリ21
10および2値化処理部内の各バッファをクリアする。
Step S101: When color copy or color print is executed, the previous line color difference storage memory 21
Each buffer in the 10 and binarization processing section is cleared.

【0035】ステップS102:処理対象となっている
入力画素を示すカウンタPIXを0に初期化する。
Step S102: A counter PIX indicating an input pixel to be processed is initialized to zero.

【0036】ステップS103:RAM7に格納されて
いるデータを読み出し、2値化処理部のR、G、Bそれ
ぞれに割り振られたレジスタ2010にデータを書き込
む。
Step S103: The data stored in the RAM 7 is read, and the data is written to the registers 2010 allocated to the R, G, and B of the binarization processing unit.

【0037】なお、データの形式は、表色系としてRG
B以外にCMYや他の色でもよいことは勿論である。
The data format is RG as a color system.
It goes without saying that CMY and other colors may be used in addition to B.

【0038】また、CPUにワード(16ビット)単位
の転送モードがあれば、例えば各色についてアドレスを
2個づつ割当て、R0、R1、G0、G1、B0、B1
と割り振られたアドレスに256階調(8ビット)のデ
ータを書き込むことによりアクセス回数を減らすことが
できる。
If the CPU has a transfer mode in units of words (16 bits), for example, two addresses are assigned to each color, and R0, R1, G0, G1, B0, B1
The number of accesses can be reduced by writing data of 256 gradations (8 bits) to the address assigned with.

【0039】2値化処理部の処理を管理する方法として
は、クロック数をカウントする方法を用いることができ
る。CPUよりデータが書き込まれるのをトリガーとし
てシステムカウンタ2011がそのカウントをスタート
し、クロック数で処理タイミングを制御することにより
最適な処理回路を設計することができる。
As a method of managing the processing of the binarization processing section, a method of counting the number of clocks can be used. The system counter 2011 starts counting when data is written from the CPU as a trigger, and the processing timing is controlled by the number of clocks, whereby an optimal processing circuit can be designed.

【0040】なお、和、差、積、商等の回路や共通に使
える回路、例えば加算回路、色差積算回路、減算回路、
色差分配回路、log変換テーブルはビッ幅が大きくな
れば回路規模が著しく増大する。そして、これらの回路
をシステムカウンタ2011により複数のバッファを管
理しながら時分割で使用することにより、小さな規模の
回路を実現することが可能となる。これは、出力色が多
値化するほど効果が大きい。また、同期回路となるため
タイミング検証等の容易になる。
Note that circuits such as sum, difference, product, and quotient and circuits that can be used in common, such as an addition circuit, a color difference integration circuit, a subtraction circuit,
The circuit scale of the color difference distribution circuit and the log conversion table significantly increases as the bit width increases. By using these circuits in a time-division manner while managing a plurality of buffers by the system counter 2011, it is possible to realize a small-scale circuit. This is more effective as the output color is multi-valued. In addition, since it is a synchronous circuit, timing verification and the like become easy.

【0041】ステップS103の処理で、アドレスR、
G、Bの順にデータを書き込む場合、アドレスBのデー
タが書き込まれるのをトリガーとしてシステムカウンタ
2011はカウントをスタートし、1クロックごとに計
数する。このカウンタ2011は、ソフトクリアによっ
てまたは次のRのデータが書き込まれた時にクリアされ
る。
In step S103, the address R,
When data is written in the order of G and B, the system counter 2011 starts counting with the writing of the data at the address B as a trigger, and counts every clock. This counter 2011 is cleared by soft clear or when the next R data is written.

【0042】ステップS104、S105:システムカ
ウンタ2011のカウント値が0の時、レジスタRに書
き込まれた入力データを読み出す。因に、RJEイスタ
G、Bのデータはカウンタ値がそれぞれ10、20のと
きに読み出される(ステップS114、S124)。
Steps S104 and S105: When the count value of the system counter 2011 is 0, the input data written in the register R is read. Incidentally, the data of the RJE registers G and B are read when the counter values are 10 and 20, respectively (steps S114 and S124).

【0043】ステップS106:上記読み出された入力
データはlog変換テーブル202によりシアンデータ
Ciに変換される。
Step S106: The read input data is converted into cyan data Ci by the log conversion table 202.

【0044】なお、入力データがC、M、Yで表わされ
るものである場合はlogテーブルによる変換を行わな
くてもよいことは勿論である。また、logテーブルは
RAM7に構成され、あるいは、読み取り系などの各種
の補正テーブルと合わせて構成されてもよい。
When the input data is represented by C, M, Y, it is needless to say that the conversion by the log table need not be performed. Further, the log table may be configured in the RAM 7 or may be configured together with various correction tables such as a reading system.

【0045】ステップS107:本処理画素に拡散され
る前ライン色差データCLを格納メモリ2110から読
み出す。この色差データについては後述する。
Step S107: The preceding line color difference data CL diffused to the present processing pixel is read from the storage memory 2110. This color difference data will be described later.

【0046】ステップS108:上記で得た入力データ
Ciに、上述のように、前ライン色差データ格納メモリ
2110から図7に示す画素の対応で読み出した色差デ
ータCLと水平方向の前の画素、すなわち直前の処理画
素のエラーCPを加算回路203によって加算する。
Step S108: As described above, the input data Ci obtained as described above and the color difference data CL read out from the previous line color difference data storage memory 2110 in correspondence with the pixels shown in FIG. The error CP of the immediately preceding processing pixel is added by the adding circuit 203.

【0047】ステップS109:上記加算によって得ら
れたCi0 +CL+CPをバッファ204にデータIL
PCとしてラッチする。
Step S109: Ci 0 + CL + CP obtained by the above addition is stored in buffer 204 as data IL.
Latch as PC.

【0048】ILPCは、符号付き11ビット幅(−5
12〜+512)であり、オーバフローしないように5
12を越えるものは512として丸め込むことで加算回
路を画像に影響が出ない範囲で小規模に実現することが
できる。
ILPC has a signed 11-bit width (−5).
12 to +512), and 5 so as not to overflow.
If the number exceeds 12, the addition circuit is rounded down to 512, so that the addition circuit can be realized on a small scale as long as the image is not affected.

【0049】ステップ114〜118、124〜12
8:上述したステップS104〜S109と同様の処理
をG、Bについても行い、ILPM、ILPYがバッフ
ァ204にラッチされる。このようにして、入力画像デ
ータに前ラインの所定画素および直前の処理画素それぞ
れにおける色差を加算したデータを得ることができる。
Steps 114-118, 124-12
8: The same processing as in steps S104 to S109 described above is performed for G and B, and ILPM and ILPY are latched in the buffer 204. In this way, it is possible to obtain data obtained by adding the color difference between the predetermined pixel on the previous line and the immediately preceding processed pixel to the input image data.

【0050】ステップS110、S111:前記処理に
より算出された入力データ(ILPC、ILPM、IL
PY)に基づいてアドレスILPC′、ILRM′、I
LPY′を作成し、これらアドレスにより図8に示す出
力色テーブル2112を参照して色空間上でこの入力デ
ータに最も近い出力色データ(BO、MO、YO)を読
み出し、レジスタに格納する。
Steps S110, S111: The input data (ILPC, ILPM, IL
PY), the addresses ILPC ', ILRM', I
LPY 'is created, and output color data (BO, MO, YO) closest to the input data in the color space is read out with reference to the output color table 2112 shown in FIG. 8 based on these addresses, and stored in the register.

【0051】この出力色テーブル2112は次のように
構成されている。
The output color table 2112 is configured as follows.

【0052】色空間において、入力データが示す色(I
LPC、ILPM、ILPY)と記録部で実際に記録し
て得られる測定データが示す色(CO、MO、YO)と
の距離
In the color space, the color (I
LPC, ILPM, ILPY) and the color (CO, MO, YO) indicated by the measurement data actually recorded by the recording unit

【0053】[0053]

【数1】L2 =(ILPC−CO)2 +(ILPM−M
O)2+(ILPY−YO)2 の演算において、YO、MO、COの値を図4の出力色
点テーブルに示すような範囲で変更し、L2 の値が最も
小さくなるときのCO、MO、YOの組を求め、図4に
示す関係でこのCO、MO、YOの組に対応するそれぞ
れ2値の(K、C、M、Y)を、入力データ(ILP
C、ILPM、ILPY)に対応する出力色とする関係
がテーブル化される。なお、出力色における2値データ
KはC、M、Yが全て“1”のときは、これらを“0”
とするとともにKを“1”として得られるものである。
L 2 = (ILPC-CO) 2 + (ILPM-M
O) 2 + (in the calculation of ILPY-YO) 2, YO, MO, the values of CO changed in the range shown in the output color point table in FIG. 4, CO when the value of L 2 is minimized, A set of MO and YO is obtained, and binary (K, C, M, and Y) corresponding to the set of CO, MO, and YO are input data (ILP) in the relationship shown in FIG.
C, ILPM, ILPY) are tabulated as output colors. The binary data K for the output color is set to “0” when C, M, and Y are all “1”.
And K is obtained as "1".

【0054】以上のように、各画素について出力色デー
タを求めるために上記の計算を行うにはソフトおよびハ
ードの負荷が著しく多く処理に長い時間が必要となるた
め、本発明では、予め上記の計算結果をテーブルに持つ
ことにより、色差を考慮した入力データ(ILPC、I
LPM、ILPY)に基づき、色空間上で、この入力デ
ータに最も近い出力色データ(K、C、M、Y)を高速
に求めることが可能となる。
As described above, performing the above calculation to obtain output color data for each pixel requires a considerable amount of software and hardware load and requires a long time for processing. By having the calculation results in a table, input data (ILPC, IPC,
Based on LPM, ILPY), output color data (K, C, M, Y) closest to the input data in the color space can be obtained at high speed.

【0055】また、テーブルをメモリにおいて構成し、
出力装置およびインクおよびトナーなど記録方法、紙な
どの記録媒体に対応する最適な複数のテーブルをもつこ
とにより最適な出力色データ(K、C、M、Y)を高速
に求めることが可能となる。
Further, the table is configured in a memory,
It is possible to obtain optimum output color data (K, C, M, Y) at high speed by having a plurality of tables suitable for an output device, a recording method such as ink and toner, and a recording medium such as paper. .

【0056】さらに、テーブルを変更することにより、
複数のドットや大きさの異なるドットにより画像を表現
することが可能となる。また、複数のテーブルはメイン
およびPCの制御により変更可能とすることによりハー
ドの変更なく最適のテーブルを選択できる。
Further, by changing the table,
An image can be represented by a plurality of dots or dots having different sizes. Further, by making the plurality of tables changeable under the control of the main and the PC, the optimum table can be selected without changing the hardware.

【0057】出力色テーブルに関して、入力データ(I
LPC、ILPM、ILPY)は、上述のように符号付
きでそれぞれ11ビットであるが、対応する出力色デー
タは(K、C、M、Y)の合計4ビットであるため、多
くの入力データに対して16通りの出力色データが対応
することになる。そこで、本実施形態では、入力データ
の上位複数ビットを取り出すことにより、より小さなテ
ーブルで出力色データを求めるようにする。この場合、
入力データの成分が負となった時には0とすることによ
り、小さなテーブルで適正な出力色データが得られる。
Regarding the output color table, the input data (I
LPC, ILPM, ILPY) are each 11 bits with a sign as described above, but the corresponding output color data is a total of 4 bits of (K, C, M, Y). On the other hand, 16 kinds of output color data correspond. Therefore, in the present embodiment, the output color data is obtained in a smaller table by extracting the upper multiple bits of the input data. in this case,
By setting the value to 0 when the component of the input data becomes negative, appropriate output color data can be obtained with a small table.

【0058】具体的には、ステップS110で図8に示
すように入力データ(ILPC、ILPM、ILPY)
の符号を取った各上位3ビットを結合し9ビットのアド
レスデータ(ILPC′、ILPM′、ILPY′)と
すれば512個のテーブルとすることができる。
More specifically, in step S110, the input data (ILPC, ILPM, ILPY) as shown in FIG.
By combining the upper 3 bits obtained with the sign of (1) and forming 9-bit address data (ILPC ', ILPM', ILPY '), 512 tables can be obtained.

【0059】ステップS111、S112、A113:
テーブル2112より読み出した出力色データ(K、
C、M、Y)をレジスタ2010に格納し、その後この
データは読み出されて1ライン分のメモリに格納され
る。ここで、C、M、Y、Kそれぞれにレジスタを割り
振りデータバスのサイズに対応した8画素分を格納した
時点で読み出しを行うことにより、CPUから2値化処
理部2へのアクセス数を減らすことができ、また記録部
のデータ処理方式が主走査のライン単位の場合はソフト
によるデータ並べ換えの負担が軽減される。
Steps S111, S112, A113:
The output color data (K,
C, M, Y) is stored in the register 2010, and then this data is read out and stored in the memory for one line. Here, the number of accesses from the CPU to the binarization processing unit 2 is reduced by allocating registers to C, M, Y, and K, respectively, and performing reading when eight pixels corresponding to the size of the data bus are stored. When the data processing method of the recording unit is a line unit of main scanning, the burden of data rearrangement by software is reduced.

【0060】なお、CPUにワード(16ビット)単位
の転送モードがあれば、C、M、Y、Kそれぞれにレジ
スタを2個づつ割り振り16画素分を格納した時点でC
PUから読み出すようにしてもよい。
If the CPU has a transfer mode in units of words (16 bits), two registers are allocated to C, M, Y, and K, respectively, and when 16 pixels are stored, C, M, Y, and K are stored.
You may make it read from PU.

【0061】以上により1ライン分のデータの2値化が
行われ、処理画素の垂直位置Yがインクリメントされて
ステップS102からの処理が繰り返され、また、改ペ
ージにより、ステップS101からの処理が繰り返され
る。
As described above, the data for one line is binarized, the vertical position Y of the processing pixel is incremented, and the processing from step S102 is repeated, and the processing from step S101 is repeated due to a page break. It is.

【0062】次に、以上示した2値化処理の際に生じる
色差の拡散プロセスについて図5に示すフローチャート
を図5に従い詳細に説明する。
Next, the process of diffusing the color difference generated in the above-described binarization processing will be described in detail with reference to the flowchart shown in FIG.

【0063】ステップS201:処理対象となる入力画
素の垂直位置Yを0に初期化する。
Step S201: The vertical position Y of the input pixel to be processed is initialized to zero.

【0064】ステップS202:処理対象となる入力画
素の水平位置Xを0に初期化する。
Step S202: The horizontal position X of the input pixel to be processed is initialized to zero.

【0065】ステップS203:上述のように出力色テ
ーブル2112から得られた出力色データ(C、M、
Y、K)より図4の出力色点テーブル2111を参照し
多値データ(CO、MO、YO)を得る。ここで、デー
タ(CO、MO、YO)は前述したように(C、M、
Y、K)に基づいてプリントした場合の各色の濃度を示
すものである。
Step S203: The output color data (C, M, and C) obtained from the output color table 2112 as described above.
Y, K), the multi-value data (CO, MO, YO) is obtained by referring to the output color point table 2111 of FIG. Here, the data (CO, MO, YO) is (C, M,
(Y, K) indicates the density of each color when printing is performed.

【0066】ステップS204:処理による画素(X、
Y)の色差E(Ce、Me、Ye)を入力データ(C
i、Mi、Yi)と出力色点データ(Co、Mo、Y
o)より減算回路209において次のように求める。
Step S204: Pixel (X,
Y) of the color difference E (Ce, Me, Ye)
i, Mi, Yi) and output color point data (Co, Mo, Y)
In the subtraction circuit 209, the following is obtained from o).

【0067】[0067]

【数2】Ce=Co−Ci、Me=Mo−Mi、Ye=
Yo−Yi ステップS205:色差分配回路208において、上記
で求めた色差Eを近傍の入力画素に所定の割合で加え
る。具体的には、図6に示すように、処理対象画素の右
および次ライン画素中の斜左下、下、斜右下の4画素に
対し色差を拡散するものであり、右側への色差拡散は、
色差加算回路203へ色差データを送ることにより、ま
た、次ラインの上記3つの画素への拡散は前ライン色差
メモリに色差データを送ることによって達成される。す
なわち、処理画素(x、y)の色差は (x−1、y+1)に2/16 (x、y+1) に5/16 (x+1、y+1)に1/16 (x+1、y) に8/16(1/2) の割合で分配する。なお、16で割った時の余りを(x
+1、y)に分配することにより色差の情報を失うこと
なく反映させることもできる。
## EQU2 ## Ce = Co-Ci, Me = Mo-Mi, Ye =
Yo-Yi Step S205: In the color difference distribution circuit 208, the color difference E obtained above is added to the neighboring input pixels at a predetermined ratio. Specifically, as shown in FIG. 6, the color difference is diffused to the lower right, lower, and lower right diagonal pixels in the right and next line pixels of the processing target pixel. ,
The diffusion of the next line to the above three pixels is achieved by sending the color difference data to the color difference addition circuit 203, and by sending the color difference data to the previous line color difference memory. That is, the color difference of the processing pixel (x, y) is 2/16 (x, y + 1) in (x-1, y + 1) and 5/16 (x + 1, y + 1) in 1/16 (x + 1, y). Distribute at a rate of (1/2). The remainder when divided by 16 is (x
+1 and y) can be reflected without losing the color difference information.

【0068】これにより、加算回路203での加算は次
のように行われる。
Thus, the addition in the adding circuit 203 is performed as follows.

【0069】 Yi(X+1、Y)→Yi(X+1、Y)+(Ye/2) Mi(X+1、Y)→Mi(X+1、Y)+(Me/2) Yi(X+1、Y)→Ci(X+1、Y)+(Ce/2) ステップ206:一方、以上のことから、処理画素
(x、y)に拡散される色差は、 E(x、y)→1/16E(x−1、y−1)+5/1
5E(x、y−1)+2/16E(x+1、y−1)+
8/16E(x−1、y)+ であり、このうち前ライン((y−1)のデータEは前
ライン色差メモリ2110に格納されている。この場
合、前述したように色差積算回路207は前ラインの各
画素の組についての色差の和
Yi (X + 1, Y) → Yi (X + 1, Y) + (Ye / 2) Mi (X + 1, Y) → Mi (X + 1, Y) + (Me / 2) Yi (X + 1, Y) → Ci ( X + 1, Y) + (Ce / 2) Step 206: On the other hand, from the above, the color difference diffused to the processing pixel (x, y) is: E (x, y) → 1 / 16E (x−1, y) -1) +5/1
5E (x, y-1) + 2 / 16E (x + 1, y-1) +
8 / 16E (x-1, y) +, of which the data E of the previous line ((y-1)) is stored in the previous line color difference memory 2110. In this case, the color difference integration circuit 207 as described above. Is the sum of the color differences for each pixel set on the previous line

【0070】[0070]

【数3】CL=1/16E(x−1、y−1)+5/1
6E(x、y−1)+2/16E(x+1、y−1) を格納することになる。これにより、RAMを有効に活
用することもできる。
## EQU3 ## CL = 1 / 16E (x-1, y-1) +5/1
6E (x, y-1) + 2 / 16E (x + 1, y-1). Thus, the RAM can be effectively used.

【0071】また、RAMチップを活用し、アクセス回
数を減少させるために格納する色差が8ビット(−12
8〜128)までに収まるよう、図6に示す分配を定め
ればよい。また、分配する領域をさらに広げることによ
り、より忠実な色再現が得られる。さらに、色差は未処
理画素に分配するため、処理方向を左右交互とすれば色
差が特定の方向のみに反映されることなく、モアレなど
の発生を抑制する効果がある。
The color difference to be stored is 8 bits (−12 bits) in order to reduce the number of accesses by utilizing the RAM chip.
The distribution shown in FIG. 6 may be determined so as to fall within the range of 8 to 128). Further, by further expanding the area to be distributed, more faithful color reproduction can be obtained. Further, since the color difference is distributed to unprocessed pixels, if the processing direction is alternately left and right, the color difference is not reflected only in a specific direction, and there is an effect of suppressing the occurrence of moiré and the like.

【0072】以降、ステップS207で水平位置カウン
タXを更新し、ステップS208で1ライン分の処理が
終わったか否かの判定する。1ライン分が終了したとき
は、ステップS209で垂直位置カウンタYを更新し、
ステップS210で全ラインの処理が終わったか否かを
判定する。
Thereafter, the horizontal position counter X is updated in step S207, and it is determined in step S208 whether the processing for one line has been completed. When one line has been completed, the vertical position counter Y is updated in step S209,
In step S210, it is determined whether or not the processing for all lines has been completed.

【0073】出力色点テーブル2111の決定 1.本実施形態装置の入出力系の色データの相関をと
る。
Determination of Output Color Point Table 2111 The color data of the input / output system of the apparatus of this embodiment is correlated.

【0074】カラーの読み取りと出力を備えた本装置の
ようなシステム設計において入出力色の再現性向上は比
較的重要な事項の一つである。
In a system design such as the present apparatus having color reading and output, improvement of reproducibility of input / output colors is one of relatively important matters.

【0075】図4に示すCMYKインクの組合せによ
る8通りの色でパッチをプリントする。この時、各パッ
チについて、使用するインクの種類、紙の種類に応じた
ドットのデューティーでプリントしたパッチを用意す
る。すなわち、プリントではインクのにじみ、ドットの
重なり、紙の内部散乱などによりインクの打込み量とそ
れによって形成されるドットの濃度との間では必ずしも
線型の関係が得られるとは限らない。このため、パッチ
の読取り結果がテーブルの内容に正確に反映されるよ
う、非線型の関係となる、例えば100%デューディー
の「ベタ」プリントよりも線型関係を維持できる50%
の例えば市松模様のドットパターンとする。
The patches are printed in eight colors by the combinations of the CMYK inks shown in FIG. At this time, for each patch, a patch printed with a dot duty corresponding to the type of ink to be used and the type of paper is prepared. That is, in printing, a linear relationship is not always obtained between the amount of ink applied and the density of dots formed by ink bleeding, overlapping dots, and internal scattering of paper. For this reason, a non-linear relationship, such as 50% that can maintain a linear relationship rather than a 100% duty-free "solid" print, so that the patch reading result is accurately reflected in the contents of the table.
For example, a checkered dot pattern is used.

【0076】カラーパッチを読取り部で読取り、lo
g変換することによりYO、MO、COのデータを得
る。これを上記各色の組合せについて求め、出力の測定
色に対応する入力色を対応づける。
The color patch is read by the reading unit, and lo
The data of YO, MO, and CO is obtained by performing g conversion. This is determined for each combination of the above colors, and the input color corresponding to the output measurement color is associated.

【0077】以上により、使用するインクとその組合せ
の種類の入力色に忠実な出力色が得られる。
As described above, it is possible to obtain an output color that is faithful to the input color of the type of ink used and the combination thereof.

【0078】本実施形態の色差拡散法(CD法)は全て
の入力色を最も近い使用するインクとその組合せの種類
の入力色に置き換え、その差分を周辺の画素に拡散する
ため、この対応の取り方がCD法を用いたカラーコピー
の色再現性を高める基本となる。
According to the color difference diffusion method (CD method) of the present embodiment, all input colors are replaced with the input colors of the nearest used ink and the combination thereof, and the difference is diffused to peripheral pixels. How to take is the basis for improving the color reproducibility of a color copy using the CD method.

【0079】2.出力色点テーブルの決定 入力色と出力色の差を周辺の画素に拡散するため、出力
色が本処理系の中で入力色とどれだけ異なるのかを求め
なければならない。ここで、1で求めた出力色と入力色
の対応をテーブルとし、メモリ等に置くことにより差分
を求めることができる。
2. Determination of Output Color Point Table In order to diffuse the difference between the input color and the output color to peripheral pixels, it is necessary to determine how much the output color differs from the input color in the present processing system. Here, the difference between the output color and the input color obtained in step 1 can be obtained as a table and stored in a memory or the like.

【0080】上記1で求めた対応は使用するインクの種
類、紙の種類に応じて異なるため、サポートするイン
ク、紙などに応じてテーブルを変更すると高い色再現性
が得られる。RAMに複数の種類を持たず、コピー毎、
または設定変更毎にROM等からRAMにテーブルをコ
ピーしてもよい。もちろん、平均的なテーブルを持つこ
とにより、持つテーブルを簡素化してもよい。
Since the correspondence obtained in the above 1 is different depending on the type of ink used and the type of paper, if the table is changed according to the supported ink and paper, high color reproducibility can be obtained. RAM does not have multiple types, each copy,
Alternatively, the table may be copied from the ROM or the like to the RAM every time the setting is changed. Of course, having an average table may simplify the table to have.

【0081】また、選択されている紙などの記録媒体と
トナーやインクにおける最適化を下記の手順で行うこと
も可能である。
It is also possible to optimize the selected recording medium such as paper and toner and ink in the following procedure.

【0082】コピーに使用する紙に各色について少なく
とも1種類以上のデューティーでカラーパッチをプリン
トする。これは、上述のように紙の種類によってインク
打ち込み量と読取り濃度との線型関係を実現できるデュ
ーティーの範囲が異なることがあるからであり、これに
より最適な線型関係を有するパッチを用いることができ
るからである。このパッチを入力装置で読取ることによ
り出力色点テーブルを作成する。
A color patch is printed on paper used for copying with at least one type of duty for each color. This is because the range of the duty that can achieve the linear relationship between the ink ejection amount and the reading density may vary depending on the type of paper as described above, and thus a patch having the optimal linear relationship can be used. Because. An output color point table is created by reading this patch with the input device.

【0083】なお、上述したように、カラーパッチの読
取り結果において、紙とインクの組合せによっては、イ
ンクの量、にじみ、吸収量等が異なるため意図する濃度
が得られない場合がある。また、インクの組合せによっ
ては、インクの打ち込みに見合った濃度が得られない場
合がある。このような出力点を検出した場合はその出力
点を除いて他の部分の出力点を用いてテーブルを作成し
てもよい。
As described above, depending on the combination of paper and ink, the intended density may not be obtained due to differences in the amount of ink, bleeding, and absorption depending on the combination of paper and ink. Further, depending on the combination of inks, there may be a case where a density suitable for ink ejection cannot be obtained. When such an output point is detected, a table may be created using output points of other parts except for the output point.

【0084】3.出力パターンテーブル 入力色は上記の方法で決定された出力色テーブルにより
最も近い出力色に変換される。
3. Output Pattern Table The input color is converted to the closest output color by the output color table determined by the above method.

【0085】すなわち、入力が256階調の場合、25
6×256×256個のテーブルが必要となるが、25
6×256×256の空間座標の中の点は16通りの出
力パターンの組合せに対応する多対1対応である。よっ
て、この対応が崩れない範囲で入力色のデータは切り捨
てることができる。これを利用することにより、本実施
形態で示したように上位数ビットの必要なビットのみ用
い小規模なテーブルで最も近い出力色に変換することが
できる。
That is, when the input is 256 gradations, 25
6 × 256 × 256 tables are required, but 25
The points in the 6 × 256 × 256 spatial coordinates have a many-to-one correspondence corresponding to 16 combinations of output patterns. Therefore, the input color data can be discarded as long as this correspondence is not lost. By using this, as shown in the present embodiment, it is possible to convert to the closest output color with a small table using only the necessary bits of the upper few bits.

【0086】なお、このテーブルも前記出力色点テーブ
ルの変更に伴い変更され、RAMに書き込まれる。
This table is also changed in accordance with the change of the output color point table, and is written in the RAM.

【0087】また、出力色テーブルを出力色点テーブル
より計算し少なくとも画像処理までにテーブルを作成す
るようにすればROM上等のメモリに出力色テーブルを
持つ必要がなくなる。
If the output color table is calculated from the output color point table and the table is created at least before image processing, it is not necessary to have the output color table in a memory such as a ROM.

【0088】<他の実施形態>本発明は複数の機器(た
とえばホストコンピュータ、インタフェース機器、リー
ダ、プリンタ等)から構成されるシステムに適用しても
一つの機器(例えば複写機、ファクシミリ装置)からな
る装置に適用してもよい。
<Other Embodiments> Even if the present invention is applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), it is possible to use a single device (for example, a copying machine, a facsimile machine) May be applied to such a device.

【0089】また、上述した実施形態の機能を実現する
ように各種のデバイスを動作させるように該各種デバイ
スと接続された装置あるいはシステム内のコンピュータ
に、上記実施形態機能を実現するためのソフトウェアの
プログラムコードを供給し、そのシステムあるいは装置
のコンピュータ(CPUあるいはMPU)を格納された
プログラムに従って上記各種デバイスを動作させること
によって実施したものも本発明の範疇に含まれる。
Further, software for realizing the functions of the above-described embodiments is installed in an apparatus or a computer in a system connected to the various devices so as to operate the various devices so as to realize the functions of the above-described embodiments. The present invention also includes a program that is provided by supplying a program code and causing a computer (CPU or MPU) of the system or apparatus to operate the various devices according to a stored program.

【0090】また、この場合、前記ソフトウェアのプロ
グラムコード自体が前述した実施形態の機能を実現する
ことになり、そのプログラムコード自体、およびそのプ
ログラムコードをコンピュータに供給するための手段、
例えばかかるプログラムコードを格納した記憶媒体は本
発明を構成する。
Further, in this case, the program code itself of the software realizes the function of the above-described embodiment, and the program code itself and means for supplying the program code to the computer,
For example, a storage medium storing such a program code constitutes the present invention.

【0091】かかるプログラムコードを格納する記憶媒
体としては例えばフロッピーディスク、ハードディス
ク、光ディスク、光磁気ディスク、CD−ROM、磁気
テープ、不揮発性のメモリカード、ROM等を用いるこ
とができる。
As a storage medium for storing such a program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, magnetic tape, nonvolatile memory card, ROM or the like can be used.

【0092】またコンピュータが供給されたプログラム
コードを実行することにより、上述の実施形態の機能が
実現されるだけではなく、そのプログラムコードがコン
ピュータにおいて可動しているOS(オペレーティング
システム)、あるいは他のアプリケーションソフト等と
共同して上述の実施形態の機能が実現される場合にもか
かるプログラムコードは本発明の実施形態に含まれるこ
とは言うまでもない。
When the computer executes the supplied program code, not only the functions of the above-described embodiment are realized, but also the program code can be executed by an OS (Operating System) running on the computer or another operating system. Needless to say, even when the functions of the above-described embodiments are realized in cooperation with application software and the like, such program codes are included in the embodiments of the present invention.

【0093】さらに、供給されたプログラムコードが、
コンピュータの機能拡張ボードやコンピュータに接続さ
れた機能拡張ユニットに備わるメモリに格納された後そ
のプログラムコードの指示に基づいてその機能拡張ボー
ドや機能格納ユニットに備わるCPU等が実際の処理の
一部または全部を行い、その処理によって前述した実施
形態の機能が実現される場合も本発明に含まれることは
言うまでもない。
Further, the supplied program code is
After being stored in the memory provided in the function expansion board of the computer or the function expansion unit connected to the computer, the CPU or the like provided in the function expansion board or the function storage unit may perform a part of the actual processing or It goes without saying that the present invention also includes a case where the functions of the above-described embodiments are realized by performing the entire process.

【0094】[0094]

【発明の効果】以上説明したように、多値の入力カラー
データに他の画素の2値化で生じた色差を加算した色差
補正データを得るとともに、この色差補正データに基づ
いてテーブルを参照し2値データを出力するので、画像
処理において2値データを得るための特に多値カラーデ
ータと2値データの対応を求める演算を省略でき、ま
た、出力画像全体に色差が拡散される。
As described above, the color difference correction data is obtained by adding the color difference generated by the binarization of other pixels to the multi-valued input color data, and the table is referred to based on the color difference correction data. Since the binary data is output, it is possible to omit the operation for obtaining the binary data in the image processing, in particular, the calculation for finding the correspondence between the multi-valued color data and the binary data, and the color difference is diffused throughout the output image.

【0095】この結果、出力色を得るために必要な処理
負荷を極めて小さくでき、また、2値化による画質の品
位低下を防止できる。
As a result, the processing load required for obtaining the output color can be extremely reduced, and the image quality can be prevented from deteriorating due to binarization.

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

【図1】本発明の一実施形態に係るファクシミリ装置の
構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a facsimile apparatus according to an embodiment of the present invention.

【図2】図1に示した2値化処理部の詳細な構成を示す
ブロック図である。
FIG. 2 is a block diagram illustrating a detailed configuration of a binarization processing unit illustrated in FIG. 1;

【図3】図1および図2に示す装置における2値化処理
の手順を示すフローチャートである。
FIG. 3 is a flowchart showing a procedure of a binarization process in the apparatus shown in FIGS. 1 and 2;

【図4】上記2値化処理における色差拡散に用いる出力
色点テーブルの内容を示す模式図である。
FIG. 4 is a schematic diagram showing the contents of an output color point table used for color difference diffusion in the binarization processing.

【図5】上記色差拡散処理の手順を示すフローチャート
である。
FIG. 5 is a flowchart illustrating a procedure of the color difference diffusion processing.

【図6】上記色差拡散における拡散先の画素を示す図で
ある。
FIG. 6 is a diagram showing pixels to be diffused in the color difference diffusion.

【図7】上記色差拡散における拡散元の画素を示す図で
ある。
FIG. 7 is a diagram showing a diffusion source pixel in the color difference diffusion.

【図8】上記2値化処理で用いる出力色テーブルの内容
を示す模式図である。
FIG. 8 is a schematic diagram showing contents of an output color table used in the binarization processing.

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

1 CPU 4 読取り部 5 画像処理部 6 ROM 7 RAM 8 不揮発性RAM 9 操作部 10 表示部 11 記録部 14 駆動部 15 モデム 16 CPU 18 電話機(ハンドセット) 201 入出力部 202 log(対数)回路 203 色差加算回路 204 セレクタ/バッファ 205 アドレス生成回路 206 バッファ 207 色差積算回路 208 色差分配回路 209 減算回路 211 RAM部 2110 前ライン色差メモリ 2111 出力色点テーブル 2112 出力色テーブル DESCRIPTION OF SYMBOLS 1 CPU 4 Reading part 5 Image processing part 6 ROM 7 RAM 8 Non-volatile RAM 9 Operation part 10 Display part 11 Recording part 14 Drive part 15 Modem 16 CPU 18 Telephone (handset) 201 Input / output part 202 log (logarithmic) circuit 203 Color difference Addition circuit 204 Selector / buffer 205 Address generation circuit 206 Buffer 207 Color difference integration circuit 208 Color difference distribution circuit 209 Subtraction circuit 211 RAM unit 2110 Front line color difference memory 2111 Output color point table 2112 Output color table

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 多値カラーデータを、出力装置で表現可
能な色の2値データに変換する画像処理装置であって、 多値カラーデータに色差データを加算することにより、
色差補正データを得る色差加算手段と、 該色差加算手段によって得られた色差補正データに基づ
き、当該色差補正データが示す色に対応する、前記出力
装置で表現可能な色の2値データをテーブルを用いて出
力するデータ出力手段と、 前記データ出力手段が出力する2値データに対応した多
値の色点データと当該2値データの出力に係る色差補正
データとの色差を演算する色差演算手段と、 該色差演算手段が演算した色差を、前記色差加算手段が
用いる色差データとして格納する格納手段と、 を有することを特徴とする画像処理装置。
An image processing apparatus for converting multi-valued color data into binary data of a color that can be expressed by an output device, wherein the color-difference data is added to the multi-valued color data.
A color difference addition unit that obtains color difference correction data; and a table that stores, based on the color difference correction data obtained by the color difference addition unit, binary data of a color that can be expressed by the output device and that corresponds to the color indicated by the color difference correction data. Data output means for outputting using the color data; and color difference calculation means for calculating a color difference between multi-valued color point data corresponding to the binary data output by the data output means and color difference correction data relating to the output of the binary data. An image processing apparatus comprising: a storage unit configured to store the color difference calculated by the color difference calculation unit as color difference data used by the color difference addition unit.
【請求項2】 前記データ出力手段は、前記色差加算手
段によって得られた色差補正データの有効ビットのみに
基づいて前記テーブルを用いることを特徴とする請求項
1に記載の画像処理装置。
2. The image processing apparatus according to claim 1, wherein the data output unit uses the table based only on valid bits of the color difference correction data obtained by the color difference addition unit.
【請求項3】 複数の記録媒体から出力装置で用いる記
録媒体を選択する記録媒体選択手段をさらに有し、 前記データ出力手段は、前記記録媒体選択手段が選択し
た記録媒体に対応したテーブルを、前記複数の記録媒体
に対応した複数のテーブルの中から選択して用いること
を特徴とする請求項1または2に記載の画像処理装置。
3. A recording medium selecting unit for selecting a recording medium to be used in an output device from a plurality of recording media, wherein the data output unit stores a table corresponding to the recording medium selected by the recording medium selecting unit. 3. The image processing apparatus according to claim 1, wherein the image processing apparatus is selected from a plurality of tables corresponding to the plurality of recording media and used.
【請求項4】 前記色差演算手段は、前記2値データに
対応した多値の色点を定めた出力点テーブルを有し、該
出力点テーブルは、出力装置において前記2値データに
基づいてカラーパッチを出力し、該出力されたカラーパ
ッチの測色データに基づいて作成されることを特徴とす
る請求項1ないし3のいずれかに記載の画像処理装置。
4. The color difference calculation means has an output point table that defines multi-valued color points corresponding to the binary data, and the output point table is used in an output device based on the binary data. 4. The image processing apparatus according to claim 1, wherein a patch is output, and the patch is created based on colorimetric data of the output color patch.
【請求項5】 少なくとも画像処理開始までに前記テー
ブルを作成することを特徴とする請求項1ないし4のい
ずれかに記載の画像処理装置。
5. The image processing apparatus according to claim 1, wherein the table is created at least before the start of the image processing.
【請求項6】 前記少なくとも画像処理開始までに作成
されたテーブルをメモリに格納することを特徴とする請
求項5に記載の画像処理装置。
6. The image processing apparatus according to claim 5, wherein the table created at least until the start of the image processing is stored in a memory.
【請求項7】 前記測色データについて、当該色空間内
で所定距離以内の複数の多値出力点について、インクの
打込み量の多いものは前記多値の色点として使用しない
ことを特徴とする請求項4に記載の画像処理装置。
7. A method according to claim 1, wherein a plurality of multi-valued output points within a predetermined distance in the color space are not used as the multi-valued color points if a large amount of ink is applied. The image processing device according to claim 4.
【請求項8】 出力装置で用いられる記録媒体にカラー
パッチを出力し、当該記録媒体上のカラーパッチの測色
データに基づき、前記出力点テーブルの内容を変更する
ことを特徴とする請求項4に記載の画像処理装置。
8. The method according to claim 4, wherein the color patch is output to a recording medium used in the output device, and the contents of the output point table are changed based on the colorimetric data of the color patch on the recording medium. An image processing apparatus according to claim 1.
【請求項9】 前記色差演算手段は、当該処理に係る画
素に対応する周辺画素における色差の少なくとも一部の
和を計算し色差としてメモリに格納することを特徴とす
る請求項1ないし8のいずれかに記載の画像処理装置。
9. The color difference calculation means according to claim 1, wherein the sum of at least a part of the color differences in peripheral pixels corresponding to the pixel involved in the processing is calculated and stored in a memory as the color difference. An image processing device according to any one of the above.
【請求項10】 カラーパッチを形成するインクドット
それぞれの測色データについて、各ドットの測色出力が
相互に干渉しないカラーパッチを用いることを特徴とす
る請求項4に記載の画像処理装置。
10. The image processing apparatus according to claim 4, wherein for colorimetric data of each ink dot forming a color patch, a color patch whose colorimetric output of each dot does not interfere with each other is used.
【請求項11】 カラーパッチの測色データのうち、測
色する濃度に関して有効な測色データのみを用いること
を特徴とする請求項4に記載の画像処理装置。
11. The image processing apparatus according to claim 4, wherein, of the colorimetric data of the color patches, only colorimetric data valid for the density to be measured is used.
【請求項12】 多値カラーデータを、出力装置で表現
可能な色の2値データに変換する画像処理プログラムで
あって、 多値カラーデータに色差データを加算することにより、
色差補正データを得、 該得られた色差補正データに基づき、当該色差補正デー
タが示す色に対応する、前記出力装置で表現可能な色の
2値データをテーブルを用いて出力し、 該出力する2値データに対応した多値の色点データと当
該2値データの出力に係る色差補正データとの色差を演
算し、 該演算した色差を、前記色差データを加算するステップ
で用いる色差データとして格納する、 ステップを有したプログラムを記憶したことを特徴とす
る記憶媒体。
12. An image processing program for converting multi-valued color data into binary data of a color that can be expressed by an output device, wherein the color-difference data is added to the multi-valued color data.
The color difference correction data is obtained, and based on the obtained color difference correction data, binary data of a color that can be represented by the output device and that corresponds to the color indicated by the color difference correction data is output using a table, and is output. The color difference between multi-valued color point data corresponding to the binary data and the color difference correction data relating to the output of the binary data is calculated, and the calculated color difference is stored as the color difference data used in the step of adding the color difference data. A storage medium characterized by storing a program having steps.
JP20664997A 1997-07-31 1997-07-31 Image processing device Expired - Fee Related JP3996980B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20664997A JP3996980B2 (en) 1997-07-31 1997-07-31 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20664997A JP3996980B2 (en) 1997-07-31 1997-07-31 Image processing device

Publications (3)

Publication Number Publication Date
JPH1155535A true JPH1155535A (en) 1999-02-26
JPH1155535A5 JPH1155535A5 (en) 2005-05-26
JP3996980B2 JP3996980B2 (en) 2007-10-24

Family

ID=16526855

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20664997A Expired - Fee Related JP3996980B2 (en) 1997-07-31 1997-07-31 Image processing device

Country Status (1)

Country Link
JP (1) JP3996980B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7362472B2 (en) * 2004-03-05 2008-04-22 Eastman Kodak Company Color error diffusion
US7411707B2 (en) 2002-07-08 2008-08-12 Canon Kabushiki Kaisha Image processing apparatus and method thereof
US7639399B2 (en) 2003-01-30 2009-12-29 Canon Kabushiki Kaisha Image processing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7411707B2 (en) 2002-07-08 2008-08-12 Canon Kabushiki Kaisha Image processing apparatus and method thereof
US7639399B2 (en) 2003-01-30 2009-12-29 Canon Kabushiki Kaisha Image processing method
US7362472B2 (en) * 2004-03-05 2008-04-22 Eastman Kodak Company Color error diffusion

Also Published As

Publication number Publication date
JP3996980B2 (en) 2007-10-24

Similar Documents

Publication Publication Date Title
US6421145B1 (en) Image processing apparatus and method using image information and additional information or an additional pattern added thereto or superposed thereon
US8040569B2 (en) Image processing apparatus and method for contrast processing and intermediate color removal
JP3962642B2 (en) Image processing apparatus and method
CN101409768A (en) Image processor and image processing method
JPH05300362A (en) Image processing device
JPH1110918A (en) Method for correcting color correlation of error diffusion halftone
JP2004235993A (en) Image processing method
JPH04294682A (en) Image processing device
US8072645B2 (en) Image processing method and apparatus executing color correction based on color domain specified by user and determined relative to image source
JP3996980B2 (en) Image processing device
US6930808B2 (en) Image processing apparatus and method
JP3313739B2 (en) Image processing apparatus and method
JP2003051940A (en) Image processing method and apparatus
JP3715946B2 (en) Image processing apparatus and method
KR100503055B1 (en) Halfting processing method for preventing the overlapping 3 color ink
JP2004023643A (en) Image processing optimization system
JP2001285633A (en) Image processing device and storage medium
JP3015304B2 (en) Image processing apparatus and method
JPH05219351A (en) Picture processor and its processing method
JP3313779B2 (en) Image processing apparatus and image processing method
JP3992280B2 (en) Image forming apparatus
JPH04302271A (en) Image processing device
JPH0951425A (en) Image processing apparatus and method
JP2004023642A (en) Image processing optimization system
KR19990059669A (en) How to print while preventing color ink from overlapping

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040802

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040802

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20061003

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20061006

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061205

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070427

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070626

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20070731

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070806

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

Free format text: PAYMENT UNTIL: 20100810

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100810

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110810

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120810

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120810

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130810

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees