JP2985303B2 - Recording device area recognition method - Google Patents

Recording device area recognition method

Info

Publication number
JP2985303B2
JP2985303B2 JP3008674A JP867491A JP2985303B2 JP 2985303 B2 JP2985303 B2 JP 2985303B2 JP 3008674 A JP3008674 A JP 3008674A JP 867491 A JP867491 A JP 867491A JP 2985303 B2 JP2985303 B2 JP 2985303B2
Authority
JP
Japan
Prior art keywords
scan
area
determination
color
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP3008674A
Other languages
Japanese (ja)
Other versions
JPH05328093A (en
Inventor
藤田有紀
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP3008674A priority Critical patent/JP2985303B2/en
Publication of JPH05328093A publication Critical patent/JPH05328093A/en
Application granted granted Critical
Publication of JP2985303B2 publication Critical patent/JP2985303B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明はデジタル複写機、ファク
シミリ等の記録装置における領域認識方式に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an area recognizing method in a recording apparatus such as a digital copying machine and a facsimile.

【0002】[0002]

【従来の技術】デジタル複写機、ファクス々の画像処理
装置における画像読取り系の特に走査部の具体的な構造
は例えば、図24(a)に示すようになっている。
2. Description of the Related Art A specific structure of an image reading system in a digital copier or a facsimile image processing apparatus, particularly, a scanning unit is as shown in FIG.

【0003】これは、原稿13が載置されるプラテン1
2の下方部に光源15とロッドレンズアレイ等を含む光
導部材16とCCD等の一次元のイメージセンサ10が
配置され、これらが一体となって走査部が構成されてい
る。そして、原稿13の上部からプラテンカバー14を
載せた状態で走査部が平行移動(図中矢印方向)して原
稿の光学的走査を行なう過程で、イメージセンサ10か
ら出力される受光光量に対応したセル単位の検出信号に
基づいて原稿13に描かれた濃淡像、線図、文字等に対
応した所定画素単位の画像情報が生成される。このよう
に、原稿を光学的に走査して読取って得られた画素情報
は画素単位に補正処理、各種の画素編集処理等を順次経
て、例えば、プリント、ディスプレイ装置等での画像再
現される。
[0003] This is a platen 1 on which a document 13 is placed.
A light source 15, a light guide member 16 including a rod lens array and the like, and a one-dimensional image sensor 10 such as a CCD are arranged below the lower part 2, and these constitute an integral scanning unit. In a process in which the scanning unit moves in parallel (in the direction of the arrow in the drawing) while the platen cover 14 is placed from above the document 13 to optically scan the document, the scanning unit corresponds to the amount of received light output from the image sensor 10. Based on the detection signal of each cell, image information of a predetermined pixel unit corresponding to a grayscale image, a diagram, a character, or the like drawn on the document 13 is generated. In this way, pixel information obtained by optically scanning and reading a document is sequentially subjected to correction processing, various pixel editing processing, and the like for each pixel, and then, for example, an image is reproduced on a print or display device.

【0004】この種の画像処理装置では、図24(b)
に示すように、原稿13内に描かれた画像のうち、例え
ばその内側の一点を指定した閉ループ画像Lの当該内側
領域Ei(斜線部分)だけについて特別の処理、例えば
網かけ、着色等の処理を行うものがあるが、これには、
画素情報を読取った画素が今指定された閉ループLの内
側か外側かを判定するための画像閉ループ領域の認識機
能が必要となる。このため、例えば内側の一点を指定し
ただけて閉ループL領域全体を認識する機能は、閉ルー
プをマーカにより描き、その閉ループ領域を認識する機
能(AR機能:Area Recognition)と
の比較でのより進んだ機能として、例えばADAR機能
(Advanced Area Recognitio
n)と呼ばれ、従来次のようにして実現されている。
In this type of image processing apparatus, FIG.
As shown in (1), among the images drawn in the document 13, special processing is performed only on the inner area Ei (hatched portion) of the closed loop image L in which one point inside is specified, for example, processing such as shading and coloring is performed. That do
A function of recognizing an image closed loop area for determining whether the pixel from which the pixel information is read is inside or outside the currently specified closed loop L is required. For this reason, for example, the function of recognizing the entire closed loop L region only by designating one inner point is more advanced than the function of drawing a closed loop with a marker and recognizing the closed loop region (AR function: Area Recognition). As the function, for example, an ADAR function (Advanced Area Recognition)
n), and is conventionally realized as follows.

【0005】図25に示すように、プラテン12の原稿
載置許容領域の各位置に対応した板状入力パッドを有し
て座標入力装置18(エディタパッド)のレジスト位置
(プラテン12上のレジスト位置に対応)に原稿13を
セットし、この状態で原稿13の閉ループ画像Lの内側
領域に対応した入力パッドの適当な位置をエディタペン
19でのペンタッチにて指定入力する。すると、この座
標入力装置18から入力パッド上での指定入力位置の情
報が画像処理装置に伝送され、画像処理装置は対応する
プラテン12の原稿載置許容領域での指定位置を認識す
る。この状態で、原稿13を座標入力装置18からプラ
テン12上に移し換え、上記走査系が当該原稿走査を行
なって得られた画像情報(例えば、ドットデータ)をペ
ージメモリに格納する。そして、その画像ドットデータ
を展開したページメモリ上の上記指定位置を起点として
順次各ドット毎に領域判定を行うと共に、閉ループL内
と判定されたドットについては特別の処理、例えば、着
色処理(白ドットを黒ドットに変換する)をページメモ
リ上の処理として行なう。具体的には、例えは、CRT
C−LSI(例えば、日立社製品 HD 63484)
等によって行なわれる。
As shown in FIG. 25, a plate-like input pad corresponding to each position of the original placement allowable area of the platen 12 is provided, and a registration position of the coordinate input device 18 (editor pad) (a registration position on the platen 12) is provided. In this state, an appropriate position of the input pad corresponding to the inner region of the closed loop image L of the document 13 is designated and input by touching the pen with the editor pen 19. Then, the information of the designated input position on the input pad is transmitted from the coordinate input device 18 to the image processing device, and the image processing device recognizes the designated position of the corresponding platen 12 in the document placement allowable area. In this state, the document 13 is transferred from the coordinate input device 18 onto the platen 12, and image information (for example, dot data) obtained by performing the document scanning by the scanning system is stored in the page memory. Then, area determination is sequentially performed for each dot starting from the designated position on the page memory where the image dot data is developed, and special processing such as coloring processing (white (Conversion of dots to black dots) is performed as processing on the page memory. Specifically, for example, CRT
C-LSI (for example, Hitachi product HD 63484)
And so on.

【0006】[0006]

【発明が解決しようとする課題】ところで、CRTC−
LSIのようなCRTコントローラを使用するものは、
CPUでVRAMにデータを書き、CRTコントローラ
にコマンドを送って、例えばVRAMのマーカ色で囲ま
れた中を塗りつぶすように指示し、その指示に基づきC
RTコントローラがVRAMにアクセスしてデータを個
々に見ながら演算することにより、閉ループ内を塗りつ
ぶすようにしており、CPUがCRTコントローラにコ
マンドを送った場合、その処理が終わるまでは何もでき
ず、結果的に処理時間が多くかかってしまうという問題
があり、さらに汎用性の高い高価なCRTコントローラ
を用いるため、コストアップになってしまうという問題
があった。
However, CRTC-
Those that use a CRT controller such as an LSI
The CPU writes data to the VRAM and sends a command to the CRT controller to instruct, for example, to fill the area surrounded by the marker color of the VRAM.
The RT controller accesses the VRAM and performs calculations while viewing the data individually, thereby filling the inside of the closed loop. If the CPU sends a command to the CRT controller, nothing can be done until the processing is completed, As a result, there is a problem that it takes a long processing time, and further, there is a problem that the cost increases because an expensive CRT controller having high versatility is used.

【0007】本発明は上記課題を解決するこめのもの
で、処理時間を短縮すると共にコストの低減化を図るこ
とができる記録装置の領域認識方式を提供することを目
的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has as its object to provide an area recognition method for a recording apparatus which can reduce processing time and cost.

【0008】[0008]

【課題を解決するための手段】本発明は、図1に示すよ
うに、制御手段1により制御され、プリスキャンのフォ
ワードスキャン、プリスキャンのバックスキャン、コピ
ースキャンの各走査タイミングを発生する走査タイミン
グ発生手段2と、色分離回路で抽出された領域認識色デ
ータを取り込み、入力補正処理を行う入力処理手段3
と、取り込んだデータから領域の内と外とを判定する判
定処理手段4と、判定結果をメモリまたは後段の回路に
出力する出力処理手段5と、判定結果を記憶するメモリ
6とを備えている。
According to the present invention, as shown in FIG. 1, a scanning timing which is controlled by a control means 1 and generates respective scanning timings of a pre-scan forward scan, a pre-scan back scan and a copy scan. Generating means 2 and input processing means 3 for taking in the area recognition color data extracted by the color separation circuit and performing input correction processing
A determination processing unit 4 for determining the inside and outside of the area from the captured data; an output processing unit 5 for outputting the determination result to a memory or a subsequent circuit; and a memory 6 for storing the determination result. .

【0009】判定処理手段4はプリスキャンのフォワー
ドスキャンで領域判定を行って、結果をメモリ6にセー
ブし、プリスキャンのバックスキャンでメモリ6の内容
を読み出して、再度逆方向から判定しながらセーブし、
またコピースキャン時に再度領域認識色データを取り込
み、取り込んだデータでメモリ6の内容を補正し、領域
データとして出力する。
The judgment processing means 4 performs an area judgment by the prescan forward scan, saves the result in the memory 6, reads out the contents of the memory 6 by the prescan back scan, and saves the judgment again in the reverse direction. And
Also, at the time of copy scanning, the area recognition color data is fetched again, the contents of the memory 6 are corrected with the fetched data, and output as area data.

【0010】[0010]

【作用】本発明はプリスキャンのフォワードスキャン、
プリスキャンのバックスキャン、コピースキャンの各ス
キャンにおいて、それぞれ領域判定を行い、プリスキャ
ンのフォワードスキャンで領域認識色データを取り込ん
で判定しながら結果をメモリにセーブし、プリスキャン
のバックスキャンでメモリを再度逆方向から読み出して
判定しながら結果をセーブし、コピースキャン時に再度
領域認識色データを取り込み、取り込んだデータでメモ
リの内容を補正することにより精細な領域認識を行うよ
うにする。領域判定処理はプリスキャンとコピースキャ
ンの動作内で終了できるので、領域判定の時間を別途必
要とせず、処理時間を短縮することができると共に、C
RTコントローラのような高価な回路を必要としないた
めにコストの低減化を図ることもできる。
The present invention provides a prescan forward scan,
In each of the pre-scan back scan and copy scan, each area is determined, the area recognition color data is fetched in the pre-scan forward scan, the result is saved in the memory while the determination is made, and the memory is saved in the pre-scan back scan. The result is saved while reading and judging again from the reverse direction, the area recognition color data is fetched again at the time of copy scan, and the contents of the memory are corrected with the fetched data so that fine area recognition is performed. Since the area determination processing can be completed within the operation of the pre-scan and the copy scan, the time for the area determination is not separately required, and the processing time can be reduced.
Since an expensive circuit such as an RT controller is not required, the cost can be reduced.

【0011】[0011]

【実施例】以下本発明の実施例を説明する。Embodiments of the present invention will be described below.

【0012】図2は本発明が適用される全体の構成を示
すブロック図である。
FIG. 2 is a block diagram showing the entire configuration to which the present invention is applied.

【0013】図2において、10は原稿走査部の一次元
フルカラーセンサ、20はフルカラーセンサ10からセ
ル単位に時分割にて出力される読取り信号を所定画素単
位の色成分データ(緑:G、青:B、赤:R)に変換し
てそれらを効率的に出力するセンサインタフェース回路
であり、このフルカラーセンサ10及びセンサインタフ
ェース回路20にて画像入力部が構成されている。50
は上記センサインタフェース回路20からの各色成分デ
ータ(GBR)から画素単位に濃度情報と色情報、更に
閉ループ指定のマーカ色情報を生成するカラー分離回路
であり、256階調の濃度情報Dと色情報としてサブカ
ラー”赤”に対応したサブカラーフラグSCFとメイン
カラー”黒”に対応したメインカラーフラグMCFが生
成される。70は領域認識回路であり、この領域認識回
路70はカラー分離回路50から出力されるマーク色情
報(ARCF1、ARCF2)に基づいて、読取り画素
が当該マーカにて指定された原稿上の閉ループ画像の内
か外を判定し、その結果を当該画素単位に出力するよう
になっている。ここでの判定結果は、第1AR色マーカ
にて指定された閉ループ領域の内側を示す第1AR領域
内のARDT1、第2AR色のマーカにて指定された閉
ループ領域の内側を示す第2AR領域内ARDT2、第
1AR領域及び第2AR領域双方の外側を示す領域外A
ROUTの3種類となる。150はカラー分離回路50
からの濃度情報D及び色情報(SCF、MCF)に対し
て各種の補正及びフィルタ処理を行なう補正・フィルタ
回路、160は補正・フィルタ回路150を経た濃度情
報及び色情報(SCF、MCF)に対して拡大、縮少、
色反転等の編集、加工処理を行なう編集・加工回路であ
り、この補正・フィルタ回路150及び編集・加工回路
160においては、特に、CPU(図示略)からの領域
指定により、上記領域認識回路70からの判定情報(A
RDFT1、ARDT2、AROUT)に基づいて当該
指定領域についてのみ所定の編集、加工処理を行なう機
能を有している。
In FIG. 2, reference numeral 10 denotes a one-dimensional full-color sensor of a document scanning section; and 20, a read signal output from the full-color sensor 10 in a time-division manner in units of cells is converted into color component data (green: G, blue) in predetermined pixels. : B, red: R) and efficiently outputs them, and the full color sensor 10 and the sensor interface circuit 20 constitute an image input unit. 50
Is a color separation circuit that generates density information and color information for each pixel from each color component data (GBR) from the sensor interface circuit 20 and further generates marker color information for designating a closed loop. A sub color flag SCF corresponding to the sub color “red” and a main color flag MCF corresponding to the main color “black” are generated. Reference numeral 70 denotes an area recognizing circuit. Based on the mark color information (ARCF1 and ARCF2) output from the color separating circuit 50, the area recognizing circuit 70 has a read-out pixel of a closed loop image on the original document specified by the marker. The inside or outside is determined, and the result is output for each pixel. The determination result here is that ARDT1 in the first AR area indicating the inside of the closed loop area specified by the first AR color marker, and ARDT2 in the second AR area indicating the inside of the closed loop area specified by the second AR color marker. Outside the area A indicating the outside of both the first AR area and the second AR area
There are three types of ROUT. 150 is a color separation circuit 50
A correction / filter circuit that performs various types of correction and filter processing on the density information D and color information (SCF, MCF) from the scanner 160. The density / color information (SCF, MCF) passed through the correction / filter circuit 150 Expand, shrink,
An editing / processing circuit that performs editing and processing such as color inversion. In the correction / filter circuit 150 and the editing / processing circuit 160, the area recognizing circuit 70 is designated by an area designated by a CPU (not shown). Judgment information (A
(RDFT1, ARDT2, AROUT).

【0014】上記のようにして、補正・フィルタ回路1
50及び編集・加工回路160にて各種の処理を経た濃
度情報D及び色情報(SCF、MCF)はインタフェー
ス回路230を介して具体的な画像形成機器に供される
ようになっている。この画像形成機器としては、2色再
現を行なうレーザプリンタ240、画像送受信機270
等があり、更に、濃度情報D及び色情報はコンピュータ
280に供され、当該コンピュータ280の補助記憶装
置(磁気ディスク装置等)内に蓄えて、各種の端未装置
にて当該情報を利用するシステム態様も可能である。上
記レーザプリンタ150を接続する場合には全体として
2色複写機が構成され、画像送受信機270を接続する
場合には全体としてファクシミリが構成される。
As described above, the correction / filter circuit 1
The density information D and the color information (SCF, MCF) which have been subjected to various processes in the editing circuit 50 and the editing / processing circuit 160 are provided to specific image forming equipment via the interface circuit 230. The image forming apparatus includes a laser printer 240 for performing two-color reproduction and an image transceiver 270.
In addition, a system in which the density information D and the color information are provided to the computer 280 and stored in an auxiliary storage device (such as a magnetic disk device) of the computer 280, and the various devices use the information. Embodiments are also possible. When the laser printer 150 is connected, a two-color copying machine is configured as a whole, and when the image transceiver 270 is connected, a facsimile is configured as a whole.

【0015】編集・加工回路160との具体的な構成
は、例えば図3に示すようになっている。この例は編集
・加工回路160がメインカラー(黒)とサブカラー
(赤)の変換等の処理を行う色反転回路161、黒文字
を白抜き文字に変換等する白抜き回路190、網かけ処
理を行う網かけ回路200、メインカラー(黒)あるい
はサブカラー(赤)と白とを反転するネガ・ポジ反転回
路210により構成されており、この編集・加工回路1
60に対して画素単位に供給される濃度データD、サブ
カラーフラグSCF、メインカラーフラグMCFが各回
路で直列的に処理されるようになっている。なお、特に
その処理が必要ない場合には濃度データDに対する該当
する回路での処理は行われずそのままデータパスとな
る。
The specific configuration of the editing / processing circuit 160 is, for example, as shown in FIG. In this example, the editing / processing circuit 160 performs a process such as conversion between a main color (black) and a sub-color (red), a color inversion circuit 190 that converts black characters into white characters, and a shading process. The editing / processing circuit 1 includes a shading circuit 200 for performing the processing and a negative / positive reversing circuit 210 for reversing the main color (black) or the sub color (red) and white.
The density data D, the sub color flag SCF, and the main color flag MCF supplied for each pixel are processed in series in each circuit. If the processing is not particularly necessary, the processing for the density data D is not performed by the corresponding circuit, and the data path is used as it is.

【0016】また、編集・加工に対する他の処理回路を
編集・加工回路160に含めることも当然可能である。
このような編集・加工回路160の各処理回路(色反転
回路161、白抜き回路190、網かけ回路200、ネ
ガ・ポジ反転回路210)に対してCPU(図示せず)
から第1領域設定信号(第1AR色のマーカで指定され
た閉ループ領域)AR1、第2領域設定信号(第2AR
色のマーカで指定された閉ループ領域)AR2、および
領域外設定信号(第1AR領域および第2AR領域双方
の外側領域)AROUTが与えられている。また、領域
認識回路70からは第1領域データARDT1、第2領
域データARDT2および領域外データAROUTが各
処理回路に対して送られている。なお、領域外データA
ROUTは第1領域データARDT1および第2領域デ
ータARDT2が共に0となる時にアクティブとなる信
号として作られるものである。各処理回路ではCPUか
ら領域設定信号が入力すると、領域認識回路70からの
領域データに基づいて設定された領域のみの設定を行っ
て他の領域についてはデータをパスするようにしてい
る。
It is of course possible to include another processing circuit for editing and processing in the editing and processing circuit 160.
A CPU (not shown) for each processing circuit (the color inversion circuit 161, the whiteout circuit 190, the shaded circuit 200, and the negative / positive inversion circuit 210) of the editing / processing circuit 160 is used.
To the first area setting signal (closed loop area specified by the marker of the first AR color) AR1 and the second area setting signal (second AR
A closed loop area (AR2) specified by a color marker) and an out-of-area setting signal (outside area of both the first AR area and the second AR area) AROUT are provided. Further, the first area data ARDT1, the second area data ARDT2, and the out-of-area data AROUT are sent from the area recognition circuit 70 to each processing circuit. Note that out-of-area data A
ROUT is generated as a signal that becomes active when both the first area data ARDT1 and the second area data ARDT2 become 0. In each processing circuit, when an area setting signal is input from the CPU, only the area set based on the area data from the area recognizing circuit 70 is set, and data is passed for other areas.

【0017】図4は領域認識回路70の構成を示す図で
ある。領域認識回路70はカラー分離回路50を通して
得られる第1AR色データの入出力処理を行う入出力処
理部70−1、領域判定を行う判定処理部70−2、第
2AR色データの入出力処理を行う入出力処理部70−
3、判定処理部70−4を有し、2色のマーカを認識で
きるようになっている。また、領域認識回路70はCP
Uインタフェース75を介してCPU30で制御され、
後述するARイネーブル回路71、ラインタイミングコ
ントロール回路72、クロックタイミングコントロール
回路73、ラインカウンタ76、判定用アドレスカウン
タ74、ページバッファアドレスカウンタ77を備えて
いる。
FIG. 4 is a diagram showing the configuration of the area recognition circuit 70. The area recognition circuit 70 includes an input / output processing unit 70-1 for performing input / output processing of first AR color data obtained through the color separation circuit 50, a determination processing unit 70-2 for performing area determination, and an input / output processing of second AR color data. Input / output processing unit 70-
3. It has a determination processing unit 70-4, and can recognize markers of two colors. In addition, the area recognition circuit 70
Controlled by the CPU 30 via the U interface 75,
An AR enable circuit 71, a line timing control circuit 72, a clock timing control circuit 73, a line counter 76, a determination address counter 74, and a page buffer address counter 77, which will be described later, are provided.

【0018】入出力処理部70−1,70−3はカラー
分離回路50で分離されたAR色データをラインバッフ
ァ60に格納し、後述する入力補正を行う。また、判定
処理部70−2,70−4はラインバッファ60に書き
込まれたデータにつき、プリスキャン、フォワードスキ
ャンにおいて領域の内外を判定し、判定結果を判定用メ
モリアドレスカウンタ74で指定されたアドレスで判定
用ラインメモリ61に格納する。すなわち、フォワード
スキャンにおいて、順次判定用ラインメモリ61の内容
を読み出しつつ、1ライン前のデータ、1画素隣のデー
タを参照して判定画素についての判定処理を行ってその
結果をページバッファメモリ62に格納する。次にプリ
スキャンのバックスキャン時にページバッファメモリ6
2の内容を読み出して再度判定する。そしてコピースキ
ャン時にカラー分離回路50を通して得られたAR色デ
ータでページバッファメモリ62の内容を再度判定し、
プリスキャンで粗く判定した結果をコピースキャンで細
かく補正し、精細な領域認識を行う。
The input / output processing units 70-1 and 70-3 store the AR color data separated by the color separation circuit 50 in the line buffer 60 and perform input correction described later. The determination processing units 70-2 and 70-4 determine the inside and outside of the area in the pre-scan and the forward scan for the data written in the line buffer 60, and determine the determination result at the address specified by the determination memory address counter 74. Is stored in the line memory 61 for determination. That is, in the forward scan, while reading out the contents of the line memory 61 for determination sequentially, the determination process for the determination pixel is performed with reference to the data of one line before and the data next to one pixel, and the result is stored in the page buffer memory 62. Store. Next, the page buffer memory 6 is used during the back scan of the pre-scan.
2 is read and the determination is made again. Then, the content of the page buffer memory 62 is determined again with the AR color data obtained through the color separation circuit 50 at the time of copy scanning,
The result of the rough determination in the pre-scan is finely corrected in the copy scan, and fine area recognition is performed.

【0019】図5は図4のARイネーブル回路のブロッ
ク図である。本発明ではプリスキャンで粗く判定して結
果を記憶し、コピースキャン時に細かい間隔で読み取っ
たデータによりプリスキャンでの判定結果を補正するよ
うにしているので、プリスキャンとコピースキャンとで
読み取るデータの位置が変わっては補正することが出来
ない。しかし、コピースキャンの際、アドレスとしてラ
イン数を数えたのでは、倍率によって位置が変わってし
まうことになる。そこで本発明では縮小倍率の時は速
く、拡大倍率の時は遅く、1クロック当たりの距離を変
え、倍率によってはトータルのモータクロック数は変わ
らないことを利用し、モータクロックを領域認識のメモ
リの副走査アドレスにするようにしている。そこで、1
/16mm毎のモータクロックをインバータ80を通
し、分周器88で16分周し、1mm単位のアドレス信
号を得るようにする。そしてページ同期信号(ページシ
ンク、PS)でスキャン1(プリスキャンのフォワード
スキャン)、スキャン3(コピースキャン)をセレクタ
81,82によってセレクトし、OR回路90を通して
得た信号でモータクロック信号をラッチし、副走査アド
レスを得るようにする。また、スキャン2(プリスキャ
ンのバックスキャン)の信号をデータの有効範囲を示す
VVAD信号によってラッチ回路91でラッチしてスキ
ャン2の信号を得ている。
FIG. 5 is a block diagram of the AR enable circuit of FIG. In the present invention, the result is roughly stored in the pre-scan and the result is stored, and the result of the pre-scan is corrected by the data read at fine intervals during the copy scan. If the position changes, it cannot be corrected. However, if the number of lines is counted as an address during copy scanning, the position will change depending on the magnification. Therefore, in the present invention, the distance per one clock is changed at the time of reduction magnification at a high speed and at the magnification magnification at a low speed, and the fact that the total number of motor clocks does not change depending on the magnification is used. The sub-scanning address is set. So 1
The motor clock of every / 16 mm passes through the inverter 80 and is divided by 16 by the frequency divider 88 to obtain an address signal of 1 mm unit. Then, scan 1 (forward scan of pre-scan) and scan 3 (copy scan) are selected by selectors 81 and 82 by a page synchronization signal (page sync, PS), and a motor clock signal is latched by a signal obtained through OR circuit 90. , The sub-scanning address is obtained. Further, the scan 2 (prescan back scan) signal is latched by the latch circuit 91 by the VVAD signal indicating the effective range of data, and the scan 2 signal is obtained.

【0020】次に領域認識アルゴリズムの概略について
説明する。本発明においては、第1AR色と第2AR色
の2色について領域判定を行うことが可能であり、プリ
スキャンが始まる前にCPUからARモードを設定す
る。本発明におけるARモードは図6に示すように、指
定された色画像データ上およびその色画像データによる
閉ループ領域を認識する自由型モード、指定された色画
像データ上およびその色画像データに囲まれる画像デー
タ領域を認識する塗りつぶしモード、指定された色画像
データの外接四角形領域を認識する矩形モード、指定さ
れた色を内包する画像閉ルーブ領域を認識する1点指示
モードの4つのARモードを有しており、2ビットデー
タで自由型モードは(00)、塗りつぶしモードは(0
1)、矩形モードは(10)、1点指示モードは(1
1)で設定され、デフォルトは(00)とし、第1AR
色と第2AR色の2色について異なるARモードが設定
可能である。
Next, the outline of the area recognition algorithm will be described. In the present invention, it is possible to perform area determination for two colors, the first AR color and the second AR color, and set the AR mode from the CPU before the start of prescan. As shown in FIG. 6, the AR mode in the present invention is a free mode in which a closed loop area is recognized on the specified color image data and the color image data, and is surrounded by the specified color image data and the color image data. There are four AR modes: a fill mode for recognizing the image data area, a rectangular mode for recognizing the circumscribed rectangular area of the specified color image data, and a one-point instruction mode for recognizing an image closed lube area containing the specified color. The free mode is (00) and the fill mode is (0) in 2-bit data.
1), the rectangular mode is (10), and the one-point instruction mode is (1).
1), the default is (00), and the first AR
Different AR modes can be set for the two colors of the color and the second AR color.

【0021】図7はプリスキャンのフォワードスキャン
時における処理を説明するためのものである。コピーサ
イクルはプリスキャンのフォワードスキャンから始ま
り、プラテンガラスの先端の位置までキャリッジが進ん
だ時点でAR色データおよび画像データの取り込みを開
始し、領域認識回路に入力されるページシンク信号はこ
のデータ取り込み開始時点(図7の)で立ち上がる。
それ以降は一定の距離をキャリッジが進む毎にAR色デ
ータおよび画像データから後述するアルゴリズムで1ラ
イン分の領域の内部/外部の判定を行い、結果をページ
メモリにセーブしていく(図7のの領域)。以上の処
理はキャリッジがプラテンガラスの先端からデータを取
り込むとき最後端(例えばA3原稿用のプラテンガラス
なら432mm)の位置に達するかページシンク信号が
LOWになるまで行う(図7の)。なお、キャリッジ
の位置検出は図5で説明したように、ページシンク信号
が立ち上がってからキャリッジモータのクロックをカウ
ントすることにより行い、本複写機ではページメモリの
副走査方向の精度を1mmとし、キャリッジモータクロ
ックカウント数が1mm相当になる毎に主走査方向1ラ
イン分の領域の内部/外部の判定を行うようにしてい
る。
FIG. 7 is a diagram for explaining the processing at the time of the forward scan of the pre-scan. The copy cycle starts from the pre-scan forward scan, and when the carriage advances to the position of the tip of the platen glass, the capture of AR color data and image data starts, and the page sync signal input to the area recognition circuit captures this data. It rises at the start time (of FIG. 7).
Thereafter, each time the carriage travels a certain distance, the inside / outside of one line area is determined from the AR color data and the image data by an algorithm described later, and the result is saved in the page memory (FIG. 7). Area). The above processing is performed until the carriage reaches the rearmost position (for example, 432 mm in the case of platen glass for A3 original) when the carriage takes in data from the leading end of the platen glass or until the page sync signal becomes LOW (FIG. 7). The position of the carriage is detected by counting the clock of the carriage motor after the rise of the page sync signal as described with reference to FIG. 5, and in this copying machine, the accuracy of the page memory in the sub-scanning direction is set to 1 mm, Each time the motor clock count becomes equivalent to 1 mm, the inside / outside determination of the area for one line in the main scanning direction is performed.

【0022】図8はプリスキャンのバックスキャン時の
処理を説明するためのものである。プリスキャンのバッ
クスキャン時は画像データが入ってこないで、ページメ
モリにセーブしてあるフォワードスキャン時の判定結果
をプラテンガラスの後端側から読み出し、フォワードス
キャン時とは逆方向からみた判定を行い、結果を再度ペ
ージメモリにセーブする。この場合、AR色データ等の
入力データは入ってこないので、バックスキャンが始ま
ってバックスキャン信号が立ち上がると、すぐに最終ラ
イン(431)からの判定を開始することになる(図8
の)。それ以降はフォワードスキャン時とは異なり、
キャリッジの位置とは無関係に内部的な処理タイミング
に従って各ラインの判定処理を行う(図8の)。この
処理は全ラインの処理が終了するまで行われる(図8の
)。バックスキャン時はキャリッジの位置とは無関係
に判定処理が進められるため、図示のように実際の判定
処理はキャリッジがプラテンガラスの先端位置に戻るよ
りも早く終了することになる。
FIG. 8 is a diagram for explaining the processing at the time of the back scan of the pre-scan. At the time of prescan back scan, the image data does not enter, and the result of the forward scan saved in the page memory is read from the rear end of the platen glass, and the judgment is made in the direction opposite to the forward scan. And save the result back to page memory. In this case, since input data such as AR color data does not come in, the determination from the last line (431) starts immediately after the back scan starts and the back scan signal rises (FIG. 8).
of). After that, unlike during forward scan,
The determination processing of each line is performed according to the internal processing timing regardless of the position of the carriage (FIG. 8). This processing is performed until the processing of all the lines is completed (FIG. 8). At the time of the back scan, the determination process proceeds regardless of the position of the carriage, so that the actual determination process ends earlier than the carriage returns to the leading end position of the platen glass as illustrated.

【0023】図9はコピースキャンのフォワードスキャ
ン時の処理を説明するためのものである。コピースキャ
ン時は原稿の先端(ページシンク信号の立ち上がり)か
らAR色データおよび画像データの取り込みを開始し、
入力データの2ライン(VVAD)毎にAR色データお
よび黒画像データと、ページメモリから読み出された判
定結果から領域の内部/外部の判定を行い結果を出力す
る。なお、VVADは副走査方向における画像データと
して有効な範囲を示す信号である。このような処理によ
りバックスキャン時の判定結果は精度が1mmと粗い
が、コピースキャン時の読み取りは細かいので、領域の
輪郭を滑らかにする補正が行われる。この場合、ベージ
メモリの読み出しラインアドレスは入力データのライン
数とは別のものであり、ベージシンク信号の立ち上がり
からキャリッジモータのクロックをカウントし1mm毎
にラインアドレスをプラス1していく必要がある。
FIG. 9 is a view for explaining the processing at the time of the forward scan of the copy scan. At the time of copy scan, capture of AR color data and image data starts from the leading edge of the document (the rising edge of the page sync signal).
For each two lines (VVAD) of the input data, the inside / outside of the area is determined based on the AR color data and black image data and the determination result read from the page memory, and the result is output. VVAD is a signal indicating a valid range as image data in the sub-scanning direction. By such a process, the accuracy of the determination result at the time of the back scan is as coarse as 1 mm, but the reading at the time of the copy scan is fine, so that correction for smoothing the outline of the area is performed. In this case, the read line address of the page memory is different from the number of lines of the input data, and it is necessary to count the clock of the carriage motor from the rising edge of the page sync signal and increase the line address by 1 every 1 mm.

【0024】また、原稿を任意の位置に置いてもレジ位
置を原稿の先端に合わせる「フリーレジ」、指定した位
置にレジを移動させる「移動」、あるいは「センタリン
グ」といった機能が選ばれている場合は、ベージシンク
信号の立ち上がりがプラテンガラスの先端であるライン
アドレス=0の位置であるとは限らないので、プリスキ
ャンのバックスキャンが終了してからコピースキャンの
フォワードスキャンが開始するまで(ページシンク信号
の立ち上がるまでの間)にページシンク信号の立ち上が
りの位置のページメモリの読み出しラインアドレス(A
RSLA)をCPUから設定しておく。従ってページメ
モリの読み出しラインアドレスはページシンク信号の立
ち上がりからキャリッジが1mm進む毎にARSLA,
ARSLA+1,ARSLA+2……と増加して行くこ
とになり、このようなラインアドレスは432に達する
かページシンク信号がLOWになるまで行う。
Also, a function such as "free registration" for adjusting the registration position to the leading end of the document even when the document is placed at an arbitrary position, "moving" for moving the registration to a designated position, or "centering" is selected. In this case, since the rising edge of the page sync signal is not always at the position of the line address = 0, which is the tip of the platen glass, from the end of the back scan of the prescan to the start of the forward scan of the copy scan (page sync). The read line address (A) of the page memory at the rising position of the page sync signal before the signal rises)
RSLA) is set from the CPU. Therefore, the read line address of the page memory is changed every time the carriage advances by 1 mm from the rising edge of the page sync signal.
ALSLA + 1, ALSLA + 2,..., And such a line address is maintained until the line address reaches 432 or the page sync signal becomes LOW.

【0025】次に基本的な判定アルゴリズムについて説
明する。基本的なアルゴリズムは自由型モード、ぬりつ
ぶしモード、矩形モード、1点指示モードの全ての場合
に共通であり、まずプリスキャンのフォワードスキャン
時に主走査方向、反主走査方向、副走査方向の3方向か
ら入力データを判定し、ページメモリに判定結果をセー
ブする。プリスキャンのバックスキャン時にはページメ
モリにセーブしてある判定結果を読み出し、主走査方
向、反主走査方向、反副走査方向の3方向から再度判定
し、ページメモリに判定結果をセーブする。最後にコピ
ースキャンのフォワードスキャン時に入力データとペー
ジメモリにセーブしてある判定結果を主走査方向、反主
走査方向、副走査方向の3方向から最終判定を行い、領
域の内部/外部を決定する。このようにどのスキャンの
場合でも3方向からの判定が基本になり、この3方向か
らの判定を以下のように1次判定と2次判定の2度の判
定で行う。
Next, a basic determination algorithm will be described. The basic algorithm is common to all of the free-form mode, the painting mode, the rectangular mode, and the one-point pointing mode. First, the main scanning direction, the anti-main scanning direction, and the sub-scanning direction at the time of the prescan forward scan. From the input data, and saves the determination result in the page memory. At the time of the back scan of the pre-scan, the judgment result saved in the page memory is read, the judgment is made again from three directions of the main scanning direction, the anti-main scanning direction, and the anti-sub-scanning direction, and the judgment result is saved in the page memory. Finally, the input data and the determination result saved in the page memory at the time of the forward scan of the copy scan are finally determined from three directions of the main scanning direction, the anti-main scanning direction, and the sub-scanning direction to determine the inside / outside of the area. . As described above, in any scan, determination from three directions is basically performed, and determination from three directions is performed by two determinations of a primary determination and a secondary determination as described below.

【0026】図10は1次判定を説明するためのもので
ある。まず、主走査方向と副走査方向(または反副走査
方向)の2方向から1次判定を行う。すなわち、図10
(a)に示すように、1次判定結果をラッチして得られ
た1画素隣の1次判定結果と、判定用ラインメモリ61
から読み込んだ1ライン前の判定結果と、入力データと
から判定画素についての判定を行い、図10(b)に示
すように斜線で示す判定画素は1ライン前の判定結果お
よび1画素隣の1次判定結果を参照して領域の内部/外
部が決定され、その結果は判定用ラインメモリ61に書
き込まれる。
FIG. 10 is for explaining the primary judgment. First, a primary determination is performed from two directions, a main scanning direction and a sub-scanning direction (or an anti-sub-scanning direction). That is, FIG.
As shown in (a), the primary determination result next to one pixel obtained by latching the primary determination result and the determination line memory 61
The determination of the determination pixel is performed based on the determination result of one line before read from the input data and the input data. As shown in FIG. The inside / outside of the area is determined with reference to the next determination result, and the result is written into the determination line memory 61.

【0027】図11は2次判定を説明するためのもので
ある。2次判定は1次判定の結果に反主走査方向からの
情報を付加して1ラインの判定結果を決定するものであ
る。この場合、反主走査方向からの入力データはないの
で、1次判定の結果をセーブした判定用ラインメモリ6
1を、セーブした時とは逆に反主走査方向から再度読み
出していくことによって反主走査方向からの情報を付加
する。すなわち図11(b)に示すように、判定画素の
1画素隣の2次判定結果から判定していくために、図1
1(a)に示すように、判定用ラインメモリ61から読
み込んだ1次判定結果と、2次判定結果をラッチした1
画素隣の2次判定結果とから判定し、結果を判定用ライ
ンメモリに書き込む。
FIG. 11 is for explaining the secondary judgment. The secondary determination is to determine the determination result of one line by adding information from the anti-main scanning direction to the result of the primary determination. In this case, since there is no input data from the anti-main scanning direction, the judgment line memory 6 which saves the result of the primary judgment.
1 is read again in the anti-main scanning direction in a manner opposite to that at the time of saving, thereby adding information from the anti-main scanning direction. That is, as shown in FIG. 11B, in order to make a determination based on the secondary determination result adjacent to the determination pixel by one pixel, FIG.
As shown in FIG. 1A, the primary determination result read from the determination line memory 61 and the secondary determination result are latched.
The determination is made based on the secondary determination result adjacent to the pixel, and the result is written to the determination line memory.

【0028】このような判定アルゴリズムから少なくと
も主走査方向についてはラインメモリのリード、判定、
ラインメモリのライトで3VCLK(VCLK:1画像
のデータの確定している期間を示す信号)分、副走査方
向については1次判定、2次判定の2VVADの処理時
間が必要であり、そのため回路の簡略化やメモリコスト
を考え、判定/出力の精度は主走査方向=4VCLK、
副走査方向=2VVADとしている。従って、判定のた
めのデータは1色あたり2ビットとして必要な判定用ラ
インメモリ61の容量は4672/4×2×2=116
8ワード×4ビットとなるので、2Kワード×8ビット
のSRAMを使用する。一方プリスキャンの判定結果を
セーブするページメモリ62の精度はコストを下げるた
めに主走査方向=8VCLK、副走査方向=1mm相当
とする。その結果必要なページメモリ62の容量は46
72/8×432×2×2=246Kワード×4ビット
となるので、256Kワード×4ビットのDRAMを使
用する。
From such a determination algorithm, at least in the main scanning direction, reading of the line memory, determination,
In the sub-scanning direction, a processing time of 2VVAD for the primary determination and the secondary determination is required for 3 VCLK (VCLK: a signal indicating a period during which data of one image is determined) by writing in the line memory. Considering simplification and memory cost, the accuracy of judgment / output is determined by the main scanning direction = 4VCLK,
The sub-scanning direction is set to 2VVAD. Accordingly, the capacity of the determination line memory 61 required for the determination data to be 2 bits per color is 4672/4 × 2 × 2 = 116.
Since it is 8 words × 4 bits, an SRAM of 2K words × 8 bits is used. On the other hand, the accuracy of the page memory 62 for saving the determination result of the pre-scan is equivalent to 8 VCLK in the main scanning direction and 1 mm in the sub scanning direction in order to reduce the cost. As a result, the required capacity of the page memory 62 is 46
Since 72/8 × 432 × 2 × 2 = 246 K words × 4 bits, a DRAM of 256 K words × 4 bits is used.

【0029】前述した1次判定、および2次判定の各ア
ルゴリズムは基本的に「マーカ色画素とマーカ色画素に
隣接する濃度なし画素(白画素)は閉ループ内とする」
というものであるが、その具体的な判定結果は「O」…
画像閉ループの外、「M」…マーカを含む領域、「I」
…画像閉ループの内となる。この判定結果はステータス
情報としてシステム内で取り扱われ、最終的にステータ
ス「I」の付された画素がマーカで指定された画像閉ル
ープの内側となり、それ以外の画素は画像閉ループの外
側となる。
The above-described algorithms for the primary determination and the secondary determination are basically based on the assumption that a marker color pixel and a non-density pixel (white pixel) adjacent to the marker color pixel are in a closed loop.
However, the specific determination result is "O" ...
Outside the image closed loop, "M" ... area including marker, "I"
... It is within the image closed loop. This determination result is handled as status information in the system. Finally, the pixels with the status “I” are inside the image closed loop specified by the marker, and the other pixels are outside the image closed loop.

【0030】次に、図12により副走査方向がMライン
で、主走査方向がN番目の画素(対象画素)の判定を行
う場合について説明する。例えば、プリスキャンのフォ
ワードスキャン時における判定は、まず主走査方向につ
いて、図12(a)に示すように、対象画素の画像デー
タ(濃度データ)とマーカ色情報とさらに隣接する画素
の判定結果、すなわち同一ライン(Mライン)の前画素
(N−1番目)の主走査方向判定結果(仮ステータス)
と前のライン(M−1)の同一1画素(N番目)の判定
結果とに基づいて、当該対象画素(図の斜線部)を判定
する。この主走査方向の判定結果は1次判定結果となっ
て仮ステータス(KS)として、メモリに格納される。
このようにして主走査方向についての各画素の判定が終
了した後に逆側からの判定、すなわち反主走査方向の判
定を行う。それは図12(b)に示すように、対象画素
の同一ラインで前の画素(N+1番目)の判定結果に基
づいて当該対象画素(斜線部)の判定を行い、その判定
結果が2次判定結果となってメモリ内に格納された当該
対象画素の上記仮ステータス(KS)がステータス
(S)情報に書換えられる。このようにして主走査方
向、反主走査方向の双方向からの判定が各ライン毎に順
次行われ、0ラインから431ラインでの判定で、バッ
クスキャン時の判定が終了する。
Next, a case will be described with reference to FIG. 12 in which the sub-scanning direction is M lines and the main scanning direction is the Nth pixel (target pixel). For example, the determination at the time of the forward scan of the pre-scan is performed in the main scanning direction, as shown in FIG. 12A, by determining the image data (density data) of the target pixel, the marker color information, and the pixels further adjacent to the target pixel. That is, the main scanning direction determination result (temporary status) of the previous pixel (N-1) of the same line (M line)
The target pixel (the hatched portion in the figure) is determined based on the determination result of the same pixel (N-th) in the previous line (M-1). The determination result in the main scanning direction becomes a primary determination result and is stored in the memory as a provisional status (KS).
After the determination of each pixel in the main scanning direction is completed in this way, the determination from the opposite side, that is, the determination in the anti-main scanning direction is performed. As shown in FIG. 12B, the target pixel (hatched portion) is determined based on the determination result of the previous pixel (N + 1) on the same line as the target pixel, and the determination result is the secondary determination result. As a result, the temporary status (KS) of the target pixel stored in the memory is rewritten to status (S) information. In this way, the determination in both the main scanning direction and the anti-main scanning direction is sequentially performed for each line, and the determination for the back scan ends with the determination for the 0th line to 431th line.

【0031】プリスキャンのバックスキャン時における
判定は、主走査方向について、図12(c)に示すよう
に、同一ライン(Mライン)の前の画素(N−1番目)
の主走査方向判定結果(仮ステータス)と前のライン
(M+1ライン)の同一位置画素(N番目)の判定結果
とに基づいて、当該対象画素を判定する。この主走査方
向の判定結果は仮ステータス(KS)となり、メモリ内
に格納された判定結果がこの仮ステータス(KS)に書
換えられる。主走査方向での各画素の判定が終了した後
に反主走査方向の判定を行う。それは上記フォワードス
キャン時と同様、図12(d)に示すように、対象画素
の同一ラインが前の画素(N+1番目)の判定結果に基
づいて当該対象画素(斜線部)の判定を行い、その判定
結果が2次判定結果となって最終なステータス(S)情
報となる。
At the time of the back scan of the pre-scan, in the main scanning direction, as shown in FIG. 12C, the pixel (N-1) before the same line (M line)
The target pixel is determined based on the main scanning direction determination result (temporary status) and the determination result of the pixel at the same position (Nth) in the previous line (M + 1 line). The determination result in the main scanning direction becomes a temporary status (KS), and the determination result stored in the memory is rewritten to the temporary status (KS). After the determination of each pixel in the main scanning direction is completed, the determination in the anti-main scanning direction is performed. As in the case of the forward scan, as shown in FIG. 12D, the same line of the target pixel determines the target pixel (hatched portion) based on the determination result of the previous pixel (the (N + 1) th). The determination result becomes a secondary determination result and becomes final status (S) information.

【0032】このような判定手法により、フォワードス
キャン時およびバックスキャン時にそれぞれ主走査方向
および反主走査方向の判定を行うので、1つの画素につ
いて上下左右の4方向からの判断がなされることにな
り、精度のよい判定結果が得られる。
According to such a determination method, the main scanning direction and the anti-main scanning direction are determined at the time of forward scan and at the time of back scan, respectively, so that one pixel is determined from four directions of up, down, left, and right. And a highly accurate determination result can be obtained.

【0033】以上のような判定により、例えば図13
(a)に示すような閉ループに対して、マーカ上の画素
に対してはステータス「M」が、領域内はステータス
「I」が、領域外はステータス「O」が付与されること
になる。なお、図13(b)に示すように、主走査方向
においては、例えば斜線部の画素は1ライン前の同一位
置の画素および1画素前の画素が共にステータス「M」
であるので、領域内であると判定し、ステータス「I」
が付与され、それに続く画素に対して順次ステータス
「I」が付与される場合があり得る。この場合図13
(c)に示すように、反主走査方向で最初の画素からス
テータス「I」がつくということはあり得ないので、こ
れをステータス「O」に書換え、正しい判定が保証され
ることになる。
By the above determination, for example, FIG.
With respect to the closed loop as shown in (a), the status “M” is given to the pixel on the marker, the status “I” is given inside the area, and the status “O” is given outside the area. As shown in FIG. 13B, in the main scanning direction, for example, in the hatched portion, both the pixel at the same position one line before and the pixel one pixel before are both in status “M”.
Therefore, it is determined that the area is within the area, and the status “I”
, And the status “I” may be sequentially applied to the subsequent pixels. In this case, FIG.
As shown in (c), it is impossible for the status "I" to be attached to the first pixel in the anti-main scanning direction. Therefore, the status is rewritten to the status "O", and a correct determination is guaranteed.

【0034】次にノイズ除去と連結補正について説明す
る。例えば、1点指示モードのような場合にはゴミのよ
うに小さな点までも認識してしまうのは好ましくない。
それで、一定の大きさ以上のもののみをマーカとして認
識するために、例えば図14(a)に示すように、主走
査方向に対してはラッチ回路101,102で1ドット
ずつ遅延させ、3ドット連続した時にAND回路100
で検出し、ノイズ除去する。もちろん3ドットに限定さ
れるものでなく、2ドット連続した場合でもよく、ある
いはそれ以上のドットが連続した場合に検出するように
してもよい。このような処理により、例えば1mm以下
のものはマーカとして認識しないようにすることができ
る。また、図14(b)に示すように、副走査方向に対
しても、FIFO105,106で1ラインづつずら
し、複数ライン連続した時に出力がとれるようにする。
このようにすることにより、例えば副走査方向1mm以
下のマーカは拾わないようにすることができる。
Next, noise removal and link correction will be described. For example, in the case of the one-point instruction mode, it is not preferable to recognize even a small point such as dust.
Therefore, in order to recognize only those having a certain size or more as markers, for example, as shown in FIG. AND circuit 100 when continuous
And remove the noise. Of course, the present invention is not limited to three dots, and may be a case where two dots are continuous or a case where more dots are continuous. By such a process, it is possible to prevent an object having a size of, for example, 1 mm or less from being recognized as a marker. Also, as shown in FIG. 14B, in the sub-scanning direction, the lines are shifted by one line by the FIFOs 105 and 106 so that an output can be obtained when a plurality of lines are continuous.
By doing so, it is possible to prevent, for example, a marker of 1 mm or less in the sub-scanning direction from being picked up.

【0035】また、自由型モード、塗りつぶしモード、
矩形モードの場合には1mm以下のマーカを認めないと
すると、太いマーカを用意しなければならない。そこ
で、図14(c)に示すように、主走査方向に対しては
ラッチ回路111,112で1画素づつずらし、OR回
路110で、例えば3画素のORをとるようにし、ま
た、副走査方向については図14(d)に示すようにF
IFO115,116で1ラインづつずらし、数ライン
のORをとることにより、1mm以下の細いマーカも認
識させることが可能となる。このように本発明において
は、領域認識回路の入出力部でARモードに応じて補正
方法を変え、モードに適した入力補正を行うようにす
る。
Also, a free mode, a filling mode,
In the case of the rectangular mode, if a marker of 1 mm or less is not recognized, a thick marker must be prepared. Therefore, as shown in FIG. 14C, the latch circuits 111 and 112 shift one pixel at a time with respect to the main scanning direction, and the OR circuit 110 takes an OR of, for example, three pixels. For F, as shown in FIG.
By shifting the lines by IFOs 115 and 116 one by one and ORing several lines, it is possible to recognize a thin marker of 1 mm or less. As described above, in the present invention, the input / output unit of the area recognition circuit changes the correction method according to the AR mode, and performs input correction suitable for the mode.

【0036】ところで、図15(a)に示すように、マ
ーカで閉ループ領域を指定したつもりでも、マーカの下
に黒画像データがある場合、黒画像データ上はAR色が
検出できず、その結果図15(b)に示すように、マー
カがとぎれてしまい不完全な閉ループとなって領域の検
出ができない場合が生ずる。そのため、自由型モード、
塗りつぶしモード、矩形モードの場合に図14(c),
(d)のOR回路を用い、単純に1mm分のORをとる
ことにより、AR色データの断線を補正するようにす
る。
By the way, as shown in FIG. 15A, even if it is intended to designate a closed loop area with a marker, if there is black image data below the marker, the AR color cannot be detected on the black image data. As shown in FIG. 15B, there is a case where the marker is interrupted and an incomplete closed loop cannot be detected. Therefore, free-form mode,
In the case of the filling mode and the rectangular mode, FIG.
The disconnection of the AR color data is corrected by simply taking the OR of 1 mm using the OR circuit of (d).

【0037】次に自由型モードの判定アルゴリズムにつ
いて説明する。自由型モードはAR色は入力された領域
およびAR色による閉ループ領域を検出するもので、複
数のAR色が隣接、交差する場合には最も外側のAR色
データで閉ループを検出する。例えば、図16(a)の
ようなAR色データがあった場合、まずプリスキャンの
フォワードスキャンで、図16(b)に示すように、粗
く領域を認識しページメモリに格納する。この場合、主
走査方向、反主走査方向、副走査方向の3方向から見て
AR色に囲まれている領域を検出するが、3方向から見
てAR色の陰になる所は領域の内部と誤判定してしま
う。しかし、プリスキャンのバックスキャン時に、前述
したようにフォワード時の判定結果をページメモリから
読み出し、反副走査方向から見た判定を再度行い領域の
内部/外部を決定することにより、AR色の陰の部分の
誤判定が解消される。しかし、プリスキャンの判定精度
は1mm単位の粗いものであるので、そのまま出力せ
ず、コピースキャン時の細かな間隔の読み取りデータと
突き合わせ、これで判定することにより図16(d)に
示すような精細な領域認識を行うことができる。
Next, the algorithm for determining the free mode will be described. In the free mode, the AR color detects an input area and a closed loop area based on the AR color. When a plurality of AR colors are adjacent to each other and intersect, a closed loop is detected using the outermost AR color data. For example, when there is AR color data as shown in FIG. 16A, first, in the forward scan of the pre-scan, as shown in FIG. 16B, a coarse area is recognized and stored in the page memory. In this case, an area surrounded by the AR color is detected when viewed from the three directions of the main scanning direction, the anti-main scanning direction, and the sub-scanning direction. Is incorrectly determined. However, at the time of the back scan of the pre-scan, as described above, the determination result at the time of the forward is read from the page memory, and the determination as viewed from the anti-sub-scanning direction is performed again to determine the inside / outside of the area. The erroneous determination of the portion is eliminated. However, since the accuracy of the pre-scan determination is coarse in units of 1 mm, the pre-scan is not output as it is, but is compared with read data at fine intervals at the time of copy scan. Fine area recognition can be performed.

【0038】自由型モードの判定の演算則は、図17
(a)に示すように、1ライン前の2次判定結果のステ
ータス「O」(閉ループ外)、「M」(AR色上)、
「I」(AR色上を除く閉ループ内)と1画素左の1次
判定結果のステータス「O」、「M」、「I」の組合せ
で、図17(b)に示すように、1画素隣の1次判定結
果が「O」、1ライン前の同一位置の判定結果が「M」
の場合には判定画素は「O」とし、図17(c)に示す
ように1ライン前の判定結果が「M」、1画素隣の1次
判定結果が「M」の場合には判定画素は「I」、また1
ライン前の判定結果が「I」、1画素隣の1次判定結果
が「I」の場合には判定画素は「I」、1ライン前の判
定結果が「O」、1画素隣の1次判定結果が「O」また
は「M」の場合には判定画素は「O」というようにし
て、判定画素のステータスを順次決定していく。
The operation rule for determining the free mode is shown in FIG.
As shown in (a), the status “O” (outside the closed loop), “M” (on the AR color) of the secondary determination result one line before,
As shown in FIG. 17B, a combination of “I” (within a closed loop excluding the AR color) and the statuses “O”, “M”, and “I” of the primary determination result one pixel left, as shown in FIG. The adjacent primary determination result is “O”, and the determination result at the same position one line before is “M”
, The determination pixel is set to “O”, and as shown in FIG. 17C, the determination result of the immediately preceding line is “M”, and the primary determination result of the next pixel is “M”, the determination pixel is Is "I" and 1
If the judgment result before the line is “I”, and the primary judgment result next to the first pixel is “I”, the judgment pixel is “I”, the judgment result immediately before the line is “O”, and the primary result next to the pixel is When the determination result is “O” or “M”, the determination pixel is set to “O”, and the status of the determination pixel is sequentially determined.

【0039】この自由型モードの判定演算は図18
(a)〜(e)に示すような表を用いる。
FIG. 18 is a flowchart showing the operation for determining the free mode.
Tables as shown in (a) to (e) are used.

【0040】・プリスキャンのフォワードスキャン時 1次判定の場合にはAR色データ=1、すなわちマーカ
上のデータが入ってきた時には図18(a)の演算表を
用い、1ライン前の2次判定結果のステータス、1画素
左の1次判定結果のステータスが「O」、「M」、
「I」の何れであろうとも、判定画素のステータスを
「M」とする演算が行われる。またAR色データ=0の
場合、すなわちマーカ色が検出されなかった場合には図
18(b)の演算表により1ライン前の2次判定結果が
「O」、または1画素左の1次判定結果のステータスが
「O」の場合には判定画素は「O」とし、それ以外の1
ライン前の2次判定結果のステータス、1画素左の1次
判定結果のステータスが「M」または「I」の場合には
判定画素は「I」と判定する。従って1ライン前あるい
は1画素左が閉ループの外である場合には判定画素は必
ず外ということになる。
At the time of the forward scan of the pre-scan In the case of the primary judgment, the AR color data = 1, that is, when the data on the marker comes in, the operation table of FIG. The status of the determination result, the status of the primary determination result left of one pixel is “O”, “M”,
Regardless of which of “I”, an operation for setting the status of the determination pixel to “M” is performed. When the AR color data = 0, that is, when no marker color is detected, the result of the secondary determination one line before is “O” or the primary determination one pixel left from the calculation table in FIG. When the status of the result is “O”, the judgment pixel is set to “O”;
If the status of the secondary determination result before the line and the status of the primary determination result one pixel left are “M” or “I”, the determination pixel is determined to be “I”. Therefore, when the line before or one pixel left is outside the closed loop, the judgment pixel is always outside.

【0041】また、2次判定の場合には図18(e)の
演算表が用いられる。2次判定は反主走査方向に判定を
行うので、1画素右の2次判定結果のステータスと判定
画素の1次判定結果のステータスとから判定し、判定画
素の1次判定結果のステータスが「O」であれば、1画
素右の2次判定結果のステータスのいかんにかかわら
ず、判定画素は「O」とし、また判定画素の1次判定結
果のステータスが「M」である場合には1画素右の2次
判定結果のステータスにかかわらず「M」としている。
ただし、1画素右の2次判定結果のステータスが「O」
である場合には、判定画素の1次判定結果のステータス
が「I」であっても「O」と書換える。
In the case of the secondary judgment, the operation table shown in FIG. 18E is used. Since the secondary determination is performed in the anti-main scanning direction, the determination is made based on the status of the secondary determination result one pixel to the right and the status of the primary determination result of the determination pixel, and the status of the primary determination result of the determination pixel is “ If "O", the determination pixel is set to "O" regardless of the status of the secondary determination result to the right of one pixel, and 1 if the status of the primary determination result of the determination pixel is "M". It is set to “M” regardless of the status of the secondary determination result on the right of the pixel.
However, the status of the secondary judgment result for the right of one pixel is “O”
If the status of the primary determination result of the determination pixel is “I”, the status is rewritten as “O”.

【0042】・プリスキャンのバックスキャン時 ページメモリに格納された判定結果を読み出して1次判
定、2次判定を行うことになる。まず1次判定ではペー
ジメモリの内容が「M」の場合には、図18(a)の演
算表を用い、ページメモリの内容が「I」の場合には図
18(b)の演算表を用い、ページメモリの内容が
「O」の場合には図18(c)の演算表を用いる。図1
8(a),(b)についてはプリスキャンのフォワード
スキャンの場合と同じであるが、図18(c)の演算表
では、ページメモリの内容が「O」である場合には1ラ
イン前の2次判定結果のステータス、1画素左の1次判
定結果のステータスにかかわらず「O」にすることにな
る。従って、プリスキャンのフォワードスキャンで
「O」と判定された画素はプリスキャンのバックスキャ
ンでも必ず「O」と判定されることになる。2次判定は
フォワードスキャンの場合と同じように図18(e)の
演算表を用いる。
At the time of the back scan of the pre-scan, the judgment result stored in the page memory is read and the primary judgment and the secondary judgment are performed. First, in the primary determination, when the content of the page memory is “M”, the operation table of FIG. 18A is used, and when the content of the page memory is “I”, the operation table of FIG. When the content of the page memory is "O", the operation table of FIG. 18C is used. FIG.
8 (a) and 8 (b) are the same as in the case of the forward scan of the pre-scan, but in the calculation table of FIG. 18 (c), when the contents of the page memory are "O", Regardless of the status of the secondary determination result and the status of the primary determination result left of one pixel, it is set to “O”. Therefore, a pixel determined to be “O” in the pre-scan forward scan is always determined to be “O” in the pre-scan back scan. The secondary determination uses the calculation table in FIG. 18E as in the case of the forward scan.

【0043】・コピースキャンのフォワードスキャン時 1次判定ではAR色データが1、すなわちマーカ上のデ
ータが入ってきた時には、図18(a)の演算表を用い
てステータスを必ず「M」とし、AR色データが0、す
なわちマーカ色がなく、かつページメモリの内容が
「M」で画像データが1の場合には図18(d)の演算
表を用い、1ライン前の2次判定結果のステータス、1
画素左の1次判定結果のステータスがともに「O」の場
合のみ「O」とし、それ以外は「M」とする。また、A
R色データが0でページメモリの内容が「M」、かつ画
像データ=0の場合には図18(b)の演算表を用い、
1ライン前の2次判定結果が「O」、または1画素左の
1次判定結果のステータスが「O」の場合のみ判定画素
は「O」とし、それ以外の1ライン前の2次判定結果の
ステータス、1画素左の1次判定結果のステータスが
「M」または「I」の場合には判定画素は「I」と判定
する。AR色データ=0でページメモリの内容が「I」
の場合にも図18(b)の演算表を用い、AR色データ
=0でページメモリの内容が「O」の場合には図18
(c)の演算表を用いて全て「O」とする。2次判定の
場合にはプリスキャンの場合と同様図18(e)の演算
表を用いる。
In forward scan of copy scan In the primary judgment, when the AR color data is 1, that is, when data on the marker comes in, the status is always set to "M" by using the operation table of FIG. If the AR color data is 0, that is, there is no marker color, the content of the page memory is "M", and the image data is 1, the calculation table of FIG. Status, 1
It is set to "O" only when the status of the primary determination result on the left of the pixel is both "O", and is set to "M" otherwise. Also, A
When the R color data is 0, the content of the page memory is “M”, and the image data = 0, the calculation table in FIG.
Only when the secondary determination result of the previous line is “O” or the status of the primary determination result one pixel left is “O”, the determination pixel is “O”, and the other secondary determination results of the previous line are In the case where the status of the primary determination result on the left of one pixel is “M” or “I”, the determination pixel is determined to be “I”. AR color data = 0 and page memory content is "I"
18B, the operation table shown in FIG. 18B is used. When AR color data = 0 and the content of the page memory is "O", the operation table shown in FIG.
All are set to “O” using the calculation table of (c). In the case of the secondary determination, the calculation table of FIG. 18E is used as in the case of the prescan.

【0044】図19は塗りつぶしモードの判定アルゴリ
ズムを説明するためのものである。塗りつぶしモードで
はAR色データ領域およびAR色データによって囲まれ
た黒または赤画像データ領域をAR色によって塗りつぶ
された領域とし、例えば図19(a)に示すように、画
像データをAR色データで塗りつぶすと、図19(b)
に示すような領域が認識される。この場合マーカによっ
て塗りつぶされた領域というのはマーカ色を検出した領
域とは異なり、例えば黒画像の上を青マーカで塗りつぶ
したつもりでもやはり黒画像上は黒としか検出されず、
色画像の上を青マーカで塗りつぶした場合に検出される
色は青なのか、元の原稿画像の色なのかマーカと原稿画
像の合成色なのか分からない。そのため、塗りつぶしモ
ード時はAR色データ領域およびAR色データによって
囲まれた黒または赤画像データ領域をAR色によって塗
りつぶされた領域としている。この場合自由型モードで
検出すると図19(c)のように認識され、これと画像
データとのANDをとると図19(d)のようになる
が、塗りつぶしモードはこのような検出とは異なってい
ることが分かる。
FIG. 19 is a diagram for explaining the algorithm for determining the filling mode. In the filling mode, the AR color data area and the black or red image data area surrounded by the AR color data are set as the area filled with the AR color. For example, as shown in FIG. 19A, the image data is filled with the AR color data. And FIG. 19 (b)
Are recognized. In this case, the area filled with the marker is different from the area where the marker color is detected.
It is not known whether the color detected when the color image is filled with the blue marker is blue, the color of the original document image, or the composite color of the marker and the document image. Therefore, in the filling mode, the AR color data area and the black or red image data area surrounded by the AR color data are set as the area filled with the AR color. In this case, when the detection is performed in the free mode, it is recognized as shown in FIG. 19 (c), and when this is ANDed with the image data, the result is as shown in FIG. 19 (d). You can see that it is.

【0045】塗りつぶしモードの判定の演算則ではAR
色上を「M」、塗りつぶし領域内(AR色上を除く)を
「I」、塗りつぶし領域外を「O」としてステータスを
定義し、自由型モードと同様に図18の演算表を用いて
判定を行う。
The calculation rule for determining the paint mode is AR
The status is defined as “M” on the color, “I” inside the filled area (except on the AR color) and “O” outside the filled area, and is determined using the calculation table in FIG. 18 similarly to the free mode. I do.

【0046】・プリスキャンのフォワードスキャン時 1次判定においてはAR色データ=1の場合、図18
(a)の演算表、AR色データ=0で画像データ=1の
場合、図18(b)の演算表、AR色データ=0で画像
データ=0の場合、図18(c)の演算表を用いる。2
次判定は図18(e)の演算表を用いる。
At the time of forward scan of pre-scan In the primary judgment, when AR color data = 1, FIG.
18A, the operation table of FIG. 18B when the AR color data = 0 and the image data = 1, and the operation table of FIG. 18C when the AR color data = 0 and the image data = 0. Is used. 2
The next determination uses the calculation table in FIG.

【0047】・プリスキャンのバックスキャン時 1次判定ではページメモリの内容が「M」の場合、図1
8(a)の演算表、ページメモリの内容が「I」の場合
図18(b)の演算表、ページメモリの内容が「O」の
場合図18(c)の演算表を用いる。2次判定は図18
(e)の演算表を用いる。
At the time of the back scan of the prescan In the primary judgment, when the content of the page memory is "M", FIG.
When the contents of the page memory are “I”, the operation table of FIG. 18B is used, and when the contents of the page memory are “O”, the operation table of FIG. 18C is used. The secondary judgment is shown in FIG.
The operation table of (e) is used.

【0048】・コピースキャンのフォワードスキャン時 1次判定ではAR色データ=1の場合図18(a)の演
算表、AR色データ=0で画像データ=1、ページメモ
リの内容が「M」の場合、図18(d)の演算表を用
い、AR色データ=0で画像データ=1、かつページメ
モリの内容が「I」の場合、図18(b)の演算表、A
R色データ=0で画像データ=1、ページメモリの内容
が「O」の場合は図18(c)の演算表、AR色データ
=0で画像データ=0の場合は図18(c)の演算表用
いる。2次判定は図18(e)の演算表を用いる。
In the forward scan of the copy scan, in the primary judgment, when the AR color data = 1, the calculation table in FIG. 18A shows that the AR color data = 0, the image data = 1, and the content of the page memory is “M”. In the case, the operation table of FIG. 18B is used, and when the AR color data = 0, the image data = 1, and the content of the page memory is “I”, the operation table of FIG.
When the R color data = 0 and the image data = 1 and the content of the page memory is "O", the operation table of FIG. 18C is used. When the AR color data = 0 and the image data = 0, the operation table of FIG. Use a calculation table. The secondary determination uses the calculation table in FIG.

【0049】図20は矩形モードの判定アルゴリズムを
説明するためのものである。矩形モードの場合は、フォ
ワードスキャンによってのみ検出できる矩形領域と、バ
ックスキャンによってのみ検出できる矩形領域が異なる
ため、ページメモリが必ず必要となる。すなわち、図2
0(a)のようなAR色データが検出された場合、プリ
スキャンのフォワードスキャンで図20(b)の斜線で
示すような領域が認識され、その判定結果をさらにバッ
クスキャン方向から再度領域の内部/外部を決定するこ
とにより、図20(d)のような斜線の領域が決定され
る。しかし、この領域は前述したように、プリスキャン
の判定精度は粗いのでそのまま出力せず、コピースキャ
ンのフォワードスキャン時の取り込んだデータで、図2
0(d)の判定結果を補正し、図20(c)に示すよう
な精細な領域判定が行われる。
FIG. 20 is a diagram for explaining the determination algorithm in the rectangular mode. In the rectangular mode, a rectangular area that can be detected only by the forward scan and a rectangular area that can be detected only by the back scan are different, so a page memory is always required. That is, FIG.
When AR color data such as 0 (a) is detected, an area indicated by oblique lines in FIG. 20 (b) is recognized in the forward scan of the pre-scan, and the determination result is further determined from the back scan direction. By determining the inside / outside, a hatched area as shown in FIG. 20D is determined. However, as described above, this area is not output as it is because the accuracy of the pre-scan determination is coarse, and is the data captured during the forward scan of the copy scan.
The determination result of 0 (d) is corrected, and a fine area determination as shown in FIG. 20 (c) is performed.

【0050】この矩形モードの判定アルゴリズムは、4
つのステータスが定義され、AR色上を「M」、矩形領
域内(AR色上を除く)を「I」、矩形領域外を
「O」、「I」になる可能性のある「O」(1次判定で
のみ存在し、2次判定で「O」か「I」に決定される)
を「O´」として定義し、図21に示すような演算表を
用いて判定を行う。
The rectangular mode determination algorithm is as follows.
Two statuses are defined, "M" on the AR color, "I" inside the rectangular area (except on the AR color), "O" outside the rectangular area, and "O"("O") which may be "I". (It exists only in the primary judgment, and is determined as "O" or "I" in the secondary judgment.)
Is defined as “O ′”, and the determination is performed using an operation table as shown in FIG.

【0051】・プリスキャンのフォワードスキャン時 1次判定では、AR色データ=1の場合は図21(a)
の演算表が用いられ、1ライン前の2次判定結果のステ
ータス、1画素左の1次判定結果のステータスに拘わら
ず、判定画素は「M」とされる。またAR色データ=0
の場合には、図21(b)に示す演算表が用いられ、1
ライン前の2次判定結果のステータスが「O」の場合に
は1画素左の1次判定結果のステータスに拘わらず
「O」と判定され、1ライン前の2次判定結果のステー
タスが「M」,「I」、1画素左の1次判定結果のステ
ータスが「O」、「O´」の場合には「O´」と判定さ
れ、1ライン前の2次判定結果のステータスが「M」,
「I」、1画素左の1次判定結果のステータスが
「M」,「I」の場合には判定画素は「I」となる。
At the time of the forward scan of the pre-scan In the primary judgment, when the AR color data = 1, FIG.
Is used, and the determination pixel is set to “M” regardless of the status of the secondary determination result one line before and the status of the primary determination result left of one pixel. AR color data = 0
In the case of, the operation table shown in FIG.
If the status of the secondary determination result before the line is “O”, it is determined to be “O” regardless of the status of the primary determination result one pixel left, and the status of the secondary determination result one line before is “M”. , "I", if the status of the primary determination result one pixel left is "O" or "O '", the status is determined as "O'", and the status of the secondary determination result one line before is "M". ",
When the status of the primary determination result of “I” and one pixel left is “M” and “I”, the determination pixel is “I”.

【0052】そして、2次判定では図21(e)の演算
表が使用され、「O´」と判定された領域が「O」又は
「I」と書換えられ、図20(b)のような領域が2次
判定で確定する。
In the secondary determination, the operation table shown in FIG. 21E is used, and the area determined to be "O '" is rewritten to "O" or "I", as shown in FIG. The area is determined by the secondary determination.

【0053】・プリスキャンのバックスキャン時 1次判定において、ページメモリの内容が「M」の場
合、図21(a)の演算表が使用され、ページメモリの
内容が「I」の場合には図21(c)の演算表が使用さ
れる。図21(c)の演算表では1画素左の1次判定結
果のステータスが「I」であれば、1ライン前の2次判
定結果のステータスに拘わらず「I」となり、図20
(b)で矩形領域の欠けた部分(「O」)が「I」と書
換えられる。また、ページメモリの内容が「O」の場合
には、図21(b)の演算表が用いられる。2次判定の
場合には同様に図21(e)の演算表が用いられる。
At the time of the back scan of the prescan In the primary judgment, when the content of the page memory is "M", the operation table of FIG. 21A is used, and when the content of the page memory is "I", The calculation table of FIG. 21C is used. In the calculation table of FIG. 21C, if the status of the primary determination result one pixel left is “I”, the status is “I” regardless of the status of the secondary determination result one line before, and FIG.
In (b), the missing part ("O") of the rectangular area is rewritten with "I". When the content of the page memory is "O", the operation table of FIG. 21B is used. In the case of the secondary determination, the calculation table of FIG.

【0054】・コピースキャンのフォワードスキャン時 1次判定ではAR色データ=1で、ページメモリの内容
が「M」または「I」の場合には、図21(a)の演算
表を用いて判定画素を全て「M」とし、AR色データ1
でページメモリの内容が「O」の場合には、図21
(d)の演算表が用いられ、1画素左の1次判定結果の
ステータスに拘わらず1ライン前2次判定結果のステー
タスに応じて「O」の場合は「O」、「M」の場合は
「M」、「I」の場合は「M」に置き換える判定を行
う。またAR色データ=0でページメモリが「M」また
は「I」の場合は図21(c)の演算表が用いられ、ま
た、AR色データが0でページメモリ「O」の場合は図
21(b)の演算表が用いられる。2次判定の場合は同
様に図21(e)の演算表が用いられる。
In forward scan of copy scan In the primary judgment, when AR color data = 1 and the content of the page memory is "M" or "I", judgment is made using the operation table of FIG. All pixels are set to “M” and AR color data 1
When the content of the page memory is "O" in FIG.
The calculation table of (d) is used. In the case of "O" and "M" according to the status of the one line previous secondary determination result regardless of the status of the one pixel left primary determination result. Is determined to be replaced with “M”, and in the case of “I”, replaced with “M”. When the AR color data = 0 and the page memory is “M” or “I”, the operation table in FIG. 21C is used. When the AR color data is 0 and the page memory is “O”, the operation table in FIG. The operation table of (b) is used. In the case of the secondary determination, the calculation table of FIG.

【0055】図22は1点指示モードの判定アルゴリズ
ムを説明するためのものである。1点指示モードでは、
画像の2値化データで閉ループを検出し、その閉ループ
内においてAR色データと隣接する白画像領域と、AR
色領域とを領域内部として検出するものである。1点指
示モードの場合も矩形モードの場合と同様にフォワード
スキャンによってのみ検出できる領域と、バックスキャ
ンによってのみ検出できる領域が異なるため、ページメ
モリを必要とし、フォワードスキャンでの判定結果をバ
ックスキャン方向から再度判定することにより領域の内
/外を決定する。すなわち図22(a)に示すように閉
ループの画像データの中にAR色が存在する場合、フォ
ワードスキャンにより図22(b)に示すように画像デ
ータとAR色とで決められる斜線の領域をまず認識し、
次にバックスキャンの判定により図22(b)の白の領
域が領域内部として検出されて図22(d)に示すよう
な領域が決定される。そして、コピースキャンのフォワ
ードスキャンにおいて、プリスキャンの判定結果を補正
し、図22(c)に示すように精細な領域が決定され
る。
FIG. 22 is a diagram for explaining a determination algorithm in the one-point instruction mode. In the one-point instruction mode,
A closed loop is detected from the binarized data of the image, and a white image area adjacent to the AR color data in the closed loop and the AR
The color area is detected as the inside of the area. In the case of the one-point instruction mode, the area that can be detected only by the forward scan and the area that can be detected only by the back scan are different from each other, as in the case of the rectangular mode. Is determined again to determine the inside / outside of the area. That is, when the AR color exists in the closed loop image data as shown in FIG. 22A, the hatched area determined by the image data and the AR color as shown in FIG. Recognized,
Next, by the determination of the back scan, the white area in FIG. 22B is detected as the inside of the area, and the area as shown in FIG. 22D is determined. Then, in the forward scan of the copy scan, the determination result of the pre-scan is corrected, and a fine area is determined as shown in FIG.

【0056】1点指示モードの場合に定義されるステー
タスは、画像閉ループ内でAR色を含む領域を「I」、
画像領域を「M」、画像閉ループ外領域を「O」、画像
閉ループ内だがAR色は含まない領域を「O´」として
定義し、図23に示す演算表を用いて判定を行う。
The status defined in the case of the one-point instruction mode is as follows: the area including the AR color in the image closed loop is “I”;
The image area is defined as “M”, the area outside the image closed loop is defined as “O”, and the area within the image closed loop but not including the AR color is defined as “O ′”, and the determination is performed using the calculation table shown in FIG.

【0057】・プリスキャンのフォワードスキャン時 1次判定では画像データ=1の場合、図23(a)の換
算表が用いられ、全て判定画素が「M」とされる。画像
データ=0で、AR色データ=1の場合には、図23
(b)の演算表が用いられ、1ライン前の2次判定結果
のステータス、1画素左の1次判定結果のステータスの
いずれかが「O」でない限り判定画素は「I」とされ
る。画像データ=0でAR色データ=0の場合は図23
(c)の演算表が用いられ、1ライン前の2次判定結果
のステータスが「I」の場合には1画素左の1次判定結
果のステータスが「O」でない限り判定画素は「I」と
なり、また1画素左の1次判定結果のステータスが
「I」であれば1ライン前の2次判定結果のステータス
が「O」でない限り「I」となる判定を行う。2次判定
の場合には図23(d)の演算表が用いられる。
At the time of the forward scan of the pre-scan In the primary judgment, when the image data = 1, the conversion table of FIG. 23A is used, and all the judgment pixels are set to "M". When image data = 0 and AR color data = 1, FIG.
The calculation table of (b) is used, and the determination pixel is set to “I” unless one of the status of the secondary determination result one line before and the status of the primary determination result to the left of the pixel is “O”. 23 when image data = 0 and AR color data = 0
The calculation table of (c) is used, and when the status of the secondary determination result one line before is “I”, the determination pixel is “I” unless the status of the primary determination result one pixel left is “O”. If the status of the primary determination result one pixel to the left is “I”, it is determined that the status of the secondary determination result one line before is “I” unless the status is “O”. In the case of the secondary determination, the calculation table of FIG. 23D is used.

【0058】・プリスキャンのバックスキャン時 1次判定においてはページメモリの内容が「M」の場
合、図23(a)の演算表が用いられ、全て判定画素は
「M」とされ、ページメモリが「I」の場合には図23
(b)の演算表が用いられ、ページメモリ「O」の場合
には図23(c)の演算表が用いられる。2次判定は図
23(d)の演算表が同様に用いられる。2次判定の場
合には図23(d)の演算表が用いられる。
At the time of the back scan of the prescan In the primary judgment, when the content of the page memory is "M", the operation table of FIG. 23A is used, and all the judgment pixels are set to "M". 23 is "I"
The operation table of FIG. 23B is used, and in the case of the page memory “O”, the operation table of FIG. 23C is used. For the secondary determination, the calculation table in FIG. In the case of the secondary determination, the calculation table of FIG. 23D is used.

【0059】・コピースキャンのフォワードスキャン時 1次判定において、画像データ=1の場合には図23
(a)の演算表が用いられて全て判定画素は「M」とさ
れ、画像データ=0でページメモリの内容が「I」の場
合には図23(b)の演算表が用いられて、1ライン前
の2次判定結果のステータスが「O」、1画素左の1次
判定結果のステータスが「O」の場合以外は全て判定画
素は「I」とされる。また、画像データ=0でページメ
モリが「I」でない場合には図23(c)が用いられ、
1ライン前の2次判定結果のステータスが「I」であれ
ば、1画素左の1次判定結果のステータスが「O」でな
い限り判定画素は「I」となり、1画素左の1次判定結
果のステータスが「I」であれば、1ライン前の2次判
定結果のステータスが「O」でない限り判定画素は
「I」とされる。2次判定の場合には図23(d)の演
算表が用いられる。
At the time of forward scan of copy scan In the primary judgment, when image data = 1, FIG.
Using the operation table of (a), all the judgment pixels are set to “M”, and when the image data = 0 and the content of the page memory is “I”, the operation table of FIG. Unless the status of the secondary determination result one line before is “O” and the status of the primary determination result one pixel left is “O”, all the determination pixels are “I”. When image data = 0 and the page memory is not “I”, FIG. 23C is used,
If the status of the secondary determination result one line before is “I”, the determination pixel is “I” unless the status of the primary determination result one pixel left is “O”, and the primary determination result one pixel left is Is “I”, the determination pixel is “I” unless the status of the secondary determination result one line before is “O”. In the case of the secondary determination, the calculation table of FIG. 23D is used.

【0060】このように本発明においては複数のARモ
ードが備えられ、それらはアルゴリズムを変更(演算表
の選択)するだけで任意に選択でき、また2つの指定色
に対して独立に領域認識でき、それぞれの指定色に対し
て別々の領域認識モードを選択することができるので、
例えば第1AR色を青として自由型モードとし、第2A
R色を緑として矩形モードとすること等が可能である。
As described above, in the present invention, a plurality of AR modes are provided, which can be arbitrarily selected only by changing the algorithm (selection of an operation table), and can independently recognize an area for two designated colors. , You can select a different area recognition mode for each specified color,
For example, the first AR color is blue, the free mode is set, and the second AR
For example, it is possible to set the R color to green and set a rectangular mode.

【0061】[0061]

【発明の効果】以上のように本発明によればメモリ容量
を増大せずに領域判定の精度を向上させることができる
と共に、領域判定処理がプリスキャンとコピースキャン
の動作内で終了するので、領域判定の時間を別途必要と
しないため、処理時間を短縮すると共に高価な回路を必
要とせず、生産性を向上させることも可能となる。
As described above, according to the present invention, the accuracy of area determination can be improved without increasing the memory capacity, and the area determination processing is completed within the prescan and copy scan operations. Since the time for the area determination is not separately required, the processing time can be shortened, and an expensive circuit is not required, and the productivity can be improved.

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

【図1】本発明の領域認識回路の構成を示す図である。FIG. 1 is a diagram showing a configuration of an area recognition circuit of the present invention.

【図2】本発明が適用される全体の構成を示すブロック
図である。
FIG. 2 is a block diagram showing an overall configuration to which the present invention is applied.

【図3】領域認識回路と編集・加工回路との具体的な構
成を示す図である。
FIG. 3 is a diagram showing a specific configuration of an area recognition circuit and an editing / processing circuit.

【図4】領域認識回路の構成を示す図である。FIG. 4 is a diagram illustrating a configuration of an area recognition circuit.

【図5】図4のARイネーブル回路のブロック図であ
る。
FIG. 5 is a block diagram of an AR enable circuit of FIG. 4;

【図6】ARモードを説明するための図である。FIG. 6 is a diagram for explaining an AR mode.

【図7】プリスキャンのフォワードスキャン時における
処理を説明する図である。
FIG. 7 is a diagram for explaining processing at the time of a forward scan of a pre-scan;

【図8】プリスキャンのバックスキャン時における処理
を説明する図である。
FIG. 8 is a diagram for explaining processing during a back scan of a pre-scan;

【図9】コピースキャンのフォワードスキャン時の処理
を説明する図である。
FIG. 9 is a view for explaining processing at the time of forward scan of copy scan.

【図10】1次判定を説明する図である。FIG. 10 is a diagram illustrating a primary determination.

【図11】2次判定を説明する図である。FIG. 11 is a diagram illustrating secondary determination.

【図12】副走査方向Mライン、主走査方向N番目の画
素の判定を説明する図である。
FIG. 12 is a diagram illustrating determination of an Mth pixel in the sub-scanning direction and an Nth pixel in the main scanning direction.

【図13】領域認識方法を説明する図である。FIG. 13 is a diagram illustrating an area recognition method.

【図14】入力補正を説明する図である。FIG. 14 is a diagram illustrating input correction.

【図15】連結補正を説明する図である。FIG. 15 is a diagram illustrating the connection correction.

【図16】自由型モードを説明する図である。FIG. 16 is a diagram illustrating a free mode.

【図17】判定方法を説明する図である。FIG. 17 is a diagram illustrating a determination method.

【図18】自由型モードで使用する演算表を示す図であ
る。
FIG. 18 is a diagram showing an operation table used in a free mode.

【図19】ぬりつぶしモードを説明する図である。FIG. 19 is a diagram for explaining a painting mode.

【図20】矩形モードを説明する図である。FIG. 20 is a diagram illustrating a rectangular mode.

【図21】矩形モードで使用する演算表を示す図であ
る。
FIG. 21 is a diagram showing an operation table used in the rectangular mode.

【図22】1点指示モードを説明する図である。FIG. 22 is a diagram illustrating a one-point instruction mode.

【図23】1点指示モードで使用する演算表を示す図で
ある。
FIG. 23 is a diagram showing a calculation table used in the one-point instruction mode.

【図24】従来の走査光学系及び領域認識について説明
する図である。
FIG. 24 is a diagram illustrating a conventional scanning optical system and area recognition.

【図25】従来のエディタパッドを説明する図である。FIG. 25 is a diagram illustrating a conventional editor pad.

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

1…制御手段、2…走査タイミング発生手段、3…入力
処理手段、4…判定処理手段、5…出力処理手段、6…
メモリ。
DESCRIPTION OF SYMBOLS 1 ... Control means, 2 ... Scan timing generation means, 3 ... Input processing means, 4 ... Determination processing means, 5 ... Output processing means, 6 ...
memory.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 読み取った画像データから色分離して領
域認識色データを取り込み、領域認識を行う記録装置に
おいて、プリスキャンのフォワードスキャン、プリスキ
ャンのバックスキャンおよびコピースキャンの走査タイ
ミングを発生する走査タイミング発生手段と、該走査タ
イミング発生手段からのタイミング信号に同期したプリ
スキャンのフォワードスキャンで領域認識色データを
い間隔で取り込み、領域判定しながら結果をメモリにセ
ーブし、プリスキャンのバックスキャンで、前記フォワ
ードスキャン時にセーブしたメモリの内容を逆方向から
読み出して領域判定しながら結果をメモリにセーブし、
コピースキャン時に細かい間隔で取り込んだ領域認識色
データにより前記バックスキャン時にセーブしたメモリ
の内容を補正する判定処理手段とを備えたことを特徴と
する記録装置の領域認識方式。
1. A recording apparatus for performing color separation from read image data, capturing area recognition color data, and performing area recognition, wherein a scan that generates scanning timings of a pre-scan forward scan, a pre-scan back scan, and a copy scan. Timing generating means and pre-scanning forward scan synchronized with a timing signal from the scanning timing generating means for coarsely recognizing the area recognition color data;
There uptake at intervals, the results while determining regions saved in the memory, the back scan prescan, the Foix
Read the contents of the memory saved at the time of code scan from the reverse direction and save the result in the memory while judging the area,
An area recognition method for a recording apparatus, comprising: determination processing means for correcting the contents of the memory saved at the time of the back scan with the area recognition color data captured at fine intervals during the copy scan.
JP3008674A 1991-01-28 1991-01-28 Recording device area recognition method Expired - Fee Related JP2985303B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3008674A JP2985303B2 (en) 1991-01-28 1991-01-28 Recording device area recognition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3008674A JP2985303B2 (en) 1991-01-28 1991-01-28 Recording device area recognition method

Publications (2)

Publication Number Publication Date
JPH05328093A JPH05328093A (en) 1993-12-10
JP2985303B2 true JP2985303B2 (en) 1999-11-29

Family

ID=11699482

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3008674A Expired - Fee Related JP2985303B2 (en) 1991-01-28 1991-01-28 Recording device area recognition method

Country Status (1)

Country Link
JP (1) JP2985303B2 (en)

Also Published As

Publication number Publication date
JPH05328093A (en) 1993-12-10

Similar Documents

Publication Publication Date Title
JP3221085B2 (en) Parallel processing unit
US4899227A (en) Image processing apparatus detecting the size or position of an information portion of an original
US7483176B2 (en) Image processing apparatus and method
US4905095A (en) Image processing apparatus
JPH0646255A (en) Picture processing unit
JPH05328094A (en) Method and device for picture processing
EP0350919B1 (en) Color image processing apparatus
US5592304A (en) Image processing system in which overlapping image data is deleted from a frame memory
US5666207A (en) Image processing apparatus
JP2985303B2 (en) Recording device area recognition method
JPH0638028A (en) Image reader
JPH04356867A (en) Area recognizing system for recorder
JP2537192B2 (en) Image playback device
JPH05328092A (en) Area recognition system for recorder
JPH04356868A (en) Area recognizing system for recorder
JP2812401B2 (en) Image processing device
JPH04339467A (en) Area recognition system for recorder
JP2859903B2 (en) Image editing device
JP2697860B2 (en) Image processing device
JP2728645B2 (en) Image magnification device
JPH0648850B2 (en) Image processing method
JP2547748B2 (en) Image processing device
JPH0638021A (en) Color image processor
JP3382247B2 (en) Image processing system
JP3230286B2 (en) Image processing device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees