JPH0622138A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH0622138A
JPH0622138A JP4174449A JP17444992A JPH0622138A JP H0622138 A JPH0622138 A JP H0622138A JP 4174449 A JP4174449 A JP 4174449A JP 17444992 A JP17444992 A JP 17444992A JP H0622138 A JPH0622138 A JP H0622138A
Authority
JP
Japan
Prior art keywords
edge
data
pixel
value
average value
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
JP4174449A
Other languages
Japanese (ja)
Inventor
Takahiro Kiyohara
崇広 清原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP4174449A priority Critical patent/JPH0622138A/en
Publication of JPH0622138A publication Critical patent/JPH0622138A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To improve the picture quality by adding most proper data to a noted picture element to suppress the generation of moire and improving the reproducibility of an edge of a character and a drawing. CONSTITUTION:The processing unit is provided with an edge quantity arithmetic operation circuit 3 having plural edge emphasis filters to calculate an edge quantity of picture element data subjected to edge emphasis, a selector 4 selecting one of plural calculated edge quantities in the circuit 3, and an adder 5 adding the edge quantity selected by the selector 4 or data being a prescribed number of multiple of the edge quantity to the picture element data so as to emphasize the edge. In the case of, e.g. a 3X3 picture element matrix, it is provided with line buffers LB1, LB2 storing picture data by one line respectively and registration matrices R1-R9 storing data of a picture element matrix pattern, picture data P being a processing object are transferred serially in the unit of picture elements to the register R1 and the buffer LB1. Picture data from the LB1 are inputted to the register R4 and the buffer LB2 synchronously with the transfer of the data P, and the transfer is implemented for the other registers similarly.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はファクシミリ等の画像処
理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus such as a facsimile.

【0002】[0002]

【従来の技術】従来ファクシミリ等の画像処理装置にお
けるエッジ強調処理においては、図12のようなラプラ
シアンフィルタを用いてエッジ量を算出し、得られたエ
ッジ量の値、あるいはエッジ量を定数倍した値を注目画
素に加える処理を行っていた。
2. Description of the Related Art In edge enhancement processing in an image processing apparatus such as a conventional facsimile, an edge amount is calculated using a Laplacian filter as shown in FIG. 12, and the obtained edge amount value or the edge amount is multiplied by a constant. The process of adding the value to the pixel of interest was performed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上記従来
例においては、画像データの高域成分を強調するため、
網点画像の場合には網点周期と読み取り時の解像度との
関係でモアレが発生する場合があり、画質が劣化するな
どの問題点があった。また前記問題点を解決するため
に、図13のようなラプラシアンフィルタを用いる場合
もあるが、ラインバッファが多数必要であり、ハード規
模が大きくなり、コストアップにつながるなどの問題点
があった。
However, in the above conventional example, in order to emphasize the high frequency component of the image data,
In the case of a halftone dot image, moire may occur due to the relationship between the halftone dot period and the resolution at the time of reading, and there is a problem that the image quality deteriorates. Further, in order to solve the above-mentioned problem, a Laplacian filter as shown in FIG. 13 may be used, but a large number of line buffers are required, the hardware scale becomes large, and the cost increases.

【0004】そこで本発明の目的は以上のような問題を
解消した画像処理装置を提供することにある。
Therefore, an object of the present invention is to provide an image processing apparatus which solves the above problems.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
本発明はエッジ強調する画素データのエッジ量を算出す
るための複数のエッジ強調フィルタと、該複数のエッジ
強調フィルタにより算出された複数のエッジ量のうちの
1つを選択する選択手段と、該選択手段により選択され
たエッジ量あるいは当該エッジ量の定数倍のデータを前
記画素データに加算してエッジ強調するエッジ強調手段
とを具えたことを特徴とし、さらに、主走査方向あるい
は副走査方向に1列あるいは複数列の画素データの平均
値を算出する平均値算出手段と、該平均値算出手段によ
り得られた平均値と、前記画素データのうちの注目画素
の値あるいは注目画素を含む複数画素のデータの平均値
との差分値を算出する差分値算出手段と、該差分値算出
手段により得られた差分値をあらかじめ定められたしき
い値と比較する比較手段と、該比較手段により得られた
比較結果に基づいて前記注目画素に対してエッジ強調す
る手段とを具えたことを特徴とし、さらに、主走査方向
あるいは副走査方向に1列あるいは複数列の画素データ
の平均値を算出する平均値算出手段と、該平均値算出手
段により得られた平均値と、前記画素データのうちの注
目画素の値あるいは注目画素を含む複数画素のデータの
平均値との差分値を算出する差分値算出手段と、該差分
値算出手段により得られた差分値をあらかじめ定められ
たしきい値と比較する比較手段と、エッジ強調する画素
データのエッジ量を算出するための複数のエッジ強調フ
ィルタと、該複数のエッジ強調フィルタにより算出され
た複数のエッジ量のうちの1つを前記比較手段により得
られた比較結果に基づいて選択する選択手段と、該選択
手段により選択されたエッジ量あるいは当該エッジ量の
定数倍のデータを前記画素データに加算してエッジ強調
するエッジ強調手段とを具えたことを特徴とする。
To achieve the above object, the present invention provides a plurality of edge enhancement filters for calculating the edge amount of pixel data to be edge enhanced, and a plurality of edge enhancement filters calculated by the plurality of edge enhancement filters. The present invention further comprises a selecting means for selecting one of the edge amounts and an edge enhancing means for enhancing the edge by adding the edge amount selected by the selecting means or data of a constant multiple of the edge amount to the pixel data. Further, an average value calculating means for calculating an average value of pixel data of one column or a plurality of columns in the main scanning direction or the sub-scanning direction, an average value obtained by the average value calculating means, and the pixel A difference value calculating means for calculating a difference value between the value of the pixel of interest in the data or the average value of data of a plurality of pixels including the pixel of interest; Comparing means for comparing the difference value with a predetermined threshold value, and means for edge enhancing the pixel of interest based on the comparison result obtained by the comparing means, further, An average value calculating means for calculating an average value of pixel data of one column or a plurality of columns in the main scanning direction or the sub-scanning direction, an average value obtained by the average value calculating means, and a target pixel of the pixel data. Value or a difference value calculating means for calculating a difference value from an average value of data of a plurality of pixels including a target pixel, and comparing means for comparing the difference value obtained by the difference value calculating means with a predetermined threshold value. A plurality of edge enhancement filters for calculating the edge amount of the pixel data to be edge-emphasized, and one of the plurality of edge amounts calculated by the plurality of edge enhancement filters. Selecting means for selecting based on the comparison result obtained by the comparing means, and edge enhancing means for edge enhancing by adding the edge amount selected by the selecting means or data of a constant multiple of the edge amount to the pixel data. It is characterized by having.

【0006】[0006]

【作用】本発明によれば、注目画素に最も適切なデータ
加算することによりモアレの発生を抑制し、画質の向上
を計ることができるようになる。
According to the present invention, it is possible to suppress the occurrence of moire by adding the most appropriate data to the target pixel and improve the image quality.

【0007】[0007]

【実施例】以下、図面を参照して本発明の実施例を詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0008】(実施例1)図1は本発明の第1の実施例
を示すブロック図である。図1において1は複数ライン
分の画像データを蓄積するラインバッファ、2は画素マ
トリックスのパターンのデータを蓄積するためのレジス
タ、3はレジスタ2の出力値により、注目画素のエッジ
量を計算するエッジ量演算回路、4はエッジ量演算回路
3で計算された複数のエッジ量のうちの1つを選択して
出力するセレクタ、5はセレクタ4で選択されたエッジ
量をレジスタ2の出力の注目画素の値に加算してエッジ
強調処理を行う加算器、6は加算器5の出力の多値デー
タを2値データに変換する2値化回路である。
(Embodiment 1) FIG. 1 is a block diagram showing a first embodiment of the present invention. In FIG. 1, 1 is a line buffer for accumulating image data of a plurality of lines, 2 is a register for accumulating data of a pixel matrix pattern, 3 is an edge for calculating an edge amount of a pixel of interest based on an output value of the register 2. A quantity computing circuit, 4 is a selector for selecting and outputting one of a plurality of edge quantities calculated by the edge quantity computing circuit 3, and 5 is a pixel of interest output of the register 2 for the edge quantity selected by the selector 4. Is added to perform the edge enhancement processing by adding to the value of, and reference numeral 6 is a binarization circuit that converts multi-valued data output from the adder 5 into binary data.

【0009】次に本構成による動作を説明する。Next, the operation of this configuration will be described.

【0010】図2は3×3の画素マトリックスの場合の
ラインバッファ1およびレジスタ2の構成をあらわした
図である。図2においてLB1およびLB2は各々1ラ
イン分の画像データを蓄積できるラインバッファ、R1
〜R9は3×3の画素マトリックスパターンのデータを
蓄積するためのレジスタマトリックスである。
FIG. 2 is a diagram showing the configuration of the line buffer 1 and the register 2 in the case of a 3 × 3 pixel matrix. In FIG. 2, LB1 and LB2 are line buffers R1 that can store image data for one line, respectively.
R9 is a register matrix for accumulating data of a 3 × 3 pixel matrix pattern.

【0011】処理対象の画像データPは、画素単位にシ
リアルに転送され、レジスタR1とラインバッファLB
1に入力される。画像データの転送と同期してLB1か
ら出力される画像データはレジスタR4とラインバッフ
ァLB2に入力される。画像データPは1ライン分遅れ
てラインバッファLB1より出力され、2ライン分遅れ
てLB2より出力される。また画像データPの転送と同
期してR1,R4,R7に入力された画像データはそれ
ぞれR2,R5,R8へさらにR2,R5,R8へ入力
された画像データはそれぞれR3,R6,R9へ順次シ
フトされ、3×3のマトリックスパターンが構成され
る。レジスタR1〜R9の出力データD1〜D9はエッ
ジ量演算回路3に入力される。図3は図4(a),
(b)に示すような2つのエッジ量演算フィルタによる
エッジ量演算回路3および同回路3からの2つのエッジ
量のうち大きい方を出力するようなセレクタ4の構成例
を示したものである。エッジ量演算回路は3は、加算器
3−1〜3−3,3−10,3−11,乗数(×2)器
3−4〜3−6,および減算器3−7〜3−9からな
り、セレクタ4は比較器4−1およびセレクタ4−2か
らなる。エッジ量演算回路3からの出力eg1およびe
g2はそれぞれ図4(a),(b)のフィルタにより算
出されたエッジ量であり、4−1の比較器で比較された
eg1,およびeg2のうち絶対値の大きい方がセレク
タ4−2から出力され、その値とレジスタ2からの注目
画素の値とが加算器5で加算され、エッジ強調が行われ
る。
The image data P to be processed is serially transferred pixel by pixel, and is registered in the register R1 and the line buffer LB.
Input to 1. The image data output from LB1 in synchronization with the transfer of image data is input to the register R4 and the line buffer LB2. The image data P is output from the line buffer LB1 with a delay of one line and is output from LB2 with a delay of two lines. Further, in synchronization with the transfer of the image data P, the image data input to R1, R4 and R7 are sequentially input to R2, R5 and R8, and the image data input to R2, R5 and R8 are sequentially input to R3, R6 and R9. It is shifted to form a 3 × 3 matrix pattern. The output data D1 to D9 of the registers R1 to R9 are input to the edge amount calculation circuit 3. 3 is shown in FIG.
6 shows an example of the configuration of an edge amount calculation circuit 3 using two edge amount calculation filters as shown in FIG. 9B and a selector 4 that outputs the larger one of the two edge amounts from the circuit 3. The edge amount calculation circuit 3 includes adders 3-1 to 3-3, 3-10, 3-11, multiplier (× 2) units 3-4 to 3-6 and subtractors 3-7 to 3-9. The selector 4 is composed of a comparator 4-1 and a selector 4-2. Outputs eg1 and e from the edge amount calculation circuit 3
g2 is the edge amount calculated by the filters of FIGS. 4A and 4B, and the larger absolute value of eg1 and eg2 compared by the comparator 4-1 is from the selector 4-2. The output value and the value of the pixel of interest from the register 2 are added by the adder 5, and edge enhancement is performed.

【0012】図5は3×3の画素マトリックスと実際の
網点のパターンの例、図6は3×3の画素マトリックス
と文字などのエッジ部のパターン例を示したものであ
る。図中の数字は各画素内で黒部分(ハッチング部分)
の占める割合を示したものである。図5においてはeg
1=−40,eg2=−40となり、注目画素にエッジ
量を加算した場合は−20となる。図5のパターンを図
12のラプラシアンフィルタでエッジ強調した場合は−
60となり、網点部分ではエッジがより強調されること
になり、モアレが発生しやすくなる。また一方、図6の
エッジ部分では、eg1=0,eg2=−180とな
り、エッジ強調後は−160となる。同様に図12のラ
プラシアンフィルタの場合は、エッジ強調後は−40と
なり、図4(a),(b)のフィルタを用いた方がエッ
ジがより強調されることになる。
FIG. 5 shows an example of a 3 × 3 pixel matrix and an actual halftone dot pattern, and FIG. 6 shows an example of a 3 × 3 pixel matrix and an edge pattern such as a character. The numbers in the figure are black in each pixel (hatched)
It shows the ratio of In FIG. 5, eg
1 = -40, eg2 = -40, and -20 when the edge amount is added to the pixel of interest. When the pattern of FIG. 5 is edge-emphasized by the Laplacian filter of FIG. 12, −
At 60, the edge is more emphasized in the halftone dot portion, and moire is likely to occur. On the other hand, in the edge portion of FIG. 6, eg1 = 0, eg2 = −180, and after edge enhancement becomes −160. Similarly, in the case of the Laplacian filter shown in FIG. 12, the edge becomes -40 after edge enhancement, and the edges are more emphasized when the filters shown in FIGS. 4A and 4B are used.

【0013】また本発明は3×3の画素マトリックスの
場合のみでなく、他のサイズの画素マトリックスに対し
ても適用できる。
The present invention can be applied not only to a 3 × 3 pixel matrix but also to pixel matrices of other sizes.

【0014】(実施例2)図7は本発明の第2の実施例
のブロック図である。図において1は複数ライン分の画
像データを蓄積するラインバッファ、2は画素マトリッ
クスのパターンのデータを蓄積するためのレジスタ、1
0はレジスタ2の出力値の演算を行う演算回路、11は
演算回路10で計算された結果としきい値とを比較する
比較器、12は注目画素データにエッジ強調処理を施す
エッジ強調回路、13は比較器11の比較結果によりレ
ジスタ2からの注目画素の値、またはエッジ強調回路1
2からの注目画素とエッジ強調した値のいずれか一方を
出力するセレクタ、6はセレクタ13から出力された多
値画像データを2値画像データに変換して出力する2値
化回路である。
(Second Embodiment) FIG. 7 is a block diagram of a second embodiment of the present invention. In the figure, 1 is a line buffer for accumulating image data of a plurality of lines, 2 is a register for accumulating data of a pixel matrix pattern, 1
Reference numeral 0 is an arithmetic circuit that calculates the output value of the register 2, 11 is a comparator that compares the result calculated by the arithmetic circuit 10 with a threshold value, 12 is an edge emphasis circuit that performs edge emphasis processing on the pixel data of interest, 13 Is the value of the pixel of interest from the register 2 or the edge enhancement circuit 1 according to the comparison result of the comparator 11.
The selector 6 outputs either the pixel of interest from 2 or the edge-enhanced value, and 6 is a binarization circuit that converts the multi-valued image data output from the selector 13 into binary image data and outputs it.

【0015】次に本構成による動作を説明する。Next, the operation of this configuration will be described.

【0016】ラインバッファ1およびレジスタ2の構成
は前述の図2の通りであり、レジスタ2によって3×3
の画素マトリックスパターンが構成される。レジスタR
1〜R9の出力データD1〜D9は図8に示すような演
算回路10に入力される。加算器10−1〜10−3で
は主走査方向の3画素の和が計算され、10−4〜10
−6では副走査方向の3画素の和が計算される。具体的
には、加算器10−1ではD1+D2+D3が、10−
2ではD4+D5+D6が、10−3ではD7+D8+
D9が計算される。同様に加算器10−4ではD1+D
4+D7が、10−5ではD2+D5+D8が、10−
6ではD3+D6+D9が計算される。減算器10−7
では加算器10−1出力と10−2の出力の差分値が、
減算器10−8では加算器10−2と10−3の出力の
差分値が計算される。同様に減算器10−9では加算器
10−4と10−5の差分値が、減算器10−10では
加算器10−5と10−6の差分値が計算される。減算
器10−7〜10−10の出力値Q1,Q2,Q3,Q
4は比較器11に入力される。比較器11では、Q1〜
Q4のデータの中で1つでもしきい値Th以上のものが
ある場合は出力T=1,Q1〜Q4全てがThより小さ
い場合にはT=0とする。
The configurations of the line buffer 1 and the register 2 are as shown in FIG.
The pixel matrix pattern of Register R
Output data D1 to D9 of 1 to R9 are input to the arithmetic circuit 10 as shown in FIG. The adders 10-1 to 10-3 calculate the sum of 3 pixels in the main scanning direction, and 10-4 to 10
At -6, the sum of 3 pixels in the sub-scanning direction is calculated. Specifically, in the adder 10-1, D1 + D2 + D3 is 10-
2 is D4 + D5 + D6, and 10-3 is D7 + D8 +
D9 is calculated. Similarly, in the adder 10-4, D1 + D
When 4 + D7 is 10-5, D2 + D5 + D8 is 10-
At 6, D3 + D6 + D9 is calculated. Subtractor 10-7
Then, the difference value between the outputs of the adders 10-1 and 10-2 is
The subtractor 10-8 calculates the difference value between the outputs of the adders 10-2 and 10-3. Similarly, the subtractor 10-9 calculates the difference value between the adders 10-4 and 10-5, and the subtractor 10-10 calculates the difference value between the adders 10-5 and 10-6. Output values Q1, Q2, Q3, Q of the subtractors 10-7 to 10-10
4 is input to the comparator 11. In the comparator 11, Q1
If at least one of the Q4 data has a threshold value Th or more, the output T = 1, and if all Q1 to Q4 are smaller than Th, T = 0.

【0017】エッジ強調回路12では図12のラプラシ
アンフィルタにより算出されたエッジ量が注目画素デー
タに加算され、エッジ強調処理が行われる。セレクタ1
3では比較器11の出力Tが1のときエッジ強調回路1
2からのエッジ強調された値を、出力Tが0のときはレ
ジスタ2からのエッジ強調されない値を選択し出力す
る。2値化回路6ではセレクタ13の多値出力データを
2値化して出力する。
In the edge emphasizing circuit 12, the edge amount calculated by the Laplacian filter shown in FIG. 12 is added to the target pixel data, and the edge emphasizing process is performed. Selector 1
In 3, when the output T of the comparator 11 is 1, the edge enhancement circuit 1
When the output T is 0, the edge-enhanced value from 2 is selected and the edge-unemphasized value from the register 2 is selected and output. The binarization circuit 6 binarizes the multi-value output data of the selector 13 and outputs it.

【0018】前述の通り、図5は3×3のマトリックス
と実際の網点のパターン例、図6は3×3のマトリック
スと文字などのエッジ部のパターン例を示したものであ
り、図中の数字は各画素内で黒部分(ハッチング部分)
の閉める割合を示したものであるが、図5においてはQ
1=−70,Q2=30,Q3=40,Q4=−80と
なり、また図6においてはQ1=Q2=0、Q3=6
0、Q4=−240となり、網点部よりエッジ部の方が
平均の差分値の絶対値が大きな値となるので、網点部お
よびエッジ部の分離ができ、網点領域ではエッジ強調を
せず、エッジ部分ではエッジ強調を行うことになるの
で、従来に比べ画質の向上がはかられる。
As described above, FIG. 5 shows a pattern example of a 3 × 3 matrix and actual halftone dots, and FIG. 6 shows a pattern example of an edge portion of a 3 × 3 matrix and characters. The numbers in are the black part (hatched part) in each pixel
It shows the closing ratio of Q, but in FIG.
1 = -70, Q2 = 30, Q3 = 40, Q4 = -80, and in FIG. 6, Q1 = Q2 = 0, Q3 = 6.
0, Q4 = -240, and the absolute value of the average difference value is larger in the edge part than in the halftone dot part. Therefore, the halftone dot part and the edge part can be separated, and the edge emphasis is performed in the halftone dot area. Instead, since edge enhancement is performed at the edge portion, the image quality can be improved compared to the conventional case.

【0019】(実施例3)図9および図10は本発明の
第3の実施例のブロック図を示したものであって、エッ
ジ強調回路12Aのみが異なるだけで他の構成は第2の
実施例(図7)と同様である。加算器12−1,12−
2,12−4,.乗数(×4)器12−3,減算器12
−5(以上図12のラプラシアンフィルタ)および定数
倍器12−6からなるエッジ強調回路12Aにおいては
エッジ量を図 のラプラシアンフィルタで計算し、その
値と定数倍器12−6で定数倍した値とを、注目画素に
加えるエッジ量の値として比較器11の出力に基づいて
セレクタ13により選択する。このようにして、網点領
域、あるいは文字領域によりエッジ強調の程度を切り換
えることにより、画質の劣化を防ぐことができる。
(Embodiment 3) FIGS. 9 and 10 are block diagrams of a third embodiment of the present invention, which is different only in the edge emphasizing circuit 12A and the other construction is the second embodiment. Similar to the example (FIG. 7). Adders 12-1, 12-
2, 12-4 ,. Multiplier (× 4) unit 12-3, subtractor 12
In the edge enhancement circuit 12A consisting of −5 (above Laplacian filter in FIG. 12) and the constant multiplier 12-6, the edge amount is calculated by the Laplacian filter shown in the figure, and the value is multiplied by the constant multiplier 12-6. And are selected by the selector 13 based on the output of the comparator 11 as the value of the edge amount added to the target pixel. In this way, it is possible to prevent deterioration of image quality by switching the degree of edge enhancement depending on the halftone dot area or the character area.

【0020】また3×3の画素マトリックスの場合のみ
ではなく、その他のサイズの画素マトリックスに対して
も本発明の構成は適用できる。
The structure of the present invention can be applied not only to the case of a 3 × 3 pixel matrix but also to pixel matrices of other sizes.

【0021】(実施例4)図11は本発明の第4の実施
例のブロック図である。図において1は複数ライン分の
画像データを蓄積するラインバッファ、2は画素マトリ
ックスのパターンのデータを蓄積するためのレジスタ、
10はレジスタ2の出力値の演算を行う演算回路、11
は演算回路10で計算された結果と、しきい値とを比較
する比較器、3はレジスタ2の出力値より注目画素のエ
ッジ量を計算するエッジ量演算回路、4は比較器11の
比較結果に基づいてエッジ量演算回路3で計算された複
数のエッジ量のうち、1つを選択して出力するセレク
タ、5はセレクタ4の出力値と、レジスタ2の出力のう
ち注目画素の値とを加算する加算器、6は加算器5の多
値データ出力を2値データに変換する2値化回路であ
る。
(Fourth Embodiment) FIG. 11 is a block diagram of a fourth embodiment of the present invention. In the figure, 1 is a line buffer for storing image data of a plurality of lines, 2 is a register for storing data of a pixel matrix pattern,
Reference numeral 10 is an arithmetic circuit for calculating the output value of the register 2, 11
Is a comparator that compares the result calculated by the arithmetic circuit 10 with a threshold value, 3 is an edge amount arithmetic circuit that calculates the edge amount of the pixel of interest from the output value of the register 2, and 4 is the comparison result of the comparator 11. The selector 5 which selects and outputs one of the plurality of edge amounts calculated by the edge amount calculation circuit 3 based on the above, outputs the output value of the selector 4 and the value of the pixel of interest in the output of the register 2. An adder for adding 6 is a binarizing circuit for converting the multi-valued data output of the adder 5 into binary data.

【0022】次に本構成による動作を説明する。Next, the operation of this configuration will be described.

【0023】ラインバッファ1およびレジスタ2の構成
は図2に示した通りであり、レジスタR1〜R9の出力
D1〜D9は演算回路10およびエッジ量演算回路3へ
入力される。演算回路10の構成は図8に示した通りで
減算器10−7〜10−10の出力値Q1〜Q4は比較
器11に入力される。比較器11の動作は前述した通り
である。
The configurations of the line buffer 1 and the register 2 are as shown in FIG. 2, and the outputs D1 to D9 of the registers R1 to R9 are input to the arithmetic circuit 10 and the edge amount arithmetic circuit 3. The configuration of the arithmetic circuit 10 is as shown in FIG. 8, and the output values Q1 to Q4 of the subtractors 10-7 to 10-10 are input to the comparator 11. The operation of the comparator 11 is as described above.

【0024】エッジ量演算回路3の構成は、図3に示し
た通りであり、図4(a),(b)の2つのエッジ量演
算フィルタによるエッジ量演算の構成例を示したもので
ある。出力eg1およびeg2はそれぞれ図4(a),
(b)のフィルタにより算出されたエッジ量であり、セ
レクタ4では、比較器11のセレクト信号によりeg
1,eg2どちらか一方、または0を出力する。加算器
5ではセレクタ4の出力値とレジスタ2からのエッジ強
調される注目画素の値(D5)を加算し、エッジ強調処
理を行う。2値化回路6では加算器5からの多値出力デ
ータを2値化して出力する。
The configuration of the edge amount calculation circuit 3 is as shown in FIG. 3, and shows a configuration example of the edge amount calculation by the two edge amount calculation filters of FIGS. 4 (a) and 4 (b). . Outputs eg1 and eg2 are respectively shown in FIG.
It is the edge amount calculated by the filter of (b).
Either 1 or eg2 or 0 is output. The adder 5 adds the output value of the selector 4 and the value (D5) of the pixel of interest from which the edge is emphasized from the register 2 to perform edge emphasis processing. The binarization circuit 6 binarizes the multi-value output data from the adder 5 and outputs it.

【0025】前述した通り、図5は3×3のマトリック
スと、実際の網点のパータン例を示したものであり、図
6は3×3のマトリックスと文字などのエッジ部のパタ
ーン例を示したものである。図中の数字は各画素内で黒
部分(ハッチング部分)の占める割合を示したものであ
る。図5においてはQ1=−70,Q2=30,Q3=
40,Q4=−80となり、また図6においてはQ1=
Q2=0,Q3=60,Q4=−240となり、網点部
よりエッジ部の方が平均値の差分値の絶対値は大きくな
るので、網点部および文字や図形のエッジ部との分離が
できる。またエッジ量演算回路3において図4(a),
(b)のエッジ強調フィルタを用いて計算すると、eg
1=−40,eg2=−40となり、注目画素にエッジ
量を加算した場合は−20となる。一方、図5のパター
ンを図12のラプラシアンフィルタでエッジ強調した場
合は注目画素の値は−60となり、網点部分ではエッジ
がより強調されることになり、モアレが発生しやすくな
る。図6のエッジ部分ではeg1=0,eg2=−18
0となり、注目画素へ加算すると−160となる。同様
にラプラシアンフィルタの場合は−40となり、図4
(a),(b)のフィルタを用いた方がエッジより強調
されることになる。比較器11のセレクト信号により、
エッジ量演算回路3で演算されたエッジ量のうちの1つ
の値、あるいは0を出力し、注目画素に加算することに
より、モアレの発生を抑制でき、また文字や図形のエッ
ジ部もはっきり再現できるので、画質の向上がはかれ
る。
As described above, FIG. 5 shows an example of a pattern of 3 × 3 matrix and actual halftone dots, and FIG. 6 shows an example of a pattern of 3 × 3 matrix and an edge portion such as a character. It is a thing. The numbers in the figure show the proportion of black portions (hatched portions) in each pixel. In FIG. 5, Q1 = -70, Q2 = 30, Q3 =
40, Q4 = -80, and in FIG. 6, Q1 =
Since Q2 = 0, Q3 = 60, and Q4 = -240, and the absolute value of the difference value of the average value is larger in the edge part than in the halftone dot part, the halftone dot part and the edge part of the character or figure are separated. it can. In addition, in the edge amount calculation circuit 3, as shown in FIG.
If the calculation is performed using the edge enhancement filter of (b), then eg
1 = -40, eg2 = -40, and -20 when the edge amount is added to the pixel of interest. On the other hand, when the pattern of FIG. 5 is edge-emphasized by the Laplacian filter of FIG. 12, the value of the pixel of interest is −60, and the edge is further emphasized in the halftone dot portion, and moire is likely to occur. In the edge portion of FIG. 6, eg1 = 0, eg2 = -18
It becomes 0, and when it is added to the pixel of interest, it becomes -160. Similarly, in the case of the Laplacian filter, the value is -40, which is shown in FIG.
Using the filters of (a) and (b) is emphasized more than the edge. By the select signal of the comparator 11,
By outputting one of the edge amounts calculated by the edge amount calculation circuit 3 or 0 and adding it to the pixel of interest, it is possible to suppress the occurrence of moire and to clearly reproduce the edge portion of a character or a figure. Therefore, the image quality can be improved.

【0026】また本発明は3×3の画素マトリックスの
場合のみではなく、他のサイズの画素マトリックスに対
しても適用でき、一方エッジ強調フィルタを複数用意
し、比較器の出力によりエッジ量を適宜切り換えること
により画質の向上がはかられる。
The present invention can be applied not only to the case of a 3 × 3 pixel matrix but also to pixel matrices of other sizes. On the other hand, a plurality of edge enhancement filters are prepared, and the edge amount is appropriately adjusted by the output of the comparator. The image quality can be improved by switching.

【0027】[0027]

【発明の効果】以上説明したように本発明によれば、モ
アレの発生を抑制することができ、また文字や図形のエ
ッジ部の再現性をよくすることができ、画質の向上をは
かることができる。
As described above, according to the present invention, it is possible to suppress the occurrence of moire, improve the reproducibility of the edges of characters and figures, and improve the image quality. it can.

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

【図1】本発明の第1の実施例のブロック図である。FIG. 1 is a block diagram of a first embodiment of the present invention.

【図2】3×3の画素マトリックスにおけるラインバッ
ファおよびレジスタのブロック図である。
FIG. 2 is a block diagram of line buffers and registers in a 3 × 3 pixel matrix.

【図3】エッジ量演算回路およびセレクタの構成例を示
すブロック図である。
FIG. 3 is a block diagram showing a configuration example of an edge amount calculation circuit and a selector.

【図4】(a),(b)はエッジ強調フィルタの例を示
す図である。
4A and 4B are diagrams showing examples of edge enhancement filters.

【図5】3×3の画素マトリックスと網点のパターン例
を示す図である。
FIG. 5 is a diagram showing a pattern example of a 3 × 3 pixel matrix and halftone dots.

【図6】3×3の画素マトリックスと文字や図形のエッ
ジ部のパターン例を示す図である。
FIG. 6 is a diagram showing a pattern example of a 3 × 3 pixel matrix and an edge portion of a character or a figure.

【図7】本発明の第2の実施例のブロック図である。FIG. 7 is a block diagram of a second embodiment of the present invention.

【図8】同実施例の演算回路のブロック図である。FIG. 8 is a block diagram of an arithmetic circuit of the embodiment.

【図9】本発明の第3の実施例のブロック図である。FIG. 9 is a block diagram of a third embodiment of the present invention.

【図10】同実施例におけるエッジ強調回路のブロック
図である。
FIG. 10 is a block diagram of an edge enhancement circuit according to the same embodiment.

【図11】本発明の第4の実施例のブロック図である。FIG. 11 is a block diagram of a fourth embodiment of the present invention.

【図12】従来例のエッジ強調フィルタの例を示す図で
ある。
FIG. 12 is a diagram showing an example of a conventional edge enhancement filter.

【図13】同他のフィルタの例を示す図である。FIG. 13 is a diagram showing an example of another filter.

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

1 ラインバッファ 2 レジスタ 3 エッジ量演算回路 4 セレクタ 5 加算器 6 2値化回路 1 line buffer 2 register 3 edge amount calculation circuit 4 selector 5 adder 6 binarization circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 エッジ強調する画素データのエッジ量を
算出するための複数のエッジ強調フィルタと、該複数の
エッジ強調フィルタにより算出された複数のエッジ量の
うちの1つを選択する選択手段と、該選択手段により選
択されたエッジ量あるいは当該エッジ量の定数倍のデー
タを前記画素データに加算してエッジ強調するエッジ強
調手段とを具えたことを特徴とする画像処理装置。
1. A plurality of edge enhancement filters for calculating an edge amount of pixel data to be edge-emphasized, and a selection means for selecting one of the plurality of edge amounts calculated by the plurality of edge enhancement filters. An image processing apparatus comprising: an edge enhancement unit that adds edge amount selected by the selection unit or data that is a constant multiple of the edge amount to the pixel data to enhance the edge.
【請求項2】 主走査方向あるいは副走査方向に1列あ
るいは複数列の画素データの平均値を算出する平均値算
出手段と、該平均値算出手段により得られた平均値と、
前記画素データのうちの注目画素の値あるいは注目画素
を含む複数画素のデータの平均値との差分値を算出する
差分値算出手段と、該差分値算出手段により得られた差
分値をあらかじめ定められたしきい値と比較する比較手
段と、該比較手段により得られた比較結果に基づいて前
記注目画素に対してエッジ強調する手段とを具えたこと
を特徴とする画像処理装置。
2. An average value calculating means for calculating an average value of pixel data of one row or a plurality of rows in the main scanning direction or the sub-scanning direction, and an average value obtained by the average value calculating means.
A difference value calculating means for calculating a difference value between the value of the pixel of interest in the pixel data or the average value of data of a plurality of pixels including the pixel of interest, and a difference value obtained by the difference value calculating means are predetermined. An image processing apparatus comprising: comparison means for comparing with a threshold value; and means for edge-enhancing the target pixel based on the comparison result obtained by the comparison means.
【請求項3】 主走査方向あるいは副走査方向に1列あ
るいは複数列の画素データの平均値を算出する平均値算
出手段と、該平均値算出手段により得られた平均値と、
前記画素データのうちの注目画素の値あるいは注目画素
を含む複数画素のデータの平均値との差分値を算出する
差分値算出手段と、該差分値算出手段により得られた差
分値をあらかじめ定められたしきい値と比較する比較手
段と、エッジ強調する画素データのエッジ量を算出する
ための複数のエッジ強調フィルタと、該複数のエッジ強
調フィルタにより算出された複数のエッジ量のうちの1
つを前記比較手段により得られた比較結果に基づいて選
択する選択手段と、該選択手段により選択されたエッジ
量あるいは当該エッジ量の定数倍のデータを前記画素デ
ータに加算してエッジ強調するエッジ強調手段とを具え
たことを特徴とする画像処理装置。
3. An average value calculating means for calculating an average value of pixel data of one column or a plurality of columns in the main scanning direction or the sub-scanning direction, and an average value obtained by the average value calculating means,
A difference value calculating means for calculating a difference value between the value of the pixel of interest in the pixel data or the average value of data of a plurality of pixels including the pixel of interest, and a difference value obtained by the difference value calculating means are predetermined. Comparing means for comparing with the threshold value, a plurality of edge enhancement filters for calculating the edge amount of the pixel data for edge enhancement, and one of the plurality of edge amounts calculated by the plurality of edge enhancement filters.
Selecting means for selecting one of the two based on the comparison result obtained by the comparing means, and an edge for edge enhancement by adding to the pixel data a quantity of edge selected by the selecting means or data of a constant multiple of the quantity of edge. An image processing apparatus comprising: an emphasis unit.
JP4174449A 1992-07-01 1992-07-01 Picture processor Pending JPH0622138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4174449A JPH0622138A (en) 1992-07-01 1992-07-01 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4174449A JPH0622138A (en) 1992-07-01 1992-07-01 Picture processor

Publications (1)

Publication Number Publication Date
JPH0622138A true JPH0622138A (en) 1994-01-28

Family

ID=15978695

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4174449A Pending JPH0622138A (en) 1992-07-01 1992-07-01 Picture processor

Country Status (1)

Country Link
JP (1) JPH0622138A (en)

Similar Documents

Publication Publication Date Title
JP3097785B2 (en) Image processing device
JP4100782B2 (en) Error diffusion value processing method
US5038387A (en) Method of enhancing border of region included in image
JPH0622138A (en) Picture processor
JP3783815B2 (en) Image processing device
JPH06291993A (en) Picture signal processing unit
JPH06292005A (en) Picture signal processing unit
JPH065879B2 (en) Image processing device
JP2608404B2 (en) Image processing device
JP2635306B2 (en) Image processing device
JPH0294778A (en) Picture processing system
JPS62107572A (en) Image processor
JP3564216B2 (en) Image processing device
JP2954317B2 (en) Image processing device
JPH0548881A (en) Picture varying power processing system and device
JP2898322B2 (en) Halftone estimation method for dither image
JPH0465974A (en) Image processor
JP3089688B2 (en) Image information processing method
JPH10243220A (en) Image data processor
JPS58121863A (en) Analog video signal binary coding system
JPH03187677A (en) Image processor
JPH10191051A (en) Image processor and its control method
Siddiqi et al. A Parallel Algorithm for Inverse Halftoning and its Hardware
JPH04222068A (en) Image processor
JPH0583535A (en) Variable power processing device for binary image