JPH07123259A - Picture processing unit - Google Patents

Picture processing unit

Info

Publication number
JPH07123259A
JPH07123259A JP5264844A JP26484493A JPH07123259A JP H07123259 A JPH07123259 A JP H07123259A JP 5264844 A JP5264844 A JP 5264844A JP 26484493 A JP26484493 A JP 26484493A JP H07123259 A JPH07123259 A JP H07123259A
Authority
JP
Japan
Prior art keywords
error
data
pixel
parameter
level
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.)
Granted
Application number
JP5264844A
Other languages
Japanese (ja)
Other versions
JP3142699B2 (en
Inventor
Takuya Abe
拓也 阿部
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP05264844A priority Critical patent/JP3142699B2/en
Publication of JPH07123259A publication Critical patent/JPH07123259A/en
Application granted granted Critical
Publication of JP3142699B2 publication Critical patent/JP3142699B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To suppress production of moire with respect to the picture processing unit converting a multi-level picture into s binary picture through the use of the error diffusion method. CONSTITUTION:The processing unit is provided with a selector 8 selecting one parameter group from plural parameter groups and a mean error arithmetic section 9 calculating mean error data based on error data stored in an error data memory 6 and a parameter of the parameter group selected by the selector 8. The selector 8 selects a different parameter group when the picture elements of a predetermined level are consecutive or the color of the picture of the picture element processed just before is closer to the color of the picture element currently processed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、誤差拡散法を用いて多
階調画像を2値画像に変換する画像処理装置に関し、主
に複写機やプリンタのような2次元画像のハードコピー
装置に好適なものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for converting a multi-tone image into a binary image by using an error diffusion method, and mainly to a hard copy apparatus for a two-dimensional image such as a copying machine or a printer. It is suitable.

【0002】[0002]

【従来の技術】濃淡を有する多階調画像をドットプリン
タのような2値表示装置に出力するために、従来から各
種の2値化処理方法が提案されている。多階調画像を2
値化するには、基本的には所定の中間レベルを閾値と
し、閾値未満の場合は黒レベル、閾値以上の場合は白レ
ベルとすることで行う。
2. Description of the Related Art Various binary processing methods have been proposed in the past for outputting a multi-tone image having light and shade to a binary display device such as a dot printer. Multi-tone image 2
The value is basically set by setting a predetermined intermediate level as a threshold value, a black level when it is less than the threshold value, and a white level when it is more than the threshold value.

【0003】なお、ここでは黒から白までの明るさを2
56段階に分けた値をもつ画素で構成される画像を多階
調画像といい、黒と白の2つの値しかもたない画素で構
成される画像を2値画像という。
The brightness from black to white is 2 here.
An image composed of pixels having values divided into 56 levels is called a multi-gradation image, and an image composed of pixels having only two values of black and white is called a binary image.

【0004】多階調画像の場合、一般にレベル0が黒、
レベル255が白という割り付けになっている。したが
って、レベル128は灰色ということになり、レベル2
00だと明るい灰色(白に近い灰色)、レベル80だと
暗い灰色(黒に近い灰色)となる。これに対し、2値画
像の場合はレベル0が黒、レベル255が白であり、そ
の他のレベル、つまり灰色は存在しない。
In the case of a multi-tone image, level 0 is generally black,
Level 255 is assigned white. Therefore, level 128 is gray and level 2
A value of 00 produces light gray (gray close to white), and a level of 80 produces dark gray (gray close to black). On the other hand, in the case of a binary image, level 0 is black, level 255 is white, and there is no other level, that is, gray.

【0005】多階調画像を2値化する手法の一つに誤差
拡散法がある。この方法は、既に2値化した画素の誤差
を、その周辺の画素を2値化する際に考慮に入れて処理
するもので、次のような手順で実行する。いま、画素a
(レベル200),画素b(レベル150),画素c
(レベル80),…からなる多階調画像があり、レベル
128を閾値として画素a,画素b,画素c,…の順に
2値化処理していくものとする。
An error diffusion method is one of the methods for binarizing a multi-tone image. This method processes an error of a pixel that has already been binarized by taking it into consideration when binarizing pixels around it, and is executed in the following procedure. Pixel a now
(Level 200), pixel b (level 150), pixel c
It is assumed that there is a multi-gradation image composed of (level 80), ..., And binarization processing is performed in order of pixel a, pixel b, pixel c, ... With level 128 as a threshold value.

【0006】まず、画素aをレベル128を閾値として
2値化すると、2値化後はレベル255(白)となるの
で、次のような誤差値aが出る。 入力値a(200) −出力値a(255) =誤差値a(-55)
First, when the pixel a is binarized by using the level 128 as a threshold value, the level becomes 255 (white) after binarization, so that the following error value a appears. Input value a (200) -Output value a (255) = Error value a (-55)

【0007】次に、画素bの処理に移る。この場合は直
前に処理した画素aの誤差を考慮して2値化処理を行う
ため、誤差を考慮した入力値bは次のようになる。 入力値b(150) +誤差値a(-55) =誤差を考慮した入力
値b(95) この誤差を考慮した入力値bを2値化すると、レベル0
(黒)となる。したがって、画素bには次のような誤差
値bが出る。 入力値b(150) −出力値b(0) =誤差値b(150)
Next, the processing for pixel b is started. In this case, since the binarization processing is performed in consideration of the error of the pixel a processed immediately before, the input value b considering the error is as follows. Input value b (150) + error value a (-55) = input value b (95) considering error If the input value b considering this error is binarized, level 0
(Black). Therefore, the following error value b appears in the pixel b. Input value b (150) -Output value b (0) = Error value b (150)

【0008】次に、画素cの処理に移る。この場合も直
前に処理した画素bの誤差を考慮して2値化処理を行う
ため、誤差を考慮した入力値cは次のようになる。 入力値c(80) +誤差値b(150)=誤差を考慮した入力値
c(230) この誤差を考慮した入力値cを2値化すると、レベル2
55(白)となる。したがって、画素cには次のような
誤差値cが出る。 入力値c(80) −出力値c(255)=誤差値c(-175) 以下同様にして、先の画素の誤差を考慮しながら順次2
値化処理を行う。
Next, the processing for pixel c is started. Also in this case, since the binarization processing is performed in consideration of the error of the pixel b processed immediately before, the input value c considering the error is as follows. Input value c (80) + error value b (150) = input value c (230) considering error If the input value c considering this error is binarized, it becomes level 2
It becomes 55 (white). Therefore, the following error value c appears in the pixel c. Input value c (80) -output value c (255) = error value c (-175)
Perform value conversion processing.

【0009】つまり、画素aはレベル200(白より暗
い色)なのに出力はレベル255(白)となったので、
その誤差を埋めるために次の画素bを2値化するときは
画素bが明るい色でも2値化後はなるべく黒になるよう
に補正し、原画との濃度誤差を最小とするように2値化
するのが誤差拡散法なのである。
That is, since the pixel a has a level of 200 (darker than white), the output has a level of 255 (white).
When the next pixel b is binarized to fill the error, even if the pixel b is a bright color, it is corrected so that it becomes black as much as possible after binarization, and the binarization is performed so as to minimize the density error with the original image. The error diffusion method is used.

【0010】実際の誤差拡散法では、先に処理した複数
の画素の誤差を考慮し、周辺に近い画素の誤差ほど重要
視するために各画素の誤差値にパラメータを掛けて重み
付けを行い、それを平均化して誤差値とするようにして
いる。
In the actual error diffusion method, the error value of each pixel is weighted by taking into consideration the error of a plurality of pixels that have been previously processed, and the error value of each pixel is weighted in order to place more importance on the error of the pixel closer to the periphery. Is averaged to obtain an error value.

【0011】例えば、図6に示すように、[5],
[7],[*]のパラメータ群を使って先ほどの画素
a,b,c…を2値化する場合の処理について説明す
る。ただし、*で示すパラメータは現在処理する画素の
位置を表す。
For example, as shown in FIG. 6, [5],
Processing for binarizing the pixels a, b, c ... Using the parameter groups [7] and [*] will be described. However, the parameter indicated by * represents the position of the pixel currently processed.

【0012】まず、画素aの処理を実行する(図a)。
ただし、画素aは最初の画素であるので先の処理結果と
変わらず、出力値aは255、誤差値aは−55とな
る。次いで、画素bの処理を実行する(図b)。今度は
画素aの誤差を考慮し、誤差値aにパラメータ7を掛
け、それを7で割った値で、誤差を考慮した入力値bを
計算する。 入力値b(150) +誤差値a(-55) ×7/7=誤差を考慮
した入力値b(95) この誤差を考慮した入力値bを2値化すると、出力値b
はレベル0となる。したがって、次のような誤差値bが
出る。 入力値b(150) −出力値b(0) =誤差値b(150)
First, the processing of pixel a is executed (FIG. A).
However, since the pixel a is the first pixel, the output value a is 255 and the error value a is −55, which is the same as the previous processing result. Then, the processing of the pixel b is executed (FIG. B). This time, the error of the pixel a is taken into consideration, the error value a is multiplied by the parameter 7, and it is divided by 7 to calculate the input value b in consideration of the error. Input value b (150) + error value a (-55) x7 / 7 = input value b (95) considering error If the input value b considering this error is binarized, the output value b
Becomes level 0. Therefore, the following error value b is obtained. Input value b (150) -Output value b (0) = Error value b (150)

【0013】次に、画素cの処理に移る(図c)。今度
は画素aおよび画素bの誤差を考慮し、誤差値aにパラ
メータ5を掛け、誤差値bにパラメータ7を掛け、それ
を両パラメータの和12(=5+7)で割った値で、誤
差を考慮した入力値cを計算する。 入力値c(80) +{誤差値a(-55)×5+誤差値b(150)
×7}/12=誤差を考慮した入力値c(145)
Next, the processing for pixel c is started (FIG. C). This time, considering the error between the pixel a and the pixel b, the error value a is multiplied by the parameter 5, the error value b is multiplied by the parameter 7, and the result is divided by the sum 12 (= 5 + 7) of both parameters to calculate the error. Calculate the considered input value c. Input value c (80) + {error value a (-55) x 5 + error value b (150)
× 7} / 12 = input value c (145) considering error

【0014】この誤差を考慮した入力値cを2値化する
と、出力値cはレベル255となり、次のような誤差値
cが出る。 入力値c(145) −出力値c(255) =誤差値c(-175) こうして各画素の誤差値に重み付けをし、周辺に近い画
素の誤差ほど重要視しながら2値化処理を行い、原画と
の濃度誤差を最小とする。
When the input value c in consideration of this error is binarized, the output value c becomes the level 255, and the following error value c is obtained. Input value c (145) -output value c (255) = error value c (-175) In this way, the error value of each pixel is weighted, and binarization processing is performed while giving more importance to the error of pixels closer to the periphery, Minimize the density error from the original image.

【0015】[0015]

【発明が解決しようとする課題】ところで、誤差拡散法
では、各画素の誤差値に重み付けするためのパラメータ
群として、一般には1つのパラメータ群のみを使用して
いる。しかし、これだと2値化の際に独特の縞模様が現
れる場合があり、それがモアレの原因となる。そこで、
本発明は多階調画像を誤差拡散法によって2値画像に変
換する際に、モアレの発生を抑圧することを目的とす
る。
By the way, in the error diffusion method, generally only one parameter group is used as a parameter group for weighting the error value of each pixel. However, in this case, a unique striped pattern may appear during binarization, which causes moire. Therefore,
An object of the present invention is to suppress the occurrence of moire when converting a multi-tone image into a binary image by the error diffusion method.

【0016】[0016]

【課題を解決するための手段】本発明による画像処理装
置は、複数のパラメータ群を記憶するパラメータメモリ
と、複数のパラメータ群から1のパラメータ群を選択す
るセレクタと、セレクタで選択したパラメータ群のパラ
メータおよび誤差データメモリに記憶されている誤差デ
ータに基づいて平均誤差データを算出する平均誤差演算
部と、多階調の入力画素データおよび前記平均誤差デー
タを加算する加算部と、加算部からの加算出力データを
所定の閾値レベルと比較して2値レベルに変換し2値画
素データとして出力する閾値比較部と、多階調の画素デ
ータおよび閾値比較部からの2値画素データに基づいて
2値化処理に伴って生じる誤差を誤差データとして算出
し前記誤差データメモリに記憶する誤差演算部とからな
ることを特徴とする。
An image processing apparatus according to the present invention comprises a parameter memory for storing a plurality of parameter groups, a selector for selecting one parameter group from the plurality of parameter groups, and a parameter group selected by the selector. An average error calculation unit that calculates average error data based on error data stored in a parameter and error data memory, an addition unit that adds multi-tone input pixel data and the average error data, and an addition unit The addition output data is compared with a predetermined threshold level, converted into a binary level and output as binary pixel data, and 2 based on the multi-gradation pixel data and the binary pixel data from the threshold comparison unit. An error calculation unit that calculates an error caused by the binarization process as error data and stores the error data in the error data memory. .

【0017】この場合、セレクタは入力画素データのレ
ベルを監視し、予め定めたレベルの画素が連続した場合
に異なるパラメータ群を選択する。あるいは、セレクタ
は入力画素データを監視し、直前に処理した画素と現在
処理している注目画素とが近い色の場合に異なるパラメ
ータ群を選択する。
In this case, the selector monitors the level of the input pixel data and selects a different parameter group when pixels of a predetermined level are continuous. Alternatively, the selector monitors the input pixel data and selects a different parameter group when the pixel processed immediately before and the pixel of interest currently processed are of a similar color.

【0018】[0018]

【作用】本発明は、あるレベルの画素が連続した場合、
あるいは直前に処理した画素と現在処理している注目画
素とが近い色の場合のように、モアレが生じる画素を予
め求めておき、その画素の処理だけ異なるパラメータ群
を選択し、この選択したパラメータ群によって平均誤差
演算を行い、多階調画像の2値化処理を行う。
According to the present invention, when pixels of a certain level are consecutive,
Alternatively, as in the case where the pixel processed immediately before and the pixel of interest currently being processed are close in color, a pixel in which moire occurs is obtained in advance, and a parameter group that differs only in the processing of that pixel is selected, and this selected parameter is selected. Average error calculation is performed for each group, and binarization processing of a multi-tone image is performed.

【0019】[0019]

【実施例】図1は、本発明による画像処理装置の一実施
例を示すブロック図である。本実施例において、入力画
像メモリ1は2次元多階調画像を構成する複数の画素の
レベルをディジタル画素データとして記憶するメモリで
ある。
1 is a block diagram showing an embodiment of an image processing apparatus according to the present invention. In the present embodiment, the input image memory 1 is a memory that stores the levels of a plurality of pixels forming a two-dimensional multi-tone image as digital pixel data.

【0020】加算部2は入力画像メモリ1から読み出し
た各画素の画素データAと、後述する平均誤差データF
とを加算する回路で、その加算結果は加算画素データB
として閾値比較部3に入力する。
The addition unit 2 reads pixel data A of each pixel read from the input image memory 1 and average error data F described later.
Is a circuit for adding and the addition result is the addition pixel data B
Is input to the threshold comparison unit 3.

【0021】閾値比較部3は加算画素データBのレベル
が所定の閾値レベル以上の場合は白レベル、閾値レベル
未満の場合は黒レベルの画素データCを出力する回路
で、この出力画素データCは出力画像メモリ4に記憶さ
れる。
The threshold comparing section 3 is a circuit for outputting the pixel data C of the white level when the level of the added pixel data B is equal to or higher than the predetermined threshold level and the black level when the level of the added pixel data B is less than the threshold level. It is stored in the output image memory 4.

【0022】誤差演算部5は入力画像メモリ1から読み
出した画素データAと閾値比較部3からの出力画素デー
タCとの減算を行い、多階調の画素データAの2値化に
伴って生じる誤差を求め、誤差データEとして誤差デー
タメモリ6に記憶する。
The error calculation unit 5 subtracts the pixel data A read from the input image memory 1 and the output pixel data C from the threshold value comparison unit 3 and is generated as the multi-gradation pixel data A is binarized. The error is calculated and stored in the error data memory 6 as the error data E.

【0023】パラメータメモリ7は、複数のパラメータ
群を記憶するメモリで、本実施例では、図2に示す5つ
のパラメータ群Pa,Pb,Pc,Pd,Peを記憶し
ている。各パラメータ群Pa〜Peは5×3のパラメー
タマトリクスで構成され、*印で表した網点部分は現在
処理中の注目画素の位置、斜線部分は処理上無視できる
画素の位置である。
The parameter memory 7 is a memory for storing a plurality of parameter groups. In this embodiment, the parameter memory 7 stores the five parameter groups Pa, Pb, Pc, Pd and Pe shown in FIG. Each of the parameter groups Pa to Pe is composed of a 5 × 3 parameter matrix, the halftone dot portion indicated by * is the position of the target pixel currently being processed, and the shaded portion is the pixel position which can be ignored in the processing.

【0024】セレクタ8は、パラメータメモリ7に記憶
されている5つのパラメータ群Pa〜Peの中から1つ
のパラメータ群を選択し、平均誤差演算部9に出力する
もので、パラメータ群の決定方法としては入力画像メモ
リ1からの画素データAのレベルを監視し、ある決まっ
たレベルの画素が連続した場合はそのときだけ異なるパ
ラメータ群を選択する。
The selector 8 selects one parameter group from the five parameter groups Pa to Pe stored in the parameter memory 7 and outputs the selected parameter group to the average error calculator 9, which is a method for determining the parameter group. Monitors the level of pixel data A from the input image memory 1 and selects a different parameter group only when pixels of a certain fixed level are continuous.

【0025】平均誤差演算部9は、誤差データメモリ6
に記憶されている誤差データEに対し、セレクタ8で選
択したパラメータ群のパラメータを掛け、その累算値を
各パラメータの合計値で割って平均誤差データFを求
め、加算部2に加算データとして出力するものである。
The average error calculator 9 is provided in the error data memory 6
The error data E stored in is multiplied by the parameter of the parameter group selected by the selector 8, the accumulated value is divided by the total value of each parameter to obtain the average error data F, which is added to the addition unit 2 as the added data. It is what is output.

【0026】次に、図1に示す画像処理装置の動作を、
図3〜図5に示す動作説明図を参照しながら説明する。
なお、本実施例では、入力画像メモリ1に6×4画素の
画素データAij(i=1〜6,1〜4)が記憶されてお
り、図で左上の画素データをA11、右下の画素データを
64と表し、左上の画素から水平方向に1画素ずつ2値
化処理を行い、その列が終了すると垂直方向に1列下が
り、再び左端の画素から2値化処理を進める。
Next, the operation of the image processing apparatus shown in FIG.
The operation will be described with reference to the operation explanatory diagrams shown in FIGS.
In this embodiment, the input image memory 1 stores 6 × 4 pixel pixel data A ij (i = 1 to 6, 1 to 4), and the upper left pixel data is A 11 , the lower right pixel data is shown in FIG. The pixel data of A is represented by A 64, and binarization processing is performed for each pixel in the horizontal direction from the upper left pixel, and when the row is completed, the binarization processing is performed in the vertical direction, and the binarization processing is performed again from the leftmost pixel.

【0027】また、図3〜図5に示す説明図において、
各窓枠Wは現在処理している画素と既に処理した画素と
の位置関係を模式的に表しており、パラメータ群と同様
に5×3の大きさを有し、処理中の画素の位置は網点
で、処理済みの画素の位置は斜線で示している。さら
に、本実施例では、パラメータ群として図2に示すパラ
メータ群Paが選択されているものとする。
Further, in the explanatory views shown in FIGS. 3 to 5,
Each window frame W schematically shows the positional relationship between the currently processed pixel and the already processed pixel, has a size of 5 × 3 similarly to the parameter group, and the position of the pixel being processed is The positions of the processed pixels are indicated by hatching with halftone dots. Further, in this embodiment, it is assumed that the parameter group Pa shown in FIG. 2 is selected as the parameter group.

【0028】まず、図3に示す説明図と共に最初の画素
データA11(レベル200)の2値化処理について説明
する。最初の画素であるから加算部2での平均誤差デー
タFはゼロであり、閾値比較部3には入力画素データA
11がそのまま加算画素データB11として入力される。
First, the binarization process of the first pixel data A 11 (level 200) will be described with reference to the explanatory view shown in FIG. Since it is the first pixel, the average error data F in the addition unit 2 is zero, and the threshold comparison unit 3 receives the input pixel data A
11 is input as it is as the addition pixel data B 11 .

【0029】閾値比較部3では、加算画素データB11
レベル200が閾値レベル128より大きいので、出力
画素データC11としてレベル255のデータが出力さ
れ、出力画像メモリ4に記憶される。
In the threshold comparing section 3, since the level 200 of the added pixel data B 11 is higher than the threshold level 128, the data of level 255 is output as the output pixel data C 11 and stored in the output image memory 4.

【0030】これと同時に、誤差演算部5で入力画素デ
ータA11と出力画素データC11との誤差を求め、誤差デ
ータE11(=A11−C11)として誤差データメモリ6に
格納する。この場合、誤差データE11のレベルは−55
となる。こうして最初の画素データA11の2値化処理が
終了する。
At the same time, the error between the input pixel data A 11 and the output pixel data C 11 is calculated by the error calculator 5 and stored in the error data memory 6 as error data E 11 (= A 11 −C 11 ). In this case, the level of the error data E 11 is −55.
Becomes Thus, the binarization processing of the first pixel data A 11 is completed.

【0031】次に、図4に示す説明図と共に2番目の画
素データA21(レベル150)の2値化処理について説
明する。2番目の画素であるから誤差データメモリ6に
格納されている誤差データE11を考慮した処理を行う。
すなわち、誤差データメモリ6から誤差データE11を読
み出し、セレクタ8で選択したパラメータPaを用いて
下記の平均誤差演算を行い、平均誤差データF21を算出
して加算部2に加算データとして出力する。 Fij=Σ(Ei-m j×p-m)/Σ(p-m
Next, the binarization process of the second pixel data A 21 (level 150) will be described with reference to the explanatory view shown in FIG. Since it is the second pixel, processing is performed in consideration of the error data E 11 stored in the error data memory 6.
That is, the error data E 11 is read from the error data memory 6, the following average error calculation is performed using the parameter Pa selected by the selector 8, the average error data F 21 is calculated, and the average error data F 21 is output to the addition unit 2 as addition data. . F ij = Σ (E im j × p −m ) / Σ (p −m ).

【0032】ここで、pはパラメータ群Paのパラメー
タを表し、−mは注目画素よりm画素先の位置であるこ
とを表す。今の場合、i=2、j=1であり、処理済み
の画素は直前に処理した最初の画素のみであるから、m
=1、また、E11=−55、p-1=7となり、したがっ
て平均誤差データF21は次のようになる。 F21=E11×p-1/p-1=−55×7/7=−55
Here, p represents a parameter of the parameter group Pa, and -m represents a position m pixels ahead of the pixel of interest. In this case, i = 2 and j = 1, and the processed pixel is only the first pixel processed immediately before. Therefore, m
= 1 and E 11 = -55 and p -1 = 7, so the average error data F 21 is as follows. F 21 = E 11 × p −1 / p −1 = −55 × 7/7 = −55

【0033】加算部2では、入力画素データA21と平均
誤差データF21とを加算し、加算画素データB21として
閾値比較部3に入力する。閾値比較部3では、加算画素
データB21のレベル95(=150−55)が閾値レベ
ル128より小さいので、出力画素データC21としてレ
ベル0を出力し、出力画像メモリ4に格納する。
The adder unit 2 adds the input pixel data A 21 and the average error data F 21 and inputs the result as the added pixel data B 21 to the threshold value comparison unit 3. Since the level 95 (= 150−55) of the added pixel data B 21 is smaller than the threshold level 128, the threshold comparison unit 3 outputs level 0 as the output pixel data C 21 and stores it in the output image memory 4.

【0034】これと同時に、誤差演算部5で入力画素デ
ータA21と出力画素データC21との差を求め、誤差デー
タE21(=A21−C21)として誤差データメモリ6に格
納する。この場合、誤差データE21のレベルは150と
なる。こうして2番目の画素データA21の2値化処理が
終了する。
At the same time, the error calculator 5 calculates the difference between the input pixel data A 21 and the output pixel data C 21, and stores it in the error data memory 6 as error data E 21 (= A 21 −C 21 ). In this case, the level of the error data E 21 is 150. In this way, the binarization process of the second pixel data A 21 is completed.

【0035】次に、図5に示す説明図と共に3番目の画
素データA31(レベル80)の2値化処理について説明
する。この場合も誤差データメモリ6に格納されている
誤差データを考慮した処理を行う。すなわち、誤差デー
タメモリ6から既に2値化した画素データA11およびA
21の誤差データE11およびE21を読み出し、セレクタ8
で選択したパラメータPaを用いて前述した平均誤差演
算を行い、平均誤差データF31を算出して加算部2に加
算データとして出力する。
Next, the binarization process of the third pixel data A 31 (level 80) will be described with reference to the explanatory view shown in FIG. In this case as well, processing is performed in consideration of the error data stored in the error data memory 6. That is, the binarized pixel data A 11 and A from the error data memory 6 have already been binarized.
It reads the error data E 11 and E 21 of 21, the selector 8
The above-described average error calculation is performed using the parameter Pa selected in step 1, the average error data F 31 is calculated, and the average error data F 31 is output to the adder 2 as addition data.

【0036】今の場合、E11=−55、E21=150、
-2=5、p-1=7であるので、平均誤差データF31
次のようになる。 F31=(E11×p-2+E21×p-1)/(p-2+p-1) =(−55×5+150×7)/(5+7) =65
In the present case, E 11 = -55, E 21 = 150,
Since p −2 = 5 and p −1 = 7, the average error data F 31 is as follows. F 31 = (E 11 × p −2 + E 21 × p −1 ) / (p −2 + p −1 ) = (− 55 × 5 + 150 × 7) / (5 + 7) = 65

【0037】加算部2では、入力画素データA31と平均
誤差データF31とを加算し、加算画素データB31として
閾値比較部3に入力する。閾値比較部3では、加算画素
データB31のレベル145(=80+65)が閾値レベ
ル128より大きいので出力画素データC31としてレベ
ル255を出力し、出力画像メモリ4に格納する。
The adder unit 2 adds the input pixel data A 31 and the average error data F 31 and inputs the result as the added pixel data B 31 to the threshold value comparing unit 3. In the threshold comparison unit 3, since the level 145 (= 80 + 65) of the added pixel data B 31 is higher than the threshold level 128, the level 255 is output as the output pixel data C 31 and stored in the output image memory 4.

【0038】これと同時に、誤差演算部5で入力画素デ
ータA31と出力画素データC31との差を求め、誤差デー
タE31(=A31−C31)として誤差データメモリ6に格
納する。この場合、誤差データE31のレベルは -175
(=80−255)となる。こうして3番目の画素デー
タA31の2値化処理が終了する。
At the same time, the error calculator 5 calculates the difference between the input pixel data A 31 and the output pixel data C 31, and stores it in the error data memory 6 as error data E 31 (= A 31 −C 31 ). In this case, the level of error data E 31 is -175
(= 80-255). Thus, the binarization processing of the third pixel data A 31 is completed.

【0039】以下、同様にして4番目以降の画素データ
の処理を行う。以上のアルゴリズムをまとめると次のよ
うになる。 誤差値の要素に対応する位置のパラメータ要素を掛
け、掛けたパラメータ要素の合計数で割る。それを平均
誤差値と称す。ただし、最初の画素の誤差値はゼロとす
る。 入力画像データとで求めた平均誤差値とを加え
る。 で求めた値と閾値レベルとを比較し、で求めた
値の方が小さかったら白レベル、大きいか等しければ黒
レベルとし、その値を出力値と称す。 で求めた値から出力値を引き、それを誤差値とす
る。 次の画素(右横)に移動し、に移る。なお、右端
の画素まで移動した場合は縦に一つ下がり、左端に戻
る。 〜の処理を全ての画素について行ったら終了す
る。
In the same manner, the fourth and subsequent pixel data are processed in the same manner. The above algorithm is summarized as follows. Multiply the parameter element of the position corresponding to the element of the error value and divide by the total number of the multiplied parameter elements. It is called the average error value. However, the error value of the first pixel is zero. The input image data and the average error value obtained from are added. The value obtained in step 1 is compared with the threshold level. If the value obtained in step 1 is smaller, the white level is set, and if it is larger, the black level is set, and the value is called an output value. The output value is subtracted from the value obtained in step 3, and this is taken as the error value. Move to the next pixel (on the right) and move to. When the pixel is moved to the rightmost pixel, the pixel is vertically lowered by one and returned to the leftmost. When the processes of to are performed for all the pixels, the process ends.

【0040】こうして入力画像メモリ1に格納されてい
る各画素の2値化処理を実行する。この過程において、
前述したように、ある特定の画素データが連続している
ことをセレクタ8が検知すると、セレクタ8はパラメー
タメモリ7に格納されている5つのパラメータ群Pa〜
Peの中から現在使用しているパラメータPaと異なる
他のパレメータ、例えばパラメータPcを選択し、現在
の注目画素の処理のみパラメータPcを使って平均誤差
演算部9で平均誤差の演算を行う。
In this way, the binarization processing of each pixel stored in the input image memory 1 is executed. In this process,
As described above, when the selector 8 detects that certain specific pixel data are continuous, the selector 8 causes the five parameter groups Pa to stored in the parameter memory 7 to be stored.
Another parameter different from the currently used parameter Pa, for example, the parameter Pc, is selected from Pe, and the average error calculator 9 calculates the average error using the parameter Pc only for the current pixel of interest.

【0041】なお、前述の実施例では、ある特定の画素
データが連続していることを検知して他のパレメータ群
を選択するようにしたが、これに限らず一の画素を処理
する毎に5つのパラメータ群の中からランダムに選び出
すようにしてもよい。あるいは、入力画像がカラー画像
の場合は、直前に処理した画素と現在処理している注目
画素とが近い色の場合に限りパラメータ群を変更するよ
うにしてもよい。
In the above-described embodiment, the continuation of certain specific pixel data is detected and another parameter group is selected. However, the present invention is not limited to this, and each time one pixel is processed. You may make it choose randomly from five parameter groups. Alternatively, when the input image is a color image, the parameter group may be changed only when the pixel processed immediately before and the pixel of interest currently processed are close in color.

【0042】[0042]

【発明の効果】本発明によれば、2値画像に規則的な模
様がそれほど生じなくなり、モアレが減少する。なお、
モアレが生じる画素を処理する場合に限定することによ
りモアレの出やすい部分だけを処理することができ、通
常の誤差拡散法の精度を損なわず、かつモアレが出にく
い2値化処理が実現できる。
According to the present invention, a regular pattern is less likely to appear in a binary image, and moire is reduced. In addition,
By limiting to the case of processing the pixels in which moire is generated, only the portion in which moire is likely to occur can be processed, and the binarization processing in which the accuracy of the usual error diffusion method is not impaired and moire is less likely to occur can be realized.

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

【図1】本発明による画像処理装置の一実施例を示す構
成図である。
FIG. 1 is a configuration diagram showing an embodiment of an image processing apparatus according to the present invention.

【図2】パラメータ群の一実施例を示すマトリクス図で
ある。
FIG. 2 is a matrix diagram showing an example of a parameter group.

【図3】本発明の動作を説明するための説明図である。FIG. 3 is an explanatory diagram for explaining the operation of the present invention.

【図4】本発明の動作を説明するための説明図である。FIG. 4 is an explanatory diagram for explaining the operation of the present invention.

【図5】本発明の動作を説明するための説明図である。FIG. 5 is an explanatory diagram for explaining the operation of the present invention.

【図6】従来の誤差拡散法による動作を説明するための
説明図である。
FIG. 6 is an explanatory diagram for explaining an operation by a conventional error diffusion method.

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

1 入力画像メモリ 2 加算部 3 閾値比較部 4 出力画像メモリ 5 誤差演算部 6 誤差データメモリ 7 パラメータメモリ 8 セレクタ 9 平均誤差演算部 Pa〜Pe パラメータ群 W 窓枠 1 Input Image Memory 2 Adder 3 Threshold Comparison 4 Output Image Memory 5 Error Calculator 6 Error Data Memory 7 Parameter Memory 8 Selector 9 Average Error Calculator Pa-Pe Parameter Group W Window Frame

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のパラメータ群を記憶するパラメー
タメモリと、 前記複数のパラメータ群から1のパラメータ群を選択す
るセレクタと、 前記セレクタで選択したパラメータ群のパラメータおよ
び誤差データメモリに記憶されている誤差データに基づ
いて平均誤差データを算出する平均誤差演算部と、 多階調の入力画素データおよび前記平均誤差データを加
算する加算部と、 前記加算部からの加算出力データを所定の閾値レベルと
比較して2値レベルに変換し2値画素データとして出力
する閾値比較部と、 前記多階調の画素データおよび前記閾値比較部からの2
値画素データに基づいて2値化処理に伴って生じる誤差
を誤差データとして算出し前記誤差データメモリに記憶
する誤差演算部と、 からなることを特徴とする画像処理装置。
1. A parameter memory for storing a plurality of parameter groups, a selector for selecting one parameter group from the plurality of parameter groups, and a parameter and error data memory for the parameter group selected by the selector. An average error calculator that calculates average error data based on the error data, an adder that adds multi-tone input pixel data and the average error data, and addition output data from the adder with a predetermined threshold level. A threshold comparing unit that compares and converts to binary level data and outputs as binary pixel data; and 2 from the multi-gradation pixel data and the threshold comparing unit.
An image processing apparatus comprising: an error calculation unit that calculates an error caused by binarization processing based on the value pixel data as error data and stores the error data in the error data memory.
【請求項2】 前記セレクタは、前記入力画素データの
レベルを監視し、予め定めたレベルの画素が連続した場
合に、異なるパラメータ群を選択することを特徴とする
請求項1記載の画像処理装置。
2. The image processing apparatus according to claim 1, wherein the selector monitors the level of the input pixel data and selects different parameter groups when pixels of a predetermined level are continuous. .
【請求項3】 前記セレクタは、前記入力画素データを
監視し、直前に処理した画素と現在処理している注目画
素とが近い色の場合に、異なるパラメータ群を選択する
ことを特徴とする請求項1記載の画像処理装置。
3. The selector monitors the input pixel data and selects a different parameter group when the pixel processed immediately before and the pixel of interest currently processed are of a similar color. The image processing apparatus according to item 1.
JP05264844A 1993-10-22 1993-10-22 Image processing device Expired - Fee Related JP3142699B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05264844A JP3142699B2 (en) 1993-10-22 1993-10-22 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05264844A JP3142699B2 (en) 1993-10-22 1993-10-22 Image processing device

Publications (2)

Publication Number Publication Date
JPH07123259A true JPH07123259A (en) 1995-05-12
JP3142699B2 JP3142699B2 (en) 2001-03-07

Family

ID=17409003

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05264844A Expired - Fee Related JP3142699B2 (en) 1993-10-22 1993-10-22 Image processing device

Country Status (1)

Country Link
JP (1) JP3142699B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6700680B2 (en) 2001-10-30 2004-03-02 Hitachi, Ltd. Image formation apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101396729B1 (en) 2007-01-24 2014-05-20 엘지디스플레이 주식회사 Driver IC for display panel

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6700680B2 (en) 2001-10-30 2004-03-02 Hitachi, Ltd. Image formation apparatus
US7151619B2 (en) 2001-10-30 2006-12-19 Hitachi, Ltd. Image formation apparatus

Also Published As

Publication number Publication date
JP3142699B2 (en) 2001-03-07

Similar Documents

Publication Publication Date Title
KR100280909B1 (en) Image rendering system
EP0356225B1 (en) Image processing apparatus
US5201013A (en) Dither processing method
JPH07288689A (en) Device and method for binarization processing of image signal
EP0454495A1 (en) Half-tone image processing system
JP3982874B2 (en) Image data processing method and system
JPH07307866A (en) Processing unit and method for binarizing image signal
JP3142699B2 (en) Image processing device
JP2927155B2 (en) Image processing device
JP3426747B2 (en) Color halftone area determination device
JP2003110852A (en) Halftone processing method and processor
JP2000270210A (en) Picture processor
JP3816642B2 (en) Image data contour correction method and apparatus
US7079699B2 (en) Multi-valued image conversion device, multi-valued image conversion program, and multi-valued image conversion method
JP2878695B2 (en) Image processing apparatus and multi-value image estimation method
JPH11150659A (en) Method for processing image
JP2608404B2 (en) Image processing device
JP4152337B2 (en) Image processing device
JP3742227B2 (en) Image data binarization processing circuit and method
JPH09247450A (en) Image processing unit
JP2836992B2 (en) Image scaling processor
JPH1188683A (en) Image-processing unit
JPH0795400A (en) Picture processing unit
JPH09307756A (en) Image processing unit
JPH09233327A (en) Dither matrix preparing method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071222

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081222

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091222

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091222

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101222

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees