JPH0426277A - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JPH0426277A JPH0426277A JP2130701A JP13070190A JPH0426277A JP H0426277 A JPH0426277 A JP H0426277A JP 2130701 A JP2130701 A JP 2130701A JP 13070190 A JP13070190 A JP 13070190A JP H0426277 A JPH0426277 A JP H0426277A
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- calculation
- density data
- laplacian
- interest
- 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
Links
- 238000003672 processing method Methods 0.000 title claims description 10
- 238000004364 calculation method Methods 0.000 claims description 45
- 238000009792 diffusion process Methods 0.000 claims description 20
- 239000011159 matrix material Substances 0.000 claims description 15
- 238000000034 method Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 241000896693 Disa Species 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 210000003127 knee Anatomy 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[概要]
濃度データを2値化して擬似中間調画像を得る時の画像
処理方法に関し、
良好な擬似中間調画像を得ることを目的とし、濃度デー
タラインバッファに格納されている濃度データに対して
、着目画素とその周辺の画素との間でラプラシアン演算
を行い、濃度データのビット数より定まる固定値とラプ
ラシアン演算結果との差分演算を行い、その差分演算結
果を2値化用閾値として着目画素の2値化を行い、着L
1画素の濃度データと2値化の結果得られたデータとの
差分演算を行い、前記差分演算を行ったものを誤差とし
て誤差拡散マトリクスを用いてその周辺の画素に誤差拡
散演算を行って誤差配分を行うように構成する。[Detailed Description of the Invention] [Summary] Regarding an image processing method when obtaining a pseudo halftone image by binarizing density data, the present invention relates to an image processing method for obtaining a pseudo halftone image by binarizing density data. For the density data, perform Laplacian calculation between the pixel of interest and its surrounding pixels, calculate the difference between the fixed value determined by the number of bits of the density data and the Laplacian calculation result, and divide the difference calculation result into 2 Binarize the pixel of interest as a threshold value for value conversion, and
A difference calculation is performed between the density data of one pixel and the data obtained as a result of binarization, and the result of the difference calculation is used as an error, and an error diffusion calculation is performed on surrounding pixels using an error diffusion matrix to calculate the error. Configure to make allocations.
[産業上の利用分野コ
本発明は濃度データを2値化して擬似中間調画像を得る
時の画像処理方法に関する。[Industrial Field of Application] The present invention relates to an image processing method for obtaining a pseudo halftone image by binarizing density data.
ディジタル画像処理を行う装置、例えばディジタル複写
機、イメージスキャナ、ファクシミリ装置等においては
、擬似中間調画像(0と1の2値で表現するもの)を得
るために中間調画像処理か行われる。In devices that perform digital image processing, such as digital copying machines, image scanners, facsimile machines, etc., halftone image processing is performed to obtain pseudo halftone images (expressed using binary values of 0 and 1).
[従来の技術]
この種の装置における中間調画像処理方式として、従来
よりデイサ法が広く一般的に用いられている。第5図は
デイサ法の説明図である。(a)に示す原画に対し、(
b)に示すような閾値(4×4のデイザマトリクス1太
い実線で囲った部分)で2値化すると、(C)に示すよ
うな2値化像か得られる。ここで、(b)のデイサマト
リクスは4×4画素を単位として繰返されている。・(
“1”)は画素濃度≧閾値の時に得られ、○(“0“)
は画素濃度く閾値の時に得られる。(a)において、枡
目の1つか1画素を表している。[Prior Art] As a halftone image processing method in this type of apparatus, the dither method has been widely and generally used. FIG. 5 is an explanatory diagram of the DISA method. For the original picture shown in (a), (
When the image is binarized using a threshold value as shown in b) (the portion surrounded by a thick solid line in the 4×4 dither matrix 1), a binarized image as shown in (C) is obtained. Here, the dither matrix in (b) is repeated in units of 4×4 pixels.・(
“1”) is obtained when pixel density ≧ threshold value, ○ (“0”)
is obtained when the pixel density is less than the threshold value. In (a), one square or one pixel is represented.
以上説明したようなデイサ法は、ハードウェアの構成が
簡単なため、ローコストで擬似的な中間調表現か可能で
あるという長所がある。その反面、■原稿が印刷等の網
点画像の時、処理された画像に原稿には無い周期的な縞
模様(モアレ)が発生する。この原因は、第5図(b)
に示すようにデイサマトリクスか周期性を持つことに基
づく。The dither method as described above has the advantage of being able to express pseudo halftones at low cost because the hardware configuration is simple. On the other hand, (1) When the original is a halftone image such as a printed image, periodic striped patterns (moiré) that are not present in the original occur in the processed image. The cause of this is shown in Figure 5(b).
It is based on having a dasa matrix or periodicity as shown in .
■原稿に文字、線画等か含まれた場合、その部分の処理
結果が切れ切れになり、著しく再現性が悪い。■If the original contains text, line drawings, etc., the processing results for those parts will be cut off and reproducibility will be extremely poor.
■多階調を得るために、読取り系の分解能に対してマト
リクスサイズを大きくしすぎると、解像度か劣化するた
め、多階調と高解像度を両立させることかできない。■If the matrix size is made too large relative to the resolution of the reading system in order to obtain multiple gradations, the resolution will deteriorate, making it impossible to achieve both multiple gradations and high resolution.
という問題かある。There is a problem.
一方、このような問題を解決するため、つまり多階調と
高解像度を両立させることかできる中間調画像処理方式
として誤差拡散法と呼ばれる方式かある。この方式は、
R,W、Floid and L、Steinbe
rg”An Adaptive Algorith
m for 5pecial Grey 5c
ale”1975 SID Internatio
nal Symposium Digest o
f TechrlicaI Papers、4.3
.pp36−37 (Apr、1975)で発表された
ものである。On the other hand, in order to solve this problem, there is a method called the error diffusion method, which is a halftone image processing method that can achieve both multi-gradation and high resolution. This method is
R,W,Floyd and L,Steinbe
rg"An Adaptive Algorithm
m for 5special Gray 5c
ale”1975 SID International
nal Symposium Digest o
f Techrlica I Papers, 4.3
.. It was published in pp 36-37 (Apr, 1975).
第6図は誤差拡散法の説明図である。今、第6図に示す
ような濃度データD 1.1〜D33かあるものし、D
22(斜線で示す)が着目画素である。FIG. 6 is an explanatory diagram of the error diffusion method. Now, there are density data D1.1 to D33 as shown in FIG.
22 (indicated by diagonal lines) is the pixel of interest.
これらデータDll〜D33は例えば8ビツトデータで
あるものとする。(b)は着目画素の濃度値D22が2
25であったものとする。この時、フルスケール値25
5からの差分は−30である。It is assumed that these data Dll to D33 are, for example, 8-bit data. In (b), the density value D22 of the pixel of interest is 2.
25. At this time, the full scale value is 25
The difference from 5 is -30.
一方、(C)に示すように着目画素(斜線で示す)より
も後にくる画素D23〜D33に対して図に示すような
重み付けをする。つまり、着目画素に最も近い画素D2
3とD32に重み2を、その他の画素D31とD33に
重み1を割り当てる。On the other hand, as shown in (C), pixels D23 to D33 that come after the pixel of interest (indicated by diagonal lines) are weighted as shown in the figure. In other words, the pixel D2 closest to the pixel of interest
A weight of 2 is assigned to pixels D3 and D32, and a weight of 1 is assigned to the other pixels D31 and D33.
着目画素D22よりも前の画素D11〜D21を考慮に
入れていないのは、これら画素は既に2値化が終わって
いる画素であるからである。The reason why the pixels D11 to D21 before the pixel of interest D22 are not taken into consideration is because these pixels have already been binarized.
前記した差分−30を誤差と見て、この誤差を着目画素
D22の周囲の画素D23〜D33に次のようにして割
り当てる。The above-mentioned difference -30 is regarded as an error, and this error is assigned to the pixels D23 to D33 around the pixel of interest D22 in the following manner.
D23・−30X2/6−−ICI
D31 ;−30xl/6−−5
D32 ニー30X2/6==−] 0D33、−30
X1/6−−5
この結果、画素D23〜D33までの濃度値D23−〜
D33′はそれぞれ以下のようになる。D23・-30X2/6--ICI D31 ;-30xl/6--5 D32 Knee 30X2/6==-] 0D33, -30
X1/6--5 As a result, the density value D23-- of pixels D23 to D33
D33' are as follows.
D2B−=D23−10
D31−−D31−5
D32−−D32−10
D33−=D3B−5
このようにして求まった濃度値を所定の閾値(中間濃度
値。例えば8ビツトデータの場合127)により2値化
する。D2B-=D23-10 D31--D31-5 D32--D32-10 D33-=D3B-5 The density value thus determined is determined by a predetermined threshold value (intermediate density value, for example 127 in the case of 8-bit data). Binarize.
以上、説明したように、誤差拡散法は2値化の際に発生
する濃度誤差を周辺の画素に拡散し、原画像と出力画像
の濃度が保存されるようにしたことを特徴とする方式で
あり、デイザ法のようにマトリクスサイズにより一義的
に表現階調が決まってしまうことがなく、またモアレも
発生しない等、階調性1解像度の点て勝れた方式である
。As explained above, the error diffusion method is a method characterized by diffusing the density error that occurs during binarization to surrounding pixels so that the density of the original image and output image is preserved. Unlike the dither method, the expressed gradation is not determined uniquely by the matrix size, and moiré does not occur, making it an excellent method in terms of gradation and single resolution.
[発明が解決しようとする課題]
しかし2なから、誤差拡散法も以下に示すような問題か
ある。[Problems to be Solved by the Invention] However, since 2, the error diffusion method also has the following problems.
■単純2値化処理に比べると、また文字、線画の再現性
が劣っている。■Compared to simple binarization processing, the reproducibility of characters and line drawings is also inferior.
■濃度が低い部分ては、誤差が漸次蓄積されてから“1
”に弯わるので、ドツトの出現に空間的な遅れか生じる
。■In areas with low density, errors gradually accumulate and then
”, there is a spatial delay in the appearance of the dot.
本発明はこのような課題に鑑みてなされたものであって
、文字、線画部分及び写真、中間調部の両方共に良好な
擬似中間調画像を得ることかできる画像処理方法を提供
することを目的としている。The present invention has been made in view of such problems, and an object of the present invention is to provide an image processing method that can obtain good pseudo-halftone images for both characters, line drawing parts, photographs, and halftone parts. It is said that
[課題を解決するための手段]
第1図は本発明方法の原理を示すフローチャートである
。本発明は、
濃度データラインバッファに格納されている濃度データ
に対して、着目画素とその周辺の画素との間でラプラシ
アン演算を行い(ステップ1)、濃度データのビット数
より定まる固定値とラプラシアン演算結果との差分演算
を行い、その差分演算結果を2値化用閾値として着目画
素の2値化を行い(ステップ2)、
着目画素の濃度データと2値化の結果得られたデータと
の差分演算を行い(ステップ3)、前記差分演算を行っ
たものを誤差として誤差拡散マトリクスを用いてその周
辺の画素に誤差拡散演算を行って誤差配分を行う(ステ
ップ4)ようにしたことを特徴としている。[Means for Solving the Problems] FIG. 1 is a flowchart showing the principle of the method of the present invention. The present invention performs a Laplacian calculation between the pixel of interest and its surrounding pixels on the density data stored in the density data line buffer (step 1), and calculates a fixed value determined by the number of bits of the density data and the Laplacian. A difference calculation is performed with the calculation result, and the pixel of interest is binarized using the difference calculation result as a threshold for binarization (step 2), and the density data of the pixel of interest and the data obtained as a result of the binarization are A difference calculation is performed (step 3), and the result of the difference calculation is used as an error, and an error diffusion calculation is performed on surrounding pixels using an error diffusion matrix to perform error distribution (step 4). It is said that
[作用]
画素濃度データに対して着目画素とその周辺の画素との
間でラプラシアン演算を行い、濃度データのビット数よ
り定まる固定値と前記ラプラシアン演算結果との差分演
算を行い、その差分演算結果を2値化用閾値として用い
るようにする。ラプラシアン演算は、離散的空間上では
着目画素と周辺画素の濃度との差分の総和として求めら
れ、ラプラシアン演算結果はエツジ量を表し、文字1線
画等の輪郭部分てその絶対値か大きくなる。即ち、この
値を基に2値化用閾値を変化させることにより、黒い部
分は2値化の閾値が小さくなり、白い部分は2値化の閾
値が大きくなるので、特徴点(黒と白の輪郭)が強調さ
れ、良好な擬似中間調画像を得ることかできる。[Operation] A Laplacian calculation is performed on the pixel density data between the pixel of interest and its surrounding pixels, a difference calculation is performed between a fixed value determined by the number of bits of the density data and the Laplacian calculation result, and the difference calculation result is calculated. is used as the threshold for binarization. The Laplacian operation is obtained as the sum of the differences between the densities of the pixel of interest and surrounding pixels on a discrete space, and the Laplacian operation result represents the amount of edge, and its absolute value increases in the contour part of a single line drawing of a character. In other words, by changing the threshold for binarization based on this value, the threshold for binarization becomes smaller for black parts, and the threshold for binarization becomes larger for white parts. contours) are emphasized, and a good pseudo-halftone image can be obtained.
[実施例]
以下、図面を参照して本発明の実施例を詳細に説明する
。[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.
第2図はラプラシアン演算を行うラプラシアンフィルタ
(係数マトリクス)の例を示す図で(a)〜(C)まで
の3種顕示している。ラプラシアン演算は、離散空間上
では前述したように着目画素と周辺画素の濃度の差分の
総和として求められる。FIG. 2 is a diagram showing an example of a Laplacian filter (coefficient matrix) that performs a Laplacian operation, showing three types (a) to (C). In the discrete space, the Laplacian operation is calculated as the sum of the differences in density between the pixel of interest and surrounding pixels, as described above.
いずれも中心の画素か着目画素である。例えば、(a)
を例にとって示すと、図に示す例では、着1」画素の上
下左右の画素のみか対象となり、ラプラシアン演算を行
うにあたり、着目画素は4回加算され、上下左右の画素
は1回減算されることを示している。In either case, the pixel is the center pixel or the pixel of interest. For example, (a)
For example, in the example shown in the figure, only the pixels to the top, bottom, left, and right of the 1st pixel are considered, and when performing the Laplacian operation, the pixel of interest is added four times, and the pixels to the top, bottom, left, and right are subtracted once. It is shown that.
例えば、第3図に示すような濃度データがあったものと
すると、この濃度データに第2図(a)を適用すると、
差分演算は、
(30−10) +(30−20)+ (3(L−8)
+ (30−8)=74
となる。実際には二の74は差分結果として大きすぎる
ので、これにある係数K(例えば0.5)を乗算すると
等の処理を行う。For example, assuming that there is density data as shown in Figure 3, if Figure 2 (a) is applied to this density data,
The difference calculation is (30-10) + (30-20) + (3(L-8)
+ (30-8)=74. In reality, 2/74 is too large as a difference result, so processing such as multiplying it by a certain coefficient K (for example, 0.5) is performed.
第4図は本発明を実施する回路構成例を示す図である。FIG. 4 is a diagram showing an example of a circuit configuration for implementing the present invention.
この実施例は、ラプラシアン演算により2値化閾値を補
正し、誤差拡散法により2値化処理を行うようになって
いる。先ず、図示(2ない画像読取り部から画像を主走
査方向にN(Nは整数)ドツト並んたラインイメージセ
ンサて読取られ、濃度に応して量子化された原画データ
(i小濃度0、最大濃度255)が入力される。この原
画データは濃度データラインバッファ1の対応する位置
に格納される。図では、濃度データラインバ・ノファ1
は3×3マトリクスの部分を示している。In this embodiment, the binarization threshold is corrected by Laplacian calculation, and the binarization process is performed by the error diffusion method. First, an image is read by a line image sensor in which N (N is an integer) dots are lined up in the main scanning direction from an image reading unit (not shown in the figure), and the original image data is quantized according to the density (i: small density: 0, maximum density: Density 255) is input. This original image data is stored in the corresponding position of the density data line buffer 1. In the figure, the density data line buffer 1
indicates a 3×3 matrix part.
この濃度データラインバッファ1は例えばRAMで構成
され、今処理する着目画素とその前後の計3ライン分の
濃度データを蓄積するものである。The density data line buffer 1 is composed of, for example, a RAM, and stores density data for the pixel of interest to be processed now and a total of three lines before and after it.
つまり、列方向が第(n −1) ドツト第nド・ソ
ト第(n+1) ドツトの3個、行方向が第(ml)
ライン1第mライン、第(m+1)ラインの3個である
。これらの画素を順にD□−1,n−1〜[)z+1.
n”lとする。着目画素は第mライン目の第nドツトの
D4.、となる。なお、m、nは正の整数であり、1≦
n≦Nとする。In other words, the column direction is the (n-1)th dot, the nth dot, the so-so (n+1)th dot, and the row direction is the (ml)th dot.
There are three lines: line 1, mth line, and (m+1)th line. These pixels are sequentially D□-1, n-1 to [)z+1.
n"l.The pixel of interest is D4. of the n-th dot of the m-th line. Note that m and n are positive integers, and 1≦
Let n≦N.
着目画素とその周辺画素の濃度データは直ちにラプラシ
アン演算部2に入力され、ラプラシアン演算
K f (D、、、、 −D、、−、、、) + (D
、、、、 −り、、。The density data of the pixel of interest and its surrounding pixels are immediately input to the Laplacian calculation unit 2, and the Laplacian calculation K f (D, , , −D, , −, , , ) + (D
,,,, -ri,,.
1)+
(I)ffi、、−D、、、、よ) + (p、、、、
、−D、、。1.。))が行われる。ここで、Kは任意
の整数である。1) + (I)ffi,, -D,,,,yo) + (p,,,,
,-D,,. 1. . )) is carried out. Here, K is an arbitrary integer.
ラプラシアン演算部2のこの値を基準閾値(例えば12
7)に加算した値を2値化閾値として2値化部3に入力
する。2値化部3では、濃度データp0.。を前記2値
化閾値THと比較し、(1)濃度データD0.。>TH
のとき2値データ0ffi、。−255(黒)(2)濃
度データD1、≦THのとき
2値データ0ffi、。−0(白)
のように2値データ07.。を得る。This value of the Laplacian calculation unit 2 is set as a reference threshold (for example, 12
7) is input to the binarization unit 3 as a binarization threshold. In the binarization section 3, the density data p0. . is compared with the binarization threshold TH, and (1) density data D0. . >TH
When , binary data is 0ffi. -255 (black) (2) Binary data 0ffi when density data D1, ≦TH. Binary data 07. -0 (white). . get.
この2値データ0111.11は続く2値デ〜り出力部
4によって0.、、、−255のとき“]′(黒)O□
1、−〇のとき“O” (白)として出力される。This binary data 0111.11 is converted into 0.0 by the subsequent binary data output section 4. ,,, when -255 "]' (black) O□
When the value is 1, -0, it is output as “O” (white).
また、2値化部3の出力は演算器5の負入力に入ってい
る。演算器5の正入力には着目画素の濃度データD7、
。が入っているので、演算器5の出力(2値化誤差E、
、fi)は、
E、、、−Dffi、、−0,、。Further, the output of the binarization section 3 is input to the negative input of the arithmetic unit 5. The positive input of the arithmetic unit 5 contains the density data D7 of the pixel of interest,
. is included, the output of the calculator 5 (binarization error E,
, fi) is E,, -Dffi,, -0,,.
となる。becomes.
続く誤差配分演算部6では、この2値化誤差E、7を誤
差拡散マトリクス7に示す所定の重み付は係数により未
処理の周辺画素に加重配分するための値を算出する。続
く、演算器8ては、元の濃度データに対して加重配分値
を加算して新しい濃度データを求める。その具体的動作
については、第6図で説明した。今、2値化誤差の配分
前、配分後で周辺画素の濃度データは以下のように修i
Fされる。Subsequently, the error distribution calculation unit 6 calculates a value for weight distribution of the binarization error E, 7 to unprocessed peripheral pixels using a predetermined weighting coefficient shown in the error diffusion matrix 7. Subsequently, the calculator 8 adds the weighted distribution value to the original density data to obtain new density data. The specific operation has been explained with reference to FIG. Now, before and after binarization error allocation, the density data of surrounding pixels is modified as follows.
F is given.
D□。+l −=D□、。41+(K□□41/
Σに=、+) ・E□。D□. +l −=D□,. 41+(K□□41/
Σ =, +) ・E□.
D、+1. R−1−Dm−1,−1”(K、、、、、
、/Σに、、、)−E、、、。D, +1. R-1-Dm-1,-1'' (K,,,,,
, /Σ, , )−E, , .
=Dい、、、、+ (K、、、、、/Σに、、、)−E、、。=D,,,,+ (K, , , , /Σ, , )−E, .
−D m−H,n。l+ Dffi。。-D m-H,n. l+ Dffi. .
Do、1 (K□a+fi++ /Σに、、I) ・Eo、。Do, 1 (K□a+fi++ /Σ,,I) ・Eo,.
但し、Σに、、、−に、、、、、、+に、、、n−、+
につ−、、+にイ。1.。41
以上説明したシーケンスを主走査方向及び副走査方向に
順次繰返して2値データを算出することにより、擬似中
間調を表す出力画像か得られる。However, for Σ,,,-,,,,,,+,,,n-,+
Nitsu-,,+nii. 1. . 41 By sequentially repeating the above-described sequence in the main scanning direction and the sub-scanning direction to calculate binary data, an output image representing a pseudo halftone can be obtained.
以上の説明を具体的に示す。例えば、ラプラシアン演算
部2で求めたラプラシアン演算結果か例えば第3図に示
すように74であったものとする。The above explanation will be specifically explained. For example, assume that the Laplacian calculation result obtained by the Laplacian calculation section 2 is 74 as shown in FIG.
係数Kを0. 5とすると、0.5X74=37となる
。濃度データのビットにより定まる固定値が127であ
ったものとすると、求める閾値THは、TH−1,27
−37−90となる。閾値が下の方に下かっており、今
まで白と判定された領域も黒と判定されるようになり、
線画等の輪郭か強調される方向に2値化されることにな
る。Set the coefficient K to 0. If it is 5, then 0.5×74=37. Assuming that the fixed value determined by the density data bits is 127, the threshold value TH to be found is TH-1, 27
-37-90. The threshold value has been lowered, and areas that were previously judged as white are now judged as black.
The image is binarized in a direction that emphasizes the outline of a line drawing or the like.
ここで、着目画素の濃度Dm、、、が100であったも
のとすると、100を閾値TH=90と比較することに
なるので、2値化部3の2値化結果は“1”となる。従
って、この場合には演算器5の出力Em、nは100−
255−−155となる。Here, assuming that the density Dm,... of the pixel of interest is 100, 100 will be compared with the threshold value TH=90, so the binarization result of the binarization unit 3 will be "1". . Therefore, in this case, the output Em,n of the arithmetic unit 5 is 100-
255--155.
なお、2値化出力Oイ、の“1”を255と見なしてい
る。この−155を誤差と見なして誤差拡散マトリクス
7を用いた誤差拡散演算を行って、着目画素DIR,1
1より後の画素に誤差配分されることになる。なお、2
値化出力O4,。が“0”の場合には演算器5の出力E
。。は濃度データD7.。Note that "1" of the binarized output Oi is regarded as 255. Regarding this -155 as an error, an error diffusion calculation using error diffusion matrix 7 is performed, and the pixel of interest DIR,1
The error will be allocated to pixels after 1. In addition, 2
Valued output O4,. is “0”, the output E of the arithmetic unit 5
. . is the concentration data D7. .
そのものとなる。Become that.
上述の実施例では、3×3マトリクスの画像データに対
して本発明を適用した場合を例にとったが、本発明はこ
れに限るものではなく、その他の任意のマトリクスの画
像データに対して適用することができる。In the above embodiment, the present invention is applied to image data in a 3×3 matrix, but the present invention is not limited to this, and can be applied to image data in any other matrix. Can be applied.
また、本発明では、誤差拡散演算を行った濃度データに
対してラプラシアン演算を行った場合を例にとったが、
誤差拡散を行わない原濃度データに対してラプラシアン
演算を行うようにすることもてきる。Furthermore, in the present invention, an example is given in which a Laplacian operation is performed on density data that has been subjected to an error diffusion operation.
It is also possible to perform Laplacian calculation on original density data without error diffusion.
また、本発明ではラプラシアン演算を着し]画素の前後
左右の隣接画素により行った場合を例にとったが、本発
明はこれに限るものではなく、更に広範囲の周辺画素に
よりラプラシアン演算を行うようにしてもよい。Furthermore, in the present invention, an example is given in which the Laplacian operation is performed using adjacent pixels on the front, rear, left, and right sides of a pixel, but the present invention is not limited to this, and it is possible to perform the Laplacian operation using a wider range of surrounding pixels. You can also do this.
また、2値化閾値を求める演算もラプラシアン演算に限
るものではなく、その他の各種の閾値決定演算を用いる
ようにしてもよい。例えば、画素全体の濃度の平均値を
求めて、この平均値を着[1画素の周辺の位置に応じて
重み付は配分するような演算も用いることもてきる。Further, the calculation for determining the binarization threshold is not limited to the Laplacian calculation, and various other threshold determination calculations may be used. For example, calculations such as calculating the average value of the density of the entire pixel and applying this average value [weighting may be distributed depending on the position around one pixel] may also be used.
[発明の効果コ
以上、詳細に説明したように、本発明によれば誤差拡散
法にラプラシアン演算手法を加味することにより、良好
な擬似中間調画像を得ることかできる。[Effects of the Invention] As described above in detail, according to the present invention, by adding the Laplacian calculation method to the error diffusion method, it is possible to obtain a good pseudo-halftone image.
第1図は本発明方法の原理を示すフローチャート、
第2図はラプラシアンフィルタの例を示す図、第3図は
ラプラシアン演算の説明図、
第4図は本発明を実施する回路構成例を示す図、第5図
はデイサ法の説明図、
第6図は誤差拡散法の説明図である。
第4図において、
1は濃度データラインバッファ、
2はラプラシアン演算部、
3は2値化部、
4は2値データ出力部、
5は演算器、
6は誤差配分演算部、
7は誤差拡散マトリクス、
8は演算器である。Fig. 1 is a flowchart showing the principle of the method of the present invention, Fig. 2 is a diagram showing an example of a Laplacian filter, Fig. 3 is an explanatory diagram of Laplacian operation, and Fig. 4 is a diagram showing an example of a circuit configuration for implementing the present invention. , FIG. 5 is an explanatory diagram of the DISA method, and FIG. 6 is an explanatory diagram of the error diffusion method. In FIG. 4, 1 is a density data line buffer, 2 is a Laplacian calculation unit, 3 is a binarization unit, 4 is a binary data output unit, 5 is a calculation unit, 6 is an error distribution calculation unit, and 7 is an error diffusion matrix. , 8 is an arithmetic unit.
Claims (3)
データに対して、着目画素とその周辺の画素との間でラ
プラシアン演算を行い(ステップ1)、 濃度データのビット数より定まる固定値と ラプラシアン演算結果との差分演算を行い、その差分演
算結果を2値化用閾値として着目画素の2値化を行い(
ステップ2)、 着目画素の濃度データと2値化の結果得ら れたデータとの差分演算を行い(ステップ3)前記差分
演算を行ったものを誤差として誤差拡散マトリクスを用
いてその周辺の画素に誤差拡散演算を行って誤差配分を
行う(ステップ4)ようにしたことを特徴とする画像処
理方法。(1) Perform Laplacian calculation between the pixel of interest and its surrounding pixels on the density data stored in the density data line buffer (step 1), and perform Laplacian calculation with a fixed value determined by the number of bits of the density data. Perform a difference calculation with the result, and use the difference calculation result as a threshold for binarization to binarize the pixel of interest (
Step 2) Performs a difference calculation between the density data of the pixel of interest and the data obtained as a result of binarization (Step 3) The result of the difference calculation is used as an error and applied to surrounding pixels using an error diffusion matrix. An image processing method characterized in that error distribution is performed by performing error diffusion calculation (step 4).
ータではなく、原濃度データに対して行うようにしたこ
とを特徴とする請求項1記載の画像処理方法。(2) The image processing method according to claim 1, wherein the Laplacian operation is performed on original density data rather than on density data after error diffusion calculation.
演算を行うようにしたことを特徴とする請求項1記載の
画像処理方法。(3) The image processing method according to claim 1, wherein various threshold determination calculations are performed instead of the Laplacian calculation.
Priority Applications (5)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2130701A JPH0426277A (en) | 1990-05-21 | 1990-05-21 | Image processing method |
US07/690,574 US5208684A (en) | 1990-04-26 | 1991-04-24 | Half-tone image processing system |
EP91303820A EP0454495B1 (en) | 1990-04-26 | 1991-04-26 | Half-tone image processing system |
DE69116924T DE69116924T2 (en) | 1990-04-26 | 1991-04-26 | Halftone image processing system |
KR1019910006752A KR950006440B1 (en) | 1990-04-26 | 1991-04-26 | Halt-tone image processing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2130701A JPH0426277A (en) | 1990-05-21 | 1990-05-21 | Image processing method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0426277A true JPH0426277A (en) | 1992-01-29 |
Family
ID=15040554
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2130701A Pending JPH0426277A (en) | 1990-04-26 | 1990-05-21 | Image processing method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0426277A (en) |
-
1990
- 1990-05-21 JP JP2130701A patent/JPH0426277A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4668995A (en) | System for reproducing mixed images | |
US5363213A (en) | Unquantized resolution conversion of bitmap images using error diffusion | |
KR960014303B1 (en) | Image processing device for resolution conversion | |
US5245678A (en) | Image conversion with lossy adaptive error diffusion | |
US5208684A (en) | Half-tone image processing system | |
EP0696133B1 (en) | A system and method for redistributing error values from an error diffusion process | |
JP2974363B2 (en) | Image processing device | |
US6445464B1 (en) | Image processing method and apparatus | |
US6307647B1 (en) | Digital halftoning with error diffusion | |
Singh | Generalized error diffusion method for halftoning | |
US6181827B1 (en) | Image processing method and apparatus | |
JPH0426277A (en) | Image processing method | |
JP3245600B2 (en) | Image processing device | |
US20040075868A1 (en) | Apparatus for eliminating moire in scanned image and method for the same | |
JP3043033B2 (en) | Image processing method | |
JP2717020B2 (en) | Image processing device | |
JP2860039B2 (en) | Pseudo halftone image reduction device | |
JP2857906B2 (en) | Halftone binarization processor | |
JPH0318177A (en) | Picture processor | |
JP2608404B2 (en) | Image processing device | |
JPH1188693A (en) | Pseudo-gradation processing unit | |
JP2946217B2 (en) | Image processing device | |
JPS6029872A (en) | Method and device for picture signal processing | |
JP2883146B2 (en) | Binarization method of gradation image | |
JPH06292005A (en) | Picture signal processing unit |