JPS61214865A - Picture processing device - Google Patents

Picture processing device

Info

Publication number
JPS61214865A
JPS61214865A JP60057896A JP5789685A JPS61214865A JP S61214865 A JPS61214865 A JP S61214865A JP 60057896 A JP60057896 A JP 60057896A JP 5789685 A JP5789685 A JP 5789685A JP S61214865 A JPS61214865 A JP S61214865A
Authority
JP
Japan
Prior art keywords
image
value
peak
picture
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP60057896A
Other languages
Japanese (ja)
Other versions
JPH0636553B2 (en
Inventor
Masanori Yamada
山田 昌敬
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 JP60057896A priority Critical patent/JPH0636553B2/en
Publication of JPS61214865A publication Critical patent/JPS61214865A/en
Priority to US07/595,634 priority patent/US5065257A/en
Publication of JPH0636553B2 publication Critical patent/JPH0636553B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Image Input (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To eliminate bad influences of dirt, dust, etc. other than an original picture by detecting the picture density levels of the original picture and invalidating levels higher or lower than a prescribed level out of detected picture density levels. CONSTITUTION:A CPU 211 consisting of a microcomputer takes in picture signals from latches 205 and 208 synchronously with a synchronizing signal MS for every one main scanning line to detect the lowest density level (white peak) and the highest density level (black peak) of each main scanning line. By this constitution, picture density levels of the original are detected to process the picture signal obtained by reading the original on a basis of detected picture density levels, and levels higher or lower than a prescribed level out of detected picture density levels are invalidated to eliminate effectively band influences due to dirt, dust, etc. other than the original picture, and an optimum picture processing is performed.

Description

【発明の詳細な説明】 〔技術分野〕 本発明は原稿画像を電気的に処理する画像処理装置に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to an image processing device that electrically processes a document image.

〔従来技術〕[Prior art]

従来、ファクシミリ等の原稿画像を光電的に読取り、そ
の読取り画像信号を電気的に処理する画像処理装置が提
案されている。この様な画像処理装置においては、信号
処理の容易さや外部雑音の影響に対する強さ等の長所を
もったデジタル処理が最近では一般的になりつつある。
2. Description of the Related Art Conventionally, image processing apparatuses have been proposed that photoelectrically read an image of a document such as a facsimile and electrically process the read image signal. In such image processing apparatuses, digital processing has recently become common, as it has advantages such as ease of signal processing and resistance to the influence of external noise.

従って、原稿画像を正確にデジタル画像信号に変換する
必要がある。
Therefore, it is necessary to accurately convert the original image into a digital image signal.

ところで、読取るべき原稿画像の状態(濃度やサイズ等
)は多種多様であり、これら全ての原稿画像に対して同
一の処理によって対処することは不可能である。そこで
、原稿画像の状態をオペレータが判断し、これによって
画像処理動作を調整する様な構成がとられている。しか
しながら、その調整動作は煩わしく、誤った調整により
良好な画像処理が実行できない場合もある。
By the way, the conditions (density, size, etc.) of original images to be read vary widely, and it is impossible to handle all these original images with the same processing. Therefore, a configuration is adopted in which an operator determines the state of the document image and adjusts the image processing operation based on this judgment. However, the adjustment operation is troublesome, and there are cases where good image processing cannot be performed due to incorrect adjustment.

そこで、読取るべき原稿画像の状態を検出する機能を設
け、この検出結果に従って、原稿画像に応じた画像処理
動作を自動的に実行することが考えられる。これによる
と、前述の様なオペレータの調整の手間が省け、また、
装置に不慣れなオペレータによってもある程度良好な画
像処理が可能となるものである。
Therefore, it is conceivable to provide a function to detect the state of the document image to be read and automatically execute an image processing operation according to the document image according to the detection result. According to this, the operator's adjustment effort as mentioned above can be saved, and
Even an operator unfamiliar with the apparatus can perform image processing to a certain degree.

しかしながら、この様な自動処理において例えば原稿の
画像濃度を検出し、検出した画像濃度に基づいて原稿画
像のデジタル化動作を行なう場合、原稿以外の汚れやご
み等を原稿画像として誤って検出し、これによりデジタ
ル化動作が正確になされない等の不都合を生じることも
ある。
However, in such automatic processing, for example, when the image density of a document is detected and the document image is digitized based on the detected image density, dirt, dust, etc. other than the document may be mistakenly detected as the document image. This may cause inconveniences such as the digitization operation not being performed accurately.

〔目  的〕〔the purpose〕

本発明は以上の点に鑑みてなされたもので、読取るべき
原稿画像の状態に適した画像処理を自動的に行なうとと
もに、この自動処理における不都合を除去し、最適な画
像処理を実行可能な画像処理装置を提供することを目的
とする。
The present invention has been made in view of the above points, and it is possible to automatically perform image processing suitable for the condition of a document image to be read, and to eliminate inconveniences in this automatic processing, thereby creating an image that can be subjected to optimal image processing. The purpose is to provide processing equipment.

〔実施例〕〔Example〕

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

第1図は本発明が適用できる原稿読取装置の該略図であ
る。原稿カバー110により押えられ、原稿台lot上
に置かれた原稿102の画像情報を読取る為に、数千個
の受光素子からなるCCDラインセンサ等の撮像素子1
03が使用され、光源104からの照明光が原稿102
面上で反射されて、ミラー105゜106.107を介
してレンズ108により撮像素子103上に結像される
。光源104.ミラー105とミラー106,107は
2:lの相対速度で移動するようになっている。この光
源104及びミラー105,106,107よりなる光
学ユニットはDCサーボモータ109によってPLL制
御をかけながら一定速度で往復移動する。この移動速度
は左から右への往路では読取り倍率に応じて90mm/
secから360mm/secまで可変であり、右から
左への復路では常に630mm/secである。
FIG. 1 is a schematic diagram of a document reading device to which the present invention is applicable. In order to read the image information of the original 102 held by the original cover 110 and placed on the original platen lot, an image sensor 1 such as a CCD line sensor consisting of several thousand light receiving elements is used.
03 is used, and the illumination light from the light source 104 illuminates the original 102.
It is reflected on the surface and is imaged onto the image sensor 103 by the lens 108 via the mirrors 105, 106, and 107. Light source 104. Mirror 105 and mirrors 106 and 107 are configured to move at a relative speed of 2:l. This optical unit consisting of the light source 104 and mirrors 105, 106, and 107 is reciprocated at a constant speed under PLL control by a DC servo motor 109. The moving speed is 90mm/90mm depending on the reading magnification on the outward path from left to right.
sec to 360 mm/sec, and is always 630 mm/sec on the return journey from right to left.

この光学ユニットの移動する方向を副走査方向と呼び、
この副走査方向に直交する主走査ラインを撮像素子によ
り16pefL/mmの解像度で読取りながら(主走査
)光学ユニットを左端から右端まで往動させた後、再び
左端まで復動させて1回の走査を終える0以上の動作に
より、原稿台101に、載置された原稿102の全面が
、lライン毎に順次読取られ、撮像素子103からはl
ライン毎に読取画像の濃度を示すアナログ画信号が繰返
し出力される。
The direction in which this optical unit moves is called the sub-scanning direction.
While reading the main scanning line perpendicular to the sub-scanning direction with a resolution of 16 pefL/mm using the image sensor (main scanning), the optical unit is moved forward from the left end to the right end, and then moved back to the left end to perform one scan. By the zero or more operations that complete the process, the entire surface of the document 102 placed on the document table 101 is sequentially read every l line, and the image sensor 103 reads l lines.
An analog image signal indicating the density of the read image is repeatedly output for each line.

第2図に撮像素子103からのアナログ画信号を処理す
る回路の概略のブロック図を示す。
FIG. 2 shows a schematic block diagram of a circuit that processes analog image signals from the image sensor 103.

撮像素子103で読取られた画信号VDはA/Dコンバ
ータ201で各画素の画像濃度をデジタル的に示す6ビ
ツトのデジタル信号に変換さレル。A/Dコンバータ2
01のデジタル信号出力はラッチ202を介して撮像素
子1O93から画信号を読出すための画像データクロッ
クに同期してラッチ203、コン丸レータ204゜20
7、ラッチ205.208に6ビツトパラレルに送られ
る。
The image signal VD read by the image sensor 103 is converted by the A/D converter 201 into a 6-bit digital signal that digitally represents the image density of each pixel. A/D converter 2
The digital signal output of 01 is synchronized with the image data clock for reading out the image signal from the image sensor 1O93 via the latch 202, and is output to the latch 203 and the converter lator 204.
7, sent in 6-bit parallel to latches 205 and 208.

コンパレータ204ではラッチ202から送られてきた
6ビツトの画信号とラッチ203から送られてきたlク
ロック前の6ビツトの画信号を比較して、もしラッチ2
02から送られてきた新しい画信号の方が小さければ、
アンドゲート206ヘコンパレート出力を出す。アンド
ゲート206はコンパレータ204からのコンパレート
出力をサンプリングクロックSCLと同期させてラッチ
205へ送る。
The comparator 204 compares the 6-bit image signal sent from the latch 202 with the 6-bit image signal sent from the latch 203 l clock ago, and if the latch 202
If the new image signal sent from 02 is smaller,
A comparison output is output to the AND gate 206. AND gate 206 sends the comparison output from comparator 204 to latch 205 in synchronization with sampling clock SCL.

コンパレータ207ではコンパレータ204と同様にラ
ッチ202から送られてきた6ビツトの画信号とラッチ
203から送られてきた1グロツク前の6ビツトの画信
号を比較して、もしラッチ202から送られてきた新し
い画信号の方が大きければ、アンドゲート209ヘコン
パレート出力を出す、アンドゲート209はコンパレー
タ207からのコンパレート出力をサンプリングクロッ
クSCL同期させてラツチ208へ送る。
Similar to the comparator 204, the comparator 207 compares the 6-bit image signal sent from the latch 202 with the 6-bit image signal sent from the latch 203 one clock ago, and determines whether the 6-bit image signal sent from the latch 202 If the new image signal is larger, a comparison output is sent to the AND gate 209. The AND gate 209 synchronizes the comparison output from the comparator 207 with the sampling clock SCL and sends it to the latch 208.

ラッチ205.208は夫々アンドゲート206.20
9よりコンパレート出力を受けるとラッチ202から送
られてきた6ビツトの画信号をラッチし、CPU211
へ送る0以上により、ラッチ205,207には夫々そ
れ迄に入力した画信号の最小値、最大値がラッチされる
ことになる。
Latches 205, 208 and gates 206, 20 respectively
When the comparator output is received from 9, the 6-bit image signal sent from the latch 202 is latched, and the CPU 211
By sending 0 or more to latches 205 and 207, the minimum and maximum values of the image signals inputted up to that point are latched, respectively.

尚、アンドゲート206,209には、コンパレート出
力とサンプリングクロックSCLの他に、撮像素子10
3からの画信号の各ラインの有効区間を示すイネプル信
号ENが入力される。従って、主走査ライン毎の所定区
間の画信号に対するコンパレート結果をラッチ205゜
208からCPU211に送るようになっている。
In addition to the comparator output and the sampling clock SCL, the AND gates 206 and 209 also include the image sensor 10.
An input signal EN indicating the valid section of each line of the image signal from No. 3 is input. Therefore, the comparison results for the image signals in a predetermined section for each main scanning line are sent from the latches 205 and 208 to the CPU 211.

マイクロコンピュータよりなるCPU211は、主走査
lライン毎の同期信号MSに同期してラッチ205.2
08からの画信号をとりこむことで、各主走査ラインの
最も低い濃度レベル(以下白ピークと呼ぶ)と、最も高
い濃度レベル(以下黒ピークと呼ぶ)を検出できる。
A CPU 211 consisting of a microcomputer operates a latch 205.2 in synchronization with a synchronization signal MS for each main scanning line.
By taking in the image signal from 08, the lowest density level (hereinafter referred to as white peak) and the highest density level (hereinafter referred to as black peak) of each main scanning line can be detected.

CPU211は各ライン毎に検出した白ピークと黒ピー
クをもとにROM212に予じめ格納されたプログラム
に従って後述するアルゴリズムでスライスレベルを決定
し、コンパレータ210に送る。コンパレータ210で
はラッチ203からの6ビツトの画信号とCPU211
からの6ビツトのスライスレベルを比較し、各画素毎の
白/黒を示すz値化信号(画像データVIDEO)を生
成する。
Based on the white peak and black peak detected for each line, the CPU 211 determines a slice level using an algorithm described later according to a program stored in advance in the ROM 212, and sends the slice level to the comparator 210. The comparator 210 receives the 6-bit image signal from the latch 203 and the CPU 211.
A z-valued signal (image data VIDEO) indicating white/black of each pixel is generated by comparing the 6-bit slice levels from .

尚、座標検出部215は原稿読取装置の原稿台101上
に載置された原稿の原稿台lot上における座標(位置
)を検出するものである。
Note that the coordinate detection unit 215 detects the coordinates (position) on the document table lot of the document placed on the document table 101 of the document reading device.

また、214は第1図示の原稿読取装置の上面に設けら
れた操作表示部、213はCPU211の演算データを
一時格納するメモリRAMである。
Further, 214 is an operation display section provided on the top surface of the document reading device shown in the first diagram, and 213 is a memory RAM that temporarily stores calculation data of the CPU 211.

第3図は原稿読取装置(第1図)の原稿台101上に原
稿が置かれている状態を示す。
FIG. 3 shows a state in which a document is placed on the document table 101 of the document reading device (FIG. 1).

この場合原稿台101上の基準座標SPから主走査方向
をX、副走査方向をYとした時の4点の座標(Xr、Y
t)、(X2.Y2)、(X3.Y3)、(X4 、Y
4)を光学系ヲ前走査して検出する。原稿の置かれてい
る領域外の画像データは必ず黒データになる様に、原稿
カバー110(第1図)が鏡面処理されている。前走査
はガラス面全域を行うべく、主走査、副走査を行う。
In this case, the coordinates of four points (Xr, Y
t), (X2.Y2), (X3.Y3), (X4, Y
4) is detected by scanning the optical system forward. The document cover 110 (FIG. 1) is mirror-finished so that image data outside the area where the document is placed is always black data. The pre-scanning includes main scanning and sub-scanning to cover the entire glass surface.

第4図に座標検出部215の詳細な回路構成を示す0図
中、主走査カウンタ351はダウンカウンタであり、主
走査1ライン中における走査位置を表わす、このカウン
タは水平同期信号H3YNCで主走査方向(X方向)の
最大値にセットされ画像データクロックCLKが入力さ
れる毎にカウントダウンする。副走査カウンタ352は
アップカウンタでありVSYNC(画像先端信号)の立
ち上りで“0”にリセットされ、H5YNC信号でカウ
ントアツプし、副走査方向における走査位置を表わす。
In FIG. 4, which shows the detailed circuit configuration of the coordinate detection unit 215, the main scanning counter 351 is a down counter, and represents the scanning position in one main scanning line. It is set to the maximum value in the direction (X direction) and counts down every time the image data clock CLK is input. The sub-scanning counter 352 is an up counter, which is reset to "0" at the rising edge of VSYNC (image leading edge signal), counts up at the H5YNC signal, and represents the scanning position in the sub-scanning direction.

前走査時において、コンパレータ210により2値化さ
れた画像データVIDEOはシフト・レジスタ301に
8ビット単位で入力される。尚、前走査時にはCPU2
11はコンパレータ210に対して予じめ定められた固
定スライスレベルを供給する。8ビツト入力が完了した
時点で、ゲート回路302はシフト◆レジスタ310の
8ビツトデータの全てが自画像  ・(θレベル)かの
チェックを行ない、全て白画像ならば信号ライン303
に1を出力する。
During pre-scanning, the image data VIDEO binarized by the comparator 210 is input to the shift register 301 in 8-bit units. In addition, during pre-scanning, CPU2
11 supplies a predetermined fixed slice level to comparator 210. When the 8-bit input is completed, the gate circuit 302 shifts ◆Checks whether all the 8-bit data in the register 310 is a self-image (θ level), and if all is a white image, the signal line 303
Outputs 1 to .

原稿の前走査開始後、最初の8ビツト白が現われた時F
/F Cフリップフロップ)304が−t=’/ )す
る、 このF/F304はVSYNC(往動開始時に出
力される画像先端信号)によって予じめリセットされて
いる。以後、次のVSYNCの来るまでセットし放しで
ある。主走査カウンタ351はコンパレータ210から
の画像データの各画素出力に同期したクロックにより、
ダウンカウンタするもので、F/F304がセットした
時点でラッチ305&こその時の主走査カウンタ351
の値がロードされる。これがx1座標値になる。又副走
査カウンタ352はlライン毎の走査に同期した信号を
アップカウントするもので、ラッチ306にF/F30
4がセットした時の副走査カウンタ352の値(ライン
数)がロードされる。
F when the first 8-bit white appears after starting pre-scanning of the original.
/FC flip-flop) 304 performs -t='/). This F/F 304 is reset in advance by VSYNC (image leading edge signal output at the start of forward movement). After that, it is left set until the next VSYNC comes. The main scanning counter 351 uses a clock synchronized with each pixel output of image data from the comparator 210.
It is a down counter, and when the F/F 304 is set, the latch 305 & main scanning counter 351 at that time
The value of is loaded. This becomes the x1 coordinate value. Further, the sub-scanning counter 352 counts up the signal synchronized with the scanning of every l line, and the latch 306 is connected to the F/F 30.
The value (number of lines) of the sub-scanning counter 352 when 4 is set is loaded.

これがY1座標値になる。従ってPl(Xt。This becomes the Y1 coordinate value. Therefore Pl(Xt.

Yl)が求まる。Yl) is found.

又、信号303に1が出力する度に主走査カウンタ35
1からの値をラッチ307にロードする。最初の8ビツ
トの白が現われた時の主走査カウンタ351からの値が
ラッチ307にロードされると、ラッチ310(これは
vSYNC時点でX方向の最大値にされている)のデー
タとコンパレータ309で大小比較される。もしラッチ
307のデータの方が小ならばラッチ307のデータが
ラッチ310にロードされる。又、この時副走査カウン
タ352の値がラッチ311にロードされる。この動作
は次の8ビツトがシフトφレジスタ301に入る迄に処
理される。この様にラッチ307とラッチ310のデー
タ比較を全画像領域について行なえば、ラッチ310に
は原稿領域X方向の最小値が残り、この時のY方向の座
標がラッチ311に残ることになる。即ち、主走査カウ
ンタ351はダウンカウンタなので、X方向の最小値に
対応する座標は、主走査方向でSPから一番近い座標を
表わす、これがP2 (X2 。
Also, each time 1 is output to the signal 303, the main scanning counter 35
Load the value from 1 into latch 307. When the value from the main scan counter 351 when the first 8-bit white appears is loaded into the latch 307, the data in the latch 310 (which is set to the maximum value in the X direction at the time of vSYNC) and the comparator 309 are loaded. are compared in size. If the data in latch 307 is smaller, the data in latch 307 is loaded into latch 310. Also, at this time, the value of the sub-scanning counter 352 is loaded into the latch 311. This operation is processed until the next 8 bits enter the shift φ register 301. If data comparison between the latch 307 and the latch 310 is performed for the entire image area in this way, the minimum value of the original area in the X direction remains in the latch 310, and the coordinate in the Y direction at this time remains in the latch 311. That is, since the main scanning counter 351 is a down counter, the coordinate corresponding to the minimum value in the X direction represents the coordinate closest to SP in the main scanning direction, which is P2 (X2).

Y2)座標である。Y2) coordinates.

F/F312は各主走査ライン毎に最初に8ビツト白が
現われた時点でセットするF/Fで水平同期信号H5Y
NCでリセットされ最初の8ビツト白でセットし、次の
H3YNCまで保持する。このF/F312がセットす
る時点で1ライン中で最初に現われた白信号の位置に相
当する主走査カウンタ351の値をラッチ313にセッ
トする。そしてラッチ315の値とコンパレータ316
で大小比較される。ラッチ315にはVSYNC発生時
点でX方向の最小値即ちOがプリセットされている。も
しラッチ315のデータの方がラッチ313のデータよ
り小さいか等しいならば信号317がアクティブになり
ラッチ313のデータがラッチ315にロードされる。
F/F 312 is an F/F that is set when 8-bit white appears for the first time in each main scanning line, and the horizontal synchronizing signal H5Y is set.
It is reset by NC and the first 8 bits are set to white and held until the next H3YNC. At the time when the F/F 312 is set, the value of the main scanning counter 351 corresponding to the position of the first white signal appearing in one line is set in the latch 313. and the value of latch 315 and comparator 316
are compared in size. The latch 315 is preset to the minimum value in the X direction, ie, O at the time VSYNC occurs. If the data in latch 315 is less than or equal to the data in latch 313, signal 317 becomes active and the data in latch 313 is loaded into latch 315.

この動作はH3YNC−H3YNC間で行なわれる0以
上の比較動作を全面像領域について行なうとラッチ31
5には原稿座標のX方向の最大値、即ち、主走査方向で
、走査開始点から一番遠い点からの白信号のX座標が残
ることになる。これがx3である。又、信号ライン31
7が出力する時、副走査からの値がラッチ318にロー
ドされる。
This operation is performed by latch 31 when the comparison operation of 0 or more between H3YNC and H3YNC is performed for the entire image area.
5 remains the maximum value of the document coordinates in the X direction, that is, the X coordinate of the white signal from the point farthest from the scanning start point in the main scanning direction. This is x3. Also, the signal line 31
7 outputs, the value from sub-scan is loaded into latch 318.

コレがY 3 ニナリ、P3 (X3 、Y3)が得ら
れる。
This is Y 3 Ninari, and P3 (X3, Y3) is obtained.

ラッチ319と320は全面像領域において8ビツト白
が現われる度にその時の主走査カウンタの値と副走査カ
ウンタの値がロードされる。従って、原稿前走査完了時
では最後に8ビツト白が現われた時点でのカウント値が
カウンタに残っていることになる。これがP4(X4.
Y4)である。
Latches 319 and 320 are loaded with the current main scanning counter value and sub-scanning counter value each time 8-bit white appears in the entire image area. Therefore, when the document pre-scanning is completed, the count value at the time when 8-bit white appears last remains on the counter. This is P4 (X4.
Y4).

以上の8つのラッチ(306,311゜320.318
,305,310.31’5゜319)のデータライン
はCPU211のlくスラインBUSに接続され、CP
U211は前走査における往動終了時にこのデータを読
み込むことになる。
The above 8 latches (306,311°320.318
, 305, 310.31'5゜319) are connected to the line BUS of the CPU 211.
U211 reads this data at the end of the forward movement in the previous scan.

第5図に原稿読取リシーケンスのフローチャートを示す
、尚、ステップ501〜507が前走査に関する。まず
、ステップ501において光学ユニットは第1図の左端
から右端まで往動走査を行なって先に述べたように第4
図示の座標検出部215によって原稿台101上の原稿
の座標を検出し、その検出した各座標データを取込む。
FIG. 5 shows a flowchart of the document reading resequence, and steps 501 to 507 relate to pre-scanning. First, in step 501, the optical unit performs forward scanning from the left end to the right end in FIG.
The illustrated coordinate detection unit 215 detects the coordinates of the document on the document table 101, and captures each detected coordinate data.

次にステップ502において、2値化のためのスライス
レベル決定のためのピーク値をサンプルすべきエリアを
ステップ501で検出した座標データから算出する0例
えば、第3図の斜線部のように置かれた原稿について検
出した座標から、この原稿のピーク値サンプリングエ1
ノァとして、Y3 、y2及び、Xt、X4でIQ1*
れる長方形エリアを選択する。それは、通常原稿は原稿
台に極力平行に載置されるものであり、また、たとえ第
3図のように多少傾いて載置されても原稿外の不要な情
報を原稿からのデータとして誤まってひろうおそれはな
いからである。尚、当然能の方法でサンプリングエリア
を決定してもよい。
Next, in step 502, the area in which the peak value for determining the slice level for binarization should be sampled is calculated from the coordinate data detected in step 501. From the coordinates detected for the original, the peak value sampling error 1 of this original is calculated.
As Noah, IQ1* at Y3, y2 and Xt, X4
Select the rectangular area that will be displayed. This is because the original is usually placed as parallel as possible to the original table, and even if it is placed at a slight angle as shown in Figure 3, unnecessary information from outside the original will not be mistaken as data from the original. This is because there is no danger of it being stolen. Of course, the sampling area may be determined using any other method.

第6図から分かるように原稿座標検出を終えると光学系
は副走査方向Ymaxの点にある。
As can be seen from FIG. 6, when the document coordinate detection is completed, the optical system is at a point in the sub-scanning direction Ymax.

この時点で、ピーク値サンプリング開始点Y2と終了点
Y3が分かっているので、第51!i!Iのステップ5
04と505及び506を実行するスケジュールをたて
ることができる。
At this point, the peak value sampling start point Y2 and end point Y3 are known, so the 51st! i! Step 5 of I
04, 505, and 506 can be scheduled to be executed.

すなわち、ステップ503において復動を開始したらC
PU211は距離(Ymax−Y2)相当分だけ主走査
ライン同期信号を数えた後、第2図で前述した自ピーク
値/黒ピーク値の検出を開始し、さらにその点から距離
(Y2−Y3)相当分だけ主走査ライン同期信号を数え
たならば、ピーク値の検出を終了し。
That is, when the return movement is started in step 503, C
After counting the main scanning line synchronization signals for the distance (Ymax-Y2), the PU211 starts detecting the self-peak value/black peak value described above in FIG. 2, and then calculates the distance (Y2-Y3) from that point. After counting the main scanning line synchronization signals for a corresponding number of times, peak value detection is finished.

さらに距111Y3相当分だけ主走査ライン同期信号を
数えた後、復動を停止する。
Further, after counting the main scanning line synchronization signals for the distance 111Y3, the backward movement is stopped.

またステップ504においてピーク値検出開始時には、
先に述べたイネプル信号ENを第6図のように検出座標
Xi、X4に対応して出力する様に設定しておくことは
いうまでもない。
Furthermore, when starting peak value detection in step 504,
Needless to say, the above-mentioned energy pull signal EN is set to be output in correspondence with the detection coordinates Xi and X4 as shown in FIG.

以上の動作で、原稿台101上の任意の位置に置かれた
原稿内の主走査ライン毎の画像濃度の自ピークと黒ピー
クを確実検出でき、原稿カバー等の原稿以外のものによ
りその検出動作が左右されることを防止する。
With the above operation, it is possible to reliably detect the self-peak and black peak of the image density for each main scanning line in the document placed at any position on the document table 101, and the detection operation can be performed using something other than the document, such as the document cover. to prevent it from being influenced.

次に2値化のためのスライスレベル決定のアルゴリズム
について説明する。
Next, an algorithm for determining slice levels for binarization will be explained.

前述した手順により、CPU211は原稿領域内から各
主走査ライン毎に黒ピーク値と自ピーク値をとりこむ、
今、第i主走査うイン上の黒ピークをBPi、自ピーク
をWPlとすると、画像データは6ビツト値であるから
各々”” (HEX)から3F(HEX)までのいずれ
かの値をとり、かつBPI≧WP1である。
According to the procedure described above, the CPU 211 takes in the black peak value and the self-peak value for each main scanning line from within the document area.
Now, if the black peak on the i-th main scanning line is BPi and the own peak is WPi, since the image data is a 6-bit value, each takes a value from "" (HEX) to 3F (HEX). , and BPI≧WP1.

CPU211はRAM213内に用意された64×2バ
イトの黒ピークヒストグラム用エリアと64×2バイト
の自ピークヒストグラム用エリア内の2バイトエリアH
B (J)、HW(j)の内容のうち検出したデータB
PlとWPiに対応したエリアを各々1つずつカウント
アツプする。そして1次の主走査ライン同期信号MSを
待ち、第f+1ラインからのデータBPi41とWPi
+1をとりこんで、再びヒストグラムの対応エリアをカ
ウントアツプして以下、ステップ505のサンプル終了
まで続ける。
The CPU 211 uses a 64 x 2 byte black peak histogram area prepared in the RAM 213 and a 2 byte area H within the 64 x 2 byte self peak histogram area.
B (J), data B detected from the contents of HW (j)
The areas corresponding to Pl and WPi are counted up one by one. Then, after waiting for the primary main scanning line synchronization signal MS, the data BPi41 and WPi from the f+1th line are
+1 is taken in, the corresponding area of the histogram is counted up again, and the process continues until the end of the sample in step 505.

但し、この時、検出したBPiとWPIを必らずしもヒ
ストグラムデータとして用いるとは限らない0例えば、
主走査ライン方向に一様な濃度の帯があれば、それが真
白、真黒、あるいは他の濃度でもそこからのサンプル値
BPIとW’D I +−LrZ u 217竺+ 1
.%+11.MLfThLl  m1nxシ情報部を区
別して2値化を行なうための情報としてはふされしくな
い、また地肌部であっても必らずしも均一な濃度ではな
いため、地肌レベルのばらつきの黒ピークを情報レベル
として扱っても適切な2値化は行なえない、従って、C
PU211はBPi−WPi≦αの時、即ち黒ピーク値
と自ピーク値との差が所定値より小さく、濃度変化が少
ないと判断した場合にはそのBPi、WPiをヒストグ
ラム作成用のデータとして採用しない、このαは経験的
に設定される定数である。
However, at this time, the detected BPi and WPI are not necessarily used as histogram data. For example,
If there is a uniform density band in the main scanning line direction, whether it is pure white, pure black, or other density, the sample value BPI from that band and W'DI + - LrZ u 217 + 1
.. %+11. MLfThLl m1nx It is not suitable as information for distinguishing and binarizing the information part, and even in the background part, the density is not necessarily uniform, so the black peak of the variation in the background level is Appropriate binarization cannot be performed even if it is treated as an information level. Therefore, C
When PU211 determines that BPi-WPi≦α, that is, the difference between the black peak value and the self-peak value is smaller than a predetermined value and there is little change in density, the BPi and WPi are not adopted as data for creating histograms. , this α is a constant set empirically.

また一方、原稿台ガラス上のホコリ等で実際の地肌レベ
ルよりも白い値を自ピークとしてサンプリングするケー
スや汚れ等で実際の情報レベルよ、りも黒い値を黒ピー
クとして、サンプリングするケースも考えられる。これ
らの場合。
On the other hand, we can also consider cases where a value that is whiter than the actual background level due to dust on the platen glass is sampled as the self-peak, or a case where a value that is darker than the actual information level due to dirt, etc. is sampled as the black peak. It will be done. In these cases.

もヒストグラム作成用のデータとしては適切でない、従
って、CPU211はBPi≧β又はWPi≦γの時、
即ち、黒ピーク値又は自ピーク値が夫々の基準値からは
ずれた。特異な値である場合にはそのBPi、WPiを
ヒストグラム作成用のデータとして採用しない、このβ
やγも経験的に設定される定数である。
is not suitable as data for creating a histogram. Therefore, when BPi≧β or WPi≦γ, the CPU 211
That is, the black peak value or the self-peak value deviated from the respective reference values. If the values are unique, the BPi and WPi are not used as data for creating a histogram.
and γ are also constants set empirically.

また、ステップ504によりサンプル開始する以前にR
AM213の全ヒストグラムエリア64X2X2バイト
を\にクリアしておくのは当然のことである。
Also, before starting the sample in step 504, R
It is a matter of course to clear all 64x2x2 bytes of the histogram area of AM213 to \.

第7図に第5図のステップ5504,505゜506に
おけるピーク値サンプリングの詳細なフローチャートを
示し、以下に説明する。
FIG. 7 shows a detailed flowchart of peak value sampling in steps 5504, 505 and 506 in FIG. 5, and will be described below.

CPU211はまず、ヒストグラム作成用のエリアHW
(j)とHB (j)を全て\にクリアする(Si2−
1)、このHW(j)及びHB (J)は第2図RAM
213上のエリアで、各jについてHW (J)、HB
 (j)ともに2バイトから構成され、又、jは検出し
たピーク値のとりうる値0(00uEx)から(J)、
j=0 、++++、63で計2X64=128バイト
、HB(j)についても同じく計128バイトである。
The CPU 211 first uses the area HW for creating a histogram.
(j) and HB (j) are all cleared to \ (Si2-
1), this HW (j) and HB (J) are shown in Figure 2 RAM
In the area above 213, HW (J), HB for each j
(j) are both composed of 2 bytes, and j is the possible value of the detected peak value from 0 (00uEx) to (J),
j=0, +++++, 63, totaling 2×64=128 bytes, and HB(j) also has a total of 128 bytes.

HW(j)は自ピーク値WPi(=j)の頻度を示す、
HB (j)は黒ビークBPi(=j)の頻度を示す、
ヒストグラム作成用エリアが各2バイトあれば6553
5までカウントでき、16peJLの解像度ではA3の
全土走査ライン数が6720ラインであるから充分であ
る。
HW (j) indicates the frequency of the own peak value WPi (=j),
HB (j) indicates the frequency of black beak BPi (=j),
If the histogram creation area is 2 bytes each, 6553
It can count up to 5, and the resolution of 16peJL is sufficient since the total number of scanning lines for A3 is 6720 lines.

次にCPU211は主走査ライン番号Iを初期化しく5
14−2)、第1ラインのピーク値検出の終了を主走査
ライン同期信号MSにより検知したら(S l 4−3
) 、前述のラッチから第1ラインの自ピーク値WPI
、黒ピーク値BPIをとりこむ(S 14−4) 、も
し。
Next, the CPU 211 initializes the main scanning line number I to 5.
14-2), when the end of the peak value detection of the first line is detected by the main scanning line synchronization signal MS (S l 4-3
), the self-peak value WPI of the first line from the aforementioned latch
, take in the black peak value BPI (S14-4), if.

BPI−WPI≦αすなわち各ピークの差が所定値αよ
り小さい時は、前述の如く、BPI 。
When BPI-WPI≦α, that is, when the difference between each peak is smaller than the predetermined value α, the BPI is determined as described above.

WPlをヒストグラムデータとして用いない(S14−
5)。
Do not use WPl as histogram data (S14-
5).

一方、BP1−WPt>αであれば次にBPI≧βすな
わち黒ピーク値が所定値βより大きいかどうか判定し、
大きい時にはやはりヒストグラム作成データとして用い
ない(S14−6)。
On the other hand, if BP1-WPt>α, then it is determined whether BPI≧β, that is, the black peak value is larger than the predetermined value β,
When it is large, it is not used as histogram creation data (S14-6).

又、BPI<βであれば、次にWPI≦γ。Also, if BPI<β, then WPI≦γ.

すなわち自ピーク値が所定値γより小さいがどうか判定
し小さい時にはやはりヒストグラム作成データとして用
いない(314−7)。
That is, it is determined whether the self-peak value is smaller than the predetermined value γ, and if it is smaller, it is not used as the histogram creation data (314-7).

wpt>γであれば、WPI、BPIをヒストグラム作
成データとして用いることにして、白ピーク値WP1に
対応するRAM上の頻度エリアHW(WPI)を1カウ
ントアツプしく514−8)、黒ピーク値BPIに対応
する同様のHB(BPl)を1カウントアツプする(5
14−9)。
If wpt>γ, WPI and BPI are used as histogram creation data, and the frequency area HW (WPI) on the RAM corresponding to the white peak value WP1 is counted up by 1 (514-8), and the black peak value BPI is 1 count up for the similar HB (BPl) corresponding to (5
14-9).

以上のように第1ラインに対するピーク値サンプリング
及びヒストグラムの生成もしくはデータの棄却を行なっ
たのち、iの値を2゜3 、4 、 −−−−−一と増
加しく514−10)、第2.第3.第4 、 −−一
−−−各ラインに対しても同様の処理を復動を停止する
まで行なこの結果ステップ505(第5図)でサンプル
終了した時には、例えば第8図(1)。
After performing peak value sampling and histogram generation or data rejection for the first line as described above, the value of i is increased to 2゜3, 4, -------1514-10), .. Third. 4th -- 1 --- The same process is performed for each line until the backward movement is stopped, and as a result, when the sample is completed in step 505 (FIG. 5), for example, the process shown in FIG. 8 (1) is performed.

(2)に示すようなヒストグラムが黒ピークBP/白ビ
ークWPの各々について構成されている。
A histogram as shown in (2) is constructed for each of the black peak BP/white peak WP.

サンプルを終了した後、光学系がスタート地点に戻りス
テップ506で復動を終了したら。
After completing the sample, the optical system returns to the starting point and completes the return motion in step 506.

次にステップ507でスライスレベルを設定スる。Next, in step 507, a slice level is set.

各ヒストグラムのスライスレベルの設定度数のピークを
示す濃度レベルを各々の代表値と考える。
The density level showing the peak of the set frequency of the slice level of each histogram is considered to be each representative value.

第8図の例によれば原稿情報部の濃度を36H原稿地肌
部の濃度をOAHとし、例えばその中央値20Hをスラ
イスレベルとする。尚、このスライスベルの決定につい
ては他にも考えられ、このスライスレベルの決定動作は
後で詳説する。
According to the example of FIG. 8, the density of the document information part is 36H, the density of the background part of the document is OAH, and, for example, the median value of 20H is the slice level. Note that there are other ways to determine the slice level, and the operation for determining the slice level will be explained in detail later.

最後にステップ508で原稿読取スキャンを4:、b−
イ&&九畝7+ス−rのン漫り士、ステツプ507で決
定したスライスレベルをCPU211はコンパレータ2
10に供給することは当然である。
Finally, in step 508, the document reading scan is performed 4:,b-
The CPU 211 uses the comparator 2 to determine the slice level determined in step 507.
Of course, it should be supplied to 10.

実際の情報レベルよりも黒い値を黒ピークBPとしてサ
ンプリングするケースについて第9図を用いて説明する
A case where a value blacker than the actual information level is sampled as the black peak BP will be explained using FIG. 9.

原稿台ガラスの汚れGD等のある画像OG■からピーク
値をサンプリングした場合、汚れの部分GDが極めて黒
い、黒ピーク値BPとなり、■の如くの自ビークWP、
黒ピークBPがサンプリングされる。これをそのままヒ
ストグラム生成データとすると、@の如く黒ピークヒス
トグラムの極大値が情報部よりも汚れ部で高くなってし
まうため、スライスレベルが情報部の濃度より高く決定
され、適切な2値化が実行されない。
When a peak value is sampled from an image OG■ in which there is dirt GD on the platen glass, etc., the dirty portion GD is extremely black, resulting in a black peak value BP, and the own peak value WP as in ■,
Black peak BP is sampled. If this is used as histogram generation data as it is, the maximum value of the black peak histogram will be higher in the dirty part than in the information part, as shown in @, so the slice level will be determined to be higher than the density of the information part, and appropriate binarization will not be possible. Not executed.

このケースで前記のβという値を採用して、汚れ部の黒
ピークBPをヒストグラム生成データとして不採用にす
ると、その場合の黒ピークヒストグラムは■の如く情報
部の濃度値で最大値をもち適切なスライスレベルを決定
することができる。
In this case, if we adopt the value β mentioned above and discard the black peak BP in the dirty area as the histogram generation data, the black peak histogram in that case will have the maximum value at the density value of the information area, as shown in ■, and will be appropriate. The desired slice level can be determined.

同様に実際の地肌レベルよりも白い値を自ピークWPと
してサンプリングするケースについて、第9図を用いて
説明する。
Similarly, a case where a value whiter than the actual background level is sampled as the own peak WP will be explained using FIG. 9.

原稿台ガラス上のホコリDS等のある、地肌のかぶった
原稿■を読取る場合、■の如くホコリの部分DSが極め
て白く自ピーク値WPとしてサンプリングされる。この
データをそのまま使ってヒストグラムを生成すると■の
如く実際の地肌よりも白いところにスライスレベルが決
定され、適切な2値化が実行されない。
When reading a document (2) with a dark background and dust DS on the document platen glass, the dusty portion DS as shown in (2) is extremely white and is sampled as the self-peak value WP. If this data is used as is to generate a histogram, the slice level will be determined to be whiter than the actual background, as shown in ■, and appropriate binarization will not be performed.

このようなケースで前記のγという値を採用してホコリ
部分の白ピーク値WPを、ヒストグラム生成データとし
採用しなければ、■の如く、自ピークヒストグラムの山
が実際の地肌部に生成され、適切なスライスレベルが決
定される。
In such a case, if the above-mentioned value γ is not adopted and the white peak value WP of the dusty area is not adopted as the histogram generation data, a mountain of the self-peak histogram will be generated in the actual background area as shown in ■. An appropriate slicing level is determined.

従って、以上説明したβ及びγの値を用いた黒ピーク値
BPと自ピーク値WPの補正動作を組合せればノイズ等
に影響されない良好なスライスレベルを決定することが
できる。又、自ピーク値又は黒ピーク値のいずれか一方
に対してパラメータを設定し、いずれかのピーク値がそ
のパラメータ以上又は以下の場合、その値をヒストグラ
ム作成用データとして無効としてもよい。
Therefore, by combining the correction operation of the black peak value BP and the own peak value WP using the values of β and γ as described above, it is possible to determine a good slice level that is not affected by noise or the like. Alternatively, a parameter may be set for either the self peak value or the black peak value, and if either peak value is greater than or less than the parameter, that value may be invalidated as data for creating histograms.

第10図に濃度選択のために原稿読取装置の上面に設け
られた操作表示部214を示す。
FIG. 10 shows an operation display section 214 provided on the top surface of the document reading device for density selection.

802は7個のLEDからなる7段階のレベルを示し得
る濃度表示部で、濃度4が選択されている状態を示して
いる。キー800を押す毎に、802の表示段階は1つ
ずつ左へ移動し、キー801を押す毎に、1つずつ右へ
移動する。
Reference numeral 802 denotes a density display section made up of seven LEDs that can indicate seven levels, and shows a state in which density 4 is selected. Each time the key 800 is pressed, the display stage 802 moves one by one to the left, and each time the key 801 is pressed, the display stage 802 moves one to the right.

803は原稿のコントラストを選択するキーで、このキ
ーを押す毎に、3個のLED804がノーマル→ハイコ
ントラスト峠ローコントラスト→ノーマルと段階的に表
示が変化する。
Reference numeral 803 is a key for selecting the contrast of the original, and each time this key is pressed, the display of three LEDs 804 changes stepwise from normal to high contrast to low contrast to normal.

CPU211に取込まれ、また、I、ED等の表示部は
CPU211からの指令に応じて表示動作する。
The information is taken into the CPU 211, and display units such as I and ED perform display operations according to commands from the CPU 211.

LED802の濃度表示段階を! (= 1 、−−−
.7)とし、また白ピークヒストグラムから推測される
原稿地肌部の濃度レベルをWp P、黒ピークヒストグ
ラムから推測される原稿情報部の1農度レベルをBPP
として2値化のためのスライスレベルsL を のように決定することもできる。但し、[]はガウス記
号 例えば前述した第8図のケースではwpp=φAH9B
PP=36Hであるから、濃度表示とスライスレベルの
関係は、次表のようになる。
Concentration display stage of LED802! (= 1, ---
.. 7), the density level of the background area of the document estimated from the white peak histogram is WpP, and the density level of the document information area estimated from the black peak histogram is BPP.
The slice level sL for binarization can also be determined as follows. However, [] is a Gaussian symbol. For example, in the case of FIG. 8 mentioned above, wpp=φAH9B
Since PP=36H, the relationship between density display and slice level is as shown in the following table.

この表に示されたヒストグラムとスライ、スレベルの関
係をグラフに示したのが第11図(A)である。
FIG. 11(A) is a graph showing the relationship between the histogram shown in this table and the slide and slope levels.

このようにピーク値検出によって推定される地肌レベル
と情報レベルの間を内分して設けられるスライスレベル
の内分比を濃度表示fで変化させることで完全な地肌と
ばしを行ないつつも操作者の好みで中間濃度部分を濃く
したり、うすくしたりする如くの調節が可能になる。
In this way, by changing the internal division ratio of the slice level, which is created by internally dividing the area between the background level and the information level estimated by peak value detection, using the density display f, it is possible to completely remove the background while also making it easier for the operator to You can make adjustments such as making the intermediate density part darker or lighter depending on your preference.

例えば第11図(A)のように黒ピークヒストグラムに
点BP2のように、2つ目の極大値があるようなケース
では、このBF2を示すレベルが情報レベルなのか地肌
レベルなのか読取装置には判断できない、従って、操作
者がキー800,801により15以上を選択してBF
2を地肌レベルとするかf4以下を選択して情報レベル
とするかの選択ができる。
For example, in a case where the black peak histogram has a second maximum value, such as point BP2, as shown in FIG. Therefore, the operator selects 15 or more using keys 800 and 801 and selects BF.
It is possible to select whether to set f2 as the background level or select f4 or lower as the information level.

また、上記の手法によると、濃度表示fの分解能を上げ
られるというメリットも合せ持つ。
Furthermore, the above method also has the advantage of increasing the resolution of the concentration display f.

例えば第11図(C)のように、黒ピーク、白ピークに
関係なく濃度表示fに対応するスライスレベルが と固定されていると、第ti図(C)にともに示しであ
るような黒、自答ピークヒストグラムを示す画像に対し
てはfl及びflでは読取った情報が真白又は真黒とな
り有効とはいえず。
For example, as shown in FIG. 11(C), if the slice level corresponding to the density display f is fixed regardless of the black peak or white peak, then the black, For an image showing a self-answering peak histogram, the information read by fl and fl becomes pure white or pure black and cannot be said to be effective.

さらに、このケースでのf6は黒ピークの山の中に位置
し情報部が一部とんでしまい、さらにf2は自ピークの
山の中に位置し、地肌がかぶってしまう、従って、実質
f3からf5の3段階しか表現できない。
Furthermore, f6 in this case is located in the mountain of the black peak, and part of the information part is cut off, and furthermore, f2 is located in the mountain of its own peak, and the background is covered, so it is actually from f3. Only three stages of f5 can be expressed.

しかし、第11図(A)のように推定される地肌レベル
と黒レベルの間で濃度表示fに対応。
However, as shown in FIG. 11(A), it corresponds to the density display f between the estimated background level and black level.

してスライスレベルを決定するようにすると、実質7段
階の表現が可能となり、有効である。
If the slice level is determined by the following, expression in seven stages is possible and is effective.

以上はスライスレベルが1つ、すなわち2値画像出力の
ケースであるがスライスレベルを2つ、すなわち3値画
像出力の場合も同様に第11図(B)のように2種類の
スライスレベルをピーク検出により推定される地肌、情
報レベルの間で濃度表示fに対応して設定することもで
きる。
The above is a case of one slice level, that is, binary image output, but in the case of two slice levels, that is, ternary image output, two types of slice levels peak as shown in Figure 11 (B). It is also possible to set the density display f between the background and information level estimated by detection.

第12図にスライスレベルの算出のためのフローチャー
トを示し、以下に説明する。
FIG. 12 shows a flowchart for calculating the slice level, and will be described below.

前述のようにピーク値のサンプリングを終了したら、生
成した黒ピーク、白ピークのヒストグラムの各々におい
て HW (W p p ) = m a x HW (j
 )なるWPP、すなわち、白ピークヒストグラムのう
ち最も高い頻度を示す濃度レベルWPPと、 HB (B p p)=maxHB (J)なるl1l
pp、すなわち、黒ピークヒストグラムのうち最も高い
頻度を示す濃度レベルBppをさがす(315−1,3
15−2)。
After completing the peak value sampling as described above, HW (W p p ) = m a x HW (j
), that is, the density level WPP showing the highest frequency in the white peak histogram, and HB (B p p) = maxHB (J) l1l
pp, that is, the density level Bpp showing the highest frequency in the black peak histogram (315-1, 3
15-2).

その後スライスレベル決定ステップ(515−10)に
おいてスライスレベルを決定する。
Thereafter, the slice level is determined in a slice level determining step (515-10).

m= 7−17d s4w−p=−−−−1fcI K
  l^1としては4種のアルゴリズムA、B、C,D
のうちいずれか1つが実行される。これら4つのアルゴ
リズムを操作表示部214に設けられた不図示のモード
キーにより選択し、所望のスライスレベルを得ることが
できる。尚、4つのアルゴリズムを全て設けることはな
く、少なくとも1つ設ければ良いものである。
m= 7-17d s4w-p=----1fcI K
There are 4 types of algorithms A, B, C, D as l^1.
One of these is executed. A desired slice level can be obtained by selecting one of these four algorithms using a mode key (not shown) provided on the operation display section 214. Note that it is not necessary to provide all four algorithms, but it is sufficient to provide at least one.

アルゴリズムAは前述のWPPとBppの平均値を2値
画像のためのスライスレベルsLとする例である(S 
l 5−3) 、アルゴリズムBは第11図(A)を用
いて前述した濃度表示段階値fによってWPPとBpp
の内分比を変化させてスライスレベルsLを決定する例
である(315−4.5)。
Algorithm A is an example in which the average value of WPP and Bpp mentioned above is used as the slice level sL for a binary image (S
5-3), Algorithm B calculates WPP and Bpp according to the concentration display step value f described above using FIG. 11(A).
This is an example of determining the slice level sL by changing the internal division ratio (315-4.5).

アルゴリズムCは3値画像読取りのために2つのスライ
スレベルSLA、SLBを決定する例で、SLA、SL
BはWpPとl1lppの間を1:1:1に内分する(
S 15−6) 、先の第8図の例(Wpp=OA)l
 、Bpp=、36)1の時)ではSL A=27H、
SL 5=19Hとなる、アルゴリズムDは濃度表示段
階値fによってBppとWPPの内分比を変化させて3
値画像のための2つのスライスレベルSLA、SL8を
決定する例であり、その算出式は以下であるび≧4の時
〕 びく4の時〕 U≧4の時〕 びく4の時〕 以上の式によるとスライスレベルSLとfの関係は下表
の如くなる。
Algorithm C is an example of determining two slice levels SLA and SLB for ternary image reading.
B internally divides WpP and l1lpp at a ratio of 1:1:1 (
S 15-6), the example in Figure 8 above (Wpp=OA)l
,Bpp=,36)1) then SL A=27H,
SL 5=19H, algorithm D changes the internal division ratio of Bpp and WPP according to the concentration display step value f, and calculates 3.
This is an example of determining two slice levels SLA and SL8 for a value image, and the calculation formula is as follows: When U≧4] When U≧4: When U≧4: When U≧4: According to the formula, the relationship between slice level SL and f is as shown in the table below.

これをグラフ化したものが第11図(B)である。A graph of this is shown in FIG. 11(B).

前述した濃度変化が小さい場合の各ピーク値をヒストグ
ラム作成用データとして採用するか否かを決定する値α
を第1O図に示すコントラストキー803及び表示80
4により第13図のように変化させてより忠実な2値価
を行なうことも可能である。以下第13図、第14図を
用いて説明する。
Value α that determines whether or not each peak value is adopted as data for creating a histogram when the concentration change described above is small.
The contrast key 803 and display 80 shown in FIG.
It is also possible to perform a more faithful binary value by changing the value of 4 as shown in FIG. This will be explained below using FIGS. 13 and 14.

例えば鉛筆書きのような比較的濃度の薄い原稿■や青焼
き等の全体的にかぶった原稿@では原稿全面にわたって
白ピークと黒ピークの差が■又は■の如<di又はd2
となり小さく前記の値αが例えば第10図のα21つし
か容易されていないと(α2>dx、d2)検出したピ
ーク値の全てがヒストグラム作成用データとして採用さ
れずに、■の如くヒストグラムが全く形成されないおそ
れがある。したがって、このような時にはキー803で
表示804のローコツトラストを選択してαとして最も
小さな値α1を選べばヒストグラムが@の如く生成され
適切なスライスレベルが決定できる。
For example, in an original with relatively low density (such as pencil writing) or a completely overlapping original (such as a blueprint), the difference between the white peak and the black peak over the entire surface of the original is as follows: ■ or ■<di or d2
If the above-mentioned value α is small, for example, only α21 in Figure 10 (α2>dx, d2), all of the detected peak values will not be adopted as the data for creating the histogram, and the histogram will not be created at all as shown in ■. There is a possibility that it will not be formed. Therefore, in such a case, by selecting the low-cut trust in the display 804 with the key 803 and selecting the smallest value α1 as α, a histogram like @ is generated and an appropriate slice level can be determined.

又、逆に■の如く原稿の地肌部の一部にムラがあり、な
おかつ原稿上で情報部の占める面積が小さい時には、前
記の値αが例えば第10図のα2であると■の如くスラ
イスレベルが低くなり、地肌部がかぶってしまう、この
ような時にはキー803で表示804のハイコントラス
トを選択してαとして最も大きな値α3を選べばよい、
これにより、■に示す如く良好なスライスレベルが選択
され、かぶりを除去可能となる。
On the other hand, when there is unevenness in a part of the background part of the document as shown in ■, and the area occupied by the information section on the document is small, if the above value α is, for example, α2 in Fig. 10, it is sliced as shown in ■. In such a case, when the level is low and the background is covered, you can use the key 803 to select high contrast in the display 804 and select the largest value α3 as α.
As a result, a good slice level is selected as shown in (2), and it becomes possible to remove the fog.

又、濃度表示段階fにより前述のβ、γを変化させるこ
ともできる0例えば第15図のようにfに対応してβ、
γを設定すると、f7に近い程ヒストグラムの山は黒の
方向へ(第7図の例では右へ)移動し、スライスレベル
は高くなり、flに近い程ヒストグラムの山は白の方向
へ(第7図の例では左へ)移動し、スライスレベルは低
くなる。
Further, the above-mentioned β and γ can also be changed depending on the concentration display stage f. For example, as shown in FIG.
When γ is set, the closer to f7 the histogram peak moves toward black (to the right in the example in Figure 7), and the slice level becomes higher; (in the example in Figure 7, to the left), and the slice level becomes lower.

従って、このfの設定をオペレータが原稿状態に応じて
行なうことによりノイズ除去と暑もに画像がとんでしま
う如くの不都合を除去できるものである。
Therefore, by setting f according to the condition of the document by the operator, it is possible to eliminate noise and to eliminate the inconvenience such as the image disappearing in the heat.

第16図に前述のα、β、γの各定数を第10図の操作
部を用いたオペレータの操作に連動させる場合のピーク
値サンプリングのフローを示し、以下に説明する。
FIG. 16 shows the flow of peak value sampling when the constants α, β, and γ described above are linked to the operator's operation using the operating section of FIG. 10, and will be described below.

尚、(S16−1)から(51B−11)は第7図で説
明した(S l 4−1)から(S l 4−11)の
動作と同様であるので詳しい説明は省く。
Note that since the operations (S16-1) to (51B-11) are similar to the operations (S14-1) to (S14-11) explained in FIG. 7, detailed explanations will be omitted.

α、β、γの各定数値を操作部に連動させるケースでは
、スキャン開始前にオペレータの選択したコントラスト
モードをとりこみ(S t S−12)、そのモードに
従い、第13図に示すようにαとしてα1.α2.α3
のいずれかをセットする(516−13)。
In the case where the constant values of α, β, and γ are linked to the operation unit, the contrast mode selected by the operator is imported before the start of scanning (S t S-12), and according to that mode, α is adjusted as shown in Fig. 13. α1. α2. α3
(516-13).

次に、オペレータの選択した濃度表示値fをとりこみ(
516−14)、そのfに従って、第15図のようにβ
、γをセットする(S16−15)。
Next, the concentration display value f selected by the operator is imported (
516-14), and according to that f, β as shown in FIG.
, γ are set (S16-15).

以上のようにして第7図においては固定値であったα、
β、γをオペレータの操作により可変とし、オペレータ
は所望の2値化を行なうことができる。
As described above, in Fig. 7, α, which was a fixed value,
By making β and γ variable through operator operations, the operator can perform desired binarization.

以上のように1本実施例では読取るべき原稿の黒ピーク
と自ピーク夫々のヒストグラムを作成し、これに基づい
て原稿の地肌及び情報の各濃度レベルを推定し、これら
レベルを用いて画像の量子化用スライスレベルを決定す
るものである。従って、読取るべき原稿に適したスライ
スレベルが自動的に設定でき、良好な画像の量子化が可
能となるものである。
As described above, in this embodiment, a histogram of the black peak and the self-peak of the original to be read is created, the density levels of the background and information of the original are estimated based on this, and these levels are used to determine the quantum density of the image. This determines the slice level for conversion. Therefore, a slice level suitable for the document to be read can be automatically set, and good image quantization can be achieved.

また、スライスレベル設定のためのヒストグラムの作成
時において、ゴミや汚れ等に起因する得異なピーク値を
無効とし、それらのスライスレベル設定に対する悪影響
を除去するものである。また、濃度レベルの変化が小さ
い領域からの白ピーク黒ピークをも無効とするので、地
肌と情報が両方存在した領域からのピーク値がヒストグ
ラム形成に利用され、良好なスライスレベルが設定でき
る。
Furthermore, when creating a histogram for setting the slice level, peak values that are undesirable due to dust, dirt, etc. are invalidated, and their adverse effects on the setting of the slice level are eliminated. Furthermore, since white peaks and black peaks from areas where density level changes are small are also invalidated, peak values from areas where both background and information exist are used to form a histogram, allowing a good slice level to be set.

更には、ピーク値を無効とする基準となる各種パラメー
タをオペレータがマニュアル設定可能なので、上述のス
ライスレベルの自動設定に加えて、任意のスライスレベ
ル設定をも可能とし、これにより原稿画像状態に適した
スライスレベルを任意に設定可能である。尚、このマニ
ュアル設定機能により自動的なスライスレベル設定では
不都合が生じる様な画像状態の原稿をも読取り良好に量
子化することができるものである。
Furthermore, since the operator can manually set various parameters that serve as criteria for invalidating peak values, in addition to the automatic slice level setting described above, it is also possible to set any slice level, which is suitable for the document image condition. The slice level can be set arbitrarily. Note that this manual setting function makes it possible to read and satisfactorily quantize documents with image conditions that would be inconvenient with automatic slice level setting.

尚、本実施例では原稿画像をライン走査し、そのl走査
毎に黒ピーク、白ピークを検出したが、例えば数ライン
置きに各ピーク値検出を行ない、ヒストグラム作成を行
ってもよい、また、現行サイズ又は位置が予じめ解って
いる場合には、現行位置検出を省き、すぐに原稿画像ピ
ーク検出動作してもよい、更に、同一原稿画像を複数回
連続して読取る場合には、1回の前走査によって得たピ
ーク値により決定したスライスレベルを複数回の読取動
作全てに利用し、1回の読取り毎にスライスレベルを決
定することを省くものである。
In this embodiment, the original image is line-scanned, and the black peak and white peak are detected every 1 scans. However, for example, each peak value may be detected every few lines to create a histogram. If the current size or position is known in advance, the current position detection may be omitted and the document image peak detection operation may be performed immediately.Furthermore, if the same document image is read multiple times in succession, The slice level determined based on the peak value obtained in the previous scan is used for all the multiple reading operations, thereby eliminating the need to determine the slice level for each reading.

また、本実施例では固定原稿台に載置された原稿をミラ
ー等からなる光学ユニットを移動することにより読取っ
たが、逆に光学ユニットを固定し原稿又は原稿台を移動
する構成の読取装置にも適用できる。
In addition, in this embodiment, the original placed on a fixed original table was read by moving an optical unit consisting of a mirror, etc., but conversely, a reading device with a structure in which the optical unit is fixed and the original or the original table is moved can be used. can also be applied.

また、ピーク値検出による自動的なスライスレベルの決
定動作を解除し、操作部からマニュアル設定された、又
は予じめ決められたスライスレベルを用いて画像読取り
を可能とする動作モードを更に設けてもよい、また、ス
ライスレベルの設定のためのデータとして、ピーク値以
外の特定データを用いることも可能である。更には単な
る2値、3値化のためのスライスレベルの決定だけでは
なく、中間調再現に適した、例えばディザ法による閾値
マトリクスを原稿画像状態に応じて選択或いは形成に前
走査による検出データを用いてもよい、また、原稿画°
像の状態検出のために、原稿読取りとは別のセンナを設
けてもよいが、この場合はコスト高や構成が複雑となる
等の問題も生じる。また、予じめ原稿地肌濃度レベルや
画像情報濃度レベルがわかっている場合等には、白、黒
両ピークの検出を行なわず、いずれか一方のピーク値検
出のみを行なってもよい、更に、本実施例では、シート
或いはブック状の原稿からの反射光により画像を読取る
例を用いたが、例えばマイクロフィルム等の透過光によ
り画像を読取る構成にも同様に適用可能である。
In addition, an operation mode is provided that cancels the automatic slice level determination operation based on peak value detection and enables image reading using a slice level manually set from the operation panel or predetermined. It is also possible to use specific data other than the peak value as data for setting the slice level. Furthermore, in addition to simply determining the slice level for binary or ternary conversion, detection data from pre-scanning is used to select or form a threshold matrix suitable for halftone reproduction, for example, using a dither method, depending on the document image condition. You may also use the original image
A sensor separate from the sensor for reading the document may be provided to detect the state of the image, but in this case, problems such as high cost and complicated configuration arise. Furthermore, in cases where the original background density level and the image information density level are known in advance, the detection of both the white and black peaks may not be performed, and only the peak value of one of them may be detected. In this embodiment, an example is used in which an image is read using reflected light from a sheet or book-shaped document, but the present invention is similarly applicable to a configuration in which an image is read using transmitted light from, for example, a microfilm.

〔効  果〕〔effect〕

以上説明した様に、本発明によると、原稿の画像濃度レ
ベルを検出し、検出した画像濃度レベルに基づいて、原
稿を読取って得た画像信号を処理するとともに、検出し
た画像濃度レベルのうち所定レベル以上若しくは以下の
ものを無効とするので、原稿画像以外の汚れ、ゴミ等に
よる悪影響を効果的に除去し最適な画像処理を実行する
ことが可能となるものである。
As described above, according to the present invention, the image density level of a document is detected, and based on the detected image density level, an image signal obtained by reading the document is processed, and a predetermined value of the detected image density level is processed. Since those above or below the level are invalidated, it is possible to effectively remove the adverse effects of dirt, dust, etc. other than the original image, and to perform optimal image processing.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明を適用した原稿読取装置の概略図、第2
図は画信号処理回路のブロック図、第3図は原稿台上の
原稿の座標を示す図、第4図は座標検出回路のブロック
図、第5図は原稿読取リシーケンスを示すフローチャー
ト図、第6図は原稿載置位置と原稿読取リシーケンスの
対応を示す図、第7図はピーク値サンプリング手順を示
すフローチャート図、第8図(1)。 (2)は夫々黒ピークヒストグラムと白ピークヒストグ
ラムの例を示す図、第9図及び第14図は各種原稿に対
するスライスレベルの決定動作を示す図、第1θ図は、
操作表示部の外観図、第11図(A)、(B)、(C)
はピーク値とスライスレベルの関係を示す図、第12図
はスライスレベルの算出手順を示すフローチャート図、
第13図はパラメータαの設定動作を示す図、第15図
はパラメータα、γの設定動作を示す図、第16図はピ
ーク値サンプリングの他の手順を示す図であり、101
は原稿台、103は撮像素子、202,203,205
.207はラッチ、204,207はコンパレータ、2
11はCPU、215は座標検出回路、214は操作表
示部である。
FIG. 1 is a schematic diagram of a document reading device to which the present invention is applied;
3 is a block diagram of the image signal processing circuit, FIG. 3 is a diagram showing the coordinates of the document on the document table, FIG. 4 is a block diagram of the coordinate detection circuit, FIG. 5 is a flowchart showing the document reading resequence, and FIG. FIG. 6 is a diagram showing the correspondence between the document placement position and the document reading resequence, FIG. 7 is a flow chart diagram showing the peak value sampling procedure, and FIG. 8 (1). (2) is a diagram showing an example of a black peak histogram and a white peak histogram, respectively; FIGS. 9 and 14 are diagrams showing slice level determination operations for various manuscripts; and FIG.
External view of the operation display section, Fig. 11 (A), (B), (C)
12 is a diagram showing the relationship between the peak value and the slice level, and FIG. 12 is a flowchart diagram showing the procedure for calculating the slice level.
FIG. 13 is a diagram showing the setting operation of the parameter α, FIG. 15 is a diagram showing the setting operation of the parameters α and γ, and FIG. 16 is a diagram showing another procedure of peak value sampling.
103 is an image sensor, 202, 203, 205
.. 207 is a latch, 204 and 207 are comparators, 2
11 is a CPU, 215 is a coordinate detection circuit, and 214 is an operation display section.

Claims (3)

【特許請求の範囲】[Claims] (1)原稿画像を読取る手段と、上記原稿画像の画像濃
度レベルを検出する手段と、上記検出手段により検出し
た画像濃度レベルに基づいて上記読取手段からの画像信
号を処理する手段とを有し、上記検出手段により検出し
た画像濃度レベルのうち所定レベル以上若しくは以下の
ものを無効とすることを特徴とする画像処理装置。
(1) comprising means for reading an original image, means for detecting an image density level of the original image, and means for processing an image signal from the reading means based on the image density level detected by the detecting means. An image processing apparatus characterized in that among the image density levels detected by the detection means, those above or below a predetermined level are invalidated.
(2)特許請求の範囲第(1)項において、画像濃度レ
ベルを無効とするための基準となる上記所定レベルが可
変であることを特徴とする画像処理装置。
(2) The image processing apparatus according to claim (1), wherein the predetermined level, which is a reference for invalidating the image density level, is variable.
(3)特許請求の範囲第(1)項において、上記処理手
段は上記読取手段からの画像信号を量子化することを特
徴とする画像処理装置。
(3) The image processing device according to claim (1), wherein the processing means quantizes the image signal from the reading means.
JP60057896A 1985-03-20 1985-03-20 Image processing device Expired - Lifetime JPH0636553B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP60057896A JPH0636553B2 (en) 1985-03-20 1985-03-20 Image processing device
US07/595,634 US5065257A (en) 1985-03-20 1990-09-18 Image processing apparatus with means for compensating for dust., etc., on an original

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60057896A JPH0636553B2 (en) 1985-03-20 1985-03-20 Image processing device

Publications (2)

Publication Number Publication Date
JPS61214865A true JPS61214865A (en) 1986-09-24
JPH0636553B2 JPH0636553B2 (en) 1994-05-11

Family

ID=13068745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60057896A Expired - Lifetime JPH0636553B2 (en) 1985-03-20 1985-03-20 Image processing device

Country Status (1)

Country Link
JP (1) JPH0636553B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01177660U (en) * 1988-06-02 1989-12-19
JPH02294163A (en) * 1989-05-08 1990-12-05 Mitsubishi Electric Corp Halftone correcting method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58196766A (en) * 1982-05-12 1983-11-16 Canon Inc Binary coding device of picture signal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58196766A (en) * 1982-05-12 1983-11-16 Canon Inc Binary coding device of picture signal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01177660U (en) * 1988-06-02 1989-12-19
JPH02294163A (en) * 1989-05-08 1990-12-05 Mitsubishi Electric Corp Halftone correcting method

Also Published As

Publication number Publication date
JPH0636553B2 (en) 1994-05-11

Similar Documents

Publication Publication Date Title
US5065257A (en) Image processing apparatus with means for compensating for dust., etc., on an original
JP2721334B2 (en) Image binarization processing device
JPS60124173A (en) Image processor
US6618171B1 (en) Black point adjustment based on image background
US6728418B1 (en) Image read apparatus and method that can obtain favorable readout image
US5086486A (en) Apparatus for reading a document and processing the image
US5371610A (en) Image data processing apparatus
JPH0818764A (en) Device for rectangular processing in intra-frame area
JPS61214865A (en) Picture processing device
US5228099A (en) Apparatus for reading a document and processing the image
JPS61214866A (en) Picture processing device
JP2541937B2 (en) Image processing device
JPH06311359A (en) Background eliminating device
JPH08172530A (en) Image reader
JPH05145749A (en) Selective binarizing method
JPS6173480A (en) Picture processing system
JPH085468Y2 (en) Document size detector
JPH084311B2 (en) Image processing device
JPH067626Y2 (en) Image information reader
JPH0582782B2 (en)
JPH078005B2 (en) Image processing device
JPH08265564A (en) Picture input device
JPH02166582A (en) Shading correcting circuit
JPS59189783A (en) Picture signal processing system
JPH09247461A (en) Image reproducing device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term