JPH08116443A - Image processing unit - Google Patents

Image processing unit

Info

Publication number
JPH08116443A
JPH08116443A JP6252360A JP25236094A JPH08116443A JP H08116443 A JPH08116443 A JP H08116443A JP 6252360 A JP6252360 A JP 6252360A JP 25236094 A JP25236094 A JP 25236094A JP H08116443 A JPH08116443 A JP H08116443A
Authority
JP
Japan
Prior art keywords
density
pixel
error
weighting coefficient
binarization
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
JP6252360A
Other languages
Japanese (ja)
Inventor
Mayumi Nomura
まゆみ 野村
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP6252360A priority Critical patent/JPH08116443A/en
Publication of JPH08116443A publication Critical patent/JPH08116443A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To prevent appearance of a boundary in an area of the same input density in the image processing unit binarizing a halftone image to generate image data of pseudo halftone. CONSTITUTION: An image processing circuit 1 is made up of an original image storage device 3 storing part of halftone original image information, a RAM 5 storing each calculation result, plural weight coefficient matrices M1, M2,... a ROM 7 storing a threshold level T or the like, a CPU 9 to conduct various image processing, an output image storage device 11 storing data after error diffusion processing, and a random number generating circuit 12. The halftone image data are binarized while being subjected to binarized error distribution through the use of a weight coefficient matrix determined by random numbers generated by the random number generating circuit 12 for respective picture elements.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置に関し、更
に詳細には、中間調画像を2値化して疑似中間調の画像
データを作成する機能を備えた、たとえば、ディジタル
式の電子写真複写機や、熱転写式あるいはインクジェッ
ト式のプリンタ等における画像処理装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly, to a digital electrophotographic copying machine having a function of binarizing a halftone image to generate pseudo halftone image data. The present invention relates to an image processing apparatus in a machine, a thermal transfer type or an inkjet type printer, or the like.

【0002】[0002]

【従来の技術】従来、中間調画像を2値化して疑似中間
調の画像を作成する場合の手段としては、閾値のマトリ
クス(ディザマトリクス)テーブルに従って画像を2値
化していく組織的ディザ法等の各種ディザ法が広く用い
られている。しかしながら、これら従来の方式は、階調
再現性を良くするためにはマトリクステーブルを大きく
する必要があり、高解像度を得るためにはマトリクステ
ーブルを小さくしなければならないという矛盾があるた
め、階調再現性と高解像度との両立が困難であった。
2. Description of the Related Art Conventionally, as a means for binarizing a halftone image to create a pseudo halftone image, a systematic dither method for binarizing the image according to a threshold matrix (dither matrix) table, etc. The various dither methods are widely used. However, these conventional methods have a contradiction that the matrix table needs to be large in order to improve the gradation reproducibility, and the matrix table needs to be small in order to obtain high resolution. It was difficult to achieve both reproducibility and high resolution.

【0003】また、これとは別に階調再現性と高解像度
とが両立する方法として、誤差拡散法があり、各種従来
法の中では、比較的良い評価が与えられている。誤差拡
散法とは、中間調の画素を2値化する際に生じる、実際
の濃度と2値化した値との誤差を周辺画素に分配してそ
の濃度を補正し、その補正後の濃度を所定閾値にて判定
して、2値の値のいずれかに決定する処理である。
In addition to the above, there is an error diffusion method as a method for achieving both gradation reproducibility and high resolution, which is given a relatively good evaluation among various conventional methods. The error diffusion method distributes the error between the actual density and the binarized value, which occurs when binarizing a halftone pixel, to the peripheral pixels, corrects the density, and This is a process of making a determination based on a predetermined threshold value and determining one of two values.

【0004】以下の説明において、各画素の入力濃度
は、0〜255の整数値をとり、出力濃度は0または2
55であるとする。全体が同じ入力濃度である均一濃度
領域Aでは、2値化処理後には、出力濃度の分布が全域
で同一となる。例えば、入力濃度が128の均一濃度領
域Bについて考える。領域Bにおいては、出力濃度が0
の画素と出力濃度が255の画素の割合が全域でほぼ5
0%ずつとなる。
In the following description, the input density of each pixel takes an integer value from 0 to 255, and the output density is 0 or 2.
Let's say it is 55. In the uniform density area A where the input density is the same throughout, the distribution of the output density is the same throughout the binarization process. For example, consider a uniform density region B having an input density of 128. In area B, the output density is 0
The ratio of pixels with output density of 255 is almost 5 over the entire area.
It will be 0% each.

【0005】[0005]

【発明が解決しようとする課題】しかし、このように2
種類の出力値が全域で均一に分布している領域でも、誤
差拡散法による2値化処理において、周辺画素から分配
される2値化誤差の影響により、2つの出力値の配置の
パターンが変ってしまうことがある。
However, in this way,
Even in an area where the output values of various types are evenly distributed over the entire area, the binarization processing by the error diffusion method changes the arrangement pattern of the two output values due to the effect of the binarization error distributed from the peripheral pixels. It may happen.

【0006】例えば、前記均一濃度領域Bにおいては、
図4(a)のように出力濃度が0の画素(白画素で表
す)と、出力濃度が255の画素(黒画素で表す)が交
互に現れるパターンB01と、図4(b)のように出力濃
度が0の画素と出力濃度が255の画素がランダムに配
置されるパターンB02が存在する。このため、従来の誤
差拡散法では、均一な入力濃度を持つ領域であるのに、
上で述べたパターンが変化するところで疑似的な境界が
発生してしまうという問題が生じた。
For example, in the uniform density region B,
A pattern B01 in which pixels having an output density of 0 (represented by white pixels) and pixels having an output density of 255 (represented by black pixels) appear alternately as shown in FIG. 4A, and as shown in FIG. There is a pattern B02 in which pixels having an output density of 0 and pixels having an output density of 255 are randomly arranged. Therefore, in the conventional error diffusion method, even though the area has a uniform input density,
There is a problem that a pseudo boundary is generated where the pattern described above changes.

【0007】本発明は、上述した問題点を解決するため
になされたものであり、分配される2値化誤差に関わら
ず、境界が発生することのない、より好ましい疑似中間
調画像を作成できる画像処理装置を提供することを目的
とする。
The present invention has been made in order to solve the above-mentioned problems, and it is possible to create a more preferable pseudo-halftone image in which a boundary does not occur regardless of the distributed binarization error. An object is to provide an image processing device.

【0008】[0008]

【課題を解決するための手段】請求項1記載の発明は、
中間調画像を2値化して疑似中間調の画像データを作成
する画像処理装置において、上記中間調画像の各画素の
濃度を誤差拡散法により2値化する2値化処理手段と、
上記各画素毎に、複数備えられた重み付け係数マトリク
スからランダムに選択して、上記誤差拡散処理の誤差分
配用の重み付け係数マトリクスとして設定する係数マト
リクス設定手段と、を備えたことを特徴とする画像処理
装置である。
According to the first aspect of the present invention,
In an image processing device for binarizing a halftone image to create pseudo halftone image data, a binarization processing means for binarizing the density of each pixel of the halftone image by an error diffusion method,
An image including a coefficient matrix setting unit that randomly selects a plurality of weighting coefficient matrices provided for each pixel and sets the weighting coefficient matrix for error distribution in the error diffusion processing. It is a processing device.

【0009】請求項2記載の発明は、上記2値化処理手
段は、周辺画素から分配された2値化誤差和により上記
中間調画像の各画素の濃度を補正して補正入力濃度を求
める補正入力濃度演算手段と、上記補正入力濃度演算手
段によって求められた補正入力濃度と閾値とを比較して
各画素の出力濃度を決定する出力濃度決定手段と、上記
出力濃度決定手段により決定された出力濃度と上記補正
入力濃度演算手段により求められた補正入力濃度とから
各画素で発生した2値化誤差を演算する2値化誤差演算
手段と、上記2値化誤差を上記重み付け係数マトリクス
に基づいて重み付けして周辺画素に分配する2値化誤差
分配手段と、を備えたことを特徴とする請求項1記載の
画像処理装置である。
According to a second aspect of the present invention, the binarization processing means corrects the density of each pixel of the halftone image by the sum of binarization errors distributed from peripheral pixels to obtain a corrected input density. Input density calculation means, output density determination means for comparing the corrected input density obtained by the corrected input density calculation means with a threshold value to determine the output density of each pixel, and the output determined by the output density determination means. Based on the weighting coefficient matrix, the binarization error computing means for computing the binarization error generated in each pixel from the density and the correction input density calculated by the correction input density computing means, and the binarization error based on the weighting coefficient matrix. The image processing apparatus according to claim 1, further comprising: a binarization error distribution unit that weights and distributes to peripheral pixels.

【0010】請求項3記載の発明は、上記係数マトリク
ス設定手段は、乱数発生手段と、上記各画素毎に、上記
乱数発生手段により発生した乱数に基づいて、複数備え
られた重み付け係数マトリクスから選択して、上記誤差
拡散処理の誤差分配用の重み付け係数マトリクスとして
設定する重み付け係数マトリクス選択手段と、を備えた
ことを特徴とする請求項1または2記載の画像処理装置
である。
According to a third aspect of the present invention, the coefficient matrix setting means selects a random number generating means and a plurality of weighting coefficient matrices provided for each pixel on the basis of the random number generated by the random number generating means. The image processing apparatus according to claim 1 or 2, further comprising: a weighting coefficient matrix selecting unit which is set as a weighting coefficient matrix for error distribution in the error diffusion processing.

【0011】[0011]

【作用及び発明の効果】請求項1記載の画像処理装置
は、その2値化処理手段が上記中間調画像の各画素の濃
度を誤差拡散法により2値化する。一方、係数マトリク
ス設定手段が、上記各画素毎に、複数備えられた重み付
け係数マトリクスからランダムに選択して、上記誤差拡
散処理の誤差分配用の重み付け係数マトリクスとして設
定する。
In the image processing apparatus according to the first aspect, the binarization processing means binarizes the density of each pixel of the halftone image by the error diffusion method. On the other hand, the coefficient matrix setting means randomly selects a plurality of weighting coefficient matrices provided for each pixel, and sets the weighting coefficient matrix for error distribution in the error diffusion processing.

【0012】異なる重み付け係数マトリクスをランダム
に設定することにより、誤差拡散法により2値化された
出力画像における出力濃度が0の画素と出力濃度が25
5の画素とがランダムに配置されることになる。このた
め、分配された2値化誤差の影響にかかわらず、均一な
入力濃度を持つ領域中に境界が発生するのを防止するこ
とができる。
By randomly setting different weighting coefficient matrices, pixels having an output density of 0 and output density of 25 in the output image binarized by the error diffusion method.
5 pixels will be randomly arranged. Therefore, regardless of the influence of the distributed binarization error, it is possible to prevent a boundary from occurring in a region having a uniform input density.

【0013】上記2値化処理手段は、例えば、補正入力
濃度演算手段が周辺画素から分配された2値化誤差和に
より上記中間調画像の各画素の濃度を補正して補正入力
濃度を求め、出力濃度決定手段が上記補正入力濃度演算
手段によって求められた補正入力濃度と閾値とを比較し
て各画素の出力濃度を決定し、2値化誤差演算手段が上
記出力濃度決定手段により決定された出力濃度と上記補
正入力濃度演算手段により求められた補正入力濃度とか
ら各画素で発生した2値化誤差を演算し、2値化誤差分
配手段が上記2値化誤差を上記重み付け係数マトリクス
に基づいて重み付けして周辺画に分配することにより実
現される。
The binarization processing means corrects the density of each pixel of the halftone image by the sum of the binarization errors distributed from the peripheral pixels by the corrected input density calculation means to obtain the corrected input density, The output density determining means compares the corrected input density calculated by the corrected input density calculating means with a threshold value to determine the output density of each pixel, and the binarization error calculating means is determined by the output density determining means. The binarization error generated in each pixel is calculated from the output density and the corrected input density calculated by the corrected input density calculation means, and the binarized error distribution means calculates the binarized error based on the weighting coefficient matrix. It is realized by weighting and distributing to peripheral images.

【0014】上記係数マトリクス設定手段は、例えば、
重み付け係数マトリクス選択手段が、上記各画素毎に、
上記乱数発生手段により発生した乱数に基づいて、複数
備えられた重み付け係数マトリクスから選択して、上記
誤差拡散処理の誤差分配用の重み付け係数マトリクスと
して設定することにより実現される。
The coefficient matrix setting means is, for example,
Weighting coefficient matrix selection means, for each pixel,
It is realized by selecting from a plurality of weighting coefficient matrices provided based on the random number generated by the random number generating means and setting it as a weighting coefficient matrix for error distribution of the error diffusion processing.

【0015】[0015]

【実施例】以下、本発明を具体化した一実施例を図面を
参照して説明する。図1は画像処理回路1を示すブロッ
ク図である。本実施例における誤差拡散処理等を行う画
像処理回路1は、コンピュータとして構成されており、
入力データに所要の演算処理を施すものである。この画
像処理回路1は、ディジタル電気信号で入力された中間
調の原画像情報の一部を記憶する原画像記憶装置(画像
メモリ)3と、各計算結果を格納するRAM5と、画像
処理プログラムや周辺画素の2値化誤差の分配に対する
複数の重み付け係数マトリクスM1,M2,…や閾値T
などが記憶されているROM7と、RAM5を用いて各
種画像処理を行うCPU9と、誤差拡散処理後のデータ
を記憶する出力画像記憶装置(画像メモリ)11と、乱
数発生回路12とにより構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the image processing circuit 1. The image processing circuit 1 that performs error diffusion processing and the like in this embodiment is configured as a computer,
The input data is subjected to required arithmetic processing. The image processing circuit 1 includes an original image storage device (image memory) 3 for storing a part of halftone original image information input by a digital electric signal, a RAM 5 for storing each calculation result, an image processing program and an image processing program. A plurality of weighting coefficient matrices M1, M2, ... For the distribution of the binarization error of the peripheral pixels, and the threshold value T
And the like, a CPU 9 for performing various kinds of image processing using the RAM 5, an output image storage device (image memory) 11 for storing data after error diffusion processing, and a random number generation circuit 12. There is.

【0016】撮像装置や既に撮影された画像データを記
憶する外部記憶装置等の画像入力手段(図示しない)か
ら入力された原画像の中間調画像データは、バス13を
介して原画像記憶装置3に記憶される。原画像データの
入力は、1画素毎でも、1ライン毎でも、また、1画面
分送られても構わない。この格納された中間調画像情報
に対して、CPU9がROM7内の画像処理プログラム
や上記マトリクス等のデータを用いて誤差拡散処理を行
う。
Halftone image data of an original image input from an image inputting means (not shown) such as an image pickup device or an external storage device for storing image data already taken, is stored in the original image storage device 3 via the bus 13. Memorized in. The original image data may be input pixel by pixel, line by line, or sent for one screen. The CPU 9 performs error diffusion processing on the stored halftone image information using the image processing program in the ROM 7 and the data such as the matrix.

【0017】以下に、図2,図3を参照して、誤差拡散
処理にて補正入力濃度及びマトリクスを決定して出力値
を得る手順を説明する。なお、中間調の原画像データの
階調数は、0〜255の256階調であるとする。図2
は、本実施例における2値化処理の処理手順を示すフロ
ーチャートである。
A procedure for determining a corrected input density and a matrix in the error diffusion process to obtain an output value will be described below with reference to FIGS. The number of gradations of the original image data of halftone is 256 gradations of 0 to 255. Figure 2
3 is a flowchart showing a processing procedure of binarization processing in the present embodiment.

【0018】まず、画像入力手段によって入力された原
画像データが格納された原画像記憶装置3から、最初の
注目画素の入力濃度Ix,yを取り出す(S10)。更に
ROM7から閾値Tを取り出す(S15)。次に、式1
のごとく、入力濃度Ix,yに、注目画素に周辺画素から
分配された周辺画素における2値化誤差の重み付け誤差
和Eを加算し、補正入力濃度I′x,yを計算する(S2
0)。
First, the input density Ix, y of the first pixel of interest is retrieved from the original image storage device 3 in which the original image data input by the image input means is stored (S10). Further, the threshold value T is retrieved from the ROM 7 (S15). Next, Equation 1
As described above, the corrected input density I′x, y is calculated by adding the weighting error sum E of the binarization errors in the peripheral pixels distributed from the peripheral pixel to the target pixel to the input density Ix, y (S2).
0).

【0019】[0019]

【数1】 [Equation 1]

【0020】この誤差和Eは、今回の注目画素の処理以
前に処理された画素における、後述するステップS11
0での2値化誤差の分配により、RAM5内に設定され
ている各画素の2値化誤差記憶用バッファ内に蓄積され
て既に得られている値である。
This error sum E is obtained in step S11, which will be described later, in the pixel processed before the current pixel of interest is processed.
It is a value already accumulated and accumulated in the binarization error storage buffer of each pixel set in the RAM 5 due to the binarization error distribution of 0.

【0021】次に、上記閾値Tと補正入力濃度I′x,y
を比較して(S50)、2値となる出力濃度Ieの値を
決定する(S60,S70)。I′x,y≧Tの場合には
出力濃度Ieが2値の一方の値である「255」となり
(S60)、I′x,y<Tの場合には出力濃度Ieは2値
の他方の値である「0」となる(S70)。このように
して決定された出力濃度Ieを出力画像記憶装置11に
格納する(S80)。
Next, the threshold value T and the corrected input density I'x, y
(S50) and the binary output density Ie is determined (S60, S70). When I′x, y ≧ T, the output density Ie becomes “255” which is one of the two values (S60), and when I′x, y <T, the output density Ie is the other of the two values. Is set to "0" (S70). The output density Ie thus determined is stored in the output image storage device 11 (S80).

【0022】次に、注目画素で発生した2値化誤差eを
求める(S90)。2値化誤差eは、式2に示すごと
く、上記補正入力濃度I′x,yから出力濃度Ieを引いた
ものである。
Next, the binarization error e generated in the target pixel is obtained (S90). The binarization error e is obtained by subtracting the output density Ie from the corrected input density I'x, y as shown in the equation 2.

【0023】[0023]

【数2】 [Equation 2]

【0024】次に、乱数発生回路12を駆動して、所定
範囲の乱数Rを発生させる(S95)。本実施例におけ
る乱数発生回路12にから出力される乱数Rは、ROM
7内に複数存在する重み付け係数マトリクスM1,M
2,…からランダムに1つの重み付け係数マトリクスを
選択するために求められるものである。ランダムに選択
する方法は、種々の方法が知られているが、例えば、重
み付け係数マトリクスM1,M2,…が、2つであれ
ば、乱数Rは0または1をランダムに取り得る値とし、
R=0の場合は重み付け係数マトリクスM1を2値化誤
差の分配に用い、R=1の場合は重み付け係数マトリク
スM2を2値化誤差の分配に用いるようにしても良い。
または乱数Rは整数をランダムに取り得る値として、乱
数Rが奇数の場合は重み付け係数マトリクスM1を2値
化誤差の分配に用い、偶数の場合は重み付け係数マトリ
クスM2を2値化誤差の分配に用いるようにしても良
い。
Next, the random number generating circuit 12 is driven to generate a random number R within a predetermined range (S95). The random number R output from the random number generation circuit 12 in this embodiment is a ROM
Multiple weighting coefficient matrices M1 and M existing in 7
It is obtained in order to randomly select one weighting coefficient matrix from 2, ... Various methods are known for randomly selecting, but for example, if the weighting coefficient matrices M1, M2, ... Are two, the random number R is a value that can take 0 or 1 at random,
When R = 0, the weighting coefficient matrix M1 may be used for distribution of the binarization error, and when R = 1, the weighting coefficient matrix M2 may be used for distribution of the binarization error.
Alternatively, the random number R is a value that can take an integer randomly, and when the random number R is an odd number, the weighting coefficient matrix M1 is used for distribution of the binarization error, and when the random number R is even, the weighting coefficient matrix M2 is used for distribution of the binarization error. You may use it.

【0025】勿論、重み付け係数マトリクスが3以上の
場合も、乱数Rの出力値やその出力値に基づく計算によ
り、各重み付け係数マトリクスに対応する数値をランダ
ムに発生させることにより、その数値に基づいて、その
3以上の重み付け係数マトリクスから1つの重み付け係
数マトリクスをランダムに選択することができる。
Of course, even when the weighting coefficient matrix is 3 or more, the output value of the random number R and the calculation based on the output value are used to randomly generate the numerical values corresponding to the respective weighting coefficient matrices, and based on the numerical values. It is possible to randomly select one weighting coefficient matrix from the three or more weighting coefficient matrices.

【0026】次に発生した乱数Rにしたがって重み付け
係数マトリクスを決定し、該当する重み付け係数マトリ
クスをROM7から取り出す(S100)。この重み付
け係数マトリクスを用いて、周辺画素に対して注目画素
に発生した2値化誤差を分配する(S110)。
Next, the weighting coefficient matrix is determined according to the generated random number R, and the corresponding weighting coefficient matrix is retrieved from the ROM 7 (S100). Using this weighting coefficient matrix, the binarization error generated in the target pixel is distributed to the peripheral pixels (S110).

【0027】例えば、ROM7内に、式3,4に示すご
とく、2つの重み付け係数マトリクスM1,M2が格納
されているとする。
For example, it is assumed that two weighting coefficient matrices M1 and M2 are stored in the ROM 7 as shown in equations 3 and 4.

【0028】[0028]

【数3】 (Equation 3)

【0029】乱数Rの値により、今回の注目画素につい
ては、重み付け係数マトリクスM1が選択されて、2値
化誤差分配に用いられると決定された場合、即ち、
「*」で表される注目画素に対して図3(a)に示すご
とくの位置関係にある係数値を、重み付け係数マトリク
スM1の各成分と全成分の合計との比から得て、注目画
素の2値化誤差eに乗算して重み付けし、該当する位置
の画素の2値化誤差記憶用のバッファに加算する。
When it is determined that the weighting coefficient matrix M1 is selected for the pixel of interest this time by the value of the random number R and is used for binarization error distribution, that is,
The coefficient value having the positional relationship as shown in FIG. 3A with respect to the target pixel represented by “*” is obtained from the ratio of each component of the weighting coefficient matrix M1 and the sum of all components, and the target pixel is obtained. The binarization error e of 1 is multiplied and weighted, and added to the buffer for storing the binarization error of the pixel at the corresponding position.

【0030】例えば、注目画素の右隣の画素について
は、重み付け係数として「5/21(式3のマトリクス
M1の「*」の右隣の成分:5/全成分の合計:2
1)」が得られ、その結果、右隣の画素の上記バッファ
については、「e×5/21」が加算されることにな
る。
For example, for the pixel to the right of the pixel of interest, the weighting factor is "5/21 (the component to the right of" * "in the matrix M1 of equation 3 is 5: the sum of all components: 2"
1) ”is obtained, and as a result,“ e × 5/21 ”is added to the buffer of the pixel on the right.

【0031】また乱数Rの値により、今回の注目画素に
ついては、式4の重み付け係数マトリクスM2が選択さ
れて、2値化誤差分配に用いられると決定された場合、
即ち、「*」で表される注目画素に対して図3(b)に
示すごとくの位置関係にある係数値を、重み付け係数マ
トリクスM2の各成分と全成分の合計との比から得て、
注目画素の2値化誤差eに乗算して重み付けし、該当す
る位置の画素の2値化誤差記憶用のバッファに加算す
る。
When it is determined that the weighting coefficient matrix M2 of the equation 4 is selected for the pixel of interest this time by the value of the random number R and is used for binarization error distribution,
That is, the coefficient value having the positional relationship as shown in FIG. 3B with respect to the pixel of interest represented by “*” is obtained from the ratio of each component of the weighting coefficient matrix M2 and the sum of all components,
The binarization error e of the pixel of interest is multiplied and weighted, and added to the buffer for storing the binarization error of the pixel at the corresponding position.

【0032】こうして、座標(x,y)の位置の画素の
処理が終了し、次の未処理の画素が存在するか否かが判
定され(S120)、存在すれば肯定判定されて、次の
座標の画素が注目画素として設定され(S130)、上
述した処理が繰り返される。尚、本実施例における画素
の処理順序は、最上ラインの左の画素から水平方向右へ
処理し、同じ処理を順次、一ラインずつ下に移して行く
ことにより、最後に右下の画素の処理となる順序であ
る。
In this way, the processing of the pixel at the position of the coordinates (x, y) is completed, and it is determined whether or not the next unprocessed pixel exists (S120). The pixel at the coordinate is set as the pixel of interest (S130), and the above-described processing is repeated. In the processing order of the pixels in this embodiment, the pixels on the left of the uppermost line are processed horizontally to the right, and the same processing is sequentially moved downward by one line to finally process the pixels on the lower right. Is the order.

【0033】そして、すべての画素について上述した処
理が実行されれば、ステップS120にて否定判定され
て2値化処理を終了する。本実施例は上述したごとく、
誤差拡散法において、2値化誤差分配のための重み付け
係数マトリクスを、乱数発生により、複数用意された重
み付け係数マトリクスからランダムに決定している。こ
のように、各画素に対して、常に同一の重み付け係数マ
トリクスを用いることなく、かつ複数の重み付け係数マ
トリクスを同一の繰り返しにても用いていないため、誤
差拡散法により2値化された出力画像における出力濃度
が0の画素と出力濃度が255の画素とがランダムに配
置されることになる。このため、分配された2値化誤差
の影響にかかわらず、均一な入力濃度を持つ領域中に境
界が発生するのを防止することができる。
When the above-mentioned processing is executed for all the pixels, a negative determination is made in step S120, and the binarization processing ends. In this embodiment, as described above,
In the error diffusion method, a weighting coefficient matrix for binarizing error distribution is randomly determined from a plurality of prepared weighting coefficient matrices by random number generation. As described above, since the same weighting coefficient matrix is not always used for each pixel and a plurality of weighting coefficient matrices are not used even in the same repetition, the output image binarized by the error diffusion method is used. Pixels having an output density of 0 and pixels having an output density of 255 are randomly arranged. Therefore, regardless of the influence of the distributed binarization error, it is possible to prevent a boundary from occurring in a region having a uniform input density.

【0034】上記実施例において、ステップS20が補
正入力濃度演算手段としての処理に該当し、ステップS
50,S60,S70が出力濃度決定手段としての処理
に該当し、ステップS90が2値化誤差演算手段として
の処理に該当し、ステップS110が2値化誤差分配手
段としての処理に該当し、乱数発生回路12が乱数発生
手段に該当し、ステップS100が重み付け係数マトリ
クス選択手段としての処理に該当する。
In the above embodiment, step S20 corresponds to the process as the corrected input density calculating means,
50, S60, and S70 correspond to the process as the output density determining unit, step S90 corresponds to the process as the binarizing error calculating unit, step S110 corresponds to the process as the binarizing error distributing unit, and the random number The generation circuit 12 corresponds to the random number generation means, and step S100 corresponds to the processing as the weighting coefficient matrix selection means.

【0035】[その他]上記実施例では、重み付け係数
マトリクスは、その行列の形状が異なる2種類のもの、
すなわち2行5列および3行3列を用いたが、これ以外
の形状を組み合わせても良い。また形状は同一でも、各
成分の値が異なる2つ以上のマトリクスを備えて、その
内から画素毎にランダムに決定しても良い。
[Others] In the above embodiment, the weighting coefficient matrix has two types having different matrix shapes,
That is, although 2 rows and 5 columns and 3 rows and 3 columns are used, shapes other than these may be combined. Further, even if the shape is the same, two or more matrices having different values of each component may be provided, and the matrix may be randomly determined from among them.

【0036】また、乱数の発生を回路にて行ったが、C
PU9によるプログラム処理にて乱数を得てもよい。ま
た上記実施例の重み付け係数マトリクスを画素毎にラン
ダムに選択する構成に加えて、またはその構成に代え
て、閾値を画素毎にランダムに計算設定して、あるいは
複数の閾値から画素毎にランダムに選択することによ
り、パターンをランダム化しても良い。
Further, although the random number is generated by the circuit, C
You may obtain a random number by the program process by PU9. In addition to the configuration in which the weighting coefficient matrix of the above-described embodiment is randomly selected for each pixel, or instead of the configuration, a threshold value is randomly calculated and set for each pixel, or a plurality of threshold values are randomly determined for each pixel. The pattern may be randomized by selection.

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

【図1】 一実施例の画像処理回路を示すブロック図で
ある。
FIG. 1 is a block diagram illustrating an image processing circuit according to an embodiment.

【図2】 その2値化処理のフローチャートである。FIG. 2 is a flowchart of the binarization process.

【図3】 誤差配分処理における注目画素と周辺画素と
の関係を示す説明図である。
FIG. 3 is an explanatory diagram showing a relationship between a target pixel and peripheral pixels in the error distribution process.

【図4】 均一な同一濃度領域における誤差拡散法によ
る2値化処理後の画素分布パターンの違いを示す説明図
である。
FIG. 4 is an explanatory diagram showing a difference in a pixel distribution pattern after binarization processing by an error diffusion method in a uniform uniform density region.

【符号の説明】[Explanation of symbols]

1…画像処理回路 3…原画像記憶装置 5…
RAM 7…ROM 9…CPU 11…出力画像記憶装
置 12…乱数発生回路 13…バス
1 ... Image processing circuit 3 ... Original image storage device 5 ...
RAM 7 ... ROM 9 ... CPU 11 ... Output image storage device 12 ... Random number generation circuit 13 ... Bus

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】中間調画像を2値化して疑似中間調の画像
データを作成する画像処理装置において、 上記中間調画像の各画素の濃度を誤差拡散法により2値
化する2値化処理手段と、 上記各画素毎に、複数備えられた重み付け係数マトリク
スからランダムに選択して、上記誤差拡散処理の誤差分
配用の重み付け係数マトリクスとして設定する係数マト
リクス設定手段と、 を備えたことを特徴とする画像処理装置。
1. An image processing apparatus for binarizing a halftone image to create pseudo halftone image data, wherein a binarization processing means binarizes the density of each pixel of the halftone image by an error diffusion method. And a coefficient matrix setting means for randomly selecting from a plurality of weighting coefficient matrices provided for each of the pixels and setting it as a weighting coefficient matrix for error distribution in the error diffusion processing. Image processing device.
【請求項2】上記2値化処理手段は、 周辺画素から分配された2値化誤差和により上記中間調
画像の各画素の濃度を補正して補正入力濃度を求める補
正入力濃度演算手段と、 上記補正入力濃度演算手段によって求められた補正入力
濃度と閾値とを比較して各画素の出力濃度を決定する出
力濃度決定手段と、 上記出力濃度決定手段により決定された出力濃度と上記
補正入力濃度演算手段により求められた補正入力濃度と
から各画素で発生した2値化誤差を演算する2値化誤差
演算手段と、 上記2値化誤差を上記重み付け係数マトリクスに基づい
て重み付けして周辺画素に分配する2値化誤差分配手段
と、 を備えたことを特徴とする請求項1記載の画像処理装
置。
2. The binarization processing means corrects the input density by correcting the density of each pixel of the halftone image based on the sum of the binarization errors distributed from the surrounding pixels to obtain a corrected input density. Output density determination means for comparing the corrected input density calculated by the corrected input density calculation means with a threshold value to determine the output density of each pixel, and the output density determined by the output density determination means and the corrected input density Binarization error calculation means for calculating a binarization error generated in each pixel from the corrected input density obtained by the calculation means, and the binarization error is weighted based on the weighting coefficient matrix to the peripheral pixels. The image processing apparatus according to claim 1, further comprising: a binarization error distribution unit for distributing.
【請求項3】上記係数マトリクス設定手段は、 乱数発生手段と、 上記各画素毎に、上記乱数発生手段により発生した乱数
に基づいて、複数備えられた重み付け係数マトリクスか
ら選択して、上記誤差拡散処理の誤差分配用の重み付け
係数マトリクスとして設定する重み付け係数マトリクス
選択手段と、 を備えたことを特徴とする請求項1または2記載の画像
処理装置。
3. The coefficient matrix setting means selects a random number generating means and a plurality of weighting coefficient matrices provided for each pixel based on the random number generated by the random number generating means, and the error diffusion is performed. The image processing apparatus according to claim 1 or 2, further comprising: a weighting coefficient matrix selecting unit which is set as a weighting coefficient matrix for processing error distribution.
JP6252360A 1994-10-18 1994-10-18 Image processing unit Pending JPH08116443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6252360A JPH08116443A (en) 1994-10-18 1994-10-18 Image processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6252360A JPH08116443A (en) 1994-10-18 1994-10-18 Image processing unit

Publications (1)

Publication Number Publication Date
JPH08116443A true JPH08116443A (en) 1996-05-07

Family

ID=17236217

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6252360A Pending JPH08116443A (en) 1994-10-18 1994-10-18 Image processing unit

Country Status (1)

Country Link
JP (1) JPH08116443A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012134890A (en) * 2010-12-24 2012-07-12 Konica Minolta Business Technologies Inc Image processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012134890A (en) * 2010-12-24 2012-07-12 Konica Minolta Business Technologies Inc Image processing system

Similar Documents

Publication Publication Date Title
JPH0472433B2 (en)
JPH07120414B2 (en) Apparatus and method for generating halftone threshold value of image
JPH07288689A (en) Device and method for binarization processing of image signal
JP3810835B2 (en) Image processing method using error diffusion and halftone processing
JP5013805B2 (en) Processor-readable storage medium
JPH0693246B2 (en) Dither image enlargement / reduction method
JPH0846784A (en) Image processing unit
JPH08116443A (en) Image processing unit
JPH08111777A (en) Image processor
JP3094810B2 (en) Color image processing equipment
JP3094809B2 (en) Color image processing equipment
JP3787890B2 (en) Image processing device
JPH11146203A (en) Image processor and storage medium storing program about device
JP2002209102A (en) Method for deteriorating gray scale image using error diffusion system approach
JPH08317206A (en) Image processor
JPH08317208A (en) Image processor
JPH08107499A (en) Image processing unit
JP3290871B2 (en) Color system conversion method and device
JP3302426B2 (en) Image processing method
JPH08228285A (en) Method and device for processing image
JPS63155950A (en) Picture signal processor
JP4965378B2 (en) Image forming method and image forming system
JPS63155954A (en) Picture signal processor
JP3300582B2 (en) Image processing device
JPH0197066A (en) Picture processing method