JPH07193711A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH07193711A
JPH07193711A JP5330444A JP33044493A JPH07193711A JP H07193711 A JPH07193711 A JP H07193711A JP 5330444 A JP5330444 A JP 5330444A JP 33044493 A JP33044493 A JP 33044493A JP H07193711 A JPH07193711 A JP H07193711A
Authority
JP
Japan
Prior art keywords
signal
output
circuit
hit
input
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.)
Withdrawn
Application number
JP5330444A
Other languages
Japanese (ja)
Inventor
Masahiro Funada
正広 船田
Yoichi Takaragi
洋一 宝木
Masanori Yamada
昌敬 山田
Yasumichi Suzuki
康道 鈴木
Koichi Ishimoto
高一 石本
Takeshi Aoyanagi
剛 青柳
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 JP5330444A priority Critical patent/JPH07193711A/en
Publication of JPH07193711A publication Critical patent/JPH07193711A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To provide a device capable of correcting even an error due to the dispersion of a reading characteristic on plural reading positions of a picture reading means in addition to the reading of a reference original on plural positions in the reading range of the reading means and the correction of dispersion on the positions of the original. CONSTITUTION:A calibrating part 312 calibrates the dispersion of a reading characteristic included in a scanner part 201 based upon the read result of a reference original whose density is managed by the scanner part 201 by reading out the reference original on plural positions in the reading range of the scanner part 201.

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, for example, an image processing apparatus having a function of detecting a specific original.

【0002】[0002]

【従来技術】近年、複写機やプリンタ等の画像形成装置
の高画質化・カラー化にともない、紙幣・有価証券等、
本来複写されるべきでない原稿(以下、「 特定原稿」 と
記述する。)についての偽造の危惧が生じている。さら
に、複写機等の画像処理装置における「 特定原稿」 の認
識において、予め複数種類の特定原稿の特徴データを装
置内部に保持し、原稿読み取り部より入力された画像信
号の特徴と比較し、複数種類の特定原稿のうち少なくと
もひとつが存在するか否を判定し、これらの複写動作を
未然に防ぐ装置として、特願平4−282528号,特
願平4−282528号等の方式が提案されている。
2. Description of the Related Art In recent years, as image forming apparatuses such as copying machines and printers have become higher in image quality and color, bills, securities, etc.
There is a fear of counterfeiting of manuscripts that should not be copied (hereinafter referred to as "specific manuscripts"). Furthermore, when recognizing a “specific document” in an image processing apparatus such as a copying machine, the characteristic data of a plurality of types of specific originals is held in advance inside the apparatus, and compared with the characteristics of the image signal input from the document reading unit, As a device for determining whether or not at least one of specific types of originals is present and preventing these copying operations from occurring, there are proposed methods such as Japanese Patent Application No. 4-252828 and No. 4-252828. There is.

【0003】更に、「特定原稿」の認識精度を維持する
ためには、読み取り部の特性ばらつきを小さくおさえる
ことが重要となる。このため、これを校正する手段が設
けられた装置として、校正用の基準白色板を画像読み取
り部にて読み込ませて、画像読み取り部の装置間の特性
ばらつきを校正する装置として、特願平4−25820
7号記載の装置が提案されている。
Further, in order to maintain the recognition accuracy of the "specific document", it is important to suppress the characteristic variation of the reading section. Therefore, as a device provided with a means for calibrating this, as a device for reading a reference white plate for calibration by the image reading unit and calibrating the characteristic variation between the devices of the image reading unit, Japanese Patent Application No. -25820
The device described in No. 7 has been proposed.

【0004】即ち、図79に示す様に、原稿読み取り手
段のプラテンガラス203の予め定められた位置、例え
ば図79に示す様にプラテンガラスの左端中央部に、前
記基準白色板651を置いてこれを読み込むことによっ
て画像読み取り部の特性を把握し、その特性ばらつきを
補正していた。
That is, as shown in FIG. 79, the reference white plate 651 is placed at a predetermined position of the platen glass 203 of the document reading means, for example, at the center of the left end of the platen glass as shown in FIG. The characteristics of the image reading unit are grasped by reading the, and the characteristic variations are corrected.

【0005】[0005]

【発明が解決しようとしている課題】しかしながら前記
従来技術においては、校正用の基準白色板を画像読み取
り部の原稿台の一箇所のみで読み込み、画像読み取り装
置の特性を校正するものであったために、以下の様な不
具合が生じた。即ち、画像読み取り部の特性は、プラテ
ンガラス上の位置によっても若干のばらつきが生ずる。
ところが、上述した従来例においては、たとえば図79
の651に示す位置に校正用の基準白色板を置いて、そ
の特性のばらつきを校正していたために、どうしても校
正誤差が生ずることが避けられなかった。
However, in the above-mentioned prior art, since the reference white plate for calibration is read in only one place of the original plate of the image reading unit to calibrate the characteristics of the image reading apparatus, The following problems occurred. That is, the characteristics of the image reading unit also slightly vary depending on the position on the platen glass.
However, in the above-mentioned conventional example, for example, FIG.
Since the reference white plate for calibration was placed at the position indicated by No. 651 to calibrate the variation in the characteristics, it was unavoidable that a calibration error occurred.

【0006】[0006]

【問題を解決するための手段】本発明は上述の課題を解
決することを目的としてなされたもので、上述の課題を
解決する一手段として以下の構成を備える。即ち、原稿
画像を読み取る画像読み取り手段と、前記画像読み取り
手段よりの読み取り画像信号を電気的に処理する画像信
号処理手段と、前記画像信号処理手段による画像信号の
処理において前記画像信号の特徴と予め登録された特定
原稿の有無を判定する判定手段と、濃度管理された標準
原稿を読み込み、読み取り結果に基づいて前記画像読み
取り手段のもつ読み取り特性のばらつきを校正する校正
手段とを備え、前記校正手段は前記画像読み取り手段の
読み取り範囲の中の複数箇所で前記標準原稿を読み込む
ことによって前記校正を行なう。
The present invention has been made for the purpose of solving the above-mentioned problems, and has the following structure as one means for solving the above-mentioned problems. That is, the image reading means for reading the original image, the image signal processing means for electrically processing the read image signal from the image reading means, and the characteristics of the image signal in advance in the processing of the image signal by the image signal processing means. The calibration means includes a determination means for determining the presence or absence of a registered specific original document, and a calibration means for reading a standard document whose density is controlled and calibrating variations in the reading characteristics of the image reading means based on the reading result. Performs the calibration by reading the standard document at a plurality of locations within the reading range of the image reading means.

【0007】[0007]

【作用】以上の構成において、画像読み取り手段での読
み取り範囲の中の複数箇所において、標準原稿を読み込
み、原稿の位置によるばらつき補正するのみならず、読
み取り手段の読み取り位置における読み取り特性のばら
つきに起因する誤差をも補正できる。
With the above arrangement, not only the standard original is read at a plurality of positions within the reading range of the image reading means to correct the variation due to the position of the original, but also due to the variation of the reading characteristic at the reading position of the reading means. You can also correct the error.

【0008】[0008]

【実施例】以下、図面を参照して本発明に係る一実施例
を詳細に説明する。以下の説明は本発明の適用例として
複写機の例が示されるが、これに限るものではなく、他
の種々の装置に適用できることはもちろんである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described in detail below with reference to the drawings. In the following description, an example of a copying machine is shown as an application example of the present invention, but the present invention is not limited to this, and it is needless to say that it can be applied to various other apparatuses.

【0009】[0009]

【第1の実施例】 [装置概観]図1に本発明に係る一実施例装置概観図を
示す。図1において、201は原稿を読み取り、ディジ
タル信号処理を行うイメージスキャナ部、202はイメ
ージスキャナ201によって読み取られた原稿画像に対
応した画像を用紙にフルカラーでプリント出力するプリ
ンタ部である。
First Embodiment [Apparatus Overview] FIG. 1 shows an overview of an apparatus according to an embodiment of the present invention. In FIG. 1, 201 is an image scanner unit that reads a document and performs digital signal processing, and 202 is a printer unit that prints out an image corresponding to the document image read by the image scanner 201 on paper in full color.

【0010】イメージスキャナ201において、200
は鏡面圧板である。原稿台ガラス(以下「プラテン」と
称す。)203上の原稿204は、ランプ205で照射
され、ミラー206、207、208に導かれ、レンズ
209によって3ラインの個体撮像素子センサ(以下
「CCD」と称す。)210上に像を結び、フルカラー
情報としてのレッド(R)、グリーン(G)、ブルー
(B)の3つの画像信号が信号処理部211に送られ
る。
In the image scanner 201, 200
Is a mirror surface plate. A document 204 on a platen glass (hereinafter referred to as a “platen”) 203 is illuminated by a lamp 205, guided to mirrors 206, 207, and 208, and a three-line solid-state image sensor (hereinafter referred to as “CCD”) by a lens 209. An image is formed on the image 210 and three image signals of red (R), green (G), and blue (B) as full-color information are sent to the signal processing unit 211.

【0011】なお、ランプ205、ミラー206は速度
vで、ミラー207,208は速度(1/2 )vでライン
センサの配設方向(主走査方向)に対して垂直方向に機
械的に動くことによって、原稿全面を走査(副走査)す
る。ここで、原稿204は、主走査および副走査ともに
400dpi(dots/inch) の解像度で読み取られる。211は
信号処理部であり、信号処理部211はCCD210に
よって読み取られた画像信号を電気的に処理し、マゼン
タ(M)、シアン(C)、イエロ(Y)、ブラック(B
k)の各成分に分解し、プリンタ部202に送る。ま
た、イメージスキャナ201における一回の原稿走査に
つき、M、C、Y、Bkのうちひとつの成分がプリンタ
部202に送られ、計4回の原稿走査によって、一回の
プリントアウトが完成する。
The lamp 205 and the mirror 206 are mechanically movable at a speed v, and the mirrors 207 and 208 are mechanically moved at a speed (1/2) v in a direction perpendicular to the line sensor arrangement direction (main scanning direction). Thus, the entire surface of the document is scanned (sub-scanning). Here, the original 204 is subjected to both main scanning and sub scanning.
Scanned at a resolution of 400dpi (dots / inch). A signal processing unit 211 electrically processes an image signal read by the CCD 210, and magenta (M), cyan (C), yellow (Y), and black (B).
It is decomposed into each component of k) and sent to the printer unit 202. In addition, one component of M, C, Y, and Bk is sent to the printer unit 202 for each document scanning by the image scanner 201, and one printout is completed by a total of four document scanning.

【0012】イメージスキャナ部201より送られてく
るM、C、Y、Bkの各画像信号は、レーザドライバ2
12に送られる。レーザドライバ212は、送られてき
た画像信号に応じて半導体レーザ213を変調駆動す
る。半導体レーザ213よりのレーザ光は、ポリゴンミ
ラー214、f−θレンズ215、ミラー216を介
し、感光ドラム217上を走査する。ここで、読み取り
と同様に主走査および副走査ともに400dpi(dots/inch)
の解像度で書込まれる。
The M, C, Y, and Bk image signals sent from the image scanner unit 201 are supplied to the laser driver 2.
Sent to 12. The laser driver 212 modulates and drives the semiconductor laser 213 according to the sent image signal. Laser light from the semiconductor laser 213 scans the photosensitive drum 217 via a polygon mirror 214, an f-θ lens 215, and a mirror 216. Here, 400 dpi (dots / inch) for both main scanning and sub-scanning as in reading
Written in resolution.

【0013】218は回転現像器であり、マゼンタ現像
部219、シアン現像部220、イエロ現像部221、
ブラック現像部222より構成され、4つの現像部が交
互に感光ドラム217に接し、感光ドラム上に形成され
た静電現像をトナーで現像する。223は転写ドラムで
あり、用紙カセット224または用紙カセット225よ
り供給される用紙をこの転写ドラム223に巻き付け、
感光ドラム上に現像された像を用紙に転写する。
Reference numeral 218 denotes a rotary developing device, which includes a magenta developing section 219, a cyan developing section 220, a yellow developing section 221,
The black developing unit 222 is composed of four developing units alternately contacting the photosensitive drum 217 to develop the electrostatic development formed on the photosensitive drum with toner. 223 is a transfer drum, and the paper supplied from the paper cassette 224 or the paper cassette 225 is wound around the transfer drum 223,
The image developed on the photosensitive drum is transferred to a sheet.

【0014】この様にして、M、C、Y、Bkの4色が
順次転写された用紙は、定着ユニット226を通過して
トナーが用紙に定着された後に排紙される。また、22
7はICカードであり、イメージスキャナ201に組み
込まれているカードリーダ228に挿入することによ
り、ICカード227に保持されている情報を装置に転
送することができる。
In this way, the paper on which the four colors of M, C, Y and Bk are sequentially transferred passes through the fixing unit 226 and the toner is fixed on the paper, and then the paper is ejected. Also, 22
Reference numeral 7 denotes an IC card, which can be inserted into a card reader 228 incorporated in the image scanner 201 to transfer the information held in the IC card 227 to the apparatus.

【0015】[イメージスキャナ]図2は、イメージス
キャナ201における画像処理の流れを示すブロック図
である。図2において、210−1,210−2,21
0−3はそれぞれ、レッド(R)、グリーン(G)、ブ
ルー(B)の分光感度特性をもつCCD(個体撮像素
子)センサであり、A/D変換された後にそれぞれ8ビ
ット出力(0〜255)の信号が出力される。
[Image Scanner] FIG. 2 is a block diagram showing the flow of image processing in the image scanner 201. In FIG. 2, 210-1, 210-2, 21
Reference numerals 0-3 denote CCD (solid-state image sensor) sensors having spectral sensitivity characteristics of red (R), green (G), and blue (B), respectively, which are 8-bit output (0 to 0) after A / D conversion. 255) signal is output.

【0016】312- 1,312- 2,312- 3はそ
れぞれ画像読み取り部の読み取り特性のばらつきを校正
する校正手段であり、詳細説明は後述する。更に、本実
施例において用いられるCCDセンサ210−1,21
0−2,210−3は一定の距離を隔てて配置されてい
る為ディレイ素子301および302においてその空間
的ずれが補正され、R、G、Bの各画像信号が出力され
る。
Reference numerals 312-1, 312-2 and 312-3 are calibrating means for calibrating variations in the reading characteristics of the image reading section, which will be described in detail later. Furthermore, CCD sensors 210-1 and 21 used in this embodiment.
Since 0-2 and 210-3 are arranged at a fixed distance, the spatial shifts of the delay elements 301 and 302 are corrected, and R, G, and B image signals are output.

【0017】303,304,305はlog変換器で
あり、ルックアップテーブルROMまたはRAMにより
構成され、輝度信号が濃度信号に変換される。306は
公知のマスキング及びUCR(下色除去)回路であり、
詳しい説明は省略するが、入力された3信号により、出
力のためのマゼンタ(M)、シアン(C)、イエロ
(Y)、ブラック(Bk)の各信号各読み取り動作の度
に面順次に所定のビット長、例えば8ビットで出力され
る。
Reference numerals 303, 304 and 305 denote log converters, which are constituted by a look-up table ROM or RAM and convert a luminance signal into a density signal. 306 is a known masking and UCR (under color removal) circuit,
Although a detailed description is omitted, each of the three signals that have been input causes the magenta (M), cyan (C), yellow (Y), and black (Bk) signals to be output in a frame-sequential manner for each reading operation. Is output with a bit length of, for example, 8 bits.

【0018】ここで、CNO信号は、2ビットの面順次
信号であり、4回の読み取り動作の順番を第1表の如く
に示す制御信号であり、マスキング/UCR回路306
の動作条件を切り替える。
Here, the CNO signal is a 2-bit field sequential signal, and is a control signal indicating the order of four read operations as shown in Table 1, and the masking / UCR circuit 306.
Switch the operating conditions of.

【0019】[0019]

【表1】 307は公知の空間フィルタ回路であり、出力信号の空
間周波数の補正を行う。308は濃度変換回路であり、
プリンタ部202のもつ濃度特性を補正するものであ
り、303〜305のlog変換器と同様なROMまた
はRAMで構成される。
[Table 1] A known spatial filter circuit 307 corrects the spatial frequency of the output signal. 308 is a density conversion circuit,
The density characteristic of the printer unit 202 is corrected, and the printer unit 202 is composed of the same ROM or RAM as the log converters 303 to 305.

【0020】一方、309は特定原稿の判定手段であ
り、32種類の判定条件に基づいて特定原稿の判定を行
い、判定結果を32ビットのHIT信号として出力す
る。即ち、32種類の判定条件それぞれに対して、もし
条件に合致すれば“1”を、条件に合致しなければ
“0”をHIT信号として発生する。311は本実施例
装置の全体制御を司るマイクロプロセッサ(以下「CP
U」と称す。)である。CPU309は、判定回路30
9を制御し、複数の判定条件に基づく判定結果であるH
IT信号に基づき予め登録された複数の特定原稿のうち
すくなくともひとつ以上の特定原稿が存在すると判定さ
れた場合、複写禁止信号INHIBITを出力する。さ
らにCPU311は、判定回路309にある読み出し専
用メモリ(ROM)に付加されている固有の認識符号
(ID)を認識することができ、その際の制御信号がR
ID信号であり、読み込まれるIDがROM1−ID信
号およびROM2−ID信号である。
On the other hand, reference numeral 309 denotes a specific manuscript judging means, which judges the specific manuscript based on 32 kinds of judgment conditions, and outputs the judgment result as a 32-bit HIT signal. That is, for each of the 32 types of determination conditions, if the conditions are met, "1" is generated as a HIT signal, and if not, "0" is generated as a HIT signal. Reference numeral 311 denotes a microprocessor (hereinafter referred to as “CP
"U". ). The CPU 309 has a determination circuit 30.
9 which is a judgment result based on a plurality of judgment conditions.
If it is determined based on the IT signal that at least one specific document among the plurality of specific documents registered in advance is present, the copy inhibition signal INHIBIT is output. Further, the CPU 311 can recognize the unique identification code (ID) added to the read-only memory (ROM) in the determination circuit 309, and the control signal at that time is R
The ID signal is the ID signal, and the read IDs are the ROM1-ID signal and the ROM2-ID signal.

【0021】310は複写禁止手段であり、複数の特定
原稿が複写されるのを未然に防ぐためのORゲート回路
であり、濃度変換手段308の8ビット出力Vに対し、
CPU311よりの出力INHIBIT信号と論理OR
がとられ、V’を出力する。結果として、INHIBI
T=“1”のとき、すなわち、特定原稿を読み取ってい
ると判定された場合には、入力信号Vの値にかかわらず
に出力は V’=FF/Hex(255/DEC)となり、判定
信号INHIBIT=0のとき、すなわち、特定原稿を
読み取っていないと判定された場合には、入力信号Vの
値がそのまま出力信号V’として出力される。
Reference numeral 310 denotes a copy prohibiting means, which is an OR gate circuit for preventing a plurality of specific originals from being copied, which corresponds to the 8-bit output V of the density converting means 308.
Output ORHIBIT signal from CPU 311 and logical OR
Is output and V'is output. As a result, INHIBI
When T = “1”, that is, when it is determined that the specific document is read, the output becomes V ′ = FF / Hex (255 / DEC) regardless of the value of the input signal V, and the determination signal When INHIBIT = 0, that is, when it is determined that the specific document is not read, the value of the input signal V is output as it is as the output signal V ′.

【0022】[イメージスキャナの校正]図2の校正手
段312- 1,312- 2,312- 3は、原稿読み取
り部の読み取り特性のばらつきを補正するものである。
以下、図78を参照して本実施例の校正の方法について
述べる。本実施例においては、図78に示すプラテンガ
ラス203上の5箇所、即ち、641(左上)、642
(左下)、643(中央)、644(右上)、645
(右下)の5箇所で、予めその濃度が既知である校正用
の標準白色板を読み込ませることで、原稿読み取り部の
読み取り位置の相違に基づく読み取り特性のばらつきを
把握する。
[Calibration of Image Scanner] The calibrating means 312-1, 312-2, 312-3 shown in FIG. 2 are for correcting variations in the reading characteristics of the document reading section.
The calibration method of this embodiment will be described below with reference to FIG. In this embodiment, five points on the platen glass 203 shown in FIG. 78, that is, 641 (upper left), 642.
(Lower left), 643 (center), 644 (upper right), 645
By reading a standard white plate for calibration whose density is known in advance at five points (lower right), it is possible to grasp the variation in the reading characteristics based on the difference in the reading position of the document reading unit.

【0023】5箇所における標準白色板の読み取り値
(R, G, B信号)をそれぞれ、(RT1, GT1, B
T1)、(RT2, GT2, BT2)、(RT3, GT
3, BT3)、(RT4, GT4, BT4)、(RT
5, GT5, BT5)とすると、校正手段312- 1,
312- 2,312- 3は以下の補正式によって校正を
行なう。
The read values (R, G, B signals) of the standard white plate at five points are respectively (RT1, GT1, B).
T1), (RT2, GT2, BT2), (RT3, GT
3, BT3), (RT4, GT4, BT4), (RT
5, GT5, BT5), the calibration means 312-1,
The 312-2 and 312-3 are calibrated by the following correction formula.

【0024】即ち、That is,

【0025】[0025]

【数1】RT0=(RT1+RT2+RT3+RT4+
RT5)/5 GT0=(GT1+GT2+GT3+GT4+GT5)
/5 BT0=(BT1+BT2+BT3+BT4+BT5)
/5 の式で、5箇所の読み取り位置における読み取り信号を
平均し、読み取り場所によるばらつきによる影響を軽減
する。
## EQU1 ## RT0 = (RT1 + RT2 + RT3 + RT4 +
RT5) / 5 GT0 = (GT1 + GT2 + GT3 + GT4 + GT5)
/ 5 BT0 = (BT1 + BT2 + BT3 + BT4 + BT5)
The read signals at the five reading positions are averaged by the formula / 5 to reduce the influence of variations due to the reading positions.

【0026】更に、校正手段312- 1においては、次
式による校正が行なわれる。
Further, the calibration means 312-1 carries out calibration according to the following equation.

【0027】[0027]

【数2】Rout =Rin×RTGT/RT0 但しRin; 校正前データ即ち校正手段への入力 Rout;校正後データ即ち校正手段からの出力 RTGT; 標準白色板の読み取られるべき値 同様にして、校正手段312- 2においては、次式によ
る校正が行なわれる。
## EQU00002 ## Rout = Rin.times.RTGT / RT0 where Rin; pre-calibration data, that is, input to the calibration means Rout; post-calibration data, that is, output from the calibration means RTGT; In 312-2, calibration according to the following equation is performed.

【0028】[0028]

【数3】Gout =Gin×GTGT/GT0 但しGin; 校正前データ即ち校正手段への入力 Gout;校正後データ即ち校正手段からの出力 GTGT; 標準白色板の読み取られるべき値 校正手段312- 1においては、次式による校正が行な
われる。
## EQU00003 ## Gout = Gin.times.GTGT / GT0 where Gin; pre-calibration data, that is, input to the calibration means Gout; post-calibration data, that is, output from the calibration means GTGT; Is calibrated by the following equation.

【0029】[0029]

【数4】Bout =Bin×BTGT/BT0 但しBin; 校正前データ即ち校正手段への入力 Bout;校正後データ即ち校正手段からの出力 BTGT; 標準白色板の読み取られるべき値 以上の校正を行うことにより、装置間の読み取り特性の
ばらつきを補正するとちもに、原稿読み取りプラテンガ
ラス上の読み取り位置における特性ばらつきによる誤差
の影響を小さくすることができる。
## EQU4 ## Bout = Bin × BTGT / BT0 where Bin; pre-calibration data, that is, input to the calibration means Bout; post-calibration data, that is, output from the calibration means, BTGT; As a result, it is possible to correct the variation in the reading characteristic between the devices and reduce the influence of the error due to the characteristic variation in the reading position on the original reading platen glass.

【0030】[同期信号タイミングチャート]図3に本
実施例装置における同期信号のタイミングチャートを示
す。401は主走査のタイミングを示すタイミングチャ
ート、402は短区間の副走査のタイミングを示すタイ
ミングチャート、403は長区間の副走査のタイミング
を示すタイミングチャートである。以下詳細に説明す
る。
[Synchronization signal timing chart] FIG. 3 shows a timing chart of the synchronization signal in the apparatus of this embodiment. Reference numeral 401 is a timing chart showing the timing of the main scanning, 402 is a timing chart showing the timing of the sub scanning in the short section, and 403 is a timing chart showing the timing of the sub scanning in the long section. The details will be described below.

【0031】先ず主走査のタイミングを示す401にお
いて、CLK信号は本実施例における基本クロック信号
であり、CLK信号の立ち上がりに同期して1画素単位
の画像処理が行われる。HSYNC信号は主走査同期信
号であり、HSYNC信号の立ち上がりで主走査の開始
の同期をとる。CLK4信号はCLK信号を4分周した
信号であり、CLK信号とともに図2に示す判定回路3
09の基本動作の同期をとる信号である。XPHS信号
は主走査の位相信号であり、CLK4信号に対応して、
0〜3を繰り返す信号である。
First, at 401 indicating the timing of main scanning, the CLK signal is the basic clock signal in this embodiment, and the image processing is performed in pixel units in synchronization with the rising edge of the CLK signal. The HSYNC signal is a main scanning synchronization signal, and the start of main scanning is synchronized with the rising edge of the HSYNC signal. The CLK4 signal is a signal obtained by dividing the CLK signal by four, and together with the CLK signal, the determination circuit 3 shown in FIG.
This is a signal for synchronizing the basic operation of 09. The XPHS signal is a main scanning phase signal, and corresponds to the CLK4 signal.
This signal repeats 0 to 3.

【0032】XD0は、XPHS信号が“0”である場
合に“0”となり、XPHS信号が“0”以外である場
合に“1”となる信号である。XD1は、XPHS信号
が“1”である場合に“0となり”、XPHS信号が
“1”以外である場合に“1”となる信号である。ま
た、XD2は、XPHS信号が“2”である場合に
“0”となり、XPHS信号が“2”以外である場合に
“1”となる信号である。XD3は、XPHS信号が
“3”である場合に“0”となり、XPHS信号が
“3”以外である場合に“1”となる信号である。
XD0 is a signal which becomes "0" when the XPHS signal is "0" and becomes "1" when the XPHS signal is other than "0". XD1 is a signal that becomes "0" when the XPHS signal is "1" and becomes "1" when the XPHS signal is other than "1". The XD2 is a signal that becomes "0" when the XPHS signal is "2" and becomes "1" when the XPHS signal is other than "2". XD3 is a signal that becomes "0" when the XPHS signal is "3" and becomes "1" when the XPHS signal is other than "3".

【0033】図3の402において、YPHS信号は副
走査の位相信号であり、HSYNC信号の立ち上がりに
同期して0〜3の値を繰り返し出力する。HS4信号は
HSYNC信号を4分周して、CLK4信号1周期幅分
だけ“1”となる様にした信号である。YD0は、YP
HS信号が“0”である場合に“0”となり、YPHS
信号が“0”以外である場合に“1”となる信号であ
る。YD1は、YPHS信号が“1”である場合に
“0”となり、YPHS信号が“1”以外である場合に
“1”となる信号である。YD2は、YPHS信号が
“2”である場合に“0”となり、YPHS信号が
“2”以外である場合に“1”となる信号である。YD
3は、YPHS信号が“3”である場合に“0”とな
り、YPHS信号が“3”以外である場合に“1”であ
る信号である。
In 402 of FIG. 3, the YPHS signal is a sub-scanning phase signal, and values 0 to 3 are repeatedly output in synchronization with the rising edge of the HSYNC signal. The HS4 signal is a signal obtained by frequency-dividing the HSYNC signal by 4 so as to be "1" for one cycle width of the CLK4 signal. YD0 is YP
If the HS signal is "0", it becomes "0", and YPHS
It is a signal that becomes "1" when the signal is other than "0". YD1 is a signal that becomes "0" when the YPHS signal is "1" and becomes "1" when the YPHS signal is other than "1". YD2 is a signal that becomes "0" when the YPHS signal is "2" and becomes "1" when the YPHS signal is other than "2". YD
3 is a signal which is "0" when the YPHS signal is "3" and is "1" when the YPHS signal is other than "3".

【0034】図3の403において、VS信号は副走査
イネーブル信号であり、“1”の区間でマゼンタ
(M)、シアン(C)、イエロー(Y)、ブラック(B
k)の順に像形成が行われる。CNO信号は、前述の面
順次信号であり、VS信号の立ち上がりに同期して0,
1.2,3の値をとる。 [判定の単位]図2に示す判定回路309における判定
処理は、4×4の画素ブロック単位で行われる。図4に
4×4画素ブロックを示す。図4の501に示す様な4
×4画素ブロックにおいて判定処理がなされ、4×4画
素ブロックに同期して、主走査方向には前述のXPHS
信号が0,1.2,3の値を繰り返し、副走査方向には
前述のYPHS信号が0,1.2,3の値を繰り返す。
In 403 of FIG. 3, the VS signal is a sub-scan enable signal, and magenta (M), cyan (C), yellow (Y), black (B) in the section of "1".
Image formation is performed in the order of k). The CNO signal is the above-mentioned frame sequential signal, and is 0, in synchronization with the rising edge of the VS signal.
It takes the values of 1.2 and 3. [Unit of determination] The determination processing in the determination circuit 309 shown in FIG. 2 is performed in units of 4 × 4 pixel blocks. FIG. 4 shows a 4 × 4 pixel block. 4 as shown at 501 in FIG.
The determination processing is performed in the × 4 pixel block, and the XPHS described above in the main scanning direction is synchronized with the 4 × 4 pixel block.
The signal repeats the values of 0, 1.2 and 3, and the YPHS signal described above repeats the values of 0, 1.2 and 3 in the sub-scanning direction.

【0035】本実施例にいては、YPHS信号が
“0”、“1”、“2”、“3”の場合に、それぞれ異
なる8種類ずつの判定条件について時分割して判定がお
こなわれ、合計して32種類の判定条件についての判定
が行われる。 [通常動作モードと試験モード]さらに本実施例におけ
る画像処理モードとしては、通常動作モードと試験モー
ドにわけられる。
In this embodiment, when the YPHS signal is "0", "1", "2", and "3", the determination conditions are determined by time division with respect to eight different determination conditions. A total of 32 types of determination conditions are determined. [Normal Operation Mode and Test Mode] Further, the image processing mode in this embodiment is divided into a normal operation mode and a test mode.

【0036】試験モードにおいては、予め「特定原稿」
に模して作成された試験用原稿を読み取り、判定動作を
行うことで、イメージスキャナおよび判定回路の動作確
認をおこなう。 (試験用原稿)図75に本実施例で用いる試験用原稿の
例を示す。試験用原稿は対象とする特定原稿を模したも
のであり、特定原稿の特徴と似た特徴を持つ様に作成さ
れる。本実施例においては、主要国(たとえば日、米、
英、仏、独等)の主要紙幣を対象としているが、一部の
例外をのぞき、これらの主要紙幣の多くに共通する特徴
としては、次の様な特徴がある。
In the test mode, "specific document" is set in advance.
By reading a test document created by imitation and performing a judgment operation, the operation of the image scanner and the judgment circuit is confirmed. (Test Original) FIG. 75 shows an example of the test original used in this embodiment. The test manuscript is a copy of the target specific manuscript, and is created to have characteristics similar to those of the particular manuscript. In this embodiment, major countries (for example, Japan, US,
(British, French, German, etc.) Main bills are targeted, but with some exceptions, the features common to many of these main bills are as follows.

【0037】即ち、主要紙幣の多くは、複数色の線画で
描かれており、そのピッチは、おおむね2 本/mm 〜6 本
/mm である。従って本実施例の判定回路309もこの特
徴を考慮して設計されている。そこで、試験用の原稿と
しても、おおむね2 本/mm 〜6 本/mm の複数色の線画で
描かれているパターンを含む原稿を試験用原稿とする。
That is, most of the main banknotes are drawn by line drawings of plural colors, and the pitch thereof is about 2 / mm to 6 lines.
/ mm. Therefore, the determination circuit 309 of this embodiment is also designed in consideration of this feature. Therefore, as a test document, a document containing a pattern drawn with a line drawing of multiple colors of approximately 2 lines / mm to 6 lines / mm should be used as the test document.

【0038】(試験モードの流れを示すタイミングチャ
ート)図76に示すフローチャートは、本実施例の上述
した試験モードの動作を示すフローチャートである。図
76を参照して以下本実施例の試験モードの処理を説明
する。ステツプ6101にて装置電源が投入されると図
76の処理に移行し、ステツプ6102では、通常動作
モードであるか試験モードであるかの判定が行われる。
この判定は、電源投入直後に操作部により特定のキー入
力があったか否かで判定される。図77に本実施例装置
の操作部の外観を示すが、この操作部を用いて例えば、
“*”、“1”、“2”、“3”、“3”、“2”、
“1”、“*”と入力された場合には、試験モードと判
定され、そうでない場合には、通常動作モードとなる。
ステツプ6102において通常動作モードであると判定
された場合には、ステツプ6103の処理に移行し通常
動作モード用の設定がなされる。(詳細説明は後述す
る。)続くステツプ6104でコピースタートキーが押
下されたか否かを判定する。ステツプ6104でコピー
スタートが押下された判定された場合にはステツプ61
05に進み、紙幣の検知動作処理を実行する。そしてス
テップ6104に戻る。
(Timing Chart showing Flow of Test Mode) The flow chart shown in FIG. 76 is a flow chart showing the operation of the above-mentioned test mode of this embodiment. The test mode processing of this embodiment will be described below with reference to FIG. When the apparatus power is turned on in step 6101, the process moves to the process of FIG. 76, and in step 6102, it is determined whether the operation mode is the normal operation mode or the test mode.
This determination is made based on whether or not there is a specific key input from the operation unit immediately after the power is turned on. FIG. 77 shows the appearance of the operation unit of the apparatus of this embodiment.
"*", "1", "2", "3", "3", "2",
If "1" or "*" is input, it is determined to be the test mode, and if not, the normal operation mode is set.
If it is determined in step 6102 that the operation mode is the normal operation mode, the process proceeds to step 6103 to set the normal operation mode. (Detailed description will be given later.) In a succeeding step 6104, it is determined whether or not the copy start key is pressed. If it is determined in step 6104 that copy start has been pressed, step 61
In step 05, the bill detecting operation process is executed. Then, the process returns to step 6104.

【0039】一方、ステツプ6102において試験モー
ドであると判定された場合にはステツプ6106に進
み、試験モード用の設定がなされる。(詳細説明は後述
する。)続くステツプ6107ではコピースタートキー
が押下されたか否かを判定する。ステツプ6107でも
しコピースタートキーが押下されたと判定された場合に
はステツプ6108の試験用原稿の検知動作処理を実行
する。そしてステップ6107に戻る。
On the other hand, if it is determined in step 6102 that the mode is the test mode, the flow advances to step 6106 to set the test mode. (Detailed description will be given later.) In a succeeding step 6107, it is determined whether or not the copy start key is pressed. If it is determined in step 6107 that the copy start key has been pressed, the test document detection operation processing in step 6108 is executed. Then, the process returns to step 6107.

【0040】「判定回路309」図5に本実施例の判定
回路309の詳細ブロック構成図を示す。図5におい
て、ディジタルカラー画像信号であるR、G、B信号
が、CLK信号、HSYNC信号に同期して入力され、
判定結果がHIT信号としてCPU311に送られる。
[Determination Circuit 309] FIG. 5 shows a detailed block diagram of the determination circuit 309 of this embodiment. In FIG. 5, R, G and B signals which are digital color image signals are input in synchronization with the CLK signal and the HSYNC signal,
The determination result is sent to the CPU 311 as a HIT signal.

【0041】101は係数設定回路であり、判定回路3
09を動作させるにあたり、諸々の設定係数が保持され
る。102は係数ROM(以下「ROM1」と称す。)
であり、係数設定回路101に設定すべき係数が予め保
持されており、カウンタ回路144による発生したアド
レスでROM1(102)をアドレスし、設定されるべ
き係数が順次係数レジスタ148に設定される。
Reference numeral 101 denotes a coefficient setting circuit, which is a judgment circuit 3
When operating 09, various setting coefficients are held. 102 is a coefficient ROM (hereinafter referred to as "ROM1").
The coefficient to be set in the coefficient setting circuit 101 is held in advance, the ROM 1 (102) is addressed by the address generated by the counter circuit 144, and the coefficient to be set is sequentially set in the coefficient register 148.

【0042】103はCLK信号およびHSYNC信号
を分周する分周回路、104は読み取り原稿中の画像特
徴を検出する画像特徴抽出回路、105は読み取り画像
信号を平滑化するスムージング回路、106は400dp
i(dots/inch)で入力された読み取り画像信号を100dp
i に間引く間引き回路である。110は総合判定回路で
あり、画像特徴抽出回路104の検出結果、スムージン
グ回路105および間引き回路106の出力により、特
定原稿の有無を総合的に判定する。
Reference numeral 103 is a frequency dividing circuit for dividing the CLK signal and the HSYNC signal, 104 is an image feature extracting circuit for detecting image features in the read original, 105 is a smoothing circuit for smoothing the read image signal, and 106 is 400 dp.
Read image signal input at i (dots / inch) is 100dp
It is a thinning circuit for thinning out to i. Reference numeral 110 denotes a comprehensive determination circuit, which comprehensively determines the presence or absence of a specific document based on the detection results of the image feature extraction circuit 104 and the outputs of the smoothing circuit 105 and the thinning circuit 106.

【0043】(分周回路103)図5に示す分周回路3
03の詳細構成を図6に示す。図6において、601は
インバータ、602は2ビットのカウンタであり、カウ
ンタ602の出力が上述したXPHSであり、HSYN
C信号が“1”即ち主走査の基準位置で“0”に初期化
され、CLK信号の立ち上がりに同期して“0”、
“1”、“2”、“3”の値を繰り返す。603は2入
力4出力のデコーダであり603- 1に論理を示す。デ
コーダ603には、XPHS信号の下位ビット(bit
0)と上位ビット(bit1)が入力され、XD0、X
D1、XD2、XD3の各信号が出力される。更に、6
04はインバータであり、XPHS信号の下位ビット
(bit0)を反転してCLK4信号を得る。
(Dividing circuit 103) Dividing circuit 3 shown in FIG.
FIG. 6 shows the detailed configuration of 03. In FIG. 6, 601 is an inverter, 602 is a 2-bit counter, the output of the counter 602 is the XPHS described above, and HSYN
The C signal is initialized to "1", that is, "0" at the main scanning reference position, and "0" is synchronized with the rising edge of the CLK signal.
The values of "1", "2", and "3" are repeated. Reference numeral 603 is a 2-input 4-output decoder, and the logic is shown at 603-1. The decoder 603 has a lower bit (bit) of the XPHS signal.
0) and upper bits (bit1) are input, and XD0, X
The signals D1, XD2, and XD3 are output. Furthermore, 6
Reference numeral 04 is an inverter, which inverts the lower bit (bit 0) of the XPHS signal to obtain the CLK4 signal.

【0044】以上の構成を備えることにより、図3の4
01に示す各制御信号が得られる。また、605は2ビ
ットカウンタであり、カウンタ605の出力が上述した
YPH信号であり、HSYNC信号の立ち上がりに同期
して、“0”、“1”、“2”、“3”の値を繰り返
す。606はノア(NOR)ゲートであり、YPHS信
号の下位ビット(bit0)と上位ビット(bit1)
が入力され、その出力はYPHS信号が“0”である場
合のみ、“1”となる。607,608はフリップフロ
ップであり、CLK4信号で同期がかけられる。
By providing the above-mentioned configuration, it is possible to obtain
Each control signal indicated by 01 is obtained. Further, 605 is a 2-bit counter, the output of the counter 605 is the above-mentioned YPH signal, and the values of “0”, “1”, “2”, and “3” are repeated in synchronization with the rising edge of the HSYNC signal. . Reference numeral 606 denotes a NOR gate, which is a lower bit (bit 0) and an upper bit (bit 1) of the YPHS signal.
Is input and its output becomes "1" only when the YPHS signal is "0". Flip-flops 607 and 608 are synchronized with the CLK4 signal.

【0045】ANDゲート609には、フリップフロッ
プ607の正論理出力とフリップフロップ608の負論
理出力が入力されており、ANDゲート609の出力に
は、ノアゲート606の出力の立ち上がりのタイミング
でCLK4の1クロック分のぱるす信号が出力され、こ
れがHS4信号となる。デコーダ610はデコーダ60
3と同様の2to4のデコーダであり論理も603- 1に
示す様にデコーダ603と同様である。デコーダ610
には、YPHS信号の下位ビット(bit0)と上位ビ
ット(bit1)が入力され、YD0、YD1、YD
2、YD3の各信号が出力される。
The AND gate 609 receives the positive logic output of the flip-flop 607 and the negative logic output of the flip-flop 608, and the output of the AND gate 609 is set to 1 of CLK4 at the rising timing of the output of the NOR gate 606. A pulse signal for the clock is output, and this becomes the HS4 signal. The decoder 610 is the decoder 60
It is a 2 to 4 decoder similar to that of No. 3 and has the same logic as the decoder 603 as shown in 603-1. Decoder 610
The low-order bit (bit0) and the high-order bit (bit1) of the YPHS signal are input to the YDHS, YD0, YD1, and YD.
2 and YD3 signals are output.

【0046】以上の構成を備えることにより、図3の4
02に示す制御信号が得られる。 (画像特徴抽出回路104)図5に示す画像特徴抽出回
路104の詳細ブロック構成を図7に示す。図7におい
て、701はND回路であり、R、G、Bの3原色信号か
ら白黒の明度信号であるND信号を得る。(詳細構成を
図8に示す。)702は読み取り原稿中の網点成分を除
去する網点除去回路、703は読み取り原稿中の線画成
分を強調する線画強調回路、704は特徴抽出部であ
り、読み取り原稿中の4種類の各特徴(平坦成分、谷間
成分、線画成分、エッジ成分)を抽出する。
By providing the above-mentioned structure, 4 in FIG.
The control signal indicated by 02 is obtained. (Image feature extraction circuit 104) FIG. 7 shows a detailed block configuration of the image feature extraction circuit 104 shown in FIG. In FIG. 7, reference numeral 701 denotes an ND circuit, which obtains an ND signal which is a black and white lightness signal from the three primary color signals of R, G and B. (Detailed configuration is shown in FIG. 8.) 702 is a halftone dot removal circuit that removes halftone dot components in the read document, 703 is a line image enhancement circuit that emphasizes line image components in the read document, and 704 is a feature extraction unit. Each of the four types of features (flat component, valley component, line drawing component, edge component) in the read document is extracted.

【0047】705は特徴抽出部704によって抽出さ
れた特徴信号のノイズ除去を行う後処理回路、706は
検出された前記4種類の各特徴(平坦成分、谷間成分、
線画成分、エッジ成分)から必要な信号を選択する選択
回路であり、選択回路706の選択の基準としては、判
定すべき特定原稿の種類に応じてその特定原稿の特徴を
最もよく特定できる様に選定する。
Reference numeral 705 denotes a post-processing circuit for removing noise from the feature signal extracted by the feature extraction unit 704, and 706 each of the detected four types of features (flat component, valley component,
A selection circuit for selecting a necessary signal from the line drawing component and the edge component), and the selection circuit 706 uses a selection criterion such that the characteristics of the specific original can be most specified according to the type of the specific original to be determined. Select.

【0048】(ND回路701)図8に図7に示すND
回路701の詳細ブロック図を示す。図8に示す様にN
D回路701は、R,G,Bの3原色信号から白黒の明
度信号であるND信号を得るものである。801,80
2,803はそれぞれA,Bの2入力に対し(A×B/1
6)を算出する乗算器、804はA,B,Cの3入力に
対し(A+B+C )を出力する加算器、805はCLK信号
で同期をとためのフリップフロップである。一方、Gr,
Gg,Gb はそれぞれ予め設定された値であり計数決定回
路101によって設定され、結果として、入力信号R,
G, Bに対しで、次に示す第(1)式で表されるような
式で、白黒の明暗を表すND信号が生成される。
(ND Circuit 701) FIG. 8 shows the ND circuit shown in FIG.
3 shows a detailed block diagram of circuit 701. N as shown in FIG.
The D circuit 701 obtains an ND signal which is a black and white lightness signal from the R, G and B primary color signals. 801,80
2 and 803 are (A × B / 1
6) is a multiplier, 804 is an adder that outputs (A + B + C) to three inputs of A, B, and C, and 805 is a flip-flop for synchronizing with the CLK signal. On the other hand, Gr,
Gg and Gb are preset values and are set by the count determination circuit 101, and as a result, the input signals R and
With respect to G and B, an ND signal representing light and darkness of black and white is generated by an expression represented by the following expression (1).

【0049】 ND = R×Gr/16 + G×Gg/16 + B×Gb/16・・・(1) (網点除去回路702)図9及び図10に図7に示す網
点除去回路702の詳細ブロック構成図を示す。網点除
去回路702の目的は、原稿中の網点成分のみを除去
し、詳細を後述する後段の線画判定の精度を向上させる
ことにある。
ND = R × Gr / 16 + G × Gg / 16 + B × Gb / 16 (1) (Dot removal circuit 702) FIGS. 9 and 10 show a dot removal circuit 702 shown in FIG. 3 shows a detailed block configuration diagram of FIG. The purpose of the halftone dot removal circuit 702 is to remove only the halftone dot component in the original document and improve the accuracy of the line drawing determination in the latter stage, the details of which will be described later.

【0050】図9において、901はインバータ、90
2および903は1ライン遅延のためのFIFO(First
In First Out)メモリ(例えば、三菱電機製M66251等で
構成することができる。)である。ここでHSYNC信
号はインバータ901により論理反転されてFIFOメ
モリ902,903のリセット端子に入力され、FIF
Oメモリ902,903を1ラインごとに初期化(リセ
ット)する。
In FIG. 9, reference numeral 901 denotes an inverter, and 90
2 and 903 are FIFOs (First
In First Out) memory (for example, it can be composed of Mitsubishi Electric M66251 or the like). Here, the HSYNC signal is logically inverted by the inverter 901 and input to the reset terminals of the FIFO memories 902 and 903.
The O memories 902 and 903 are initialized (reset) line by line.

【0051】ND信号入力はFIFOメモリ902に入
力され、FIFOメモリ902で1ラインの遅延の後に
ND1信号として出力される。ND1信号はFIFOメ
モリ903により1ラインの遅延の後にND2信号とし
て出力される。更に、ND信号はフリップフロップ90
4,905,906により1画素づつ遅延されてE1
1,E12,E13信号となり、ND1信号はフリップ
フロップ907,908,909により1画素づつ遅延
されてE21,E22,E23信号となり、ND2信号
はフリップフロップ910,911,912により1画
素づつ遅延されてE31,E32,E33信号となる。
これら9つの信号で、図11に示す様な3×3画素のウ
ィンドウを形成する。
The ND signal input is input to the FIFO memory 902, and is output as the ND1 signal after being delayed by one line in the FIFO memory 902. The ND1 signal is output as the ND2 signal after being delayed by one line by the FIFO memory 903. Further, the ND signal is the flip-flop 90.
4,905,906 delays pixel by pixel and E1
1, E12, E13 signals, the ND1 signal is delayed by one pixel by the flip-flops 907, 908, 909 to become E21, E22, E23 signals, and the ND2 signal is delayed by one pixel by the flip-flops 910, 911, 912. It becomes E31, E32, E33 signals.
These nine signals form a 3 × 3 pixel window as shown in FIG.

【0052】即ち、注目画素(Xi,j )および周辺画素
(Xi-1,j-1 )、(Xi-1,j )、(Xi-1,j+1 )、(X
i,j-1 )、(Xi,j+1 )、(Xi+1,j-1 )、(Xi+1,j
)、(Xi+1,j+1 )より構成されるウィンドウであ
る。図9よりのこれら9つの信号は、図10に示す演算
器913,914,915,916へ送られる。演算器
913〜916は、それぞれA、B、Cの3つの入力に
対して(A+C)/2および|A+C- 2C|/2を演
算して出力する。従って演算器913は、 Y0=(E11+E33)/2及びe0=|E11+E
33- 2E22|/2 を出力する。ここでY0は上述した図11に示す3×3
画素のウィンドウ上で左上右下方向に強くスムージング
処理をしたもの、e0は左上右下方向の2次微分量の絶
対値であり、同方向のエッジの強さを表す。
That is, the pixel of interest (Xi, j) and peripheral pixels (Xi-1, j-1), (Xi-1, j), (Xi-1, j + 1), (X
i, j-1), (Xi, j + 1), (Xi + 1, j-1), (Xi + 1, j
), (Xi + 1, j + 1). These nine signals from FIG. 9 are sent to the calculators 913, 914, 915, 916 shown in FIG. The computing units 913 to 916 compute (A + C) / 2 and | A + C−2C | / 2 with respect to three inputs of A, B, and C, respectively, and output them. Therefore, the computing unit 913 calculates that Y0 = (E11 + E33) / 2 and e0 = | E11 + E
33.2E22 | / 2 is output. Here, Y0 is 3 × 3 shown in FIG. 11 described above.
The pixel is subjected to a strong smoothing process in the upper left lower right direction on the window, and e0 is the absolute value of the second derivative amount in the upper left lower right direction and represents the edge strength in the same direction.

【0053】演算器914は、 Y1=(E12+E32)/2及びe1=|E12+E
32- 2E22|/2 を出力する。ここでY1は上述した図11に示す3×3
画素のウィンドウ上で上下方向に強くスムージング処理
をしたもの、e1は上下方向の2次微分量の絶対値であ
り、同方向のエッジの強さを表す。
The arithmetic unit 914 calculates that Y1 = (E12 + E32) / 2 and e1 = | E12 + E.
32-2E22 | / 2 is output. Here, Y1 is 3 × 3 shown in FIG. 11 described above.
What is strongly smoothed in the vertical direction on the window of pixels, e1 is the absolute value of the second-order differential amount in the vertical direction, and represents the strength of the edge in the same direction.

【0054】演算器915は、 Y2=(E13+E31)/2及びe2=|E13+E
31- 2E22|/2 を出力する。ここでY2は上述した図11に示す3×3
画素のウィンドウ上で左下右上方向に強くスムージング
処理をしたもの、e2は左下右上方向の2次微分量の絶
対値であり、同方向のエッジの強さを表す。
The computing unit 915 calculates that Y2 = (E13 + E31) / 2 and e2 = | E13 + E.
Outputs 31-2E22 | / 2. Here, Y2 is 3 × 3 shown in FIG. 11 described above.
A pixel that has been strongly smoothed in the lower left and upper right directions on the window, e2 is the absolute value of the second derivative amount in the lower left and upper right directions, and represents the edge strength in the same direction.

【0055】演算器915は、 Y3=(E21+E23)/2及びe3=|E21+E
23- 2E22|/2 を出力する。ここでY3は上述した図11に示す3×3
画素のウィンドウ上で左右方向に強くスムージング処理
をしたもの、e3は左右方向の2次微分量の絶対値であ
り、同方向のエッジの強さを表す。
The computing unit 915 calculates that Y3 = (E21 + E23) / 2 and e3 = | E21 + E.
23-2E22 | / 2 is output. Here, Y3 is 3 × 3 shown in FIG. 11 described above.
What is strongly smoothed in the left-right direction on the pixel window, e3 is the absolute value of the second-order differential amount in the left-right direction, and represents the edge strength in the same direction.

【0056】917,918,920は比較器、919
は2入力1出力のセレクタでありセレクタ919の論理
を919- 1に示す。ここで、セレクタ919の出力s
0および比較器920の出力s1は、e0,e1,e
2,e3の大小関係により、結果的に次の値となる。即
ち、e0がe0,e1,e2,e3の最小値となる場合
には、s0=0,s1=0となり、e1がe0,e1,
e2,e3の最小値となる場合には、s0=1,s1=
0となり、e2がe0,e1,e2,e3の最小値とな
る場合には、s0=0,s1=1となり、e3がe0,
e1,e2,e3の最小値となる場合には、s0=1,
s1=1となる。
Reference numerals 917, 918 and 920 are comparators, and 919 is a comparator.
Is a 2-input 1-output selector, and the logic of the selector 919 is shown in 919-1. Here, the output s of the selector 919
0 and the output s1 of the comparator 920 are e0, e1, e
Due to the magnitude relationship between 2 and e3, the following values result. That is, when e0 is the minimum value of e0, e1, e2, e3, s0 = 0, s1 = 0, and e1 is e0, e1,
When the minimum values of e2 and e3 are obtained, s0 = 1, s1 =
0, and when e2 is the minimum value of e0, e1, e2, and e3, s0 = 0 and s1 = 1, and e3 is e0,
When the minimum values of e1, e2, and e3 are obtained, s0 = 1,
s1 = 1.

【0057】921は2入力4出力のデコーダ回路であ
り、デコーダ回路921の論理を921- 1に示す。9
22は4入力1出力のマルチプレクサである。デコーダ
921には上述したセレクタ919,920よりのs
0、s1が入力され、マルチプレクサ922にはデコー
ダ921よりの4出力及び演算器913〜916よりの
Y0、Y1、Y2、Y3信号が図10の様に入力され
る。
Reference numeral 921 denotes a 2-input 4-output decoder circuit, and the logic of the decoder circuit 921 is shown by 921-1. 9
Reference numeral 22 is a multiplexer with four inputs and one output. The decoder 921 is provided with s from the selectors 919 and 920 described above.
0, s1 are input, and four outputs from the decoder 921 and Y0, Y1, Y2, and Y3 signals from the arithmetic units 913 to 916 are input to the multiplexer 922 as shown in FIG.

【0058】結果として、e0がe0,e1,e2,e
3の最小値となる場合にはマルチプレクサ922よりY
0が出力される。e1がe0,e1,e2,e3の最小
値となる場合にはマルチプレクサ922よりY1が出力
される。e2がe0,e1,e2,e3の最小値となる
場合にはマルチプレクサ922よりY2が出力され、e
3がe0,e1,e2,e3の最小値となる場合には、
マルチプレクサ922よりY3が出力される。
As a result, e0 is e0, e1, e2, e
When the minimum value of 3 is reached, Y is output from the multiplexer 922.
0 is output. When e1 is the minimum value of e0, e1, e2, e3, the multiplexer 922 outputs Y1. When e2 is the minimum value of e0, e1, e2, and e3, the multiplexer 922 outputs Y2, and e2
When 3 is the minimum value of e0, e1, e2, e3,
Y3 is output from the multiplexer 922.

【0059】即ち、注目画素Xi,j を中心に8方向の2
次微分を算出し、それら4つの2次微分量の最小の方向
に強いスムージングを行ない、フリップフロップ923
によりCLK信号の立上りに同期してNE信号として出
力される。これらの処理の効果を図12に示す。例えば
図12の1101に示す様な線画パターンにおいては、
4方向の2次微分量の中では上下方向の2次微分量(図
10のe1)が最小値をとり、上下方向の強いスムージ
ング処理(図10のY1)がなされるものの、1102
に示す様に線画は保存される。同様に他の方向(左右、
左上右下、左下右上)の線画についても同様に保存され
る。一方、1103に示される網点のパターンについて
は1104に示す様に除去される。この様に、線画成分
を損なうことなく網点成分を除去することができる。
That is, 2 in 8 directions centering on the target pixel Xi, j
The second derivative is calculated, and strong smoothing is performed in the direction of the minimum of these four second derivative amounts.
Is output as the NE signal in synchronization with the rising edge of the CLK signal. The effect of these treatments is shown in FIG. For example, in the line drawing pattern 1101 shown in FIG.
Although the secondary differential amount in the vertical direction (e1 in FIG. 10) takes the minimum value among the secondary differential amounts in the four directions, and strong vertical smoothing processing (Y1 in FIG. 10) is performed, 1102
The line drawing is saved as shown in. Similarly in other directions (left, right,
The line drawings in the upper left lower right and the lower left upper right are similarly saved. On the other hand, the pattern of halftone dots indicated by 1103 is removed as indicated by 1104. In this way, the halftone dot component can be removed without damaging the line drawing component.

【0060】(線画強調回路703)図7に示す線画強
調回路703は上述した網点除去回路702の出力NE
信号をうけて線画成分を強調する回路であり、その詳細
を図13及び図14に示す。まず図13において、12
01はインバータ、1202および1203は1ライン
遅延のためのFIFOメモリである。ここでHSYNC
信号はインバータ1201により論理反転され、FIF
Oメモリ1202,1203のリセット端子に入力さ
れ、FIFOメモリ1202,1203を1ラインごと
に初期化(リセット)する。NE信号入力はFIFOメ
モリ1202に入力され1ラインの遅延の後にNE1信
号として出力される。NE1信号はFIFOメモリ12
03により1ラインの遅延の後にNE2信号として出力
される。
(Line Drawing Enhancement Circuit 703) The line drawing enhancement circuit 703 shown in FIG. 7 is the output NE of the halftone dot removal circuit 702 described above.
This is a circuit that receives a signal and emphasizes a line drawing component, and details thereof are shown in FIGS. 13 and 14. First, in FIG.
01 is an inverter, and 1202 and 1203 are FIFO memories for delaying one line. HSYNC here
The signal is logically inverted by the inverter 1201 and
It is input to the reset terminals of the O memories 1202 and 1203, and the FIFO memories 1202 and 1203 are initialized (reset) line by line. The NE signal input is input to the FIFO memory 1202 and is output as the NE1 signal after delaying one line. The NE1 signal is stored in the FIFO memory 12
After being delayed by one line by 03, it is output as the NE2 signal.

【0061】NE信号は、フリップフロップ1204,
1205,1206によりそれぞれ1画素づつ遅延さ
れ、AE11,AE12,AE13信号となる。またN
E1信号は、フリップフロップ1207,1208,1
209により1画素づつ遅延され、AE21,AE2
2,AE23信号となる。更にNE2信号は、フリップ
フロップ1210,1211,1212により1画素づ
つ遅延され、AE31,AE32,AE33信号とな
る。これら9つの信号で、上述した図11に示す様な3
×3画素のウィンドウを形成する。
The NE signal is the flip-flop 1204.
One pixel is delayed by each of 1205 and 1206, resulting in AE11, AE12, and AE13 signals. Also N
The E1 signal is the flip-flops 1207, 1208, 1
It is delayed by 1 pixel by 209, and AE21, AE2
2, AE23 signal. Further, the NE2 signal is delayed by one pixel by the flip-flops 1210, 1211 and 1212 and becomes AE31, AE32 and AE33 signals. With these nine signals, 3 as shown in FIG.
Form a window of x3 pixels.

【0062】図13に示す上述したこれら9つの信号の
内、図11に示す注目画素(Xi,j)を取り囲む8つの
画素(Xi-1,j-1 )、(Xi-1,j )、(Xi-1,j+1 )、
(Xi,j-1 )、(Xi,j+1 )、(Xi+1,j-1 )、(Xi+
1,j )、(Xi+1,j+1 )に相当する信号AE11,AE
12,AE13,AE21,AE23,AE31,AE
32,AE33は、図14に示す最大値/ 最小値検出器
1213,1214,1215,1216へ送られる。
Of the above nine signals shown in FIG. 13, eight pixels (Xi-1, j-1), (Xi-1, j) surrounding the pixel of interest (Xi, j) shown in FIG. (Xi-1, j + 1),
(Xi, j-1), (Xi, j + 1), (Xi + 1, j-1), (Xi +
1, j), and signals AE11, AE corresponding to (Xi + 1, j + 1)
12, AE13, AE21, AE23, AE31, AE
32 and AE33 are sent to the maximum value / minimum value detectors 1213, 1214, 1215, 1216 shown in FIG.

【0063】最大値/ 最小値検出器1213,121
4,1215,1216はそれぞれA,Bの2入力に対
して最大値maxおよび最小値minを出力する。また
1217,1219,1221はそれぞれ最大値検出器
であり、A,Bの2入力に対して最大値maxを出力す
る。1218,1220,1222はそれぞれ最小値検
出器であり、A,Bの2入力に対して最小値minを出
力する。従って、最大値検出器1221の出力MX信号
には、8つの周辺画素に対応する信号AE11,AE1
2,AE13,AE21,AE23,AE31,AE3
2,AE33の最大値が選択出力され、最小値検出器1
222の出力MN信号には、8つの周辺画素に対応する
信号AE11,AE12,AE13,AE21,AE2
3,AE31,AE32,AE33の最小値が選択出力
される。
Maximum value / minimum value detector 1213, 121
4, 1215 and 1216 output the maximum value max and the minimum value min for the two inputs A and B, respectively. Further, 1217, 1219, and 1221 are maximum value detectors, respectively, which output the maximum value max for two inputs A and B. Reference numerals 1218, 1220 and 1222 denote minimum value detectors, which output the minimum value min with respect to the two inputs A and B. Therefore, the output MX signal of the maximum value detector 1221 includes signals AE11 and AE1 corresponding to eight peripheral pixels.
2, AE13, AE21, AE23, AE31, AE3
2, the maximum value of AE33 is selectively output, and the minimum value detector 1
The output MN signal of 222 includes signals AE11, AE12, AE13, AE21, AE2 corresponding to eight peripheral pixels.
The minimum value of 3, AE31, AE32, and AE33 is selectively output.

【0064】更に、1223はMX信号とMN信号を加
算する加算器であり、MX信号とMN信号の平均値(M
X+MN)/2が出力される。1224は加算器122
3よりの(MX+MN)/2の値と注目画素(Xi,j )
に対応するAE22の値を比較する比較器、1225は
2入力1出力のセレクタであり、その動作論理を122
5- 1に示す。
Further, reference numeral 1223 denotes an adder for adding the MX signal and the MN signal, and the average value (M
X + MN) / 2 is output. 1224 is an adder 122
The value of (MX + MN) / 2 from 3 and the target pixel (Xi, j)
Is a comparator for comparing the value of the AE22 corresponding to, and a reference numeral 1225 is a 2-input 1-output selector whose operation logic is 122
It is shown in 5-1.

【0065】結果的にセレクタ1225の出力には、A
E22>(MX+MN)/2の場合(即ち、AE22-
MN>MX- AE22の場合)にはMXが出力される。
またAE22≦(MX+MN)/2の場合(即ち、AE
22- MN≦MX- AE22の場合)にはMNが出力さ
れる。このセレクタ1225の出力はフリップフロップ
1226をへてNF信号として出力される。
As a result, the output of the selector 1225 is A
When E22> (MX + MN) / 2 (that is, AE22-
If MN> MX-AE22), MX is output.
When AE22 ≦ (MX + MN) / 2 (that is, AE
22-MN≤MX-AE22), MN is output. The output of the selector 1225 is output as an NF signal through the flip-flop 1226.

【0066】以上の構成を備えることにより、注目画素
AE22での値が、周辺画素群の最大値であるMXと周
辺画素群の最小値であるMNの二つの値の内どちらか近
い方(差が小さい方)の値に注目画素を置き換えること
ができる。以上の動作の効果を図15に示す。即ち、図
15の1301に示す様なパターン(破線の断面グラフ
を1302に示す)の場合、濃度の変化点が周辺画素の
最大値または最小値の近い方に置き換えられるため、1
303に示す様なパターン(破線の断面グラフを130
4に示す)に変換される。従って、読み取り素子の特性
による信号の鈍りが排除され、結果的に線画のパターン
が強調される。
With the above configuration, the value at the target pixel AE22 is either the maximum value MX of the peripheral pixel group or the minimum value MN of the peripheral pixel group, whichever is closer (the difference The pixel of interest can be replaced by the value of (smaller). The effect of the above operation is shown in FIG. That is, in the case of the pattern as shown by 1301 in FIG. 15 (a broken-line cross-sectional graph is shown by 1302), the change point of the density is replaced by the maximum value or the minimum value of the peripheral pixels, whichever is closer.
A pattern as shown in 303 (a broken line cross-section graph
4). Therefore, the blunting of the signal due to the characteristics of the reading element is eliminated, and as a result, the line drawing pattern is emphasized.

【0067】(特徴抽出回路704)次に、図16乃至
図21を参照して図7に示す特徴抽出回路704の詳細
構成を説明する。図16乃至図21は特徴抽出部704
の詳細構成を示すブロック図である。特徴抽出部704
は線画強調回路703の出力NF信号を受け、読み取り
画像信号より注目画素の4種類の特徴(線画部、平坦
部、エッジ部、谷間部)を抽出する。
(Feature Extraction Circuit 704) Next, the detailed configuration of the feature extraction circuit 704 shown in FIG. 7 will be described with reference to FIGS. 16 to 21 show the feature extraction unit 704.
3 is a block diagram showing a detailed configuration of FIG. Feature extraction unit 704
Receives the output NF signal of the line drawing enhancement circuit 703 and extracts four types of features (line drawing portion, flat portion, edge portion, and valley portion) of the pixel of interest from the read image signal.

【0068】図16において、1401はインバータ、
1402,1403,1404および1405はそれぞ
れ1ライン遅延のためのFIFOメモリである。ここで
HSYNC信号はインバータ1401により論理反転さ
れ、FIFOメモリ1402〜1405のリセット端子
に入力され、FIFOメモリ1402〜1405を1ラ
インごとに初期化(リセット)する。
In FIG. 16, 1401 is an inverter,
Reference numerals 1402, 1403, 1404 and 1405 are FIFO memories for delaying one line, respectively. Here, the HSYNC signal is logically inverted by the inverter 1401 and input to the reset terminals of the FIFO memories 1402-1405 to initialize (reset) the FIFO memories 1402-1405 line by line.

【0069】NF信号入力はFIFOメモリ1402に
入力され、1ライン分遅延された後にNF1信号として
出力される。NF1信号はFIFOメモリ1403によ
り1ライン分遅延された後にNF2信号として出力され
る。同様にNF2信号はFIFOメモリ1404により
1ライン分遅延された後にNF3信号として出力され
る。更にNF3信号はFIFOメモリ1405により1
ライン分遅延された後にNF4信号として出力される。
The NF signal input is input to the FIFO memory 1402, delayed by one line, and output as the NF1 signal. The NF1 signal is output as the NF2 signal after being delayed by one line by the FIFO memory 1403. Similarly, the NF2 signal is output as the NF3 signal after being delayed by one line by the FIFO memory 1404. Furthermore, the NF3 signal is set to 1 by the FIFO memory 1405.
After being delayed by the line, it is output as an NF4 signal.

【0070】更にNE信号は、フリップフロップ140
6,1407,1408,1409,1410により順
次1画素づつ遅延され、BE11,BE12,BE1
3,BE14,BE15信号となる。NE1信号はフリ
ップフロップ1411,1412,1413,141
4,1415により順次1画素づつ遅延され、BE2
1,BE22,BE23,BE24,BE25信号とな
る。NE2信号はフリップフロップ1416,141
7,1418,1419,1420により順次1画素づ
つ遅延され、BE31,BE32,BE33,BE3
4,BE35信号となる。NE3信号はフリップフロッ
プ1421,1422,1423,1424,1425
により順次1画素づつ遅延され、BE41,BE42,
BE43,BE44,BE45信号となる。更に、NE
4信号はフリップフロップ1426,1427,142
8,1429,1430により順次1画素づつ遅延さ
れ、BE51,BE52,BE53,BE54,BE5
5信号となる。
Further, the NE signal is the flip-flop 140.
6, 1407, 1408, 1409, 1410 sequentially delays one pixel at a time, and BE11, BE12, BE1
3, BE14, and BE15 signals. The NE1 signal is the flip-flops 1411, 1412, 1413, 141.
4, 1415 are sequentially delayed by one pixel, and BE2
1, BE22, BE23, BE24, BE25 signals. The NE2 signal is the flip-flops 1416 and 141.
7, 1418, 1419, 1420 sequentially delays by one pixel, BE31, BE32, BE33, BE3.
4, BE35 signal. The NE3 signal is the flip-flops 1421, 1422, 1423, 1424, 1425.
Are sequentially delayed by one pixel, and BE41, BE42,
The BE43, BE44, and BE45 signals are obtained. Furthermore, NE
The four signals are flip-flops 1426, 1427, 142.
8, 1429, 1430 sequentially delays by one pixel, BE51, BE52, BE53, BE54, BE5.
There are 5 signals.

【0071】これらの合計25の信号で図22に示す様
な5×5画素のウィンドウを形成する。即ち、注目画素
(Xi,j )および周辺画素を中心とし上下左右に±2画
素の範囲を含む5×5画素の計25画素より構成される
ウィンドウである。以下、特徴量のひとつである平坦判
定回路について説明する。図17において、1431は
最大値/ 最小値検出器であり、5つの入力A,B,C,
D,Eに対し、最大値max( A, B, C, D, E) お
よび最小値min( A, B, C, D, E) を出力する。
最大値/ 最小値検出器1431に対し同一主走査位置で
1ラインずつ遅延された画素に相当するBE11,BE
21,BE31,BE41,BE51が入力され、それ
らの最大値および最小値が出力される。言い替えると、
図22において(Xi-2,j-2 )、(Xi-1,j-2 )、(X
i,j-2 )、(Xi+1,j-2 )、(Xi+2,j-2 )に示される
画素における値の最大値および最小値が算出される。
These 25 signals in total form a 5 × 5 pixel window as shown in FIG. That is, it is a window composed of a total of 25 pixels of 5 × 5 pixels including a range of ± 2 pixels vertically and horizontally centering on the pixel of interest (Xi, j) and peripheral pixels. The flatness determination circuit, which is one of the feature quantities, will be described below. In FIG. 17, 1431 is a maximum / minimum detector, which has five inputs A, B, C,
The maximum value max (A, B, C, D, E) and the minimum value min (A, B, C, D, E) are output for D and E.
BE11, BE corresponding to pixels delayed by one line at the same main scanning position with respect to the maximum / minimum value detector 1431
21, BE31, BE41, BE51 are input, and their maximum and minimum values are output. In other words,
In FIG. 22, (Xi-2, j-2), (Xi-1, j-2), (Xi-2, j-2)
i, j-2), (Xi + 1, j-2), and (Xi + 2, j-2), the maximum and minimum values of the values of the pixels are calculated.

【0072】更に検出された最大値はフリップフロップ
1432,1433,1434,1425により順次画
素単位で遅延され、M1,M2,M3,M4,M5とし
て出力される。同じく検出された最小値は、フリップフ
ロップ1437,1438,1439,1440,14
41により順次画素単位で遅延され、N1,N2,N
3,N4,N5として出力される。
Further, the detected maximum value is sequentially delayed in pixel units by flip-flops 1432, 1433, 1434, 1425 and output as M1, M2, M3, M4, M5. Similarly, the minimum value detected is the flip-flops 1437, 1438, 1439, 1440, 14
41 are sequentially delayed in pixel units, and N1, N2, N
It is output as 3, N4, N5.

【0073】更に、M1,M2,M3,M4,M5は、
図18に示す最大値検出器1442に入力され、M1〜
M5の最大値を算出しMM信号として出力する。一方、
N1,N2,N3,N4,N5は図18に示す最大値検
出器1443に入力され、N1〜N5の最小値を算出
し、NN信号として出力する。結果として、MM信号は
図22に示される5×5の画素のウィンドウ内での最大
値を示し、NN信号は図22に示される5×5の画素の
ウィンドウ内での最小値を示す。図22に示す1444
は減算器であり、MM−NNの値を出力する。そして、
フリップフロップ1445によってCLK信号と同期を
とられてYB信号として出力される。
Further, M1, M2, M3, M4 and M5 are
The maximum value detector 1442 shown in FIG.
The maximum value of M5 is calculated and output as an MM signal. on the other hand,
N1, N2, N3, N4 and N5 are input to the maximum value detector 1443 shown in FIG. 18, and the minimum values of N1 to N5 are calculated and output as the NN signal. As a result, the MM signal shows the maximum value within the window of 5 × 5 pixels shown in FIG. 22, and the NN signal shows the minimum value within the window of 5 × 5 pixels shown in FIG. 1444 shown in FIG.
Is a subtracter and outputs the value of MM-NN. And
The flip-flop 1445 synchronizes with the CLK signal and outputs the YB signal.

【0074】1446は比較器であり、図5に示す係数
設定回路101によって予め設定されている値THとフ
リップフロップ1445よりのYB信号の大小比較が行
われる。比較器1446の比較結果はフリップフロップ
1446をへてH信号として出力される。即ち、YB<
THであれば、H=1となり、YB≧THであればH=
0となる。
Reference numeral 1446 is a comparator, which compares the value TH preset by the coefficient setting circuit 101 shown in FIG. 5 with the YB signal from the flip-flop 1445. The comparison result of the comparator 1446 is output as an H signal via the flip-flop 1446. That is, YB <
If TH, H = 1, and if YB ≧ TH, H =
It becomes 0.

【0075】以上の構成に係る動作を説明すると以下の
様になる。図22において、注目画素(Xi,j )近傍が
平坦であれば5×5のウィンドウ内の画素の値は皆近い
値を示し、ウィンドウ内の最大値MMと最小値NNとの
差は小さくなり、結果的としてH=1となる。一方、注
目画素(Xi,j )の近傍が平坦でない場合には5×5の
ウィンドウ内の画素の値には大小のばらつきが生じるた
め、最大値MMと最小値NNとに差が生じ、結果として
H=0となる。即ち、注目画素(Xi,j )の近傍が平坦
である場合にはH=1となり、注目画素(Xi,j )の近
傍が平坦でない場合にはH=0となる。これより、フリ
ップフロップ1446よりのH信号は平坦判定信号とい
うことができる。
The operation of the above configuration will be described below. In FIG. 22, when the neighborhood of the pixel of interest (Xi, j) is flat, the values of the pixels in the 5 × 5 window are close to each other, and the difference between the maximum value MM and the minimum value NN in the window is small. As a result, H = 1. On the other hand, when the neighborhood of the pixel of interest (Xi, j) is not flat, the values of the pixels in the 5 × 5 window vary widely, resulting in a difference between the maximum value MM and the minimum value NN. And H = 0. That is, H = 1 if the neighborhood of the target pixel (Xi, j) is flat, and H = 0 if the neighborhood of the target pixel (Xi, j) is not flat. From this, it can be said that the H signal from the flip-flop 1446 is a flatness determination signal.

【0076】次に、図19乃至図21を参照して、特徴
抽出回路704の以上に説明した加来信号を用いたエッ
ジ判定回路、線画判定回路、谷間判定回路について説明
する。図19がエッジ判定回路、図20が線画判定回
路、図21が谷間判定回路を示している。エッジ判定回
路は、図19に示す演算器1501,1502,150
3,1504、最大値検出回路1505、比較器150
6、フリップフロップ1507より構成される。
Next, with reference to FIGS. 19 to 21, the edge determination circuit, line drawing determination circuit, and valley determination circuit using the incoming signal described above of the feature extraction circuit 704 will be described. 19 shows an edge determination circuit, FIG. 20 shows a line drawing determination circuit, and FIG. 21 shows a valley determination circuit. The edge determination circuit is an arithmetic unit 1501, 1502, 150 shown in FIG.
3, 1504, maximum value detection circuit 1505, comparator 150
6 and a flip-flop 1507.

【0077】演算器1501,1502,1503,1
504はそれぞれ3つの入力A,B,Cに対し、max
(A,C)−Bを出力する。演算器1501には図16
よりのEB11,EB33,EB55、即ち、図22の
(Xi+2,j+2 )、(Xi,j )、(Xi-2,j-2 )に相当す
る3つの画素(左斜め上方向のひとつおき3画素)の値
が入力され、EBY1=max(EB11,EB55)
−EB33が出力される。演算器1502には、図16
よりのEB13,EB33,EB53、即ち、図22の
(Xi,j+2 )、(Xi,j )、(Xi,j-2)に相当する3
つの画素(縦方向のひとつおき3画素)の値が入力さ
れ、EBY2=max(EB13,EB53)−EB3
3が出力される。
Computing units 1501, 1502, 1503, 1
504 is max for each of three inputs A, B, C
Output (A, C) -B. The computing unit 1501 is shown in FIG.
EB11, EB33, EB55, that is, three pixels corresponding to (Xi + 2, j + 2), (Xi, j), and (Xi-2, j-2) in FIG. The value of every 3 pixels) is input, and EBY1 = max (EB11, EB55)
-EB33 is output. The computing unit 1502 has a configuration shown in FIG.
EB13, EB33, EB53, that is, 3 corresponding to (Xi, j + 2), (Xi, j), and (Xi, j-2) in FIG.
The value of one pixel (every third pixel in the vertical direction) is input, and EBY2 = max (EB13, EB53) -EB3
3 is output.

【0078】演算器1503には図16よりのEB1
5,EB33,EB51、即ち図22の(Xi+2,j-2
)、(Xi,j )、(Xi-2,j+2 )に相当する3つの画
素(右斜め上方向のひとつおき3画素)の値が入力さ
れ、EBY3=max(EB15,EB51)−EB3
3が出力される。演算器1504には図16よりのEB
31,EB33,EB35、即ち図22の(Xi+2,j
)、(Xi,j )、(Xi-2,j )に相当する3つの画素
(横方向のひとつおき3画素)の値が入力され、EBY
4=max(EB31,EB35)−EB33が出力さ
れる。
The arithmetic unit 1503 has an EB1 shown in FIG.
5, EB33, EB51, that is, (Xi + 2, j-2 in FIG.
), (Xi, j), and (Xi-2, j + 2), the values of three pixels (every other three pixels in the upper right direction) are input, and EBY3 = max (EB15, EB51) -EB3.
3 is output. The computing unit 1504 has an EB from FIG.
31, EB33, EB35, that is, (Xi + 2, j in FIG.
), (Xi, j), and (Xi-2, j), the values of three pixels (every other pixel in the horizontal direction) are input, and EBY is input.
4 = max (EB31, EB35) -EB33 is output.

【0079】以上の構成におけるエッジ検出の原理を、
図23を用いて以下に説明する。図23において、17
01に示す様なパターンがあった場合、鎖線で示す断面
での値を1702に示し、EBY4の値を1703に示
す。詳しい説明は省略するが、1703に示される様
に、横方向に濃度の変化するエッジ部分でEBY4の値
は大きくなる。
The principle of edge detection in the above configuration is
It demonstrates below using FIG. In FIG. 23, 17
When there is a pattern as shown in 01, the value in the cross section indicated by the chain line is shown at 1702, and the value of EBY4 is shown at 1703. Although detailed description is omitted, as indicated by 1703, the value of EBY4 becomes large at the edge portion where the density changes in the horizontal direction.

【0080】同様にして、縦方向に濃度の変化するエッ
ジ部分ではEBY2の値が大きくなり、左斜め上方向に
濃度の変化するエッジ部分ではEBY1の値が大きくな
り、右斜め上方向に濃度の変化するエッジ部分ではEB
Y3の値が大きくなる。また、最大値検出回路でこれら
4つのうちの最大値max(EBY1,EBY2,EB
Y3,EBY4)が出力される。これらの出力は、前記
の4つの方向の(横方向、縦方向、左斜め上方向、右斜
め上方向)のうちいずれかにエッジ成分が存在する場合
に大きな値となり、図19に示す比較器1506によっ
て、係数設定回路101によって予め定められた値TE
と比較され、その比較結果は、フリップフロップ150
7をへてE信号として出力される。
Similarly, the value of EBY2 increases at the edge portion where the density changes in the vertical direction, the value of EBY1 increases at the edge portion where the density changes to the upper left diagonal, and the value of EBY1 increases to the upper right. EB at changing edges
The value of Y3 becomes large. Also, the maximum value detection circuit uses the maximum value max (EBY1, EBY2, EB) of these four values.
Y3, EBY4) is output. These outputs have a large value when an edge component exists in any of the four directions (horizontal direction, vertical direction, diagonally left upward direction, diagonally right upward direction), and the comparator shown in FIG. 1506, a value TE predetermined by the coefficient setting circuit 101
And the result of the comparison is
It is output as an E signal through the line 7.

【0081】即ち、max(EBY1,EBY2,EB
Y3,EBY4)>TEの場合にはE=1となり、ma
x(EBY1,EBY2,EBY3,EBY4)≦TE
の場合にはE=0となる。言い換えると、図22におい
て注目画素(Xi,j )がエッジの部分である場合にはE
=1となり、図22において注目画素(Xi,j )がエッ
ジの部分でない場合にはE=0となる。これよりE信号
はエッジ判定信号ということができる。
That is, max (EBY1, EBY2, EB
When Y3, EBY4)> TE, E = 1 and ma
x (EBY1, EBY2, EBY3, EBY4) ≦ TE
In the case of, E = 0. In other words, if the pixel of interest (Xi, j) in FIG.
= 1 and E = 0 if the pixel of interest (Xi, j) in FIG. 22 is not an edge portion. From this, it can be said that the E signal is an edge determination signal.

【0082】次に、線画判定回路および谷間部検出回路
について説明する。線画判定部を示す図20において、
1508,1509,1510,1511,1512,
1513,1514,1515はそれぞれ演算器であ
り、A,B,Cの3入力に対し、min(A,C)−B
−|A−C|、及びB−max(A,C)−|A−C|
の演算を施し出力する。1516は最大値検出器、15
17は最小値検出器、1518は減算器、1519およ
び1520は比較器、1521はANDゲート、152
2はフリップフロップであり、1522は最大値検出
器、1523は最小値検出器、1524は減算器、15
25は比較器、1526はフリップフロップである。
Next, the line drawing determination circuit and the valley portion detection circuit will be described. In FIG. 20 showing the line drawing determination unit,
1508, 1509, 1510, 1511, 1512,
Reference numerals 1513, 1514, and 1515 are arithmetic units, and for three inputs A, B, and C, min (A, C) -B
-| A-C |, and B-max (A, C)-| A-C |
And output. 1516 is a maximum value detector, 15
Reference numeral 17 is a minimum value detector, 1518 is a subtracter, 1519 and 1520 are comparators, 1521 is an AND gate, 152
2 is a flip-flop, 1522 is a maximum value detector, 1523 is a minimum value detector, 1524 is a subtractor, 15
Reference numeral 25 is a comparator, and 1526 is a flip-flop.

【0083】演算器1508には、図16よりのEB1
1,EB33,EB44、即ち、図22の(Xi+2,j+2
)、(Xi,j )、(Xi-1,j-1 )に相当する3つの画
素(左斜め上方向の3画素)の値が入力され、 Y11=min(EB11,EB44)−EB33−|
EB11−EB44| Y21=EB33−max(EB11,EB44)−|
EB11−EB44| の値を出力する。
The arithmetic unit 1508 is provided with EB1 from FIG.
1, EB33, EB44, that is, (Xi + 2, j + 2 in FIG.
), (Xi, j), and (Xi-1, j-1) corresponding to the values of three pixels (three pixels in the upper left diagonal direction) are input, and Y11 = min (EB11, EB44) -EB33- |
EB11-EB44 | Y21 = EB33-max (EB11, EB44)-|
The value of EB11-EB44 | is output.

【0084】演算器1509には、図16よりのEB1
3,EB33,EB43、即ち、図22の8Xi,j+2
)、(Xi,j )、(Xi,j-1 )に相当する3つの画素
(縦方向の3画素)の値が入力され、 Y12=min(EB13,EB43)−EB33−|
EB13−EB43| Y22=EB33−max(EB13,EB43)−|
EB13−EB43| の値を出力する。
The arithmetic unit 1509 has an EB1 shown in FIG.
3, EB33, EB43, that is, 8Xi, j + 2 in FIG.
), (Xi, j), and the values of three pixels (three pixels in the vertical direction) corresponding to (Xi, j-1) are input, and Y12 = min (EB13, EB43) -EB33- |
EB13-EB43 | Y22 = EB33-max (EB13, EB43)-|
The value of EB13-EB43 | is output.

【0085】演算器1510には、図16よりのEB1
5,EB33,EB42、即ち、図22の(Xi+2,j-2
)、(Xi,j )、(Xi-1,j+1 )に相当する3つの画
素(右斜め上方向の3画素)の値が入力され、 Y13=min(EB15,EB42)−EB33−|
EB15−EB42| Y23=EB33−max(EB15,EB42)−|
EB15−EB42| の値を出力する。
The arithmetic unit 1510 has the EB1 shown in FIG.
5, EB33, EB42, that is, (Xi + 2, j-2 in FIG.
), (Xi, j), and the values of three pixels (three pixels in the upper right direction) corresponding to (Xi-1, j + 1) are input, and Y13 = min (EB15, EB42) -EB33- |
EB15-EB42 | Y23 = EB33-max (EB15, EB42)-|
The value of EB15-EB42 | is output.

【0086】演算器15011には、図16よりのEB
31,EB33,EB34、即ち、図22の(Xi,j+2
)、(Xi,j )、(Xi,j-1 )に相当する3つの画素
(横方向の3画素)の値が入力され、 Y14=min(EB31,EB34)−EB33−|
EB31−EB34| Y24=EB33−max(EB31,EB34)−|
EB31−EB34| の値を出力する。
The arithmetic unit 15011 has an EB from FIG.
31, EB33, EB34, that is, (Xi, j + 2 in FIG.
), (Xi, j) and (Xi, j-1) corresponding to the values of three pixels (three pixels in the horizontal direction) are input, and Y14 = min (EB31, EB34) -EB33- |
EB31-EB34 | Y24 = EB33-max (EB31, EB34)-|
The value of EB31-EB34 | is output.

【0087】演算器1512には、図16よりのEB2
2,EB33,EB55、即ち、図22の(Xi+1,j+1
)、(Xi,j )、(Xi-2,j-2 )に相当する3つの画
素(左斜め上方向の3画素)の値が入力され、 Y15=min(EB22,EB55)−EB33−|
EB22−EB55| Y25=EB33−max(EB22,EB55)−|
EB22−EB55| の値を出力する。
The arithmetic unit 1512 is provided with EB2 from FIG.
2, EB33, EB55, that is, (Xi + 1, j + 1) in FIG.
), (Xi, j) and (Xi-2, j-2) corresponding to the values of three pixels (three pixels in the upper left direction) are input, and Y15 = min (EB22, EB55) -EB33- |
EB22-EB55 | Y25 = EB33-max (EB22, EB55)-|
The value of EB22-EB55 | is output.

【0088】演算器1513には、図16よりのEB2
3,EB33,EB53、即ち、図22の(Xi,j+1
)、(Xi,j )、(Xi,j-2 )に相当する3つの画素
(縦方向の3画素)の値が入力され、 Y16=min(EB23,EB53)−EB33−|
EB23−EB53| Y26=EB33−max(EB23,EB53)−|
EB23−EB53| の値を出力する。
The arithmetic unit 1513 is provided with EB2 shown in FIG.
3, EB33, EB53, that is, (Xi, j + 1 in FIG.
), (Xi, j), and the values of three pixels (three pixels in the vertical direction) corresponding to (Xi, j-2) are input, and Y16 = min (EB23, EB53) -EB33- |
EB23-EB53 | Y26 = EB33-max (EB23, EB53)-|
The value of EB23-EB53 | is output.

【0089】演算器1514には、図16よりのEB2
4,EB33,EB51、即ち、図22の(Xi+1,j-1
)、(Xi,j )、(Xi-2,j+2 )に相当する3つの画
素(右斜め上方向の3画素)の値が入力され、 Y17=min(EB24,EB51)−EB33−|
EB24−EB51| Y27=EB33−max(EB24,EB51)−|
EB24−EB51| の値を出力する。
The arithmetic unit 1514 is provided with EB2 from FIG.
4, EB33, EB51, that is, (Xi + 1, j-1) in FIG.
), (Xi, j), and (Xi-2, j + 2) corresponding to three pixels (three pixels in the upper right direction) are input, and Y17 = min (EB24, EB51) -EB33- |
EB24-EB51 | Y27 = EB33-max (EB24, EB51)-|
The value of EB24-EB51 | is output.

【0090】演算器15015には、図16よりのEB
32,EB33,EB35、即ち、図22の(Xi,j+1
)、(Xi,j )、(Xi,j-2 )に相当する3つの画素
(横方向の3画素)の値が入力され、 Y18=min(EB32,EB35)−EB33−|
EB32−EB35| Y28=EB33−max(EB32,EB35)−|
EB32−EB35| の値を出力する。
The arithmetic unit 15015 has an EB from FIG.
32, EB33, EB35, that is, (Xi, j + 1 in FIG.
), (Xi, j), and (Xi, j-2) corresponding to three pixels (three pixels in the horizontal direction) are input, and Y18 = min (EB32, EB35) -EB33- |
EB32-EB35 | Y28 = EB33-max (EB32, EB35)-|
The value of EB32-EB35 | is output.

【0091】図24に、以上の構成による線画パターン
の検出原理について示す。例えば図24の1801に示
す様な縦の線画パターンの場合、鎖線で示す断面の画像
信号は例えば1802の様になる。これに対し、図20
に示すY14の値を1803に、Y18の値を1804
に示す。また、Y14とY18の最大値max(Y1
4, Y18)の値を1085に示す。図24に示される
様に、max(Y14,18)の値は縦の線画部分で大
きくなる。
FIG. 24 shows the principle of detecting a line drawing pattern with the above configuration. For example, in the case of a vertical line drawing pattern as shown by 1801 in FIG. 24, the image signal of the cross section shown by the chain line becomes as shown by 1802. On the other hand, FIG.
Value of Y14 is 1803, and the value of Y18 is 1804
Shown in. In addition, the maximum value max (Y1
The value of 4, Y18) is shown at 1085. As shown in FIG. 24, the value of max (Y14, 18) becomes large in the vertical line drawing portion.

【0092】ここで特徴的なこととして、図25に示す
ような線幅3画素以上の線画パターンや、図23に示す
様な単純なエッジにおいては、Y14やY18は大きな
値を取らないということである。従って、本実施例の上
述した演算式によれば、主要国紙幣および有価証券の多
くにある細い線画を的確にとらえることができる。ま
た、この縦方向の線画パターンの場合には、不図示では
あるがY12およびY16の値はいずれも小さいものと
なる。縦方向以外の線画パターンにおいては、他の演算
器いずれかの出力によって検出される。
A characteristic feature here is that Y14 and Y18 do not take large values in a line drawing pattern having a line width of 3 pixels or more as shown in FIG. 25 or a simple edge as shown in FIG. Is. Therefore, according to the above-described arithmetic expression of the present embodiment, it is possible to accurately capture a thin line drawing on many major national banknotes and securities. Also, in the case of this line drawing pattern in the vertical direction, although not shown, the values of Y12 and Y16 are both small. A line drawing pattern other than the vertical direction is detected by the output of any of the other arithmetic units.

【0093】以上の点を考慮して本実施例では、図21
に示す減算器1518で最大値検出回路1516よりの
最大値と最小値検出回路1517よりの最小値との差を
求め、比較器1519,1520により図5に示す係数
設定回路101によって予め設定されている値TS1,
TS2と比較し、比較結果をフリップフロップ1522
を介して出力可能に構成している。
In consideration of the above points, in this embodiment, FIG.
The difference between the maximum value detected by the maximum value detection circuit 1516 and the minimum value detected by the minimum value detection circuit 1517 is obtained by the subtractor 1518 shown in FIG. 1, and is preset by the coefficient setting circuit 101 shown in FIG. 5 by the comparators 1519 and 1520. Value TS1,
Compared with TS2, the comparison result is flip-flop 1522
It is configured to be output via.

【0094】以上の構成を備えることにより本実施例に
おいては、図21に示す最大値検出回路1516の出力
は大きく、いずれかの演算器の出力は小さくなり、最小
値検出回路1517の出力は小さいものとなる。このた
め、この最大値より最小値を減算する減算器1518の
出力ES信号の値が大きくなる。一方、図26の200
1に示す様な網点のパターンの場合においては、演算器
の出力min(A,C)−B−|A−C|の値は大きく
なることがあるが、方向性がなく、前記の4つの方向の
(横方向、縦方向、左斜め上方向、右斜め上方向)のい
ずれの場合にも大きな値を出力する。このため、図21
に示す最大値検出回路1518と最小値検出回路151
7の出力にはさほど差がないことになる。この結果、減
算器1518の出力ES信号の値は小さくなる。
With the above configuration, in the present embodiment, the output of the maximum value detection circuit 1516 shown in FIG. 21 is large, the output of one of the arithmetic units is small, and the output of the minimum value detection circuit 1517 is small. Will be things. Therefore, the value of the output ES signal of the subtractor 1518 that subtracts the minimum value from the maximum value becomes large. On the other hand, 200 in FIG.
In the case of the halftone dot pattern as shown in Fig. 1, the value of the output min (A, C) -B- | A-C | of the computing unit may be large, but there is no directivity, A large value is output in any of the two directions (horizontal, vertical, diagonally upward left, diagonally right upward). Therefore, FIG.
Maximum value detection circuit 1518 and minimum value detection circuit 151 shown in FIG.
There is not much difference in the output of 7. As a result, the value of the output ES signal of the subtractor 1518 becomes smaller.

【0095】以上の結果、線画パターンの場合には減算
器1518の出力ES信号の値は大きくなる。即ち、比
較器1519および比較器1520においては、図5に
示す係数設定回路101によって予め設定されている値
TS1およびTS2(TS1>TS2)と比較される。
結果的に、TS2<ES<TS1の場合にはS=1とな
り、ES≦TS2またはTS2≦ESの場合にはS=0
となる。
As a result, in the case of the line drawing pattern, the value of the ES signal output from the subtractor 1518 becomes large. That is, the comparators 1519 and 1520 are compared with the values TS1 and TS2 (TS1> TS2) preset by the coefficient setting circuit 101 shown in FIG.
As a result, S = 1 when TS2 <ES <TS1, and S = 0 when ES ≦ TS2 or TS2 ≦ ES.
Becomes

【0096】主要国紙幣および有価証券の多くの線画の
みを検出するために、予め多くの主要紙幣及び有価証券
の線画におけるES信号の値の分布を調べておき、ある
一定値の間(TS1とTS2の間)にあることを判定す
ることで判定精度を向上でき、注目画素(Xi,j )が線
画であればS=1となり、注目画素(Xi,j )が線画で
なければS=0となる。
In order to detect only many line drawings of major banknotes and securities, the distribution of ES signal values in many major banknotes and securities line drawings is checked in advance and a certain fixed value (TS1 and It is possible to improve the determination accuracy by determining that the target pixel (Xi, j) is between TS2), and S = 1 if the target pixel (Xi, j) is a line drawing, and S = 0 if the target pixel (Xi, j) is not a line drawing. Becomes

【0097】次に、谷間部分検出の説明をする。図21
に示す減算器1524で最大値検出回路1522よりの
最大値と最小値検出回路1523よりの最小値との差を
求め、比較器1525により図5に示す係数設定回路1
01によって予め設定されている値TTと比較し、比較
結果をフリップフロップ1526を介して出力可能に構
成している。
Next, the valley portion detection will be described. Figure 21
The difference between the maximum value detected by the maximum value detection circuit 1522 and the minimum value detected by the minimum value detection circuit 1523 is obtained by the subtractor 1524 shown in FIG. 4, and the coefficient setting circuit 1 shown in FIG.
The value TT is compared with a preset value TT by 01, and the comparison result can be output via the flip-flop 1526.

【0098】図24において、1801のパターンにお
いて、Y24およびY28の出力結果を1806および
1807に、Y24とY28の最大値max(Y24,
Y28)の演算結果を1808に示す。ここで判る様Y
24およびY28は縦方向の谷間部において大きくなる
信号である。また、この縦方向の谷間部パターンの場合
には、不図示ではあるが、Y22およびY26の値はい
ずれも小さいものとなる。
In FIG. 24, in the pattern 1801, the output results of Y24 and Y28 are set to 1806 and 1807, and the maximum value max (Y24,
The calculation result of Y28) is shown in 1808. As you can see here Y
24 and Y28 are signals that increase in the valley portion in the vertical direction. Further, in the case of the valley pattern in the vertical direction, although not shown, the values of Y22 and Y26 are both small.

【0099】さらに、縦方向以外の谷間部パターンにお
いては、他の演算器いずれかの出力によって検出される
ため、図21に示す最大値検出回路1522の出力は大
きく、いずれかの演算器の出力は小さくなり、最小値検
出回路1523の出力は小さいものとなる。このため、
減算器1524の出力ET信号の値が大きくなる。更に
比較器1525において、予め係数設定回路101によ
って設定されている値TTと比較することで、比較結果
Tには注目画素(Xi,j )が谷間部であるか否かの判定
結果が出力される。即ち、注目画素(Xi,j )が谷間部
であればT=1となり、注目画素(Xi,j )が谷間部で
なければS=0となる。
Further, in the valley pattern other than the vertical direction, the output of the maximum value detection circuit 1522 shown in FIG. 21 is large because it is detected by the output of any other arithmetic unit, and the output of any arithmetic unit is large. Becomes smaller, and the output of the minimum value detection circuit 1523 becomes smaller. For this reason,
The value of the output ET signal of the subtractor 1524 increases. Further, in the comparator 1525, a comparison result with the value TT set by the coefficient setting circuit 101 in advance is output, and the comparison result T is a determination result as to whether or not the pixel of interest (Xi, j) is a valley portion. It That is, T = 1 if the target pixel (Xi, j) is a valley portion, and S = 0 if the target pixel (Xi, j) is not a valley portion.

【0100】(後処理回路705)図27に、図7に示
す後処理部705の詳細ブロック構成図を示す。後処理
回路705は線画部信号Sおよびエッジ部信号Eの後処
理をし、信号に含まれるノイズを除去する。図27にお
いて、4201はインバータであり、4202は図9に
示すFIFOメモリ902と同等の1ライン遅延のため
のFIFOメモリである。ここでHSYNC信号はイン
バータ4201により論理反転されてFIFOメモリ4
202のリセット端子に入力され、FIFOメモリ42
02を1ラインごとに初期化(リセット)する。平坦部
信号Hおよび谷間部信号Tは、FIFOメモリ4202
により1ラインの遅延を与えられ、H1およびT1信号
として出力される。
(Post-Processing Circuit 705) FIG. 27 shows a detailed block diagram of the post-processing unit 705 shown in FIG. The post-processing circuit 705 performs post-processing on the line drawing portion signal S and the edge portion signal E to remove noise included in the signals. In FIG. 27, reference numeral 4201 is an inverter, and reference numeral 4202 is a FIFO memory for one line delay equivalent to the FIFO memory 902 shown in FIG. Here, the HSYNC signal is logically inverted by the inverter 4201, and the FIFO memory 4
202 is input to the reset terminal of the FIFO memory 42.
02 is initialized (reset) for each line. The flat portion signal H and the valley portion signal T are transferred to the FIFO memory 4202.
Is delayed by one line and output as H1 and T1 signals.

【0101】また、4203は線画部信号後処理回路、
4204はエッジ部信号後処理回路である。線画部信号
後処理回路4203にはSS1,SS2,SS3の3信
号が入力されている。SS1信号はS信号と同一の信
号、SS2信号はSS1信号(即ちS信号)を1ライン
遅延した信号、SS3信号はSS2信号を1ライン遅延
した信号である。線画部信号後処理回路4203におい
ては、これらの入力信号より演算によって出力信号S1
を得る。
Reference numeral 4203 denotes a line drawing signal post-processing circuit,
Reference numeral 4204 is an edge signal post-processing circuit. Three signals SS1, SS2, and SS3 are input to the line drawing portion signal post-processing circuit 4203. The SS1 signal is the same signal as the S signal, the SS2 signal is a signal obtained by delaying the SS1 signal (that is, the S signal) by one line, and the SS3 signal is a signal obtained by delaying the SS2 signal by one line. In the line drawing section signal post-processing circuit 4203, the output signal S1 is calculated from these input signals.
To get

【0102】エッジ部信号後処理回路4204にはEE
1,EE2,EE3の3信号が入力されている。EE1
信号はE信号と同一の信号、EE2信号はEE1信号
(即ちE信号)を1ライン遅延した信号、EE3信号は
EE2信号を1ライン遅延した信号である。エッジ部信
号後処理回路4204においては、これらの入力信号よ
り演算によって出力信号E1を得る。 (線画不信号後処理回路4203)図27に示す線画部
信号後処理回路4203の詳細ブロック構成図を図28
乃至図31に示す。
The edge signal post-processing circuit 4204 has an EE
Three signals of 1, EE2 and EE3 are input. EE1
The signal is the same signal as the E signal, the EE2 signal is a signal obtained by delaying the EE1 signal (that is, the E signal) by one line, and the EE3 signal is a signal obtained by delaying the EE2 signal by one line. In the edge signal post-processing circuit 4204, the output signal E1 is obtained by calculation from these input signals. (Line drawing non-signal post-processing circuit 4203) FIG. 28 is a detailed block diagram of the line drawing section signal post-processing circuit 4203 shown in FIG.
Through FIG. 31.

【0103】図28に示す4301〜4309はそれぞ
れフリップフロップであり、1画素単位の遅延を与え
る。そして、SS1信号はフリップフロップ4301,
4302,4303により1画素づつ遅延されてED1
1,ED12,ED13信号となり、SS2信号はフリ
ップフロップ4304,4305,4306により1画
素づつ遅延されてED21,ED22,ED23信号と
なり、SS3信号はフリップフロップ4307,430
8,4309により1画素づつ遅延されてED31,E
D32,ED33信号となる。これら9つの信号で図1
1に示す様な3×3画素のウィンドウを形成する。即
ち、注目画素(Xi,j )および周辺画素(Xi-1,j-1
)、(Xi-1,j )、(Xi-1,j+1 )、(Xi,j-1 )、
(Xi,j+1 )、(Xi+1,j-1 )、(Xi+1,j )、(Xi+
1,j+1 )より構成されるウィンドウである。
Reference numerals 4301 to 4309 shown in FIG. 28 are flip-flops, which give a delay of one pixel unit. Then, the SS1 signal is the flip-flop 4301,
ED1 after being delayed by one pixel by 4302 and 4303
1, ED12, ED13 signals, SS2 signal is delayed by one pixel by flip-flops 4304, 4305, 4306 to become ED21, ED22, ED23 signals, and SS3 signal is flip-flops 4307, 430.
Delayed by 1 pixel by 8, 4309 and ED31, E
It becomes the D32 and ED33 signals. With these nine signals,
A window of 3 × 3 pixels as shown in 1 is formed. That is, the target pixel (Xi, j) and the peripheral pixels (Xi-1, j-1)
), (Xi-1, j), (Xi-1, j + 1), (Xi, j-1),
(Xi, j + 1), (Xi + 1, j-1), (Xi + 1, j), (Xi +
It is a window composed of 1, j + 1).

【0104】これらの9つの信号が入力される図29に
示す4320,4321,4322,4323,432
4,4326,4327はそれぞれ2入力1出力のNA
NDゲート、4328,4329,4330,4331
はそれぞれ4入力1出力のNANDゲート、4332,
4333,4334,4335,4346,4347,
4348,4349はそれぞれ2入力1出力のNAND
ゲート、4340,4341,4342,4343はそ
れぞれ2入力1出力のNANDゲートである。
Inputting these nine signals, 4320, 4321, 4322, 4323, 432 shown in FIG.
4, 4326 and 4327 are 2 inputs 1 output NA
ND gate, 4328, 4329, 4330, 4331
Are 4-input 1-output NAND gates 4332,
4333, 4334, 4335, 4346, 4347,
4348 and 4349 are 2-input 1-output NANDs, respectively
Gates 4340, 4341, 4342, and 4343 are 2-input 1-output NAND gates, respectively.

【0105】ここで、NANDゲート4333の出力が
“1”になる場合を考えると、NANDゲート432
0,4321,4322,4323のいずれかの出力が
“1”になりかつ、ED22の値が“1”となる場合で
ある。これを図11に示した3×3の画素ウィンドウの
イメージで示すと、4346- 1,4346- 2,43
46- 3,4346- 4に示すパターンでNANDゲー
ト4333の出力は“1”になる。
Now, considering the case where the output of the NAND gate 4333 becomes "1", the NAND gate 432.
This is the case where the output of any one of 0, 4321, 4322, and 4323 becomes "1" and the value of ED22 becomes "1". When this is shown by the image of the 3 × 3 pixel window shown in FIG. 11, it is 4346-1, 4344-2, 43.
In the patterns 46-3 and 4346-4, the output of the NAND gate 4333 becomes "1".

【0106】図29において、■印は“1”を示し、□
印は“1”でも“0”でもよいことを示す。また、NA
NDゲート4332の出力は4346- 5に示すパター
ンで“1”の値をとり、合わせてNANDゲート434
0の出力、即ちY0信号は4346(4346- 1,4
346- 2,4346- 3,4346- 4,4346-
5)に示す5つのパターンで“1”となり、それ以外で
“0”となる。ここで、これら5つのパターンによれば
左右方向の線画部で“1”となる。即ち、左右一直線の
3画素(Xi+1,j ,Xi+1,j+1 ,Xi+1,j+2 )に連続し
た線画や注目画素がかすれた線画は、4346- 5で検
出され、左右一直線からやや屈曲した線画は4346-
1,4346- 2,4346- 3,4346- 4で検出
される。即ち、Y0信号は左右方向の線画部判定信号で
あるといえる。
In FIG. 29, the mark ■ indicates "1" and the mark □
The mark indicates that it may be "1" or "0". Also, NA
The output of the ND gate 4332 takes the value of “1” in the pattern shown in 4346-5, and the NAND gate 434 has the same value.
0 output, that is, Y0 signal is 4346 (4346-1,4
346- 2,4346- 3,4346- 4,4346-
It becomes "1" in the five patterns shown in 5), and becomes "0" in other cases. Here, according to these five patterns, the line drawing portion in the left-right direction becomes "1". That is, a line drawing continuous to three pixels (Xi + 1, j, Xi + 1, j + 1, Xi + 1, j + 2) in a straight line on the right and left or a line drawing with a faint pixel is detected at 4346-5. A line drawing slightly bent from the right and left straight lines is 4346-
It is detected at 1,4346-1,2346-3,4346-4. That is, it can be said that the Y0 signal is a line drawing portion determination signal in the left-right direction.

【0107】同様にして、Y1信号は4347に示す5
つのパターンで“1”となり、左下右上方向の線画部判
定信号となる。Y2信号は4348に示す5つのパター
ンで“1”となり、上下方向の線画部判定信号となる。
Y3信号は4349に示す5つのパターンで“1”とな
り、左上右下方向の線画部判定信号となる。更に、Y
0,Y1,Y2,Y3の信号は、フリップフロップ43
44でCLK信号の立上りで同期をとられ、SF信号と
して出力される。またSF信号はFIFOメモリ(例え
ばTEXAS INSTRUMENTS 社のTMS4C1060 )4345に入力
される。
Similarly, the Y1 signal is 5 shown at 4347.
It becomes "1" in one pattern and becomes a line drawing portion determination signal in the lower left upper right direction. The Y2 signal becomes "1" in the five patterns 4348, and becomes the line drawing portion determination signal in the vertical direction.
The Y3 signal becomes "1" in the five patterns shown in 4349, and becomes the line drawing portion determination signal in the upper left lower right direction. Furthermore, Y
The signals of 0, Y1, Y2 and Y3 are flip-flops 43
At 44, the signal is synchronized with the rising edge of the CLK signal and output as the SF signal. The SF signal is also input to a FIFO memory (for example, TMS4C1060 manufactured by TEXAS INSTRUMENTS) 4345.

【0108】一方、FIFOメモリ4345は、図中の
FRST信号でリセットされる。(前記TEXAS INSTRUME
NTS 社のTMS4C1060 のリセット入力は正論理である。)
FRST信号は図32に示される様に、HSYNC周期
の15倍の周期で繰返し発生されるパルスであるため、
FIFOメモリ4345は15ライン分の遅延を与える
ことになる。従って、FIFOメモリ4345により出
力されるSD信号は前記SF信号が15ライン分遅延さ
れたものである。
On the other hand, the FIFO memory 4345 is reset by the FRST signal in the figure. (The above TEXAS INSTRUME
The reset input of NTS TMS4C1060 is positive logic. )
As shown in FIG. 32, the FRST signal is a pulse that is repeatedly generated at a period that is 15 times the HSYNC period.
The FIFO memory 4345 will give a delay of 15 lines. Therefore, the SD signal output from the FIFO memory 4345 is the SF signal delayed by 15 lines.

【0109】次に、前述のSF信号の各ビット毎に
“1”である画素を31×15画素のウィンドウで計数
する回路構成を図30及び図31に示す。先ず図30に
示す回路において、副走査方向の加算を行ない、図33
に4601で示す様に1×15の副走査1列の画素にお
ける計数をする。図31に示す回路では、さらに図30
よりの計数結果を受けて主走査方向に加算し、図33に
4602で示す様な31×15画素ウィンドウでの加算
を行なう。
Next, FIG. 30 and FIG. 31 show circuit configurations for counting "1" pixels for each bit of the SF signal described above in a window of 31 × 15 pixels. First, in the circuit shown in FIG. 30, addition in the sub-scanning direction is performed, and
As shown by 4601, the pixels in the 1 × 15 sub-scanning one column are counted. In the circuit shown in FIG. 31, the circuit shown in FIG.
Upon receiving the counting result from the above, addition is performed in the main scanning direction, and addition is performed in a 31 × 15 pixel window as indicated by 4602 in FIG.

【0110】図30において、4401はフリップフロ
ップ、4402,4403,4404,4405は減算
器、4405,4406,4407,4408,440
9は加算器、4410,4411,4412,4413
はANDゲート、4414,4415,4416,44
17,4418はフリップフロップ、4419はFIF
Oメモリ(例えば、三菱電機社のM66251 )、4420
はインバータ、4421,4422はフリップフロップ
である。
In FIG. 30, 4401 is a flip-flop, 4402, 4403, 4404 and 4405 are subtractors, 4405, 4406, 4407, 4408 and 440.
9 is an adder, 4410, 4411, 4412, 4413
Is an AND gate, 4414, 4415, 4416, 44
17, 4418 is a flip-flop, 4419 is a FIF
O memory (for example, M66251 of Mitsubishi Electric Corporation), 4420
Is an inverter, and 4421 and 4422 are flip-flops.

【0111】以上の構成を備える図30において、前述
のSF信号は4ビット構成であり、4方向(左右方向、
左下右上方向、上下方向、左上右下方向)線画判定信号
を示し、SD信号はSF信号が15ライン遅延した信号
を示している。ここで、一般的に、数列X(i)[i=1,2,
3,.....] に対し、配列X(i)のN項の移動和Y(i)を Y(i) = X(i)+X(i+1)+X(i+2)+.......+X(i+N-1) ・・・(2) の様に定義すれば、 Y(i+i ) = X(i+1)+X(i+2)+.......+X(i+N-1)+X(i+N) ・・・(3) であり、 Y(i+1) = Y(i) + {X(i+N)-X(i)} ・・・(4) となる。
In FIG. 30 having the above configuration, the above-mentioned SF signal has a 4-bit configuration and has four directions (left and right directions,
Lower left upper right direction, vertical direction, upper left lower right direction) line drawing determination signal, and SD signal indicates a signal obtained by delaying the SF signal by 15 lines. Here, in general, the sequence X (i) [i = 1,2,
3, .....], the moving sum Y (i) of N terms of array X (i) is Y (i) = X (i) + X (i + 1) + X (i + 2) + ....... + X (i + N-1) ・ ・ ・ (2) Y (i + i) = X (i + 1) + X (i + 2) + ....... + X (i + N-1) + X (i + N) ・ ・ ・ (3), and Y (i + 1) = Y (i) + (X (i + N) -X (i)} (4)

【0112】一方、X(i)の初期値として、X(1)=X(2)=X
(3)=....=X(N)=0 とするときには、Y(1) = 0と確定され
るため、 Y(2) = Y(1) + {X(1+N)-X(1)} ・・・(5) Y(3) = Y(2) + {X(2+N)-X(2)} ・・・(6) : Y(i+1) = Y(i) + {Y(i+N)-Y(i)} ・・・(7) として順次Y(i)は順次算出される。
On the other hand, as the initial value of X (i), X (1) = X (2) = X
When (3) = .... = X (N) = 0, Y (1) = 0 is fixed, so Y (2) = Y (1) + (X (1 + N) -X (1)} ・ ・ ・ (5) Y (3) = Y (2) + {X (2 + N) -X (2)} ・ ・ ・ (6): Y (i + 1) = Y (i ) + {Y (i + N) -Y (i)} (7), and Y (i) is sequentially calculated.

【0113】同様にして、2次元の配列X(i,j)[i=1,2,
3,,...... j=1,2,3,........]に対し、 Y(i,j) = X(i,j)+X(i+1,j)+X(i+2,j)+.....+X(i+M-1,j) ・・・(8) の様に定義すれば Y(i+1,j) = X(i+1,j)+X(i+2,j)+.....+X(i+M-1,j)+X(i+M,j) ・・・(9) であり、 Y(i+1,j) = Y(i,j) + {X(i+M,j)-X(i,j)} ・・・(10) となる。
Similarly, a two-dimensional array X (i, j) [i = 1,2,
3 ,, ...... j = 1,2,3, ........], Y (i, j) = X (i, j) + X (i + 1, j ) + X (i + 2, j) + ..... + X (i + M-1, j) ・ ・ ・ (8) Y (i + 1, j) = X ( i + 1, j) + X (i + 2, j) + ..... + X (i + M-1, j) + X (i + M, j) ・ ・ ・ (9), Y (i + 1, j) = Y (i, j) + {X (i + M, j) -X (i, j)} (10).

【0114】一方、X(i,j)の初期値として、X(1,j)=X
(2,j)=X(3,j)=....=X(M,j)=0 とするとき、Y(1,j) = 0
と確定されるため、 Y(2,j) = Y(1,j) + {X(1+M,j)-X(1,j)} ・・・(11) Y(3,j) = Y(2,j) + {X(2+M,j)-X(2,j)} ・・・(12) : Y(i+1,j) = Y(i,j) + {Y(i+M,j)-Y(i,j)} ・・・(13) として順次Y(i,j)は順次算出される。
On the other hand, as the initial value of X (i, j), X (1, j) = X
When (2, j) = X (3, j) = .... = X (M, j) = 0, Y (1, j) = 0
Y (2, j) = Y (1, j) + {X (1 + M, j) -X (1, j)} ・ ・ ・ (11) Y (3, j) = Y (2, j) + {X (2 + M, j) -X (2, j)} ... (12): Y (i + 1, j) = Y (i, j) + {Y ( i + M, j) -Y (i, j)} (13), and Y (i, j) is sequentially calculated.

【0115】更に、 Z(i,j) = X(i,j )+X(i+1,j )+X(i+2,j )+.....+X(i+M,j ) +X(i,j+1 )+X(i+1,j+1 )+X(i+2,j+1 )+.....+X(i+M,j+1 ) +X(i,j+2 )+X(i+1,j+2 )+X(i+2,j+2 )+.....+X(i+M,j+2 ) : +X(i,j+N-1)+X(i+1,j+N-1)+X(i+2,j+N-1)+.....+X(i+M,j+N-1) ・・・(14) とすれば、 Z(i,j ) = Y(i,j)+Y(i,j+1)+Y(i,j+2)+.....+Y(i,j+N-1) ・・・(15) と表され、 Z(i,j+1) = Y(i,j+1)+Y(i,j+2)+.....+Y(i,j+N-1)+Y(i,j+N) ・・・(16) であり、 Z(i,j+1) = Z(i,j) + {Y(i,j+N)-Y(i,j)} ・・・(17) となる。Furthermore, Z (i, j) = X (i, j) + X (i + 1, j) + X (i + 2, j) + ..... + X (i + M, j ) + X (i, j + 1) + X (i + 1, j + 1) + X (i + 2, j + 1) + ..... + X (i + M, j + 1) + X (i, j + 2) + X (i + 1, j + 2) + X (i + 2, j + 2) + ..... + X (i + M, j + 2): + X (i, j + N-1) + X (i + 1, j + N-1) + X (i + 2, j + N-1) + ..... + X (i + M, j + N-1) ・ ・ ・ (14) Z (i, j) = Y (i, j) + Y (i, j + 1) + Y (i, j + 2) + .... . + Y (i, j + N-1) ・ ・ ・ (15), Z (i, j + 1) = Y (i, j + 1) + Y (i, j + 2) +. .... + Y (i, j + N-1) + Y (i, j + N) ... (16) and Z (i, j + 1) = Z (i, j) + ( Y (i, j + N) -Y (i, j)} (17)

【0116】一方、Z(i,j)の初期値として、Z(i,1)=Z
(i,2)=Z(i,3)=....=Z(i,N)=0とするとき、Z(i,1) = 0と
確定されるため、 Z(i,2) = Z(i,1) + {Y(i,1+N)-Y(i,1)} ・・・(18) Z(i,3) = Z(i,2) + {Y(i,2+N)-Y(i,2)} ・・・(19) : Z(i+1,j) = Z(i,j) + {Y(i,j+N)-Y(i,j)} ・・・(20) として順次Z(i,j)は順次算出される。
On the other hand, as an initial value of Z (i, j), Z (i, 1) = Z
When (i, 2) = Z (i, 3) = .... = Z (i, N) = 0, Z (i, 1) = 0 is established, so Z (i, 2) = Z (i, 1) + {Y (i, 1 + N) -Y (i, 1)} ・ ・ ・ (18) Z (i, 3) = Z (i, 2) + {Y (i, 2 + N) -Y (i, 2)} ・ ・ ・ (19): Z (i + 1, j) = Z (i, j) + {Y (i, j + N) -Y (i, j )} ・ ・ ・ (20), Z (i, j) is sequentially calculated.

【0117】以上の点を踏まえて31×15のウィンド
ウ内の計数に応用すれば、先ず、図33の4601に示
す様に副走査方向15ラインの加算をし、その加算結果
を主走査31画素の加算をし、4602に示す様な31
×15のウィンドウ内の加算を行なう。図30におい
て、i を副走査位置、j を主走査位置、M=15とすれ
ば、SF信号の各ビットは前記X(i+M,j)に相当し、SD
信号の各ビットは前記X(i,j)に相当する。ここで、SF
信号およびSD信号はフリップフロップ4401を経
て、各ビットに分けられ、減算器4402,4403,
4404,4405においてそれぞれ減算が行われる。
また、各減算器の演算結果は、加算器4406,440
7,4408,4409のB入力に入力され、減算器お
よび加算器により前記(13)式に相当する演算が行われ
る。加算器のA入力については後述する。
Applying to the counting in the 31 × 15 window in consideration of the above points, first, as shown by 4601 in FIG. 33, 15 lines are added in the sub-scanning direction, and the addition result is 31 pixels in the main scanning. And add 31 as shown in 4602.
Addition within the window of × 15 is performed. In FIG. 30, if i is the sub-scanning position, j is the main scanning position, and M = 15, then each bit of the SF signal corresponds to the X (i + M, j), and SD
Each bit of the signal corresponds to the X (i, j). Where SF
The signal and the SD signal are divided into each bit through the flip-flop 4401, and the subtractors 4402, 4403,
Subtraction is performed at 4404 and 4405, respectively.
Further, the calculation result of each subtractor is obtained by adding
It is input to the B inputs of 7, 4408 and 4409, and the subtracter and the adder perform the calculation corresponding to the equation (13). The A input of the adder will be described later.

【0118】ここで4410,4411,4412,4
413はANDゲート、4414,4415,441
6,4417,4418はフリップフロップ、441
9,4420はFIFOメモリ(例えば三菱電機社M662
51)であり、4420はインバータ、4421,442
2はフリップフロップである。HSYNC信号はインバ
ータ4420で論理が反転され、FIFOメモリ441
9,4420の読み出しリセット端子RSTRに入力される
とともに、フリップフロップ4421および4422に
て2画素分の遅延の後に書き込みリセット端子RSTW信号
に入力される。従って、FIFOメモリ4419および
4420では「1ライン−2画素」の画素遅延が与えら
れる。
Here, 4410, 4411, 4412, 4
413 is an AND gate, 4414, 4415, 441
6, 4417 and 4418 are flip-flops, 441
9, 4420 is a FIFO memory (for example, M662 of Mitsubishi Electric Corp.)
51), 4420 is an inverter, 4421, 442
2 is a flip-flop. The logic of the HSYNC signal is inverted by the inverter 4420, and the FIFO memory 441 is
It is input to the read reset terminal RSTR of 9, 4420, and is input to the write reset terminal RSTW signal after a delay of two pixels in the flip-flops 4421 and 4422. Therefore, the FIFO memories 4419 and 4420 are provided with a pixel delay of "1 line-2 pixels".

【0119】これをふまえて、加算器4406(または
4407,4408,4409)の出力は、フリップフ
ロップ4415(または4415,4416,441
7)で1画素遅延し、FIFOメモリ4419(または
4420)で(1ライン−2画素)遅延し、フリップフ
ロップ4401で1画素遅延して加算器4406(また
は4407,4408,4409)のA入力に入力され
る。従ってこれらの遅延を併せて前記加算器のA入力
は、同一の加算器の出力を1ライン遅延させたものであ
る。
Based on this, the output of the adder 4406 (or 4407, 4408, 4409) is the flip-flop 4415 (or 4415, 4416, 441).
7) delays by 1 pixel, FIFO memory 4419 (or 4420) delays by (1 line-2 pixels), flip-flop 4401 delays by 1 pixel and is input to the A input of adder 4406 (or 4407, 4408, 4409). Is entered. Therefore, together with these delays, the A input of the adder is obtained by delaying the output of the same adder by one line.

【0120】従って、この加算器のA入力を前記(13)式
のY(i,j)とすれば、出力はY(i+1,j)とおける。また一
方、SF信号の各ビットはX(i+M,j),SD信号の各ビッ
トはX(i,j)とおけることより、加算器4406(または
加算器4407,4408,4409)では、前記(13)
式を演算していることになる。また、副走査の開始以前
には、VSYNC信号は“0”となるため、ANDゲー
ト4410によってX(i,j)の初期値として、 X(i,j)=X(i+1,j)=X(i+2)=.....=X(i+M)=0 (但しM=15) が保証されるため、前述の(13)式で示されたアルゴリズ
ムに基づき、図32の4601に相当する1×15の画
素ウィンドウにおける総和が算出される。図30におけ
るFO出力は16ビット信号であるが、FO信号のビッ
ト0〜ビット3はSF信号のビット0について前記1×
15のウィンドウ内の和となり、FO信号のビット4〜
ビット7はSF信号のビット1について前記1×15の
ウィンドウ内の和となり、FO信号のビット8〜ビット
11はSF信号のbit2について前記1×15のウィンド
ウ内の和となり、FO信号のビット12〜ビット15は
SF信号のビット3について前記1×15のウィンドウ
内の和となる。またSF2信号はSF信号が2画素分だ
け遅延されFO信号と同期をとられたものである。
Therefore, if the A input of this adder is Y (i, j) in the equation (13), the output can be Y (i + 1, j). On the other hand, since each bit of the SF signal is X (i + M, j) and each bit of the SD signal is X (i, j), the adder 4406 (or the adders 4407, 4408, 4409) (13) above
You're computing an expression. Since the VSYNC signal becomes "0" before the start of the sub-scan, the AND gate 4410 sets X (i, j) = X (i + 1, j) as the initial value of X (i, j). Since = X (i + 2) = ..... = X (i + M) = 0 (where M = 15) is guaranteed, based on the algorithm shown in the equation (13), FIG. The total sum in the 1 × 15 pixel window corresponding to 4601 is calculated. Although the FO output in FIG. 30 is a 16-bit signal, bits 0 to 3 of the FO signal are 1 × with respect to bit 0 of the SF signal.
It becomes the sum within the window of 15, and the FO signal bit 4 to
Bit 7 is the sum within the 1 × 15 window for bit 1 of the SF signal, and bits 8 to 11 of the FO signal are the sum within the 1 × 15 window for bit 2 of the SF signal, and bit 12 of the FO signal. ~ Bit 15 is the sum within the 1 × 15 window for bit 3 of the SF signal. The SF2 signal is obtained by delaying the SF signal by two pixels and synchronizing it with the FO signal.

【0121】図31に示す回路は、前記(14)〜(20)式に
基づき、図33の4602に示す総和を求める回路であ
る。図31において、4501は31個のフリップフロ
ップ群であり、4502,4503,4504,450
5は減算器、4506,4507,4508,4509
は加算器、4510,4511,4512,4513は
フリップフロップである。
The circuit shown in FIG. 31 is a circuit for obtaining the total sum indicated by 4602 in FIG. 33 based on the equations (14) to (20). In FIG. 31, reference numeral 4501 denotes a group of 31 flip-flops, 4502, 4503, 4504, and 450.
5 is a subtractor, 4506, 4507, 4508, 4509
Is an adder, and 4510, 4511, 4512, 4513 are flip-flops.

【0122】図31において、FO信号はフリップフロ
ップ群4501により31画素分の遅延を与えられ、F
OD信号となる。従って、FOD信号を前述のY(i,j+N)
とすればFOD信号は同じくY(i,j)となり、減算器45
02(または減算器4503,4504,4505,4
506)の演算結果が加算器4506(または加算器4
507,4508,4509,4520)の出力をZ(i,
j+1)とおけば、フリップフロップ4510(またはフリ
ップフロップ4511,4512,4513)によって
1画素分遅延し、Z(i,j)として前記加算器のA入力に入
力される。
In FIG. 31, the FO signal is delayed by 31 pixels by the flip-flop group 4501,
It becomes an OD signal. Therefore, the FOD signal is converted to the above-mentioned Y (i, j + N)
Then, the FOD signal becomes Y (i, j) as well, and the subtracter 45
02 (or subtractor 4503, 4504, 4505, 4
The calculation result of 506) is the adder 4506 (or the adder 4).
507, 4508, 4509, 4520) is output as Z (i,
If it is written as (j + 1), it is delayed by one pixel by the flip-flop 4510 (or the flip-flops 4511, 4512, 4513) and input to the A input of the adder as Z (i, j).

【0123】従って、前記(20)式に相当する演算がなさ
れ、また、インバータ4514によって論理反転された
HSYNC信号によりフリップフロップ群4501の保
持内容は“0”に初期化される。このため、前記(20)式
に基づくアルゴリズムにおいて、図33の4602に示
す16×31のウィンドウ内における総和が算出され
る。
Therefore, the operation corresponding to the equation (20) is performed, and the content held in the flip-flop group 4501 is initialized to "0" by the HSYNC signal logically inverted by the inverter 4514. Therefore, in the algorithm based on the equation (20), the total sum within the 16 × 31 window indicated by 4602 in FIG. 33 is calculated.

【0124】即ち、SU0信号は、SF信号のビット0
即ち左右方向の線画部判定信号であるY0信号を前記1
6×31のウィンドウ内で加算したものであり、SU1
信号は、SF信号のビット1即ち左下右上方向の線画部
判定信号であるY1信号を前記16×31のウィンドウ
内で加算したものであり、SU2信号は、SF信号のbi
t2即ち上下方向の線画部判定信号であるY2信号を前記
16×31のウィンドウ内で加算したものであり、SU
3信号は、SF信号のビット3即ち左上右下方向の線画
部判定信号であるY3信号を前記16×31のウィンド
ウ内で加算したものである。
That is, the SU0 signal is the bit 0 of the SF signal.
That is, the Y0 signal, which is a line drawing portion determination signal in the left-right direction, is
SU1 is added in a 6 × 31 window.
The signal is bit 1 of the SF signal, that is, the Y1 signal that is the line drawing portion determination signal in the lower left upper right direction added within the 16 × 31 window, and the SU2 signal is the bi signal of the SF signal.
t2, that is, the Y2 signal which is the vertical line drawing portion determination signal is added within the 16 × 31 window, and SU
The 3 signal is obtained by adding the bit 3 of the SF signal, that is, the Y3 signal, which is the line drawing portion determination signal in the upper left lower right direction, within the 16 × 31 window.

【0125】なお、以上に説明した本実施例のアルゴリ
ズムを用いない方式では、従来図34に示される回路を
採用することが一般的であった。詳しい説明は省略する
が、ここで用いられるFIFOメモリおよび加算器の数
が上述した本実施例に比較し膨大となっている。例え
ば、減算器を含む加算器の数では、上述した本実施例の
回路が16個で済んでいるのに対し、図34の方式では
464(=31×15-1) 個の加算器が必要であった。
In the system which does not use the algorithm of the present embodiment described above, the circuit shown in FIG. 34 has conventionally been adopted. Although detailed description is omitted, the number of FIFO memories and adders used here is enormous as compared with the present embodiment described above. For example, in terms of the number of adders including subtractors, the above-described circuit of this embodiment is 16 in number, whereas the method of FIG. 34 requires 464 (= 31 × 15−1) adders. Met.

【0126】従って、この回路部分をLSI化した場合
には、上述した本実施例の場合には図34に示す従来例
に比較し、回路規模の大きが小さくなるばかりか、FI
FOメモリとLSIとの入出力の数が少なくなり、(本
実施例では40、従来例では64)LSI化をする上で
極めて有効である。次に、図31において、4515,
4516,4517,1518は8ビットリミッタであ
り、算出されたSU0,SU1,SU2,SU3の各信
号の値が8ビットの最大値即ち255を越える場合には
255を出力し、そうでない場合には入力値をそのまま
出力する。4519,4520,4521,4522は
それぞれ比較器である。ここで、TAは係数設定回路1
01により予め設定されている値であり、4519にお
いては、リミッタ4515を経て出力されるSU0信号
の値とTAの値が比較され、SU0>TAであれば
“1”をSU0≦TAであれば“0”を出力する。
Therefore, when this circuit portion is formed into an LSI, in the case of the present embodiment described above, not only the circuit scale becomes smaller as compared with the conventional example shown in FIG.
The number of inputs and outputs to and from the FO memory and the LSI is reduced (40 in the present embodiment, 64 in the conventional example), which is extremely effective in realizing an LSI. Next, in FIG. 31, 4515,
4516, 4517, and 1518 are 8-bit limiters, which output 255 when the calculated signal values of SU0, SU1, SU2, and SU3 exceed the maximum value of 8 bits, that is, 255, and otherwise. The input value is output as it is. 4519, 4520, 4521, and 4522 are comparators, respectively. Here, TA is the coefficient setting circuit 1
The value is preset by 01, and in 4519, the value of the SU0 signal output through the limiter 4515 and the value of TA are compared. If SU0> TA, “1” is set, and if SU0 ≦ TA, Output "0".

【0127】また、4523はANDゲートであり、S
F2信号が16画素遅延されたSF3信号のビット0と
論理積がとられる。SF3信号は、SF信号に対し、図
30および図31の回路の演算遅延分を加えたものであ
り、図33の4603を注目画素とした場合のSF信号
そのものである。従って、ANDゲート4523の出力
は、左右方向の線画部判定信号であるY0信号におい
て、図32の4602に示す31×15のウィンドウ内
での“1”の個数がTAより大きく、かつ、注目画素4
603におけるY0信号が“1”である場合に“1”と
なり、それ以外では“0”となる。言い方をかえれば、
注目画素自身が左右方向の線画部でありかつ、注目画素
周辺にも同方向の線画部が一定数以上存在する場合に
“1”となる信号である。
Further, 4523 is an AND gate, and S
The F2 signal is ANDed with bit 0 of the SF3 signal delayed by 16 pixels. The SF3 signal is obtained by adding the operation delay amount of the circuits of FIGS. 30 and 31 to the SF signal, and is the SF signal itself when 4603 of FIG. 33 is the target pixel. Therefore, the output of the AND gate 4523 is that, in the Y0 signal which is the line drawing portion determination signal in the left-right direction, the number of “1” in the 31 × 15 window shown in 4602 of FIG. Four
If the Y0 signal in 603 is "1", it becomes "1", and otherwise it becomes "0". In other words,
This signal is "1" when the pixel of interest itself is a line drawing part in the left-right direction and there are a certain number or more of line drawing parts in the same direction around the pixel of interest.

【0128】同様にして、ANDゲート4524の出力
は、左下右上方向の線画部判定信号であるY1信号にお
いて、図32の4602に示す31×15のウィンドウ
内での“1”の個数がTAより大きく、かつ、注目画素
4603におけるY1信号が“1”である場合に“1”
となり、それ以外では“0”となる。言い方をかえれ
ば、注目画素自身が左上右下方向の線画部であり、か
つ、注目画素周辺にも同方向の線画部が一定数以上存在
する場合に“1”となる。
Similarly, as for the output of the AND gate 4524, in the Y1 signal which is the line drawing portion determination signal in the lower left upper right direction, the number of “1” in the 31 × 15 window 4602 shown in FIG. "1" when the Y1 signal in the target pixel 4603 is large and is "1"
And 0 otherwise. In other words, if the target pixel itself is the line drawing part in the upper left lower right direction, and there are a certain number or more of line drawing parts in the same direction around the target pixel, the value is "1".

【0129】ANDゲート4525の出力は、上下方向
の線画部判定信号であるY2信号において、図32の4
602に示す31×15のウィンドウ内での“1”の個
数がTAより大きく、かつ、注目画素4603における
Y2信号が“1”である場合に“1”となりそれ以外で
は“0”となる。言い方をかえれば、注目画素自身が上
下方向の線画部でありかつ、注目画素周辺にも同方向の
線画部が一定数以上存在する場合に“1”となる。
The output of the AND gate 4525 is 4 in FIG. 32 in the Y2 signal which is the line drawing portion determination signal in the vertical direction.
If the number of “1” s in the 31 × 15 window shown in 602 is larger than TA and the Y2 signal in the target pixel 4603 is “1”, it is “1”, and otherwise it is “0”. In other words, when the pixel of interest itself is a line drawing part in the vertical direction and there are a certain number or more of line drawing parts in the same direction around the pixel of interest, the value is "1".

【0130】ANDゲート4526の出力は、左下右上
方向の線画部判定信号であるY3信号において、図32
の4602に示す31×15のウィンドウ内での“1”
の個数がTAより大きく、かつ、注目画素4603にお
けるY3信号が“1”である場合に“1”となりそれ以
外では“0”となる。言い方をかえれば、注目画素自身
が左下右上方向の線画部でありかつ、注目画素周辺にも
同方向の線画部が一定数以上存在する場合に“1”とな
る。
The output of the AND gate 4526 is the Y3 signal which is the line drawing portion determination signal in the lower left and upper right direction shown in FIG.
"1" in the 31x15 window shown in 4602
Is larger than TA and the Y3 signal in the pixel of interest 4603 is “1”, it is “1”, and otherwise it is “0”. In other words, when the pixel of interest is the line drawing portion in the lower left upper right direction, and there are a certain number or more of line drawing portions in the same direction around the pixel of interest, the value is "1".

【0131】更に、4527はOR回路であり、AND
ゲート4523,4524,4525,4526の各出
力の論理和をとり、その出力はフリップフロップ452
8を経てS1信号として出力される。従ってS1信号
は、図32の4602に示す31×15のウィンドウ内
で、注目画素4603自身がいずれかの方向の線画部で
ありかつ、注目画素周辺にも同方向の線画部が一定数以
上存在する場合に“1”となり、それ以外では“0”と
なる信号である。
Further, 4527 is an OR circuit, and AND
The outputs of the gates 4523, 4524, 4525, and 4526 are ORed, and the outputs are flip-flops 452.
It is output as S1 signal after passing through 8. Therefore, in the S1 signal, in the 31 × 15 window 4602 shown in FIG. 32, the target pixel 4603 itself is a line drawing part in any direction, and there are a certain number or more of line drawing parts in the same direction around the target pixel. The signal is "1" when it is, and is "0" otherwise.

【0132】(エッジ部信号後処理回路4204)図3
5に図27に示すエッジ部信号後処理回路4204の詳
細を示す。図35において、4801,4802,48
03,4804,4805,4806,4807,48
08,4809はフリップフロップであり、EC11,
EC12,EC13,EC21,EC22,EC23,
EC31,EC32,EC33はエッジ部判定信号につ
いて図11に示す3×3のウィンドウに配列したもので
ある。
(Edge signal post-processing circuit 4204) FIG.
5 shows details of the edge signal post-processing circuit 4204 shown in FIG. In FIG. 35, 4801, 4802, 48
03, 4804, 4805, 4806, 4807, 48
08 and 4809 are flip-flops, EC11,
EC12, EC13, EC21, EC22, EC23,
EC31, EC32, and EC33 are obtained by arranging the edge determination signals in the 3 × 3 window shown in FIG.

【0133】さらに、4810,4811,4812,
4813,3814,4815,4816,4817,
4818,4819,4820,4821はそれぞれ2
入力1出力のNANDゲート、4822は12入力1出
力のNANDゲート、4823は2入力1出力のAND
ゲートであり、詳しい説明は省略するが、結果としてA
NDゲート4823の出力E00信号は、エッジ部信号
が図36に示す12通りのパターンを示した場合、即
ち、注目画素を含み注目画素周辺にエッジ部が連続して
存在する場合に“1”となり、それ以外で“0”とな
る。
Further, 4810, 4811, 4812,
4813, 3814, 4815, 4816, 4817,
4818, 4819, 4820 and 4821 are each 2
Input 1 output NAND gate, 4822 is 12 input 1 output NAND gate, 4823 is 2 input 1 output AND
Although it is a gate, detailed explanation is omitted, but as a result, A
The output E00 signal of the ND gate 4823 becomes "1" when the edge part signal has 12 patterns shown in FIG. 36, that is, when the edge part continuously exists around the target pixel including the target pixel. , Otherwise, it becomes “0”.

【0134】さらにE00信号は、フリップフロップ4
824をへてE1信号として出力される。 (選択回路706)図37〜図39に図7に示す選択回
路706の詳細な回路図を示し、図40にそのタイミン
グチャートを示す。
Further, the E00 signal is the flip-flop 4
824 to be output as an E1 signal. (Selecting circuit 706) FIGS. 37 to 39 are detailed circuit diagrams of the selecting circuit 706 shown in FIG. 7, and FIG. 40 is a timing chart thereof.

【0135】図37において、S1,H1,T1,E1
信号は、それぞれ後処理回路706によって後処理をさ
れた線画部信号、平坦部信号、谷間部信号、エッジ部信
号である。4901,4902,4903,4904は
フリップフロップ、4905は2入力1出力のセレクタ
(論理は4905- 1に示される。)、4906はフリ
ップフロップ、4907はエンコーダ(論理は4908
に示す)、4909は2入力1出力のセレクタ(論理は
4905- 1に示す)、4910はフリップフロップで
ある。
In FIG. 37, S1, H1, T1, E1
The signals are the line drawing portion signal, the flat portion signal, the valley portion signal, and the edge portion signal that have been post-processed by the post-processing circuit 706, respectively. 4901, 4902, 4903, 4904 are flip-flops, 4905 is a 2-input 1-output selector (logic is shown in 4905-1), 4906 is a flip-flop, 4907 is an encoder (logic is 4908).
4909 is a 2-input 1-output selector (logic is shown in 4905-1), and 4910 is a flip-flop.

【0136】ここで、エンコーダ4907には、連続す
る4画素におけるS1,H1,T1,E1の各信号が図
に示される様に配列されて入力される。即ち、16ビッ
トのX入力の内、ビット15 〜12には連続する4画素に
ついての線画部を示すS1信号、ビット11〜8 には連
続する4画素についての平坦部を示すH1信号、ビット
7〜4 には連続する4画素についての谷間部を示すT1
信号、ビット3〜0 には連続する4画素についてのエッ
ジ部を示すE1信号が入力され、EC信号がエンコード
され出力される。
Here, the signals of S1, H1, T1 and E1 in four consecutive pixels are arranged and input to the encoder 4907 as shown in the figure. That is, of the 16-bit X input, bits 15 to 12 have an S1 signal indicating a line drawing portion for four consecutive pixels, and bits 11 to 8 have an H1 signal indicating a flat portion for four consecutive pixels. 〜4 is T1 which shows the valley part about 4 consecutive pixels
An E1 signal indicating an edge portion for four consecutive pixels is input to the signal, bits 3 to 0, and an EC signal is encoded and output.

【0137】ここで、エンコーダ4907の論理は49
08に示されるが、この論理によれば、先ず連続する4
画素中にS1信号が“1”となることがあれば、はじめ
て“1”となった座標(0〜3)の値を出力し、連続す
る4画素中のS1信号がすべて“0”の場合には、連続
する4画素中でH1信号が“1”となることがあれば、
はじめて“1”となった座標(0〜3)の値を出力し、
連続する4画素中のS1およびH1信号がすべて“0”
の場合には、連続する4画素中でT1信号が“1”とな
ることがあれば、はじめて“1”となった座標(0〜
3)の値を出力し、連続する4画素中のS1,H1,T
1信号がすべて“0”の場合には、連続する4画素中で
E1信号が“1”となることがあれば、はじめて“1”
となった座標(0〜3)の値を出力し、連続する4画素
中のS1,H1,T1,E1信号がすべて“0”の場合
には、“0”を出力する。
Here, the logic of the encoder 4907 is 49
08, the logic is that first four consecutive 4
If the S1 signal becomes "1" in a pixel, the value of the coordinate (0 to 3) that becomes "1" for the first time is output, and if the S1 signals in four consecutive pixels are all "0". If the H1 signal becomes “1” in four consecutive pixels,
The value of the coordinate (0-3) that became "1" for the first time is output,
All S1 and H1 signals in 4 consecutive pixels are "0"
In this case, if the T1 signal becomes “1” in four consecutive pixels, the coordinate (0 to 0) that becomes “1” for the first time is displayed.
The value of 3) is output and S1, H1, and T in four consecutive pixels are output.
When all the 1 signals are “0”, if the E1 signal becomes “1” in four consecutive pixels, it is “1” for the first time.
The value of the coordinate (0 to 3) that has become is output, and when the S1, H1, T1, and E1 signals in four consecutive pixels are all "0", "0" is output.

【0138】更に、エンコーダ4907の出力であるE
C信号は2入力1出力のセレクタ4909のA入力に入
力される。セレクタ4909の論理を図中の4905-
1に示す。セレクタ4907の出力Yは、フリップフロ
ップ4910をへてEC4信号としてセレクタ4909
のB入力にフィードバックされ、またセレクタ4909
の制御入力SにはXD1信号(4画素周期のXPHS信
号が“1”の場合のみに“0”となる信号であり、第4
図に示される)が入力される。このため、EC4は、X
D1信号が“0”のときのECの値が4画素間隔の間フ
リップフロップ4910にラッチされる。
Further, the output of the encoder 4907, E
The C signal is input to the A input of the 2-input 1-output selector 4909. The logic of the selector 4909 is 4905- in the figure.
Shown in 1. The output Y of the selector 4907 is output to the selector 4909 as an EC4 signal through the flip-flop 4910.
Is fed back to the B input of the selector 4909.
The control input S of the XD1 signal is a signal which becomes "0" only when the XPHS signal of the 4-pixel cycle is "1".
(Shown in the figure) is entered. Therefore, EC4 is X
The value of EC when the D1 signal is "0" is latched in the flip-flop 4910 during the interval of 4 pixels.

【0139】4911は4入力1出力のセレクタ(論理
は4911- 1に示す)であり、制御入力Sには前述の
EC4信号が入力され、A,B,C,Dの各入力にはX
D2,XD3,XD0,XD1信号がそれぞれ入力され
る。一方、フリップフロップ4904の出力はセレクタ
4905のA入力に入力され、セレクタ4911の出力
はセレクタ4905の制御入力Sに入力され、セレクタ
4905のY出力はフリップフロップ4906を経てセ
レクタ4905のB入力にSH8信号としてフィードバ
ックされ、結果として、エンコーダ4907の出力する
0〜3の座標値に相当するSH4信号が4画素間隔の間
フリップフロップ4906にラッチされる。
Reference numeral 4911 denotes a 4-input 1-output selector (logic is shown in 4911-1), the above-mentioned EC4 signal is inputted to the control input S, and X is inputted to each of A, B, C and D inputs.
The D2, XD3, XD0, and XD1 signals are input, respectively. On the other hand, the output of the flip-flop 4904 is input to the A input of the selector 4905, the output of the selector 4911 is input to the control input S of the selector 4905, and the Y output of the selector 4905 is input to the B input of the selector 4905 via the flip-flop 4906. The signal is fed back as a signal, and as a result, the SH4 signal corresponding to the coordinate values of 0 to 3 output from the encoder 4907 is latched in the flip-flop 4906 during the interval of 4 pixels.

【0140】さらに、4912は2入力1出力のセレク
タ(論理は4905- 1)、4913はフリップフロッ
プ、4914は2入力1出力のセレクタ(論理は490
5-1)、4915,4916,4917,4918,
4919,4920,4921はフリップフロップ、4
922はORゲートである。以上の構成をとることで、
選択回路706においては、連続する4画素における解
像度400dpiのS1,H1,T1,E1信号を1/4のレ
ートでサンプリングして解像度100dpiのS0,H0,T
0,E0信号を得ることが可能となる。しかもこの時、
単純な間引きを行なうのではなく、入力信号が“1”と
なるような座標を選んでサンプリングを行なうことがで
きる。
Further, 4912 is a 2-input / 1-output selector (logic is 4905-1), 4913 is a flip-flop, 4914 is 2-input / 1-output selector (logic is 490).
5-1), 4915, 4916, 4917, 4918,
4919, 4920, 4921 are flip-flops, 4
Reference numeral 922 is an OR gate. With the above configuration,
In the selection circuit 706, S1, H1, T1, and E1 signals having a resolution of 400 dpi in four consecutive pixels are sampled at a rate of 1/4 and S0, H0, T having a resolution of 100 dpi are sampled.
It is possible to obtain 0 and E0 signals. And at this time,
Instead of simple thinning, sampling can be performed by selecting coordinates such that the input signal is "1".

【0141】またS0,H0,T0,E0の各信号に同
期して、どのポイントでサンプリングしたかをしめすF
WE信号が、YD3信号が“0”の場合に出力される。
以上の各タイミングチャートを図40に示す。更に、出
力されたS0,H0,T0,E0は図38及び図39に
示す回路に入力される。まず図38において、500
1,5002,5003,5004,5005,500
6,5007,5008は2入力1出力のセレクタであ
り、図中に示されるとおりANDゲート、NORゲート
およびインバータで構成される。FZSEL0およびFZSEL1
は、係数設定回路101により予め設定される値であ
る。
Further, in synchronization with each signal of S0, H0, T0, and E0, F indicating the sampling point is shown.
The WE signal is output when the YD3 signal is "0".
FIG. 40 shows the above timing charts. Further, the output S0, H0, T0 and E0 are input to the circuits shown in FIGS. 38 and 39. First, in FIG. 38, 500
1,500,5003,5004,5005,500
Reference numerals 6,5007,5008 denote 2-input / 1-output selectors, which are composed of AND gates, NOR gates and inverters as shown in the figure. FZSEL0 and FZSEL1
Is a value preset by the coefficient setting circuit 101.

【0142】同様に図39の5009,5010,50
11,5012,5013,5014,5015,50
16は2入力1出力セレクタである。SZSEL は、係数設
定回路101により予め設定される値である。後述する
様に本実施例においては、同時に複数種類の特定原稿に
ついてその存在の有無を判定する。さらに、それら複数
種類の特定原稿ごとに必要な特徴量を選択的に抽出す
る。即ち、特定原稿の種類によって最適な特徴量を選択
するわけである。
Similarly, 5009, 5010, 50 of FIG.
11,5012,5013,5014,5015,50
Reference numeral 16 is a 2-input 1-output selector. SZSEL is a value preset by the coefficient setting circuit 101. As will be described later, in this embodiment, the presence / absence of a plurality of types of specific originals is simultaneously determined. Further, the required feature amount is selectively extracted for each of the plurality of types of specific originals. That is, the optimum feature amount is selected according to the type of the specific document.

【0143】その選択の制御を図38及び図39に図示
した回路で行なう。図38及び図39におけるFZSEL0,
FZSEL1,SZSEL によってその選択が制御される。判定に
使用される特徴信号として、第1の特徴部信号FZと第
2の特徴部信号SZが送られる。FZ信号は、(1) 平坦
部(2) 谷間部(3) 平坦部もしくは谷間部の3種類の選択
が考えられ、SZ信号は、(1) 線画部信号(2) エッジ部
信号の2種類の選択が考えられる。FZ信号とSZ信号
はそれぞれ8ビットの信号であり、各ビットは同時に判
定処理される8種類の判定条件に基づく判定に使われ
る。
The selection control is performed by the circuits shown in FIGS. 38 and 39. FZSEL0 in FIGS. 38 and 39,
The selection is controlled by FZSEL1 and SZSEL. The first feature signal FZ and the second feature signal SZ are sent as the feature signals used for the determination. The FZ signal can be selected from three types: (1) flat part (2) valley part (3) flat part or valley part, and SZ signal can be selected from (1) line drawing part signal (2) edge part signal. The choice is considered. The FZ signal and the SZ signal are 8-bit signals, and each bit is used for determination based on eight types of determination conditions that are simultaneously subjected to determination processing.

【0144】[間引き回路106]図41に図5に示す
間引き回路106の詳細回路図を、図42にそのタイミ
ングチャートを示す。図41において、5201はイン
バータ、5202,5203はFIFOメモリ(例えば
三菱電機社M66251)である。間引き回路106は、400d
piのR, G, B信号( 各上位5 ビットづつ) をサンプリ
ングし、100dpiに間引く回路である。図42に示す様
に、副走査方向に、1ライン毎に“0”,“1”,
“2”,“3”を繰り返すYPHS信号の値が“3”である
場合(即ちYD3信号が“0”である場合)に、R,
G, B信号がFIFOメモリ5202および5203に
書込まれる。即ち、4ラインに1回の割合で書込まれ
る。
[Thinning Circuit 106] FIG. 41 shows a detailed circuit diagram of the thinning circuit 106 shown in FIG. 5, and FIG. 42 shows a timing chart thereof. In FIG. 41, 5201 is an inverter, and 5202 and 5203 are FIFO memories (for example, M66251 manufactured by Mitsubishi Electric Corporation). The thinning circuit 106 is 400d
This is a circuit that samples the R, G, and B signals (upper 5 bits each) of pi and thins them out to 100 dpi. As shown in FIG. 42, "0", "1", and
When the value of the YPHS signal that repeats “2” and “3” is “3” (that is, when the YD3 signal is “0”), R,
The G and B signals are written to the FIFO memories 5202 and 5203. That is, it is written once every four lines.

【0145】また、前述のFWE信号が“0”になった
場合のみR, G, B信号の値が書込まれる。また、書込
まれるデータは、1/4の割合で間引かれているため、
FIFOメモリ5202,5203よりの読出しのクロ
ック信号はCLK4信号を用いる。以上の回路構成をと
ることで、前述の様に単純な間引きではなく、特徴のあ
る画素を優先したサンプリングをすることができる。
The values of the R, G, B signals are written only when the above-mentioned FWE signal becomes "0". Also, since the written data is thinned out at a rate of 1/4,
The CLK4 signal is used as the clock signal for reading from the FIFO memories 5202 and 5203. By adopting the above circuit configuration, it is possible to perform sampling in which the characteristic pixels are prioritized, rather than the simple thinning-out as described above.

【0146】[スムージング回路105]図43に図5
に示すスムージング回路105の回路図を、図44およ
び図45にそのタイミングチャートを示す。スムージン
グ回路105は、400dpiのR, G, B信号を上述した図
4の501に示す4×4のブロック単位で加算平均を
し、スムージングをおこなう。
[Smoothing circuit 105] FIG.
FIG. 44 is a circuit diagram of the smoothing circuit 105 shown in FIG. The smoothing circuit 105 performs smoothing by adding and averaging the R, G, and B signals of 400 dpi in the unit of 4 × 4 block 501 shown in FIG. 4 described above.

【0147】図43において、5401,5402,5
403はANDゲート、5404,5405,5406
は加算器、5407,5408,5409はフリップフ
ロップ、5410,5411,5412は2入力1出力
のセレクタ(論理は図中の5410- 1に示す)、54
13,5414,5415はフリップフロップ、541
6,5417,5418はインバータ、5419は3入
力1出力のマルチプレクサ、5420はフリップフロッ
プである。
In FIG. 43, 5401, 5402, 5
403 is an AND gate, 5404, 5405, 5406
Is an adder, 5407, 5408, 5409 are flip-flops, 5410, 5411, 5412 are 2-input 1-output selectors (logic is shown at 5410-1 in the figure), 54
13, 5414, 5415 are flip-flops, 541
Reference numerals 6, 5417 and 5418 denote inverters, 5419 denotes a multiplexer having three inputs and one output, and 5420 denotes a flip-flop.

【0148】また、5421,5422はFIFOメモ
リ( 例えば三菱電機社M66251)、5423はフリップフ
ロップ、5424はANDゲート、5425は加算器、
5426はフリップフロップ、5427はインバータ、
5428,5429,5430,5431,5432は
フリップフロップ、5433はORゲート、5434,
5435はFIFOメモリ( 例えば三菱電機社M66251)
である。
Further, 5421 and 5422 are FIFO memories (for example, M66251 of Mitsubishi Electric Corporation), 5423 is a flip-flop, 5424 is an AND gate, 5425 is an adder,
5426 is a flip-flop, 5427 is an inverter,
5428, 5429, 5430, 5431, 5432 are flip-flops, 5433 is an OR gate, 5434,
5435 is a FIFO memory (for example, M66251 of Mitsubishi Electric Corporation)
Is.

【0149】図44のタイミングチャートに示す様に、
フリップフロップ5407の出力X1の値は順次入力R
信号が加算器5404によって累積加算される。また、
加算器5407のB入力は、4画素に1度(XD1=
“0”の場合即ちXPHS信号が“1”の場合)に
“0”となるため、4画素ごとの累積加算がなされる。
即ち、XPHS信号が“0”の場合のR信号の入力値を
“r0”,XPHS信号が“1”の場合のR信号の入力
値を“r1”,XPHS信号が“2”の場合のR信号の
入力値を“r2”,XPHS信号が“3”の場合のR信
号の入力値を“r3”とすれば、これらより1CLK信
号分遅れて、XPHS信号が“1”の場合には、X1信
号は“r0”となり、XPHS信号が“2”の場合に
は、X1信号は“r0+r1”となり、XPHS信号が
“3”の場合には、X1信号は“r0+r1+r2”と
なり、XPHS信号が“0”の場合には、X1信号は
“r0+r1+r2+r3”となる。
As shown in the timing chart of FIG. 44,
The value of the output X1 of the flip-flop 5407 is sequentially input R
The signals are cumulatively added by the adder 5404. Also,
The B input of the adder 5407 is once every four pixels (XD1 =
When it is "0", that is, when the XPHS signal is "1", it becomes "0", so that cumulative addition is performed every four pixels.
That is, when the XPHS signal is "0", the input value of the R signal is "r0", when the XPHS signal is "1", the input value of the R signal is "r1", and when the XPHS signal is "2", the R value is If the input value of the signal is “r2” and the input value of the R signal when the XPHS signal is “3” is “r3”, then when the XPHS signal is “1” with a delay of 1CLK signal from these, The X1 signal becomes "r0", the X1 signal becomes "r0 + r1" when the XPHS signal is "2", the X1 signal becomes "r0 + r1 + r2" when the XPHS signal is "3", and the XPHS signal becomes "r0 + r1 + r2". In the case of “0”, the X1 signal becomes “r0 + r1 + r2 + r3”.

【0150】更に、この値(図44中のrsm=r0+
r1+r2+r3)が、X2信号としてフリップフロッ
プ5413の出力に4CLK信号分ラッチされる。ここ
で、rsm=r0+r1+r2+r3の値は、主走査方
向に連続する4画素に相当するR信号の和である。全く
同様にして、フリップフロップ5414の出力Y2信号
には、主走査方向に連続する4画素に相当するG信号の
和gsm=g0+g1+g2+g3の値が4CLK信号
分ラッチされ、フリップフロップ5415の出力Z2信
号には主走査方向に連続する4画素に相当するB信号の
和bsm=b0+b1+b2+b3の値が4CLK信号
分ラッチされる。
Further, this value (rsm = r0 + in FIG. 44)
r1 + r2 + r3) is latched as an X2 signal at the output of the flip-flop 5413 for 4CLK signals. Here, the value of rsm = r0 + r1 + r2 + r3 is the sum of R signals corresponding to four consecutive pixels in the main scanning direction. In exactly the same manner, the output Y2 signal of the flip-flop 5414 is latched by the sum of the G signals corresponding to four pixels continuous in the main scanning direction gsm = g0 + g1 + g2 + g3 for 4CLK signals, and is output to the output Z2 signal of the flip-flop 5415. Is the sum of B signals corresponding to four pixels continuous in the main scanning direction, and the value of bsm = b0 + b1 + b2 + b3 is latched for 4CLK signals.

【0151】更に、3入力1出力のマルチプレクサ54
19を経てフリップフロップ5420の出力SS信号
は、図44に示す様にrsm,gsm,bsmの値が時
分割に出力される。SS信号は加算器5425のA入力
に入力される。加算器5425の出力はフリップフロッ
プ5426、FIFOメモリ5421,5422、フリ
ップフロップ5423、ANDゲート5425を経て加
算器5425のB入力に入力される。ここで、FIFO
メモリ5421および5422では、(1ライン- 2画
素)分の遅延が実現されるため、フリップフロップ54
23およびフリップフロップ5426をあわせて1ライ
ンの遅延となり加算器5425では累積加算が行なわれ
る。
Furthermore, the multiplexer 54 having three inputs and one output
As shown in FIG. 44, the output SS signal of the flip-flop 5420 via 19 outputs the values of rsm, gsm, and bsm in a time division manner. The SS signal is input to the A input of the adder 5425. The output of the adder 5425 is input to the B input of the adder 5425 via the flip-flop 5426, the FIFO memories 5421 and 5422, the flip-flop 5423, and the AND gate 5425. Where FIFO
In the memories 5421 and 5422, since a delay of (1 line-2 pixels) is realized, the flip-flop 54
23 and the flip-flop 5426 are combined to form a delay of one line, and the adder 5425 performs cumulative addition.

【0152】また、4ラインに中の1ラインの割合YD
0信号が“0”になるとき(即ちYPHS信号が“0”
の場合)にANDゲート5424の出力は“0”とな
る。従って、加算器5424では4ラインごとの累積加
算値が算出されることになる。また前述の様に、SS信
号は主走査4画素における入力信号であるR,G,B信
号の和であるため、図43に示すSFSUM信号(加算
器5425の出力)およびFI信号(フリップフロップ
5426の出力)には、主走査および副走査4画素の4
×4の画素ブロックにおける和が出力される。
The ratio YD of 1 out of 4 lines is YD
When the 0 signal becomes "0" (that is, the YPHS signal is "0")
In the case of), the output of the AND gate 5424 becomes "0". Therefore, the adder 5424 calculates the cumulative addition value for every four lines. Further, as described above, the SS signal is the sum of the R, G, and B signals that are the input signals in the four main scanning pixels, and therefore the SFSUM signal (output of the adder 5425) and the FI signal (flip-flop 5426) shown in FIG. 4) of the main scanning and sub-scanning 4 pixels
The sum in the × 4 pixel block is output.

【0153】更に、SFIの上位5ビットは、フリップ
フロップ5430,5431,5432でCLK信号と
の同期をとられてそれぞれSFS1,SFS2,SFS
3信号となる。また、SS信号はR、 G、 B信号につい
ての和が順次時分割に出力されていることから、SF
I,SFS1,SFS2,SFS3,の各信号について
もR、 G、 B信号についての和が順次時分割に出力され
る。ここで、図44に示す様に、XPHS信号が“2”
の場合には、SFS1信号にはB入力の和であるbs
m’が、SFS2信号にはG入力の和であるgsm’
が、SFS3信号にはR入力の和であるrsm’がそれ
ぞれ保持される。
Further, the upper 5 bits of the SFI are synchronized with the CLK signal by the flip-flops 5430, 5431 and 5432, respectively, and are SFS1, SFS2 and SFS.
There are 3 signals. In addition, since the SS signal is the sum of the R, G, and B signals, which is sequentially output in time division, SF signal
With respect to each of the I, SFS1, SFS2, and SFS3 signals, the sum of the R, G, and B signals is sequentially output in a time division manner. Here, as shown in FIG. 44, the XPHS signal is "2".
, The SFS1 signal is bs which is the sum of B inputs.
m'is the sum of G inputs for the SFS2 signal gsm '
However, the SFS3 signal holds rsm ′, which is the sum of the R inputs.

【0154】ここで、XPHS信号が“2”のタイミン
グでこれらの値をFIFOメモリ5434および543
5に書込み保持する。即ち、XD2信号が“2”である
場合でかつYD3信号が“0”である場合にSFWE信
号は“0”となり、FIFOメモリ5434および54
35への書込みが許可される。これを図45を用いて説
明する。図45に示す様に、4ラインに1ラインの割合
でYPHS信号は“3”となり、YD3信号は“0”と
なる。更に、4画素に1画素の割合でXD2信号は
“0”となり、YD3信号とXD2信号の両方が“0”
となる場合のみにSFWE信号は“0”となり、それ以
外では”1”となる。SFWE信号が“0”の場合にお
いては、SFS1,SFS2,SFS3信号がFIFO
メモリ5434および5435に書込まれる。また、読
出しは、CLK信号に対し4倍の周期のCLK4信号に
同期して読出され、さらに4ラインの間同じ値が繰返し
出力される。
Here, these values are transferred to the FIFO memories 5434 and 543 at the timing when the XPHS signal is "2".
Write to 5 and hold. That is, when the XD2 signal is “2” and the YD3 signal is “0”, the SFWE signal becomes “0”, and the FIFO memories 5434 and 54.
Writing to 35 is permitted. This will be described with reference to FIG. As shown in FIG. 45, the YPHS signal becomes "3" and the YD3 signal becomes "0" at the rate of one line in four lines. Further, the XD2 signal becomes “0” at a ratio of 1 pixel to 4 pixels, and both the YD3 signal and the XD2 signal become “0”.
The SFWE signal becomes "0" only when the above condition occurs, and becomes "1" otherwise. When the SFWE signal is "0", the SFS1, SFS2 and SFS3 signals are FIFO
Written to memories 5434 and 5435. Further, the reading is performed in synchronization with the CLK4 signal having a cycle four times that of the CLK signal, and the same value is repeatedly output for four lines.

【0155】結果として、RS,GS,BS信号は、図
4に示す4×4の画素ブロック中のR,G,B信号を加
算平均し平滑化した信号となる。 [総合判定回路110]図46に図5に示す総合判定回
路110の詳細なブロック図を示す。図46において、
108は色味マッチングROM(以下「ROM2」と称
す。)であり、容量は256K×16ビットのROM
(例えば三菱電機M5M27C402K)により実現でき、読み取
り信号の色味が特定原稿の色味に近いか否かの判定を行
う。109は平滑化色味マッチングROM(以下「RO
M3」と称す。)であり、容量は256K×8ビットの
ROM(例えば三菱電機M5M27C201K)により実現でき、
読み取り信号の平滑化された色味が特定原稿の色味に近
いか否かの判定を行う。
As a result, the RS, GS and BS signals are signals obtained by averaging and smoothing the R, G and B signals in the 4 × 4 pixel block shown in FIG. [Comprehensive Judgment Circuit 110] FIG. 46 shows a detailed block diagram of the comprehensive judgment circuit 110 shown in FIG. In FIG. 46,
Reference numeral 108 denotes a tint matching ROM (hereinafter referred to as “ROM2”), which has a capacity of 256K × 16 bits.
(For example, Mitsubishi Electric M5M27C402K), and it is determined whether the tint of the read signal is close to the tint of the specific document. 109 is a smoothing color matching ROM (hereinafter referred to as "RO
It is called "M3". ), And the capacity can be realized by a ROM of 256K × 8 bits (for example, Mitsubishi Electric M5M27C201K),
It is determined whether the smoothed tint of the read signal is close to the tint of the specific document.

【0156】図47にある特定原稿における線画部にお
ける色味のRGB空間上の分布の例を示し、図48にあ
る特定原稿における平坦部における色味のRGB空間上
の分布の例を示す。このように線画部及び平坦部でそれ
ぞれ特徴的な分布を示す。同様に、特定原稿のエッジ
部、谷間部等においても、図示はしないが、特徴的な分
布を示す。これらは特定原稿固有の色分布を示すが、R
OM2(108)には予じめ32種類の判定条件に基づ
き、前述の第1の特徴部および第2の特徴部の特の色味
情報が保持され、入力画像がこれらの色味成分を持って
いるか否かを判定する。同様にROM3(109)は3
2種類の判定条件に基づく特定原稿をスムージングした
場合の色味のRGB空間上の分布が保持される。
FIG. 47 shows an example of the distribution of the tint in the RGB space in the line drawing portion of the specific original in FIG. 47, and FIG. 48 shows an example of the distribution of the tint in the flat area in the specific original in the RGB space. In this way, the line drawing portion and the flat portion show characteristic distributions. Similarly, although not shown, the edge portion, the valley portion, and the like of the specific document show a characteristic distribution. These show the color distribution peculiar to a specific document, but R
The OM2 (108) holds the specific tint information of the above-mentioned first characteristic portion and the second characteristic portion based on the 32 predetermined determination conditions, and the input image has these tint components. Is determined. Similarly, ROM3 (109) is 3
The distribution of the tint in the RGB space when the specific document is smoothed based on the two types of determination conditions is retained.

【0157】図5に示す間引き回路106よりのRS,
GS,BS信号は、セレクタ117及びトライステート
ゲート119を経て、ROM2(108)の下位アドレ
ス15ビットに入力される。ROM2(108)のデー
タ出力は16ビット構成になっており、下位8ビット
(D0〜D7)には前述の第1の特徴部の色味と読み取
り画像信号とが一致しているか否かの判定信号がFC0
信号として出力され、上位8ビット(D8〜D15)に
は前述の第2の特徴部の色味と読み取り画像信号とが一
致しているか否かの判定信号がSC0信号として出力さ
れる。
RS from the thinning circuit 106 shown in FIG.
The GS and BS signals are input to the lower address 15 bits of the ROM 2 (108) via the selector 117 and the tri-state gate 119. The data output of the ROM 2 (108) has a 16-bit configuration, and the lower 8 bits (D0 to D7) determine whether or not the tint of the first characteristic portion and the read image signal match. The signal is FC0
The signal is output as a signal, and a determination signal as to whether or not the tint of the second characteristic portion and the read image signal match is output as the SC0 signal in the upper 8 bits (D8 to D15).

【0158】更に図5のスムージング回路105よりの
RS、 GS、 BS信号は、トライステートゲート114
を経て、ROM3(109)の下位アドレス15ビット
に入力される。ROM3(109)の出力SMC信号
は、ある8種類の判定条件に基づく特定原稿のスムージ
ングされた色味と、読み取り画像信号のスムージングさ
れた色味が一致しているか否かを示す信号である。
Further, the RS, GS and BS signals from the smoothing circuit 105 of FIG.
Then, it is input to the lower address 15 bits of the ROM 3 (109). The output SMC signal of the ROM 3 (109) is a signal indicating whether or not the smoothed tint of the specific document based on certain eight kinds of determination conditions matches the smoothed tint of the read image signal.

【0159】さらに、ANDゲート112- 1からはS
MC信号とFC0信号の論理積FC信号が出力される。
即ち、FC信号は、ある8種類の判定条件に基づく特定
原稿の前述の第1の特徴部の色味と読み取り画像信号と
が一致していて、かつ特定原稿のスムージングされた色
味と読み取り画像信号のスムージングされた色味が一致
している場合に“1”となる信号である。
Further, the AND gate 112-1 outputs S from
The logical product FC signal of the MC signal and the FC0 signal is output.
That is, the FC signal is such that the color tone of the first characteristic portion of the specific document based on eight kinds of determination conditions matches the read image signal, and the smoothed color tone of the specific document and the read image signal. This signal is "1" when the smoothed colors of the signals match.

【0160】また、ANDゲート112- 2からはSM
C信号とSC0信号の論理積FC信号が出力される。即
ち、SC信号は、ある8種類の判定条件に基づく特定原
稿の前述の第2の特徴部の色味と読み取り画像信号とが
一致していて、かつ特定原稿のスムージングされた色味
と読み取り画像信号のスムージングされた色味が一致し
ている場合に“1”となる信号である。この様に、スム
ージングされた色味の一致を条件に加えることで、特定
原稿の検出する精度を向上させることができる。
Further, the AND gate 112-2 outputs SM
The logical product FC signal of the C signal and the SC0 signal is output. That is, the SC signal is such that the tint of the above-mentioned second characteristic portion of the specific original and the read image signal based on eight kinds of determination conditions match, and the smoothed tint of the specific original and the read image. This signal is "1" when the smoothed colors of the signals match. In this way, the accuracy of detecting the specific original can be improved by adding the smoothed color matching to the condition.

【0161】117は2入力1出力のセレクタであり、
図中の117−1に動作論理を示す。通常の判定動作の
場合には、セレクタ117の制御信号CCLは“1”と
なる。カウンタ116及びCCL信号を“0”にする場
合については、RAMクリア制御の項で後述する。ま
た、通常の判定動作の場合には、トライステートゲート
119の制御信号RIDは“0”となるが、RID信号
が“1”である場合は、ID読み取りモードの項で説明
する。
Reference numeral 117 denotes a 2-input 1-output selector,
117-1 in the figure shows the operation logic. In the case of a normal determination operation, the control signal CCL of the selector 117 becomes "1". The case of setting the counter 116 and the CCL signal to "0" will be described later in the section of RAM clear control. The control signal RID of the tri-state gate 119 is "0" in the case of the normal determination operation, but when the RID signal is "1", it will be described in the section of the ID reading mode.

【0162】118はバンク切り換え手段であり、3ビ
ットのPSEL信号をROM2およびROM3の上位3
ビットのアドレス信号としてを供給する。バンク切り換
え手段の詳細ブロック図を図49に、そのタイミングチ
ャートを図50に示す。図49において、2101はN
ANDゲートでありYPHS信号2ビットが入力され
る。2102はANDゲートであり、前述の2ビットの
面順次信号CNO信号の下位1ビットCNO(0)と、
NANDゲート2101の出力が入力され、その出力は
PSEL信号の上位1ビットとなる。また、YPHS信
号がPSEL信号の下位2ビットとして出力される。
Reference numeral 118 denotes a bank switching means, which outputs a 3-bit PSEL signal to the upper 3 of ROM 2 and ROM 3.
Is supplied as a bit address signal. FIG. 49 shows a detailed block diagram of the bank switching means, and FIG. 50 shows a timing chart thereof. In FIG. 49, 2101 is N
It is an AND gate and receives 2 bits of the YPHS signal. Reference numeral 2102 denotes an AND gate, which includes the lower 1 bit CNO (0) of the 2-bit field sequential signal CNO signal,
The output of the NAND gate 2101 is input and its output becomes the upper 1 bit of the PSEL signal. Further, the YPHS signal is output as the lower 2 bits of the PSEL signal.

【0163】従って、CNO(0)信号が“0”である
場合には、PSEL信号はHSYNC信号の立ち上がり
に同期して“0”,“1”,“2”,“3”を繰り返
し、CNO(0)信号が“1”である場合には、PSE
L信号は、HSYNC信号の立ち上がりに同期して、
“4”,“5”,“6”,“3”を繰り返す。図49に
おいて、先ず、CNO(0)信号は、M,C,Y,Bk
の各現像色に対しそれぞれ“0”,“1”,“0”,
“1”になる。従って、現像色がMおよびYの場合に
は、PSEL信号はHSYNC信号の立ち上がりに同期
して“0”,“1”,“2”,“3”を繰り返し、現像
色がCおよびBkの場合には、PSEL信号はHSYN
C信号の立ち上がりに同期して“4”,“5”,
“6”,“3”を繰り返す。
Therefore, when the CNO (0) signal is "0", the PSEL signal repeats "0", "1", "2", "3" in synchronization with the rising edge of the HSYNC signal, and the CNO signal. If the (0) signal is "1", PSE
The L signal is synchronized with the rising edge of the HSYNC signal,
“4”, “5”, “6”, “3” are repeated. In FIG. 49, first, the CNO (0) signal is M, C, Y, Bk.
“0”, “1”, “0”, and
It becomes "1". Therefore, when the developing colors are M and Y, the PSEL signal repeats "0", "1", "2" and "3" in synchronization with the rising edge of the HSYNC signal, and when the developing colors are C and Bk. The PSEL signal is HSYN
In synchronization with the rising edge of the C signal, "4", "5",
Repeat “6” and “3”.

【0164】即ち、画像処理モードにおいては、第2表
に示す様にROM2の00000 番地より37FFF 番地のアド
レスをアクセスし、その内訳は、現像色がMおよびYの
場合には00000 番地から1FFFF 番地をアクセスし、現像
色がCおよびBkの場合には18000 番地から37FFF 番地
をアクセスする。なお、通常の画像処理モードの際に
は、同時に8種類の判定条件に基づく特定原稿(後述す
るが、そのうちの1種類は試験用の原稿に基づく色味)
についての判定をし、各PSEL信号の値に応じて判定
される8種類が変わる。4主走査ライン 単位で順次切り替
わり、合計32種類の判定条件に基づいて複数の特定原
稿についての判定がなされる。
That is, in the image processing mode, as shown in Table 2, the address of 37FFF is accessed from the address 00000 of ROM2. The details are as follows: When the development color is M and Y, the address is from the address 00000 to 1FFFF. If the developed color is C or Bk, access 18000 to 37FFF. Note that, in the normal image processing mode, at the same time, a specific original based on eight types of determination conditions (which will be described later, one of them is a tint based on a test original)
Of the PSEL signal, and the eight types to be determined vary depending on the value of each PSEL signal. Switching is performed in units of four main scanning lines, and a plurality of specific originals are determined based on a total of 32 types of determination conditions.

【0165】更に、現像される現像色に応じてもPSE
L信号が切り替わり、一部重複(18000番地から1FFFF 番
地) するが、合計で56種類の判定条件に基づき複数の
特定原稿について判定をすることができる。なお、第2
表中の画像処理モードとID読み取りモード及びRID
信号については後述する。ここで、本実施例において
は、これら56種類の判定条件の割当に際し、特定原稿
の重要度(どれが最もコピーされるべきでないか)によ
ってその割当をかえる。
Further, depending on the developing color to be developed, the PSE
Although the L signal is switched and there is some overlap (addresses 18000 to 1FFFF), it is possible to make judgments for a plurality of specific originals based on a total of 56 kinds of judgment conditions. The second
Image processing mode, ID reading mode and RID in the table
The signals will be described later. Here, in the present embodiment, when assigning these 56 types of determination conditions, the assignment is changed according to the importance of a particular document (which one should not be copied most).

【0166】先ず、18000 番地から1FFFF 番地に保持さ
れている8種類の判定条件については、他の48種類と
異なりM,C,Y,Bkのすべての像形成時において判定される
ため、最も確実に判定される。従って、この8種類の判
定条件は、最も重要と思われる特定原稿を判定するもの
を割り当てる。次に、00000 番地から17FFF 番地に保持
されている24種類の判定条件についは、第1回目の走
査時に行われるMの像形成時、および、第3回目の走査
時に行われるYの像形成時に判定がおこなわれる。
First, the eight kinds of judgment conditions held at the addresses 18000 to 1FFFF are judged at the time of all image formation of M, C, Y and Bk unlike the other 48 kinds, and therefore the most reliable. Is determined. Therefore, the eight types of determination conditions are assigned to determine the most important specific document. Next, regarding the 24 kinds of determination conditions held from the address 00000 to the address 17FFF, the M image formation performed at the first scanning and the Y image formation performed at the third scanning are performed. Judgment is made.

【0167】一方、20000 番地から37FFF 番地に保持さ
れている24種類の判定条件についは、第2回目の走査
時に行われるCの像形成時および、第4回目の走査時に
行われるBkの像形成時に判定がおこなわれる。この両
者を比較すると、後者(20000番地から37FFF 番地) の場
合、以下の欠点がある。即ち、4回目の像形成であるB
kの像形成時においては、特定原稿の存在を認識した時
点では既に特定原稿の一部がコピーされてしまっている
可能性がある。これに比較し、前者(00000番地から17FF
F 番地) の場合には、MおよびYのいずれの像形成時に
おいて特定原稿の存在が検知された場合においても、そ
のあとの像形成であるBkの像形成時に出力画像を真っ
黒に塗りつぶすことができるため、前者における不具合
はない。
On the other hand, the 24 kinds of judgment conditions held at the addresses 20000 to 37FFF are as follows: the image formation of C performed at the time of the second scanning and the image formation of Bk performed at the time of the fourth scanning. Sometimes decisions are made. Comparing the two, the latter (addresses 20000 to 37FFF) has the following drawbacks. That is, B, which is the fourth image formation
When forming the image of k, there is a possibility that a part of the specific original has already been copied at the time when the existence of the specific original is recognized. Compared to this, the former (from address 00000 to 17FF
In the case of (F address), even if the presence of a specific document is detected during the image formation of either M or Y, the output image can be painted black during the subsequent image formation of Bk. Since it can be done, there is no problem in the former case.

【0168】従って、この両者を比較すると、前者(000
00番地から17FFF 番地) の方が確実にコピー防止が可能
であるといえる。従って、00000 番地から17FFF 番地に
保持すべき24種類の判定条件には、次に重要と思われ
る特定原稿を割り当てる。さらに、それ以外の24種類
の判定条件を20000 番地から37FFF 番地に割り当てる。
Therefore, comparing the two, the former (000
It can be said that the copy protection can be surely performed at addresses 00 to 17FFF). Therefore, the 24 types of judgment conditions to be held from the address 00000 to the address 17FFF are assigned the specific manuscript which seems to be the next most important. In addition, 24 other judgment conditions are assigned to addresses 20000 to 37FFF.

【0169】[0169]

【表2】 (積分回路1)前述のFC信号とFZ信号は、図46の
積分回路1(122)に送られる。積分回路1(12
2)は、2次元(XY方向)のIIRディジタルフィル
タにより、8種類の判定条件に基づく特定原稿について
の第1の特徴部を示すFC信号の雑音(ノイズ)を除去
する。積分回路1(122)には、FZ信号,ROM2
(108)より、特定原稿の第1の特徴部の色味と読み
取り画像信号との一致を示すFC信号、FIFO140
及びFIFO141の入力に接続されるFOA信号、F
IFO140及びFIFO141信号の出力であるFI
A信号に接続されている。
[Table 2] (Integrator circuit 1) The above-mentioned FC signal and FZ signal are sent to the integrator circuit 1 (122) in FIG. Integration circuit 1 (12
In 2), a two-dimensional (XY direction) IIR digital filter is used to remove noise of the FC signal indicating the first characteristic portion of the specific original based on the eight types of determination conditions. The integrating circuit 1 (122) has an FZ signal, a ROM 2
From (108), the FC signal, the FIFO 140, indicating the match between the color tone of the first characteristic portion of the specific document and the read image signal.
And a FOA signal connected to the input of the FIFO 141, F
FI which is the output of the IFO140 and FIFO141 signals
It is connected to the A signal.

【0170】この積分回路1(122)の詳細構成ブロ
ック図を図51に示す。図51において、2401,2
402はシリアルパラレル変換器、2403−1,24
03−2,・・・,2403−8は積分器であるIIR
フィルタ、2404,2405はパラレルシリアル変換
器である。シリアルパラレル変換器2401及び204
2は、FIFO140及び141の出力FIA信号をシ
リアルパラレル変換する。
A detailed block diagram of the integration circuit 1 (122) is shown in FIG. In FIG. 51, 2401, 2
Reference numeral 402 denotes a serial-parallel converter, 2403-1, 240
03-2, ..., 2403-8 are integrators IIR
Filters 2404 and 2405 are parallel-serial converters. Serial-parallel converters 2401 and 204
2 serial-parallel converts the output FIA signals of the FIFO 140 and 141.

【0171】シリアルパラレル変換器2401,240
2のブロック図を図52に、タイミングチャートを図5
3に示す。図52において、2501,2502,25
03,2504はフリップフロップであり、入力信号を
CLK4信号の立ち上がりでラッチする。2505は2
入力1出力のセレクタであり、2512に動作論理を示
す。2506,2507はフリップフロップであり、C
LK4信号の立ち上がりでラッチする。一方、2508
はインバータ、2509は3ビットのカウンタ、251
0は2入力4出力のデコーダでありその動作論理を25
11に示す。
Serial / parallel converters 2401 and 240
52 and a timing chart of FIG.
3 shows. In FIG. 52, 2501, 502, 25
Reference numerals 03 and 2504 denote flip-flops which latch the input signal at the rising edge of the CLK4 signal. 2505 is 2
It is a selector with one input and one output, and the operation logic is shown at 2512. 2506 and 2507 are flip-flops, and C
Latch at the rising edge of the LK4 signal. On the other hand, 2508
Is an inverter, 2509 is a 3-bit counter, 251
Reference numeral 0 is a 2-input 4-output decoder whose operation logic is 25
11 shows.

【0172】ここで、入力信号であるX信号は、CLK
4信号の立ち上がりに同期して入力される。フリップフ
ロップ2501,2502,2503,2504で順次
遅延された入力信号は、セレクタ2505に送られる。
一方、カウンタ2509によって出力されるX4PHS
信号は、CCLK4信号の立ち上がりに同期して
“0”,“1”,“2”,“3”,“4”,“5”,
“6”,“7”の値を繰り返し出力するが、その下位2
ビットX4PHS(1−0)は、“0”,“1”,
“2”,“3”の値を繰り返し出力し、デコーダ251
0より出力されるX4D1信号はX4PHS(1−0)
信号が“1”である場合のみ“0”となり、他は“1”
となる。
Here, the X signal which is the input signal is CLK
It is input in synchronization with the rising edges of the four signals. The input signals sequentially delayed by the flip-flops 2501, 502, 2503, 2504 are sent to the selector 2505.
On the other hand, the X4PHS output by the counter 2509
The signals are "0", "1", "2", "3", "4", "5", in synchronization with the rising edge of the CCLK4 signal.
The values of "6" and "7" are repeatedly output, but the lower 2
Bits X4PHS (1-0) are "0", "1",
The values of “2” and “3” are repeatedly output, and the decoder 251
X4D1 signal output from 0 is X4PHS (1-0)
It becomes "0" only when the signal is "1", and "1" in other cases.
Becomes

【0173】従って、図53に示す様に、X信号に
“a”,“b”,“c”,“d”が順次入力されたもの
が、フリップフロップ2506の出力であるA0,B
0,C0,D0に並列に出力され、フリップフロップ2
507よりはこの各信号がCLK4信号の1周期分だけ
遅延されて出力される。図51において、2403−
1,2403−2,・・・・,2403−8はIIRフ
ィルタであり、各IIRフィルタは同一の構造をとり、
それぞれ1種類ずつの判定条件における処理を行い、同
時に8個のIIRフィルタで処理することで8種類の判
定条件の処理をおこなう。
Therefore, as shown in FIG. 53, the signals "a", "b", "c" and "d" sequentially input to the X signal are the outputs A0 and B of the flip-flop 2506.
0, C0, D0 are output in parallel, and the flip-flop 2
From 507, these signals are output after being delayed by one cycle of the CLK4 signal. In FIG. 51, 2403-
1, 2403-2, ..., 2403-8 are IIR filters, and each IIR filter has the same structure.
The processing under each of the judgment conditions is performed, and the processing for the eight kinds of judgment conditions is performed by simultaneously processing the eight IIR filters.

【0174】図54に上述したIIRフィルタの詳細ブ
ロック構成図を示す。図54において、2701,27
02,2703はそれぞれ3入力1出力のセレクタであ
り、その動作論理を2704に示す。2705,270
6はそれぞれ乗算器であり、A,Bの入力に対して積A
×B/32を出力する。2707は加算器であり、A,
B,Cの入力に対し和A+B+Cを出力する。2708
はフリップフロップであり、CLK4信号の立ち上がり
で入力信号をラッチし出力する。ここで、加算器270
7の出力信号をyi,j (iを間引き後の副走査位置,j
を間引き後の主走査位置)信号とするとき、フリップフ
ロップ2708の出力はyi,j-1 である。また、FIF
O104よりシリアルパラレル変換器2401,240
2を介して送られて来るFI信号は、yi,j 信号を副走
査方向にFIFOを利用して遅延させたものであり、y
i-1,j と表現できる。
FIG. 54 shows a detailed block diagram of the IIR filter described above. In FIG. 54, 2701 and 27
Reference numerals 02 and 2703 denote selectors each having 3 inputs and 1 output, and the operation logic is shown at 2704. 2705,270
6 is a multiplier, and the product A is applied to the inputs of A and B.
Output xB / 32. 2707 is an adder, A,
The sum A + B + C is output for the inputs of B and C. 2708
Is a flip-flop, which latches and outputs the input signal at the rising edge of the CLK4 signal. Here, the adder 270
The output signal of 7 is yi, j (i is the sub-scanning position after thinning, j
Is the main scanning position signal after thinning, the output of the flip-flop 2708 is yi, j-1. In addition, FIF
Serial parallel converters 2401 and 240 from O104
The FI signal sent via 2 is a signal obtained by delaying the yi, j signal in the sub-scanning direction using the FIFO, and y
It can be expressed as i-1, j.

【0175】ここで、yi,j は、(21)式で表され
る。 yi,j =( α/ 32) yi-1,j +( β/32) yi,j-1 +γ ・・・・(21) また、α1,α2,α3,β1,β2,β3,γ1,γ
2,γ3はそれぞれ前述の係数レジスタによって予めセ
ットされた値であり、これらを適切に設定することで、
FC信号を積分し、ノイズ除去を行うことができる。
Here, yi, j is expressed by equation (21). yi, j = (α / 32) yi-1, j + (β / 32) yi, j-1 + γ ··· (21) Further, α1, α2, α3, β1, β2, β3, γ1, γ
2 and γ3 are values preset by the coefficient register described above, and by setting these appropriately,
Noise can be removed by integrating the FC signal.

【0176】図55、図56および図57にIIRフィ
ルタでの処理結果例を示す(jは主走査位置を示
す。)。図55はFC信号(読み取り信号の色味が特定
原稿の第1の特徴部の色味と一致しているかどうかの判
定信号で、1;一致 0;不一致)の例を示す図であ
る。図56はFZ信号(読み取り信号が特定原稿の第1
の特徴部であるかどうかの判定信号で、1;第1の特徴
部 0;非第1の特徴部)の例を示す図である。
55, 56 and 57 show examples of processing results by the IIR filter (j indicates the main scanning position). FIG. 55 is a diagram showing an example of an FC signal (a determination signal indicating whether the tint of the read signal matches the tint of the first characteristic portion of the specific original document; 1; match 0; not match). FIG. 56 shows the FZ signal (the reading signal is the first of the specific document.
FIG. 3 is a diagram showing an example of (1; first characteristic portion 0; non-first characteristic portion) in the determination signal of whether or not the characteristic portion of FIG.

【0177】図55及び図56も示す様に、前述のα
1,α2,α3,β1,β2,β3,γ1,γ2,γ3
の値を適切にとることによって、yi,j は図57に示す
様な波形をとる。即ち、yi,j には、32101や32
102に示される様な雑音(ノイズ)成分が平滑化(積
分効果)された波形が出力される。εなるしきい値で2
値化することで、32101や32102に示されるノ
イズ成分を除去することができる。
As shown in FIGS. 55 and 56, the above α
1, α2, α3, β1, β2, β3, γ1, γ2, γ3
By properly taking the value of, yi, j has a waveform as shown in FIG. That is, 32101 and 32 are included in yi, j.
A waveform in which the noise component is smoothed (integral effect) as shown by 102 is output. 2 with a threshold value of ε
By digitizing, the noise components indicated by 32101 and 32102 can be removed.

【0178】また、図54において2710は比較器で
あり、フリップフロップ2708の出力と図57に示し
たεを比較し、その比較結果をFL信号として出力す
る。FL信号は、読み取り画像信号が特定原稿の第1の
特徴部と類似性が高いかどうかを判定する信号である。
2709は平均値回路であり、フリップフロップ270
8の出力で連続する4つのデータを平均化する。
Further, in FIG. 54, reference numeral 2710 is a comparator, which compares the output of the flip-flop 2708 with ε shown in FIG. 57 and outputs the comparison result as an FL signal. The FL signal is a signal for determining whether or not the read image signal is highly similar to the first characteristic portion of the specific document.
Reference numeral 2709 denotes an average value circuit, which is a flip-flop 270.
Average 4 consecutive data at 8 outputs.

【0179】図54に示すこの平均値回路2709の詳
細ブロック図を図58に、その動作タイミングチャート
を図59に示す。図58において、2801はANDゲ
ート,2802は加算器、2803はフリップフロッ
プ、2804は2入力1出力のセレクタでありその動作
論理は2808に示される。2805はフリップフロッ
プ、2806は2入力1出力のセレクタであり、その動
作論理は2804と同様に2808に示される。280
7はフリップフロップである。
FIG. 58 shows a detailed block diagram of the average value circuit 2709 shown in FIG. 54, and FIG. 59 shows an operation timing chart thereof. In FIG. 58, reference numeral 2801 is an AND gate, 2802 is an adder, 2803 is a flip-flop, 2804 is a 2-input 1-output selector, and its operation logic is shown by 2808. Reference numeral 2805 designates a flip-flop, 2806 designates a selector having two inputs and one output, and its operation logic is indicated by 2808 as in the case of 2804. 280
7 is a flip-flop.

【0180】ここでX4D0信号およびX4D3信号は
図52のデコーダ2510より出力される信号であり、
X4D0信号はX4PHS(1−0)信号が“0”であ
る場合のみ“0”で他は“1”となる信号、X4D3信
号はX4PHS(1−0)信号が“3”である場合のみ
“0”で他は“1”となる信号である。そこで、図59
に示す様に、X4PHS(1−0)信号が“0”,
“1”,“2”,“3”と変化するのに対応して、入力
信号Xが順に“a”,“b”,“c”,“d”の値をと
った場合、結果的にはこの連続する4つの値“a”,
“b”,“c”,“d”の平均値(a+b+c+d)/
4がYより出力される。
Here, the X4D0 signal and the X4D3 signal are signals output from the decoder 2510 in FIG.
The X4D0 signal is "0" only when the X4PHS (1-0) signal is "0" and the other signals are "1". The X4D3 signal is "only" when the X4PHS (1-0) signal is "3". A signal that is "0" and the other is "1". Therefore, FIG.
, The X4PHS (1-0) signal is "0",
When the input signal X takes the values of “a”, “b”, “c”, and “d” in order in response to the change of “1”, “2”, and “3”, as a result, Is the four consecutive values "a",
Average value of "b", "c", and "d" (a + b + c + d) /
4 is output from Y.

【0181】本積分器の出力は、FIFOメモリを介し
てフィードバックされるが、このように連続する4つの
データを平均してそれをFIFOに保持することで、F
IFOメモリの容量を1/4に削減することができる。
また、図57に示す様に、本積分器の出力は、高周波数
成分を持たないため、連続する4つのデータ平均値で置
き換えてもほとんど影響はない。
The output of this integrator is fed back through the FIFO memory. By averaging four consecutive data in this way and holding it in the FIFO,
The capacity of the IFO memory can be reduced to 1/4.
Further, as shown in FIG. 57, since the output of this integrator does not have a high frequency component, replacement with four continuous data average values has almost no effect.

【0182】図51において、IIR2403−1,2
403−2,・・・,2403−8より出力されたFO
信号は、パラレルシリアル変換器2404および240
5を経て、FOA信号としてFIFO140,141に
送られ、再びFIAとしてパラレルシリアル変換器24
01,2402を経て、IIR2403−1,2403
−2,・・・,2403−8にフィードバックされる。
In FIG. 51, IIR2403-1 and IIR2403-1
FO output from 403-2, ..., 2403-8
The signals are parallel to serial converters 2404 and 240.
5 is sent as a FOA signal to the FIFOs 140 and 141, and again as a FIA.
01,402, IIR2403-1,2403
-2, ..., 2403-8 is fed back.

【0183】図60に図51に示すパラレルシリアル変
換器の詳細ブロック構成図を、図61にその動作タイミ
ングチャートを示す。図60において、3001は4入
力1出力のセレクタであり、その動作論理を3006に
示す。3002,3003,3004,3005はそれ
ぞれフリップフロップである。図61に示す様に、結果
としてA,B,C,Dに並列に入力された値“a”,
“b”,“c”,“d”が、順次Yよりシリアル出力さ
れる。
FIG. 60 is a detailed block diagram of the parallel-serial converter shown in FIG. 51, and FIG. 61 is its operation timing chart. In FIG. 60, 3001 is a 4-input / 1-output selector, and the operation logic thereof is shown by 3006. Reference numerals 3002, 3003, 3004 and 3005 are flip-flops. As shown in FIG. 61, as a result, the values “a”, which are input in parallel to A, B, C, and D,
"B", "c", and "d" are sequentially output serially from Y.

【0184】ここで、図51において、パラレルシリア
ル変換器によってFIFOへの出力をシリアルに出力
し、さらにFIFOからの信号をシリアルパラレル変換
することで、FIFOメモリの個数の削減およびLSI
の入出力ピンの数を削減することができ、コストダウン
及びLSIを含む回路の信頼性を向上することもでき
る。
Here, in FIG. 51, the parallel-to-serial converter outputs the output to the FIFO serially, and the signal from the FIFO is serial-to-parallel converted, whereby the number of FIFO memories is reduced and the LSI.
It is possible to reduce the number of I / O pins, reduce costs, and improve reliability of circuits including LSI.

【0185】図51において、8つのIIR回路より出
力されたFL信号(読み取り画像信号が、特定原稿の第
1の特徴部と類似性が高いかどうかを判定する信号)
は、8ビットのFLSG信号として積分回路2(12
3)に出力される。更に、図46において、FIFO1
40,141の書き込みおよび読み出しを制御するFR
E信号とFWE信号は、FIFO制御回路114より発
生され、積分回路1(122)において前記(21)式
が成り立つように、積分回路1(122)の遅延を考慮
して、制御される。
In FIG. 51, FL signals output from the eight IIR circuits (signals for determining whether or not the read image signal is highly similar to the first characteristic portion of the specific original).
Is an integration circuit 2 (12
It is output to 3). Further, in FIG.
FR for controlling writing and reading of 40 and 141
The E signal and the FWE signal are generated by the FIFO control circuit 114, and are controlled by the integration circuit 1 (122) in consideration of the delay of the integration circuit 1 (122) so that the expression (21) is satisfied.

【0186】(積分回路2)図46において、前述のS
Z信号は積分回路2(123)に送られる。積分回路2
(123)は、積分回路1(122)と同様の2次元
(XY方向)のIIRディジタルフィルタにより、8種
類の判定条件に基づき特定原稿についての第2の特徴部
を示すSC信号の雑音(ノイズ)を除去する。積分回路
2(123)には、前述のSZ信号と共に、ROM2
(108)よりの特定原稿の第2の特徴部を示すSC信
号、積分回路1(122)より出力されるFLSG信
号、FIFO142及びFIFO143の入力が接続さ
れるFOB信号、FIFO142及びFIFO143信
号の出力であるFOB信号に接続されている。
(Integrator circuit 2) In FIG. 46, the above-mentioned S
The Z signal is sent to the integrating circuit 2 (123). Integrating circuit 2
(123) is a two-dimensional (XY direction) IIR digital filter similar to that of the integration circuit 1 (122), and is a noise (noise) of the SC signal indicating the second characteristic portion of the specific document based on eight kinds of determination conditions. ) Is removed. The integrating circuit 2 (123) stores the ROM 2 together with the above SZ signal.
In the output of the SC signal indicating the second characteristic portion of the specific document from (108), the FLSG signal output from the integration circuit 1 (122), the FOB signal to which the inputs of the FIFO 142 and the FIFO 143 are connected, and the FIFO 142 and the FIFO 143 signal. It is connected to some FOB signal.

【0187】この積分回路2(123)の詳細ブロック
構成図を図62に示す。図62において、3301,3
302は、図51に示すシリアルパラレル変換器240
1,2402と同等のシリアルパラレル変換器、330
3−1,3303−2,・・・,3303−8は積分器
であるIIRフィルタ、3304,3305は図51の
2404,2405と同等のパラレルシリアル変換器で
ある。
FIG. 62 shows a detailed block diagram of the integration circuit 2 (123). In FIG. 62, 3301,3
Reference numeral 302 denotes a serial / parallel converter 240 shown in FIG.
Serial-parallel converter equivalent to 1,2402, 330
3-13303-2, ..., 3303-8 are IIR filters which are integrators, and 3304 and 3305 are parallel-serial converters equivalent to 2404 and 2405 in FIG.

【0188】積分回路2(123)におけるIIRフィ
ルタ3303−1,3303−2,・・・,3303−
8の詳細ブロック構成図を図63に示す。図63におい
て、3401,3402,3403はそれぞれ5入力1
出力のセレクタであり、その動作論理は3404に示さ
れる。3405,3406は乗算器であり、A,Bの入
力に対して積A×B/32を出力する。3407は加算
器であり、A,B,Cの入力に対して和A+B+Cを出
力する。3408はフリップフロップであり、CLK4
信号の立ち上がりで入力信号をラッチし出力する。ここ
で、加算器3407の出力信号をy'i,j(iを間引き後
の副走査位置,jを間引き後の主走査位置)信号とする
とき、フリップフロップ3408の出力はy'i,j-1であ
り、また、FIFOよりのFI信号はy'i,j信号を副走
査方向にFIFOを利用して遅延させたものであり、
y'i-1,jと表現できる。
IIR filters 3303-1, 3303-2, ..., 3303-in the integrating circuit 2 (123).
A detailed block configuration diagram of No. 8 is shown in FIG. In FIG. 63, 3401, 3402, and 3403 are 5 inputs 1 respectively.
It is an output selector and its operation logic is shown at 3404. Multipliers 3405 and 3406 output the product A × B / 32 with respect to the inputs A and B. Reference numeral 3407 is an adder, which outputs the sum A + B + C with respect to the inputs of A, B, and C. 3408 is a flip-flop, and CLK4
The input signal is latched and output at the rising edge of the signal. Here, when the output signal of the adder 3407 is the y'i, j (i is the sub-scanning position after thinning-out and j is the main scanning position after thinning-out) signal, the output of the flip-flop 3408 is y'i, j. -1, and the FI signal from the FIFO is the y'i, j signal delayed in the sub-scanning direction using the FIFO,
It can be expressed as y'i-1, j.

【0189】ここで、y'i,jは、以下に示す(22)式
で表される。 y'i,j=( α'/32) y'i-1,j+( β' /32) y'i,j-1+γ' ・・・・(22) また、α1' ,α2' ,α3' ,α4' ,α5' ,β
1' ,β2' ,β3' ,β4' ,β5' ,γ1' ,γ
2' ,γ3' γ4' ,γ5' はそれぞれ前述の係数レジ
スタによって予めセットされた値であり、これらを適切
に設定することで、SC信号を積分し、ノイズ除去を行
うことができる。
Here, y'i, j is expressed by the following equation (22). y'i, j = (α '/ 32) y'i-1, j + (β' / 32) y'i, j-1 + γ '... (22) Further, α1', α2 ', α3' , Α4 ', α5', β
1 ', β2', β3 ', β4', β5 ', γ1', γ
2 ′, γ3 ′ γ4 ′, and γ5 ′ are values preset by the coefficient register described above, and by appropriately setting them, the SC signal can be integrated and noise can be removed.

【0190】図64にその処理結果例を示す(jは主走
査位置を示す。)。図64において最上段にSC信号
(読み取り信号の色味が特定原稿の第2の特徴部の色味
と一致しているかどうかの判定信号で、1;一致 0;
不一致)の例を、次にSZ信号(読み取り信号が特定原
稿の第2の特徴部であるかどうかの判定信号で、1;第
2の特徴部である 0;第2の特徴部でない)の例を、
3段目にFL信号(読み取り画像信号が、特定原稿の第
1の特徴部と類似性が高いかどうかを判定する信号で、
1;第1の特徴部である 0;第1の特徴部でない)の
例を示す。
FIG. 64 shows an example of the processing result (j indicates the main scanning position). In the uppermost part of FIG. 64, an SC signal (a determination signal indicating whether the tint of the read signal matches the tint of the second characteristic portion of the specific document is 1; match 0;
Example of non-matching) of the SZ signal (a read signal is a determination signal of whether or not the second characteristic portion of the specific document is 1; second characteristic portion 0; not second characteristic portion) An example
The FL signal (a signal for determining whether the read image signal has a high similarity to the first characteristic portion of the specific original,
1; the first characteristic portion is 0; it is not the first characteristic portion).

【0191】この時に、前述のα1' ,α2' ,α3'
,α4' ,α5' ,β1' ,β2',β3' ,β4' ,
β5' ,γ1' ,γ2' ,γ3' γ4' ,γ5' の値を
適切にとることによって、y'i,jは最下段に示す様な波
形をとる。即ち、y'i,jには、35101や35102
に示される様な雑音(ノイズ)成分が平滑化(積分効
果)された波形が出力される。ε' なるしきい値で2値
化することで、35101や35102に示されるノイ
ズ成分を除去することができる。
At this time, the above-mentioned α1 ′, α2 ′, α3 ′
, Α4 ′, α5 ′, β1 ′, β2 ′, β3 ′, β4 ′,
By appropriately taking the values of β5 ', γ1', γ2 ', γ3' γ4 ', and γ5', y'i, j has a waveform as shown in the lowermost stage. That is, y'i, j includes 35101 and 35102
A waveform in which the noise component is smoothed (integral effect) as shown in is output. By binarizing with a threshold value of ε ′, the noise components indicated by 35101 and 35102 can be removed.

【0192】一方、図63において、3410は比較器
であり、フリップフロップ3408の出力と図64の最
下段に示すしきい値ε’を比較し、その比較結果を出力
する。一方、3411はフリップフロップ、3412は
ANDゲート、3413はフリップフロップ、3414
はANDゲートであり、比較器3410の出力はSC信
号およびSZ信号との論理積をとられてCN信号として
出力される。このCN信号は、読み取り画像が特定原稿
の第2の特徴部の一部である可能性が高い場合に“1”
となる。
On the other hand, in FIG. 63, reference numeral 3410 is a comparator, which compares the output of the flip-flop 3408 with the threshold value ε'shown at the bottom of FIG. 64 and outputs the comparison result. On the other hand, 3411 is a flip-flop, 3412 is an AND gate, 3413 is a flip-flop, 3414.
Is an AND gate, and the output of the comparator 3410 is logically ANDed with the SC signal and the SZ signal and output as the CN signal. This CN signal is "1" when the read image is likely to be a part of the second feature of the specific document.
Becomes

【0193】一方、3409は、図54に示す2709
と同等な平均値回路であり、積分回路1(122)の場
合と同様の理由でフリップフロップ3408の出力で連
続する4つのデータを平均化する。図62において、I
IR3303−1,3303−2,・・・,3303−
8より出力されたFO信号は、パラレルシリアル変換器
3304および3305を経て、FOB信号としてFI
FO142,143に送られ、再びFIBとしてパラレ
ルシリアル変換器3301,3302を経て、IIR3
303−1,3303−2,・・・,3303−8にフ
ィードバックされる。
On the other hand, reference numeral 3409 denotes 2709 shown in FIG.
This is an average value circuit equivalent to, and averages four consecutive data at the output of the flip-flop 3408 for the same reason as in the case of the integrating circuit 1 (122). In FIG. 62, I
IR3303-1, 3303-2, ..., 3303-
The FO signal output from the signal No. 8 passes through parallel-to-serial converters 3304 and 3305 and is converted into a FI signal as a FI signal.
The data is sent to the FOs 142 and 143, and again passes through the parallel-serial converters 3301 and 3302 as the FIB to the IIR3.
It is fed back to 303-1, 3303-2, ..., 3303-8.

【0194】図62において、8つのIIR回路より出
力された、CN信号(読み取り画像信号が、特定原稿の
第2の特徴部の一部である可能性が高い高いかどうかを
判定する信号)は、8ビットのCEN信号として体積率
判定回路128に出力される。更に、図46において、
FIFO140,141の書き込み及び読み出しをを制
御するFRE信号とFWE信号は、FIFO制御回路1
14より発生され、積分回路2(123)において前記
(21)式が成り立つように積分回路2(123)の遅
延を考慮して、制御される。 (体積率判定及び最終判定)図46において、前述の積
分回路2(123)より出力されたCEN信号は、体積
率判定回路128に送られる。
In FIG. 62, the CN signal (a signal for determining whether or not the read image signal is highly likely to be a part of the second characteristic portion of the specific original) output from the eight IIR circuits is , 8-bit CEN signal is output to the volume ratio determination circuit 128. Furthermore, in FIG.
The FRE signal and the FWE signal that control the writing and reading of the FIFOs 140 and 141 are the FIFO control circuit 1
And is controlled by the integration circuit 2 (123) in consideration of the delay of the integration circuit 2 (123) so that the expression (21) is satisfied. (Volume Ratio Judgment and Final Judgment) In FIG. 46, the CEN signal output from the integration circuit 2 (123) is sent to the volume ratio judgment circuit 128.

【0195】体積率判定回路128には、積分回路2
(123)よりCEN信号の各ビットが“1”である画
素群が、図47に示される特定原稿の第2の特徴部の色
味分布範囲(RGB3次元の体積)のうちどれだけを占
めるかを示す体積率及び体積率が一定値以上になった条
件下で、CEN信号の各ビットが“1”である画素の総
数であるヒット画素数をカウントし、特定原稿の有無の
最終判定が成される。
The volume ratio determining circuit 128 includes an integrating circuit 2
From (123), how much the pixel group in which each bit of the CEN signal is “1” occupies in the tint distribution range (three-dimensional RGB volume) of the second characteristic portion of the specific document shown in FIG. Under the condition that the volume ratio and the volume ratio are equal to or greater than a certain value, the number of hit pixels, which is the total number of pixels in which each bit of the CEN signal is “1”, is counted, and the final determination of the presence or absence of the specific document is completed. To be done.

【0196】体積率判定回路128には、双方向バッフ
ァ130を経てスタティックRAM( 以下「SRAM」
と称す。) 136,137,138,139のデータバ
スが接続される。一方、ROM2(108)のアドレス
に入力された18ビットの内下位17ビットの信号は、
遅延回路124で積分回路1(121)および積分回路
2(122)の遅延分の同期合わせがなされ、トライス
テートバッファ125を経て下位15ビット(即ちRG
B各5ビットずつ)のSRA信号は前記SRAM13
6,137,138,139の各アドレスへ、上位2ビ
ット(即ちYPHS信号)は2入力4出力のデコーダ1
31(動作論理は149)に入力される。デコーダ13
1の4つの出力Y0,Y1,Y2,Y3は、ANDゲー
ト132,133,134,135でCCL信号との論
理積がとられ、4つのSRAM136,137,13
8,139の各チップセレクト端子(CS)に入力され
る。
The volume ratio determination circuit 128 is provided with a static RAM (hereinafter referred to as “SRAM”) via a bidirectional buffer 130.
Called. ) 136, 137, 138, and 139 data buses are connected. On the other hand, the signal of the lower 17 bits of the 18 bits input to the address of ROM2 (108) is
The delay circuit 124 synchronizes the delays of the integrating circuit 1 (121) and the integrating circuit 2 (122), and passes through the tri-state buffer 125 to the lower 15 bits (that is, RG).
SRA signal of 5 bits for each B)
For each of the addresses 6, 137, 138, and 139, the upper 2 bits (that is, the YPHS signal) have a 2-input 4-output decoder 1
31 (the operation logic is 149). Decoder 13
The four outputs Y0, Y1, Y2, Y3 of 1 are ANDed with the CCL signal by AND gates 132, 133, 134, 135, and four SRAMs 136, 137, 13
It is inputted to each chip select terminal (CS) of 8,139.

【0197】従って、SRAM136はYPHS信号が
“0”の場合にアクセスされ、SRAM137はYPH
S信号が“1”の場合にアクセスされ、SRAM138
はYPHS信号が“2”の場合にアクセスされ、SRA
M139はYPHS信号が“3”の場合にアクセスされ
る。さらに、各SRAMにおいては、初期化(ゼロクリ
ア)された後に各アドレスにROM2(108)のアド
レス下位15ビットをアクセスしたRGB信号の各5ビ
ットずつ計15ビットが送られ、CEN信号のいずれか
のビットが“1”になった場合にそれに対応するRGB
の値を示すアドレスに“1”が書き込まれる。なお、S
RAMの初期化につては後述する。
Therefore, the SRAM 136 is accessed when the YPHS signal is "0", and the SRAM 137 is YPH.
When the S signal is "1", the SRAM 138 is accessed.
Is accessed when the YPHS signal is "2", and SRA
M139 is accessed when the YPHS signal is "3". Further, in each SRAM, after being initialized (cleared to zero), each address is accessed to the lower 15 bits of the address of the ROM 2 (108), and 5 bits of each 5 bits of the RGB signal are sent in total, and one of the CEN signals is sent. RGB corresponding to when the bit becomes "1"
"1" is written in the address indicating the value of. In addition, S
The initialization of the RAM will be described later.

【0198】また、8ビットのデータの各ビットに対
し、異なる8種類の判定条件に基づいた特定原稿につい
ての処理がなされる。129はSRAM制御回路であ
り、4つのSRAM136,137,138,139の
書き込みイネーブル端子(WE)を制御するRWE信
号、4つのSRAMの出力イネーブル端子(OE)を制
御するROE信号、双方向バッファ130の制御端子を
制御するRID信号を発生する。
Further, with respect to each bit of the 8-bit data, a process for a specific original is performed based on eight different judgment conditions. An SRAM control circuit 129 is an RWE signal that controls the write enable terminals (WE) of the four SRAMs 136, 137, 138, and 139, an ROE signal that controls the output enable terminals (OE) of the four SRAMs, and the bidirectional buffer 130. Generates a RID signal for controlling the control terminal of the.

【0199】ここで126はインバータ、127はトラ
イステートバッファであり、ふたつのトライステートバ
ッファ125および127は制御信号CCLの値によっ
てどちらか一方がアクティブとなる。しかし、通常の動
作時にはCCL信号は“1”であるためトライステート
回路125の方がアクティブとなる。図65に体積率判
定回路128の詳細ブロック構成を、その動作タイミン
グを図66の402および403に示す。図66におい
て、RID信号は双方向バッファ130の方向を制御す
る制御信号、RWE信号は4つのSRAMの書き込みイ
ネーブル制御信号、ROE信号は4つのSRAMの出力
イネーブル制御信号であり、これらの信号はSRAM制
御回路129により発生される。
Here, 126 is an inverter, 127 is a tri-state buffer, and one of the two tri-state buffers 125 and 127 becomes active depending on the value of the control signal CCL. However, since the CCL signal is "1" during normal operation, the tri-state circuit 125 becomes active. FIG. 65 shows the detailed block configuration of the volume ratio determination circuit 128, and its operation timing is shown at 402 and 403 in FIG. In FIG. 66, the RID signal is a control signal for controlling the direction of the bidirectional buffer 130, the RWE signal is a write enable control signal for four SRAMs, the ROE signal is an output enable control signal for four SRAMs, and these signals are SRAMs. It is generated by the control circuit 129.

【0200】図66の402のタイミング及び403の
表に示される様に、XPHS信号が“0”及び“1”の
場合には、RID信号が“1”となるため、双方向バッ
ファの方向は“SRAMからLSI101の方向”にな
るとともに、RWE信号が“1”、ROE信号が“0”
となるため、SRAMは読み出し状態になる。更に、X
PHS信号が“2”の場合には、RID信号が“0”と
なるため、双方向バッファの方向は“LSI101から
SRAMの方向”になるとともに、RWE信号が
“0”、ROE信号が“1”となるため、SRAMは書
き込み状態になる。
As shown in the timing 402 of FIG. 66 and the table 403, when the XPHS signal is "0" and "1", the RID signal is "1", so the direction of the bidirectional buffer is As the direction goes from SRAM to LSI101, the RWE signal is "1" and the ROE signal is "0".
Therefore, the SRAM is in the read state. Furthermore, X
When the PHS signal is “2”, the RID signal is “0”, so the direction of the bidirectional buffer is “direction from the LSI 101 to the SRAM”, the RWE signal is “0”, and the ROE signal is “1”. ", The SRAM is in a write state.

【0201】XPHS信号が“3”の場合には、RID
信号が“0”となるため、双方向バッファの方向は“L
SI101からSRAMの方向”になり、RWE信号、
ROE信号がともに“1”となるため、SRAMは読み
出し状態でも書き込み状態でもない状態にある。また、
SRAMのアドレスであるSRA信号は、CLK4信号
の立ち上がりに同期して変化するため、XPHS信号が
“0”から“3”までの一周期分は変わらない。このた
め、SRAMにおいてはいわゆるリード/ モディファイ
/ ライト(読み出し/ 修正/ 書き込み)動作がおこなわ
れる。
When the XPHS signal is "3", RID
Since the signal is "0", the direction of the bidirectional buffer is "L".
From SI101 to the direction of SRAM ", RWE signal,
Since the ROE signals are both "1", the SRAM is in neither a reading state nor a writing state. Also,
Since the SRA signal which is the address of the SRAM changes in synchronization with the rising edge of the CLK4 signal, the XPHS signal does not change for one cycle from "0" to "3". Therefore, in SRAM, so-called read / modify
/ Write (read / modify / write) operation is performed.

【0202】次に、図65において、3601は2入力
1出力のセレクタ(動作論理を3602に示す)、36
03,3605はフリップフロップ、3604はインバ
ータ、3606,3608はANDゲート、3607は
オアゲート、3609−1,3609−2,・・・,3
609−8はそれぞれカウンタ回路である。ここで,R
O信号はSRAMより読み出された信号であるが、RO
E信号が“0”である時点でセレクタ3601を通過
し、フリップフロップ3603でCLK信号の立ち上が
りでラッチされ、RO1信号となる。
Next, in FIG. 65, reference numeral 3601 denotes a 2-input 1-output selector (operational logic is indicated by 3602), 36
03 and 3605 are flip-flops, 3604 is an inverter, 3606 and 3608 are AND gates, 3607 is an OR gate, 3609-1, 3609-2, ..., 3
Reference numerals 609-8 are counter circuits. Where R
The O signal is a signal read from the SRAM, but RO
When the E signal is "0", it passes through the selector 3601 and is latched by the flip-flop 3603 at the rising edge of the CLK signal to become the RO1 signal.

【0203】一方、フリップフロップ3605でCLK
4信号の立ち上がりで同期をとられたCEN信号は、C
EN1信号となる。インバータ3604及びANDゲー
ト3606によって演算されたTEN信号は、通常では
CCL信号は“1”であることからRO1信号が“0”
であり、CEN信号が“1”である場合のみに“1”と
なる演算が8ビットの各ビットについてなされたもので
ある。
On the other hand, the flip-flop 3605 outputs CLK.
The CEN signal synchronized at the rising edge of the four signals is C
It becomes the EN1 signal. In the TEN signal calculated by the inverter 3604 and the AND gate 3606, since the CCL signal is normally "1", the RO1 signal is "0".
That is, only when the CEN signal is "1", the operation of "1" is performed for each of the 8 bits.

【0204】また、画像読み取り時に“VS”信号が
“1”であることから、オアゲート3607及びAND
ゲート3608によって演算されたRI信号は、RO1
信号とCEN信号の論理和が8ビットの各ビットについ
て演算されたものである。従って、SRAMにおいて
は、初期化後にCEN信号とその時点でのRGB信号に
相当するSRAMのアドレスに格納されているデータと
論理和がなされて、同じアドレスに書き込まれる。さら
に、SRAMのデータの8ビット中のいずれかのビット
が“0”から“1”に遷移した場合、TEN信号におけ
る相当するビットが“1”となる。即ち、TEN信号の
各ビットについて“1”を出力する回数を計数すること
で“体積率”を計数することができる。
Further, since the "VS" signal is "1" at the time of image reading, the OR gate 3607 and the AND gate are connected.
The RI signal calculated by the gate 3608 is RO1.
The OR of the signal and the CEN signal is calculated for each of the 8 bits. Therefore, in the SRAM, after the initialization, the CEN signal and the data stored in the address of the SRAM corresponding to the RGB signal at that time are logically ORed and written to the same address. Further, when any of the 8 bits of the SRAM data changes from "0" to "1", the corresponding bit in the TEN signal becomes "1". That is, the "volume ratio" can be counted by counting the number of times "1" is output for each bit of the TEN signal.

【0205】3601−1,3601−2,・・・,3
601−8はカウンタ回路であり、前述のTEN信号の
各ビット別に“1”の発生する個数を計数するものであ
る。カウンタ回路3601−1,3601−2,・・
・,3601−8の詳細ブロック構成を図67に示す。
図67において、3701は2入力4出力のデコーダ
(動作論理を3702に示す。)であり、3703,3
704,3705,3706はANDゲート、370
7,3708,3709,3710はカウンタ、371
2は4入力1出力のセレクタ(動作論理を3713に示
す。)である。
3601-1, 3601-2, ..., 3
A counter circuit 601-8 counts the number of occurrences of "1" for each bit of the TEN signal. Counter circuits 3601-1, 3601-2, ...
67 shows the detailed block configuration of 3601-8.
In FIG. 67, reference numeral 3701 is a 2-input 4-output decoder (the operation logic is shown by 3702), which is 3703,3.
704, 3705, 3706 are AND gates, 370
7, 3708, 3709, 3710 are counters, 371
Reference numeral 2 denotes a 4-input 1-output selector (operational logic is shown at 3713).

【0206】このように4個の独立したカウンタ370
7,3708,3709,3710を有し、YPHS信
号が“0”の場合にはカウンタ3707でカウントし、
カウンタ3707の出力がQ出力として出力される。一
方、YPHS信号が“1”の場合には、カウンタ370
8でカウントし、カウンタ3708の出力がQ出力とし
て出力される。YPHS信号が“2”の場合にはカウン
タ3709でカウントし、カウンタ3709の出力がQ
出力として出力される。YPHS信号が“3”の場合に
はカウンタ3710でカウントし、カウンタ3710の
出力がQ出力として出力される。即ち、YPHS信号で
時分割処理をし、それぞれ異なる8種類の判定条件に基
づき特定原稿についての判定がなされる。
In this way, four independent counters 370 are provided.
7, 3708, 3709, 3710. When the YPHS signal is “0”, the counter 3707 counts,
The output of the counter 3707 is output as the Q output. On the other hand, when the YPHS signal is “1”, the counter 370
The output of the counter 3708 is output as the Q output. When the YPHS signal is "2", the counter 3709 counts and the output of the counter 3709 is Q.
It is output as output. When the YPHS signal is "3", the counter 3710 counts, and the output of the counter 3710 is output as the Q output. That is, the YPHS signal is subjected to time-division processing, and the determination of the specific original is made based on eight different determination conditions.

【0207】図65において、3610は8入力1出力
のセレクタ(動作論理を3625に示す。)、3611
及び3612は、16入力1出力のセレクタ(動作論理
を3626に示す。)、3613及び3614は比較器
である。また、MS00,MS01,・・・,MS3
1、及びM00,M01,・・・,M15は、前述の計
数レジスタ148に予めセットされている値であり、そ
れぞれ判定すべき32種類の判定条件に基づく特定原稿
固有の値をもつ。MS00〜MS31は後述するヒット
画素数カウントの不感帯の設定値、M00〜M15は後
述するヒット画素数カウント結果のマスク信号である。
In FIG. 65, reference numeral 3610 denotes an 8-input 1-output selector (operation logic is shown at 3625), 3611.
Reference numerals 3612 and 3612 are selectors of 16 inputs and 1 output (operation logic is shown in 3626), and reference numerals 3613 and 3614 are comparators. Also, MS00, MS01, ..., MS3
, 1 and M00, M01, ..., M15 are values preset in the above-mentioned counting register 148, and have values specific to a particular document based on 32 types of determination conditions to be determined. MS00 to MS31 are set values of the dead zone of the hit pixel number count described later, and M00 to M15 are mask signals of the hit pixel number count result described later.

【0208】セレクタ3610及び3611,3612
により、比較器3613,3614による処理がX4P
HSに対応して時分割に成され、その結果は、シリアル
パラレル変換器3615及び3616に送られる。シリ
アルパラレル変換器3615及び3616の詳細ブロッ
ク構成を図68に、その動作タイミングチャートを図6
9に示す。即ち、図68において、3801,380
2,3803,3804,3805,3806,380
7,3808,3812,3813はフリップフロッ
プ、3809はオアゲート、3810は2入力1出力の
セレクタ(動作論理を3811に示す。)である。
Selectors 3610 and 3611, 3612
Allows the processing by the comparators 3613 and 3614 to be X4P.
It is time-divided corresponding to HS, and the result is sent to serial-parallel converters 3615 and 3616. FIG. 68 shows a detailed block configuration of the serial / parallel converters 3615 and 3616, and FIG. 6 shows an operation timing chart thereof.
9 shows. That is, in FIG. 68, 3801, 380
2,3803,3804,3805,3806,380
Reference numerals 7, 3808, 3812, 3813 are flip-flops, 3809 is an OR gate, and 3810 is a 2-input 1-output selector (operation logic is shown by 3811).

【0209】以上の構成を備えることにより結果的に
は、Xに順次(シリアルに)入力された値が、8ビット
のY出力の各ビットに対応して同時(パラレルに)出力
される。従って、図65のMK信号及びMASK信号
は、多少の遅延はあるものの同時に8種類の判定条件に
基づく特定原稿についての処理がなされたのものが出力
される。
As a result of the provision of the above configuration, the values sequentially (serially) input to X are simultaneously (parallelly) output corresponding to each bit of the 8-bit Y output. Therefore, the MK signal and the MASK signal in FIG. 65 are output at the same time, although with some delay, on the specific original document based on the eight kinds of determination conditions.

【0210】図65において、3618−1,3618
−2,・・・,3618−8はそれぞれヒット画素数カ
ウント回路であり、同一の構造をとる。3619はAN
Dゲート、3620はカウンタ群、3621は比較器で
ある。またGS00,GS01,・・・,GS31は予
め計数レジスタ148にセットされている値であり、3
626−1,3626−2,・・・,3626−8は4
入力1出力のセレクタ(動作論理を3627に示す。)
である。
In FIG. 65, 3618-1, 3618
Reference numerals -2, ..., 3618-8 are hit pixel number counting circuits and have the same structure. 3619 is AN
A D gate, 3620 are a counter group, and 3621 is a comparator. Further, GS00, GS01, ..., GS31 are values preset in the count register 148, and 3
626-1, 3626-2, ..., 3626-8 is 4
Input 1 output selector (operation logic is shown in 3627)
Is.

【0211】カウンタ群3620は4個のカウンタより
構成され手いる。図70にカウンタ群3620の詳細ブ
ロック構成を示す。図70において、5701,570
2,5703,5704はANDゲート、5705,5
706,5707,5708はカウンタ、5709は最
大値回路である。即ち、カウンタ5705はGENA信
号が“1”でかつEN信号が“1”である場合にカウン
トアップする。言いかえると、GENA信号が“1”で
ある区間でEN信号が“1”である場合をカウントす
る。同様に、カウンタ5706はGENB信号が“1”
である区間でEN信号が“1”である場合をカウント
し、カウンタ5707はGENC信号が“1”である区
間でEN信号が“1”である場合をカウントし、カウン
タ5708はGEND信号が“1”である区間でEN信
号が“1”である場合をカウントする。さらに、最大値
回路5709により、4つのカウンタ5705,570
6,5707,5708のカウント値の最大値がQとし
て出力される。
The counter group 3620 is composed of four counters. FIG. 70 shows a detailed block configuration of the counter group 3620. In FIG. 70, 5701 and 570
2,5703,5704 are AND gates, 5705,5
Reference numerals 706, 5707, 5708 are counters, and 5709 is a maximum value circuit. That is, the counter 5705 counts up when the GENA signal is "1" and the EN signal is "1". In other words, the case where the EN signal is "1" is counted in the section where the GENA signal is "1". Similarly, the genb signal of the counter 5706 is "1".
, The counter 5707 counts when the EN signal is "1", and the counter 5708 counts the case where the EN signal is "1". The case where the EN signal is "1" in the section of "1" is counted. Further, by the maximum value circuit 5709, the four counters 5705, 570 are
The maximum value of the count values of 6, 5707 and 5708 is output as Q.

【0212】一方、GENA,GENB,GENC,G
ENDは、図71に示される様な信号であり、主走査を
分割している。その原理につては、後述する。図65に
おいて、TEN信号の各ビットについて独立に“1”で
ある回数をカウンタ回路3609−1〜3609−8で
計数し、その計数結果が所定の値MS00〜MS31
(YPHS信号が“0”の場合にはMS00〜MS0
7、YPHS信号が“1”の場合にはMS08〜MS1
5、YPHS信号が“2”の場合にはMS16〜MS2
3、YPHS信号が“3”の場合にはMS24〜MS3
1)の値よりも大きい場合にはMASK信号の相当する
ビットが“1”となり、カウンタ3620群はCEN信
号の相当するビットが“1”である個数を計数開始す
る。
On the other hand, GENA, GENB, GENC, G
END is a signal as shown in FIG. 71 and divides the main scan. The principle will be described later. In FIG. 65, the number of times each bit of the TEN signal is “1” is independently counted by the counter circuits 3609-1 to 3609-8, and the counting result is a predetermined value MS00 to MS31.
(If the YPHS signal is "0", MS00 to MS0
7. MS08 to MS1 when YPHS signal is "1"
5, MS16 to MS2 when YPHS signal is "2"
3. If the YPHS signal is "3", MS24 to MS3
If it is larger than the value of 1), the corresponding bit of the MASK signal becomes "1" and the group of counters 3620 starts counting the number of the corresponding bit of the CEN signal being "1".

【0213】図65において、3621はインバータ、
3622- 1,3622- 2,...,3622- 8はA
NDゲートである。さらに、TESTMODE信号は不
図示のCPUにより設定される信号であり、通常動作モ
ードと試験モードの切り替えを行なう。具体的には、通
常動作モード時には“0”,試験モード時には“1”と
なる。
In FIG. 65, reference numeral 3621 denotes an inverter,
3622-1, 3622-2, ..., 3622.8 are A
It is an ND gate. Further, the TESTMODE signal is a signal set by a CPU (not shown) and switches between the normal operation mode and the test mode. Specifically, it is "0" in the normal operation mode and "1" in the test mode.

【0214】ここで、CEN信号の計数結果が、対応す
るGS00〜GS31(YPHS信号が“0”の場合に
はGS00〜GS07、YPHS信号が“1”の場合に
はGS08〜GS15、YPHS信号が“2”の場合に
はGS16〜GS23、YPHS信号が“3”の場合に
はGS24〜GS31)の値よりも大きくなった場合で
かつCEN信号の計数結果(即ち体積率)が対応するM
00〜M31(YPHS信号が“0”の場合にはM00
〜M07、YPHS信号が“1”の場合にはM08〜M
15、YPHS信号が“2”の場合にはM16〜M2
3、YPHS信号が“3”の場合にはM24〜M31)
の値よりも大ききなった場合に限り、ANDゲート36
22−1,3622−2,... ,3622−8の出力は
“1”となり得る。
Here, the counting result of the CEN signal indicates that the corresponding GS00 to GS31 (GS00 to GS07 when the YPHS signal is "0", GS08 to GS15, and the YPHS signal when the YPHS signal is "1"). In the case of "2", when the value of GS16 to GS23 is larger than the value of GS16 to GS23, and in the case of YPHS signal being "3", it is larger than the value of GS24 to GS31), and the counting result (that is, volume ratio) of the CEN signal corresponds to M
00 to M31 (M00 when the YPHS signal is "0")
~ M07, M08 ~ M when YPHS signal is "1"
15. If the YPHS signal is "2", M16 to M2
3. If the YPHS signal is "3", M24 to M31)
AND gate 36 only when it becomes larger than the value of
The outputs of 22-1, 3622-2, ..., 3622-8 can be “1”.

【0215】また、以上の条件に加え、ANDゲート3
622- 1はTESTMODE信号が“1”の場合(即
ち試験モード時)にのみ“1”になり得、ANDゲート
3622- 2,... ,3622- 8はTESTMODE
信号が“0”の場合(即ち通常動作モード時)にのみ
“1”になり得る。即ち、同時に処理判定される8種類
の判定手段の内、1種類は試験用原稿のためのものであ
り、他の7種類は通常の特定原稿のためのものである。
In addition to the above conditions, AND gate 3
622-1 can be set to "1" only when the TESTMODE signal is "1" (that is, in the test mode), and AND gates 3622-2, ..., 3622-8 are connected to TESTMODE.
It can be "1" only when the signal is "0" (that is, in the normal operation mode). That is, of the eight types of determination means that are processed and determined at the same time, one type is for a test original and the other seven types are for a normal specific original.

【0216】3623はHIT信号生成器であり、AN
Dゲート3622- 1,3622-2,... ,3622-
8よりのYPHS信号の値により時分割に発生される
8ビットの信号に従って、前述の32ビットのHIT信
号を生成する。図72に図65に示すHIT信号生成器
の詳細ブロック構成を示す。図72において、630
1,6302,6303,6304はインバータ、63
05,6306,6307,6308,6309,63
10,6311,6312,...,6313,631
4,6315,6316はANDゲート、6317,6
318,6319,6320,6321,5322,6
323,6324,... ,6325,6326,632
7,6328はJKフリップフロップである。
Reference numeral 3623 is a HIT signal generator, and AN
D gate 3622-1, 3622.2, ..., 3622-
The 32-bit HIT signal described above is generated in accordance with the 8-bit signal generated in time division by the value of the YPHS signal from 8. FIG. 72 shows a detailed block configuration of the HIT signal generator shown in FIG. In FIG. 72, 630
1, 6302, 6303, 6304 are inverters, 63
05, 6306, 6307, 6308, 6309, 63
10, 6311, 6312, ..., 6313, 631
4, 6315, 6316 are AND gates, 6317, 6
318, 6319, 6320, 6321, 5322, 6
323, 6324, ..., 6325, 6326, 632
Reference numeral 7,6328 is a JK flip-flop.

【0217】図72中の8ビットのX信号は、前述のA
NDゲート3622- 1,3622- 2,... ,362
2- 8より送られる信号であり、YPHS信号の値によ
り4つに時分割に発生される前述の32種類の判定条件
に基づく判定結果を示す8ビットの信号である。また、
YD0,YD1,YD2,YD3は図3の402に示す
様に、YPHS号に依存する信号である。
The 8-bit X signal in FIG.
ND gates 3622-1, 3622-2, ..., 362
It is a signal transmitted from 2-8, and is an 8-bit signal indicating the determination result based on the above-mentioned 32 types of determination conditions, which is generated in four time divisions according to the value of the YPHS signal. Also,
YD0, YD1, YD2, YD3 are signals dependent on the YPHS signal, as indicated by 402 in FIG.

【0218】YD0はYPHS信号が“0”の場合のみ
に“0”となりそれ以外では“1”となる信号、YD1
はYPHS信号が“1”の場合のみに“0”となりそれ
以外では“1”となる信号、YD2はYPHS信号が
“2”の場合のみに“0”となりそれ以外では“1”と
なる信号、YD3はYPHS信号が“3”の場合のみに
“0”となりそれ以外では“1”となる信号である。
YD0 is a signal which becomes "0" only when the YPHS signal is "0", and becomes "1" otherwise, YD1
Is a signal that becomes "0" only when the YPHS signal is "1", and becomes "1" otherwise, and YD2 is a signal that becomes "0" only when the YPHS signal is "2" and becomes "1" otherwise. , YD3 is a signal which becomes "0" only when the YPHS signal is "3" and becomes "1" otherwise.

【0219】ここで、X信号の最下位ビットであるbit0
は、ANDゲート6305,6306,6307,63
08の一方入力端子に入力される。さらに、ANDゲー
ト6305の他方入力端子にはYD0信号の論理反転し
た信号が入力される。ANDゲート6306の他方入力
端子にはYD1信号の論理反転した信号が入力される。
ANDゲート6307の他方入力端子にはYD2信号の
論理反転した信号が入力される。ANDゲート6308
の他方入力端子にはYD3信号の論理反転した信号が入
力される。
Here, the least significant bit of the X signal, bit0
Are AND gates 6305, 6306, 6307, 63
08 is input to one input terminal. Further, a signal obtained by logically inverting the YD0 signal is input to the other input terminal of the AND gate 6305. A signal obtained by logically inverting the YD1 signal is input to the other input terminal of the AND gate 6306.
A signal obtained by logically inverting the YD2 signal is input to the other input terminal of the AND gate 6307. AND gate 6308
A signal obtained by logically inverting the YD3 signal is input to the other input terminal of the.

【0220】結果として、JKフリップフロップ630
5には、YPHS信号が“0”である場合で、X信号の
最下位ビットであるbit0が“1”であった場合にその出
力が“1”になり、保持される。さらに、JKフリップ
フロップ6306には、YPHS信号が“1”である場
合で、X信号の最下位ビットであるbit0が“1”であっ
た場合にその出力が“1”になり保持される。
As a result, JK flip-flop 630
In FIG. 5, when the YPHS signal is "0" and the least significant bit bit0 of the X signal is "1", its output becomes "1" and is held. Further, in the JK flip-flop 6306, when the YPHS signal is "1" and the least significant bit bit0 of the X signal is "1", its output becomes "1" and is held.

【0221】JKフリップフロップ6307には、YP
HS信号が“2”である場合で、X信号の最下位ビット
であるbit0が“1”であった場合にその出力が“1”に
なり保持される。JKフリップフロップ6308には、
YPHS信号が“3”である場合で、X信号の最下位ビ
ットであるbit0が“1”であった場合にその出力が
“1”になり保持される。
The JK flip-flop 6307 has a YP
When the HS signal is "2" and the least significant bit bit0 of the X signal is "1", the output is "1" and is held. The JK flip-flop 6308 has
When the YPHS signal is "3" and the least significant bit of the X signal, bit0, is "1", its output becomes "1" and is held.

【0222】同様にして、X信号の下位から2ビット目
であるbit1はANDゲート6309,6310,631
1,6312に入力される。さらに、ANDゲート63
09の他方入力端子にはYD0信号の論理反転した信号
が入力される。ANDゲート6310の他方入力端子に
はYD1信号の論理反転した信号が入力される。AND
ゲート6311の他方入力端子にはYD2信号の論理反
転した信号が入力される。ANDゲート6312の他方
入力端子にはYD3信号の論理反転した信号が入力され
る。
Similarly, bit 1 which is the second least significant bit of the X signal is AND gates 6309, 6310, 631.
1, 6312. Further, the AND gate 63
A signal obtained by logically inverting the YD0 signal is input to the other input terminal of 09. A signal obtained by logically inverting the YD1 signal is input to the other input terminal of the AND gate 6310. AND
A signal obtained by logically inverting the YD2 signal is input to the other input terminal of the gate 6311. A signal obtained by logically inverting the YD3 signal is input to the other input terminal of the AND gate 6312.

【0223】これらの結果として、JKフリップフロッ
プ6309には、YPHS信号が“0”である場合で、
X信号のbit1が“1”であった場合に、その出力が
“1”になり保持される。さらに、JKフリップフロッ
プ6310には、YPHS信号が“1”である場合で、
X信号の最下位ビットであるbit1が“1”であった場合
にその出力が“1”になり、保持される。
As a result of these, in the JK flip-flop 6309, when the YPHS signal is "0",
When bit1 of the X signal is "1", its output becomes "1" and is held. In addition, the JK flip-flop 6310 has a YPHS signal of "1",
When the least significant bit bit1 of the X signal is "1", its output becomes "1" and is held.

【0224】JKフリップフロップ6311には、YP
HS信号が“2”である場合で、X信号の最下位ビット
であるbit1が“1”であった場合にその出力が“1”に
なり、保持される。JKフリップフロップ6312に
は、YPHS信号が“3”である場合で、X信号の最下
位ビットであるbit1が“1”であった場合にその出力が
“1”になり、保持される。
The JK flip-flop 6311 has a YP
When the HS signal is "2" and the least significant bit bit1 of the X signal is "1", the output becomes "1" and is held. In the JK flip-flop 6312, when the YPHS signal is "3" and the least significant bit bit1 of the X signal is "1", the output becomes "1" and is held.

【0225】なお、図中bit7についてのみ図示し、bit2
〜bit6については図示を省略するが、X信号の他の6ビ
ット(bit2,bit3,bit4,bit5,bit6,bit7) においても同様
にしてJKフリップフロップに時分割されて、その値が
保持される。これら、合計32個のJKフリップフロッ
プの出力は、32ビットのHIT信号として出力され
る。
Note that only bit7 in the figure is shown, and bit2
Although not shown in the figure for ~ bit6, the other 6 bits (bit2, bit3, bit4, bit5, bit6, bit7) of the X signal are similarly time-divided into JK flip-flops and their values are held. . The outputs of these 32 JK flip-flops in total are output as a 32-bit HIT signal.

【0226】ここで繰り返すが、HIT信号の持つ意味
は、予め定められた特定原稿を判定すべく32種類の判
定条件での判定結果である。また、HIT信号の初期化
(ゼロクリア)は、後述するVSTR信号によって行わ
れる。 (特定原稿存在の場合の判断及びその場合の処理)以上
のプロセスにより複数の判定条件による判定結果は、図
46及び図2において、32ビットのHIT信号がCP
U311に送られる。図2に示すCPU311は、HI
T信号により予め定められた規則に従い、特定原稿の有
無を判断する。
Here again, the meaning of the HIT signal is the judgment result under 32 kinds of judgment conditions for judging the predetermined specific original. The initialization (zero clear) of the HIT signal is performed by the VSTR signal described later. (Judgment When Specific Manuscript Exists And Processing In That Case) As a result of judgment by a plurality of judgment conditions by the above process, the 32-bit HIT signal is CP
It is sent to U311. The CPU 311 shown in FIG.
The presence or absence of a specific document is determined according to a rule predetermined by the T signal.

【0227】ここで、特定原稿の有無を判断する例とし
て、(例1)及び(例2)を挙げる。 (例1)合計22種類の特定原稿の有無の判定の場合で
あり、32ビットのHIT信号の第nビット(n=0,1,
2,...,31)をHIT(n)とし、論理積を& とすれば、 特定原稿No.1( 試験様特定原稿) の有無は、HIT
(0)で判定 特定原稿No.2( 試験様特定原稿) の有無は、HIT
(8)で判定 特定原稿No.3( 試験様特定原稿) の有無は、HIT(1
6)で判定 特定原稿No.4( 試験様特定原稿) の有無は、HIT(2
4)で判定 特定原稿No.5の有無は、HIT(1)で判定 特定原稿No.6の有無は、HIT(2)で判定 特定原稿No.7の有無は、HIT(3)で判定 特定原稿No.8の有無は、HIT(4)で判定 特定原稿No.9の有無は、HIT(5)で判定 特定原稿No.7の有無は、HIT(6)で判定 特定原稿No.10 の有無は、HIT(7)で判定 特定原稿No.12 の有無は、HIT(9)で判定 特定原稿No.13 の有無は、HIT(10)で判定 特定原稿No.14 の有無は、HIT(11)で判定 特定原稿No.15 の有無は、HIT(12)で判定 特定原稿No.16 の有無は、HIT(13)で判定 特定原稿No.17 の有無は、HIT(14)& HIT(1
5)で判定 特定原稿No.18 の有無は、HIT(17)& HIT(1
8)で判定 特定原稿No.19 の有無は、HIT(19)& HIT(2
0)& HIT(21)で判定 特定原稿No.20 の有無は、HIT(22)& HIT(2
3)& HIT(25)で判定 特定原稿No.21 の有無は、HIT(26)& HIT(2
7)& HIT(28)で判定 特定原稿No.22 の有無は、HIT(29)& HIT(3
0)& HIT(31)で判定 ここで、試験モード時の判定式は、 J = HIT(0)|HIT(8)|HIT(16)|HIT(24) 通常動作モード時の版定式は、 J = HIT(1)|HIT(2)|HIT(3)|HIT(4)|HIT(5)|HIT(6)|HIT
(7)|HIT(9)|HIT(10) |HIT(11)|HIT(12)|HIT(13) |{HIT(14)&HIT(15)}|{HIT(17)&HIT(18)} |{HIT(19)&HIT(20)&HIT(21)}|{HIT(22)&HIT(23)&HIT(2
5)} |{HIT(26)&HIT(27)&HIT(28)}|{HIT(29)&HIT(30)&HIT(3
1)} とするとき、J の値により特定原稿の有無を判断する。
もしJ= “0”であるならば対象とする特定原稿はプラ
テン上に存在しないと判断され、もしJ=“1”である
ならば対象とする特定原稿の内少なくともひとつ以上が
プラテン上に存在すると判断される。
Here, (Example 1) and (Example 2) will be given as examples of determining the presence or absence of a specific document. (Example 1) This is a case of determining the presence or absence of a total of 22 types of specific originals, and is the nth bit (n = 0,1,) of the 32-bit HIT signal.
2, ..., 31) is HIT (n), and the logical product is &, the presence or absence of specific manuscript No. 1 (test specific manuscript) is
Judgment by (0) Whether or not there is a specific original No. 2 (test specific original) is HIT
Judgment in (8) Whether or not there is a specific original No. 3 (test specific original) is HIT (1
Judgment in 6) Whether or not there is a specific original No. 4 (test specific original) is HIT (2
Judgment in 4) Judgment of specific manuscript No.5 is judged by HIT (1) Judgment of existence of specific manuscript No.6 is judged by HIT (2) Judge of existence of specific manuscript No.7 is judged by HIT (3) Existence of original No.8 is judged by HIT (4). Existence of specific original No.9 is judged by HIT (5). Existence of specific original No.7 is judged by HIT (6). Presence / absence is judged by HIT (7) Presence / absence of specific original No.12 is judged by HIT (9) Presence / absence of specific original No.13 is judged by HIT (10) Presence / absence of specific original No.14 is HIT ( Judgment in 11) Presence or absence of specific original No.15 is determined by HIT (12) Presence of specific original No.16 is determined by HIT (13) Presence or absence of specific original No.17 is HIT (14) & HIT ( 1
Judgment in 5) HIT (17) & HIT (1
Judgment in 8) HIT (19) & HIT (2
0) & HIT (21) Judges whether there is a specific manuscript No. 20 by checking HIT (22) & HIT (2
3) & HIT (25) Judgment Whether there is a specific manuscript No. 21 is HIT (26) & HIT (2
7) & HIT (28) Judgment Whether there is a specific manuscript No. 22 is HIT (29) & HIT (3
0) & HIT (31) Judgment formula in the test mode is J = HIT (0) | HIT (8) | HIT (16) | HIT (24) The version formula in the normal operation mode is J = HIT (1) | HIT (2) | HIT (3) | HIT (4) | HIT (5) | HIT (6) | HIT
(7) | HIT (9) | HIT (10) | HIT (11) | HIT (12) | HIT (13) | {HIT (14) & HIT (15)} | {HIT (17) & HIT (18)} | {HIT (19) & HIT (20) & HIT (21)} | {HIT (22) & HIT (23) & HIT (2
5)} | {HIT (26) & HIT (27) & HIT (28)} | {HIT (29) & HIT (30) & HIT (3
1)}, the presence or absence of a specific manuscript is determined by the value of J.
If J = "0", it is determined that the target specific document does not exist on the platen. If J = "1", at least one of the target specific documents exists on the platen. Then it is judged.

【0228】ここで、No.1〜No.16 の特定原稿は、それ
ぞれひとつの特定原稿に対して1種類の判定条件で判定
し、No.17 〜No.18 の特定原稿は、それぞれひとつの特
定原稿に対して2種類の判定条件で判定し、No.19 〜N
o.22 の特定原稿は、それぞれひとつの特定原稿に対し
て3種類の判定条件で判定をしている。 (例2)合計19種類の特定原稿の有無の判定の場合で
あり、32ビットのHIT信号の第nビット(n=0,1,
2,...,31)をHIT(n)とし、論理積を& とすれば、 特定原稿No.1( 試験様特定原稿) の有無は、HIT
(0)で判定 特定原稿No.2( 試験様特定原稿) の有無は、HIT
(8)で判定 特定原稿No.3( 試験様特定原稿) の有無は、HIT(1
6)で判定 特定原稿No.4( 試験様特定原稿) の有無は、HIT(2
4)で判定 特定原稿No.5の有無は、HIT(1)で判定 特定原稿No.6の有無は、HIT(2)で判定 特定原稿No.7の有無は、HIT(3)で判定 特定原稿No.8の有無は、HIT(4)で判定 特定原稿No.9の有無は、HIT(5)で判定 特定原稿No.7の有無は、HIT(6)で判定 特定原稿No.8の有無は、HIT(7)で判定 特定原稿No.9の有無は、HIT(9)で判定 特定原稿No.10 の有無は、HIT(10)& HIT(1
1)で判定 特定原稿No.11 の有無は、HIT(12)& HIT(1
3)で判定 特定原稿No.12 の有無は、HIT(14)& HIT(1
5)で判定 特定原稿No.14 の有無は、HIT(17)& HIT(1
8)で判定 特定原稿No.15 の有無は、HIT(19)& HIT(2
0)で判定 特定原稿No.16 の有無は、HIT(21)& HIT(2
2)で判定 特定原稿No.17 の有無は、HIT(23)& HIT(2
5)で判定 特定原稿No.18 の有無は、HIT(26)& HIT(2
7)& HIT(28)で判定 特定原稿No.19 の有無は、HIT(29)& HIT(3
0)& HIT(31)で判定 ここで、試験モード時の判定式は、 J = HIT(0)|HIT(8)|HIT(16)|HIT(24) 通常動作モード時の版定式は、 J = HIT(1)|HIT(2)|HIT(3)|HIT(4)|HIT(5)|HIT(6)|HIT
(7)|HIT(9) |{HIT(10)&HIT(11)}|{HIT(12)&HIT(13)}|{HIT(14)&HIT
(15)}|{HIT(17)&HIT(18)} |{HIT(19)&HIT(20)}|{HIT(21)&HIT(22)}|{HIT(23)&HIT
(25)} |{HIT(26)&HIT(27)&HIT(28)}|{HIT(29)&HIT(30)&HIT(3
1)} とするとき、J の値により特定原稿の有無を判断する。
もしJ= “0”であるならば対象とする特定原稿はプラ
テン上に存在しないと判断され、もしJ=“1”である
ならば対象とする特定原稿の内少なくともひとつ以上が
プラテン上に存在すると判断される。
Here, the No. 1 to No. 16 specific originals are judged by one kind of judgment condition for each one special original, and the No. 17 to No. 18 specific originals are judged as one Judgment is made with two kinds of judgment conditions for a specific document, No. 19 to N
For the specific original of o.22, each specific original is judged by three kinds of judgment conditions. (Example 2) In the case of determining the presence or absence of a total of 19 types of specific originals, the n-th bit of the 32-bit HIT signal (n = 0, 1,
2, ..., 31) is HIT (n), and the logical product is &, the presence or absence of specific manuscript No. 1 (test specific manuscript) is
Judgment by (0) Whether or not there is a specific original No. 2 (test specific original) is HIT
Judgment in (8) Whether or not there is a specific original No. 3 (test specific original) is HIT (1
Judgment in 6) Whether or not there is a specific original No. 4 (test specific original) is HIT (2
Judgment in 4) Judgment of specific manuscript No.5 is judged by HIT (1) Judgment of existence of specific manuscript No.6 is judged by HIT (2) Judge of existence of specific manuscript No.7 is judged by HIT (3) Existence of original No.8 is judged by HIT (4). Existence of specific original No.9 is judged by HIT (5). Existence of specific original No.7 is judged by HIT (6). Presence / absence is judged by HIT (7). Presence / absence of specific original No.9 is determined by HIT (9). Presence / absence of specific original No.10 is HIT (10) & HIT (1
Judgment in 1) HIT (12) & HIT (1
Judgment in 3) HIT (14) & HIT (1
Judgment in 5) HIT (17) & HIT (1
Judgment in 8) HIT (19) & HIT (2
Judgment in 0) HIT (21) & HIT (2
Judgment in 2) HIT (23) & HIT (2
Judgment in 5) HIT (26) & HIT (2
7) & HIT (28) Judgment Whether there is a specific manuscript No. 19 is HIT (29) & HIT (3
0) & HIT (31) Judgment formula in the test mode is J = HIT (0) | HIT (8) | HIT (16) | HIT (24) The version formula in the normal operation mode is J = HIT (1) | HIT (2) | HIT (3) | HIT (4) | HIT (5) | HIT (6) | HIT
(7) | HIT (9) | {HIT (10) & HIT (11)} | {HIT (12) & HIT (13)} | {HIT (14) & HIT
(15)} | {HIT (17) & HIT (18)} | {HIT (19) & HIT (20)} | {HIT (21) & HIT (22)} | {HIT (23) & HIT
(25)} | {HIT (26) & HIT (27) & HIT (28)} | {HIT (29) & HIT (30) & HIT (3
1)}, the presence or absence of a specific manuscript is determined by the value of J.
If J = "0", it is determined that the target specific document does not exist on the platen. If J = "1", at least one of the target specific documents exists on the platen. Then it is judged.

【0229】ここで、No.1〜No.9の特定原稿は、それぞ
れひとつの特定原稿に対して1種類の判定条件で判定
し、No.10 〜No.17 の特定原稿は、それぞれひとつの特
定原稿に対して2種類の判定条件で判定し、No.18 〜No
19の特定原稿は、それぞれひとつの特定原稿に対して3
種類の判定条件で判定をしている。
Here, the No. 1 to No. 9 specific originals are judged by one kind of judgment condition for each one special original, and the No. 10 to No. 17 specific originals are judged as one No.18 to No is judged for the specific original by two kinds of judgment conditions.
19 specific manuscripts, 3 for each one
Judgment is made based on the kind of judgment conditions.

【0230】以上に挙げたこれらの2つの例は、ひとつ
の例であり、これ以外の任意の組み合せがあり得ること
は言うまでもない。更にCPU311は、前述の評価式
の値Jが“1”となった以降はINHIBIT信号を
“1”にし、OR回路310を用いてそれ以降の画像を
“べた画像”にしてしまう。
It is needless to say that these two examples given above are only one example, and there may be any combination other than this. Further, the CPU 311 sets the INHIBIT signal to “1” after the value J of the above-described evaluation formula becomes “1”, and uses the OR circuit 310 to make the subsequent images “solid images”.

【0231】また、上述した表2に示す様に、32種類
の判定条件はM,Y 像形成時とC,Bk像形成時とでは異なら
しめることが可能であり、4回の原稿走査(M,C,Y,Bkの
各像形成に対応)の各々においてその組み合せをかえる
こともできる。例えば、M,Y像形成時には(例1)に示
す例で、C,Bk像形成時には(例2)に示す例の組み合せ
をおこなってもよい。
As shown in Table 2 above, the 32 kinds of judgment conditions can be made different during M, Y image formation and during C, Bk image formation, and the four original scanning (M , C, Y, Bk) corresponding to each image formation). For example, a combination of the example shown in (Example 1) at the time of forming M and Y images and the example shown in (Example 2) at the time of forming C and Bk images may be performed.

【0232】[SRAM及び各カウンタの初期化]体積
率及びヒット画素数の計数のためには、SRAM136
〜139及び各カウンタ(3707〜3610,362
00)を初期化(ゼロクリア)しなければならない。こ
れらSRAM及びカウンタの初期化は、図46に示すC
CL発生回路149より発生されるCCL信号によって
成される。また、最終判定結果であるHIT信号の初期
化として、VSTR信号もCCL発生回路149にて発
生させられる。そのタイミングチャートを図66の40
1に示す。
[Initialization of SRAM and counters] To count the volume ratio and the number of hit pixels, the SRAM 136 is used.
-139 and each counter (3707-3610,362)
00) must be initialized (cleared to zero). Initialization of these SRAMs and counters is performed by C shown in FIG.
It is formed by the CCL signal generated by the CL generation circuit 149. Further, the VSTR signal is also generated by the CCL generation circuit 149 as initialization of the HIT signal which is the final determination result. The timing chart is shown in FIG.
Shown in 1.

【0233】図66において、VS信号は、像形成区間
で“1”となる信号であるが、VS信号の立ち上がり
に、VSTR信号は“0”となり、それ以外は“1”と
なりHIT信号を初期化する。また、CCL信号は、V
S信号の立ち上がり時からt1区間“0”、t2区間
“1”を繰り返す。CCL信号が“0”であるt1区間
では、図46のカウンタ116は、0000/HEX〜3F
FF/HEXまでのカウントを行う。一方、CCL信号が
“0”であるために、カウンタ116のカウント出力は
セレクタ117、トライステートゲート127を経て、
SRAM136〜139のアドレスへ供給される。ま
た、ANDゲート132〜135の入力のCCL信号が
“0”であるため、4つのSRAMのCS端子はすべて
“0”となり、4つのSRAMが同時にアクセスされ
る。
In FIG. 66, the VS signal is a signal which becomes "1" in the image forming section. At the rising edge of the VS signal, the VSTR signal becomes "0", and otherwise it becomes "1" and the HIT signal is initialized. Turn into. The CCL signal is V
The t1 section “0” and the t2 section “1” are repeated from the rising edge of the S signal. In the t1 section in which the CCL signal is “0”, the counter 116 of FIG. 46 displays 0000 / HEX to 3F.
Count up to FF / HEX. On the other hand, since the CCL signal is “0”, the count output of the counter 116 passes through the selector 117 and the tri-state gate 127,
It is supplied to the addresses of the SRAMs 136 to 139. Further, since the CCL signals input to the AND gates 132 to 135 are "0", the CS terminals of the four SRAMs are all "0", and the four SRAMs are simultaneously accessed.

【0234】また、図65のANDゲート3608にも
CCL信号は供給されており、SRAMへの出力RI信
号はすべて“0”となる。一方、SRAM制御回路12
9は図66の401に示す様にRWE信号を発生するた
め、4つのSRAMの各アドレスにはすべて“0”が書
き込まれ、初期化が成される。SRAMの初期化が終了
するとCCL信号は“1”となり、前述の通常の判定動
作に移り、t2区間経過後に再び初期化がなされ、これ
を繰り返す。 (主走査及び副走査の分割)一方、前述の図65に示す
カウンタ群3620は、図71に示される制御信号GE
NA,GENB,GENC,GENDによって制御され
るが、前述のCCL信号との関連を図73にて説明す
る。
The CCL signal is also supplied to the AND gate 3608 shown in FIG. 65, and the RI signals output to the SRAM are all "0". On the other hand, the SRAM control circuit 12
Since 9 generates the RWE signal as indicated by 401 in FIG. 66, "0" is written in all addresses of the four SRAMs to complete initialization. When the initialization of the SRAM is completed, the CCL signal becomes "1", the above-described normal determination operation is started, the initialization is performed again after the elapse of the period t2, and this is repeated. On the other hand, the counter group 3620 shown in FIG. 65 described above has the control signal GE shown in FIG. 71.
It is controlled by NA, GENB, GENC, and GEN, and the relationship with the above-mentioned CCL signal will be described with reference to FIG.

【0235】図73において、カウンタ群3620は、
主走査を5901,5902,5903,5904に示
す区間に分割して、前記CEN信号を独立にカウント
し、その4つのカウント結果の最大値を出力する。尚、
203はプラテンガラス、204は原稿である。一方、
副走査方向にはCCL信号で分割され、たとえば590
5,5906,5907,5908の様に分割され、各
々でカウントし、それらの最大値がラッチされるわけで
ある。例えば、主走査が5902、副走査が5906で
示される区間は5909に示される領域であり、この様
な領域毎のCEN信号のカウントが行なわれる。この様
に、画像読み取り信号を主走査及び副走査(縦方向及び
横方向)に分割し、それぞれ独立に判定することで大面
積の一般原稿における誤検知を防止することができる。
In FIG. 73, the counter group 3620 is
The main scan is divided into sections 5901, 5902, 5903, 5904, the CEN signal is independently counted, and the maximum value of the four count results is output. still,
Reference numeral 203 is a platen glass, and 204 is a document. on the other hand,
It is divided by the CCL signal in the sub-scanning direction.
5, 5906, 5907, 5908 are divided, each is counted, and their maximum values are latched. For example, the section indicated by 5902 for the main scan and 5906 for the sub-scan is the area indicated by 5909, and the CEN signal is counted for each such area. In this way, the image reading signal is divided into main scanning and sub-scanning (vertical direction and horizontal direction), and the determination is made independently of each other, so that erroneous detection in a large-area general document can be prevented.

【0236】[画像処理モードとID読み取りモード]
本実施例における装置は、画像処理モードとID読み取
りモードの2つのモードを有する。画像処理モードは装
置が通常の画像処理を行い、ROM1(101)、RO
M2(108)及びROM3(109)は、特定原稿の
有無を判定するためのテーブルとして用いられる。ID
読み取りモードにおいては、ROM1(101)、RO
M2(108)及びROM3(109)の最上位アドレ
スに予め保持されているそれぞれのIDを読み出す。各
モードにおけるROMの制御は、RID信号、PSEL
信号によっておこなわれる。
[Image processing mode and ID reading mode]
The apparatus in this embodiment has two modes, an image processing mode and an ID reading mode. In the image processing mode, the device performs normal image processing, and the ROM1 (101), RO
The M2 (108) and the ROM3 (109) are used as a table for determining the presence / absence of a specific document. ID
In the read mode, ROM1 (101), RO
The respective IDs held in advance at the highest addresses of M2 (108) and ROM3 (109) are read out. ROM control in each mode is performed by RID signal, PSEL
It is done by a signal.

【0237】上述した表2にROM2(108)及びR
OM3(109)の各アドレスに保持されている保持内
容と、そのアクセスされる条件を示す。先ず、画像処理
モードにおいては、CPU311によってRID信号
は”0”にセットされ、ROM2(108)及びROM
3(109)の上位アドレス2ビットには、バンク切り
換え手段118によるPSEL信号が入力され、下位ア
ドレス15ビットには及びシリアルパラレル変換回路よ
りの出力R''、G''、B''信号が入力される。
ROM 2 (108) and R in Table 2 described above
The contents held in each address of the OM3 (109) and the conditions for accessing the contents are shown. First, in the image processing mode, the RID signal is set to "0" by the CPU 311, and the ROM 2 (108) and the ROM
The PSEL signal by the bank switching means 118 is input to the upper 2 bits of 3 (109), and the output R ″, G ″, B ″ signals from the serial-parallel conversion circuit are input to the lower 15 bits. Is entered.

【0238】一方、ID読み取りモードの場合には、図
46において、CPU311はRID信号を“1”にす
る。この時、トライステートゲート119及び145の
出力はハイインピーダンスとなり、プルアップ抵抗12
0及び146によってROM3(109)、ROM2
(108)及びROM1(101)のアドレスは全て
“1”となる。
On the other hand, in the ID reading mode, the CPU 311 sets the RID signal to "1" in FIG. At this time, the outputs of the tri-state gates 119 and 145 become high impedance, and the pull-up resistor 12
ROM3 (109), ROM2 by 0 and 146
The addresses of (108) and ROM1 (101) are all "1".

【0239】この時、ROM2(108)及びROM3
(109)のデータ出力は、最上位アドレスである3FFF
F 番地に保持されている内容を出力する。この最上位ア
ドレスのデータ下位8ビットには、ROMのIDが予め
保持されており、ROM2−ID及びROM3- IDと
してCPU311に読み込まれる。また、ROM1(1
01)のデータ出力は、最上位アドレスであるFF番地に
保持されている内容を出力する。この最上位アドレスの
データ8ビットには、ROMのIDが予め保持されてお
り、ROM1−IDとしてCPU311に読み込まれ
る。
At this time, ROM2 (108) and ROM3
The data output of (109) is 3FFF which is the highest address.
Output the contents stored in address F. A ROM ID is held in advance in the lower 8 bits of the data of the highest address, and is read by the CPU 311 as ROM2-ID and ROM3-ID. In addition, ROM1 (1
The data output of 01) outputs the contents held in the address FF which is the highest address. The ROM ID is held in advance in the 8 bits of the data of the highest address, and is read by the CPU 311 as ROM1-ID.

【0240】ここで、IDは8ビットのコードである
が、“00/HEX”及び“FF/HEX”以外のコードを用い
る。その理由は、ROM1(101)、ROM2(10
8)及びROM3(109)を意図的に取り外された場
合、あるいはROM1(101)、ROM2(108)
及びROM3(109)が故障している場合、あるいは
ROM1(101)、ROM2(108)及びROM3
(109)が適でないROMに交換された場合等には、
8ビットすべてが“0”である“00/HEX”や8ビット
がすべて“1”である“FF/HEX”の値が読まれる可能
性が非常に高いからである。
Here, although the ID is an 8-bit code, a code other than "00 / HEX" and "FF / HEX" is used. The reason is that ROM1 (101), ROM2 (10
8) and ROM3 (109) are intentionally removed, or ROM1 (101), ROM2 (108)
And ROM3 (109) is defective, or ROM1 (101), ROM2 (108) and ROM3
If (109) is replaced with an inappropriate ROM,
This is because it is very likely that the value of “00 / HEX” in which all 8 bits are “0” or the value of “FF / HEX” in which all 8 bits are “1” will be read.

【0241】ここで特的なこととしては、画像処理モー
ドの場合の場合にはROM2(108)及びROM3
(109)の00000番地から37FFF番地がアク
セスされ、ROMのID読み取りモードにおいては3F
FFF番地がアクセスされ、重複のない制御が行われて
いることである。 [ID読み取り動作]図74に本実施例のID読み取り
モードにおける制御フローチャートを示す。
Here, the special thing is that in the case of the image processing mode, ROM2 (108) and ROM3
37FFF address is accessed from 00000 address of (109), 3F in the ID reading mode of ROM
That is, the FFF address is accessed and control is performed without duplication. [ID Reading Operation] FIG. 74 shows a control flowchart in the ID reading mode of this embodiment.

【0242】先ず4101においてRIDに“1”をセ
ットする。これにより、前述の様にROM1(101)
及びROM2(108)のアドレスは最上位アドレスに
セットされ、そのアドレスに予め保持してあるID(以
下ROM−ID)を読み込むことができる。続く410
2においてROM1−IDを読み込む。そして4103
においてもしROM1−IDが“00/H”であればR
OM1(101)もしくはその周辺回路の未実装か故障
あるいは悪意の改造と判断し、装置の動作を停止する。
同様に、4104においてもしROM1−IDが“FF
/H”である場合も、同様の装置の動作を停止する。
First, at 4101, RID is set to "1". As a result, as described above, the ROM1 (101)
The address of the ROM 2 (108) is set to the highest address, and the ID (hereinafter ROM-ID) held in advance at that address can be read. Continued 410
In step 2, ROM1-ID is read. And 4103
If ROM1-ID is "00 / H", then R
It is determined that the OM1 (101) or its peripheral circuit is not mounted, has a failure, or is maliciously modified, and stops the operation of the device.
Similarly, in 4104, if ROM1-ID is "FF
In the case of / H ", the operation of the similar device is stopped.

【0243】更に4105において、ROM2−IDを
読み込む。そして4106において、もしROM2−I
Dが“00/H”であればROM2(108)もしくは
その周辺回路の未実装か故障あるいは悪意の改造と判断
し、装置の動作を停止する。同様に、4107において
もしROM2−IDが“FF/H”である場合も、同様
の装置の動作を停止する。
Further, at 4105, the ROM2-ID is read. Then, at 4106, if ROM2-I
If D is "00 / H", it is determined that the ROM 2 (108) or its peripheral circuit is not mounted, has a failure, or is maliciously modified, and the operation of the apparatus is stopped. Similarly, in ROM 4107, if the ROM2-ID is "FF / H", the operation of the same device is stopped.

【0244】更に4108においてROM3−IDを読
み込み、4109においてもしROM3−IDが“00
/H”であれば、ROM3(109)もしくはその周辺
回路の未実装か故障あるいは悪意の改造と判断し、装置
の動作を停止する。同様に、4110においてもしRO
M3−IDが“FF/H”である場合も、同様の装置の
動作を停止する。
Further, the ROM3-ID is read in 4108, and if the ROM3-ID is "00" in 4109.
If it is "/ H", it is determined that the ROM 3 (109) or its peripheral circuit is not mounted, is out of order, or is maliciously modified, and the operation of the device is stopped.
When the M3-ID is "FF / H", the operation of the same device is stopped.

【0245】さらに、4111においてROM1- ID
とROM2- IDROM3- IDが3つとも同一のもの
でなければ、ROM1、ROM2及びROM3もしくは
その周辺回路の未実装か故障あるいは悪意の改造と判断
し、装置の動作を停止する。なお、以上に示す各フリッ
プフロップ匂いて、特に指示の無いフリップフロップに
ついてはクロック入力としてCLK信号を入力する。
Further, in 4111, ROM1-ID
And ROM2-ID ROM3-If all three IDs are not the same, it is determined that the ROM1, ROM2, and ROM3 or their peripheral circuits are not mounted, have a failure, or are maliciously modified, and the operation of the device is stopped. Note that the CLK signal is input as a clock input to each of the flip-flops described above, and for the flip-flops that have no particular instruction.

【0246】以上説明した様に本実施例によれば、特定
原稿の有無を判定する画像処理装置において、基準とな
る校正様の原稿(基準白色板)を読み込み、画像読み取
り手段の特性のばらつきを校正するにあたり、プラテン
ガラス上の複数箇所において前記校正用の基準白色板を
読み込むことにより、装置間の特性ばらつきを補正する
と同時に、装置の読み取り部におけるプラテンガラス上
の読み取り位置によるばらつきに起因する補正誤差を有
効に補正することができる。なお、本発明は、複数の機
器から構成されるシステムに適用しても、1つの機器か
ら成る装置に適用しても良い。また、本発明はシステム
或いは装置にプログラムを供給することによって達成さ
れる場合にも適用できることはいうまでもない。
As described above, according to this embodiment, in the image processing apparatus for determining the presence / absence of a specific original, a calibration-like original (reference white plate) as a reference is read and variations in the characteristics of the image reading means are detected. When calibrating, the reference white plate for calibration is read at multiple points on the platen glass to correct the characteristic variations between the devices, and at the same time, the correction due to the variations due to the reading position on the platen glass in the reading section of the device. The error can be effectively corrected. The present invention may be applied to a system including a plurality of devices or an apparatus including a single device. Further, it goes without saying that the present invention can also be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0247】[0247]

【発明の効果】以上説明した様に本発明によれば、装置
間の特性ばらつきを補正すると同時に、装置の読み取り
手段の読み取り位置毎の読み取り誤差をも有効に補正す
ることができる。
As described above, according to the present invention, it is possible to correct the characteristic variation between the devices and also effectively correct the reading error for each reading position of the reading means of the device.

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

【図1】本発明に係る一実施例の装置概観図である。FIG. 1 is a schematic view of an apparatus according to an embodiment of the present invention.

【図2】図1に示すイメージスキャナの画像処理部の構
成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of an image processing unit of the image scanner shown in FIG.

【図3】本実施例における同期信号のタイミングを示す
タイミングチャートである。
FIG. 3 is a timing chart showing the timing of a synchronization signal in this embodiment.

【図4】4×4の画素ブロックを説明するための図であ
る。
FIG. 4 is a diagram for explaining a 4 × 4 pixel block.

【図5】図2に示す判定回路の詳細構成を示すブロック
図である。
5 is a block diagram showing a detailed configuration of a determination circuit shown in FIG.

【図6】図5に示す分周回路の詳細構成を示すブロック
図である。
6 is a block diagram showing a detailed configuration of a frequency dividing circuit shown in FIG.

【図7】図5に示す画像特徴抽出回路の詳細構成を示す
ブロック図である。
7 is a block diagram showing a detailed configuration of an image feature extraction circuit shown in FIG.

【図8】図7に示すND回路の詳細構成を示すブロック
図である。
8 is a block diagram showing a detailed configuration of the ND circuit shown in FIG. 7.

【図9】図7に示す網点除去回路の詳細構成を示すブロ
ック図である。
9 is a block diagram showing a detailed configuration of a halftone dot removal circuit shown in FIG. 7.

【図10】図7に示す網点除去回路の詳細構成を示すブ
ロック図である。
10 is a block diagram showing a detailed configuration of a halftone dot removing circuit shown in FIG.

【図11】図7に示す網点除去回路で用いられる画素位
置の関係を示す図である。
11 is a diagram showing a relationship between pixel positions used in the halftone dot removal circuit shown in FIG.

【図12】図7に示す網点除去回路の動作原理を説明す
るための図である。
FIG. 12 is a diagram for explaining the operation principle of the halftone dot removal circuit shown in FIG. 7.

【図13】図7に示す線画強調回路の詳細構成を示すブ
ロック図である。
13 is a block diagram showing a detailed configuration of the line drawing emphasis circuit shown in FIG. 7. FIG.

【図14】図7に示す線画強調回路の詳細構成を示すブ
ロック図である。
14 is a block diagram showing a detailed configuration of the line drawing emphasis circuit shown in FIG. 7. FIG.

【図15】図7に示す線画強調回路の動作原理を説明す
るための図である。
FIG. 15 is a diagram for explaining the operation principle of the line drawing emphasis circuit shown in FIG. 7.

【図16】図7に示す特徴抽出部の詳細構成を示すブロ
ック図である。
16 is a block diagram showing a detailed configuration of a feature extraction unit shown in FIG. 7.

【図17】図7に示す特徴抽出部の詳細構成を示すブロ
ック図である。
17 is a block diagram showing a detailed configuration of a feature extraction unit shown in FIG. 7.

【図18】図7に示す特徴抽出部の詳細構成を示すブロ
ック図である。
18 is a block diagram showing a detailed configuration of a feature extraction unit shown in FIG.

【図19】図7に示す特徴抽出部の詳細構成を示すブロ
ック図である。
19 is a block diagram showing a detailed configuration of a feature extraction unit shown in FIG.

【図20】図7に示す特徴抽出部の詳細構成を示すブロ
ック図である。
20 is a block diagram illustrating a detailed configuration of a feature extraction unit illustrated in FIG.

【図21】図7に示す特徴抽出部の詳細構成を示すブロ
ック図である。
FIG. 21 is a block diagram showing a detailed configuration of a feature extraction unit shown in FIG. 7.

【図22】図7に示す特徴抽出部で用いられる画素位置
の関係を示す図である。
22 is a diagram showing a relationship between pixel positions used in the feature extracting unit shown in FIG. 7.

【図23】図7に示す特徴抽出部の動作原理を説明する
ための図である。
FIG. 23 is a diagram for explaining the operation principle of the feature extraction unit shown in FIG. 7.

【図24】図7に示す特徴抽出部の動作原理を説明する
ための図である。
FIG. 24 is a diagram for explaining the operation principle of the feature extraction unit shown in FIG. 7.

【図25】図7に示す特徴抽出部の動作原理を説明する
ための図である。
FIG. 25 is a diagram for explaining the operation principle of the feature extraction unit shown in FIG. 7.

【図26】図7に示す特徴抽出部の動作原理を説明する
ための図である。
FIG. 26 is a diagram for explaining the operation principle of the feature extraction unit shown in FIG. 7.

【図27】図7に示す後処理部の詳細構成を示すブロッ
ク図である。
27 is a block diagram showing a detailed configuration of a post-processing unit shown in FIG. 7.

【図28】図27に示す線画部信号後処理回路の詳細構
成を示すブロック図である。
28 is a block diagram showing a detailed configuration of the line drawing portion signal post-processing circuit shown in FIG. 27. FIG.

【図29】図27に示す線画部信号後処理回路の詳細構
成を示すブロック図である。
29 is a block diagram showing a detailed configuration of the line drawing portion signal post-processing circuit shown in FIG. 27. FIG.

【図30】図27に示す線画部信号後処理回路の詳細構
成を示すブロック図である。
30 is a block diagram showing a detailed configuration of the line drawing portion signal post-processing circuit shown in FIG. 27.

【図31】図27に示す線画部信号後処理回路の詳細構
成を示すブロック図である。
31 is a block diagram showing a detailed configuration of a line drawing portion signal post-processing circuit shown in FIG. 27.

【図32】図27に示す線画部信号後処理回路のFRS
T信号を説明する図である。
FIG. 32 is an FRS of the line drawing portion signal post-processing circuit shown in FIG. 27.
It is a figure explaining T signal.

【図33】図27に示す線画部信号後処理回路の動作を
説明するための図である。
FIG. 33 is a diagram for explaining the operation of the line drawing portion signal post-processing circuit shown in FIG. 27.

【図34】従来の線画部判定回路の例を示す図である。FIG. 34 is a diagram showing an example of a conventional line drawing portion determination circuit.

【図35】図27に示すエッジ部信号後処理回路の詳細
構成を示すブロック図である。
35 is a block diagram showing a detailed configuration of the edge signal post-processing circuit shown in FIG. 27.

【図36】図27に示すエッジ部信号後処理回路のエッ
ジ部信号パターンの例を示す図である。
FIG. 36 is a diagram showing an example of an edge signal pattern of the edge signal post-processing circuit shown in FIG. 27.

【図37】図7に示す選択回路の詳細構成を示すブロッ
ク図である。
37 is a block diagram showing a detailed configuration of the selection circuit shown in FIG. 7. FIG.

【図38】図7に示す選択回路の詳細構成を示すブロッ
ク図である。
38 is a block diagram showing a detailed configuration of the selection circuit shown in FIG. 7. FIG.

【図39】図7に示す選択回路の詳細構成を示すブロッ
ク図である。
39 is a block diagram showing a detailed configuration of the selection circuit shown in FIG. 7. FIG.

【図40】図37〜図39に示す選択回路の動作タイミ
ングチャートである。
FIG. 40 is an operation timing chart of the selection circuit shown in FIGS. 37 to 39.

【図41】図5に示す間引き回路の詳細構成を示すブロ
ック図である。
41 is a block diagram showing a detailed configuration of the thinning circuit shown in FIG.

【図42】図41に示す間引き回路の動作タイミングチ
ャートである。
42 is an operation timing chart of the thinning circuit shown in FIG. 41. FIG.

【図43】図5に示すスムージング回路の詳細構成を示
すブロック図である。
43 is a block diagram showing a detailed configuration of the smoothing circuit shown in FIG.

【図44】図43に示すスムージング回路の動作タイミ
ングチャートである。
44 is an operation timing chart of the smoothing circuit shown in FIG. 43.

【図45】図43に示すスムージング回路の動作タイミ
ングチャートである。
45 is an operation timing chart of the smoothing circuit shown in FIG. 43.

【図46】図5に示す総合判定回路の詳細構成を示すブ
ロック図である。
46 is a block diagram showing a detailed configuration of the comprehensive determination circuit shown in FIG.

【図47】特定原稿の色味分布例を示す図である。FIG. 47 is a diagram showing an example of color distribution of a specific original.

【図48】特定原稿の色味分布例を示す図である。FIG. 48 is a diagram showing an example of color distribution of a specific original.

【図49】図46に示すバンク切り換え手段の詳細構成
を示すブロック図である。
49 is a block diagram showing a detailed configuration of the bank switching means shown in FIG. 46.

【図50】図49に示すバンク切り換え手段の動作タイ
ミングチャートである。
50 is an operation timing chart of the bank switching means shown in FIG. 49.

【図51】図46に示す積分回路1の詳細構成を示すブ
ロック図である。
51 is a block diagram showing a detailed configuration of the integrating circuit 1 shown in FIG. 46. FIG.

【図52】図51に示すシリアルパラレル変換器の詳細
構成を示すブロック図である。
52 is a block diagram showing a detailed configuration of the serial-parallel converter shown in FIG. 51. FIG.

【図53】図52に示すシリアルパラレル変換器のタイ
ミングチャートである。
53 is a timing chart of the serial-parallel converter shown in FIG. 52.

【図54】図51に示すIIRの詳細構成を示すブロッ
ク図である。
54 is a block diagram showing a detailed configuration of the IIR shown in FIG. 51.

【図55】図54に示すIIRによる処理結果例を示す
図である。
55 is a diagram showing an example of the processing result by the IIR shown in FIG. 54.

【図56】図54に示すIIRによる処理結果例を示す
図である。
56 is a diagram showing an example of the processing result by the IIR shown in FIG. 54.

【図57】図54に示すIIRによる処理結果例を示す
図である。
57 is a diagram showing an example of the processing result by the IIR shown in FIG. 54.

【図58】図54に示す平均値回路の詳細構成を示すブ
ロック図である。
58 is a block diagram showing a detailed configuration of the average value circuit shown in FIG. 54.

【図59】図58に示す平均値回路の動作タイミングチ
ャートである。
FIG. 59 is an operation timing chart of the average value circuit shown in FIG. 58.

【図60】図51に示すパラレルシリアル変換器の詳細
構成を示すブロック図である。
FIG. 60 is a block diagram showing a detailed configuration of the parallel / serial converter shown in FIG. 51.

【図61】図60に示すパラレルシリアル変換器の動作
タイミングチャートである。
FIG. 61 is an operation timing chart of the parallel-serial converter shown in FIG. 60.

【図62】図46に示す積分回路2の詳細構成を示すブ
ロック図である。
62 is a block diagram showing a detailed configuration of the integrating circuit 2 shown in FIG. 46. FIG.

【図63】図62に示すIIRの詳細構成を示すブロッ
ク図である。
63 is a block diagram showing a detailed configuration of the IIR shown in FIG. 62.

【図64】図63に示すIIRの動作タイミングチャー
トである。
64 is an operation timing chart of the IIR shown in FIG. 63.

【図65】図46に示す体積率判定回路の詳細構成を示
すブロック図である。
65 is a block diagram showing a detailed configuration of the volume ratio determination circuit shown in FIG. 46. FIG.

【図66】SRAM制御のタイミングチャートである。FIG. 66 is a timing chart of SRAM control.

【図67】図65に示すカウンタ回路の詳細構成を示す
ブロック図である。
67 is a block diagram showing a detailed configuration of the counter circuit shown in FIG. 65.

【図68】図65に示すシリアルパラレル変換器の詳細
構成を示すブロック図である。
68 is a block diagram showing a detailed configuration of the serial-parallel converter shown in FIG. 65. FIG.

【図69】図68に示すシリアルパラレル変換器の動作
タイミングチャートである。
69 is an operation timing chart of the serial-parallel converter shown in FIG. 68.

【図70】図65に示すカウンタ群3620の詳細構成を示
すブロック図である。
70 is a block diagram showing a detailed configuration of a counter group 3620 shown in FIG. 65.

【図71】図70に示すカウンタ群3620の制御タイミン
グチャートである。
71 is a control timing chart of the counter group 3620 shown in FIG. 70.

【図72】図65に示すHIT信号生成器の詳細構成を
示すブロック図である。
72 is a block diagram showing a detailed configuration of the HIT signal generator shown in FIG. 65. FIG.

【図73】本実施例における主走査及び副走査の分割を
示す図である。
FIG. 73 is a diagram showing division of main scanning and sub-scanning in this embodiment.

【図74】本実施例におけるROMのIDチェックのフ
ローチャートである。
FIG. 74 is a flow chart of ROM ID check in the present embodiment.

【図75】本実施例における試験用原稿の例を示す図で
ある。
FIG. 75 is a diagram showing an example of a test document in this example.

【図76】本実施例装置における動作処理の概要を示す
フローチャートである。
FIG. 76 is a flowchart showing an outline of operation processing in the device of the present embodiment.

【図77】本実施例装置における操作部の例を示す図で
ある。
77 is a diagram showing an example of an operation unit in the device of the present embodiment. FIG.

【図78】本実施例画像読み取り装置における画像読み
取り特性の校正方法を説明するための図である。
FIG. 78 is a diagram for explaining a method of calibrating image reading characteristics in the image reading apparatus of this embodiment.

【図79】従来の画像読み取り装置における画像読み取
り特性の校正方法を説明するための図である。
FIG. 79 is a diagram for explaining a method of calibrating the image reading characteristic in the conventional image reading apparatus.

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

104 画像特徴検出回路 105 スムージング回路 106 間引き回路 110 総合判定回路 118 バンク切り換え手段 101,107,108, ROM 136,137,138,139 SRAM 122,123 積分回路 148 計数レジスタ 201 イメージスキャナー 202 プリンター 210 CCD 309 判定回路 310 複写禁止手段 311 CPU 312- 1,312- 2,312- 3 校正手段 651 校正用標準白色板 104 image feature detection circuit 105 smoothing circuit 106 thinning circuit 110 comprehensive judgment circuit 118 bank switching means 101, 107, 108, ROM 136, 137, 138, 139 SRAM 122, 123 integration circuit 148 counting register 201 image scanner 202 printer 210 CCD 309 Judgment circuit 310 Copy prohibition means 311 CPU 312-1, 312-2, 312-3 Calibration means 651 Standard white plate for calibration

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/64 400 C (72)発明者 鈴木 康道 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 石本 高一 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内 (72)発明者 青柳 剛 東京都大田区下丸子3丁目30番2号 キヤ ノン株式会社内─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 6 Identification number Internal reference number FI Technical indication location G06F 15/64 400 C (72) Inventor Yasumichi 3-30-2 Shimomaruko, Ota-ku, Tokyo Kiya Non-Incorporated (72) Inventor Koichi Ishimoto 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. (72) Inventor Go Aoyagi 3-30-2 Shimomaruko, Ota-ku, Tokyo Canon Inc. Within

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 原稿画像を読み取る画像読み取り手段
と、 前記画像読み取り手段よりの読み取り画像信号を電気的
に処理する画像信号処理手段と、 前記画像信号処理手段による画像信号の処理において前
記画像信号の特徴と予め登録された特定原稿の有無を判
定する判定手段と、 濃度管理された標準原稿を読み込み、読み取り結果に基
づいて前記画像読み取り手段のもつ読み取り特性のばら
つきを校正する校正手段とを備え、 前記校正手段は前記画像読み取り手段の読み取り範囲の
中の複数箇所で前記標準原稿を読み込むことによって前
記校正を行なうことを特徴とする画像処理装置。
1. An image reading unit for reading a document image, an image signal processing unit for electrically processing a read image signal from the image reading unit, and an image signal processing unit for processing the image signal by the image signal processing unit. A determination unit that determines the presence or absence of a characteristic and a specific document registered in advance; and a calibration unit that reads a standard document whose density is controlled and calibrates variations in the reading characteristics of the image reading unit based on the reading result, The image processing apparatus, wherein the proofreading unit performs the proofreading by reading the standard original document at a plurality of locations within a reading range of the image reading unit.
JP5330444A 1993-12-27 1993-12-27 Picture processor Withdrawn JPH07193711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5330444A JPH07193711A (en) 1993-12-27 1993-12-27 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5330444A JPH07193711A (en) 1993-12-27 1993-12-27 Picture processor

Publications (1)

Publication Number Publication Date
JPH07193711A true JPH07193711A (en) 1995-07-28

Family

ID=18232691

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5330444A Withdrawn JPH07193711A (en) 1993-12-27 1993-12-27 Picture processor

Country Status (1)

Country Link
JP (1) JPH07193711A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7602532B2 (en) 2004-03-09 2009-10-13 Seiko Epson Corporation Highly accurate and rapid scanning by a simple scanning device and color correction technology for a printing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7602532B2 (en) 2004-03-09 2009-10-13 Seiko Epson Corporation Highly accurate and rapid scanning by a simple scanning device and color correction technology for a printing device

Similar Documents

Publication Publication Date Title
US5633952A (en) Identification of a particular color image using color distribution, and circuitry for same
US6504949B2 (en) Image processing apparatus and method
JP2614369B2 (en) Image processing device
JPH09274660A (en) Method, device for recognizing image, copy machine mounting the same and scanner
JPH05244414A (en) Picture processor
JP2994656B2 (en) Image processing device
US5832112A (en) Image processing apparatus capable of detecting specific originals
JP3535552B2 (en) Image processing apparatus and image processing method
JPH07193711A (en) Picture processor
US6346989B1 (en) Image processing apparatus and method
JPH07203193A (en) Image processing unit
JP3618776B2 (en) Image processing apparatus and method
JPH07193707A (en) Picture processor
US5424852A (en) Image processing apparatus
JP3183787B2 (en) Halftone area determination device
US5781713A (en) Image data processing method and image processing device
JP3210031B2 (en) Image processing apparatus and image processing method
JP3178533B2 (en) Control method
JPH04207465A (en) Image processor
JPH11220618A (en) Color picture processor and color picture processing method
JP3564216B2 (en) Image processing device
JP3151993B2 (en) Image processing apparatus and copier equipped with the same
JP3282262B2 (en) Image processing device
JP3245154B2 (en) Image processing device
JPH04302268A (en) Image processor

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010306