JPH0260771A - Image processing system - Google Patents

Image processing system

Info

Publication number
JPH0260771A
JPH0260771A JP63212387A JP21238788A JPH0260771A JP H0260771 A JPH0260771 A JP H0260771A JP 63212387 A JP63212387 A JP 63212387A JP 21238788 A JP21238788 A JP 21238788A JP H0260771 A JPH0260771 A JP H0260771A
Authority
JP
Japan
Prior art keywords
signal
pixel
circuit
output
data
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
JP63212387A
Other languages
Japanese (ja)
Inventor
Akihiro Katayama
昭宏 片山
Hideshi Osawa
大沢 秀史
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 JP63212387A priority Critical patent/JPH0260771A/en
Priority to US07/396,339 priority patent/US5086484A/en
Priority to EP89308557A priority patent/EP0356225B1/en
Priority to DE68927696T priority patent/DE68927696T2/en
Priority to EP96200964A priority patent/EP0730369A1/en
Publication of JPH0260771A publication Critical patent/JPH0260771A/en
Priority to US08/276,643 priority patent/US5488673A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Color, Gradation (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To prevent the generation of pink part and a granular feeling in a low-density part by providing a threshold generating means for generating a threshold according to a density value of target pixel data and a binarizing means for generating binary output pixel data for the target pixel data. CONSTITUTION:An edge detection circuit 5 detects whether a target pixel is on an edge from a relation between the target pixel and surrounding pixels and outputs a signal corresponding to the judged result to a signal line 200. An threshold set circuit 7 sets a threshold according to corrected data outputted on a data line 100 and outputs the set threshold to a data line 300. Then, a binarizing circuit 6 binarizes the data of a target pixel on the basis of the edge detection signal on the signal line 200, the threshold issued from the threshold set circuit 7, and a signal on a signal line 400 and outputs the result on a signal line 500. Then, based on the signal '1' or '0' outputted on the signal line 500, an output part 9 forms a visible image.

Description

【発明の詳細な説明】 [発明の属する分野] 本発明は画像処理方式、詳しくは誤差拡散法に基づいて
出力画素データを生成する画像処理方式%式% ] 従来より、デジタルプリンタ、デジタルファクシミリ等
の像形成部で中間調を再現するために用いられる常套手
段として、デイザ処理が挙げられる。
[Detailed Description of the Invention] [Field of the Invention] The present invention relates to an image processing method, specifically an image processing method that generates output pixel data based on an error diffusion method.] Conventionally, digital printers, digital facsimiles, etc. Dither processing is a common method used to reproduce halftones in an image forming section.

通常、デイザ処理ではmXnのデイザマトリクスを用意
し、各々のマトリクス要素中の閾値と比較しmXnの2
値化ブロツクを形成する。これによって、疑似的に中間
調画像を再現するものである。
Normally, in dither processing, a mXn dither matrix is prepared, and a threshold value in each matrix element is compared with the mXn dither matrix.
Form a valorization block. In this way, a halftone image is reproduced in a pseudo manner.

ところが、この手法で再現できる階調数はデイザマトリ
クスのマトリクス要素数に制限されてしまい、例えば1
6階調(4X4デイザマトリクス等)である場合には、
出力画像中に疑似輪郭が発生してしまうことがあって、
良好な出力画像を得ることはできないという問題がある
However, the number of tones that can be reproduced using this method is limited to the number of matrix elements of the dither matrix, for example, 1
If there are 6 gradations (4X4 dither matrix, etc.),
False contours may occur in the output image,
There is a problem that a good output image cannot be obtained.

これに対して、最近、特に注目されている手法として誤
差拡散法がある。
On the other hand, the error diffusion method is a method that has recently received particular attention.

これは1975年にFloidと Steinberg
により’AnAdaptive Algorithm 
for 5pecial GrayScaleSID 
DIGESTという論文のなかで提案されたもので、解
像度・階調共にデイザ法よりも優れた手法である。
This was published in 1975 by Floyd and Steinberg.
'AnAdaptive Algorithm
for 5special GrayScaleSID
This method was proposed in a paper called DIGEST, and is superior to the dither method in both resolution and gradation.

[発明が解決しようとする課題] しかしながら、この誤差拡散法では、処理始めの画像濃
度に低い部分がある場合にはドツトが打たれず白く抜け
るという現象が発生してしまうという欠点があると共に
、エツジ部付近の低濃度部においても同様の事が発生し
ていた。更には、様な低濃度部ではドツトが一様に打た
れず再生画像に目障りな粒状感があった。
[Problems to be Solved by the Invention] However, this error diffusion method has the disadvantage that if there is a low density part of the image at the beginning of processing, a phenomenon occurs in which dots are not printed and white spots appear. A similar phenomenon occurred in the low concentration area near the edge. Furthermore, in such low-density areas, the dots were not uniformly printed, giving the reproduced image an unsightly grainy appearance.

本発明はかかる課題に鑑みなされたものであり、入力画
像の状態によらず高品位な再生画像を得ることを可能な
らしめる画像処理方式を提供しようとするものである。
The present invention has been made in view of this problem, and it is an object of the present invention to provide an image processing method that makes it possible to obtain a high-quality reproduced image regardless of the state of the input image.

[課題を解決するための手段及び作用]この課題を解決
すために本発明は以下に示す構成を備える。
[Means and operations for solving the problem] In order to solve this problem, the present invention has the configuration shown below.

すなわち、 誤差拡散法に基づいて出力画素データを生成する画像処
理方式であって、原画素データを入力する入力手段と、
誤差拡散法に基づいた2値出力画素を出力する出力手段
と、少なくとも前記入力手段で入力される注目画素デー
タの周辺に位置する前記2値出力画素群を複数記憶する
記憶手段と、記憶された2値出力画素群中の所定領域に
おける2値状態を検出する検出手段と、前記注目画素デ
ータ近傍が画像エツジ部にあるか否かを判別する判別手
段と、少なくとも前記注目画素データの濃度値に応じた
閾値な発生する閾値発生手段と、前記検出手段、前記判
別手段及び前記閾値発生手段に従って、前記注目画素デ
ータに対する2値出力画素データを発生する2値化手段
とを備え、該2値化手段で発生した2値出力画素データ
を前記出力手段で出力するものである。
That is, an image processing method that generates output pixel data based on an error diffusion method, comprising an input means for inputting original pixel data;
an output means for outputting a binary output pixel based on an error diffusion method; a storage means for storing a plurality of the binary output pixel groups located at least around the pixel data of interest inputted by the input means; a detecting means for detecting a binary state in a predetermined region in a binary output pixel group; a determining means for determining whether or not the vicinity of the pixel data of interest is located at an edge portion of the image; a threshold value generating means for generating a threshold value according to the threshold value, and a binarizing means for generating binary output pixel data for the pixel data of interest according to the detecting means, the discriminating means and the threshold generating means; Binary output pixel data generated by the means is outputted by the output means.

[実施例] 以下、添付図面に従って、本発明に係る実施例を詳細に
説明する。尚、実施例では複写機を例にして説明する。
[Examples] Examples according to the present invention will be described in detail below with reference to the accompanying drawings. In the embodiment, a copying machine will be described as an example.

〈構成概略の説明(第1図)〉 第1図は本実施例における複写機のブロック構成図であ
る。
<Explanation of the outline of the configuration (FIG. 1)> FIG. 1 is a block configuration diagram of the copying machine in this embodiment.

以下、個々の構成要素をその処理順序に従って説明する
The individual components will be explained below in accordance with their processing order.

COD等の光電変換素子及びこれを走査する駆動系から
構成される入力部1でもって読み取られた画像は、次の
A/D変換器2によって濃度に対応した電圧レベル信号
から8ビツトのデジタルデータ(256階調)に変換さ
れ、量子化される。そして、この変°換後のデジタルデ
ータは、入力部1のセンサの感度ムラや照明系の照明ム
ラ等による入力データをシェーディング補正するため、
補正回路3に入力され補正される。
The image read by the input unit 1 consisting of a photoelectric conversion element such as a COD and a drive system for scanning it is converted into 8-bit digital data by the next A/D converter 2 from a voltage level signal corresponding to the density. (256 gradations) and quantized. This converted digital data is then used to perform shading correction on input data due to uneven sensitivity of the sensor in the input section 1, uneven lighting of the lighting system, etc.
The signal is input to the correction circuit 3 and corrected.

補正後のデータ(8ビツトデジタルデータ)はデータ線
101を介してラインメモリ(FlFO)4とエツジ検
出回路5に出力される。尚、ラインメモリ4はエツジ検
出回路5.2値化回路6、閾値設定回路7とのタイミン
グをとるための遅延用である。
The corrected data (8-bit digital data) is output to the line memory (FlFO) 4 and edge detection circuit 5 via the data line 101. Incidentally, the line memory 4 is used for delaying the timing of the edge detection circuit 5, binarization circuit 6, and threshold value setting circuit 7.

さて、エツジ検出回路5は、注目画素とその周囲の画素
との間から、その注目画素がエツジにあるか否かを検出
し、その判定結果に対応する信号を信号線200に出力
する。また、閾値設定回路7はデータ線100上に出力
された補正済みデータに応じた閾値を設定し、その設定
した閾値はデータ線300に出力する。そして、2値化
回路6は注目画素のデータ(ラインメモリ4よりのデー
タ))を、信号線200上のエツジ検出信号と閾値設定
回路7より出力されてきた閾値(データ線201) 、
そして後述する信号線400上の信号に基づいて2値化
し、その結果を信号線500上に出力する。この信号線
500に出力された°“1”か“0“の信号に基づいて
出力部9(レーザビームプリンタやインクジェットプリ
ンタ等)が可視画像を形成することになるが、この信号
線500の信号は判定回路8にも供給されている。
Now, the edge detection circuit 5 detects whether or not the pixel of interest is on an edge from between the pixel of interest and its surrounding pixels, and outputs a signal corresponding to the determination result to the signal line 200. Further, the threshold value setting circuit 7 sets a threshold value according to the corrected data outputted onto the data line 100, and outputs the set threshold value to the data line 300. Then, the binarization circuit 6 converts the data of the pixel of interest (data from the line memory 4) into the edge detection signal on the signal line 200 and the threshold output from the threshold setting circuit 7 (data line 201).
Then, it binarizes based on a signal on a signal line 400, which will be described later, and outputs the result on a signal line 500. The output unit 9 (laser beam printer, inkjet printer, etc.) will form a visible image based on the signal of “1” or “0” output to this signal line 500. is also supplied to the determination circuit 8.

判定回路8は2値化回路6から出力された信号(信号線
500)とラインメモリ4から出力された補正済データ
に基づいてJ注目画素周辺の既に2値化された領域を参
照してその中にオン(1”)になっているドツトが存在
するか否かを判定し、その判定結果を信号線400上に
出力し、2値化回路6にフィードバックする。
The determination circuit 8 refers to the already binarized area around the pixel of interest J based on the signal output from the binarization circuit 6 (signal line 500) and the corrected data output from the line memory 4, and determines the area. It is determined whether or not there is a dot that is turned on (1''), and the determination result is output onto the signal line 400 and fed back to the binarization circuit 6.

以上の構成からなる本実施例の複写機のエツジ検出回路
5〜判定回路8の詳細を以下に示す。
Details of the edge detection circuit 5 to determination circuit 8 of the copying machine of this embodiment having the above configuration will be described below.

尚、補正回路3はルックアップテーブルを内蔵したRO
Mでもって容易になされるので、説明は省略する。
Note that the correction circuit 3 is an RO with a built-in lookup table.
Since this can be easily done with M, the explanation will be omitted.

くエツジ検出回路の説明(第2図〜第4図)〉第2図に
実施例におけるエツジ検出回路5の具体的な構成例を示
し、以下、第3図を用いて説明する。
Description of edge detection circuit (FIGS. 2 to 4)> FIG. 2 shows a specific configuration example of the edge detection circuit 5 in the embodiment, and will be described below with reference to FIG. 3.

画像のエツジ部とは、濃度が低い部分から高い部分、或
いは高い部分から低い部分へ移るときの傾きが急峻であ
る場合と判断して良い。換言すれば、注目画素がエツジ
部近傍にあるか否かの検出は、注目画素付近の画素群の
濃度差が大きいか否かを検出すれば良い。
An edge portion of an image may be determined to be a case where the slope of the transition from a low density portion to a high density portion or from a high density portion to a low density portion is steep. In other words, whether or not the pixel of interest is near the edge portion can be determined by detecting whether or not there is a large density difference between a group of pixels near the pixel of interest.

そこで、実施例では第3図に示す様に、注目画素(図中
の“*°゛印)位置の濃度を画素(i、 j)としたと
き、 1画素(i、 j)一画素(i+1.j)  l  ・
・・0画素(i、j)一画素(i−1,j+1)  l
・・・■画素(i、 j)一画素(i、j+1)  I
  ・・・■画素(i、 j)一画素(ill、j+1
)  l・・・■を算出しく但し、I・・・1は絶対値
を示す)、これらの中の最も大きい値が予め設定された
閾値Tより大きいときに、注目画素はエツジ部になると
判断する様にした。
Therefore, in the embodiment, as shown in FIG. 3, when the density at the position of the pixel of interest (marked with "*°" in the figure) is pixel (i, j), one pixel (i, j), one pixel (i+1 .j) l ・
...0 pixel (i, j) 1 pixel (i-1, j+1) l
...■ Pixel (i, j) one pixel (i, j+1) I
...■Pixel (i, j) One pixel (ill, j+1
) where I...1 indicates an absolute value), and when the largest value among these is greater than a preset threshold T, it is determined that the pixel of interest is an edge portion. I tried to do it.

第2図を用いて説明すれば、フリップフロップ10a〜
10eにはそれぞれ画素位置として、(i、 j)、 
(ill、j)、 (i−1,j+1)、 (i、j+
1)、 (i÷1.j+1)のデータがラッチされ、減
算器11a〜lidで先に示した式■〜■中の減算をし
、絶対値回路128〜12dで各々の絶対値を得る。そ
して続く最大値検出回路13でそれらの最大値を検出し
、比較器14で閾値T(実施例ではこの値を“50°。
To explain using FIG. 2, the flip-flops 10a to
10e has pixel positions (i, j),
(ill, j), (i-1, j+1), (i, j+
1), the data of (i÷1.j+1) is latched, subtracters 11a to 11d perform subtraction in the equations 1 to 2 shown above, and absolute value circuits 128 to 12d obtain the respective absolute values. Then, the maximum value detection circuit 13 detects those maximum values, and the comparator 14 detects a threshold value T (in the embodiment, this value is "50°").

としている)と比較することで達成される。そして、比
較器14は、最大値検出回路13から出力された値が閾
値下より大きいときに(エツジ部のときに)、その出力
信号200に“1” そうでないときに(非エツジ部の
ときに)“0”を出力する。
This is achieved by comparing the Then, the comparator 14 sets the output signal 200 to "1" when the value output from the maximum value detection circuit 13 is larger than the lower threshold (when it is at an edge part), and when it is not (when it is at a non-edge part). ) Outputs “0”.

以上の構成で処理を行うことにより、注目画素とその周
囲の画素との間のエツジを検出することができる。
By performing processing with the above configuration, edges between the pixel of interest and its surrounding pixels can be detected.

尚、詳細は後述するが、」実施例における誤差拡散処理
では、誤差拡散する画素位置を注目画素(i、 j) 
としたとき、(ill、 j) 、 (i−1,j+1
) 、 (i、 j+1) 。
Although the details will be described later, in the error diffusion processing in the embodiment, the pixel position where the error is diffused is the pixel of interest (i, j).
When, (ill, j), (i-1, j+1
) , (i, j+1).

(ill、 ill)としている。そして、上述した様
に、これに対応するように注目画素とその周囲の画素と
でエツジを検出した。しかし、これに限定されるもので
はなく、例えば、第4図に示すように注目画素、(i、
j)と周囲の(i−1,j−1)、 (ill、 j−
1)。
(ill, ill). Then, as described above, edges were detected between the pixel of interest and its surrounding pixels to correspond to this. However, the present invention is not limited to this. For example, as shown in FIG. 4, the pixel of interest (i,
j) and the surrounding (i-1, j-1), (ill, j-
1).

(i−1,j+1) 、 (ill、 j+1)画素と
のそれぞれの差分をとってエツジ検出を行ってもよい。
Edge detection may be performed by taking the difference between the (i-1, j+1) and (ill, j+1) pixels.

尚、第4図の画素位置でもってエツジ部を検出するので
あればラインメモリをもう1つ追加(ラインメモリを2
つにする)して、タイミングを取る様にすれば達成でき
る。また、上記に限らずエツジの検出ができるものであ
ればよいので、エツジ検出対象の画素の取り方は第3図
や第4図にも限定されるものではない。
If you want to detect an edge part using the pixel positions shown in Figure 4, add one more line memory (2 line memories).
You can achieve this by taking the appropriate timing. In addition, the method of selecting pixels for edge detection is not limited to those shown in FIGS. 3 and 4, as any device may be used as long as it can detect edges.

〈2値化回路の説明(第5図、第6図)〉第5図に実施
例における2値化回路6の構造の一例を示し、以下にそ
の動作を説明する。
<Description of Binarization Circuit (FIGS. 5 and 6)> FIG. 5 shows an example of the structure of the binarization circuit 6 in the embodiment, and its operation will be described below.

図中、15a−15dはデータをラッチするフリップフ
ロップ、16a〜16dは加算器、17は1ライン遅延
用のラインメモリである。また、18は比較器、19は
ANDゲート、20は誤差配分制御回路である。
In the figure, 15a to 15d are flip-flops for latching data, 16a to 16d are adders, and 17 is a line memory for one line delay. Further, 18 is a comparator, 19 is an AND gate, and 20 is an error distribution control circuit.

先ず、データ線100を介して入力した補正済データ(
注目画素位置(i、 j)に対応する原画像データ)は
画素位置(i、j)に配分される誤差の総和と加算器1
6dで加算され、その値は比較器18と誤差配分制御回
路20に出力される。そして、比較器18においては、
データ線355上のデータを閾値設定回路7よりの閾値
データ(信号線300)でもって2値化する。尚、この
比較器18はデータ線355上のデータが閾値より大き
ければ“1゛、小さければ“0”を信号線311に出力
する。さて、次のANDゲート19においては、2値化
された信号(信号線311)と判定回路8から出力され
てくる信号(信号線400)を論理積がとられ、信号線
500を介して出力部9及び誤差配分制御回路20に出
力される。
First, corrected data (
The original image data corresponding to the pixel position (i, j) of interest) is the sum of the errors allocated to the pixel position (i, j) and the adder 1.
6d, and the resulting value is output to the comparator 18 and the error distribution control circuit 20. Then, in the comparator 18,
The data on the data line 355 is binarized using threshold data (signal line 300) from the threshold setting circuit 7. Note that this comparator 18 outputs "1" to the signal line 311 if the data on the data line 355 is larger than the threshold value, and "0" if it is smaller than the threshold value.Now, in the next AND gate 19, the binarized data The signal (signal line 311) and the signal output from the determination circuit 8 (signal line 400) are ANDed and output to the output section 9 and the error distribution control circuit 20 via the signal line 500.

ところで、判定回路8から出力される信号の詳細は後述
するが、注目画素の濃度が低く、且つ注目画素周辺の出
力部9に出力済み画素群の中に“1 (ドツト有り)”
があるときには“O” それ以外のときには“1”レベ
ルの状態になる。
By the way, the details of the signal output from the determination circuit 8 will be described later, but if the density of the pixel of interest is low and there is "1 (dot present)" in the group of pixels that have been output to the output section 9 around the pixel of interest.
When there is, the level is “O”; otherwise, it is at the “1” level.

さて、誤差配分制御回路20では2値化処理前の信号3
55と2値化号500の255倍(すなわち、“o ”
か“255”)した値との差分(誤差)が計算され、そ
の画素の正負とエツジ信号200により周囲の画素に配
分する誤差量351〜354を制御する。誤差量信号3
51〜354は注目画素位置を(i、 j)としたとき
、(i−1,j+I) 。
Now, in the error distribution control circuit 20, the signal 3 before the binarization process is
55 and 255 times the binarization code 500 (i.e. “o”
The difference (error) between the pixel and the value (255) is calculated, and the error amounts 351 to 354 to be distributed to surrounding pixels are controlled based on the positive/negative of that pixel and the edge signal 200. Error amount signal 3
51 to 354 are (i-1, j+I) when the pixel position of interest is (i, j).

(i、j+l)、 (i+1.j+l)、 (i+1.
l に既に配分された誤差量と加算器16a〜16dで
加算される。またここでは誤差を配分する画素数を注目
画素の周囲4画素としているが、周囲12画素でもよく
上記に限らない。
(i, j+l), (i+1.j+l), (i+1.
It is added to the error amount already allocated to l by adders 16a to 16d. Further, here, the number of pixels to which the error is distributed is 4 pixels around the pixel of interest, but it may be 12 pixels around the pixel of interest, but is not limited to the above.

ここで、誤差配分制御回路20の詳細を肩6図に示し、
以下に説明する。
Here, details of the error distribution control circuit 20 are shown in Figure 6,
This will be explained below.

図中、21は減算器、22は入力信号の正負を判断する
正負判定回路、23はセレクタ、24はANDゲート、
25a〜25dは重み付は回路である。
In the figure, 21 is a subtracter, 22 is a positive/negative determination circuit that determines whether the input signal is positive or negative, 23 is a selector, 24 is an AND gate,
25a to 25d are weighting circuits.

さて、減算器21においては、2値化処理前の信号35
5と2値化号500を255倍した値との差分(誤差)
を算出する。
Now, in the subtracter 21, the signal 35 before the binarization process is
5 and the value obtained by multiplying the binarization code 500 by 255 (error)
Calculate.

すなわち、 (誤差)=(信号355 ) −255X (信号50
口)この算出された値は正負判定回路22及びセレクタ
23に出力される。
That is, (error) = (signal 355) -255X (signal 50
(Example) This calculated value is output to the positive/negative determination circuit 22 and the selector 23.

正負判定回路22では入力されたデータ(算出値)が正
ならば”O”、負ならば°°1”を出力する。ANDゲ
ート24では正負判定回路22からの信号と信号2oO
(エツジ検出回路5よりの信号)との論理積がとられ、
その結果がセレクタ23に出力される。すなわち、2値
化回路6内の比較器18で2値化する以前の注目画素の
誤差加算済みデータが対応する出力データ×255以下
であって、その注目画素がエツジ部にあるときにAND
ゲート24の出力は“1”になり、それ以外のときには
0゛°になる。
The positive/negative judgment circuit 22 outputs "O" if the input data (calculated value) is positive, and outputs "°°1" if it is negative.The AND gate 24 outputs the signal from the positive/negative judgment circuit 22 and the signal 2oO.
(signal from edge detection circuit 5) is ANDed with
The result is output to the selector 23. That is, when the error-added data of the pixel of interest before being binarized by the comparator 18 in the binarization circuit 6 is less than the corresponding output data x 255, and the pixel of interest is in the edge portion, the AND
The output of the gate 24 becomes "1", and otherwise becomes 0°.

セレクタ23は、このANDゲート24の出力が1°°
であれば信号600 (論理レベルが“Ooo)を選択
し、“○”であれは減算器21からの減算結果(誤差)
を重み付は回路25a〜25dに出力する。
The selector 23 selects the output of this AND gate 24 as 1°°.
If so, select signal 600 (logic level “Ooo”), if “○”, select the result of subtraction from subtractor 21 (error)
The weighting is output to circuits 25a to 25d.

ここで、重み付は回路25a〜25dは注目画素位置(
i、 j)に対して、周辺画素位置(i+1. j+1
) 。
Here, the weighting circuits 25a to 25d are at the pixel of interest position (
For i, j), the surrounding pixel position (i+1. j+1
).

(i、 j÷り、 (i−t、 j+l)に対応してい
て、それら周辺画素位置への重み付は係数でもって配分
するものである。
It corresponds to (i, j÷ri, (it, j+l)), and weighting to these surrounding pixel positions is distributed using coefficients.

具体的には、重み付は回路25a、25cはセレクタ2
3の出力である誤差量の1/6を算出して信号351,
353に出力し、重み付は回路25b、25dは誤差量
の1/3を算出して信号352.354に出力する。勿
論、ANDゲート24の出力が“1”であるときには、
信号600が選択されるので各々の周辺画素への誤差配
分量は“0”になる。
Specifically, the weighting circuits 25a and 25c are the selector 2.
By calculating 1/6 of the error amount which is the output of 3, the signal 351,
The weighting circuits 25b and 25d calculate 1/3 of the error amount and output it as signals 352 and 354. Of course, when the output of the AND gate 24 is "1",
Since the signal 600 is selected, the amount of error distribution to each peripheral pixel becomes "0".

以上の処理でもって、エツジ部での負の誤差量を周囲の
画素に配分しないことにより、エツジ部の濃度の低い部
分で発生していた“ドツトが打たれず白く抜ける現象”
を防止できる様になる。
With the above processing, the negative error amount at the edge is not distributed to surrounding pixels, which eliminates the phenomenon where dots are not printed and appear white, which occurs in low-density areas of the edge.
It will be possible to prevent this.

尚、重み付は回路25a〜25dにおける重み付は係数
を1/6や1/3としたが、これに限定されるものでは
なく、任意に変更しても構わない。例えば、1/2” 
 (m=0.1.2.・・・)とすれば、簡単なシフト
回路でもって達成でき、処理速度も向上させることが可
能となる。
Although the weighting in the circuits 25a to 25d uses coefficients of 1/6 and 1/3, it is not limited to this, and may be changed arbitrarily. For example, 1/2"
(m=0.1.2...), it can be achieved with a simple shift circuit and the processing speed can also be improved.

く閾値設定回路の説明(第7図)〉 第7図に実施例における閾値設定回路の構造の一例を示
し、以下にその動作を説明する。
Description of Threshold Value Setting Circuit (FIG. 7)> FIG. 7 shows an example of the structure of the threshold value setting circuit in the embodiment, and its operation will be described below.

図中、26は閾値群を格納しているROMであって、ク
ロックに同期して−127〜+127までの値を1個ず
つ出力する。また、振幅制御回路27では信号100(
ラインメモリ4よりの出力データ)の値に応じてROM
26から出力された閾値の値を制御する。具体的には、
信号100の値に応じて次表に示す値(AL)をROM
26から出力された値に乗じ、その結果を信号150と
して出力する。信号150は加算器28において信号1
60 (=127)と加算され、閾値信号300として
出力される。
In the figure, 26 is a ROM that stores a group of threshold values, and outputs values from -127 to +127 one by one in synchronization with the clock. Further, the amplitude control circuit 27 also outputs the signal 100 (
ROM according to the value of (output data from line memory 4)
The threshold value output from 26 is controlled. in particular,
The values (AL) shown in the following table are stored in the ROM according to the value of signal 100.
26 and outputs the result as a signal 150. Signal 150 is converted to signal 1 in adder 28.
60 (=127) and output as a threshold signal 300.

表 以上のような制御を行うことにより、濃度の低い部分に
おいて、ある確率で小さな閾値な発生させる事ができる
。これにより、画像濃度の低い部分において、ドツトが
打たれずに白く抜けていた現象を防止することができる
By performing the control as shown in the table above, it is possible to generate a small threshold value with a certain probability in areas with low concentration. As a result, it is possible to prevent a phenomenon in which dots are not printed and are left blank in areas of low image density.

尚、ここではROM26に格納されている値は−127
から127までのデイザ信号としたが、これは−127
から127までの一様乱数でもよく、上記の例に限らな
い。またALの値(但しALの値は0以上1以下)は濃
度の低い部分ではALの値を大きく、濃度の低い部分で
はALの値を小さく設定してあればこの表の値に限らな
い。また信号100を6段階に分割しているが、これも
任意の分割数でよく、上記の例に限らない。さらに乗算
回路の規模を小さくするためにALの値を2のべき乗、
あるいは2のべき乗の和で表現できる値にしてもよい。
In this case, the value stored in the ROM26 is -127.
This is a dither signal from -127 to -127.
It may be a uniform random number from 127 to 127, and is not limited to the above example. Further, the AL value (however, the AL value is 0 or more and 1 or less) is not limited to the values in this table, as long as the AL value is set to be large in the low-density portion, and the AL value is set to be small in the low-density portion. Further, although the signal 100 is divided into six stages, any number of divisions may be used, and the number of divisions is not limited to the above example. Furthermore, in order to reduce the scale of the multiplication circuit, the value of AL is raised to a power of 2.
Alternatively, it may be a value that can be expressed as the sum of powers of two.

く判定回路の説明(第8図)〉 次に第8図を用いて実施例の判定回路8を説明する。Explanation of the judgment circuit (Fig. 8) Next, the determination circuit 8 of the embodiment will be explained using FIG.

図中、29は比較器、3o及び31はラインメモlJ 
(F I FO) 、32はOR回路、33はNAND
ゲートである。
In the figure, 29 is a comparator, 3o and 31 are line memories lJ
(F I FO), 32 is an OR circuit, 33 is a NAND
It is a gate.

2値化号500はラインメモリ31に入力されると同時
にラッチされる。またラインメモリ31から読み出され
た信号もラインメモリ30に入力されると同時にラッチ
される。つまり、今から処理しようとする注目画素の位
置を(1,J)とすると、各々のフリップフロップ(F
/F)にはその回りの画素位置、 (i−2,j−2) 、 (i−1,j−2) 、 (
i、 j−2) 、 (ill、 j−2) 。
The binary code 500 is input to the line memory 31 and latched at the same time. Further, the signal read from the line memory 31 is also input to the line memory 30 and latched at the same time. In other words, if the position of the pixel of interest to be processed is (1, J), each flip-flop (F
/F) contains the pixel positions around it, (i-2, j-2), (i-1, j-2), (
i, j-2), (ill, j-2).

(i+2. j−2) 、 (i−2,j−1) 、 
(i−1,j−1) 、 (i、 j−1) 。
(i+2.j-2), (i-2,j-1),
(i-1, j-1), (i, j-1).

(ill、 j−]) 、 (i+2. j−1) 、
 (i−2,j) 、 (i−1,j)の12画素分の
2値化済データがラッチされることになる。ラッチされ
た12画素分のデータはOR回路32に入力される。こ
こで12画素分のデータの論理和がとられ、結果が信号
520として出力される。補正済信号100は比較器2
9に入力されて、閾値D=30と比較され、信号1゜O
が閾値りよりの大きいならば、“0”、小さいならば1
”が信号5.10として出力される。そして、信号51
0と信号520はNANDゲートに入力され、その結果
が信号40o(判定回路8の判定結果)として出力され
る。
(ill, j-]), (i+2.j-1),
Binarized data for 12 pixels of (i-2,j) and (i-1,j) will be latched. The latched data for 12 pixels is input to the OR circuit 32. Here, the logical sum of the data for 12 pixels is taken, and the result is output as a signal 520. The corrected signal 100 is the comparator 2
9 and compared with the threshold D=30, the signal 1°O
If is larger than the threshold, “0”, if smaller, then 1
” is output as signal 5.10. Then, signal 51
0 and signal 520 are input to a NAND gate, and the result is output as signal 40o (determination result of determination circuit 8).

この結果、濃度の低い部分においては、ドツトの打たれ
た周囲にはドツトが打たれない様にすることが可能とな
る。つまり、極端に近接してドツト同士が打たれたり、
離れて打たれたりすることがなくなり、濃度の低い部分
において発生していたノイズ感を減少させる事ができる
様になる。
As a result, in areas of low density, it is possible to prevent dots from being placed around the area where the dots have been placed. In other words, dots are struck extremely close together,
It is no longer possible to hit the ball far away, and it is possible to reduce the noise that occurs in low-density areas.

〈第2の実施例の説明(第9図〜第13図)〉第9図は
上述した第1の実施例のエツジ検出回路5と2値化回路
6と判定回路8の一部を変更した場合のブロック図であ
る。尚、以下の説明に先立ち、第1の実施例と重複する
箇所(同符号部等)の説明は省略する。
<Description of the second embodiment (FIGS. 9 to 13)> FIG. 9 shows a configuration in which the edge detection circuit 5, binarization circuit 6, and determination circuit 8 of the first embodiment described above are partially changed. FIG. Note that, prior to the following explanation, explanations of parts that overlap with those of the first embodiment (same reference numerals, etc.) will be omitted.

さて、この構成における処理概略を説明すると以下の如
くである。
Now, the outline of the processing in this configuration is as follows.

エツジ検出回路40では注目画素(i、j) と画素位
置(ill、j) 、注目画素(i、 j)と画素位置
、 (i−1゜ill)、注目画素(i、 j)と画素
位置(i、j+1)、注目画素と画素位fit、 (i
ll、 j+1)のエツジ判定が行われ、それぞれの結
果が信号201〜204として出力される。2値化回路
41では、注目画素に配分される誤差の総和と信号10
0(注目画素の濃度データ)の和を閾値下で2値化し、
その結果と判定信号400によって、2値出力信号50
0を出力する。また2値化回路41では2値化のときに
発生した誤差の正負判定を行い、信号201〜204と
その判定の結果によって周囲の画素に配分する誤差の量
を決定する。
The edge detection circuit 40 determines the pixel of interest (i, j) and the pixel position (ill, j), the pixel of interest (i, j) and the pixel position, (i-1゜ill), the pixel of interest (i, j) and the pixel position. (i, j+1), pixel of interest and pixel position fit, (i
ll, j+1) is performed, and the respective results are output as signals 201 to 204. In the binarization circuit 41, the sum of errors allocated to the pixel of interest and the signal 10
Binarize the sum of 0 (density data of the pixel of interest) below the threshold,
Based on the result and the determination signal 400, the binary output signal 50
Outputs 0. Further, the binarization circuit 41 determines whether the error generated during the binarization is positive or negative, and determines the amount of error to be distributed to surrounding pixels based on the signals 201 to 204 and the result of the determination.

第10図はエツジ検出回路40のブロック図である。図
中、10a〜10e、 11 a 〜11 dそして1
2a〜12dは第2図に示したものと同じである。43
a〜43dは入力信号を閾値TI〜T4 (ここでは“
50°°としている)と比較する比較器である。さて、
絶対値回路12a〜12dから出力された値はそれぞれ
閾値下1〜T4と比較され、入力信号が閾値Tよりも大
きければ” 1 ” 、小さければ“0”が信号201
〜204としてそれぞれ出力される。
FIG. 10 is a block diagram of the edge detection circuit 40. In the figure, 10a to 10e, 11a to 11d and 1
2a to 12d are the same as shown in FIG. 43
a to 43d are input signals to threshold values TI to T4 (here “
50°°). Now,
The values output from the absolute value circuits 12a to 12d are compared with the lower thresholds 1 to T4, respectively, and if the input signal is larger than the threshold T, it is "1", and if it is smaller, it is "0" as the signal 201.
~204, respectively.

このように構成することにより画素単位でエツジ検出が
できる。その結果、エツジのない部分の負の誤差はその
まま配分されるので過度のエツジ強調を防止できる。
With this configuration, edges can be detected pixel by pixel. As a result, negative errors in areas with no edges are distributed as they are, and excessive edge enhancement can be prevented.

第11図は2値化回路41のブロック図であって、先の
第1の実施例と異なるのは、誤差配分制御回路44であ
る。
FIG. 11 is a block diagram of the binarization circuit 41, and the difference from the first embodiment is the error distribution control circuit 44.

本箱2の実施例の誤差配分制御回路44では2値化処理
前の信号355と2仏僧号500を255倍した値との
差分(誤差)が計算され、その誤差の正負とエツジ信号
201〜204により周囲の画素に配分する誤差量信号
351〜354を制御する。誤差量信号351〜354
は注目画素位置を(i、 j)としたときの画素位置(
i−1,j+1) 。
The error distribution control circuit 44 of the embodiment of bookcase 2 calculates the difference (error) between the signal 355 before the binarization process and the value obtained by multiplying the 2 Buddhist monk code 500 by 255, and calculates the sign of the error and the edge signal 201. -204 control error amount signals 351-354 distributed to surrounding pixels. Error amount signals 351 to 354
is the pixel position (i, j) when the pixel position of interest is (i, j)
i-1, j+1).

(i、 j+I) 、 (ill、 j+1) 、 (
ill、 j)の既に配分済誤差量と加算される。また
、ここでは誤差を配分する画素数を注目画素の周囲4画
素としているが、周囲12画素でもよく上記に限らない
(i, j+I), (ill, j+1), (
ill, j) is added to the already distributed error amount. Further, here, the number of pixels to which the error is distributed is 4 pixels around the pixel of interest, but it may be 12 pixels around the pixel of interest, but is not limited to the above.

第12図に、この誤差配分制御回路44のブロック構成
図を示す。
FIG. 12 shows a block diagram of this error distribution control circuit 44.

減算器21において2値データ500を255倍した値
と2値処理前のデータ355の差分がとられ、その結果
は正負判定回路22と重み付は回路25a〜25dに入
力される。正負判定回路22では入力されたデータが正
ならば“0”、負ならば“1゛°を出力する。AND回
路46a〜46dでは正負判定回路22からの信号と信
号201〜204のそれぞれのANDがとられ、その結
果がセレクタ45a〜45dに出力される。
In the subtracter 21, the difference between the value obtained by multiplying the binary data 500 by 255 and the data 355 before binary processing is taken, and the result is inputted to the positive/negative determining circuit 22 and the weighting circuits 25a to 25d. The positive/negative determining circuit 22 outputs "0" if the input data is positive, and "1°" if the input data is negative.AND circuits 46a to 46d output the AND of the signal from the positive/negative determining circuit 22 and the signals 201 to 204, respectively. is taken, and the results are output to selectors 45a to 45d.

セレクタ45aではAND回路46aからの信号が1°
°であれば信号soo (=o)を、” o ”であれ
ば重み付は回路25aからの信号を選択し、信号351
として出力する。セレクタ45b〜セレクタ45dにお
いても同様で、各々のセレクタに入力されるANDゲー
トからの信号が” o ”であれば、重み付は回路25
b〜2’5dの値を選択し出力し、“1”であれば信号
600(=“0”)を選択する。そして、これらは信号
351と同様に信号352〜354として出力されるこ
とになる。
In the selector 45a, the signal from the AND circuit 46a is 1°.
If it is "o", the signal soo (=o) is selected, and if it is "o", the weighting selects the signal from the circuit 25a, and the signal 351
Output as . The same applies to the selectors 45b to 45d, and if the signal from the AND gate input to each selector is "o", the weighting is applied to the circuit 25.
The value of b to 2'5d is selected and output, and if it is "1", the signal 600 (="0") is selected. Then, like the signal 351, these are output as signals 352 to 354.

上記のような構成で、エツジ部で負の誤差量を周囲の画
素に配分しないことにより、エツジ部の濃度の低い部分
で発生していた画像の欠ける現象を防止できる。また上
記構成により注目画素と誤差が配分される個々の画素と
のエツジの判定ができ、その結果、エツジのない部分に
おいて負の誤差をカットする(つまり、正の誤差を加え
る)ことがなくなるので、過度のエツジ強調を防止でき
ることになる。
With the above configuration, by not distributing the negative error amount at the edge to surrounding pixels, it is possible to prevent the phenomenon of image loss that occurs in low-density portions of the edge. Furthermore, with the above configuration, it is possible to determine the edge between the pixel of interest and each pixel to which errors are distributed, and as a result, it is no longer necessary to cut negative errors (that is, add positive errors) in areas where there are no edges. , excessive edge enhancement can be prevented.

第13図に、本箱2の実施例における判定回路42のブ
ロック構成図を示す。
FIG. 13 shows a block diagram of the determination circuit 42 in the embodiment of the bookcase 2.

2仏僧号500はラインバッファ31に入力されると同
時にラッチされ。またラインバッファ31から読み出さ
れた信号もラインバッファ30に入力されると同時にラ
ッチされる。つまり、今から処理しようとする注目画素
の位置を(i、 j)とすると、各々のラッチにはその
回りの画素位置、(i−2,j−2) 、 (i−1,
j−2) 、 (i、 j−2) 、 (ill、 j
−2)<i+2. j−2) 、 (j−2,j−1)
 、 (i−1,j−1) 、 (i、 j−1) 。
The second Buddhist monk's name 500 is input to the line buffer 31 and latched at the same time. Further, the signal read from the line buffer 31 is also input to the line buffer 30 and latched at the same time. In other words, if the position of the pixel of interest to be processed is (i, j), each latch contains the surrounding pixel positions, (i-2, j-2), (i-1,
j-2) , (i, j-2) , (ill, j
-2)<i+2. j-2), (j-2, j-1)
, (i-1, j-1), (i, j-1).

(ill、 j−1) 、 (i+2. j−])、 
(i−2,l、 (i−1,j)の12画素分の2値化
済データが保持されることになる。
(ill, j-1), (i+2. j-]),
Binarized data for 12 pixels of (i-2, l, (i-1, j)) will be held.

OR回路47では画素位置、 (i−1,j−1) 、 (i、 j−1) 、 (i
ll、 j−1) 、 (i−1,j)の4画素分の2
値化済データのORがとられ、その結果として信号62
0が出力される。
In the OR circuit 47, the pixel positions (i-1, j-1), (i, j-1), (i
ll, j-1), 2/4 pixels of (i-1, j)
The digitized data are ORed, resulting in a signal 62
0 is output.

また、OR回路48では画素位置、 (i−2,j−2) 、 (i−1,j−2) 、 (
i、 j−2) 、 (ill、 j−2) 。
In addition, the OR circuit 48 determines the pixel positions, (i-2, j-2), (i-1, j-2), (
i, j-2), (ill, j-2).

(i+2. j−2) 、 (i−2,j−1) 、 
(i÷2. j−1) 、 (i−2,j)の8画素分
の2値化済データの論理がとられ、その結果として信号
630が出力される。
(i+2.j-2), (i-2,j-1),
(i÷2.j-1), (i-2,j), which is the binary data of 8 pixels, is logically processed, and as a result, a signal 630 is output.

LUT (ルックアップテーブル)49では入力された
補正法信号100に応じて3レベルの切替信号610が
出力される。切替信号610は、補正法信号100が1
以上20以下のとき1゛。
The LUT (look-up table) 49 outputs a three-level switching signal 610 in accordance with the input correction method signal 100. The switching signal 610 indicates that the correction method signal 100 is 1
1゛ when it is above 20 or less.

21以上50以下のとき“2” 51以上またはOのと
き”O”としている。
If it is 21 or more and 50 or less, it is "2". If it is 51 or more or O, it is "O".

選択的OR回路50ではLUT49から出力された切替
信号610に応じ、その切替信号610が°゛O”なら
ば“0”を、“2”ならば信号620(OR回路47の
出力)の値を、“1パならば信号620と信号630 
(OR回路48の出力)のORをとったものを判定信号
400として出力する。
In response to the switching signal 610 output from the LUT 49, the selective OR circuit 50 sets the value of the signal 620 (output of the OR circuit 47) to "0" if the switching signal 610 is "O", and sets the value of the signal 620 (output of the OR circuit 47) if the switching signal 610 is "2". , “If it is 1pa, the signal 620 and the signal 630
(Output of OR circuit 48) is ORed and the result is output as determination signal 400.

例えば、補正済信号100の値が“36”ならば切替信
号610は“2”となる。そしてこのとき信号620が
“O”で信号630が“1”であるならば判定信号40
0は°゛0”となる。
For example, if the value of the corrected signal 100 is "36", the switching signal 610 becomes "2". At this time, if the signal 620 is "O" and the signal 630 is "1", the judgment signal 40
0 becomes °゛0''.

換言すれば、補正済信号100の値に対して参照する領
域を3段階(つまり注目画素の周囲を全く調べないか、
周囲4画素分調べるか、周囲12画素分調べるかの3段
階)に設定することになる。尚、必要に応じてラインバ
ッファ、ラッチ、OR回路を増やすことにより、参照す
る領域を多段階に設定することができる。
In other words, the area to be referred to for the value of the corrected signal 100 is set in three stages (i.e., the area around the pixel of interest is not checked at all,
There are three settings: whether to check the surrounding 4 pixels or to check the surrounding 12 pixels. Note that by increasing the number of line buffers, latches, and OR circuits as necessary, reference areas can be set in multiple stages.

因に、4段階にする場合は以下のように考えれば良い。Incidentally, if you want to have four stages, you can think about it as follows.

また、処理しようとする注目画素の位置を(i、 j)
  とする。
Also, the position of the pixel of interest to be processed is (i, j)
shall be.

そして、その回りの画素位置、 (i−3,j−3) 、 (i−2,j−3) 、 (
i−1,j−3) 、 (i、 j−3) 。
Then, the pixel positions around it are (i-3, j-3), (i-2, j-3), (
i-1, j-3), (i, j-3).

(i+1. j−3) 、 (i÷2. j−3) 、
 (i+3. j−3) 、 (i−3,j−2) 。
(i+1.j-3), (i÷2.j-3),
(i+3.j-3), (i-3,j-2).

(i−2,j−2) 、 (i−1,j−2) 、 (
i、 j−2) 、 (i+1. j−2) 。
(i-2, j-2) , (i-1, j-2) , (
i, j-2), (i+1. j-2).

(i+2. j−2) 、 (i+3. j−2) 、
 (i−3,j−1) 、 (i−2,j−1)(i−
1,j−1) 、 (i、 j−1) 、 (i+1.
 j−1) 、 (i+2. j−1) 。
(i+2.j-2), (i+3.j-2),
(i-3, j-1), (i-2, j-1) (i-
1, j-1), (i, j-1), (i+1.
j-1), (i+2.j-1).

(i+3. j−1) 、 (i−3,j) 、 (i
−2,j) 、 (i−1,j)の24画素分の2値化
済データを保持するのに必要なラインバッファとラッチ
があるとする。そして3個のOR回路a −Cと選択的
OR回路dを1個持つとする。このとき、OR回路aで
は画素位置(i−1,j−1) 、 (i、 j−1)
 、 (i+I、 j−1) 、 (i−1,lの4画
素分の2値化済データの論理和がとられ、その結果とし
て信号eが出力される。また、OR回路すでは画素位置
(i−2,j−2) 、 (i−1,j−2) 、 (
i、 j−2) 。
(i+3.j-1), (i-3,j), (i
-2,j), (i-1,j), it is assumed that there are line buffers and latches necessary to hold the binarized data for 24 pixels. It is assumed that there are three OR circuits a to C and one selective OR circuit d. At this time, in OR circuit a, pixel positions (i-1, j-1), (i, j-1)
, (i+I, j-1), (i-1, l) The logical sum of the binary data for four pixels is taken, and the signal e is output as a result.The OR circuit also determines the pixel position. (i-2, j-2) , (i-1, j-2) , (
i, j-2).

(i+1. j−2) 、 (i+2. j−2) 、
 (i−2,j−1) 、 (i+2. j−1)(i
−2,j)の8画素分の2値化済データの論理和がとら
れ、その結果として信号fが出力される。そして、OR
回路Cでは、画素位置(i−3,j−3) 。
(i+1.j-2), (i+2.j-2),
(i-2,j-1), (i+2.j-1)(i
-2, j) of eight pixels worth of binary data is logically summed, and as a result, a signal f is output. And OR
In circuit C, pixel position (i-3, j-3).

(i−2,j−3)、(i−1,j−3)、(i、j−
3)、(i+1.j−3)、(i+2.j−3) 、 
(i+3. j−3) 、 (i−3,j−2) 、 
(i+3. j−2) 、 (i−3,j−1) 。
(i-2, j-3), (i-1, j-3), (i, j-
3), (i+1.j-3), (i+2.j-3),
(i+3.j-3), (i-3,j-2),
(i+3.j-2), (i-3,j-1).

(i+3. j−1) 、 (i−3,j)の12画素
分の2値化済データの論理和がとられ、その結果として
信号gが出力される。
The logical sum of 12 pixels of binarized data (i+3.j-1) and (i-3,j) is taken, and a signal g is output as a result.

選択的OR回路dでは、補正済信号l○○が21以上5
0以下ならば信号eを、補正済信号100が11以上2
0以下ならば信号eと信号fの論理和をとった結果を、
補正済信号100が1以上10以下ならば信号eと信号
fと信号gの論理和をとった結果を、そして、補正済信
号100が51以上または0ならばO”を判定信号とし
て出力するようにすれば良い。尚、補正済信号100の
レベルを1以上10以下、11以上20以下、21以上
50以下、51以上またはOの4段階にとっであるが、
これはほん、の−例であって、これ以外の段階の取り方
であっても全く構わない。
In the selective OR circuit d, the corrected signal l○○ is 21 or more and 5
If the corrected signal 100 is 11 or more, use the signal e.
If it is less than 0, the result of logical sum of signal e and signal f is
If the corrected signal 100 is 1 or more and 10 or less, the result of the logical sum of the signal e, the signal f, and the signal g is output, and if the corrected signal 100 is 51 or more or 0, O'' is output as the judgment signal. The level of the corrected signal 100 can be set to four levels: 1 to 10, 11 to 20, 21 to 50, 51 and above, or O.
This is just an example; other steps may be used.

以上説明した様に本実施例によれば、低濃度部での白ぬ
け及び粒状感を抑え、しかも、エツジ部における再現性
を良好にすることが可能となる。
As explained above, according to this embodiment, it is possible to suppress white spots and graininess in low density areas, and to improve reproducibility in edge areas.

特に、エツジの存在する領域における負の誤差を拡散し
ない様にすることにより、エツジ部付近でドツトが打た
れずに白く抜ける現象を防止する事が可能となる。
In particular, by preventing negative errors from being diffused in areas where edges exist, it is possible to prevent dots from appearing in the vicinity of edges and appearing white.

また、入力画素濃度に応じて閾値の大きさを制御するこ
とにより、画像の処理始めにおいて閾値が大きすぎるた
めにドツトが打たれずに白く抜ける現象を防止できる。
Furthermore, by controlling the size of the threshold value in accordance with the input pixel density, it is possible to prevent the phenomenon in which the threshold value is too large at the beginning of image processing, resulting in white dots instead of being formed.

尚、実施例では複写機に応用した場合を説明したが、こ
れに限定されるものではない。
Incidentally, in the embodiment, a case where the present invention is applied to a copying machine has been described, but the present invention is not limited to this.

また、カラー画像に対しては本実施例に示した回路を所
定色分持つことで実現できる。
Furthermore, a color image can be realized by providing the circuits shown in this embodiment for predetermined colors.

[発明の効果コ 以上、説明した様に本発明によれば、低濃度部での白ぬ
け及び粒状感を抑え、しかも、エツジ部における再現性
を良好にすることが可能となる。
[Effects of the Invention] As described above, according to the present invention, it is possible to suppress white spots and graininess in low density areas, and to improve reproducibility in edge areas.

特に、画像の処理始めにおいて閾値が大きすぎるために
ドツトが打たれずに白く抜けるという現象を防止できる
In particular, it is possible to prevent the phenomenon in which dots are not printed and the image appears white due to the threshold value being too large at the beginning of image processing.

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

第1図は本実施例における複写機の全体ブロック構成図
、 第2図は実施例におけるエツジ検出回路のブロック構成
図、 第3図及び第4図は注目画素とエツジ検出をする画素と
の位置関係を示す図、 第5図は実施例における2値化回路のブロック構成図、 第6図は第5図中の誤差配分制御回路のブロック構成図
、 第7図は実施例における閾値設定回路のブロック構成図
、 第8図は実施例における判定回路のブロック構成図、 第9図は第2の実施例における複写機の全体ブロック構
成図、 第10図は第2の実施例におけるエツジ検出回路のブロ
ック構成図、 第11図は第2の実施例における2値化回路のブロック
構成図、 第12図は第11図における誤差配分制御回路のブロッ
ク構成図、 第13図は第2の実施例における判定回路のブロック構
成図である。 図中、1・・・入力部、2・・・A/D変換機、3・・
・補正回路、4・・・ラインメモリ、5・・・エツジ検
出回路、6・・・2値化回路、7・・・閾値設定回路、
8・・・判定回路、9・・・出力部である。 特許出願人  キャノン株式会社 第3図 第4図
FIG. 1 is an overall block diagram of the copying machine in this embodiment. FIG. 2 is a block diagram of the edge detection circuit in this embodiment. FIGS. 3 and 4 are the positions of the pixel of interest and the pixel for edge detection. Figure 5 is a block diagram of the binarization circuit in the embodiment; Figure 6 is a block diagram of the error distribution control circuit in Figure 5; Figure 7 is a block diagram of the threshold setting circuit in the embodiment. FIG. 8 is a block diagram of the determination circuit in the embodiment; FIG. 9 is an overall block diagram of the copying machine in the second embodiment; FIG. 10 is the edge detection circuit in the second embodiment. Block configuration diagram: FIG. 11 is a block configuration diagram of the binarization circuit in the second embodiment; FIG. 12 is a block configuration diagram of the error distribution control circuit in FIG. 11; FIG. FIG. 3 is a block configuration diagram of a determination circuit. In the figure, 1...input section, 2...A/D converter, 3...
- Correction circuit, 4... Line memory, 5... Edge detection circuit, 6... Binarization circuit, 7... Threshold value setting circuit,
8: Determination circuit; 9: Output section. Patent applicant Canon Co., Ltd. Figure 3 Figure 4

Claims (1)

【特許請求の範囲】 誤差拡散法に基づいて出力画素データを生成する画像処
理方式であつて、 原画素データを入力する入力手段と、 誤差拡散法に基づいた2値出力画素を出力する出力手段
と、 少なくとも前記入力手段で入力される注目画素データの
周辺に位置する前記2値出力画素群を複数記憶する記憶
手段と、 記憶された2値出力画素群中の所定領域における2値状
態を検出する検出手段と、 前記注目画素データ近傍が画像エッジ部にあるか否かを
判別する判別手段と、 少なくとも前記注目画素データの濃度値に応じた閾値を
発生する閾値発生手段と、 前記検出手段、前記判別手段及び前記閾値発生手段に従
って、前記注目画素データに対する2値出力画素データ
を発生する2値化手段とを備え、該2値化手段で発生し
た2値出力画素データを前記出力手段で出力することを
特徴とする画像処理方式。
[Claims] An image processing method that generates output pixel data based on an error diffusion method, comprising: input means for inputting original pixel data; and output means for outputting binary output pixels based on the error diffusion method. and a storage means for storing a plurality of the binary output pixel groups located at least around the pixel data of interest inputted by the input means, and detecting a binary state in a predetermined area in the stored binary output pixel group. a determining means for determining whether the vicinity of the pixel data of interest is located at an edge portion of the image; a threshold generating means for generating a threshold value corresponding to at least a density value of the pixel data of interest; the detecting means; binarizing means for generating binary output pixel data for the pixel data of interest according to the determining means and the threshold generating means, and outputting the binary output pixel data generated by the binarizing means by the output means. An image processing method characterized by:
JP63212387A 1988-08-24 1988-08-29 Image processing system Pending JPH0260771A (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP63212387A JPH0260771A (en) 1988-08-29 1988-08-29 Image processing system
US07/396,339 US5086484A (en) 1988-08-24 1989-08-21 Image processing apparatus with fixed or variable threshold
EP89308557A EP0356225B1 (en) 1988-08-24 1989-08-23 Image processing apparatus
DE68927696T DE68927696T2 (en) 1988-08-24 1989-08-23 Image processing device
EP96200964A EP0730369A1 (en) 1988-08-24 1989-08-23 Image processing apparatus
US08/276,643 US5488673A (en) 1988-08-24 1994-07-19 Image processing with fixed or variable threshold

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63212387A JPH0260771A (en) 1988-08-29 1988-08-29 Image processing system

Publications (1)

Publication Number Publication Date
JPH0260771A true JPH0260771A (en) 1990-03-01

Family

ID=16621739

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63212387A Pending JPH0260771A (en) 1988-08-24 1988-08-29 Image processing system

Country Status (1)

Country Link
JP (1) JPH0260771A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04354080A (en) * 1991-05-31 1992-12-08 Pfu Ltd Ocr data inputting and processing method
JPH04372075A (en) * 1991-06-20 1992-12-25 Pfu Ltd Image data processor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61237574A (en) * 1985-04-12 1986-10-22 インターナショナル ビジネス マシーンズ コーポレーション Generation of halftone image
JPS63164570A (en) * 1986-12-25 1988-07-07 Canon Inc Image processing method
JPS63169174A (en) * 1987-01-06 1988-07-13 Canon Inc Picture processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61237574A (en) * 1985-04-12 1986-10-22 インターナショナル ビジネス マシーンズ コーポレーション Generation of halftone image
JPS63164570A (en) * 1986-12-25 1988-07-07 Canon Inc Image processing method
JPS63169174A (en) * 1987-01-06 1988-07-13 Canon Inc Picture processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04354080A (en) * 1991-05-31 1992-12-08 Pfu Ltd Ocr data inputting and processing method
JPH04372075A (en) * 1991-06-20 1992-12-25 Pfu Ltd Image data processor

Similar Documents

Publication Publication Date Title
US5488673A (en) Image processing with fixed or variable threshold
JP2683014B2 (en) Image processing method and apparatus
JP3961736B2 (en) Image processing device
JP4121631B2 (en) Image data processing system and image data processing method
JP2815157B2 (en) Image processing device
JP2755307B2 (en) Image processing device
EP0382580B1 (en) Image processing apparatus
US6134355A (en) Binarization using a local average, and using error diffusion
JP3982874B2 (en) Image data processing method and system
JPH0260771A (en) Image processing system
JPH01115271A (en) Image processor
US5200839A (en) Image processing apparatus
JPH0644800B2 (en) Image processing device
JP3263201B2 (en) Image processing device
JP3679522B2 (en) Image processing method and apparatus
JP2779259B2 (en) Binarization device
JPS63164570A (en) Image processing method
JP2733314B2 (en) Image processing device
JPH01130945A (en) Image processing apparatus
JP2662402B2 (en) Image processing device
JP2001326818A (en) Image processing unit
JP3549475B2 (en) Image processing method
JPH04219071A (en) Binarizing device
JP2749985B2 (en) Image processing device
JPH11136510A (en) Image processor