JPH069374B2 - Image signal binarization circuit - Google Patents

Image signal binarization circuit

Info

Publication number
JPH069374B2
JPH069374B2 JP61131125A JP13112586A JPH069374B2 JP H069374 B2 JPH069374 B2 JP H069374B2 JP 61131125 A JP61131125 A JP 61131125A JP 13112586 A JP13112586 A JP 13112586A JP H069374 B2 JPH069374 B2 JP H069374B2
Authority
JP
Japan
Prior art keywords
image signal
digital image
point
value
binarized
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
JP61131125A
Other languages
Japanese (ja)
Other versions
JPS62287784A (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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP61131125A priority Critical patent/JPH069374B2/en
Publication of JPS62287784A publication Critical patent/JPS62287784A/en
Publication of JPH069374B2 publication Critical patent/JPH069374B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、画像信号を2値化する回路に関する。The present invention relates to a circuit for binarizing an image signal.

(従来の技術および発明が解決しようとする問題点) 原稿の画像を黒と白の2値で表現する場合、文字等の画
像に対しては、一定のしきい値を用いる2値法を用い、
写真等の多階調の画像に対しては、複数のしきい値の組
を用いるディザ法を用いる。
(Problems to be Solved by Conventional Techniques and Inventions) When an original image is represented by binary values of black and white, a binary method using a constant threshold value is used for images such as characters. ,
For multi-tone images such as photographs, the dither method using a plurality of threshold value sets is used.

同一原稿内に写真のような多階調の部分と文字のような
2階調の部分が混在する場合、多階調を表現するために
ディザ法を用いると、文字が読めなくなり、2階調にす
ると、多階調の部分の2値化がうまくできなくなるとい
う欠点があった。
When a multi-tone portion such as a photograph and a two-tone portion such as a character are mixed in the same document, if the dither method is used to express the multi-tone, the character becomes unreadable If this is set, there is a drawback that binarization of a multi-tone portion cannot be performed well.

また、画像読取の際、原稿の地濃度が変ると、画像も影
響をうけるという欠点があった。
Further, when the image is read, if the background density of the document changes, the image is also affected.

本発明の目的は、2階調画像と多階調画像とが混在する
画像を表現できる画像信号2値化回路を提供することで
ある。
An object of the present invention is to provide an image signal binarization circuit capable of expressing an image in which a 2-gradation image and a multi-gradation image are mixed.

(問題点を解決するための手段) 本発明に係る画像信号2値化回路は、原稿の画像の濃度
をアナログ電気信号に変換する光電変換手段と、このア
ナログ電気信号を複数ビットのディジタル画像信号に変
換するAD変換手段と、一定のしきい値を用いる2値化
処理またはディザ法による2値化処理でディジタル画像
信号を2値化する2値化手段と、2値化すべき点を含む
その周囲の複数のn個の点のディジタル画像信号を記憶
する記憶手段と、上記の2値化すべき点を含むその周囲
の複数のm点(m≧n)のディジタル画像信号の平均値を得
る平均手段と、上記のn点のディジタル画像信号につい
て、上記の2値化すべき点のディジタル画像信号とそれ
以外の点のディジタル画像信号との差を求め、この差が
所定の値以内である上記差の数が所定の値以上あり、か
つ、上記の2値化すべき点のディジタル画像信号と上記
の平均値との差が所定の値以上である場合に一定のしき
い値を用いる2値化処理を採用し、それ以外の場合には
平均化してディザ法による2値化処理を採用する2値化
制御手段とを備えたことを特徴とする。
(Means for Solving Problems) An image signal binarizing circuit according to the present invention is a photoelectric conversion means for converting the density of an image of a document into an analog electric signal, and a digital image signal of a plurality of bits for the analog electric signal. An AD converting means for converting the digital image signal into a binary image by a binarizing process using a constant threshold value or a dithering process using a dither method; and a point to be binarized. Storage means for storing digital image signals of a plurality of surrounding n points, and an average for obtaining an average value of digital image signals of a plurality of m points (m ≧ n) surrounding the point including the point to be binarized Means and a digital image signal of the above n points, a difference between the digital image signal of the point to be binarized and the digital image signal of the other point is obtained, and the difference is within a predetermined value. The number of If there is the above and the difference between the digital image signal of the point to be binarized and the average value is equal to or more than a predetermined value, the binarization process using a constant threshold is adopted, and other than that. In this case, a binarization control means for averaging and adopting a binarization process by the dither method is provided.

(作用) 同一原稿内でも2値化する点の近傍で濃度の急激な変化
がない場合は、ディザ法による2値化処理により多階調
を表現し、変化がある場合には、一定のしきい値を用い
る2値化処理で2階調を表現する。
(Operation) If there is no sharp change in the density near the binarizing point even within the same document, multi-gradation is expressed by the binarization processing by the dither method, and if there is a change, it is kept constant. Two gradations are expressed by the binarization process using the threshold value.

(実施例) 以下、添付の図面を参照して、本発明の実施例を説明す
る。ここに、第1図は、本発明の実施例のブロック図で
あり、第2図(a)〜(d)は、動作説明に供する説明図であ
る。
(Examples) Examples of the present invention will be described below with reference to the accompanying drawings. Here, FIG. 1 is a block diagram of an embodiment of the present invention, and FIGS. 2A to 2D are explanatory diagrams for explaining the operation.

第2図(a)〜(d)において、符号31は、原稿41を載せ
るプラテンガラスであり、プラテンガラス31の端に
は、白色が塗布してあり、基準白色32を形成してい
る。
In FIGS. 2A to 2D, reference numeral 31 is a platen glass on which an original 41 is placed, and white is applied to the end of the platen glass 31 to form a reference white 32.

光学系は、図示しない露光源により照射された基準白色
32または原稿の画像が、反射鏡25,24,23を経
て、レンズ22により光電変換器(1次元CCD)21
の受光面に結像されるように構成されている。
In the optical system, the reference white 32 or the image of the original document illuminated by an exposure source (not shown) passes through reflecting mirrors 25, 24, 23, and a photoelectric conversion device (one-dimensional CCD) 21 by a lens 22.
The image is formed on the light receiving surface of the.

反射鏡23,24,25は矢線A方向に移動できる。そ
のとき反射鏡23,24は反射鏡25の速度の半分の速
度で移動し、光路長lは反射鏡25がどの位置にあって
も一定になるようになっている。
The reflecting mirrors 23, 24, 25 can move in the direction of arrow A. At that time, the reflecting mirrors 23 and 24 move at half the speed of the reflecting mirror 25, and the optical path length l is constant regardless of the position of the reflecting mirror 25.

第2図(a)の位置に反射鏡25があるときに、基準白色
22の濃度が検出される。すなわち、第1図の回路にお
いて、まず、基準白レベル検出回路11は、AD変換の
基準電圧となる一定の電圧を基準電圧出力11aに出力
する。AD変換器1は、この電圧を基準電圧として、光
電変換器21で検出された基準白色の濃度のアナログ出
力21aのアナログ信号を8ビットのディジタル信号に
変換し、ディジタル出力1aに出力する。そして、基準
白レベル検出回路11は、ディジタル出力1aから1ラ
イン分の値を記憶し、基準レベルの検出を終了する。
When the reflecting mirror 25 is located at the position shown in FIG. 2 (a), the density of the reference white 22 is detected. That is, in the circuit of FIG. 1, first, the reference white level detection circuit 11 outputs a constant voltage, which is the reference voltage for AD conversion, to the reference voltage output 11a. The AD converter 1 uses this voltage as a reference voltage to convert the analog signal of the reference white density analog output 21a detected by the photoelectric converter 21 into an 8-bit digital signal, and outputs it to the digital output 1a. Then, the reference white level detection circuit 11 stores the value for one line from the digital output 1a, and ends the detection of the reference level.

次に、反射鏡23,24,25は第2図(b)の矢線A′
方向に移動し、原稿41が順次走査される。このとき、
基準白レベル検出回路11は、記憶した基準白レベルを
基準電圧出力11aに出力する。このため、光電変換器
21の素子ごとのバラツキや、シェーディングを補正し
て、AD変換器1でディジタル信号に変換できる。ま
た、地濃度の濃い原稿でも効果的に2値化できる。ピー
ク値検出回路12で原稿41の所定領域内のピーク値を
検出し、記憶する。
Next, the reflecting mirrors 23, 24 and 25 are shown by arrow A'in FIG. 2 (b).
The original 41 is sequentially scanned. At this time,
The reference white level detection circuit 11 outputs the stored reference white level to the reference voltage output 11a. Therefore, it is possible to correct variations in each element of the photoelectric converter 21 and shading, and then convert the signals into digital signals by the AD converter 1. Further, even a document having a high background density can be effectively binarized. The peak value detection circuit 12 detects and stores the peak value in a predetermined area of the document 41.

反射鏡25が移動し、原稿41の終端である第2図(c)
の位置に達すると、走査系は停止する。
The reflecting mirror 25 is moved and the end of the original 41 is shown in FIG. 2 (c).
When the position is reached, the scanning system stops.

そこで、ピーク値検出回路12は、ピーク値出力12a
にピーク値を出力し、基準白レベル検出回路11は、記
憶している基準白レベルを入力されたピーク値に基づい
て補正し、該補正した基準白レベルを基準電圧出力11
aの値として決定する。
Therefore, the peak value detection circuit 12 outputs the peak value output 12a.
The reference white level detection circuit 11 corrects the stored reference white level based on the input peak value and outputs the corrected reference white level to the reference voltage output 11
Determined as the value of a.

次に、第2図(d)のように反射鏡25は矢線A″方向に
移動し、原稿の読み取りを行う。このときディジタル出
力1aには上述のピーク値と基準白レベルにより補正さ
れた8ビットのディジタル値が出力されている。平均値
回路2は、そのディジタル値とメモリ3から読み出した
必要な値とから平均値を算出し、平均値出力2aに出力
する。その後、メモリ3にAD変換器1から出力された
ディジタル値を書き込む。
Next, as shown in FIG. 2 (d), the reflecting mirror 25 moves in the direction of arrow A ″ to read the original. At this time, the digital output 1a is corrected by the above-mentioned peak value and reference white level. The 8-bit digital value is output, and the average value circuit 2 calculates the average value from the digital value and the necessary value read from the memory 3 and outputs the average value to the average value output 2a. The digital value output from the AD converter 1 is written.

この平均値は2値化する点を含む8×8行列(マトリク
ス)の平均値である。したがってメモリ3は、2値化点
が存在するラインを含む少なくとも8ライン分を記憶す
る容量を有しており、各ラインの2値化の完了に伴って
順次後続するラインを更新記憶するよう構成されてい
る。平均値回路2は、メモリ3のデータを読み出し、上
記の平均値を計算する。
This average value is an average value of an 8 × 8 matrix (matrix) including points to be binarized. Therefore, the memory 3 has a capacity of storing at least eight lines including a line having a binarization point, and is configured to update and store the subsequent lines in sequence as the binarization of each line is completed. Has been done. The average value circuit 2 reads the data in the memory 3 and calculates the average value.

メモリ3からは、2値化する点を含むラインの前ライン
の値がメモリ出力3aに、同ラインの値がメモリ出力3
bに、次ラインの値がメモリ出力3cに出力される。そ
して、シフトレジスタ4により、2値化する点の値がシ
フトレジスタ出力4eに記憶され、そのまわりの点の値
がシフトレジスタ出力4a〜4d,4f〜4iに記憶さ
れる。
From the memory 3, the value of the previous line of the line including the binarized point is output to the memory output 3a, and the value of the same line is output to the memory output 3a.
In b, the value of the next line is output to the memory output 3c. Then, the shift register 4 stores the values of the points to be binarized in the shift register output 4e, and the values of the points around it are stored in the shift register outputs 4a to 4d and 4f to 4i.

マイクロプロセッサ、ROMおよびRAMからなる論理
回路5は、平均値回路2からの平均値出力2aと、シフ
トレジスタ出力4a〜4iから、2値化を行う。すなわ
ち、論理回路5は、シフトレジスタ出力4eとそれ以外
のシフトレジスタ出力4a〜4d,4f〜4iとの差を
それぞれ求め、この差が所定量以内である上記差の数が
2個以上あればノイズでないと判定する。そして、シフ
トレジスタ出力4eがノイズでなく、かつ、シフトレジ
スタ出力4eと平均値出力2aとの差が所定量以上のと
きに、2値出力5aの値を一定のしきい値を用いる2値
化処理で0あるいは1に決定する。それ以外のときに
は、平均値出力2aの値と、2値化する点の位置によ
り、2値化出力5aの値をディザ法で決定する。
A logic circuit 5 including a microprocessor, ROM, and RAM performs binarization from the average value output 2a from the average value circuit 2 and the shift register outputs 4a to 4i. That is, the logic circuit 5 obtains the difference between the shift register output 4e and the other shift register outputs 4a to 4d and 4f to 4i, and if the difference is within a predetermined amount, the number of the above differences is two or more. Judge as not noise. Then, when the shift register output 4e is not noise and the difference between the shift register output 4e and the average value output 2a is a predetermined amount or more, the value of the binary output 5a is binarized using a constant threshold value. It is set to 0 or 1 by processing. In other cases, the value of the binarized output 5a is determined by the dither method according to the value of the average value output 2a and the position of the point to be binarized.

本実施例では、平均値の計算に回路を簡単にするため
に、2値化する点を含む8×8マトリクスを用いたが、
マトリクスの大きさは画像等に応じて定めればよい。ま
た、差の数も画像等に応じて適当に定めればよい。
In this embodiment, an 8 × 8 matrix including binarization points is used in order to simplify the circuit for calculating the average value.
The size of the matrix may be determined according to the image or the like. Also, the number of differences may be appropriately determined according to the image or the like.

(発明の効果) 2値化する点の近傍で濃度の急激な変化がない場合に
は、ディザ法による2値化処理により階調を表現し、変
化がある場合には2階調で表現することにより、文字等
は2階調でハッキリと2値化ができる。
(Effect of the invention) When there is no abrupt change in density near the binarizing point, gradation is expressed by binarization processing by the dither method, and when there is a change, gradation is expressed. As a result, characters and the like can be clearly binarized in two gradations.

また、原稿上のノイズあるいは回路上のノイズ等を除去
しているため、ノイズのない画像がえられる。
Further, since noise on the document or noise on the circuit is removed, an image without noise can be obtained.

ディジタル信号に変換した後に、処理を行なうため、安
価なディジタルメモリを使用できる。
Since the processing is performed after conversion into a digital signal, an inexpensive digital memory can be used.

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

第1図は、画像信号2値化回路の回路図である。第2図
(a)〜(d)は、画像読取における光学系の位置を順次示す
図である。 1……AD変換器、2……平均値回路、 3……メモリ、4,4,4……シフトレジスタ、 5……論理回路、21……光電変換器、 31……プラテンガラス、32……基準白色、 41……原稿。
FIG. 1 is a circuit diagram of an image signal binarization circuit. Fig. 2
(a)-(d) is a figure which shows the position of the optical system in image reading one by one. 1 ... AD converter, 2 ... average value circuit, 3 ... memory, 4, 4, 4 ... shift register, 5 ... logic circuit, 21 ... photoelectric converter, 31 ... platen glass, 32 ... ... Standard white, 41 ... Original.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】原稿の画像の濃度をアナログ電気信号に変
換する光電変換手段と、 このアナログ電気信号を複数ビットのディジタル画像信
号に変換するAD変換手段と、 一定のしきい値を用いる2値化処理またはディザ法によ
る2値化処理でディジタル画像信号を2値化する2値化
手段と、 2値化すべき点を含むその周囲の複数のn個の点のディ
ジタル画像信号を記憶する記憶手段と、 上記の2値化すべき点を含むその周囲の複数のm点(m≧
n)のディジタル画像信号の平均値を得る平均手段と、 上記のn点のディジタル画像信号について、上記の2値
化すべき点のディジタル画像信号とそれ以外の点のディ
ジタル画像信号との差を求め、この差が所定の値以内で
ある上記差の数が所定の値以上あり、かつ、上記の2値
化すべき点のディジタル画像信号と上記の平均値との差
が所定の値以上である場合に一定のしきい値を用いる2
値化処理を採用し、それ以外の場合には平均化してディ
ザ法による2値化処理を採用する2値化制御手段とを備
えたことを特徴とする画像信号2値化回路。
1. A photoelectric conversion means for converting the density of an image of an original into an analog electric signal, an AD conversion means for converting the analog electric signal into a digital image signal of a plurality of bits, and a binary value using a constant threshold value. Binarizing means for binarizing a digital image signal by binarizing processing or binarizing processing by the dither method, and storage means for storing digital image signals of a plurality of n points surrounding the point to be binarized. And a plurality of m points around the point including the point to be binarized (m ≧
n) averaging means for obtaining an average value of the digital image signal, and for the n-point digital image signal, the difference between the digital image signal at the point to be binarized and the digital image signal at the other points is obtained. , The difference is within a predetermined value, the number of differences is a predetermined value or more, and the difference between the digital image signal at the point to be binarized and the average value is a predetermined value or more. Use a constant threshold for 2
An image signal binarization circuit, comprising: a binarization control unit that employs a binarization process and, in other cases, averages the binarization process by a dither method.
JP61131125A 1986-06-05 1986-06-05 Image signal binarization circuit Expired - Fee Related JPH069374B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61131125A JPH069374B2 (en) 1986-06-05 1986-06-05 Image signal binarization circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61131125A JPH069374B2 (en) 1986-06-05 1986-06-05 Image signal binarization circuit

Publications (2)

Publication Number Publication Date
JPS62287784A JPS62287784A (en) 1987-12-14
JPH069374B2 true JPH069374B2 (en) 1994-02-02

Family

ID=15050568

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61131125A Expired - Fee Related JPH069374B2 (en) 1986-06-05 1986-06-05 Image signal binarization circuit

Country Status (1)

Country Link
JP (1) JPH069374B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04217168A (en) * 1990-12-18 1992-08-07 Murata Mach Ltd Image reading device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58220563A (en) * 1982-06-17 1983-12-22 Fujitsu Ltd Character and pattern picture image extracting system

Also Published As

Publication number Publication date
JPS62287784A (en) 1987-12-14

Similar Documents

Publication Publication Date Title
ES2324611T3 (en) IMAGE PROCESSING DEVICE, IMAGE FORMATION DEVICE, AND IMAGE TREATMENT PROCEDURE.
EP0719032B1 (en) Apparatus for reading image and method therefor
JPH069374B2 (en) Image signal binarization circuit
JP2755506B2 (en) Image forming device
JP2888627B2 (en) Image reading device
JPS58186264A (en) Facsimile device
JPS60254876A (en) Shading correcting device
JP3014257B2 (en) Document reading device
JP2506643B2 (en) History correction reader
JPH0119192B2 (en)
JPH0778830B2 (en) Image signal processor
JPS5957572A (en) Binary-coding system
JPH03147479A (en) Picture reader
JPS58119268A (en) Picture signal processing system
JPS619764A (en) Picture processor
JPH01258558A (en) Method for deciding threshold density for original reader
JPH11215375A (en) Image reader
JPH1188676A (en) Image-reading method and system thereof
JPS63204878A (en) Image signal processor
JPH0377475A (en) Picture reader
JPS6145679A (en) Picture signal processing device
JPS62216587A (en) Image reader
JPH03289763A (en) Original reader
JPH0360276A (en) Picture information reader
JPH0273775A (en) Picture input device

Legal Events

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