JPH0884227A - Color image processor - Google Patents

Color image processor

Info

Publication number
JPH0884227A
JPH0884227A JP6242063A JP24206394A JPH0884227A JP H0884227 A JPH0884227 A JP H0884227A JP 6242063 A JP6242063 A JP 6242063A JP 24206394 A JP24206394 A JP 24206394A JP H0884227 A JPH0884227 A JP H0884227A
Authority
JP
Japan
Prior art keywords
color
correction
area
data
circuit
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.)
Pending
Application number
JP6242063A
Other languages
Japanese (ja)
Inventor
Masayuki Hirose
正幸 広瀬
Kiyohisa Sugishima
喜代久 杉島
Toshio Hayashi
俊男 林
Eiichi Motoyama
栄一 本山
Fumio Mikami
文夫 三上
Shigeo Yamagata
茂雄 山形
Koji Arai
康治 新井
Takashi Nonaka
隆 野中
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 JP6242063A priority Critical patent/JPH0884227A/en
Publication of JPH0884227A publication Critical patent/JPH0884227A/en
Pending legal-status Critical Current

Links

Landscapes

  • Color Image Communication Systems (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

(57)【要約】 【目的】 マーカー編集処理に使用する繋ぎメモリの容
量を小さくすることができるカラー画像処理装置を提供
する。 【構成】 読出しセンサ1により読み出されたデータと
ノイズ除去回路の出力データとを合成して複数の出力コ
ードを決定し、補正回路61はその出力コードを条件に
応じて補正する。該補正回路61に接続された繋ぎメモ
リ62は、1バンド前の補正情報を記憶し、その記憶す
るライン情報数をライン方向の画素数より少なくする。
(57) [Summary] [Object] To provide a color image processing apparatus capable of reducing the capacity of a connection memory used for marker editing processing. [Structure] The data read by the read sensor 1 and the output data of the noise removal circuit are combined to determine a plurality of output codes, and the correction circuit 61 corrects the output codes according to conditions. The connection memory 62 connected to the correction circuit 61 stores the correction information of the previous band and reduces the number of stored line information to be smaller than the number of pixels in the line direction.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、モノクロ原稿にカラー
マーキングした原稿を読み取ってマーカー編集処理を行
うカラー複写機等のカラー画像処理装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color image processing apparatus such as a color copying machine for reading a color-marked original on a monochrome original and performing marker editing processing.

【0002】[0002]

【従来の技術】カラーマーキングによるマーカー編集処
理は、閉区間を塗りつぶすあるいは文字の色を変えるな
どの複数の処理をマーキングの仕方によって自動認識し
て処理する。そのため、マーキングの仕方には、これら
を区別するための一定のルールが存在し、このマーキン
グルールに従ったマーカ原稿を読み取ることにより、正
確なマーカー編集が行われる。
2. Description of the Related Art In a marker editing process using color marking, a plurality of processes such as filling a closed section or changing a character color are automatically recognized and processed according to a marking method. Therefore, the marking method has a certain rule for distinguishing between them, and by reading a marker document according to this marking rule, accurate marker editing is performed.

【0003】従来、この種のマーカー編集処理では、例
えば、モノクロ原稿にカラーマーキングした原稿をシリ
アルスキャン方式であるBJ方式のカラー複写機で読取
り、主走査方向の処理済み画素の記憶データと読取りで
得られた入力画素データとから印字色を決定するように
している。
Conventionally, in this type of marker editing processing, for example, an original in which a monochrome original is color-marked is read by a BJ method color copying machine which is a serial scan method, and stored data of processed pixels in the main scanning direction and reading are performed. The print color is determined from the obtained input pixel data.

【0004】そして、マーカー原稿は、シリアルスキャ
ン方式で複数のバンドに分けて読み込まれる。この場
合、処理の連続性を保つため各バンド間でのデータの繋
ぎ処理が必要であり、そのため繋ぎメモリを設けて、こ
の繋ぎメモリに全ての繋ぎデータを記憶させている。
Then, the marker document is divided into a plurality of bands and read by a serial scan method. In this case, it is necessary to connect the data between the respective bands in order to maintain the continuity of the processing. Therefore, a connection memory is provided and all the connection data are stored in this connection memory.

【0005】[0005]

【発明が解決しようとする課題】上述したように、従来
のマーカー編集処理では、繋ぎメモリに全ての繋ぎデー
タを記憶させることから、繋ぎメモリの容量が増大する
という問題があった。
As described above, in the conventional marker editing process, since all the connection data are stored in the connection memory, there is a problem that the capacity of the connection memory increases.

【0006】本発明は上記従来の問題点に鑑み、マーカ
ー編集処理に使用される繋ぎメモリの容量を小さくする
ことができるカラー画像処理装置を提供することを目的
とする。
In view of the above-mentioned conventional problems, it is an object of the present invention to provide a color image processing apparatus capable of reducing the capacity of the connection memory used for marker editing processing.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に本発明は、原稿を複数のバンドに分割して読取り、多
値データを出力する読取りセンサと、前記多値データ
を、色を表現する複数の色コードに分類するコード化手
段と、複数の色コードに分類されたコードに対し2次元
のエリア処理を施すエリア処理手段と、1ライン前の処
理情報を記憶する記憶手段と、該記憶手段の記憶内容を
読み出す読出し手段と、該読出し手段により読み出され
たデータと前記エリア処理手段の出力データとを合成し
て複数の出力コードを決定する出力コード決定手段と、
該出力コード決定手段の出力コードを条件に応じて補正
する補正手段と、該補正手段に接続され1バンド前の補
正情報を記憶しておく補正情報記憶手段と、センサ並び
方向の処理済み情報が存在しないバンドの先頭用にセン
サ並び方向の処理済み情報を前記補正情報記憶手段から
取り出す情報取り出し手段と、次のバンドの補正情報を
前記補正情報記憶手段に書き込む情報書き込み手段と、
前記補正手段から出力された補正コードを1ライン前の
処理情報として前記記憶手段に記憶させる記憶制御手段
と、前記補正手段により補正された出力コードを多値デ
ータに変換して出力する出力変換手段とを備えたカラー
画像処理装置において、前記補正情報手段に記憶するラ
イン情報数をライン方向の画素数より少なくしたことを
特徴とするカラー画像処理装置。
In order to achieve the above object, the present invention provides a reading sensor which divides an original into a plurality of bands and reads the original and outputs multi-valued data, and the multi-valued data that expresses colors. Coding means for classifying into a plurality of color codes, area processing means for performing two-dimensional area processing on the codes classified into a plurality of color codes, storage means for storing processing information of one line before, Reading means for reading the stored contents of the storing means; output code determining means for synthesizing the data read by the reading means and the output data of the area processing means to determine a plurality of output codes;
The correction code for correcting the output code of the output code determination means according to the conditions, the correction information storage means connected to the correction code for storing the correction information of the preceding band, and the processed information of the sensor arrangement direction are Information retrieval means for retrieving processed information in the sensor arrangement direction for the beginning of a non-existing band from the correction information storage means, and information writing means for writing the correction information of the next band in the correction information storage means,
Storage control means for storing the correction code output from the correction means in the storage means as processing information of one line before, and output conversion means for converting the output code corrected by the correction means into multivalued data and outputting the multivalued data. In the color image processing apparatus including the above, the number of line information stored in the correction information means is smaller than the number of pixels in the line direction.

【0008】また、上記第1の発明において、前記エリ
ア処理手段で使用しているライン方向の画素に比べて、
前記補正情報記憶手段の使用する画素単位を少なくする
ことが望ましい。
In the first aspect of the invention, as compared with the line direction pixels used in the area processing means,
It is desirable to reduce the number of pixel units used by the correction information storage means.

【0009】また、上記第1の発明において、前記補正
情報記憶手段に読み書きする情報がコード化されている
ことが望ましい。
Further, in the first invention, it is desirable that the information to be read from and written to the correction information storage means is coded.

【0010】[0010]

【作用】上記構成により本発明によれば、補正情報記憶
手段に記憶するライン情報数をライン方向の画素数より
少なくするので、補正情報記憶手段の容量を小さくする
ことができる。
According to the present invention having the above structure, the number of line information stored in the correction information storage means is made smaller than the number of pixels in the line direction, so that the capacity of the correction information storage means can be reduced.

【0011】また、例えば複数の色コードに分類された
コードに対し、孤立点の除去や補完などの2次元のエリ
ア処理を施すエリア処理手段で使用しているライン方向
の画素に比べて、補正情報記憶手段の使用する画素単位
を少なくすることにより、簡単且つ的確に補正情報記憶
手段の容量を小さくすることができる。
Further, for example, correction is made in comparison with the pixels in the line direction used in the area processing means for performing two-dimensional area processing such as removal and complementation of isolated points for codes classified into a plurality of color codes. By reducing the number of pixel units used by the information storage unit, the capacity of the correction information storage unit can be reduced easily and accurately.

【0012】また、補正情報記憶手段に読み書きする情
報をコード化することにより、より一層補正情報記憶手
段の容量を小さくすることができる。
Further, by encoding the information to be read from and written to the correction information storage means, the capacity of the correction information storage means can be further reduced.

【0013】[0013]

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

【0014】図1は、本発明のカラー画像処理装置の実
施例に係るフルカラー複写機の画像処理の概略構成を示
すブロック図、図2はマーカー編集仕様を示す図、及び
図3はマーキングルールを説明する図である。
FIG. 1 is a block diagram showing a schematic configuration of image processing of a full-color copying machine according to an embodiment of a color image processing apparatus of the present invention, FIG. 2 is a diagram showing marker editing specifications, and FIG. 3 is a marking rule. It is a figure explaining.

【0015】まず、図2及び図3を用いてマーカー編集
処理について説明する。
First, the marker editing process will be described with reference to FIGS.

【0016】モノクロ原稿にカラーマーカーで色付けし
てマーカー編集を行うと、例えば図2(a),(b),
(c)に示すような出力が得られる。
When a marker is edited by coloring a monochrome manuscript with a color marker, for example, as shown in FIGS.
An output as shown in (c) is obtained.

【0017】(1)図2(a)に示すように、原稿の所
定の閉区間を塗りつぶしたい場合は、その閉区間の内側
をマーキングすれば、閉区間内が色で塗りつぶされた出
力を得ることができる。(2)図2(b)に示すよう
に、原稿の黒線の色を変更したい場合は、その黒線を包
含する形でマーキングすれば、黒線がマーカーの色で置
き換えられる。(3)図2(c)に示すように、以上
(1)及び(2)の場合の両方を行いたい場合は、前記
(1)及び(2)の複合形で閉区間内を塗りつぶすよう
にすれば、マーカーで包含された部分の色はマーカー色
に置換される。
(1) As shown in FIG. 2A, when it is desired to paint a predetermined closed section of a document, by marking the inside of the closed section, an output in which the closed section is filled with color is obtained. be able to. (2) As shown in FIG. 2B, when it is desired to change the color of the black line of the original, marking is performed so as to include the black line, and the black line is replaced with the color of the marker. (3) As shown in FIG. 2C, when it is desired to perform both of the above cases (1) and (2), the closed section is filled with the composite form of (1) and (2) above. Then, the color of the portion included by the marker is replaced with the marker color.

【0018】上述の(1)、(2)、(3)を同時に自
動的に区別し処理するためには、図3(a),(b)に
示すようなマーキングルールが必要である。
In order to automatically distinguish and process the above (1), (2) and (3) at the same time, a marking rule as shown in FIGS. 3 (a) and 3 (b) is required.

【0019】上記(1)の場合(塗りつぶし)では、図
3(a)に示すように黒枠線101の内側をマーキング
するが(マーキング部102)、その際、黒枠線101
の内側に生じた隙間103、あるいは黒枠線101の外
側に生じたはみ出し104は所定範囲以内であれば許さ
れる(例えば、隙間103の幅103aが1mm以内、
はみ出し104の幅104aが0.3mm以内)。
In the case of (1) (filling), the inside of the black frame line 101 is marked as shown in FIG. 3 (a) (marking portion 102), but at this time, the black frame line 101 is marked.
The gap 103 formed on the inside of the gap or the protrusion 104 formed on the outside of the black frame line 101 is allowed within a predetermined range (for example, the width 103a of the gap 103 is within 1 mm,
The width 104a of the protrusion 104 is within 0.3 mm).

【0020】また、上記(2)の場合(色変換)では、
図3(a),(b)に示すように黒文字105を包含す
る形でその周囲106をマーキングするが、その際、周
囲106を所定範囲以上に亘って塗りつぶさなければな
らない(例えば、黒文字105からのはみ出し106a
が1mm以上)。
In the case of the above (2) (color conversion),
As shown in FIGS. 3 (a) and 3 (b), the surrounding 106 is marked so as to include the black character 105. At this time, the surrounding 106 must be filled over a predetermined range (for example, from the black character 105). Overhang 106a
Is 1 mm or more).

【0021】この他に、閉区間の内側の黒107は、マ
ーキング部102から所定範囲以上離れていなければな
らない(例えば、マーキング部102と隣接黒線107
との間隔107aが1mm以上)。さらに、閉区間の境
界となる黒枠線101の幅101aは所定値(例えば
0.3mm)以上必要であり、マーカーの塗り幅(マー
キング部102の幅)102aも所定値(例えば0.3
mm)以上必要である。
In addition to this, the black 107 inside the closed section must be separated from the marking portion 102 by a predetermined range or more (for example, the marking portion 102 and the adjacent black line 107).
And the distance 107a is 1 mm or more). Further, the width 101a of the black frame line 101 serving as the boundary of the closed section needs to be a predetermined value (for example, 0.3 mm) or more, and the coating width of the marker (width of the marking portion 102) 102a is also a predetermined value (for example, 0.3 mm).
mm) or more is required.

【0022】これらの条件を満たす原稿は正確なマーカ
ー編集処理が施される。
Documents satisfying these conditions are subjected to accurate marker editing processing.

【0023】このようなマーカー編集処理を実現するた
め、本実施例のフルカラー複写機の画像処理は次のよう
に構成されている。
In order to realize such marker editing processing, the image processing of the full-color copying machine of this embodiment is constructed as follows.

【0024】図1において、図中1は原稿画像を読み取
ってRGBデータを出力するCCDラインセンサであ
り、その出力側には、該RGBデータを増幅するアンプ
回路2と、増幅されたRGBデータを8ビットのディジ
タル値に量子化するA/D変換器3と、量子化されたR
GBデータをシェーディング補正するシェーディング補
正回路4と、読み取られたRGBデータの位置ずれを補
正する色ずれ補正回路5と、このRGBデータから黒文
字を検出して黒文字信号を生成する黒文字検出回路6
と、後述するマーカー編集を行うマーカー編集回路7と
が順次接続されている。
In FIG. 1, reference numeral 1 in the drawing is a CCD line sensor for reading an original image and outputting RGB data, and an amplifier circuit 2 for amplifying the RGB data and an amplified RGB data are provided on the output side thereof. A / D converter 3 for quantizing into an 8-bit digital value, and quantized R
A shading correction circuit 4 that performs shading correction of GB data, a color misregistration correction circuit 5 that corrects positional deviation of read RGB data, and a black character detection circuit 6 that detects black characters from this RGB data and generates a black character signal.
And a marker editing circuit 7 for performing marker editing described later are sequentially connected.

【0025】さらに、マーカー編集回路7の出力側に
は、拡大縮小の変倍を行う変倍回路8と、後述する空間
フィルタ回路13や2値化回路15で用いられる制御信
号を生成する制御信号生成回路9と、LOGテーブルに
従ってLOG変換を行うLOG変換回路10と、LOG
変換後のCMY(シアン、マゼンタ、イエロー)データ
の中の最小値を抽出する最小値抽出回路11と、行列演
算によりマスキングとUCRを行うマスキング・UCR
回路12と、エッジ強調またはスムージング処理を行う
空間フィルタ回路13と、ガンマテーブルに従ってガン
マ変換するガンマ変換回路14と、ディザ法などで8ビ
ットの多値データを2値化する2値化回路15と、CM
YK(シアン、マゼンタ、イエロー、黒)4色用の各ヘ
ッド間の調整をするヘッドタイミング調整回路16と、
調整されたヘッドを駆動するヘッドドライバ回路17と
が順次接続され、そして、ヘッドドライバ回路17の出
力側に4色(CMYK)のBJインクヘッド18が接続
されている。
Further, on the output side of the marker editing circuit 7, a scaling signal for scaling the scaling and a control signal for generating control signals used in a spatial filter circuit 13 and a binarization circuit 15 which will be described later. A generation circuit 9; a LOG conversion circuit 10 that performs LOG conversion according to a LOG table;
Minimum value extraction circuit 11 for extracting the minimum value in the converted CMY (cyan, magenta, yellow) data, and masking / UCR for performing masking and UCR by matrix calculation
A circuit 12, a spatial filter circuit 13 that performs edge enhancement or smoothing processing, a gamma conversion circuit 14 that performs gamma conversion according to a gamma table, and a binarization circuit 15 that binarizes 8-bit multivalued data by a dither method or the like. , CM
A head timing adjustment circuit 16 for adjusting the heads for the four YK (cyan, magenta, yellow, black) colors;
A head driver circuit 17 that drives the adjusted head is sequentially connected, and a four-color (CMYK) BJ ink head 18 is connected to the output side of the head driver circuit 17.

【0026】次に、マーカー編集回路7について図4を
用いて詳細に説明する。
Next, the marker editing circuit 7 will be described in detail with reference to FIG.

【0027】CCDラインセンサ1により読み取られた
RGBデータは、1画素単位(データは各8ビット(0
〜255))でマーカー編集回路7に入力される。
The RGB data read by the CCD line sensor 1 is in units of one pixel (data is 8 bits (0
.About.255)) is input to the marker editing circuit 7.

【0028】マーカー編集回路7は、マーカー色判別回
路20、副走査方向ノイズ除去回路30、主走査方向ノ
イズ除去回路40、領域判定回路50、領域誤判定補正
回路60、及び出力変換回路70から構成されている。
The marker editing circuit 7 comprises a marker color discriminating circuit 20, a sub-scanning direction noise removing circuit 30, a main scanning direction noise removing circuit 40, a region determining circuit 50, a region error determination correcting circuit 60 and an output converting circuit 70. Has been done.

【0029】まず、RGBデータは、マーカー専用LO
G変換回路21によりCMYデータに変換された後、マ
ーカー色判別回路20の中の白黒判定回路22及び色判
定回路23に入力される。白黒判定回路22では、CM
Yの最小値がある値以上であれば黒、最大値がある値以
下であれば白とする。色判定回路23では、CMYの最
小値を各値から減算して残った2成分の比で色を判定す
る。これらで判定された白、黒、色がコード化回路24
で次の表1に対応する色コードに変換される。
First, the RGB data is a marker-dedicated LO.
After being converted into CMY data by the G conversion circuit 21, it is input to the black and white determination circuit 22 and the color determination circuit 23 in the marker color determination circuit 20. In the black and white judgment circuit 22, CM
If the minimum value of Y is above a certain value, it is black, and if the maximum value is below a certain value, it is white. In the color determination circuit 23, the minimum value of CMY is subtracted from each value to determine the color based on the ratio of the remaining two components. The white, black, and color determined by these are the coding circuit 24.
Is converted into a color code corresponding to Table 1 below.

【0030】[0030]

【表1】 また、黒に関してはハーフトーン出力するために、白黒
判定回路22及び色判定回路23の出力からの黒である
か否かを示す黒信号とCMYの生データとから黒濃度生
成回路25で濃度を作り出す。
[Table 1] In addition, since halftone output is performed for black, the black density generation circuit 25 determines the density from the black signal from the output of the black and white determination circuit 22 and the color determination circuit 23 and the raw CMY data. produce.

【0031】色コードは、副走査方向ノイズ除去回路3
1に入力され、同色の連続する画素数がある値以下であ
ればノイズであると判断して除去する。遅延回路32
は、副走査方向ノイズ除去回路31の処理で遅延が生ず
るので、これに黒濃度を同期させるための回路である。
The color code is the noise removal circuit 3 in the sub-scanning direction.
If the number of consecutive pixels of the same color is less than or equal to a certain value, it is determined to be noise and removed. Delay circuit 32
Is a circuit for synchronizing the black density with a delay caused by the processing of the sub-scanning direction noise removal circuit 31.

【0032】主走査方向ノイズ除去回路40は、入力さ
れたデータとFIFO41で1ライン遅延されたデータ
を用いて同じ色の画素の連続性を論理回路42で計算
し、FIFO43に記憶させる。さらに、FIFO43
のデータを使って入力データとFIFO41の出力デー
タのどちらを色コードとして出力するかを決定する。
The main scanning direction noise removal circuit 40 uses the input data and the data delayed by one line in the FIFO 41 to calculate the continuity of the pixels of the same color in the logic circuit 42 and store it in the FIFO 43. In addition, the FIFO43
Of the data is used to determine which of the input data and the output data of the FIFO 41 is to be output as the color code.

【0033】次に、領域判定回路51の説明を行う。Next, the area determination circuit 51 will be described.

【0034】この回路51は、画像の各画素を4つの領
域のどの領域であるかを決定するものである。この4つ
の領域は、(1)ノーマル領域、(2)ペイント領域、
(3)ライン領域、(4)ペイント内ライン領域、であ
る。
The circuit 51 determines which of the four areas each pixel of the image is. These four areas are (1) normal area, (2) paint area,
(3) line area and (4) in-paint line area.

【0035】ノーマル領域は、何もしない領域であり、
初期値はこの領域に設定されている。ペイント領域は、
閉区間内を塗りぶす領域である。但し、境界の黒線上で
はノーマル領域とする。さらに、ライン領域は黒色をマ
ーカー色に置き換える領域である。ペイント内ライン領
域は、ペイント領域とライン領域との複合型であり、ペ
イント領域内のライン領域であることを示す。
The normal area is an area that does nothing,
The initial value is set in this area. The paint area is
This is a region where the closed section is painted over. However, the normal area is set on the black line at the boundary. Further, the line area is an area in which black is replaced with a marker color. The in-paint line area is a composite type of the paint area and the line area, and is a line area in the paint area.

【0036】この領域判定回路51は、図5に示すよう
に、センサ128画素があり、各画素(注目画素P1)
について読み取ったデータと主走査方向の1つ前の画素
P2の記憶データとをFIFOメモリ52に記憶してい
る。
As shown in FIG. 5, the area determination circuit 51 has 128 pixels of sensors and each pixel (target pixel P1).
The read data and the storage data of the pixel P2 immediately before in the main scanning direction are stored in the FIFO memory 52.

【0037】記憶データには、ペイント領域時の色を決
定するペイント決定色、ラインあるいはペイント内ライ
ン領域時の色を決定するライン決定色、領域、主走査方
向の黒画素からの距離を記憶しておく横黒カウンタ、色
あるいは白画素からの距離を記憶しておく横色白カウン
タ、1ライン前の読み込んだ画素の色である前色、及び
主走査方向に対して何色から変化して現在の色になった
かを記憶しておく履歴色がある。
The memory data stores the paint-determined color that determines the color in the paint area, the line-determined color that determines the color in the line or in-paint line area, the area, and the distance from the black pixel in the main scanning direction. Horizontal black counter, horizontal color white counter that stores the distance from the color or white pixel, the previous color that is the color of the pixel read one line before, and the current color that has changed from the main scanning direction There is a history color that remembers whether or not the color has changed.

【0038】これらのデータと読み込まれたデータとの
論理合成により、印字色が決定される。その詳細を次の
表2及び表3に示す。
The print color is determined by logical synthesis of these data and the read data. The details are shown in Tables 2 and 3 below.

【0039】[0039]

【表2】 [Table 2]

【0040】[0040]

【表3】 なお、表2及び表3中において、YBK1:黒でクリア
(すきま画素数コンパレータ)、YBK2:黒でクリア
(はみ出し画素数コンパレータ)、YIROWHH:領
域によりクリア条件を変える(ノーマル中:色でクリ
ア、ペイント中:色でクリア、それ以外:クリアな
し)、N:ペイント色、*1:ライン専用モード時には
括弧内の処理を行い、黒、色、白の各カウンタは常に1
(Full)にしておく。
[Table 3] In Tables 2 and 3, YBK1: clear with black (clearance pixel number comparator), YBK2: clear with black (extruded pixel number comparator), YIROWHH: clear condition is changed depending on the area (normal: clear with color, (Painting: Clear with color, other than: No clear), N: Paint color, * 1: Processing in parentheses in line only mode, black, color, and white counters are always 1
Set to (Full).

【0041】簡単な例として、表2及び表3を用いて説
明すると、ペイント領域で前色が白のとき、入力データ
である今色がマーカー色の場合、縦横の黒距離カウンタ
を見て、黒から近いと判断されるとペイント領域にな
り、今色を印字し、ペイント決定色に今色をセットす
る、といった手順で処理を進める。
As a simple example, referring to Tables 2 and 3, when the previous color is white in the paint area and the current color which is the input data is the marker color, looking at the vertical and horizontal black distance counters, If it is determined that the color is closer to black, the area becomes the paint area, the current color is printed, and the current color is set as the paint-determined color.

【0042】前記表2及び表3で注目すべき点は、カウ
ンタを用いている点で、これによって、マーキングを厳
密に黒に隣接しなくともある条件以内であれば黒に隣接
しているものと見做して処理を行うことができる。マー
キングの条件として、はみ出しでなく隙間を許すことを
採用した理由として、はみ出しは、円グラフのようなも
のに対しての色付けができないことや、隙間は修正が可
能であることなどが挙げられる。
A point to be noted in the above Tables 2 and 3 is that a counter is used, whereby the marking is adjacent to black as long as it is within a certain condition even if the marking is not strictly adjacent to black. It can be treated as if it were. The reason for adopting the allowance of a gap instead of the protrusion as the marking condition is that the protrusion cannot be colored with respect to something like a pie chart, and the gap can be corrected.

【0043】また、カウンタは、縦横しか見ていないた
め、仮に斜め方向にマーカー色が黒色に隣接していても
縦横カウンタでは検知できない。この場合は誤動作する
ため領域判定回路51に図6に示すような尾引き処理を
追加して回避している。その方法は、注目画素P1が白
で、前色がマーカー色でかつペイント領域で、縦横いず
れかが黒から近ければ注目画素P1を前色で置き換える
ものである。すなわち、黒画素からの距離A,B,Cの
いずれかが1mm以内で、上記条件のとき注目画素P1
の白を前ラインの色画素にする。これにより、黒とマー
カー色の間の白い隙間はあたかもマーカー色であるかの
ように処理され、斜め方向の隙間にも対処することがで
きる。
Further, since the counter only looks at the vertical and horizontal directions, even if the marker color is adjacent to black in the diagonal direction, it cannot be detected by the vertical and horizontal counters. In this case, since a malfunction occurs, a tailing process as shown in FIG. 6 is added to the area determination circuit 51 to avoid it. This method replaces the pixel of interest P1 with the previous color if the pixel of interest P1 is white, the previous color is a marker color and is a paint area, and either the vertical or horizontal direction is closer to black. That is, if any of the distances A, B, and C from the black pixel is within 1 mm and the above condition is satisfied, the pixel of interest P1
The white of is the color pixel of the previous line. As a result, the white gap between black and the marker color is processed as if it were the marker color, and it is possible to deal with the gap in the diagonal direction.

【0044】さらに、記憶データに縦方向の距離カウン
タが含まれていないのは、現在読み取っているセンサ内
で計算可能であるために、記憶しておく必要がないため
である。領域判定の後は、領域判定補正回路61に色コ
ードが入力される。この領域判定補正回路61は、領域
判定回路51の領域判定結果を周囲の画素と比較し、誤
った領域に入っていると判定されると周囲の画素で補正
するものである(詳細は後述する)。また、繋ぎメモリ
(SRAM)62は、バンドのまたがりで前のバンドの
補正を行う元のデータを記憶しておくためメモリであ
る。この繋ぎメモリ62に記憶されている内容は、次の
表4及び表5に記載された履歴コードである。
Further, the reason why the stored data does not include the vertical distance counter is that there is no need to store the data because it can be calculated in the sensor currently being read. After the area determination, the color code is input to the area determination correction circuit 61. The area determination correction circuit 61 compares the area determination result of the area determination circuit 51 with surrounding pixels and corrects the surrounding pixels when it is determined that the area is included in an incorrect area (details will be described later). ). Further, the connection memory (SRAM) 62 is a memory for storing original data for correcting the previous band due to the band straddling. The contents stored in the connection memory 62 are the history codes described in Tables 4 and 5 below.

【0045】[0045]

【表4】 [Table 4]

【0046】[0046]

【表5】 以上に述べた処理後の色コードが出力変換回路70に入
力される。このデータは、セレクタ71により、領域判
定する前のデータやノイズ除去前のデータなどの色コー
ドと切り換えることが可能で、印字色判定回路72に入
力される。
[Table 5] The color code after the above-described processing is input to the output conversion circuit 70. This data can be switched to a color code such as data before area determination or data before noise removal by the selector 71, and is input to the print color determination circuit 72.

【0047】印字色判定回路72は4ビットの色コード
を予め設定されたテーブルでCMYKのデータに変換す
る回路である。また黒に関しては、ハーフトーンを実現
するために、マーカー色判別回路20で生成された黒濃
度を用いて濃度生成回路73で濃度を生成している。
The print color judgment circuit 72 is a circuit for converting a 4-bit color code into CMYK data in a preset table. As for black, the density is generated by the density generation circuit 73 using the black density generated by the marker color discrimination circuit 20 in order to realize halftone.

【0048】出力変換回路70の中には、出力モードと
して、(1)標準バックモード、(2)標準ブルーバッ
クモード、(3)特別ブルーバックモード、の3モード
がある。標準バックモードは、領域判定回路51で生成
された色コードを次の表4に示すCMYKの出力テーブ
ルで変換して出力するモードである。標準ブルーバック
モードは、前記標準バックモードの白と出力決定された
画素をブルーに、黒と出力決定された画素を白にそれぞ
れ変換して出力するもので、OHP原稿で用いるブルー
バック原稿を作成することができる。また、特別ブルー
バックモードは、前記標準ブルーバックモードとほぼ同
じであるが、ペイント領域内の黒だけはそのまま出力す
るモードである。
The output conversion circuit 70 has three output modes: (1) standard back mode, (2) standard blue back mode, and (3) special blue back mode. The standard back mode is a mode in which the color code generated by the area determination circuit 51 is converted by the CMYK output table shown in Table 4 below and output. In the standard blue back mode, the pixels whose output is determined to be white in the standard back mode are converted into blue and the pixels whose output is determined to be black are converted into white, and are output. can do. The special blue back mode is almost the same as the standard blue back mode, but only the black in the paint area is output as it is.

【0049】[0049]

【表6】 以上の処理を終えたCMYKデータは、図1に示した変
倍回路8以後の処理を行い、プリンタ部で印字される。
但し、マーカー編集処理を実施した場合は、マーカー編
集回路7のマーカー編集処理においてRGBデータをC
MYKデータに変換しているため、LOG変換回路1
0、最小値抽出回路11、及びマスキング・UCR回路
12は何も処理を行わない。また、マーカー編集を実施
しない場合は、マーカー編集回路7においても何も処理
を行わないようにする。
[Table 6] The CMYK data that has undergone the above processing is subjected to the processing after the scaling circuit 8 shown in FIG. 1 and printed by the printer section.
However, when the marker editing process is performed, the RGB data is converted into C in the marker editing process of the marker editing circuit 7.
Since it is converted to MYK data, the LOG conversion circuit 1
0, the minimum value extraction circuit 11, and the masking / UCR circuit 12 do nothing. When the marker editing is not performed, the marker editing circuit 7 also does not perform any processing.

【0050】次に、補正回路61について詳細に説明す
る。
Next, the correction circuit 61 will be described in detail.

【0051】前述したように、図3で示したマーキング
ルールを違反した原稿を処理すると図7(a),(b)
に示すような出力となる。
As described above, when an original document that violates the marking rule shown in FIG. 3 is processed, the original document shown in FIGS.
The output is as shown in.

【0052】上記表2及び表3を参照して詳細に説明す
ると、図7(a)において、Z1はペイント領域の入口
で誤ってライン領域に入ったものである。ノーマル領域
の白から色に変化する場合で黒が周囲に無いのでライン
領域に入ってしまう。さらに、色→黒→色とライン領域
を続け、色→白と変化したところでノーマル領域に戻
る。従って、ペイント領域内で一部だけノーマル領域に
戻るので、Z1’に示すように白抜けとなる。Z2の場
合も同様にZ2’に示すように白抜けとなる。
This will be described in detail with reference to Tables 2 and 3 above. In FIG. 7A, Z1 is accidentally entered into the line area at the entrance of the paint area. When the color changes from white in the normal area to black, there is no black in the surrounding area, so the area enters the line area. Further, the line area is continued in the order of color → black → color, and when the color → white is changed, the normal area is restored. Therefore, only a part of the paint area returns to the normal area, and a blank area appears as indicated by Z1 '. Similarly, in the case of Z2, there is a blank area as indicated by Z2 '.

【0053】図7(b)において、Z3は、ペイント領
域の出口での問題である。ペイントの色から黒に変化し
た時点でノーマル領域に戻る。しかし、再びノーマルの
黒→色と変化するためペイント領域に入る。それ以降
は、ペイント終了条件が存在しないために色を印字し続
けることになる。Z4は、ペイントの色から黒に変化し
たときに白隙間が広すぎるため、ペイント領域内の黒で
あると判断してペイント領域を続けるために、Z3と同
様、ペイント終了条件が以後存在しないため色を印字し
続ける。
In FIG. 7B, Z3 is a problem at the exit of the paint area. When the color of the paint changes to black, it returns to the normal area. However, since it changes from normal black to color again, it enters the paint area. After that, since the paint end condition does not exist, the color is continuously printed. In Z4, since the white gap is too wide when the color of the paint changes to black, it is judged to be black in the paint area to continue the paint area. Continue to print colors.

【0054】この手法の問題は、領域情報が主走査方向
のみに対して処理され、副走査方向に対しては完全に独
立であることである。そのため、隣同士の入力データが
同じ白であるにもかかわらず、一方はペイント領域であ
り、もう一方はノーマル領域であるという実際にあって
はならない状態となる。
The problem with this approach is that the region information is processed only in the main scan direction and is completely independent of the sub scan direction. For this reason, even though the input data of the adjacent two are the same white, one is the paint area and the other is the normal area, which is not the actual state.

【0055】そこで、領域判定回路50で主走査方向の
みに対して処理された領域を、補正回路60により副走
査方向に補正する。
Therefore, the correction circuit 60 corrects the area processed only in the main scanning direction by the area determination circuit 50 in the sub scanning direction.

【0056】図8に示すように注目画素(履歴色、色、
領域)P1に対して、まず最初に主走査方向の左画素P
2の記憶データを用いて領域を決定する。記憶データは
図5に示した情報である。次に、副走査方向の上画素P
3の履歴コード(履歴色、色、領域の組み合わせをコー
ド化したもの)と決定された領域とを比較し、ある条件
に当てはまる時は、上画素の領域に置き換える。
As shown in FIG. 8, the pixel of interest (history color, color,
Region P1 for the left pixel P in the main scanning direction
The area is determined using the stored data of 2. The stored data is the information shown in FIG. Next, the upper pixel P in the sub-scanning direction
The history code of No. 3 (coded a combination of history color, color, and area) is compared with the determined area, and when a certain condition is satisfied, the area is replaced with the area of the upper pixel.

【0057】バンドの先頭では、上方向に履歴コードが
ないので、繋ぎメモリ62から履歴コードを取り出して
用いる。繋ぎメモリ62には、1回前のバンド処理で決
定された次のバンドの先頭で必要な履歴コードが記憶さ
れている。
At the beginning of the band, since there is no history code in the upward direction, the history code is taken out from the connection memory 62 and used. The connection memory 62 stores a history code required at the beginning of the next band determined by the previous band processing.

【0058】ここで、履歴コードについて、表4の履歴
コード決定条件を用いて説明する。
Here, the history code will be described using the history code determination conditions in Table 4.

【0059】履歴コードは3ビットで0から5の値をと
る。注目画素(表5では今色)の読取り色が白で領域が
ノーマルで、主走査方向の処理済みの記憶データの中の
履歴色が黒の場合はその画素の履歴コードは“0”とな
る。このコードは、表5の補正条件に示す上画素履歴コ
ードとして、1つ下の画素の領域補正を行うときに使用
される。以下、履歴コード1から5は表5に示すような
条件のときに割り付けられる。
The history code has a value of 0 to 5 in 3 bits. When the read color of the pixel of interest (current color in Table 5) is white and the area is normal, and the history color in the processed storage data in the main scanning direction is black, the history code of that pixel is "0". . This code is used as the upper pixel history code shown in the correction condition of Table 5 when performing the area correction of the pixel one below. Hereinafter, history codes 1 to 5 are assigned under the conditions shown in Table 5.

【0060】次に、繋ぎメモリ62に記憶する履歴コー
ド(バンドの繋ぎデータ)の情報を少なくするための手
法を図9(a),(b)及び図10(a),(b),
(c)を用いて説明する。
Next, a method for reducing the information of the history code (band connection data) stored in the connection memory 62 will be described with reference to FIGS. 9 (a) and 9 (b) and FIGS. 10 (a) and 10 (b).
An explanation will be given using (c).

【0061】図9(a)は、黒色で書かれた四角い枠の
内側を緑色のマーカーで色付け(図では単に色と記述)
した原稿の拡大図である。但し、黒色で書かれた四角い
枠の中心近傍にバンド処理が入るようになっている(図
中の点線Lで示す)。図9(b)は、図9(a)に示す
原稿を読取った場合の領域判定補正回路61の出力を示
した図である。同図により、副走査方向及び主走査方向
のノイズ除去回路30,40の効果により孤立点が除去
され、残っている色情報は、主走査方向及び副走査方向
にそれぞれ複数画素連続していることが分かる。
In FIG. 9A, the inside of a square frame written in black is colored with a green marker (simply described as color in the figure).
FIG. 4 is an enlarged view of a manuscript that has been prepared. However, band processing is designed to enter near the center of a square frame written in black (indicated by a dotted line L in the figure). FIG. 9B is a diagram showing the output of the area determination correction circuit 61 when the document shown in FIG. 9A is read. As shown in the figure, the isolated points are removed by the effect of the noise removing circuits 30 and 40 in the sub-scanning direction and the main scanning direction, and the remaining color information is continuous in a plurality of pixels in the main scanning direction and the sub-scanning direction. I understand.

【0062】図10(a)に示すように、図9(b)の
バンドの繋ぎデータの部分を抜き出し、主走査方向に番
号を付し、次いで図10(b)に示すように、図10
(a)の主走査方向に付けた番号の中で奇数番号に対応
するバンドの繋ぎデータを抜き出す。そして、図10
(c)に示すように、図10(b)のバンドの繋ぎデー
タを主走査方向に各画素を2倍に水増しした場合、図1
0(a)と同一データになることが分かる。
As shown in FIG. 10A, the band connection data portion of FIG. 9B is extracted and numbered in the main scanning direction, and then as shown in FIG.
The connection data of the bands corresponding to the odd numbers among the numbers given in the main scanning direction in (a) are extracted. And FIG.
As shown in FIG. 10C, when each pixel is doubled in the main scanning direction, the band connection data of FIG.
It can be seen that the same data as 0 (a) is obtained.

【0063】一方、黒色で書かれた四角い枠の内側を緑
色のマーカーで色付けした原稿を読み取った際に、図1
1に示すように黒色で書かれた四角い枠の幅と緑色のマ
ーカの幅の一部が太くなっている場合では、上同様の処
理を行うと、図12(a),(b),(c)に示すよう
なものになる。なお、図12(a),(b),(c)
は、図11の例において上述の図10(a),(b),
(c)の各々に対応した図を示すものである。
On the other hand, when a manuscript in which the inside of a square frame written in black is colored with a green marker is read,
As shown in FIG. 1, in the case where the width of the square frame written in black and a part of the width of the green marker are thick, if the same process as above is performed, the processes shown in FIGS. It will be as shown in c). 12 (a), (b), (c)
Is the same as in FIG. 10 (a), (b),
The figure corresponding to each of (c) is shown.

【0064】図11のバンドの繋ぎデータの部分を抜き
出して主走査方向に番号を付けた図12(a)に示す繋
ぎデータと、前述の図10と同じ処理を実施して得られ
た図12(c)に示すバンド繋ぎデータとを比較する
と、10番目のバンドの繋ぎデータが、図12(a)に
示すものは「3」であるのに対し、図12(c)に示す
ものは「5」となり、違ったものとなる。
The banding data shown in FIG. 12A in which the banding data portion of FIG. 11 is extracted and numbered in the main scanning direction, and FIG. 12 obtained by performing the same processing as that of FIG. Comparing with the band connection data shown in (c), the connection data of the 10th band is “3” in the case shown in FIG. 12 (a), whereas it is “3” in the case shown in FIG. 12 (c). 5 ”, which is different.

【0065】しかしながらこの点は、次の理由から何ら
支障ないものである。すなわち、図8に示す補正方法に
おいて、10番目の繋ぎデータが用いられる画素を注目
画素P1とすると、注目画素P1の左方向の履歴色は
黒、今色は色、上画素履歴コードは「5」となり、表5
の補正条件に対応しないため領域補正処理は行われず、
注目画素の色でペイントモードが実施される。この結
果、図12(c)に示すような繋ぎデータとなっても、
図12(a)の繋ぎデータを用いた場合とマーカー処理
される結果が同じになる。
However, this is not a problem for the following reason. That is, in the correction method shown in FIG. 8, if the pixel for which the tenth connection data is used is the pixel of interest P1, the history color to the left of the pixel of interest P1 is black, the current color is color, and the upper pixel history code is "5." , And Table 5
Area correction processing is not performed because it does not correspond to the correction condition of
The paint mode is executed with the color of the pixel of interest. As a result, even if the connection data is as shown in FIG.
The result of the marker processing is the same as the case of using the connection data of FIG.

【0066】このように、主走査方向及び副走査方向の
ノイズ除去回路40,30の効果により孤立点が除去さ
れた画像信号を基にマーカー編集を行い、その結果によ
って発生したバンドの繋ぎデータに関しては全ラインを
記憶する必要がないということが分かる。すなわち、繋
ぎメモリ62には、繋ぎデータを図10(b)または図
12(b)に示した形で記憶しておくことが可能とな
る。
As described above, the marker editing is performed based on the image signal from which the isolated points are removed by the effect of the noise removing circuits 40 and 30 in the main scanning direction and the sub-scanning direction, and regarding the band connection data generated as a result. It can be seen that does not need to store all lines. That is, it becomes possible to store the connection data in the connection memory 62 in the form shown in FIG. 10B or 12B.

【0067】次に、図13、図14(a),(b)、及
び図15(a),(b)を用いて、上述した繋ぎデータ
の繋ぎメモリ62への読み書き手法を実現するための構
成例について具体的に説明する。
Next, using FIG. 13, FIG. 14 (a), (b), and FIG. 15 (a), (b), a method for reading / writing the above-mentioned connection data from / to the connection memory 62 is realized. A configuration example will be specifically described.

【0068】図13は原稿の読取り位置を示す図、及び
図14(a),(b)は画像の読取り動作に関するタイ
ミング信号の関係を示す図である。なお、図14(b)
は、図14(a)に示す一部分を拡大したものである。
また、図15(a),(b)は、バンドの繋ぎデータを
繋ぎメモリ62へ読み書きするのに必要なタイミング信
号を発生させるための制御ブロック図である。
FIG. 13 is a diagram showing the reading position of the document, and FIGS. 14A and 14B are diagrams showing the relationship of the timing signals relating to the image reading operation. Note that FIG. 14 (b)
14 is an enlarged view of a part shown in FIG.
Further, FIGS. 15A and 15B are control block diagrams for generating timing signals necessary for reading and writing band connection data to the connection memory 62.

【0069】本実施例において、読取りセンサ1は、1
28画素(1が先頭、128が末尾であり、1画素はR
GBのペアより構成)から構成されている。図13に示
すように、まず最初のバンド1の読取り動作でライン1
から順番にラインnまでを各ライン128画素単位で原
稿の情報を読み取る。次に、読取りセンサ1をバンド2
のバンド1の位置に移動させ、同様にバンド2に対応す
る原稿の情報を読み取る。
In the present embodiment, the reading sensor 1 is 1
28 pixels (1 is the beginning, 128 is the end, and 1 pixel is R
It is composed of a pair of GB). As shown in FIG. 13, the first read operation of band 1 is line 1
From the first to the line n, the information of the original is read in units of 128 pixels for each line. Next, read sensor 1 to band 2
Then, the information of the original corresponding to the band 2 is read.

【0070】図13及び図14に示すBVEは、主走査
方向の画像有効期間を示す信号であり、1つのバンド
(ライン1の1画素目からラインnの128画素目)を
読んでいる間、“H”レベルとなる。VEは、副走査方
向の画像有効区間を示す信号であり、一つのラインを読
んでいる間は“H”レベルになる。VDは画像データで
ある。CLKは1画素に対応する周期で“H”/“L”
レベルを繰り返すクロック信号を示している。
BVE shown in FIGS. 13 and 14 is a signal indicating the image effective period in the main scanning direction, and while reading one band (1st pixel of line 1 to 128th pixel of line n), It becomes "H" level. VE is a signal indicating an effective image area in the sub-scanning direction, and is at "H" level while reading one line. VD is image data. CLK is "H" / "L" in the cycle corresponding to one pixel
The clock signal which repeats a level is shown.

【0071】図15(a)に示すカウンタ81は、副走
査方向のタイミングを作るためのカウンタであり、クロ
ックCLKの立上がりエッジの数をカウントし、カウン
ト結果をmビットの信号として出力している。また、ク
リア端子が“L”レベルのときにはカウント結果がクリ
アされ、mビットの出力が全て“L”レベルになる。
The counter 81 shown in FIG. 15A is a counter for making timing in the sub-scanning direction, counts the number of rising edges of the clock CLK, and outputs the count result as an m-bit signal. . When the clear terminal is at the "L" level, the count result is cleared and all m-bit outputs are at the "L" level.

【0072】一致検出回路82は、カウンタ81の出力
値と前もって決まっている2つ値とを比較し、一方が一
致したときは出力のVE信号を“H”レベルに、他方が
一致したときはVE信号を“L”レベルにする。一致検
出回路83は、カウンタ81の出力値と前もって決まっ
ている2つ値とを比較し、一方が一致したときは出力を
“H”レベルに、他方が一致したときは出力を“L”レ
ベルにする。
The coincidence detecting circuit 82 compares the output value of the counter 81 with two predetermined values, and when one of them coincides, the output VE signal becomes "H" level, and when the other coincides. The VE signal is set to "L" level. The coincidence detection circuit 83 compares the output value of the counter 81 with two predetermined values, and when one coincides, the output is set to "H" level, and when the other coincides, the output is set to "L" level. To

【0073】さらに、一致検出回路84は、カウンタ8
1の出力値と前もって決まっている値とを比較し、値が
一致したときは出力を“L”レベルにする。AND回路
85は、入力信号BVEまたは一致検出回路84の出力
のいずれか一方が“L”レベルになると、出力が“L”
レベルになる。OR回路86は、入力信号CLK及び一
致検出回路83の出力の両方の信号が“L”レベルにな
ると出力信号WRを“L”レベルにする。
Further, the coincidence detection circuit 84 includes the counter 8
The output value of 1 is compared with a predetermined value, and when the values match, the output is set to the "L" level. The AND circuit 85 outputs "L" when either the input signal BVE or the output of the coincidence detection circuit 84 becomes "L" level.
Become a level. The OR circuit 86 sets the output signal WR to the “L” level when both the input signal CLK and the output of the coincidence detection circuit 83 become the “L” level.

【0074】図15(b)に示すアドレスカウンタ87
は、主走査方向のタイミングを作るためのカウンタであ
り、VE信号の立上がりエッジの数をカウントし、カウ
ント結果をnビットの信号として出力している。また、
クリア端子が“L”レベルの場合はカウント結果がクリ
アされ、nビットの出力が全て“L”レベルになる。
The address counter 87 shown in FIG.
Is a counter for making timing in the main scanning direction, counts the number of rising edges of the VE signal, and outputs the count result as an n-bit signal. Also,
When the clear terminal is at "L" level, the count result is cleared and all n-bit outputs are at "L" level.

【0075】さらに、繋ぎメモリ62は、前述したよう
にバンドの繋ぎデータを記憶し、OR回路89は、入力
信号WR及びアドレスカウンタ87の最下位ビットであ
る両方の信号が“L”レベルになると、出力信号S−W
Rを“L”レベルにする。S−WR信号は、奇数ライン
の128画素のタイミングに“L”レベルとなり、S−
WR信号の立上がり時、繋ぎメモリ62にそのデータバ
スの信号を書き込む。
Further, the connection memory 62 stores the band connection data as described above, and the OR circuit 89, when both the input signal WR and the least significant bit of the address counter 87 become "L" level. , Output signal SW
Set R to "L" level. The S-WR signal becomes "L" level at the timing of 128 pixels on the odd line, and S-WR signal
When the WR signal rises, the signal of the data bus is written in the connection memory 62.

【0076】インバータ90は、WR信号を反転し繋ぎ
メモリ62のRD端子に供給し、双方向性のバスコント
ローラ91は、S−WR信号に対応して繋ぎメモリ62
のデータバス信号を制御している。すなわち、S−WR
信号が“L”レベルの時(128画素を処理しているタ
イミング)は、履歴色、今色及び領域を繋ぎメモリ62
のデータバスに出力し、この履歴色、今色及び領域は、
S−WR信号の立上がりタイミングで繋ぎメモリ62に
バンドの繋ぎデータとして記憶される。S−WR信号が
“H”レベルの時は、繋ぎメモリ62のデータバスに履
歴色、今色、領域を出力する方のバッファがハイインピ
ーダンス状態になり、繋ぎメモリ62に記憶されている
履歴色、今色、領域のデータを、補正条件を処理する補
正回路61へ送り出す。
The inverter 90 inverts the WR signal and supplies it to the RD terminal of the connection memory 62, and the bidirectional bus controller 91 responds to the S-WR signal by the connection memory 62.
It controls the data bus signal. That is, S-WR
When the signal is at the “L” level (timing of processing 128 pixels), the history color, the current color and the area are connected to each other and the memory 62
This history color, now color and area are output to the data bus of
At the rising timing of the S-WR signal, it is stored in the connection memory 62 as band connection data. When the S-WR signal is at the “H” level, the history color stored in the connection memory 62 is the history color, the current color, and the buffer that outputs the area are in a high impedance state on the data bus of the connection memory 62. The current color and area data are sent to the correction circuit 61 that processes the correction conditions.

【0077】また、図15のブロック図には示されてい
ないが、繋ぎメモリ62に記憶されている履歴色、今
色、領域のデータを各ラインの1画素目だけに用いるた
めの回路、及び読取り動作開始時の最初のバンドの1画
素目の補正条件を、履歴色が黒、今色が白、及び領域が
ノーマルにするための回路がある。
Although not shown in the block diagram of FIG. 15, a circuit for using the history color, present color, and area data stored in the connection memory 62 only for the first pixel of each line, and There is a circuit for setting the correction conditions for the first pixel of the first band at the start of the reading operation to black for the history color, white for the current color, and normal for the area.

【0078】なお、繋ぎメモリ62に記憶されている繋
ぎデータは、履歴色(黒、白、今の2ビット)、今色
(黒、白、色の2ビット)、領域(ノーマル、ペイン
ト、ライン、ペイント内ラインの2ビット)の計6ビッ
ト信号より構成されている。
The connection data stored in the connection memory 62 includes history color (black, white, current 2 bits), current color (black, white, color 2 bits), area (normal, paint, line). , 2 bits of the line in the paint), a total of 6 bits.

【0079】次に、補正条件について説明する。Next, the correction conditions will be described.

【0080】表5の左側から、注目画素の履歴色、読み
取った注目画素の色である今色、主走査方向の領域判定
で決定された領域、及び履歴コード決定条件で既に決定
された副走査方向で1つ前の上画素の履歴コード、の4
つの条件を用いて領域を補正し、さらにその注目画素の
履歴コードを変更する。
From the left side of Table 5, the history color of the pixel of interest, the current color which is the color of the pixel of interest read, the area determined by the area determination in the main scanning direction, and the sub-scan already determined by the history code determination condition. 4 of the history code of the previous upper pixel in the direction
The area is corrected using one of the conditions, and the history code of the pixel of interest is changed.

【0081】表5の中で補正がかかる場合だけを説明す
る。補正がかからない場合は領域が正しく判定されてい
る場合である。
Only the case where correction is applied in Table 5 will be described. When no correction is applied, it means that the area is correctly determined.

【0082】履歴色が黒、注目画素が白で主走査方向に
はペイント領域と判定された場合において、上履歴コー
ドが“0”のときは、注目画素が隙間の空き過ぎでペイ
ント領域を正しく終了できなかった場合に対応する。つ
まり、1つ上の画素は白でノーマル領域になっているの
に、その下の画素がペイント領域に入っていることはあ
り得ないので、ノーマル領域に補正する。
When it is determined that the history color is black, the pixel of interest is white, and the area is the paint area in the main scanning direction, and the upper history code is "0", the area of interest is too large for the area of interest to correctly paint the area. It corresponds when it cannot be completed. That is, it is unlikely that the pixel one above is white and is in the normal region, but the pixel below it is not in the paint region, so the pixel is corrected to the normal region.

【0083】次に、履歴色がマーカー色、注目画素が白
で主走査方向にはノーマル領域と判定された場合におい
て、上履歴コードが“1”のときは、注目画素がペイン
ト領域に正しく入ることができなかった場合に対応す
る。つまり、1つ上の画素が履歴色として色を持つ白で
ペイント領域に入っていれば、その下の画素がノーマル
領域ということはあり得ないので、ペイント領域に補正
する。
Next, when it is determined that the history color is the marker color, the target pixel is white, and the normal region is in the main scanning direction, and the upper history code is "1", the target pixel correctly enters the paint region. If you can't do it. In other words, if the pixel one level above is in the paint area with white as the history color and is in the paint area, the pixel below it cannot be the normal area, so the pixel is corrected to the paint area.

【0084】次に、履歴色がマーカー色、注目画素が白
で主走査方向にはペイント領域と判定された場合におい
て、上履歴コードが“0”のときは、ペイント終了のマ
ーカーがはみ出し過ぎてペイント領域を終了できなかっ
た場合に対応する。つまり、1つ上の画素が白でノーマ
ル領域であるのに、その下の画素がペイント領域という
ことはあり得ないので、ノーマル領域に補正する。
Next, in the case where it is determined that the history color is the marker color, the target pixel is white, and the area is the paint area in the main scanning direction, and the upper history code is "0", the paint end marker is too large. It corresponds to the case where the paint area cannot be finished. That is, it is not possible that the pixel above is white and is a normal area, but the pixel below it is a paint area, so the pixel is corrected to a normal area.

【0085】最後に、注目画素がマーカー色でライン領
域にある場合において、上履歴コードが3であるとき
は、ライン領域とペイント領域が隣り合うことになるの
で、上の領域であるペイント領域に補正する。
Finally, when the pixel of interest is in the line area with the marker color and the upper history code is 3, the line area and the paint area are adjacent to each other. to correct.

【0086】以上に説明したような処理を行うことによ
り、図7で説明したような許容量を越える隙間あるいは
はみ出しに対しては、一時は誤った領域に入るが、その
後に補正され、正しい画像出力が可能となる。
By performing the above-described processing, a gap or protrusion exceeding the allowable amount as described with reference to FIG. 7 is temporarily in an erroneous area, but is corrected after that to obtain a correct image. Output is possible.

【0087】図16は、本発明のカラー画像処理装置の
他の実施例を示す図である。
FIG. 16 is a diagram showing another embodiment of the color image processing apparatus of the present invention.

【0088】前述したように、バンドの繋ぎデータは、
履歴色(黒、白、色の2ビット)、今色(黒、白、色の
2ビット)、領域(ノーマル、ペイント、ライン、ペイ
ント内ラインの2ビット)の計6ビット信号より構成さ
れている。この繋ぎデータを記憶する繋ぎメモリ62の
SRAMに汎用品を使う場合(例えば、8Kバイトや3
2Kバイトより構成されるSRAM)、一般的にデータ
バスは、8ビットより構成されている。従って、6ビッ
トの繋ぎデータを記憶する素子として汎用のSRAMを
使用する場合は、各アドレスごとに2ビットずつ使用さ
れない無駄な部分が生じてしまう。
As described above, the band connection data is
It consists of a total of 6-bit signals: history color (black, white, color 2 bits), current color (black, white, color 2 bits), area (normal, paint, line, line within paint) There is. When a general-purpose product is used as the SRAM of the connection memory 62 that stores this connection data (for example, 8 Kbytes or 3
An SRAM composed of 2 Kbytes), generally a data bus is composed of 8 bits. Therefore, when a general-purpose SRAM is used as an element for storing 6-bit concatenated data, there is a wasteful portion where 2 bits are not used for each address.

【0089】この点に関して、近年では、画像処理をデ
ジタルのハード回路で実施する場合、ASICの技術を
用いて専用の集積回路化することが一般的に行われてい
る。特に小規模なSRAMは、集積回路の中に1つ素子
として組み込むことが可能になり、汎用品を使用する必
要がなくなってきている。このような現状から、SRA
Mに同じ情報を記憶する場合に、どの様にしてその容量
を少なくするかが重要となってきている。
With respect to this point, in recent years, when image processing is carried out by a digital hardware circuit, it is generally performed by using an ASIC technique to form a dedicated integrated circuit. Particularly, a small-scale SRAM can be incorporated as one element in an integrated circuit, and it is not necessary to use a general-purpose product. Under such circumstances, SRA
When storing the same information in M, how to reduce the capacity is becoming important.

【0090】本実施例は上記の観点から、繋ぎメモリ6
2の容量を少なくするため、繋ぎデータをコード化して
記憶するようにしたものである。すなわち、繋ぎデータ
は、履歴色(黒、白、色の2ビット)、今色(黒、白、
色の2ビット)、領域(ノーマル、ペイント、ライン、
ペイント内ラインの2ビット)の計6ビットの全組み合
わせが必要ではなく、表4の履歴コード決定条件に示す
6種類の履歴コードの状態が分かればよいため、3ビッ
トデータとしてメモリに記憶することが可能である。
From the above point of view, the present embodiment is based on the connection memory 6
In order to reduce the capacity of 2, the connection data is coded and stored. That is, the connection data includes history color (black, white, and 2 bits of color), current color (black, white,
2 bits of color, area (normal, paint, line,
It is not necessary to use a total of 6 bits (2 bits of the line in the paint), and it is only necessary to know the states of the 6 types of history codes shown in the history code determination conditions in Table 4, so store them as 3 bit data in the memory. Is possible.

【0091】そこで、図16に示すように、繋ぎデータ
コード化回路92を設け、履歴色(黒、白、色の2ビッ
ト)、今色(黒、白、色の2ビット)、領域(ノーマ
ル、ペイント、ライン、ペイント内ラインの2ビット)
の計6ビットの信号を入力して3ビットの履歴コードに
変換し、バスコントローラ91へ送り出す。
Therefore, as shown in FIG. 16, a connection data encoding circuit 92 is provided, and history color (black, white, 2 bits of color), current color (black, white, 2 bits of color), area (normal). , Paint, line, line within paint)
6-bit signal is input, converted into a 3-bit history code, and sent to the bus controller 91.

【0092】繋ぎデータコード化回路92は、ROMか
ら構成されており、履歴色、今色、及び領域の各信号
は、ROMのアドレスに接続されている。このROMに
は、前もって決められている履歴色、今色、領域の全組
合せを履歴コードに変換する情報が記憶されている。履
歴コードは、バンドの繋ぎデータとして該ROMのデー
タバスより出力され、バスコントローラ91を介して繋
ぎメモリ62に記憶される。
The connection data encoding circuit 92 is composed of a ROM, and the history color, current color, and area signals are connected to the ROM address. This ROM stores information for converting all combinations of previously determined history colors, current colors, and areas into history codes. The history code is output from the data bus of the ROM as band connection data and stored in the connection memory 62 via the bus controller 91.

【0093】[0093]

【発明の効果】以上詳細に説明したように、本発明によ
れば、補正情報手段に記憶するライン情報数をライン方
向の画素数より少なくしたので、補正情報記憶手段の容
量を小さくすることができ、補正情報記憶手段として、
集積回路の中に1つ素子として組み込まれたSRAMを
使用することが可能となる。
As described in detail above, according to the present invention, since the number of line information stored in the correction information means is smaller than the number of pixels in the line direction, the capacity of the correction information storage means can be reduced. As a correction information storage means,
It is possible to use the SRAM incorporated as one element in the integrated circuit.

【0094】また、複数の色コードに分類されたコード
に対して2次元のエリア処理を施すエリア処理手段で使
用しているライン方向の画素に比べて、補正情報記憶手
段の使用する画素単位を少なくすることにより、簡単且
つ的確に補正情報記憶手段の容量を小さくすることが可
能となる。
In addition, the pixel unit used by the correction information storage means is compared with the pixels in the line direction used by the area processing means for performing two-dimensional area processing on the codes classified into a plurality of color codes. By reducing the number, it is possible to easily and accurately reduce the capacity of the correction information storage unit.

【0095】また、補正情報記憶手段に読み書きする情
報をコード化するので、より一層補正情報記憶手段の容
量を小さくすることができる。
Moreover, since the information to be read from and written to the correction information storage means is coded, the capacity of the correction information storage means can be further reduced.

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

【図1】本発明のカラー画像処理装置の実施例に係るフ
ルカラー複写機の画像処理の概略構成を示すブロック図
である。
FIG. 1 is a block diagram showing a schematic configuration of image processing of a full-color copying machine according to an embodiment of a color image processing apparatus of the present invention.

【図2】マーカー編集仕様を示す図である。FIG. 2 is a diagram showing a marker editing specification.

【図3】マーキングルールを説明する図である。FIG. 3 is a diagram illustrating a marking rule.

【図4】マーカー編集回路7の内部構成を示す図であ
る。
FIG. 4 is a diagram showing an internal configuration of a marker editing circuit 7.

【図5】領域判定時の記憶データを示す図である。FIG. 5 is a diagram showing stored data at the time of area determination.

【図6】尾引き処理を示す図である。FIG. 6 is a diagram showing a tailing process.

【図7】ルール違反による誤動作を示す図である。FIG. 7 is a diagram showing a malfunction due to a rule violation.

【図8】補正方法を示す図である。FIG. 8 is a diagram showing a correction method.

【図9】画像と履歴コードの関係を示す図である(その
1)。
FIG. 9 is a diagram showing a relationship between an image and a history code (No. 1).

【図10】画像と履歴コードの関係を示す図である(そ
の2)。
FIG. 10 is a diagram showing a relationship between an image and a history code (No. 2).

【図11】画像と履歴コードの他の関係を示す図である
(その1)。
FIG. 11 is a diagram showing another relationship between an image and a history code (No. 1).

【図12】画像と履歴コードの他の関係を示す図である
(その2)。
FIG. 12 is a diagram showing another relationship between an image and a history code (No. 2).

【図13】原稿の読取り位置を示す図である。FIG. 13 is a diagram showing a reading position of a document.

【図14】画像の読取り動作に関するタイミング信号の
関係を示す図である。
FIG. 14 is a diagram showing a relationship of timing signals regarding an image reading operation.

【図15】繋ぎメモリ62への読み書き動作に必要なタ
イミング信号を発生させるための制御ブロック図であ
る。
FIG. 15 is a control block diagram for generating a timing signal required for a read / write operation to the connection memory 62.

【図16】本発明のカラー画像処理装置の他の実施例を
示す図である。
FIG. 16 is a diagram showing another embodiment of the color image processing apparatus of the present invention.

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

1 CCDラインセンサ 7 マーカー編集回路 22 白黒判定回路 23 色判定回路 24 コード化回路 25 黒濃度生成回路 30 副走査方向ノイズ除去回路 40 主走査方向ノイズ除去回路 51 領域判定回路 52 FIFOメモリ 61 領域判定補正回路 62 繋ぎメモリ 72 印字色判定回路 73 濃度生成回路 92 繋ぎデータコード化回路 1 CCD line sensor 7 Marker editing circuit 22 Black and white determination circuit 23 Color determination circuit 24 Coding circuit 25 Black density generation circuit 30 Sub-scanning direction noise removal circuit 40 Main scanning direction noise removal circuit 51 Area determination circuit 52 FIFO memory 61 Area determination correction Circuit 62 Connection Memory 72 Print Color Judgment Circuit 73 Density Generation Circuit 92 Connection Data Encoding Circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/46 H04N 1/46 Z (72)発明者 本山 栄一 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 三上 文夫 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 山形 茂雄 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 新井 康治 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 野中 隆 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification number Reference number within the agency FI technical display location H04N 1/46 H04N 1/46 Z (72) Inventor Eiichi Motoyama 3-30 Shimomaruko, Ota-ku, Tokyo No. 2 Canon Inc. (72) Fumio Mikami 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (72) Inventor Shigeo Yamagata 3-30-2 Shimomaruko, Ota-ku, Tokyo Kya Non-Incorporated (72) Inventor Koji Arai 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (72) Inventor Takashi Nonaka 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 原稿を複数のバンドに分割して読取り、
多値データを出力する読取りセンサと、前記多値データ
を、色を表現する複数の色コードに分類するコード化手
段と、複数の色コードに分類されたコードに対し2次元
のエリア処理を施すエリア処理手段と、1ライン前の処
理情報を記憶する記憶手段と、該記憶手段の記憶内容を
読み出す読出し手段と、該読出し手段により読み出され
たデータと前記エリア処理手段の出力データとを合成し
て複数の出力コードを決定する出力コード決定手段と、
該出力コード決定手段の出力コードを条件に応じて補正
する補正手段と、該補正手段に接続され1バンド前の補
正情報を記憶しておく補正情報記憶手段と、センサ並び
方向の処理済み情報が存在しないバンドの先頭用にセン
サ並び方向の処理済み情報を前記補正情報記憶手段から
取り出す情報取り出し手段と、次のバンドの補正情報を
前記補正情報記憶手段に書き込む情報書き込み手段と、
前記補正手段から出力された補正コードを1ライン前の
処理情報として前記記憶手段に記憶させる記憶制御手段
と、前記補正手段により補正された出力コードを多値デ
ータに変換して出力する出力変換手段とを備えたカラー
画像処理装置において、 前記補正情報手段に記憶するライン情報数をライン方向
の画素数より少なくしたことを特徴とするカラー画像処
理装置。
1. A document is divided into a plurality of bands and read,
A reading sensor that outputs multi-valued data, a coding means that classifies the multi-valued data into a plurality of color codes that represent colors, and a two-dimensional area processing is performed on the codes that are classified into the plurality of color codes. Area processing means, storage means for storing processing information of one line before, reading means for reading the storage contents of the storage means, and data read by the reading means and output data of the area processing means Output code determining means for determining a plurality of output codes by
The correction code for correcting the output code of the output code determining means according to the condition, the correction information storage means for storing the correction information of the band before one, which is connected to the correction means, and the processed information of the sensor arrangement direction are Information retrieval means for retrieving processed information in the sensor arrangement direction for the head of a non-existing band from the correction information storage means, and information writing means for writing the correction information of the next band in the correction information storage means,
Storage control means for storing the correction code output from the correction means in the storage means as processing information for one line before, and output conversion means for converting the output code corrected by the correction means into multivalued data and outputting the multivalued data. In the color image processing apparatus including the above, the number of line information stored in the correction information unit is smaller than the number of pixels in the line direction.
【請求項2】 前記エリア処理手段で使用しているライ
ン方向の画素に比べて、前記補正情報記憶手段の使用す
る画素単位を少なくしたことを特徴とする請求項1記載
のカラー画像処理装置。
2. The color image processing apparatus according to claim 1, wherein the number of pixel units used by the correction information storage unit is smaller than the number of pixels in the line direction used by the area processing unit.
【請求項3】 前記補正情報記憶手段に読み書きする情
報がコード化されていることを特徴とする請求項1また
は2記載のカラー画像処理装置。
3. The color image processing apparatus according to claim 1, wherein the information to be read from and written to the correction information storage means is coded.
JP6242063A 1994-09-09 1994-09-09 Color image processor Pending JPH0884227A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6242063A JPH0884227A (en) 1994-09-09 1994-09-09 Color image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6242063A JPH0884227A (en) 1994-09-09 1994-09-09 Color image processor

Publications (1)

Publication Number Publication Date
JPH0884227A true JPH0884227A (en) 1996-03-26

Family

ID=17083734

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6242063A Pending JPH0884227A (en) 1994-09-09 1994-09-09 Color image processor

Country Status (1)

Country Link
JP (1) JPH0884227A (en)

Similar Documents

Publication Publication Date Title
US5014124A (en) Digital image processing apparatus
US7142717B2 (en) Image processing apparatus and method
EP0448330B1 (en) Method and apparatus for processing image
US7057775B2 (en) Image processing apparatus and method using image information and additional informational or an additional pattern added thereto or superposed thereon
JP2003259135A (en) Image processing apparatus and image processing method
US6330075B1 (en) Image processing method and apparatus
US7145693B2 (en) Image processing apparatus and method
US6744921B1 (en) Image processing apparatus and method that determines the thickness of characters and lines
US20040001230A1 (en) Image processing apparatus and method thereof
US20030169442A1 (en) Image processing device and image processing method
EP0643528B1 (en) Image processing apparatus capable of performing marker editing
US6661921B2 (en) Image process apparatus, image process method and storage medium
EP0662765B1 (en) Image processing apparatus and method
JP2005117504A (en) Image processing apparatus and image processing method
US6798544B1 (en) Image reading method, image reading device and image processing device
JPH0884227A (en) Color image processor
JP3224172B2 (en) Color image processing equipment
JPH078007B2 (en) Color image processing method
JPH0879541A (en) Color image processing apparatus and color image processing method
JP2947566B2 (en) In-frame area detection device
JP3210031B2 (en) Image processing apparatus and image processing method
JP2000341549A (en) Color image processing equipment
JP2000357237A (en) IMAGE PROCESSING APPARATUS, IMAGE READING APPARATUS AND IMAGE FORMING APPARATUS EQUIPPED WITH THE SAME, IMAGE PROCESSING METHOD, AND COMPUTER-READABLE STORAGE MEDIUM CONTAINING IMAGE PROCESSING PROCEDURE
JP2618893B2 (en) Color image processing equipment
JPH09247481A (en) Image processing device