JP2883146B2 - Binarization method of gradation image - Google Patents
Binarization method of gradation imageInfo
- Publication number
- JP2883146B2 JP2883146B2 JP2040620A JP4062090A JP2883146B2 JP 2883146 B2 JP2883146 B2 JP 2883146B2 JP 2040620 A JP2040620 A JP 2040620A JP 4062090 A JP4062090 A JP 4062090A JP 2883146 B2 JP2883146 B2 JP 2883146B2
- Authority
- JP
- Japan
- Prior art keywords
- error
- pixels
- binarization
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 15
- 230000002093 peripheral effect Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 14
- 238000009792 diffusion process Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 7
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000003111 delayed effect Effects 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 2
- 230000001186 cumulative effect Effects 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000002542 deteriorative effect Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000000644 propagated effect Effects 0.000 description 1
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color, Gradation (AREA)
Description
【発明の詳細な説明】 (産業上の利用分野) 本発明は、スキャナ、プリンタ、ファクシミリ、デジ
タルコピー等における多値の階調画像を二値化する画像
処理方法に関するものである。Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method for binarizing a multi-value gradation image in a scanner, a printer, a facsimile, a digital copy, or the like.
(従来の技術) 従来、画像処理において、画像の明暗を0と1に二値
化するデータ処理が行なわれている。(Prior Art) Conventionally, in image processing, data processing for binarizing the brightness of an image into 0 and 1 has been performed.
第4図は、画像処理装置の一例の概略を説明するため
のブロック図である。図中、41は画像入力装置、42は色
変換補正装置、43は鮮鋭度補正装置、44は画像二値化装
置、45は出力装置である。FIG. 4 is a block diagram schematically illustrating an example of the image processing apparatus. In the figure, 41 is an image input device, 42 is a color conversion correction device, 43 is a sharpness correction device, 44 is an image binarization device, and 45 is an output device.
画像入力装置41からの入力階調画像データは、色変換
補正装置42によって補色変換,色補正が行なわれ、鮮鋭
度補正装置43によって必要な鮮鋭度補正が施された後、
画像二値化装置44によって明度に応じた二値化データに
変換される。変換されたデータは、出力装置45、例え
ば、カラープリンタにより印字される。The input gradation image data from the image input device 41 is subjected to complementary color conversion and color correction by a color conversion correction device 42, and is subjected to necessary sharpness correction by a sharpness correction device 43.
The image is converted by the image binarizing device 44 into binarized data corresponding to the brightness. The converted data is printed by the output device 45, for example, a color printer.
このように画像処理において、階調を有する画像にお
ける画素の二値化は、それぞれの画素を0と1の間の所
望の明度を持つと仮定し、画像を行ごとに走査して、各
画素を明と暗に対応した1と0の値に二値化するもので
ある。この場合、所望の明度が、0.5以下である画素を
0,それ以外の明度を1とすると、所望の明度が0または
1である画素は、正確に0または1に二値化されるが、
0と1との間の画素は、切り捨てられ、あるいは、切り
上げられて、0または1の明度に変換されるから、中間
の明度は、実際の明度よりも明るすぎたり、あるいは、
暗すぎる値として二値化されてしまう。したがって、所
望の明度が0または1でない中間の明度の画素は、誤差
を画像中に発生させる。In this way, in image processing, binarization of pixels in an image having a gray scale assumes that each pixel has a desired lightness between 0 and 1, and scans the image line by line, Is binarized into values of 1 and 0 corresponding to light and dark. In this case, pixels whose desired brightness is 0.5 or less
Assuming that the lightness is 0 or 1, the pixel whose desired lightness is 0 or 1 is binarized to 0 or 1 exactly.
Pixels between 0 and 1 are truncated or rounded up and converted to a brightness of 0 or 1, so the intermediate brightness is too brighter than the actual brightness, or
It is binarized as a value that is too dark. Therefore, pixels of intermediate brightness where the desired brightness is not 0 or 1 will cause errors in the image.
フロイド(Floyd)のアルゴリズム(R.Fioyd&L.Stei
nberg:"An Adaptive Algorithm for Spatial greyscal
e",SID Symp.,Digest of Papers,p.36(1975))として
知られる誤差拡散法による二値化では、その画素で発生
した誤差をまだ走査されていない周辺のいくつかの画素
に振り分けてその明度を修正するものである。Floyd's algorithm (R.Fioyd & L.Stei
nberg: "An Adaptive Algorithm for Spatial greyscal
e ", SID Symp., Digest of Papers, p.36 (1975)), the error diffusion method binarizes and distributes the error generated at that pixel to some surrounding pixels that have not been scanned yet. To correct the brightness.
第5図は、その一例の説明図である。(A)図におい
て、各正方形は1つの画素である。クロスハッチングを
施した画素52は、処理中の画素であり、ハッチングを施
した画素53は、二値化処理済みの画素である。その他の
ハッチングのない画素54は、未処理の画素である。主走
査の方向である各走査線における画素の処理の方向は、
矢印51に示すように、すべての走査線において、左から
右へ順に行なわれる。処理中の画素52における二値化デ
ータとの差である誤差は、例えば、同図(B)に示すよ
うにA〜Dの重み係数に応じて4つの画素に分配され
る。分配先は、同図(A)に図示したように、次に処理
される画素Aに誤差の7/16を、次の走査線における前後
に位置する画素B〜Dに、それぞれ1/16,5/16,3/16を分
配する。なお、Kとして図示した位置は、K点と呼ばれ
る方向へのテクスチャーシフトを示すものである。FIG. 5 is an explanatory diagram of one example. In the figure, each square is one pixel. The cross-hatched pixels 52 are pixels under processing, and the hatched pixels 53 are binarized pixels. The other non-hatched pixels 54 are unprocessed pixels. The direction of pixel processing in each scanning line, which is the direction of main scanning, is
As shown by an arrow 51, the scanning is performed sequentially from left to right on all the scanning lines. An error, which is a difference from the binarized data in the pixel 52 being processed, is distributed to four pixels according to the weighting factors A to D, for example, as shown in FIG. As shown in FIG. 7A, the distribution destination is 7/16 of the error for the pixel A to be processed next, and 1/16, for the pixels B to D located before and after the next scanning line, respectively. 5/16 and 3/16 are distributed. Note that the position shown as K indicates a texture shift in a direction called a K point.
第3図は、上述した誤差拡散法を具体化する一例の概
略構成図である。図中、1は画像入力、2は入力バッフ
ァメモリ、3は加算器、4は閾値設定回路、5は比較
器、6は演算器、7は重み付け回路、8は誤差バッファ
メモリ、9は出力バッファメモリ、10は二値化出力であ
る。FIG. 3 is a schematic configuration diagram of an example that embodies the above-described error diffusion method. In the figure, 1 is an image input, 2 is an input buffer memory, 3 is an adder, 4 is a threshold setting circuit, 5 is a comparator, 6 is a calculator, 7 is a weighting circuit, 8 is an error buffer memory, and 9 is an output buffer. The memory 10 is a binarized output.
画像入力1は、入力バッファメモリ2に記憶され、1
画素づつ読み出される。加算器3を経て、比較器5にお
いて閾値設定回路4からの一定の閾値、例えば、明度の
相当値である0.5と比較され、その大小に応じて、0ま
たは1に二値化され、出力バッファメモリ9に蓄えられ
る。また、比較器5において入力されたデータと閾値と
の差は、演算器6で演算され、得られた誤差に基づいて
重み付け回路7で第5図の重み係数による演算が行なわ
れ、誤差バッファメモリ7に記憶される。誤差バッファ
メモリ7に記憶された誤差データは、未処理の画素に対
して累計値として記憶され、加算器3に導入される画素
に対応して分配される。したがって、二値化出力10に
は、分配された誤差データを加味した値に基づく二値化
データが記憶される。Image input 1 is stored in input buffer memory 2 and
It is read out pixel by pixel. After passing through the adder 3, the comparator 5 compares the threshold value with a constant threshold value from the threshold value setting circuit 4, for example, 0.5, which is a lightness equivalent value, and binarizes it to 0 or 1 according to the magnitude thereof. Stored in the memory 9. The difference between the data input in the comparator 5 and the threshold value is calculated in the calculator 6, and based on the obtained error, the weighting circuit 7 calculates the weight coefficient shown in FIG. 7 is stored. The error data stored in the error buffer memory 7 is stored as a cumulative value for unprocessed pixels, and is distributed according to the pixels introduced into the adder 3. Therefore, the binarized output 10 stores binarized data based on a value that takes into account the distributed error data.
このアルゴリズムの問題点は、K点と呼ばれる方向へ
のテクスチャーシフトやヒストリー効果と呼ばれる現象
による線状のノイズが発生し、このノイズのために、全
体的な二値化の性能としては最も良いものとされていな
がら、応用される例が少なかったのである。The problem with this algorithm is that texture shifts in the direction called the K point and linear noise due to a phenomenon called the history effect occur, and due to this noise, the best binarization performance is achieved. However, there were few examples of application.
また、数ライン分の誤差バッファ8を持たねばなら
ず、また計算量も多いため、装置が複雑・高価であっ
た。Further, the error buffer 8 for several lines must be provided, and the amount of calculation is large, so that the apparatus is complicated and expensive.
装置を簡単化するには、第6図に示すように、誤差を
1次元の方向のみに拡散する方法が考えられる。この方
法によると、数画素分のデータのメモリー容量で済むの
で、装置は簡単化するが、第7図に示すように、ドッド
71が、処理方向と垂直方向に規則性をもって現われ易
く、縞模様が出るため、主走査方向の解像度が相当高く
ないと実用にならない問題がある。In order to simplify the apparatus, as shown in FIG. 6, a method of diffusing an error only in a one-dimensional direction can be considered. According to this method, a memory capacity of data for several pixels is sufficient, so that the apparatus is simplified. However, as shown in FIG.
However, there is a problem in that the pattern 71 is likely to appear with regularity in the direction perpendicular to the processing direction and has a stripe pattern.
(発明が解決しようとする課題) 本発明は、上述した問題点を解決するためになされた
もので、画像を劣化させることなく、処理の高速化、回
路の単純化を可能とし、高速かつ安価に構成できる二値
化方法を提供することを目的とするものである。(Problems to be Solved by the Invention) The present invention has been made in order to solve the above-described problems, and enables high-speed processing and simplification of a circuit without deteriorating an image, and is fast and inexpensive. It is an object of the present invention to provide a binarization method that can be configured as follows.
(課題を解決するための手段) 本発明は、階調を持つ画像情報の画素データを二値化
し、その画素データの二値化に伴って発生する誤差成分
を予め設定された配分比率、または、ランダムな配分比
率により周辺の未処理の画素データへ拡散分配し、その
分配された誤差の累計を加算して画素データの二値化を
行なうようにした階調画像の二値化方法において、二値
化における閾値を、ラインごとに周期的に、または、ラ
ンダムに変えるとともに、分配される誤差を、所定の画
素数ごとに、または、ランダムな画素数をもって、初期
化することを特徴とするものである。(Means for Solving the Problems) The present invention binarizes pixel data of image information having a gradation, and distributes an error component generated with the binarization of the pixel data to a predetermined distribution ratio, or In a method of binarizing a grayscale image, the pixel data is binarized by diffusing and distributing to peripheral unprocessed pixel data by a random distribution ratio, and adding up the sum of the distributed errors. The threshold value in the binarization is changed periodically or randomly for each line, and the error to be distributed is initialized for each predetermined number of pixels or with a random number of pixels. Things.
(作用) 階調を持つ画像情報の画素データを二値化し、その画
素データの二値化に伴って発生する誤差成分を予め設定
された配分比率、または、ランダムな配分比率により周
辺の未処理の画素データへ拡散分配し、その分配された
誤差の累計を加算して画素データの二値化を行なうよう
にした階調画像の二値化方法において、二値化における
閾値を変えると、同一レベルの画像データであっても、
二値化されたドットの位置が変化する。したがって、閾
値をラインごとに周期的に、または、ランダムに変える
ことにより、ドットの現われる位置が分散でき、簡単な
誤差の配分係数および配分先を用いても品質のよい画像
を得ることができる。また、分配された誤差を、所定の
画素数ごとに、または、ランダムな画素数をもって、初
期化することにより、誤差の蓄積による閾値変化の効果
を効果的な初期状態に保つことができる。(Operation) The pixel data of the image information having a gradation is binarized, and an error component generated due to the binarization of the pixel data is processed in a peripheral unprocessed state by a preset distribution ratio or a random distribution ratio. In a binarization method of a gradation image in which pixel data is diffused and distributed, and a cumulative total of the distributed errors is added to perform binarization of the pixel data, if a threshold value in the binarization is changed, Even at the level of image data,
The position of the binarized dot changes. Therefore, by changing the threshold periodically or randomly for each line, the positions where dots appear can be dispersed, and a high-quality image can be obtained even if a simple error distribution coefficient and distribution destination are used. Also, by initializing the distributed error for each predetermined number of pixels or with a random number of pixels, the effect of threshold change due to accumulation of errors can be maintained in an effective initial state.
(実施例) 第1図は、上述した本発明の誤差拡散法の一実施例に
おける閾値を変化させる方法を具体化する概略構成図で
ある。第3図と同様な部分は、同じ符号を付して説明を
省略する。第3図と相違する点は、誤差バッファ8を設
けずに、遅延回路11を用いた点と、閾値設定回路4を制
御するための閾値メモリ12,ライン同期制御回路13を設
けた点である。(Embodiment) FIG. 1 is a schematic configuration diagram that embodies a method of changing a threshold value in an embodiment of the above-described error diffusion method of the present invention. Parts similar to those in FIG. 3 are denoted by the same reference numerals, and description thereof is omitted. 3 in that a delay circuit 11 is used without providing the error buffer 8 and that a threshold memory 12 and a line synchronization control circuit 13 for controlling the threshold setting circuit 4 are provided. .
遅延回路11を用いた理由は、誤差の配分先を、第6図
のように、主走査の方向と同じ方向、つまり、主走査の
ライン上とし、配分先は、次の画素のみとした。つま
り、第6図でいえば、Aを1としたことによる。これに
より、誤差データを遅延して、重み付け回路7により重
み係数を付加すればよいので、誤差バッファメモリを用
いる必要はなく、回路と演算は、きわめて簡単なものと
なる。The reason for using the delay circuit 11 is that the error is distributed to the same direction as the main scanning direction, that is, on the main scanning line, as shown in FIG. 6, and the distribution destination is only the next pixel. That is, in FIG. 6, A is set to 1. As a result, the error data can be delayed and the weighting factor can be added by the weighting circuit 7, so that there is no need to use an error buffer memory, and the circuit and the operation become extremely simple.
閾値設定回路4を制御するための閾値メモリ12,ライ
ン同期制御回路13について二値化方法とともに説明す
る。入力バッファ2にいったん蓄えられた入力画像デー
タは、処理済み画素の誤差データを加算器3で加算され
たのち、閾値と比較される。閾値は、ライン同期制御回
路13によってラインごとに閾値メモリ12より読み出され
設定される。比較器5により二値化されたバイナリデー
タは出力バッファ9へ送られ、二値化出力となる。この
とき、比較器5からの二値化された出力を二値化前の信
号から減じた信号がこの画素での誤差となるのである。
演算器6により計算された誤差は、遅延回路11により1
画素分遅延されたのち、重み付け回路7により所定の重
み係数を乗じられ、加算器2−3に入力される。このと
き、誤差は1画素分遅延されているので、加算器3で
は、次の画素が、単に加えられることになる。A threshold memory 12 for controlling the threshold setting circuit 4 and a line synchronization control circuit 13 will be described together with a binarization method. The input image data once stored in the input buffer 2 is added to the error data of the processed pixels by the adder 3, and is compared with a threshold. The threshold is read from the threshold memory 12 for each line by the line synchronization control circuit 13 and set. The binary data binarized by the comparator 5 is sent to the output buffer 9 and becomes a binarized output. At this time, a signal obtained by subtracting the binarized output from the comparator 5 from the signal before binarization becomes an error in this pixel.
The error calculated by the arithmetic unit 6 is 1 by the delay circuit 11.
After being delayed by the number of pixels, it is multiplied by a predetermined weighting coefficient by the weighting circuit 7 and input to the adder 2-3. At this time, since the error is delayed by one pixel, the adder 3 simply adds the next pixel.
第1図の二値化装置の動作を、第9図および第10図に
よって、さらに詳しく説明する。The operation of the binarization device shown in FIG. 1 will be described in more detail with reference to FIGS. 9 and 10.
第9図は、閾値が1/2に設定されているラインに、濃
度が1/4のハーフトーンの画素・・・が入力され
た場合の画素データ、誤差データおよび二値化された印
字データを模式的に表現した図である。画素では、入
力値1/4は、閾値1/2を越えないので印字されない。画
素での誤差は、入力値の1/4に対して出力は0(印字さ
れない)であるから、 1/4−0=1/4 が、そのまま画素に渡される。画素では、前の誤差
の1/4に、入力の1/4が加えられて 1/4+1/4=1/2 となり、これを閾値の1/2と比較し(等しいときは越え
たものとする。)、出力は1となり、印字される。この
ときの誤差は、入力の1/2に対して、印字したので、出
力は、1であり、 1/2−1=−1/2 となる。画素からは、前の誤差−1/2に入力の1/4ずつ
が加えられて行き、以下、−1/4,0,1/4,と誤差が伝搬さ
れ、画素において、また1/2となり印字される。以
下、同様に繰り返して,,,・・・と4画素ごと
に1個印字されることになり、濃度1/4が表現される。FIG. 9 shows pixel data, error data, and binarized print data when halftone pixels with a density of 1/4 are input to a line where the threshold is set to 1/2. FIG. 4 is a diagram schematically representing In pixels, the input value 1/4 is not printed because it does not exceed the threshold value 1/2. As for the error at the pixel, the output is 0 (not printed) for 1/4 of the input value, so 1 / 4-0 = 1/4 is passed to the pixel as it is. At the pixel, 1/4 of the input is added to 1/4 of the previous error, giving 1/4 + 1/4 = 1/2, which is compared to 1/2 the threshold (if equal, the excess ), The output becomes 1 and it is printed. At this time, the error was printed for 1/2 of the input, so the output was 1, and 1 / 2−1 = −1 / 2. From the pixel, 1/4 of the input is added to the previous error -1/2, and thereafter, the error is propagated as -1 / 4,0,1 / 4, and at the pixel, Is printed. ..,..., One pixel is printed every four pixels, and a density of 1/4 is expressed.
ここで、もしも次のラインも同じ閾値を処理したする
と、印字位置は同じものとなり、第7図に示す縦縞の生
じた従来方法になることが容易に理解できるであろう。
この実施例では、次のラインにおいては、閾値レベルを
変える。しかし、必ずしも、1ラインごとに変える必要
はない。Here, if the same threshold value is processed for the next line, the printing position becomes the same, and it can be easily understood that the conventional method having vertical stripes shown in FIG. 7 is used.
In this embodiment, the threshold level is changed in the next line. However, it is not always necessary to change for each line.
第10図は、閾値を1に設定した次のラインに、第9図
と同様、濃度が1/4のハーフトーンが入力された場合の
画素データ、誤差データおよび印字データを模式的に表
現した図である。画素から画素までは、誤差が1/4
づつ蓄積されて行き、画素で誤差3/4に対して入力が1
/4であり、 3/4+1/4=1 となり、閾値1を越えるので印字される。このとき生じ
る誤差は、入力1に対して出力1なので、 1−1=0 となり、画素に渡される誤差は0である。したがっ
て、画素以降は、画素から画素までの動作の繰り
返しとなり、4,8,12,16,・・・と、4画素ごとに1個印
字されることになり、濃度1/4が表現される。FIG. 10 schematically shows pixel data, error data, and print data when a halftone having a density of 1/4 is input to the next line where the threshold value is set to 1, as in FIG. FIG. 1/4 error from pixel to pixel
Accumulates one by one and the input is 1
/ 4, 3/4 + 1/4 = 1, and exceeds threshold 1, so it is printed. Since the error generated at this time is output 1 with respect to input 1, 1-1 = 0, and the error passed to the pixel is 0. Therefore, after the pixel, the operation from the pixel to the pixel is repeated, and one is printed for every four pixels, such as 4, 8, 12, 16, ..., and a density of 1/4 is expressed. .
このように各ラインの閾値を1/2,1,1/2,1,と繰り返す
ことにより、ハーフトーン印字出力は、第8図に示すよ
うになり、従来例の第7図の縦縞を生じることなく二値
化ができる。By repeating the threshold value of each line as 1/2, 1, 1/2, 1, in this manner, the halftone print output becomes as shown in FIG. 8, and the vertical stripes shown in FIG. Binarization can be performed without any problem
第11図は、ラインごとに閾値を変化させる場合のパタ
ーンを例示したものである。(A)図は、2ラインを周
期として繰り返す場合、(B)図は、4ラインを周期と
して繰り返す場合、(C)図は、8ラインを周期として
繰り返す場合、(D)図は、16ラインを周期として繰り
返す場合である。周期は、低濃度のハーフトーンを一様
に印字するためにはある程度大きいほうがよく、一般的
には4〜8ライン以上が望ましい。FIG. 11 shows an example of a pattern when the threshold value is changed for each line. (A) shows a case where two lines are repeated as a cycle, (B) shows a case where four lines are repeated, (C) shows a case where eight lines are repeated, and (D) shows 16 lines. Is a cycle. The period is preferably large to some extent in order to uniformly print low-density halftones, and generally, 4 to 8 lines or more is desirable.
ラインごとの閾値変化を周期的ではなく、ランダムに
することもできる。ランダムにすることにより、周期的
な固定した空間周波数成分を持つ画像ノイズをさらに目
につき難くできる。The threshold value change for each line may be random instead of periodic. By making them random, image noise having a periodically fixed spatial frequency component can be made more inconspicuous.
第2図は、本発明の誤差拡散法の実施例を具体化する
概略構成図である。第1図と同様な部分は、同じ符号を
付して説明を省略する。FIG. 2 is a schematic configuration diagram that embodies an embodiment of the error diffusion method of the present invention. Parts similar to those in FIG. 1 are denoted by the same reference numerals, and description thereof is omitted.
この実施例においては、第1図の重み付け回路7の出
力側に、初期化制御回路15によって制御される初期化回
路14を設けたものである。第1図の装置では、処理の初
期、すなわち、ラインの初めの方では問題はないが、処
理が進むにしたがい、誤差が蓄積されていくと、閾値を
変化させた効果が薄れてきて、徐々に縦縞が生じてくる
ことがある。そこで、この実施例においては、例えば、
数画素ごとに、蓄積された誤差を0にクリアする。つま
り、誤差が蓄積されていない初期状態に戻す初期化を行
なう。これにより、閾地変化の効果を、効果的な初期状
態に保つことができる。In this embodiment, an initialization circuit 14 controlled by an initialization control circuit 15 is provided on the output side of the weighting circuit 7 in FIG. In the apparatus shown in FIG. 1, there is no problem at the beginning of the process, that is, at the beginning of the line. However, as the process progresses, as the error accumulates, the effect of changing the threshold value becomes weaker, and gradually. Vertical stripes may occur. Therefore, in this embodiment, for example,
The accumulated error is cleared to 0 every several pixels. That is, initialization is performed to return to an initial state where no error is accumulated. Thereby, the effect of the threshold value change can be maintained in an effective initial state.
初期化制御回路15は、何画素ごとに初期化するかを制
御するものであり、この初期化周期は、入力階調数程度
が目安であるが、ラインごとの閾値変化を周期的にする
場合は、その周期を目安とし、望ましくはそれ以上に設
定すると良い。The initialization control circuit 15 controls how many pixels are to be initialized. This initialization cycle is about the number of input gradations, but the threshold value of each line is periodically changed. Is set as a guideline, and it is desirable to set the period more than that.
本発明により誤差の配分先を簡単化し、ライン方向の
みとできるので、高価な誤差バッファの代わりに遅延回
路で二値化装置を構成することができる。According to the present invention, the error distribution destination can be simplified and can be set only in the line direction, so that the binarizing device can be constituted by a delay circuit instead of an expensive error buffer.
なお、上述した実施例においては、誤差の配分先を同
じラインとしたが、第5図で示したような異なるライン
へも配分するようにしてもよい。この場合でも、配分
先、および、配分係数は、従来の方法に比して、簡単な
ものを用いても十分な効果を得ることができる。In the above-described embodiment, the error is distributed to the same line. However, the error may be distributed to different lines as shown in FIG. Even in this case, a sufficient effect can be obtained even if the allocation destination and the allocation coefficient are simple compared to the conventional method.
(発明の効果) 以上の説明から明らかなように、本発明によれば、処
理の高速化、回路の単純化を可能とし、特に、ハーフト
ーン画像を劣化させることなく、高速かつ安価に構成で
きる二値化方法を提供することができる効果がある。(Effects of the Invention) As is clear from the above description, according to the present invention, it is possible to increase the processing speed and simplify the circuit. There is an effect that a binarization method can be provided.
第1図は、本発明の誤差拡散法の一実施例における閾値
を変化させる方法を具体化する概略構成図、第2図は、
本発明の誤差拡散法の実施例を具体化する概略構成図、
第3図は、従来の誤差拡散法の概略構成図、第4図は、
画像処理装置の概略を説明するためのブロック図、第5
図,第6図は重み係数の説明図、第7図,第8図は、印
字ドットの一例の説明図、第9図,第10図は、閾値を変
えた場合の二値化動作の説明図、第11図は、ラインごと
に閾値を変化させる場合のパターンの説明図である。 1……画像入力、2……入力バッファメモリ、3……加
算器、4……閾値設定回路、5……比較器、6……演算
器、7……重み付け回路、8……誤差バッファメモリ、
9……出力バッファメモリ、10……二値化出力、11……
遅延回路、12……閾値メモリ、13……ライン同期制御回
路、14……初期化回路、15……初期化制御回路。FIG. 1 is a schematic configuration diagram that embodies a method of changing a threshold value in one embodiment of the error diffusion method of the present invention, and FIG.
Schematic configuration diagram embodying an embodiment of the error diffusion method of the present invention,
FIG. 3 is a schematic configuration diagram of a conventional error diffusion method, and FIG.
5 is a block diagram for explaining an outline of the image processing apparatus, and FIG.
FIGS. 6 and 7 are explanatory diagrams of weighting factors, FIGS. 7 and 8 are explanatory diagrams of an example of a print dot, and FIGS. 9 and 10 are explanatory diagrams of a binarization operation when a threshold value is changed. FIG. 11 is an explanatory diagram of a pattern when the threshold value is changed for each line. 1 image input, 2 input buffer memory, 3 adder, 4 threshold setting circuit, 5 comparator, 6 arithmetic unit, 7 weighting circuit, 8 error buffer memory ,
9 ... output buffer memory, 10 ... binarized output, 11 ...
Delay circuit 12, threshold memory, 13 line synchronization control circuit, 14 initialization circuit, 15 initialization control circuit.
Claims (1)
し、その画素データの二値化に伴って発生する誤差成分
を予め設定された配分比率、または、ランダムな配分比
率により周辺の未処理の画素データへ拡散分配し、その
分配された誤差の累計を加算して画素データの二値化を
行なうようにした階調画像の二値化方法において、二値
化における閾値を、ラインごとに周期的に、または、ラ
ンダムに変えるとともに、分配される誤差を、所定の画
素数ごとに、または、ランダムな画素数をもって、初期
化することを特徴とする階調画像の二値化方法。1. A method according to claim 1, wherein pixel data of image information having a gradation is binarized, and an error component generated in accordance with the binarization of the pixel data is divided into peripheral components by a preset distribution ratio or a random distribution ratio. In a binarization method of a grayscale image in which pixel data is diffused and distributed to unprocessed pixel data, and a total of the distributed errors is added to perform binarization of the pixel data, a threshold in the binarization is set to a line A binarization method of a gradation image, wherein the error to be distributed is changed periodically or randomly, and an error to be distributed is initialized every predetermined number of pixels or with a random number of pixels. .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2040620A JP2883146B2 (en) | 1990-02-21 | 1990-02-21 | Binarization method of gradation image |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2040620A JP2883146B2 (en) | 1990-02-21 | 1990-02-21 | Binarization method of gradation image |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03243062A JPH03243062A (en) | 1991-10-30 |
| JP2883146B2 true JP2883146B2 (en) | 1999-04-19 |
Family
ID=12585575
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2040620A Expired - Fee Related JP2883146B2 (en) | 1990-02-21 | 1990-02-21 | Binarization method of gradation image |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2883146B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4765797B2 (en) * | 2006-07-07 | 2011-09-07 | 富士ゼロックス株式会社 | Image forming apparatus and transfer apparatus |
-
1990
- 1990-02-21 JP JP2040620A patent/JP2883146B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH03243062A (en) | 1991-10-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1298916B1 (en) | Rank-order error diffusion image processing | |
| EP0659012B1 (en) | Method for quantization of gray level pixel data with extended distribution set | |
| US5130823A (en) | Error diffusion system | |
| EP0545734A2 (en) | Halftoning with error feedback and image dependent enhancement | |
| EP0781034B1 (en) | Image processing apparatus and method | |
| US5208684A (en) | Half-tone image processing system | |
| US5157741A (en) | Image processing method and apparatus for out-putting dot-processed data with suppression of false contours and other noise | |
| US6307647B1 (en) | Digital halftoning with error diffusion | |
| EP0837598B1 (en) | A method of halftoning grey value signals of pixels of an image and image reproduction apparatus for reproducing images | |
| US6134355A (en) | Binarization using a local average, and using error diffusion | |
| JP2883146B2 (en) | Binarization method of gradation image | |
| EP0382581B1 (en) | Image processing apparatus | |
| JP2801195B2 (en) | Image processing device | |
| JPH0738767A (en) | Image binarization processor | |
| JP2900907B2 (en) | Image processing device | |
| JP3124589B2 (en) | Image processing device | |
| JP2000270210A (en) | Image processing device | |
| JPH06339013A (en) | Binarizing method and device for multilevel image | |
| JP3070128B2 (en) | Method and apparatus for binarizing a gradation image | |
| JPH08321949A (en) | Binarization processing method for intermediate tone image | |
| KR100547102B1 (en) | Adaptive Error Diffusion Method Based on Black Pixel Spacing | |
| JPH0197066A (en) | Image processing method | |
| JP2644492B2 (en) | Image processing device | |
| JPH06225124A (en) | Method and device for binarizing gradation picture | |
| JPH03243063A (en) | Method for binarizing multilevel image |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |