JPH0461476A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH0461476A
JPH0461476A JP2170240A JP17024090A JPH0461476A JP H0461476 A JPH0461476 A JP H0461476A JP 2170240 A JP2170240 A JP 2170240A JP 17024090 A JP17024090 A JP 17024090A JP H0461476 A JPH0461476 A JP H0461476A
Authority
JP
Japan
Prior art keywords
pixel
signal
binarized
target pixel
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2170240A
Other languages
Japanese (ja)
Inventor
Norio Ishibashi
規男 石橋
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2170240A priority Critical patent/JPH0461476A/en
Publication of JPH0461476A publication Critical patent/JPH0461476A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 「産業上の利用分野〕 本発明は、写真などの濃淡画像の2値化処理に適用され
る画像処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing device applied to binarization processing of grayscale images such as photographs.

[従来の技術] 例えば、ファクシミリ装置では、原稿上の画情報をイメ
ージセンサなどにより電気的アナログ信号として読み取
るとともに、このアナログ信号を基準信号と比較して、
その大小関係から2値化信号を得るような画像処理が行
われている。
[Prior Art] For example, in a facsimile machine, image information on a document is read as an electrical analog signal by an image sensor, etc., and this analog signal is compared with a reference signal.
Image processing is performed to obtain a binary signal from the magnitude relationship.

しかして、従来、このように画像を2値化する手段とし
て、入力画素と出力画素の比が1=1のものについては
、組織的デイザ法、誤差拡散法、平均誤差最小法などが
知られている。
Conventionally, methods such as systematic dither method, error diffusion method, minimum average error method, etc. are known as means for binarizing an image when the ratio of input pixels to output pixels is 1=1. ing.

組織的デイザ法は、原稿上から読み取られた画情報のア
ナログ信号と、予め用意されたデイザパターンデジタル
情報をD/Aコンバータによりアナログ化した信号とを
比較して2値化信号を得るようにしたもので、複雑な演
算が不要で、構成も比較的簡単にできることから多く利
用されている。
The systematic dither method compares an analog signal of image information read from a document with a signal obtained by converting dither pattern digital information prepared in advance into an analog signal using a D/A converter to obtain a binary signal. It is widely used because it does not require complicated calculations and is relatively easy to configure.

ところが、このものは、輪郭部か移動したり消滅したり
することがあるため、文字などを含む濃淡画像の場合、
精度の高い2値化処理が難しく、このまま2値化表示を
行うと、特に文字部分が欠落したり、輪郭にはけを生じ
る欠点かあった。
However, because the outline of this image may move or disappear, in the case of a shading image containing text, etc.
Highly accurate binarization processing is difficult, and if binarized display is carried out as it is, there are disadvantages in which text parts may be missing or outlines may be blurred.

一方、誤差拡散法および平均誤差最小法は、上述の組織
的デイザ法に比べ、解像度の点で優れており、精度の高
い2値化表示を行うことができるが、これらは、いずれ
もアルゴリズムが複雑で、ソフト処理しようとすると処
理速度に問題があり、またハード処理しようとするとデ
ジタル的処理を行うことから、例えば、A/Dコンバー
タ、ラインバッファ、乗算、加算器および比較器などを
必要とし、回路構成か大掛かりになり、装置の大型化と
ともに、価格的にも高価になる欠点かある。
On the other hand, the error diffusion method and the minimum average error method are superior to the systematic dither method described above in terms of resolution and can perform highly accurate binarized display, but both of these methods require algorithms. It is complex, and if you try to process it with software, there will be a problem with the processing speed, and if you try to process it with hardware, you will need digital processing, so for example, you will need an A/D converter, a line buffer, a multiplier, an adder, a comparator, etc. However, the disadvantage is that the circuit structure is large and the device becomes large and expensive.

[発明が解決しようとする課題] このように文字などを含む濃淡画像の2値化に用いられ
るもので、組織的デイザ法を採用しtユものは、比較的
構成を簡単にできるものの、精度の高い2値化処理が難
しくなり、一方、誤差拡散法および平均誤差最小法を採
用したものは、精度の高い2値化処理が可能なものの、
回路構成が大掛かりとなり大型で、価格的にも高価にな
るなとの欠点かあった。
[Problems to be Solved by the Invention] As described above, the method used for binarizing gray scale images including characters, etc., which adopts the systematic dither method, has a relatively simple configuration, but has a low accuracy. On the other hand, methods that employ the error diffusion method and the minimum average error method can perform highly accurate binarization processing, but
The disadvantages were that the circuit configuration was large, large, and expensive.

本発明は、上記事情に鑑みてなされたもので、文字など
を含む濃淡画像についても良好な2値化が可能で、しか
も回路構成が簡単で、価格的にも安価にてきる画像処理
装置を提供することを目的とする。
The present invention has been made in view of the above circumstances, and provides an image processing device that is capable of good binarization of grayscale images including characters, has a simple circuit configuration, and is inexpensive. The purpose is to provide.

[課題を解決するための手段] 本発明の画像処理g Mは、原稿上の画情報を読み取る
とともに、画素単位の電気的信号を原稿読取り手段より
出力し、この原稿読取り手段より出力される信号を、基
準値と比較し、その大小関係から求められる2値化信号
を2値化手段より出力し、この2値化手段より出力され
る2値化データを、画像を構成する少なくとも1ライン
分の画素に対応させて記憶手段に記憶させ、そして、2
値化処理の対象となる画素に関して当該対象画素の近傍
領域を構成する記憶手段に記憶された画素の2値化デー
タと対象画素の直前の画素の2値化データにより基準値
を決定し、2値化手段に与えるようにしたものである。
[Means for Solving the Problems] The image processing g M of the present invention reads image information on a document, outputs an electrical signal in pixel units from a document reading means, and outputs a signal output from the document reading means. is compared with a reference value, and a binarized signal obtained from the magnitude relationship is output from the binarizing means, and the binarized data output from the binarizing means is divided into at least one line of the image. 2.
A reference value is determined for a pixel to be subjected to digitization processing based on the binarized data of the pixel stored in the storage means constituting the neighborhood area of the target pixel and the binarized data of the pixel immediately before the target pixel. This is given to the value conversion means.

[作用コ この結果、本発明によれば2値化処理の対象となる画素
に関して、この対象画素の近傍領域で既に処理済みの画
素の2値化信号を使用して、閾値を求め、これを基準値
として対象画素の2値化を行うようになるので、文字な
どを含む濃淡画像などの場合も、原画の濃度に忠実で良
質な2ffi化処理が実現できる。また、対象画素の近
傍領域の2値化信号により閾値を求める回路は、抵抗と
アナログスイッチ程度のもので実現でき、さらに、これ
により得られた閾値はアナログ信号で、この閾値に基づ
く対象画素の2値化をアナログ的処理により実現できる
ので、回路構成も簡単なものにできる。
[Operation] As a result, according to the present invention, for a pixel to be binarized, a threshold value is determined using the binarized signal of a pixel that has already been processed in the vicinity of the target pixel, and this is Since the target pixel is binarized as a reference value, high-quality 2ffi conversion processing that is faithful to the density of the original image can be realized even in the case of a grayscale image containing characters or the like. In addition, a circuit that calculates the threshold value from a binary signal in the vicinity of the target pixel can be realized with a resistor and an analog switch. Since binarization can be realized by analog processing, the circuit configuration can also be simplified.

[実施例] 以下、本発明の一実施例を図面にしたがい説明する。[Example] An embodiment of the present invention will be described below with reference to the drawings.

第1図は、同実施例の回路構成を示すものである。図に
おいて、1は原稿で、この原稿1面には、光源のLED
アレイ2より出力される光が照射される。そして、この
原稿1面からの反射光をセルフォックレンズアレイ3を
介してイメージセンサ4に与えるようにしている。ここ
で、イメージセンサ4には、CCDが用いられ、原稿1
面からの反射光より画情報に応じたアナログ信号を出力
するようにしている。
FIG. 1 shows the circuit configuration of the same embodiment. In the figure, 1 is a document, and on the first side of this document is an LED light source.
The light output from the array 2 is irradiated. Then, the reflected light from the first surface of the original is applied to the image sensor 4 via the SELFOC lens array 3. Here, a CCD is used as the image sensor 4, and the original 1
An analog signal corresponding to image information is output from the reflected light from the surface.

イメージセンサ4のアナログ出力信号は、増幅器5を介
してサンプルホールド部6に送られる。
The analog output signal of the image sensor 4 is sent to a sample and hold section 6 via an amplifier 5.

ここで、増幅器5は、イメージセンサ4のアナログ出力
信号を増幅するためのもので、また、サンプルホールド
部6は、増幅器5で増幅されたアナログ出力信号よりリ
セットノイズなどを取り除き、必要なデータのみを取り
出すためのものである。
Here, the amplifier 5 is for amplifying the analog output signal of the image sensor 4, and the sample hold section 6 removes reset noise etc. from the analog output signal amplified by the amplifier 5, and only necessary data is used. It is for taking out.

サンプルホールド部6の出力は、アナログ比較器7の一
方の入力端子に与えられる。この比較器7は、他方の入
力端子に非直線性D/A変換器8の出力か閾値の基準電
圧として与えられ、これら入力の大小関係から2値化信
号を出力するようになっている。
The output of the sample hold section 6 is given to one input terminal of an analog comparator 7. This comparator 7 is provided with the output of the nonlinear D/A converter 8 or a threshold reference voltage at the other input terminal, and outputs a binary signal based on the magnitude relationship of these inputs.

比較器7の出力は、前ラインバッファ9および参照領域
窓バツファ10に与えられる。ここで、前ラインバッフ
ァ9は、第2図に示すように、画像を構成する1ライン
分の画素に対応させて2値化信号を記憶するもので、各
画素に対応する2値化信号はクロックCKIによりシフ
ト入力されるようになっている。また、参照領域窓バツ
ファ10は、第3図に示す対象画素fに対してハツチン
グ部で示す近傍参照領域の4個の画素a、b、cdの2
値化信号が書き込まれるもので、ここでは、第2図に示
すように前ラインバッファ9に記憶された画素a、b、
cの2値化信号が与えられるとともに、比較器7より前
回画素dの2値化信号が与えられるようになっている。
The output of the comparator 7 is applied to a previous line buffer 9 and a reference area window buffer 10. Here, as shown in FIG. 2, the front line buffer 9 stores a binary signal corresponding to one line of pixels constituting an image, and the binary signal corresponding to each pixel is It is designed to be shifted and inputted by clock CKI. Further, the reference area window buffer 10 stores two pixels a, b, and cd of four pixels a, b, and cd in the neighboring reference area shown by hatching with respect to the target pixel f shown in FIG.
Valued signals are written to the pixels a, b, and pixel stored in the previous line buffer 9 as shown in FIG.
The binarized signal of pixel c is given, and the comparator 7 also gives the binarized signal of the previous pixel d.

この場合、これら画素a、b、c、dの2値化信号は、
クロックCK2によりラッチされるようになっている。
In this case, the binary signals of these pixels a, b, c, and d are
It is designed to be latched by clock CK2.

そして、参照領域窓バツファ10の出力は、非直線性D
/A変換器8に送られる。この非直線性D/A変換器8
は、a、b、c、dの信号値に従って異なる電圧を発生
し、これをアナログ比較器7に2値化の閾値電圧として
与える。この非直線性D/A変換器8は、抵抗RO,R
1と、それぞれが並列的にアナログスイッチを有する第
1の抵抗群R5−R2と、同様にアナログスイッチを有
する第2の抵抗群R2−R5と、抵抗R6,R7とを直
列に接続した回路で構成され、第1の抵抗群R5−R2
と第2の抵抗群R2−R5の接続点をアナログ比較器7
の入力端子に接続している。
Then, the output of the reference region window buffer 10 has nonlinearity D
/A converter 8. This nonlinear D/A converter 8
generates different voltages according to the signal values of a, b, c, and d, and supplies this to the analog comparator 7 as a threshold voltage for binarization. This nonlinear D/A converter 8 has resistors RO, R
1, a first resistor group R5-R2 each having an analog switch in parallel, a second resistor group R2-R5 similarly having an analog switch, and resistors R6 and R7 are connected in series. configured, the first resistance group R5-R2
and the second resistor group R2-R5 are connected to the analog comparator 7.
is connected to the input terminal of

そして、抵抗ROの端部に電圧Vを与え、抵抗R7の端
部を接地することにより、比較器7にはこれら抵抗によ
って抵抗分割される電圧Vの分割電圧が閾値として入力
される。また、抵抗RO,R7は可変となっており、黒
レベル、白レベルの基準値を設定する。第1の抵抗群に
設けられたアナログスイッチ5ll−814には参照領
域窓バツファ10のa、b、c、dのデータか開閉信号
として与えられ、第2の抵抗群のアナログスイッチ52
1−524にはa、b、c、dかそれぞれインバータV
21−V24を介して開閉信号として与えられる。a、
b、c、dのrOJ  rlJの組み合わせにより、比
較器7には平均濃度近似法に基づいた閾値電圧が入力さ
れることになる。
By applying the voltage V to the end of the resistor RO and grounding the end of the resistor R7, the divided voltage of the voltage V divided by these resistors is input to the comparator 7 as a threshold value. Further, the resistors RO and R7 are variable and set reference values for the black level and white level. Data of a, b, c, d of the reference area window buffer 10 is given as an open/close signal to the analog switch 5ll-814 provided in the first resistance group, and the analog switch 5ll-814 of the second resistance group
1-524 has an inverter V for a, b, c, d, respectively.
21-V24 as an opening/closing signal. a,
By the combination of rOJ and rlJ of b, c, and d, a threshold voltage based on the average concentration approximation method is input to the comparator 7.

ここで平均濃度近似法について第3図をもちいて簡単に
説明する。
Here, the average concentration approximation method will be briefly explained using FIG.

平均濃度近似法とは、今2値化しようとする画素をfと
して、fの近傍の画素(前ラインについて、左上、真上
、右上の画素をa、b、c、同ラインの直前の画素をd
とする)で構成される小領域を見て、小領域内の各画素
の重みを考慮した平均濃度に近いところでfを2値化し
、原画に近い感触を得ようとする方法である。a、b、
c、dの各画素については、fの処理時点では、既に“
0(白)゛か“1(黒)″かが決定しており、仮にfが
“0″と仮定した場合の小領域の平均濃度をmOとし、
fが“1″の場合の平均濃度をmlとして、(mO+m
1)72を閾値としてfを2値化すれば、原画により忠
実な再現ができるという考えである。
In the average density approximation method, the pixel to be binarized is f, and the pixels in the vicinity of f (for the previous line, the upper left, right upper, and upper right pixels are a, b, c, and the pixel immediately before the same line) d
This method looks at a small area made up of (2), and binarizes f at a point close to the average density considering the weight of each pixel in the small area, in order to obtain a feel close to the original image. a, b,
For each pixel c and d, at the time of processing f, it is already "
0 (white) or "1 (black)" has been determined, and if f is assumed to be "0", the average concentration of the small area is mO,
Letting the average concentration in ml when f is “1”, (mO+m
1) The idea is that if f is binarized using 72 as a threshold value, a more faithful reproduction of the original image can be achieved.

第3図においては、a−1,b−2,c=1゜d−2,
f−4というように各画素に重みを付ける。a、b、c
、dかいずれも「1」でfをrOJと仮定すると、mo
−6/10となり、fを「1」と仮定すると、m 1−
10 / 10となる。したがってa、b、c、dが総
て黒である場合は閾値5h−8/10とすることになる
。この閾値をアナログ比較器7に与えるために、a、b
、c、d−1の条件下で、非直線性D/A変換器8の各
抵抗の抵抗値は次の式を満たせば良い。
In Figure 3, a-1, b-2, c=1°d-2,
Each pixel is weighted as f-4. a, b, c
, d are all "1" and f is rOJ, then mo
-6/10, and assuming f is "1", m 1-
It becomes 10/10. Therefore, if a, b, c, and d are all black, the threshold value is set to 5h-8/10. In order to provide this threshold value to the analog comparator 7, a, b
, c, and d-1, the resistance value of each resistor of the nonlinear D/A converter 8 should satisfy the following equation.

R1+R2+R3+R4+R5+R610・・・(1) 一方、a、b、c、dかいずれも「0」の場合、fを「
0」と仮定すると、mo−0/10となり、fを「1」
と仮定すると、ml−4/10となる。
R1+R2+R3+R4+R5+R610...(1) On the other hand, if a, b, c, or d are all "0", set f to "
If it is assumed that
Assuming that, it becomes ml-4/10.

したがってa、b、c、dが全て白である場合は閾値s
 h = 2 / 10とすることになる。この閾値を
アナログ比較器7に与えるために、a、b、c。
Therefore, if a, b, c, and d are all white, the threshold s
h = 2/10. In order to provide this threshold value to the analog comparator 7, a, b, c.

d−0の条件下で、非直線性D/A変換器8の各抵抗の
抵抗値は次の式を満たせば良い。
Under the condition of d-0, the resistance value of each resistor of the nonlinear D/A converter 8 should satisfy the following equation.

・・・(2) 同様にして、a、b、cml、d−0の場合、a、c、
d−1、b−oの場合、b、d−1、a。
...(2) Similarly, in the case of a, b, cml, d-0, a, c,
In the case of d-1, b-o, b, d-1, a.

c−0の場合は、いずれもm O= 4 / 10、m
l−8/10で、s h = 6 / 10であるから
、抵抗値は次の式を満たせば良い。
In the case of c-0, m O = 4 / 10, m
Since 1-8/10 and s h = 6/10, the resistance value should satisfy the following equation.

上記の式を解くと、 R1:R2:R3:R4:R5:R6 −2: 1 :2: 1 :2+2 となり、この比率で抵抗値を設定することにより、非直
線性D/A変換器8はa、b、c、dの状態に従った閾
値を発生することになる。
Solving the above equation gives R1:R2:R3:R4:R5:R6 -2: 1 :2: 1 :2+2, and by setting the resistance value with this ratio, the nonlinear D/A converter 8 will generate thresholds according to the states of a, b, c, and d.

一方、比較器7の8カは、シリアル/パラレル1m51
1に送られる。このシリアル/パラレル変換器11は、
2値化されたシリアルの信号をパラレルに変換するもの
である。そして、このシリアル/パラレル変換器11で
パラレル変換された出力は、メモリ12に送られる。こ
のメモリ12は、シリアル/パラレル変換器11からの
パラレル変換された2値化信号を画像データとして記憶
するものである。そして、このメモリ12の画像データ
は、サーマルヘッド駆動部13を介してサーマルヘッド
14に送られ、記録紙15に印字されるようになってい
る。
On the other hand, the 8 units of comparator 7 are serial/parallel 1m51
Sent to 1. This serial/parallel converter 11 is
It converts a binary serial signal into parallel. The output parallel-converted by the serial/parallel converter 11 is sent to the memory 12. This memory 12 stores the parallel-converted binary signal from the serial/parallel converter 11 as image data. The image data stored in the memory 12 is sent to a thermal head 14 via a thermal head drive section 13 and printed on a recording paper 15.

なお、図中16は上述した各回路の動作を制御する制御
部で、ここでは、サンプルホールド部6、前ラインバッ
ファ9、参照領域窓バツファ10、シリアル/パラレル
変換器11、メモリ12およびサーマルヘッド駆動N1
3にそれぞれ制御指令を与えるようになっている。
In addition, 16 in the figure is a control unit that controls the operation of each circuit described above, and here, it includes a sample hold unit 6, a previous line buffer 9, a reference area window buffer 10, a serial/parallel converter 11, a memory 12, and a thermal head. Drive N1
Control commands are given to each of the three.

次に、このように構成した実施例の動作を説明する。Next, the operation of the embodiment configured as described above will be explained.

いま、原稿1面に、LEDアレイ2より光が照射される
と、原稿1面からの反射光がセルフォックレンズアレイ
3を介してイメージセンサ4に与えられ、画情報に応じ
たアナログ信号が出力される。
Now, when the first side of the original is irradiated with light from the LED array 2, the reflected light from the first side of the original is given to the image sensor 4 via the SELFOC lens array 3, and an analog signal corresponding to the image information is output. be done.

イメージセンサ4のアナログ出力信号は、増幅器5を介
してサンプルホールド部6に送られ、ここで、増幅され
、さらに、リセットノイズなどが取り除かれ、必要なデ
ータのみが取り出される。
The analog output signal of the image sensor 4 is sent to the sample and hold unit 6 via the amplifier 5, where it is amplified, reset noise, etc. are removed, and only necessary data is extracted.

サンプルホールド部6の出力は、アナログ比較器7の一
方の入力端子に与えられる。この比較器7は、他方の入
力端子に非直線性D/A変換器8の先に説明した出力が
基準電圧として与えられている。
The output of the sample hold section 6 is given to one input terminal of an analog comparator 7. The other input terminal of this comparator 7 is provided with the previously explained output of the nonlinear D/A converter 8 as a reference voltage.

今、ある画素情報が比較器7で2値化される場合を考え
ると、この時点で参照領域窓バツファ10に書き込まれ
た画素a、b、c、dに相当する2値化信号が非直線性
D/A変換器8に送られると、仮に画素a、b、c、d
の2値化信号が、いずれも黒「1」の場合は、アナログ
スイッチ811.512,513.S14がオンで、ア
ナログスイッチS21.S22,52B、S24がオフ
になり第1の抵抗群R2〜R5が短絡状態になるので、
比較器7の他方の入力端子に閾値として基r4電圧8/
IOVが与えられるようになり、比較器7の一方の入力
端子に与えられる対象画素fに対応する入力は、基準電
圧に対する大小関係から21ii!化信号に変換され出
力されることになる。
Now, if we consider a case where certain pixel information is binarized by the comparator 7, the binarized signals corresponding to pixels a, b, c, and d written to the reference area window buffer 10 at this point are non-linear. If the pixels are sent to the digital D/A converter 8, then the pixels a, b, c, d
If the binary signals of all of the digitized signals are black "1", the analog switches 811, 512, 513 . S14 is on, analog switch S21. Since S22, 52B, and S24 are turned off and the first resistance group R2 to R5 is shorted,
The base r4 voltage 8/ is applied as a threshold to the other input terminal of the comparator 7.
IOV is now given, and the input corresponding to the target pixel f given to one input terminal of the comparator 7 is 21ii! from the magnitude relationship with respect to the reference voltage. It will be converted into a signal and output.

一方、画素a、b、c、dの2値化信号が、いずれも白
「0」の場合は、アナログスイッチS11、  S12
.  S13.S14がオフで、アナログスイッチ52
1.S22.S23.S24がオンになり、今度は第2
の抵抗群R2〜R5が短絡状態になるので、比較器6の
他方の入力端子に閾値として基準電圧の2/IOVが与
えられるようになり、比較器7では一方の入力端子に与
えられる対象画素fに対応する入力は、基準電圧に対す
る大小関係から2値化信号に変換され出力されることに
なる。
On the other hand, when the binary signals of pixels a, b, c, and d are all white "0", the analog switches S11 and S12
.. S13. S14 is off, analog switch 52
1. S22. S23. S24 is turned on and now the second
Since the resistance group R2 to R5 becomes short-circuited, 2/IOV of the reference voltage is applied as a threshold to the other input terminal of the comparator 6, and the target pixel applied to one input terminal of the comparator 7 The input corresponding to f is converted into a binary signal and output based on the magnitude relationship with respect to the reference voltage.

a、b、cか黒、dが白、またはa、c、dが黒、bが
白、またはす、dが黒、a、Cが白の場合は、それぞれ
の場合のa、b、c、d信号により、短絡箇所が決定さ
れるが、いずれも閾値として6/IOVを発生し、これ
を基にfが2値化されることになる。
If a, b, c are black and d is white, or a, c, d are black, b is white, or if a, d are black, a, C are white, then a, b, c in each case , d signals determine the short circuit location, both of which generate 6/IOV as a threshold, and f is binarized based on this.

その後、第3図において、処理が進んで対象画素がf′
に移った場合は、近傍参照領域として画素a / 、 
 b / 、  ct 、  dtの2値化信号が用い
られ、これらのうち画素al 、  b L 、  c
tの2値化信号は、前ラインバッファ9より参照領域窓
バツファ10に書き込まれ、画素d′の2値化信号は、
上述した対象画素fに関する比較器7がらの2値化信号
が用いられ参照領域窓バツファ1oに書き込まれるよう
になり、この状態で、上述したと同様な動作が実行され
る。
After that, in FIG. 3, the processing progresses and the target pixel becomes f'
When moving to , pixel a / as the nearby reference area,
Binarized signals of b/, ct, and dt are used, and among these, pixels al, b L, c
The binarized signal of pixel t is written from the previous line buffer 9 to the reference area window buffer 10, and the binarized signal of pixel d' is written as
The binarized signal from the comparator 7 regarding the target pixel f described above is used and written into the reference area window buffer 1o, and in this state, the same operation as described above is performed.

そして、比較器7からの出力は、制御部16の指示にし
たがってシリアル/パラレル変換器11に送られ、ここ
で、2値化信号はパラレル信号に変換され、メモリ12
に記憶される。その後、メモリ12の画像データは、制
御部16の指示で読み出されると、サーマルヘッド駆動
部13を介してサーマルヘッド14に送られ、記録紙1
5に印字されることになる。
The output from the comparator 7 is sent to the serial/parallel converter 11 according to instructions from the control unit 16, where the binary signal is converted to a parallel signal, and the memory 12
is memorized. Thereafter, when the image data in the memory 12 is read out according to instructions from the control section 16, it is sent to the thermal head 14 via the thermal head drive section 13, and is sent to the recording paper 14.
5 will be printed.

したがって、このようにすれば処理対象の画素fについ
て、前ラインで既に処理済みの画素ab、cの2値化信
号と、直前に処理済みの画素dの2値化信号に基づいて
、非直線性D/A変換器8のアナログスイッチSll、
S12,813゜514およびS21、S22.S23
.S24のオンオフ状態を設定し、これに応じた抵抗の
値をもって閾値が得られるようになるので、この閾値に
基づいて判定される対象画素fの2値化信号は、原画の
濃度に近い最適なものか得られるようになり、文字など
を含む濃淡画像などの場合も、原画の濃度に忠実で、良
質な2値化処理か実現できる。
Therefore, in this way, for the pixel f to be processed, a non-linear analog switch Sll of the digital D/A converter 8;
S12,813°514 and S21, S22. S23
.. Since the on/off state of S24 is set and the threshold value is obtained with the corresponding resistance value, the binarized signal of the target pixel f determined based on this threshold value is the optimal one that is close to the density of the original image. Even in the case of grayscale images containing text, etc., it is possible to achieve high-quality binarization processing that is faithful to the density of the original image.

また、対象画素fの閾値を決定する非直線性D/A変換
器8は、抵抗とアナログスイッチで構成されており、さ
らに、この変換器8より得られる閾値はアナログ信号で
、この閾値に基づく対象画素の2値化をアナログ的処理
により実現できるので、回路構成全体も簡単なものにで
き、価格的にも安価にできる。
In addition, the non-linear D/A converter 8 that determines the threshold value of the target pixel f is composed of a resistor and an analog switch, and furthermore, the threshold value obtained from this converter 8 is an analog signal, and is based on this threshold value. Since the binarization of the target pixel can be realized by analog processing, the entire circuit configuration can be simplified and the price can be reduced.

なお、本発明は、上記実施例にのみ限定されず、要旨を
変更しない範囲で適宜変形して実施できる。
Note that the present invention is not limited to the above-mentioned embodiments, but can be implemented with appropriate modifications within the scope without changing the gist.

例えば、上述した実施例では、処理対象の画素を含めて
5個の画素で参照領域を設定し、平均濃度近似法に基づ
いて閾値を求めるようにしたが、階調表現を向上させる
には、例えばラインバッファを2ライン分用意し、第4
図に示すように、処理対象の画素n1と、この対象画素
n1近傍の12個の画素a1〜p1で参照領域を構成す
るようにしてもよい。この場合、第5図に示すようにラ
インバッファとして前ラインバッファ21と前々ライン
バッファ22を設け、これらバッファ21゜22の内容
を順に参照領域窓バツファ23に与え、対象画素n1と
12個の画素a1〜g1により参照領域を構成している
。そして、参照領域窓バツファ23の内容を非直線性D
/A変換器24に与え、ここで閾値を求め、これを基準
電圧として比較器25に与えるようにしている。ここで
、非直線性D/A変換器24は、抵抗R2’〜R13′
R1’ 、RO’の第1の直列回路と抵抗R2’〜R1
3’ 、R14’ 、R15’の第2の直列回路、アナ
ログスイッチS11′〜S22’   531’〜S4
2′およびインバータV31′〜V42′により構成さ
れている。また、上述した実施例の結果を、さらに滑ら
かと階調表現を向上させるため組織的デイザ回路を追加
して閾値を変動させるようにしてもよい。
For example, in the embodiment described above, a reference area is set with five pixels including the pixel to be processed, and a threshold value is determined based on the average density approximation method. However, in order to improve gradation expression, For example, prepare a line buffer for two lines, and
As shown in the figure, the reference area may be configured by a pixel n1 to be processed and 12 pixels a1 to p1 in the vicinity of the target pixel n1. In this case, as shown in FIG. 5, a previous line buffer 21 and a line buffer 22 are provided as line buffers, and the contents of these buffers 21 and 22 are sequentially applied to the reference area window buffer 23, and the target pixel n1 and 12 Pixels a1 to g1 constitute a reference area. Then, the contents of the reference region window buffer 23 are converted to nonlinearity D
/A converter 24, where a threshold value is determined, and this is applied to a comparator 25 as a reference voltage. Here, the nonlinear D/A converter 24 has resistors R2' to R13'
First series circuit of R1', RO' and resistors R2' to R1
3', R14', R15' second series circuit, analog switches S11' to S22'531' to S4
2' and inverters V31' to V42'. Moreover, in order to further improve the smoothness and gradation expression of the results of the above-described embodiments, a systematic dither circuit may be added to vary the threshold value.

[発明の効果] 本発明の画像処理装置は、原稿上の画情報を読み取ると
ともに、画像単位の電気的信号を原稿読取り手段より出
力し、この原稿読取り手段より出力される信号を、基準
値と比較し、その大小関係から求められる2値化信号を
2値化手段より出力し、この2値化手段より出力される
2値化信号を、画像を構成する少なくとも1ライン分の
画素に対応させて記憶手段に記憶させ、そして、2値化
処理の対象となる画素に関して当該参照画素の近傍領域
の画素の2値化信号として記憶手段に記憶された該当画
素の2値化信号と対象画素の直前の画素の2値化信号を
取り込むとともに、これら2値化信号に基づいて平均濃
度近似法による閾値を求め記基準値として2値化手段に
与えるようにしたものであるから、2値化処理の対象と
なる画素に関して、この対象画素の近傍領域で既に処理
済みの画素の2値化信号を使用し、閾値を求め、これを
基準値として対象画素の2値化を行うようにできるので
、文字などを含む濃淡画像などの場合も、原画の濃度に
忠実で、良質な2値化処理か実現できる。また、対象画
素の近傍領域の2値化信号により閾値を決定する回路は
、抵抗とアナログスイッチ程度のもので実現でき、さら
に、これにより得られた閾値はアナログ信号で、この閾
値に基づく対象画素の2値化をアナログ的処理により実
現できるので、回路構成も簡単なものにでき、価格的に
も安価なものが得られる。
[Effects of the Invention] The image processing device of the present invention reads image information on a document, outputs an electrical signal for each image from the document reading means, and uses the signal output from the document reading means as a reference value. A binarized signal obtained from the comparison and the magnitude relationship is outputted from a binarization means, and the binarized signal outputted from the binarization means is made to correspond to at least one line of pixels constituting the image. Then, regarding the pixel to be binarized, the binarized signal of the pixel stored in the storage means as the binarized signal of the pixel in the vicinity of the reference pixel and the binarized signal of the target pixel are stored in the storage means. Since the binarized signal of the immediately preceding pixel is taken in, and the threshold value is determined by the average density approximation method based on these binarized signals and given to the binarization means as a reference value, the binarization process is performed. Regarding the target pixel, it is possible to use the binarized signal of the already processed pixel in the vicinity of the target pixel to find the threshold value, and use this as the reference value to perform the binarization of the target pixel. Even in the case of grayscale images containing text, etc., it is possible to achieve high-quality binarization processing that is faithful to the density of the original image. In addition, a circuit that determines the threshold value based on the binarized signal in the vicinity of the target pixel can be realized with a resistor and an analog switch, and the threshold value obtained by this is an analog signal, and the target pixel based on this Since the binarization can be realized by analog processing, the circuit configuration can be simplified and the price can be reduced.

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

第1図は、本発明の一実施例の回路構成を示すブロック
図、第2図は、同実施例に用いられる前ラインバッファ
および参照窓バッファを示す構成図、第3図は、同実施
例に採用される平均濃度近似法の原理を説明するための
図、第4図および第5図は、本発明の他の実施例を説明
するための図である。 1・・・原稿、2・・・LEDアレイ、3・・・セルフ
ォックレンズアレイ、4・・・イメージセンサ、5・・
・増幅器、6・・・サンプルホールド部、7・・・比較
器、8・・・非直線性D/A変換器、9・・・前ライン
バッファ、10・・・参照領域窓バツファ、11・・・
シリアル/パラレル変換部、12・・・メモリ、13・
・サーマルヘッド駆動部、14・・・サーマルヘッド、
〕5・・・記録紙、16・・・制御部。
FIG. 1 is a block diagram showing a circuit configuration of an embodiment of the present invention, FIG. 2 is a block diagram showing a front line buffer and a reference window buffer used in the embodiment, and FIG. 3 is a block diagram showing the circuit configuration of an embodiment of the present invention. FIGS. 4 and 5 are diagrams for explaining the principle of the average density approximation method adopted in , and are diagrams for explaining other embodiments of the present invention. 1... Original, 2... LED array, 3... SELFOC lens array, 4... Image sensor, 5...
- Amplifier, 6... Sample hold section, 7... Comparator, 8... Non-linear D/A converter, 9... Previous line buffer, 10... Reference area window buffer, 11.・・・
Serial/parallel converter, 12... memory, 13.
- Thermal head drive unit, 14... thermal head,
] 5... Recording paper, 16... Control section.

Claims (1)

【特許請求の範囲】 原稿上の画情報を読み取るとともに画素単位の電気的信
号を出力する原稿読取り手段と、 この原稿読取り手段より出力される電気的信号を基準値
と比較してその大小関係から当該電気的信号を2値化す
る2値化手段と、 この2値化手段より出力される2値化データを画像を構
成する少なくとも1ライン分の画素に対応させて記憶す
る記憶手段と、 2値化処理の対象となる画素に関して当該対象画素の近
傍領域を構成する上記記憶手段に記憶された画素の2値
化データと上記対象画素の直前に2値化された2値化デ
ータに基いて基準値を決定し、上記2値化手段に与える
基準値生成手段とを具備したことを特徴とする画像処理
装置。
[Claims] Document reading means for reading image information on a document and outputting an electrical signal in pixel units; and comparing the electric signal output from the document reading means with a reference value to determine the magnitude relationship between the electrical signals. Binarization means for binarizing the electrical signal; Storage means for storing the binarized data output from the binarization means in correspondence with at least one line of pixels constituting an image; 2. Regarding the pixel to be the target pixel of the digitization process, based on the binarized data of the pixel stored in the storage means constituting the neighborhood area of the target pixel and the binarized data binarized immediately before the target pixel. An image processing apparatus comprising: a reference value generating means for determining a reference value and supplying the determined reference value to the binarizing means.
JP2170240A 1990-06-29 1990-06-29 Picture processor Pending JPH0461476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2170240A JPH0461476A (en) 1990-06-29 1990-06-29 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2170240A JPH0461476A (en) 1990-06-29 1990-06-29 Picture processor

Publications (1)

Publication Number Publication Date
JPH0461476A true JPH0461476A (en) 1992-02-27

Family

ID=15901270

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2170240A Pending JPH0461476A (en) 1990-06-29 1990-06-29 Picture processor

Country Status (1)

Country Link
JP (1) JPH0461476A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007114002A (en) * 2005-10-19 2007-05-10 Ihi Aerospace Co Ltd Laser distance measuring method
WO2014087666A1 (en) 2012-12-07 2014-06-12 パナソニック株式会社 Microwave processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007114002A (en) * 2005-10-19 2007-05-10 Ihi Aerospace Co Ltd Laser distance measuring method
WO2014087666A1 (en) 2012-12-07 2014-06-12 パナソニック株式会社 Microwave processing device

Similar Documents

Publication Publication Date Title
JPH06101791B2 (en) Shading correction method and apparatus for preventing the influence of noise
JP2755506B2 (en) Image forming device
JP3021073B2 (en) Image processing device
JPS58104571A (en) Picture signal binary-coding system
JP2904302B2 (en) Image processing device
JPS62281678A (en) Picture processor
JP2853160B2 (en) High-resolution image reading circuit
JPS619764A (en) Picture processor
JP2730084B2 (en) Image signal processing circuit in image scanner
JP2770950B2 (en) Image signal processing device
JP2812006B2 (en) Binarization circuit
JPH0865503A (en) Image reading processor
JPH0722335B2 (en) Image forming device
JPH08317213A (en) Image processing device
JPH08242372A (en) Image processing device
JPH01177278A (en) Picture reader
JP2833066B2 (en) Image forming device
JPS6359264A (en) Image input device
JPS62292075A (en) Image signal binarization processing system
JPS62107575A (en) Method and device for generating high resolution binarization picture data
JPS6351771A (en) Picture read method
JPS62195981A (en) Picture reader
JPH03146367A (en) Image formation device
JPH07327123A (en) Image forming device
JPS60214159A (en) Picture signal processing system