JPH03218175A - Image processor - Google Patents

Image processor

Info

Publication number
JPH03218175A
JPH03218175A JP2012461A JP1246190A JPH03218175A JP H03218175 A JPH03218175 A JP H03218175A JP 2012461 A JP2012461 A JP 2012461A JP 1246190 A JP1246190 A JP 1246190A JP H03218175 A JPH03218175 A JP H03218175A
Authority
JP
Japan
Prior art keywords
pixel
interest
binarization
average density
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
JP2012461A
Other languages
Japanese (ja)
Inventor
Seita Masano
正能 清太
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 JP2012461A priority Critical patent/JPH03218175A/en
Publication of JPH03218175A publication Critical patent/JPH03218175A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To reduce the processing quantity for binarization and to realize the image of a high quality at a low cost by calculating average density by using only binary data whose binarization processing is ended, setting its average density value as a threshold and binarizing input multivalued data. CONSTITUTION:An edge detecting means 23 detects the edge quantity of an object picture element of a binarization object, arithmetic means 13, 14 derive average density in the vicinity of the object picture element, based on binary data of the picture element binarized alreaby before the object picture element, a binarizing means 18 binarizes multivalued image data of the notice picture element, based on the average density value derived by the arithmetic means 13, 14, and distributing means 19-22 distribute a binarization error generated at the time of binarizing the object picture element by the binarizing means to the multivalued image data of the picture element before binarization in the periphery of the notice picture element, based on the edge quantity detected by an edge detecting means 23, and save the density. In such a way, the image whose gradation and resolution are both excellent is constituted of a hardware being simple and low in cost, and especially, the depiction of a highlight part can be improved.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は画像処理装置に関し、例えば多値の画像データ
を2値データに量子化処理する画像処理装置に関するも
のである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing device, and for example, to an image processing device that quantizes multivalued image data into binary data.

[従来の技術] 従来、この種の装置においては、ファクシミリ装置やデ
ジタル複写機等の画像処理装置が存在し、各装置の疑似
中間調処理方式として誤差拡散法や平均濃度近似法が提
案されている。
[Prior Art] Conventionally, this type of device includes image processing devices such as facsimile machines and digital copying machines, and error diffusion methods and average density approximation methods have been proposed as pseudo halftone processing methods for each device. There is.

前者の誤差拡散法は、文献R. FLOYD. L. 
STEINBERGの゜’AN ADAPTIVE A
LGORITHM FOR SPETIAL GRAY
SCALE ” ,SID75 DIGEST,PP3
6〜37に開示されている如く、注目画素の多値画像デ
ータを2値化(最濃レベルか又は最淡レベルに変換)し
、その2値化レベルと2値化前の多値データとの誤差に
所定の重み付けをして、注目画素近傍の画素のデータに
加算するものである。
The former error diffusion method is described in the document R. FLOYD. L.
STEINBERG's ゜'AN ADAPTIVE A
LGORITHM FOR SPECIAL GRAY
SCALE”, SID75 DIGEST, PP3
6 to 37, the multi-valued image data of the pixel of interest is binarized (converted to the darkest level or the lightest level), and the binarized level and the multi-valued data before binarization are The error is given a predetermined weight and added to data of pixels near the pixel of interest.

また、後者の平均濃度近似法は、特開昭57−1043
69号に記載されている様に、注目画素近傍の既に2値
化された2値データを用いて、注目画素を黒又は白に2
値化した場合のそれぞれの近傍画素との重み付け平均を
求め、この2つの平均値の平均を閾値として、注目画素
の画像データを2値化するものである。
Moreover, the latter average concentration approximation method is disclosed in JP-A-57-1043.
As described in No. 69, the pixel of interest is converted into black or white using the already binarized binary data near the pixel of interest.
When converted into values, a weighted average with each neighboring pixel is obtained, and the average of these two average values is used as a threshold to binarize the image data of the pixel of interest.

[発明が解決しようとしている課題] 前述した誤差拡散法は入力画像データと出力画像データ
との誤差を補正する方式のため、入力画像及び出力画像
の濃度を保存することができ、解像度及び階調性共に優
れた画像を提供することが可能である。
[Problems to be Solved by the Invention] The error diffusion method described above is a method for correcting errors between input image data and output image data, so it is possible to preserve the density of the input image and the output image, and it is possible to preserve the resolution and gradation. It is possible to provide images with excellent quality.

しかしながら、誤差拡散法は、入力画像データと出力画
像データとの誤差を補正する際、多くの2次元演算を算
出しなければならず、その処理量の多さによりハードウ
エア構成が大変複雑になるといった欠点があった。
However, the error diffusion method requires calculation of many two-dimensional operations when correcting errors between input image data and output image data, and the large amount of processing requires a very complex hardware configuration. There were some drawbacks.

又、平均濃度近似法は2値化後の2値データを用いて演
算を行うので、ハードウエア構成を簡素化することがで
きると供に極めて少ない処理量のため、処理の高速化を
実現することが可能である。
In addition, since the average density approximation method performs calculations using binary data after binarization, it is possible to simplify the hardware configuration and achieve faster processing due to the extremely small amount of processing. Is possible.

しかしながら、平均濃度近似法は、注目画素を含めた領
域の平均値に注目画素を近似させ、2値化を行うので階
調数が制限されると共に、なだらかな濃度変化を有する
画像に対して特有の低周波のテクスチャが発生し、画質
が劣化するといった欠点があった。
However, the average density approximation method approximates the pixel of interest to the average value of the area including the pixel of interest and performs binarization, which limits the number of gradations and is unique to images with gradual density changes. The problem was that low-frequency textures were generated, which degraded the image quality.

又、注目画素を近傍画素の条件により2値化する方法で
は、実際に紙に印字を行った場合、ハイライト部でドッ
トのつながり等が起こり画質を低下させてしまうといっ
た欠点があった。
Furthermore, the method of binarizing the pixel of interest based on the conditions of neighboring pixels has the disadvantage that when actually printing on paper, dot connections occur in highlighted areas, resulting in a reduction in image quality.

本発明は上述した従来技術の欠点に鑑みてなされたもの
であり、その目的とするところは、階調性及び解像力供
に優れた画像を簡単で低コストなハードウェアで構成し
、特に、ハイライト部でのドットのつながり等を防止し
、エッジ部での誤差分配を補正することにより、ハイラ
イト部の描写の優れたエッジ部での欠けのない画像処理
装置を提供することにある。
The present invention has been made in view of the above-mentioned drawbacks of the prior art, and its purpose is to construct an image with excellent gradation and resolution using simple and low-cost hardware, and in particular, to construct an image with excellent gradation and resolution using simple and low-cost hardware. An object of the present invention is to provide an image processing device that provides excellent depiction of highlight parts and is free from chipping at edge parts by preventing dot connections in light parts and correcting error distribution in edge parts.

[課題を解決するための手段] 上述した課題を解決し、目的を達成するため、本発明に
係わる画像処理装置は、以下の構成を備える。即ち、 多値画像データを2値データに量子化処理する画像処理
装置において、2値化対象の注目画素のエッジ量を検出
するエッジ検出手段と、前記注目画素以前に既に2値化
された画素の2値データに基づいて前記注目画素近傍の
平均濃度を求める演算手段と、前記演算手段によって求
められた平均濃度値に基づいて前記注目画素の多値画像
データを2値化する2値化手段と、前記エッジ検出手段
によって検出されたエッジ量に基づいて、前記2値化手
段によって注目画素を2値化した際に発生する2値化誤
差を、前記注目画素の周辺の2値化前の画素の多値画像
データに分配する分配手段とを備える。
[Means for Solving the Problems] In order to solve the above-mentioned problems and achieve the objectives, an image processing apparatus according to the present invention has the following configuration. That is, in an image processing apparatus that quantizes multivalued image data into binary data, there is provided an edge detection means for detecting an edge amount of a pixel of interest to be binarized, and a pixel that has already been binarized before the pixel of interest. a calculation means for calculating an average density in the vicinity of the pixel of interest based on the binary data of the pixel of interest; and a binarization means for binarizing the multivalued image data of the pixel of interest based on the average density value obtained by the calculation means. Based on the edge amount detected by the edge detection means, the binarization error that occurs when the pixel of interest is binarized by the binarization means is calculated from the value of the area around the pixel of interest before binarization. and distribution means for distributing multivalued image data of pixels.

[作用] かかる構成によれば、エッジ検出手段は2値化対象の注
目画素のエッジ量を検出し、演算手段は注目画素以前に
既に2値化された画素の2値データに基づいて注目画素
近傍の平均濃度を求め、2値化手段は演算手段によって
求められた平均濃度値に基づいて注目画素の多値画像デ
ータを2値化し、分配手段はエッジ検出手段によって検
出されたエッジ量に基づいて、前記2値化手段によって
注目画素を2値化した際に発生する2値化誤差を、前記
注目画素の周辺の2値化前の画素の多値画像データに分
配し、濃度を保存する。
[Operation] According to this configuration, the edge detection means detects the edge amount of the pixel of interest to be binarized, and the calculation means detects the edge amount of the pixel of interest based on the binary data of pixels that have already been binarized before the pixel of interest. The average density of the neighborhood is determined, the binarization means binarizes the multivalued image data of the pixel of interest based on the average density value determined by the calculation means, and the distribution means is based on the amount of edges detected by the edge detection means. Then, the binarization error generated when the pixel of interest is binarized by the binarization means is distributed to multi-valued image data of pixels surrounding the pixel of interest before binarization, and the density is preserved. .

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

まず、本方式の原理について説明する。First, the principle of this method will be explained.

第3A図〜第3D図は本実施例の2値化方法を説明する
図である。
FIGS. 3A to 3D are diagrams for explaining the binarization method of this embodiment.

第3A図は入力画像の画素毎の多値濃度を表わしている
。第3A図において、f (i,j)は2値化しようと
する注目画素位置の入力画素の多値濃度データであり、
そのデータが取り得る値を正規化された0〜1の値とす
る。また、同図中の破線より上に位置する各画素のデー
タは、既に2値化処理を終了したデータである。注目画
素の2値化後は、後続のf (i,j+1),f (i
, j+2)・・・の順にそれぞれが注目画素として同
様の2値化処理が行われる。
FIG. 3A shows the multilevel density of each pixel of the input image. In FIG. 3A, f (i, j) is the multilevel density data of the input pixel at the pixel position of interest to be binarized,
The values that the data can take are normalized values between 0 and 1. Furthermore, the data of each pixel located above the broken line in the figure is data that has already been binarized. After the pixel of interest is binarized, the subsequent f (i, j+1), f (i
, j+2), . . . are subjected to similar binarization processing as the pixel of interest.

第3B図は2値化画像データを表わしている。同図にお
いて、B (i,j)は注目画素の2値化後の濃度(0
又は1の値とする)を示している。同図中の破線により
囲まれた領域は注目画素を2値化するときには既に2値
化済みの画素データである。これら2値化済の画素デー
タは注目画素の2値化処理の際に使用される。
FIG. 3B shows binarized image data. In the figure, B (i, j) is the density of the pixel of interest after binarization (0
or a value of 1). The area surrounded by the broken line in the figure is pixel data that has already been binarized when the pixel of interest is binarized. These binarized pixel data are used in the binarization process of the pixel of interest.

第3C図,第3D図は重み付けマスクを表わしている。Figures 3C and 3D represent weighted masks.

第3C図,第3D図において、R.R2は平均濃度を求
める重み付けマスクの一例であって、3×5又は3×2
サイズのマトリクスで表わされる。ここで、未2値化の
画素データに対する重みは、R,(0,O)=R,(0
.1)=0,R2  (0,O)=R2  (0.1)
=Oとして使用される。
In FIGS. 3C and 3D, R. R2 is an example of a weighting mask for calculating the average density, and is 3×5 or 3×2
Represented by a matrix of sizes. Here, the weight for unbinarized pixel data is R, (0, O) = R, (0
.. 1)=0,R2 (0,O)=R2 (0.1)
=O is used.

本方式は注目画素近傍における2値画像の重み付き平均
濃度m,(z, j)+ m2  (11 J)を次式
(1),(2)より求める。尚、m.(i,J),mz
  (1, j)については後述する。
In this method, the weighted average density m, (z, j) + m2 (11 J) of the binary image near the pixel of interest is determined using the following equations (1) and (2). In addition, m. (i, J), mz
(1, j) will be discussed later.

即ち、 m+(i+.+)”Σ  Σ  R+(x,y)・B(
f−x.j−y)  −  ( 1 )mzh+j)”
Σ  Σ  R2(x,y)・B(i−x.j−y) 
 −  (2)である。
That is, m+(i+.+)"Σ Σ R+(x,y)・B(
f-x. j−y) − (1)mzh+j)”
Σ Σ R2(x,y)・B(i-x.j-y)
- (2).

また、以下に示す(3)式に従って注目画素f(i,j
)と既に割付けられた2値化補正値E(i,j)により
m+  (1+ j)+ m2  (1+j)のどちら
か一方が選択される。即ち、Jf(i,j)+E(i.
j)≦βのときm(i. j)=m+ (L j)lf
(i,j)+E(i,j) >βのときm(i, j)
:m2 (i, j)・・・(3) である。尚、βは予め決めた所定値である。
Also, according to equation (3) shown below, the pixel of interest f(i, j
) and the already assigned binarization correction value E(i, j), one of m+(1+j)+m2(1+j) is selected. That is, Jf(i,j)+E(i.
When j)≦β, m(i. j)=m+ (L j)lf
(i, j) + E (i, j) When > β, m (i, j)
:m2 (i, j)...(3). Note that β is a predetermined value determined in advance.

ここで、m+  (11 J)とmx  ( 1 1 
J )との違い及びβについて説明する。
Here, m+ (11 J) and mx (1 1
J) and β will be explained.

本実施例では、m(ilJ)という注目画素周辺の平均
濃度を閾値として2値化を行い、また、誤差配分によっ
て平均濃度を保存することにより良好な2値化が行われ
る。この平均濃度を算出する領域m(iIJ)を広くと
ると、階調性の点が良くなり、また、狭くとると解像度
の点が良くなる。このため、階調性と解像度とのバラン
スが良くとれたマスクを使用するのであるが、ハイライ
ト部分ではドットの近接が起きてしまう。そこで、ハイ
ライト部分では平均濃度算出領域を広くとってドットを
散乱させる。従って、ハイライト部分ではrl’l+ 
 (i+−+)を選択し、ハイライト部分以外の領域で
はm.(i,j)を選択するようにβの値が設定されて
いる。
In this embodiment, binarization is performed using m(ilJ), the average density around the pixel of interest, as a threshold, and good binarization is performed by preserving the average density by error allocation. The wider the area m(iIJ) for calculating the average density, the better the gradation will be, and the narrower it will be, the better the resolution will be. For this reason, a mask with a good balance between gradation and resolution is used, but dots tend to approach each other in highlighted areas. Therefore, in the highlighted area, the average density calculation area is widened and the dots are scattered. Therefore, in the highlighted part rl'l+
(i+-+), and m. The value of β is set to select (i, j).

そこで、2値化を行う画素がハイライト部に属するか否
かを区別するβは、0(白)〜1 (黒)の間を8ビッ
ト(O〜255レベル)で表わした場合、7〜20レベ
ルの範囲に設定される。
Therefore, β, which distinguishes whether or not a pixel to be binarized belongs to the highlight area, is 7 to It is set to a range of 20 levels.

注目画素f (i,j)は前記選択されたm(i,j)
と前記2値化補正値E (i,j)を用いて次式(4)
に従い2値化される。
The pixel of interest f (i, j) is the selected pixel m (i, j)
Using the above-mentioned binarization correction value E (i, j), the following equation (4) is obtained.
It is binarized according to the following.

即ち、 ・・・ (4) である。E (i,j)は、注目画素(i,j)の1画
素前である画素(i,j−1)の多値濃度f(i.j−
1)を2値濃度B(i,j−1)に2値化した際に発生
する誤差E2(iIJ)と、注目画素(i,j)の1ラ
イン前である画素(i −1,j)の多値濃度f(i−
1,j)を2値濃度B(i−1.j)に2値化した際に
発生する誤差E+  (t+ J)との和であり、これ
を次式(5)で示す。
That is, ... (4). E (i, j) is the multilevel density f (i.j-
Error E2 (iIJ) that occurs when 1) is binarized into binary density B (i, j - 1) and the pixel (i - 1, j) that is one line before the pixel of interest (i, j). ) multilevel density f(i-
1,j) into a binary density B(i-1.j), and is the sum of the error E+(t+J), which is expressed by the following equation (5).

即ち、 E(i. .+)=E+ (i, j)+Ez (i.
 j)      ・・・(5)である。
That is, E(i. .+)=E+ (i, j)+Ez (i.
j) ...(5).

このように、2値化誤差を注目画素に加えて補正した値
を2値化することにより、入力画像全域にわたって平均
濃度として、2値化後の画像濃度を保存することができ
る。
In this way, by adding the binarization error to the pixel of interest and binarizing the corrected value, it is possible to save the image density after binarization as the average density over the entire input image.

本実施例では、2値化誤差を考慮した処理を行うことに
より、上述の平均濃度近似法と比較すると中間調再生能
力が格段に向上する。そして誤差拡散法と比較して処理
量が少ないにもかかわらず、誤差拡散法と同等の画像再
生能力が得られる。
In this embodiment, by performing processing that takes binarization errors into account, the halftone reproduction ability is significantly improved compared to the above-mentioned average density approximation method. Although the amount of processing is smaller than that of the error diffusion method, image reproduction performance equivalent to that of the error diffusion method can be obtained.

また、濃度の低いところでは、重み付き平均濃度を算出
する領域を広《することによりハイライト部でのドット
のつながりが防止でき高品位な画像が得られる。
Furthermore, in areas where the density is low, by widening the area for calculating the weighted average density, it is possible to prevent dots from connecting in highlighted areas, resulting in a high-quality image.

さて、本実施例では2値化処理を行う前に予めエッジ量
edge (i,j)を検出し、2値化の際の誤差は検
出されたエッジ量6dge (i+j)により次式(6
)で決定される。
Now, in this embodiment, before performing the binarization process, the edge amount edge (i, j) is detected in advance, and the error during binarization is calculated by the following equation (6) using the detected edge amount 6dge (i+j).
) is determined.

即ち、 とする。That is, shall be.

本方式では、ハイライト部で平均濃度算出領域を広くと
るので、エッジ近傍のハイライト部分に画像の欠落が発
生しやすい。そこで、エッジ部と判断された場所では、
マイナスの2値化誤差は配分しないこととする。これに
よりエッジ部分の画質が向上する。
In this method, since the average density calculation area is widened in the highlight portion, image loss is likely to occur in the highlight portion near the edge. Therefore, in the place judged to be the edge part,
Negative binarization errors are not distributed. This improves the image quality at the edges.

次に、上記処理を行う構成について説明する。Next, a configuration for performing the above processing will be described.

第1図は本発明の一実施例を示す画像処理装置のブロッ
ク図である。本実施例では、複写機を例に挙げたが、本
発明の趣旨である2値化処理が他のファクシミリ装置等
に適応可能なことは述べるまでもない。
FIG. 1 is a block diagram of an image processing apparatus showing an embodiment of the present invention. In this embodiment, a copying machine is taken as an example, but it goes without saying that the binarization process that is the gist of the present invention is applicable to other facsimile machines and the like.

第1図において、100は入カセンサ部を示し、これは
CCD等の光電変換素子及びこれを走査する駆動装置よ
り構成され原稿の読み取り走査を行う。101は入カセ
ンサ部100からの出力、即ち、アナログ信号をデジタ
ル信号に変換するA/D変換器を示し、102はA/D
変換器101から出力されるデジタル信号を補正する補
正回路を示している。102は補正回路102から出力
される補正信号を本実施例の2値化方法に従って2値化
する2値化回路を示している。104は2値化回路10
3から出力される2値データに基づいて不図示の記録紙
に出力画像を可視形成するプリンタを示している。
In FIG. 1, reference numeral 100 indicates an input sensor section, which is composed of a photoelectric conversion element such as a CCD and a driving device for scanning the photoelectric conversion element, and reads and scans an original. Reference numeral 101 indicates an A/D converter that converts the output from the input sensor unit 100, that is, an analog signal into a digital signal, and 102 indicates an A/D converter.
A correction circuit that corrects the digital signal output from the converter 101 is shown. Reference numeral 102 indicates a binarization circuit that binarizes the correction signal output from the correction circuit 102 according to the binarization method of this embodiment. 104 is a binarization circuit 10
3 shows a printer that visibly forms an output image on recording paper (not shown) based on binary data output from the printer 3.

次に、上記複写機の全体の動作について説明する。Next, the overall operation of the above-mentioned copying machine will be explained.

入カセンサ部100で読み取られた原稿の画像データは
逐次A/D変換器101に送られる。ここでは各画素の
データをデジタルデータに量子化する。次に、補正回路
102において、CCDセンサの感度ムラや照明光源に
よる照度ムラを補正するためのシエーデイング補正等が
デジタル演算処理で行われる。そして、この補正処理済
のデータは2値化回路103に送出される。2値化回路
103では、入力された多値の画像データを前述した方
式により2値のデータに量子化する処理が行われる。プ
リンタ104はレーザビーム又はインクジェット方式に
より構成されるプリンタであって、2値化回路103か
ら送られてくる2値データに基づいてドットをオン/オ
フ制御しながら可視画像を記録紙上に再現する。
The image data of the original read by the input sensor section 100 is sequentially sent to the A/D converter 101. Here, the data of each pixel is quantized into digital data. Next, in the correction circuit 102, shading correction and the like for correcting sensitivity unevenness of the CCD sensor and illuminance unevenness due to the illumination light source are performed by digital calculation processing. This corrected data is then sent to the binarization circuit 103. The binarization circuit 103 performs a process of quantizing input multivalued image data into binary data using the method described above. The printer 104 is a printer configured using a laser beam or an inkjet method, and reproduces a visible image on recording paper while controlling dots on/off based on binary data sent from the binarization circuit 103.

次に、2値化回路103について説明する。Next, the binarization circuit 103 will be explained.

第2図は本実施例の2値化回路103の詳細な構成を示
すブロック図である。同図において、1,2は2値化処
理された2値データを1ライン分遅延保持する遅延RA
M、3〜12.19は2値データを1画素遅延保持する
D型フリップフロップ(DF/F).13.14は注目
画素周辺の2値データから所定領域の平均濃度を演算す
る平均濃度演算回路、15は多値データと所定の値(こ
こでは、「β」とする)とを比較する比較器、16は比
較器15からのセレクト信号に基づいて複数の重み付け
平均値のいずれか一つを閾値として選択するセレクタ、
17はセレクタ16から出力される閾値と注目画素の多
値データとの差を演算する減算器、18はセレクタ16
から出力される閾値と注目画素の多値データとを比較す
る比較器、20は補正回路102から送られてきた多値
データと誤差ROM2 1及び誤差メモリ22から出力
された誤差データとを加算する加算器、21は減算器1
7から送られてくる注目画素の多値データと閾値の差及
びエッジ量検出装置23がも送られてくるエッジ量とに
基づいて誤差データを演算する誤差ROM、22は誤差
データを1ライン分記憶する誤差メモリ、23は注目画
素でのエッジ量を検出するエッジ量検出回路をそれぞれ
示している。
FIG. 2 is a block diagram showing the detailed configuration of the binarization circuit 103 of this embodiment. In the same figure, 1 and 2 are delay RAs that hold the binarized binary data with a delay of one line.
M, 3 to 12.19 are D-type flip-flops (DF/F) that hold binary data with a one-pixel delay. 13. 14 is an average density calculation circuit that calculates the average density of a predetermined area from binary data around the pixel of interest, and 15 is a comparator that compares the multi-value data with a predetermined value (here, "β"). , 16 is a selector that selects one of the plurality of weighted average values as a threshold based on the selection signal from the comparator 15;
17 is a subtracter that calculates the difference between the threshold output from the selector 16 and the multi-value data of the pixel of interest; 18 is the selector 16;
A comparator 20 that compares the threshold output from the multi-value data of the pixel of interest with the multi-value data of the pixel of interest, adds the multi-value data sent from the correction circuit 102 and the error data output from the error ROM 2 1 and the error memory 22. Adder, 21 is subtracter 1
Error ROM 22 calculates error data based on the difference between the multivalued data of the pixel of interest and the threshold value sent from 7, and the edge amount also sent to the edge amount detection device 23; 22 stores error data for one line; An error memory 23 stores an edge amount detection circuit for detecting an edge amount at a pixel of interest.

上記構成において、比較器18は式(4)に基づいて2
値化したデータB (i,j)を出力する。この出力さ
れた2値データは、ライン毎に遅延されるための遅延R
AM2,遅延RAMIに入力され、遅延RAM2により
1ライン遅延させた2f直データB (i−1,j+2
)がRAMIにより2ライン遅延させた2値データB(
i−2,j+2)が出力される。さらにDF/F3はB
(i−2,j+1) 、DF/F 4はB (i−2,
 j). DF/F 5はB (i−2, j−1).
 DF/F 6はB(i−2, j  2) . DF
/F 7はB(i−1,j+1).DF/F8はB (
i−1, j) 、DF/F9はB (i−l, j−
1)  DF/F 10はB(i−1, j−2) 、
DF/F 1 1はB(IIJ−1)  DF/F12
はB(i,J−2)を出力する。
In the above configuration, the comparator 18 has 2
The converted data B (i, j) is output. This output binary data is delayed by R for each line.
AM2, input to delay RAMI, 2f direct data B (i-1, j+2
) is delayed by 2 lines by RAMI, resulting in binary data B (
i-2, j+2) is output. Furthermore, DF/F3 is B
(i-2, j+1), DF/F 4 is B (i-2,
j). DF/F 5 is B (i-2, j-1).
DF/F 6 is B(i-2, j 2). DF
/F 7 is B(i-1,j+1). DF/F8 is B (
i-1, j), DF/F9 is B (i-l, j-
1) DF/F 10 is B(i-1, j-2),
DF/F 1 1 is B (IIJ-1) DF/F12
outputs B(i, J-2).

上記2値データは平均濃度演算回路13に入力され、そ
のうちのB (i−1, j+1) , B(i−1,
 j)  B (i−1, j−1) , B(i,j
−1)の4つは平均濃度演算回路14にも人力される。
The above binary data is input to the average concentration calculation circuit 13, of which B (i-1, j+1), B (i-1,
j) B (i-1, j-1) , B (i, j
-1) are also input manually to the average concentration calculation circuit 14.

平均濃度演算回路13及び14は注目画素周辺の画素の
2値データを入力し、それぞれ重み付き平均濃度値m 
+  ( 1 + J ) + m 2(i,j)を出
力する。
The average density calculation circuits 13 and 14 input binary data of pixels around the pixel of interest, and each calculates a weighted average density value m.
+(1+J)+m2(i,j) is output.

一方、比較器15にはDF/F19よりf (i,j)
+E (i,j)が入力され、所定の値(β)と比較し
て、その比較結果に基づいてセレクタ16にセレクト信
号が出力される。セレクタ16では比較器15から送ら
れて《るセレクト信号により前記重み付き平均濃度値m
+  ( 1 + J ) + rn2(i,j)のい
ずれか一方が閾値rn(x+ j)として出力される。
On the other hand, the comparator 15 receives f (i, j) from the DF/F 19.
+E (i, j) is input and compared with a predetermined value (β), and a select signal is output to the selector 16 based on the comparison result. The selector 16 uses the select signal sent from the comparator 15 to determine the weighted average density value m.
+(1+J)+rn2(i,j) is output as the threshold rn(x+j).

上記閾値m(i,j)とDF/F19より出力されたf
 (i,j)+E (i,j)とは、両方とも減算器1
7及び比較器18に人力される。減算器17は2つの入
力の差を演算する。また比較器18は上記2つの入力f
 (i,j) 十E (i,j)とm(t,j)とを比
較して2値化データB(i,j)を出力する。
The above threshold m(i, j) and f output from DF/F19
(i, j) + E (i, j) is both subtractor 1
7 and comparator 18. Subtractor 17 calculates the difference between two inputs. Also, the comparator 18 receives the above two inputs f
(i, j) 10E (i, j) and m(t, j) are compared and binarized data B (i, j) is output.

減算器17から出力される注目画素の多値データと閾値
との差は、誤差ROM2 1に入力される。同時に誤差
ROM2 1にはエッジ量検出回路23から得られたエ
ッジ量も入力される。誤差ROM21は前述の式(6)
に従って、誤差E2(i,j+1)を出力する。このE
2 (i,j+1)は加算器20に入力されると共に誤
差メモリ22に入力される。誤差メモリ22は1ライン
分の誤差を記憶保持し、E2  (i,j+1)に替わ
り前段の処理で既に記憶されたE1 (i+1,j)が
出力される。
The difference between the multivalued data of the pixel of interest output from the subtracter 17 and the threshold value is input to the error ROM 21. At the same time, the edge amount obtained from the edge amount detection circuit 23 is also input to the error ROM 21. The error ROM21 is calculated using the above formula (6).
Accordingly, the error E2(i, j+1) is output. This E
2 (i, j+1) is input to the adder 20 and also to the error memory 22. The error memory 22 stores and holds the error for one line, and instead of E2 (i, j+1), E1 (i+1, j) already stored in the previous stage processing is output.

上記E2  (i,j+1)と誤差メモリ22から出力
されるE +  ( ’i , j +1 )とは加算
器20により入力画像データf (i,j+1)に加え
られる。DF/F19は加算器20から出力される加算
値をデータlクロック期間、即ち、1画素分遅延させる
The above E2 (i, j+1) and E + ('i, j +1) outputted from the error memory 22 are added to the input image data f (i, j+1) by the adder 20. The DF/F 19 delays the added value output from the adder 20 by one data clock period, that is, by one pixel.

以下、上記処理を繰返し行うことにより、2値化処理が
順次行われる。
Thereafter, the binarization process is sequentially performed by repeating the above process.

このようにして、2値化処理の終了した2値データのみ
を用いて平均濃度を演算し、その平均濃度値を閾値とし
て入力多値データを2値化するので、2値化のための処
理量が誤差拡散法に比べて少な《することができる。ま
たハイライト部において、平均濃度を演算する領域を広
くとることにより、ハイライト部に現われるドットのつ
ながり等を防止することができる。またエッジ部でマイ
ナスの誤差を配分しないことにより、エッジ部での画像
の欠け等を防止できる。
In this way, the average density is calculated using only the binary data that has been binarized, and the input multivalued data is binarized using the average density value as a threshold, so the processing for binarization is The amount can be reduced compared to the error diffusion method. Further, by widening the area in which the average density is calculated in the highlight part, it is possible to prevent dot connections that appear in the highlight part. Furthermore, by not distributing a negative error to the edge portion, it is possible to prevent image loss, etc. at the edge portion.

以上説明した如く、本実施例によれば、低コストで高品
位な画像を得ることができる。
As explained above, according to this embodiment, high-quality images can be obtained at low cost.

[他の実施例] 次に、他の実施例について説明する。[Other Examples] Next, other embodiments will be described.

前述した実施例では、複数の重み付き平均値を計算し、
注目画素のレベルに基づいて複数の重み付き平均値のい
ずれか一つを選択する方法が用いられ、重み付き平均値
の算出ではエッジ部でのマイナスの誤差を配分しないと
いう構成であった。
In the embodiment described above, a plurality of weighted average values are calculated,
A method is used in which one of a plurality of weighted average values is selected based on the level of the pixel of interest, and a negative error at an edge portion is not distributed when calculating the weighted average value.

これに対し、他の実施例では、重み付き平均値の算出で
はエッジ部でのマイナスの誤差を配分する方法が使用さ
れる。
On the other hand, in other embodiments, a method of allocating negative errors at edges is used in calculating the weighted average value.

第4図は本発明の他の実施例の2値化回路の構成を示す
ブロック図である。他の実施例は、第4図に示されるよ
うに、前述の実施例とほぼ同様の構成をしており、同一
機能を及び構成を有する回路には第2図に示される参照
番号と同様の番号を使用し、説明を省略する。そこで、
第4図中、30は平均濃度演算回路を示し、これは比較
器15の出力及びエッジ検出回路23の出力edge(
i,j)も含めて平均濃度を演算する。この構成から、
平均濃度演算回路30からの出力だけとなり、複数の平
均濃度演算回路を選択するセレクタは不要となる。
FIG. 4 is a block diagram showing the configuration of a binarization circuit according to another embodiment of the present invention. Another embodiment, as shown in FIG. 4, has substantially the same construction as the previous embodiment, and circuits having the same function and configuration have the same reference numerals as shown in FIG. Use numbers and omit descriptions. Therefore,
In FIG. 4, numeral 30 indicates an average density calculation circuit, which is connected to the output of the comparator 15 and the output of the edge detection circuit 23 (
i, j) are also included to calculate the average density. From this configuration,
Only the output from the average density calculation circuit 30 is provided, and a selector for selecting a plurality of average density calculation circuits is not required.

そこで、他の実施例では、平均濃度演算回路30には、
2値化された周辺画素データの他に注目画素のレベルと
エッジ11 e d g e ( i ,  j )を
入力して次式(7)のように演算を行う。即ち、である
。ここで、αはエッジ部であるか否かを判別するレベル
である。例えば、べ夕部分から急にハイライト部分に移
るような場所で上記処理(ハイライト部分で平均濃度算
出領域を広くとる)が行われると、エッジ部に画像の欠
けが生じてしまう。この画像の欠けを防ぐため、注目画
素がハイライト部分であると判別した場合でもエッジ部
分であった場合、通常の平均濃度算出領域を使用する。
Therefore, in another embodiment, the average concentration calculation circuit 30 includes:
In addition to the binarized peripheral pixel data, the level of the pixel of interest and the edge 11 e d g e (i, j) are input, and calculations are performed as shown in the following equation (7). That is,. Here, α is a level for determining whether or not it is an edge portion. For example, if the above process (widening the average density calculation area in the highlight part) is performed at a place where the image suddenly changes from a background part to a highlight part, the image will be missing at the edge part. In order to prevent this image from being missing, even if the pixel of interest is determined to be a highlight part, if it is an edge part, a normal average density calculation area is used.

これによって画像の欠け幅を狭《なるように抑えた視覚
的に欠けの目立たない出力画像が得られる。
As a result, it is possible to obtain an output image in which the width of the defect in the image is suppressed to be narrow and the defect is not visually noticeable.

このようにして、注目画素の濃度とは別にエッジ部で重
み付けマスクの大きさを小さくすることにより、2値化
の応答がよくなり、エッジ部での画像の欠けを起こさず
にハイライト部のドットのつながりを防止できる。
In this way, by reducing the size of the weighting mask at the edge area independently of the density of the pixel of interest, the response of binarization is improved, and the highlight area can be improved without causing image loss at the edge area. Can prevent dots from connecting.

さて、上述した2つの実施例では、複写機を例に挙げた
説明であったが、本発明の趣旨である2値化処理が他の
ファクシミリ装置等に適応可能なことは述べるまでもな
い。
Now, in the above two embodiments, the explanation was given using a copying machine as an example, but it goes without saying that the binarization processing that is the gist of the present invention can be applied to other facsimile machines and the like.

[発明の効果] 以上説明した如く、本発明によれば、階調性及び解像度
共に優れた画像を簡素で安価なハードウエア構成で得る
ことができると共に、エッジ部での画像の欠けを抑えな
がら、ハイライト部で起こるドットのつながりを防止し
てハイライト部の画質が向上した高品位な画質を得るこ
とができる。
[Effects of the Invention] As explained above, according to the present invention, an image with excellent gradation and resolution can be obtained with a simple and inexpensive hardware configuration, while suppressing image chipping at edges. , it is possible to obtain high-quality images with improved image quality in the highlight areas by preventing dot connections that occur in the highlight areas.

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

第1図は本発明の一実施例を示す画像処理装置のブロッ
ク図、 第2図は本実施例の2値化回路103の詳細な構成を示
すブロック図、 第3A図〜第3D図は本実施例の2値化方法を説明する
図、 第4図は本発明の他の実施例の2値化回路の構成を示す
ブロック図である。 図中、1.2・・・遅延RAM,3〜12,19・・・
D F/F、13,14.30・・・平均濃度演算回路
、15.18・・・比較器、16・・・セレクタ、17
・・・減算器、20・・・加算器、21・・・誤差RO
M、22・・・誤差メモリ、23・・・エッジ検出回路
、100・・・入カセンサ部、101・・・A/D変換
器、102・・・補正回路、103・・・2値化回路、
104・・・プリンタである。
FIG. 1 is a block diagram of an image processing apparatus showing an embodiment of the present invention, FIG. 2 is a block diagram showing a detailed configuration of the binarization circuit 103 of this embodiment, and FIGS. FIG. 4 is a block diagram showing the configuration of a binarization circuit according to another embodiment of the present invention. In the figure, 1.2...delay RAM, 3-12, 19...
D F/F, 13, 14.30... Average concentration calculation circuit, 15.18... Comparator, 16... Selector, 17
...Subtractor, 20...Adder, 21...Error RO
M, 22...Error memory, 23...Edge detection circuit, 100...Input sensor section, 101...A/D converter, 102...Correction circuit, 103...Binarization circuit ,
104: Printer.

Claims (4)

【特許請求の範囲】[Claims] (1)多値画像データを2値データに量子化処理する画
像処理装置において、 2値化対象の注目画素のエッジ量を検出するエッジ検出
手段と、 前記注目画素以前に既に2値化された画素の2値データ
に基づいて前記注目画素近傍の平均濃度を求める演算手
段と、 前記演算手段によつて求められた平均濃度値に基づいて
前記注目画素の多値画像データを2値化する2値化手段
と、 前記エッジ検出手段によつて検出されたエッジ量に基づ
いて、前記2値化手段によつて注目画素を2値化した際
に発生する2値化誤差を、前記注目画素の周辺の2値化
前の画素の多値画像データに分配する分配手段とを備え
、 前記分配手段によつて前記2値化誤差を分配することに
よつて濃度を保存することを特徴とする画像処理装置。
(1) An image processing device that quantizes multivalued image data into binary data, comprising an edge detection means for detecting an edge amount of a pixel of interest to be binarized, and a pixel of interest that has already been binarized before the pixel of interest. a calculation means for calculating an average density in the vicinity of the pixel of interest based on binary data of the pixel; and 2 for binarizing the multivalued image data of the pixel of interest based on the average density value found by the calculation means. and a binarization error generated when the pixel of interest is binarized by the binarization means, based on the edge amount detected by the edge detection means, of the pixel of interest. and distribution means for distributing to multivalued image data of surrounding pixels before binarization, and preserving density by distributing the binarization error by the distribution means. Processing equipment.
(2)前記演算手段は、複数個の異なる大きさの重みマ
スクを有し、前記注目画素以前に既に2値化された画素
の2値データを前記複数の重みマスクに基づいてマスク
するマスク手段と、前記マスク手段によつて得られた重
みマスクごとの結果に基づいて平均濃度を算出する算出
手段と、該算出手段で算出された複数の平均濃度の中か
ら1つを選択する選択手段とを含むことを特徴とする請
求項第1項記載の画像処理装置。
(2) The calculation means has a plurality of weight masks of different sizes, and a masking means for masking binary data of pixels that have already been binarized before the pixel of interest based on the plurality of weight masks. a calculating means for calculating an average density based on the results for each weighted mask obtained by the masking means; and a selecting means for selecting one of the plurality of average densities calculated by the calculating means. The image processing apparatus according to claim 1, characterized in that the image processing apparatus includes:
(3)前記選択手段は、選択時に注目画素のレベルを用
いることを特徴とする請求項第2項記載の画像処理装置
(3) The image processing apparatus according to claim 2, wherein the selection means uses the level of the pixel of interest at the time of selection.
(4)前記平均濃度値は閾値として使用されることを特
徴とする請求項第1項記載の画像処理装置。
(4) The image processing apparatus according to claim 1, wherein the average density value is used as a threshold value.
JP2012461A 1990-01-24 1990-01-24 Image processor Pending JPH03218175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012461A JPH03218175A (en) 1990-01-24 1990-01-24 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012461A JPH03218175A (en) 1990-01-24 1990-01-24 Image processor

Publications (1)

Publication Number Publication Date
JPH03218175A true JPH03218175A (en) 1991-09-25

Family

ID=11805995

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012461A Pending JPH03218175A (en) 1990-01-24 1990-01-24 Image processor

Country Status (1)

Country Link
JP (1) JPH03218175A (en)

Similar Documents

Publication Publication Date Title
EP0781034B1 (en) Image processing apparatus and method
JP3700357B2 (en) Image processing device
EP0382581B1 (en) Image processing apparatus
JP2683085B2 (en) Image processing device
JPH01115271A (en) Image processor
JPH03218175A (en) Image processor
JP2683084B2 (en) Image processing device
JP2810396B2 (en) Image processing device
JP2644491B2 (en) Image processing device
JP2810395B2 (en) Image processing device
JP2733314B2 (en) Image processing device
JPH0197066A (en) Picture processing method
JPH07312688A (en) Image processing device
JP2644492B2 (en) Image processing device
JPH08321949A (en) Binarization processing method for intermediate tone image
JPS5814673A (en) Gradation signal restoring system
JPH0595474A (en) Picture processor
JPH0691605B2 (en) Image processing device
JP3178077B2 (en) Binarization processing method
JPH0465974A (en) Image processor
JPH1032713A (en) Picture processor
JPH02210959A (en) Picture processor
JPH06253133A (en) Picture processing device
JPH03112269A (en) Image processor
JPH02285771A (en) Picture processing unit