JPH10271339A - Image-processing method and device therefor - Google Patents

Image-processing method and device therefor

Info

Publication number
JPH10271339A
JPH10271339A JP9073570A JP7357097A JPH10271339A JP H10271339 A JPH10271339 A JP H10271339A JP 9073570 A JP9073570 A JP 9073570A JP 7357097 A JP7357097 A JP 7357097A JP H10271339 A JPH10271339 A JP H10271339A
Authority
JP
Japan
Prior art keywords
image
pixel
contrast
neighboring pixels
filter
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
JP9073570A
Other languages
Japanese (ja)
Other versions
JP3476649B2 (en
Inventor
Itaru Furukawa
至 古川
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.)
Dainippon Screen Manufacturing Co Ltd
Original Assignee
Dainippon Screen Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dainippon Screen Manufacturing Co Ltd filed Critical Dainippon Screen Manufacturing Co Ltd
Priority to JP07357097A priority Critical patent/JP3476649B2/en
Priority to US09/040,303 priority patent/US6272260B1/en
Publication of JPH10271339A publication Critical patent/JPH10271339A/en
Application granted granted Critical
Publication of JP3476649B2 publication Critical patent/JP3476649B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To satisfactorily suppress deterioration of image quality and to remove moires, without deteriorating edges of the image. SOLUTION: A main signal S is guided to a smoothing processing part 10 and a filter calculation part 50. An average density value is guided in a region larger than dot size regarding plural neighboring pixels of a pixel under consideration in the smoothing processing part 10. Contrasts in the vertical and horizontal directions are calculated in a vertical direction contrast extracting part 21 and a horizontal direction contrast extracting part 22, and reference values IDy, IDx are outputted based on the obtained contrasts in a vertical direction table reference part 31 and a horizontal table reference part 32. A set of weighting coefficients of an image filter is selected, based on the reference values IDy, IDx in a weighting coefficient set selecting part 40. Then an arithmetic operation is performed, based on each weighting coefficient of the image filter obtained in the weighting coefficient set selecting part 40 and a filtered signal S' is selected in a filter operation part 50.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、スキャナ,ディ
ジタルカメラ,又はその他の装置から得られるディジタ
ル画像の画像処理方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for processing digital images obtained from a scanner, a digital camera, or another device.

【0002】[0002]

【従来の技術】従来より、印刷物を生成する際には、網
点による印刷が行われている。このような、網点によっ
て印刷された印刷物は、例えば65dpi〜200dp
i程度の解像度を有している。
2. Description of the Related Art Conventionally, when a printed matter is generated, printing using halftone dots has been performed. Such a printed matter printed by halftone dots is, for example, 65 dpi to 200 dpi.
It has a resolution of about i.

【0003】そして、このような網点で記録された印刷
物を、スキャナ等の画像入力部で読み取る場合を図9に
示す。図9は、網点と読み取りを行う画素との位置関係
を示す図であり、原画像である網点画像は50%の濃度
を示している。すなわち、図に示す斜線領域は、網点が
記録されている部分である。このような原画像を点線枠
で示す大きさの画素P1〜P8で読み取る場合について
説明する。
FIG. 9 shows a case where a printed matter recorded with such halftone dots is read by an image input unit such as a scanner. FIG. 9 is a diagram showing a positional relationship between a halftone dot and a pixel to be read, and a halftone image as an original image has a density of 50%. That is, the hatched area shown in the figure is a part where the halftone dot is recorded. A case where such an original image is read by pixels P1 to P8 having a size indicated by a dotted frame will be described.

【0004】図9に示す1個の画素サイズは、1個の網
点サイズの約87.5%となっている。このような場
合、画素P4とP5において測定される濃度は50%と
なり、原画像の示す濃度と等しいため整合性は保たれて
いるが、画素P1,P8において測定される濃度は、そ
の画素領域に網点の黒化領域を多く含むため50%より
も大きくなる。実際には、画素P1とP8の濃度は約6
2%となっている。また、画素P2,P3,P6,P7
において測定される濃度についても、50%よりも大き
くなっている。このように画素P1,…,P8において
測定される濃度は50%〜約62%の間で周期的に変動
する。これは、原画像が50%の濃度であることについ
て考えれば、画質が劣化していることになる。
The size of one pixel shown in FIG. 9 is about 87.5% of the size of one halftone dot. In such a case, the density measured at the pixels P4 and P5 is 50%, which is equal to the density shown in the original image, so that the consistency is maintained, but the density measured at the pixels P1 and P8 is the pixel area. Contains a large number of blackened areas of halftone dots, so that it is larger than 50%. In practice, the density of pixels P1 and P8 is about 6
It is 2%. Pixels P2, P3, P6, P7
Are also greater than 50%. Thus, the density measured at the pixels P1,..., P8 periodically fluctuates between 50% and about 62%. This means that the image quality is degraded considering that the original image has a density of 50%.

【0005】この原因は、原画像の網点サイズと読み取
る画素サイズとが異なるために、干渉が起こっているか
らである。従って、画素サイズが網点サイズに比べて小
さくなるに従って、原画像の濃度を読み取るというより
はむしろ網点の濃度を読み取ることになり、画素間での
濃度の変動は大きくなる。また、画素サイズが網点サイ
ズに近い場合等には、変動する周期が長くなり、モアレ
として視覚的に目立つようになる。
This is because interference occurs because the halftone dot size of the original image and the pixel size to be read are different. Therefore, as the pixel size becomes smaller than the halftone dot size, the density of the halftone dot is read rather than the density of the original image, and the fluctuation of the density between pixels becomes larger. Further, when the pixel size is close to the halftone dot size, for example, the period of the change becomes long and becomes visually noticeable as moire.

【0006】以上のような現象は、網点以外の方法で表
現されている一般原画像における模様や被写体の模様等
と画素サイズとの関係が上記と同様な状態となる場合に
も発生する。すなわち、透過原稿や反射原稿をスキャナ
で読み取った画像やディジタルカメラで得られた画像に
ついてもモアレが発生する場合がある。
The above phenomenon also occurs when the relationship between the pixel size and the pattern in the general original image or the pattern of the subject expressed by a method other than the halftone dot is the same as described above. That is, moire may occur in an image obtained by reading a transparent original or a reflective original with a scanner or an image obtained by a digital camera.

【0007】そして従来より、このようなモアレを除去
し、画質の劣化を防止するために、画像フィルタを使用
した画像処理が行われている。
[0007] Conventionally, image processing using an image filter has been performed in order to remove such moiré and prevent deterioration in image quality.

【0008】図10は、従来の画像処理装置の概略構成
図である。処理対象の画素(以下、「注目画素」とい
う)についての主信号Sは、フィルタ演算部400で予
め設定されている所定のサイズの画像フィルタによって
フィルタ演算処理が行われ、フィルタ済信号S’が生成
される。このとき、使用される画像フィルタの一例を図
11に示す。このような従来の画像処理装置では、画像
フィルタの横サイズおよび縦サイズは、個々の網点の約
2倍以上となるように設定されている。従って、例え
ば、図11の画像フィルタの例の場合であると、1個の
画素サイズは網点サイズの約「2/5」以上の大きさと
なっている。そして、従来の画像処理装置では、フィル
タ演算部400において画像フィルタの中心を注目画素
に位置させ、注目画素とその近傍画素に割り当てられた
重み付け係数を基に各濃度値の加重平均を行いフィルタ
済信号S’として出力している。
FIG. 10 is a schematic configuration diagram of a conventional image processing apparatus. A main signal S for a pixel to be processed (hereinafter, referred to as a “pixel of interest”) is subjected to a filter operation by an image filter of a predetermined size set in advance by a filter operation unit 400, and a filtered signal S ′ is obtained. Generated. FIG. 11 shows an example of an image filter used at this time. In such a conventional image processing apparatus, the horizontal size and the vertical size of the image filter are set to be about twice or more of each halftone dot. Therefore, for example, in the case of the example of the image filter in FIG. 11, the size of one pixel is about "2/5" or more of the halftone dot size. In the conventional image processing apparatus, the filter operation unit 400 positions the center of the image filter at the target pixel, performs a weighted average of each density value based on the weighting coefficient assigned to the target pixel and its neighboring pixels, and performs filtering. The signal is output as a signal S '.

【0009】このように、従来の画像処理装置では、図
11で示すような画像フィルタを用いて処理することに
より、網点サイズよりも大きい領域(約2倍程度)で濃
度の加重平均を行って平滑化処理しているので、網点パ
ターンの有する周波数成分を除去することができ、網点
サイズが与える影響を除去することができる。従って、
フィルタ処理が施された画像には、モアレの発生や画質
の劣化が生じない。
As described above, in the conventional image processing apparatus, by performing processing using an image filter as shown in FIG. 11, a weighted average of densities is obtained in an area (about twice) larger than a halftone dot size. The frequency component of the halftone dot pattern can be removed, and the influence of the halftone dot size can be eliminated. Therefore,
Moiré does not occur and the image quality does not deteriorate in the image subjected to the filter processing.

【0010】[0010]

【発明が解決しようとする課題】ところで、一般に網点
で記録された印刷物の画像のエッジ部分は、網点サイズ
よりも高い解像度で再現されている。図12は、従来か
らの1個の網点を生成する方法を示す説明図である。図
12(a)に示すように1個の網点サイズを示す領域が
4個のブロックB1,…,B4に分割されており、各ブ
ロックはさらに黒化領域ごとに細分されている。そし
て、各黒化領域には、図12(a)に示すように対応す
る閾値が設定されている。一方、原画像を読み取って得
られた濃度値が、図12(b)に示すようにブロックB
1,B4に対応する位置が「20」であり、ブロックB
2,B3に対応する位置が「10」である場合には、図
12(a)に示す閾値と比較して網点の中心から順次に
黒化されていく。そして、図12(c)に示すような網
点が記録される。
Generally, an edge portion of a printed image recorded with halftone dots is reproduced at a resolution higher than the halftone dot size. FIG. 12 is an explanatory diagram showing a conventional method for generating one halftone dot. As shown in FIG. 12A, an area indicating one dot size is divided into four blocks B1,..., B4, and each block is further subdivided for each blackened area. Then, a corresponding threshold value is set in each blackened area as shown in FIG. On the other hand, as shown in FIG. 12B, the density value obtained by reading the original image
1, the position corresponding to B4 is "20", and the block B
When the position corresponding to B2 and B3 is "10", blackening is performed sequentially from the center of the halftone dot in comparison with the threshold value shown in FIG. Then, a halftone dot as shown in FIG. 12C is recorded.

【0011】このような記録方法によって画像のエッジ
部分を記録した場合を図13に示す。図13は、網点画
像のエッジ部分を示す図であり、図の点線が画像のエッ
ジである。そして、点線よりも右側が濃度50%を示し
ており、左側が濃度0%を示している。図13に示すよ
うに、網点画像のエッジ部分では4分割された各ブロッ
クに対応する濃度値に応じて網点が記録されているた
め、高い解像度で再現が行われている。
FIG. 13 shows a case where an edge portion of an image is recorded by such a recording method. FIG. 13 is a diagram showing an edge portion of the halftone dot image, and a dotted line in the drawing is an edge of the image. The right side of the dotted line indicates 50% density, and the left side indicates 0% density. As shown in FIG. 13, since the halftone dot is recorded in the edge portion of the halftone dot image in accordance with the density value corresponding to each of the four divided blocks, the reproduction is performed at a high resolution.

【0012】しかし、従来の画像処理装置において、モ
アレや画質の劣化の対策として図11に示すような画像
フィルタを使用して平滑化すると、上記のような高い解
像度で再現されている画像のエッジ部分も平滑化され、
暈けてしまうという問題がある。
However, in a conventional image processing apparatus, when smoothing is performed using an image filter as shown in FIG. 11 as a countermeasure against moiré and image quality deterioration, the edge of an image reproduced at a high resolution as described above is obtained. The part is also smoothed,
There is a problem of blurring.

【0013】そこで、この発明は、上記課題に鑑みてな
されたものであって、画像のエッジを劣化させることな
く、良好に画質の劣化を抑え、またモアレを除去する画
像処理方法および装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and provides an image processing method and apparatus capable of satisfactorily suppressing image quality deterioration and removing moire without deteriorating image edges. The purpose is to do.

【0014】[0014]

【課題を解決するための手段】上記目的を達成するため
に、請求項1に記載の発明は、原画像に対して画素ごと
に所定の処理を施す方法であって、(a)処理対象である
注目画素の近傍に位置する複数の近傍画素のそれぞれに
対して、当該近傍画素の周辺の所定の領域で平滑化処理
を施すことにより、複数の近傍画素のそれぞれについて
平均濃度値を求める工程と、(b)複数の近傍画素から得
られた複数の平均濃度値に基づいて注目画素についての
コントラストを求める工程と、(c)コントラストに応じ
て、画像フィルタの各成分に割り当てられる重み付け係
数を決定する工程と、(d)重み付け係数が適用された画
像フィルタを用いて注目画素の主信号に対してフィルタ
演算を施し、出力信号を生成する工程とを有している。
According to an aspect of the present invention, there is provided a method for performing a predetermined process for each pixel on an original image. Obtaining a mean density value for each of the plurality of neighboring pixels by performing a smoothing process on each of the plurality of neighboring pixels located in the vicinity of a certain pixel of interest in a predetermined area around the neighboring pixel; (B) determining a contrast for the pixel of interest based on a plurality of average density values obtained from a plurality of neighboring pixels; and (c) determining a weighting coefficient assigned to each component of the image filter according to the contrast. And (d) generating an output signal by performing a filter operation on the main signal of the target pixel using an image filter to which the weighting coefficient has been applied.

【0015】請求項2に記載の発明は、網点原稿を読み
取ることによって得られた原画像に対して画素ごとに所
定の処理を施す方法であって、(a)処理対象である注目
画素の近傍に位置する複数の近傍画素のそれぞれに対し
て、当該近傍画素の周辺の前記網点原稿を構成している
個々の網点サイズよりも大きい所定の領域で平滑化処理
を施すことにより、複数の近傍画素のそれぞれについて
平均濃度値を求める工程と、(b)複数の近傍画素から得
られた複数の平均濃度値に基づいて注目画素についての
コントラストを求める工程と、(c)コントラストに応じ
て、画像フィルタの各成分に割り当てられる重み付け係
数を決定する工程と、(d)重み付け係数が適用された画
像フィルタを用いて注目画素の主信号に対してフィルタ
演算を施し、出力信号を生成する工程とを有しており、
工程(d)で適用される画像フィルタのサイズは、網点原
稿を構成している個々の網点サイズよりも大きいことを
特徴としている。
According to a second aspect of the present invention, there is provided a method for performing a predetermined process for each pixel on an original image obtained by reading a halftone dot document, wherein (a) By performing a smoothing process on each of a plurality of neighboring pixels located in the vicinity in a predetermined area larger than the individual halftone dot size constituting the halftone document around the neighboring pixel, A step of obtaining an average density value for each of the neighboring pixels, (b) a step of obtaining a contrast for the pixel of interest based on a plurality of average density values obtained from the plurality of neighboring pixels, and (c) according to the contrast Determining a weighting factor assigned to each component of the image filter, and (d) performing a filter operation on the main signal of the pixel of interest using the image filter to which the weighting factor has been applied to generate an output signal. It has a step of,
The size of the image filter applied in the step (d) is characterized in that it is larger than the size of each halftone dot constituting the halftone original.

【0016】請求項3に記載の発明は、請求項1または
2に記載の方法において、工程(b)は、複数の近傍画素
から得られた複数の平均濃度値に基づいて互いに異なる
複数の方向についてのコントラストを求める工程を含
み、工程(c)は、複数の方向についてのコントラストに
応じて、複数の方向についての有効な重み付け係数の分
布をそれぞれ変更する工程を含むことを特徴としてい
る。
According to a third aspect of the present invention, in the method according to the first or second aspect, the step (b) comprises a plurality of directions different from each other based on a plurality of average density values obtained from a plurality of neighboring pixels. The step (c) is characterized in that the step (c) includes a step of changing distributions of effective weighting coefficients in a plurality of directions according to the contrasts in the plurality of directions.

【0017】請求項4に記載の発明は、原画像に対して
画素ごとに所定の処理を施す装置であって、(a)処理対
象である注目画素の近傍に位置する複数の近傍画素のそ
れぞれに対して、当該近傍画素の周辺の所定の領域で平
滑化処理を施すことにより、複数の近傍画素のそれぞれ
について平均濃度値を求める手段と、(b)複数の近傍画
素から得られた複数の平均濃度値に基づいて注目画素に
ついてのコントラストを求める手段と、(c)コントラス
トに応じて、画像フィルタの各成分に割り当てられる重
み付け係数を決定する手段と、(d)重み付け係数が適用
された画像フィルタを用いて注目画素の主信号に対して
フィルタ演算を施し、出力信号を生成する手段とを備え
ている。
According to a fourth aspect of the present invention, there is provided an apparatus for performing a predetermined process on an original image for each pixel, wherein (a) each of a plurality of neighboring pixels located near a pixel of interest to be processed; A means for obtaining an average density value for each of the plurality of neighboring pixels by performing a smoothing process on a predetermined area around the neighboring pixels, and (b) a plurality of pixels obtained from the plurality of neighboring pixels. (C) means for determining a weighting coefficient assigned to each component of the image filter in accordance with the contrast, and (d) an image to which the weighting coefficient is applied. Means for performing a filter operation on the main signal of the pixel of interest using a filter to generate an output signal.

【0018】請求項5に記載の発明は、網点原稿を読み
取ることによって得られた原画像に対して画素ごとに所
定の処理を施す装置であって、(a)処理対象である注目
画素の近傍に位置する複数の近傍画素のそれぞれに対し
て、当該近傍画素の周辺の前記網点原稿を構成している
個々の網点サイズよりも大きい所定の領域で平滑化処理
を施すことにより、複数の近傍画素のそれぞれについて
平均濃度値を求める手段と、(b)複数の近傍画素から得
られた複数の平均濃度値に基づいて注目画素についての
コントラストを求める手段と、(c)コントラストに応じ
て、画像フィルタの各成分に割り当てられる重み付け係
数を決定する手段と、(d)重み付け係数が適用された画
像フィルタを用いて注目画素の主信号に対してフィルタ
演算を施し、出力信号を生成する手段とを備えており、
手段(d)で適用される画像フィルタのサイズは、網点原
稿を構成している個々の網点サイズよりも大きいことを
特徴としている。
According to a fifth aspect of the present invention, there is provided an apparatus for performing a predetermined process for each pixel on an original image obtained by reading a halftone dot original, wherein (a) By performing a smoothing process on each of a plurality of neighboring pixels located in the vicinity in a predetermined area larger than the individual halftone dot size constituting the halftone document around the neighboring pixel, Means for calculating an average density value for each of the neighboring pixels, (b) means for determining the contrast of the pixel of interest based on a plurality of average density values obtained from the plurality of neighboring pixels, and (c) according to the contrast Means for determining a weighting coefficient assigned to each component of the image filter, and (d) performing a filter operation on the main signal of the pixel of interest using the image filter to which the weighting coefficient has been applied to generate an output signal. And a means for,
The size of the image filter applied by the means (d) is larger than the size of each halftone dot constituting the halftone original.

【0019】請求項6に記載の発明は、請求項4または
5に記載の装置において、手段(b)は、複数の近傍画素
から得られた複数の平均濃度値に基づいて互いに異なる
複数の方向についてのコントラストを求める手段を含
み、手段(c)は、複数の方向についてのコントラストに
応じて、複数の方向についての有効な重み付け係数の分
布をそれぞれ変更する手段を含むことを特徴としてい
る。
According to a sixth aspect of the present invention, in the device according to the fourth or fifth aspect, the means (b) includes a plurality of directions different from each other based on a plurality of average density values obtained from a plurality of neighboring pixels. And means (c) for changing distributions of effective weighting coefficients in a plurality of directions according to the contrasts in the plurality of directions.

【0020】[0020]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

<1.装置の全体構成>まず、この発明の実施の形態が
適用される装置の全体構成の一例について説明する。図
1は、この発明の実施の形態が適用される装置の全体構
成を示す概略図である。画像入力部100は、入力スキ
ャナなどのように原稿を光学的に読み取り、画素ごとに
多値の濃度値を示す原画像データを生成する。そして生
成された原画像データは画像処理部200に転送され
る。この画像処理部200は、この発明の実施の形態で
ある画像処理装置が適用される処理部である。画像処理
部200において、この発明の実施の形態である画像フ
ィルタを使用した画像処理の他にも原画像データに対し
て所定の処理が施された後に、出力スキャナ等のような
画像出力部300に出力される。そして画像出力部30
0においては、フィルムなどの記録媒体に対して記録さ
れる。なお、画像入力部100,画像処理部200,お
よび画像出力部300に対してオペレータの所望の動作
を行わせるために、キーボードやマウス等の操作入力部
201とディスプレイ表示器等の情報表示部202とが
設けられている。
<1. Overall Configuration of Apparatus> First, an example of the overall configuration of an apparatus to which an embodiment of the present invention is applied will be described. FIG. 1 is a schematic diagram showing an overall configuration of an apparatus to which an embodiment of the present invention is applied. The image input unit 100 optically reads a document, such as an input scanner, and generates original image data indicating a multi-value density value for each pixel. Then, the generated original image data is transferred to the image processing unit 200. The image processing unit 200 is a processing unit to which the image processing device according to the embodiment of the present invention is applied. In the image processing unit 200, in addition to the image processing using the image filter according to the embodiment of the present invention, after performing predetermined processing on the original image data, the image output unit 300 such as an output scanner or the like is used. Is output to And the image output unit 30
At 0, recording is performed on a recording medium such as a film. In order to cause the image input unit 100, the image processing unit 200, and the image output unit 300 to perform desired operations of the operator, an operation input unit 201 such as a keyboard and a mouse and an information display unit 202 such as a display unit are provided. Are provided.

【0021】<2.画像処理の概要>次に、この発明の
実施の形態である画像処理装置における処理形態につい
て説明する。この発明の実施の形態である画像処理装置
においては、画像フィルタを使用した画像処理が行われ
る。すなわち、M×N(M,Nは3以上の奇数)のマト
リクス状の画像フィルタを画像平面内に走査させること
によって画像の平滑化等の処理を行う。
<2. Outline of Image Processing> Next, a processing mode in an image processing apparatus according to an embodiment of the present invention will be described. In the image processing device according to the embodiment of the present invention, image processing using an image filter is performed. That is, a process such as image smoothing is performed by scanning an M × N (M, N is an odd number of 3 or more) matrix image filter in the image plane.

【0022】図2は、この発明の実施の形態における画
像処理の概要を示す説明図である。図2(a)に示す画
像Iに対してX方向(横方向)を主走査方向とし、Y方
向(縦方向)を副走査方向として1画素ごとに注目画素
OPを走査しながら順次に処理を行っていく。画像フィ
ルタによる処理の際は、図2(b)に示すように注目画
素OPを画像フィルタFの中心に位置させる。図2
(b)の例では、5×5(M=N=5)のマトリクス状
の画像フィルタが使用されている。そして画像フィルタ
の各成分に割り当てられた重み付け係数に基づいて注目
画素OPの濃度値とその近傍画素の濃度値との加重平均
を演算により導き、得られた値を注目画素OPのフィル
タ済信号とする。
FIG. 2 is an explanatory diagram showing an outline of image processing in the embodiment of the present invention. The image I shown in FIG. 2A is sequentially processed while scanning the target pixel OP pixel by pixel with the X direction (horizontal direction) as the main scanning direction and the Y direction (vertical direction) as the sub-scanning direction. I will go. At the time of processing by the image filter, the target pixel OP is positioned at the center of the image filter F as shown in FIG. FIG.
In the example of (b), a 5 × 5 (M = N = 5) matrix image filter is used. Then, based on the weighting coefficient assigned to each component of the image filter, a weighted average of the density value of the target pixel OP and the density values of the neighboring pixels is derived by calculation, and the obtained value is calculated as the filtered signal of the target pixel OP. I do.

【0023】すなわち、画像フィルタFが図3に示すよ
うな(2m+1)×(2n+1)のサイズのマトリクス
状であり、各成分にはk-m-n〜kmnの重み付け係数が割
り当てられているとする。この画像フィルタFを用いて
画像平面上の座標(x,y)に位置する注目画素OPに
対するフィルタ演算を行って得られるフィルタ済信号
S'xyは、
[0023] That is, image filter F is the size of the matrix as shown in FIG. 3 (2m + 1) × ( 2n + 1), the weighting coefficient of each component k -mn to k mn is assigned . A filtered signal S ′ xy obtained by performing a filter operation on the pixel of interest OP located at the coordinates (x, y) on the image plane using the image filter F is

【0024】[0024]

【数1】 (Equation 1)

【0025】となる。ここで、Sxyは原画像の画像平面
上の座標(x,y)に位置する画素の濃度値である。
## EQU1 ## Here, S xy is the density value of the pixel located at the coordinates (x, y) on the image plane of the original image.

【0026】なお、図3に示す画像フィルタにおいて、
注目画素およびその近傍画素に対応する重み付け係数が
全て正数である場合は、画像の平滑化を行うための画像
フィルタであり、重み付け係数の有する周波数特性が画
像フィルタの特性となる。
In the image filter shown in FIG.
When all the weighting coefficients corresponding to the target pixel and its neighboring pixels are positive numbers, it is an image filter for performing image smoothing, and the frequency characteristic of the weighting coefficient is the characteristic of the image filter.

【0027】<3.画像処理装置>次に、この発明の実
施の形態である画像処理装置について説明する。図4
は、この発明の実施の形態である画像処理装置を示す概
略構成図である。注目画素についての濃度値である主信
号Sは、平滑化処理部10とフィルタ演算部50に導か
れる。
<3. Image Processing Apparatus> Next, an image processing apparatus according to an embodiment of the present invention will be described. FIG.
1 is a schematic configuration diagram illustrating an image processing apparatus according to an embodiment of the present invention. The main signal S, which is the density value of the pixel of interest, is guided to the smoothing processing unit 10 and the filter operation unit 50.

【0028】平滑化処理部10においては、注目画素に
ついての主信号Sを入力すると、注目画素の近傍画素に
ついての平滑化処理を行って平均濃度値を求める。平均
濃度値を求める注目画素の近傍画素については、例え
ば、上近傍画素,下近傍画素,左近傍画素,右近傍画素
というように4個の近傍画素とすることができる。そし
て、これら注目画素の近傍画素として、図5(a)に示
すように注目画素の上隣,右隣,下隣,左隣に位置する
画素P1,P2,P3,P4をそれぞれ上近傍画素,右
近傍画素,下近傍画素,左近傍画素としても良いが、図
5(b)に示すように注目画素の上側,右側,下側,左
側のそれぞれについて数画素離れた位置にある画素P
5,P6,P7,P8をそれぞれ上近傍画素,右近傍画
素,下近傍画素,左近傍画素としても良い。
When the main signal S for the pixel of interest is input to the smoothing processing unit 10, the smoothing process is performed for pixels near the pixel of interest to obtain an average density value. The neighboring pixels of the target pixel for which the average density value is to be obtained can be, for example, four neighboring pixels such as an upper neighboring pixel, a lower neighboring pixel, a left neighboring pixel, and a right neighboring pixel. Then, as shown in FIG. 5A, pixels P1, P2, P3, and P4 located on the upper, right, lower, and left sides of the target pixel are upper neighboring pixels, respectively. The pixel P may be a right neighboring pixel, a lower neighboring pixel, or a left neighboring pixel. However, as shown in FIG.
5, P6, P7, and P8 may be upper neighboring pixels, right neighboring pixels, lower neighboring pixels, and left neighboring pixels, respectively.

【0029】そして、これら上近傍画素,右近傍画素,
下近傍画素,左近傍画素のそれぞれについて、各近傍画
素を中心とする網点サイズよりも大きい領域(平滑化領
域)で平滑化処理を行う。平滑化領域を網点サイズより
も大きい領域とするのは、網点形状を検出しないように
し、網点の中心位置に近い画素とそうでない画素とで、
濃度値が大きく異なることを防止し、本来の原画像の示
す濃度値を得るためである。
Then, these upper neighboring pixels, right neighboring pixels,
For each of the lower neighboring pixel and the left neighboring pixel, a smoothing process is performed in a region (smoothing region) larger than the halftone dot size centered on each neighboring pixel. The reason why the smoothed area is set to be an area larger than the halftone dot size is to prevent the halftone dot shape from being detected, by using pixels near the center position of the halftone dot and pixels that are not so.
This is to prevent the density values from largely differing and to obtain the density value indicated by the original original image.

【0030】そして、ここで行われる平滑化処理は、平
滑化領域内に位置する画素の濃度値を単純平均したり、
又は加重平均することにより行われる。このようにして
得られた上近傍画素についての平均濃度値をYU,下近
傍画素についての平均濃度値をYL,左近傍画素につい
ての平均濃度値をXL,右近傍画素についての平均濃度
値をXRとする。そして、平滑化処理部10は、上近傍
画素と下近傍画素についての平均濃度値YU,YLを縦方
向コントラスト抽出部21に送り、左近傍画素と右近傍
画素についての平均濃度値XL,XRを横方向コントラス
ト抽出部22に送る。
In the smoothing process performed here, the density values of pixels located in the smoothed area are simply averaged,
Alternatively, it is performed by weighted averaging. The average density value of the upper neighboring pixels thus obtained is YU, the average density value of the lower neighboring pixels is YL, the average density value of the left neighboring pixels is XL, and the average density value of the right neighboring pixels is XR. And Then, the smoothing processing unit 10 sends the average density values YU, YL for the upper neighboring pixels and the lower neighboring pixels to the vertical contrast extracting unit 21, and calculates the average density values XL, XR for the left neighboring pixels and the right neighboring pixels. This is sent to the horizontal contrast extraction unit 22.

【0031】縦方向コントラスト抽出部21では、画像
の注目画素付近における副走査方向である縦方向(Y方
向)のコントラストを抽出する。すなわち、入力する上
近傍画素と下近傍画素についての平均濃度値YU,YLを
用いて、
The vertical contrast extracting section 21 extracts the vertical (Y-direction) contrast in the sub-scanning direction near the target pixel of the image. That is, by using the average density values YU and YL for the input upper and lower neighboring pixels,

【0032】[0032]

【数2】 (Equation 2)

【0033】により縦方向コントラストCyを求める。
そして、得られた縦方向コントラストCyは、縦方向テ
ーブル参照部31に送られる。
Thus, the vertical contrast Cy is obtained.
Then, the obtained vertical contrast Cy is sent to the vertical table reference unit 31.

【0034】同様に、横方向コントラスト抽出部22で
は、画像の注目画素付近における主走査方向である横方
向(X方向)のコントラストを抽出する。すなわち、入
力する左近傍画素と右近傍画素についての平均濃度値X
L,XRを用いて、
Similarly, the horizontal contrast extraction unit 22 extracts the contrast in the horizontal direction (X direction), which is the main scanning direction, near the target pixel of the image. That is, the average density value X for the input left neighboring pixel and the right neighboring pixel.
Using L and XR,

【0035】[0035]

【数3】 (Equation 3)

【0036】により横方向コントラストCxを求める。
そして、得られた横方向コントラストCxは、横方向テ
ーブル参照部32に送られる。
Thus, the lateral contrast Cx is obtained.
Then, the obtained horizontal contrast Cx is sent to the horizontal table reference unit 32.

【0037】一般的に、コントラストが大きいというこ
とは、画像のエッジ部分を示し、逆にコントラストが小
さいということは、画像の濃度変化の少ない平坦な部分
を示す。従って、上記のように縦方向及び横方向のコン
トラストを求めることによって注目画素が画像のどのよ
うな部分であるかを判定することができる。また、平滑
化処理部10において平滑化処理が施されているため、
網点自体のエッジを検出することもない。
In general, a high contrast indicates an edge portion of an image, and a low contrast indicates a flat portion with a small change in density of the image. Therefore, by determining the vertical and horizontal contrasts as described above, it is possible to determine what portion of the image the pixel of interest is. In addition, since the smoothing processing is performed in the smoothing processing unit 10,
The edge of the halftone dot itself is not detected.

【0038】そして、縦方向テーブル参照部31は、内
部にメモリなどの記憶媒体を備えており、そこに予め記
憶されているテーブルを参照することにより、入力であ
る縦方向コントラストCyに対応する参照値IDyを出力
する。
The vertical table reference section 31 includes a storage medium such as a memory therein, and refers to a table stored in advance therein to obtain a reference corresponding to the input vertical contrast Cy. Output the value IDy.

【0039】同様に、横方向テーブル参照部32につい
ても、内部にメモリなどの記憶媒体を備えており、そこ
に予め記憶されているテーブルを参照することにより、
入力である横方向コントラストCxに対応する参照値I
Dxを出力する。
Similarly, the horizontal direction table reference section 32 also has a storage medium such as a memory inside, and refers to a table stored in advance therein, thereby obtaining a table.
Reference value I corresponding to input horizontal contrast Cx
Dx is output.

【0040】図6(a)は縦方向テーブル参照部31に
おける入力である縦方向コントラストCyと出力である
参照値IDyの関係を示す図であり、同図(b)は横方
向テーブル参照部32における入力である横方向コント
ラストCxと出力である参照値IDxの関係を示す図であ
る。このような入力と出力の関係をテーブルとしてメモ
リなどに記憶している。図6(a),(b)に示すよう
に縦方向についても横方向についてもコントラストC
y,Cxが小さいほど出力されるIDy,IDxの値は小さ
く、コントラストが大きくなるほどIDy,IDxの値は
大きくなる。言い換えれば、注目画素が画像のエッジ部
分である場合にはIDy,IDxの値は大きくなり、画像
の平坦な部分である場合には、IDy,IDxの値は小さ
くなる。そして縦方向テーブル参照部31及び横方向テ
ーブル参照部32で得られたIDy,IDxは重み付け係数
セット選択部40に送られる。
FIG. 6A is a diagram showing the relationship between the vertical contrast Cy as an input and the reference value IDy as an output in the vertical table reference section 31, and FIG. 6B is a view showing the horizontal table reference section 32. 5 is a diagram showing a relationship between a horizontal contrast Cx as an input and a reference value IDx as an output in FIG. The relationship between such input and output is stored in a memory or the like as a table. As shown in FIGS. 6A and 6B, the contrast C in the vertical direction and the horizontal direction is also large.
The smaller the values of y and Cx, the smaller the output values of IDy and IDx, and the higher the contrast, the higher the values of IDy and IDx. In other words, if the target pixel is an edge portion of the image, the values of IDy and IDx increase, and if the target pixel is a flat portion of the image, the values of IDy and IDx decrease. The IDy and IDx obtained by the vertical table reference unit 31 and the horizontal table reference unit 32 are sent to the weighting coefficient set selection unit 40.

【0041】また、図6(a)に示すように縦方向の参
照値IDyと縦方向コントラストCyとの関係は、コント
ラストCyがほぼ一定の増加を示すごとに参照値IDyの
値が1ずつ大きくなっているのに対して、図6(b)に
示す横方向の参照値IDxは、「1」の値がコントラス
トの中間値付近まで伸びており、さらに、「2」の値が
コントラストの高い領域にまで伸びている。すなわち横
方向と縦方向のコントラストが同じであっても、横方向
の参照値IDxは、縦方向の参照値IDyよりも小さくな
る場合がある。これは、画像入力部100の入力スキャ
ナが、原稿を光学的に読み取ると、主走査方向(横方
向)と副走査方向(縦方向)とでノイズの性質が異なる
ことを考慮したものである。例えば、入力スキャナの原
稿の主走査方向の読み取りが複数の画素が直線上に配列
されたCCDラインセンサで行われ、副走査方向の読み
取りがモータなどの駆動機構によって当該CCDライン
センサや原稿を一定速度で移動させることにより行われ
る装置について説明する。このような装置においては、
副走査方向にはノイズは1画素ごとに出現するが、主走
査方向には電気的に変倍することが可能であり、このよ
うなときには1画素に含まれていたノイズが主走査方向
に伸び縮みする。そしてノイズが主走査方向に伸びてい
る場合には主走査方向には大きいサイズの平滑化フィル
タにより平滑化処理を行うことが望ましいため、図6
(b)のように主走査方向には小さな参照値IDxを出
力するようにすれば良い。
As shown in FIG. 6A, the relationship between the reference value IDy in the vertical direction and the contrast Cy in the vertical direction is such that the reference value IDy increases by 1 each time the contrast Cy shows a substantially constant increase. On the other hand, in the reference value IDx in the horizontal direction shown in FIG. 6B, the value of “1” extends to near the middle value of the contrast, and the value of “2” has a high contrast. Extending to the area. That is, even if the contrast in the horizontal direction and the vertical direction is the same, the reference value IDx in the horizontal direction may be smaller than the reference value IDy in the vertical direction. This takes into account that, when the input scanner of the image input unit 100 optically reads a document, the nature of noise differs between the main scanning direction (horizontal direction) and the sub-scanning direction (vertical direction). For example, reading of a document by an input scanner in the main scanning direction is performed by a CCD line sensor in which a plurality of pixels are arranged in a straight line, and reading in the sub-scanning direction is performed by a driving mechanism such as a motor. An apparatus performed by moving at a speed will be described. In such a device,
In the sub-scanning direction, noise appears for each pixel, but in the main scanning direction, it is possible to electrically scale. In such a case, the noise included in one pixel expands in the main scanning direction. Shrink. If the noise extends in the main scanning direction, it is desirable to perform a smoothing process using a large-sized smoothing filter in the main scanning direction.
It is sufficient to output a small reference value IDx in the main scanning direction as shown in FIG.

【0042】しかし、主走査方向にノイズの伸び縮みが
ない場合には、図6(a)の縦方向の参照値IDyと同
様に、横方向の参照値IDxについてもコントラストCx
がほぼ一定の増加を示すごとに参照値IDxの値が1ず
つ大きくなるようにすれば良い。
However, when there is no expansion or contraction of noise in the main scanning direction, the contrast Cx for the reference value IDx in the horizontal direction is similar to the reference value IDy in the vertical direction in FIG.
The value of the reference value IDx may be increased by 1 each time the value indicates a substantially constant increase.

【0043】次に、重み付け係数セット選択部40にお
いては、各テーブル参照部から送られてくる参照値ID
y,IDxに対応する画像フィルタの重み付け係数k-m-n
〜kmnを選択決定する。この重み付け係数セット選択部
40の内部にはメモリなどの記憶部が設けられており、
その記憶部には入力となる参照値IDy,IDxに対応す
る各重み付け係数が記憶されている。そしてその記憶部
を参照することによって選択決定された各重み付け係数
は、フィルタ演算部50に送られる。
Next, in the weighting coefficient set selection section 40, the reference value ID sent from each table reference section
Image filter weighting coefficient k -mn corresponding to y, IDx
Selecting and determining the ~k mn. A storage unit such as a memory is provided inside the weighting coefficient set selection unit 40,
The storage unit stores weighting coefficients corresponding to input reference values IDy and IDx. Each weighting coefficient selected and determined by referring to the storage unit is sent to the filter operation unit 50.

【0044】図7は、重み付け係数セット選択部40に
おいて得られる画像フィルタの一例を示す図である。縦
方向についての参照値IDyの値が大きくなると、画像
フィルタの中心から縦方向に離れる重み付け係数は小さ
くなる。すなわち縦方向にはコントラストが高いため、
画像のエッジ部分であると判断されるので平滑化される
領域又は度合いが小さくなる。同様に参照値IDxの値
が大きくなると、画像フィルタの中心から横方向に離れ
る重み付け係数は小さくなる。横方向にコントラストが
高い画像のエッジ部分は、その横方向に平滑化される領
域又は度合いが小さくなる。なお、画像フィルタの割り
当てられた重み付け係数が「0」の成分は、画像フィル
タによる処理に関しては有効な係数でないことは数1か
らも明らかである。
FIG. 7 is a diagram showing an example of an image filter obtained in the weighting coefficient set selecting section 40. As the value of the reference value IDy in the vertical direction increases, the weighting coefficient that moves away from the center of the image filter in the vertical direction decreases. That is, since the contrast is high in the vertical direction,
Since the image is determined to be an edge portion of the image, the area or degree of smoothing is reduced. Similarly, as the value of the reference value IDx increases, the weighting coefficient that moves away from the center of the image filter in the horizontal direction decreases. An edge portion of an image having a high contrast in the horizontal direction has a smaller region or degree of smoothing in the horizontal direction. It is clear from Equation 1 that the component having the weighting coefficient “0” assigned to the image filter is not a valid coefficient for the processing by the image filter.

【0045】例えば、縦方向テーブル参照部31で得ら
れた参照値IDyが「3」であり、横方向テーブル参照
部32で得られた参照値IDxが「1」である場合に
は、図7に示す画像フィルタF13が選択される。この
画像フィルタF13は、横方向には平滑化される領域は
大きいが縦方向には平滑化される領域が小さくなってい
る。これは、縦方向のコントラストが大きく、横方向の
コントラストが小さいことに起因している。また、縦横
の双方ともコントラストが大きい場合(IDy=3,I
Dx=3の場合)は、図7に示す画像フィルタF33が
適用され、平滑化される領域が最も小さくなる。これに
よって、画像のエッジ部分の劣化を最小限に抑えること
ができる。また、縦横の双方ともコントラストが小さい
場合(IDy=1,IDx=1の場合)は、図7に示す画
像フィルタF11が適用されて、5×5の全領域につい
て平滑化が行われる。
For example, when the reference value IDy obtained by the vertical table reference unit 31 is “3” and the reference value IDx obtained by the horizontal table reference unit 32 is “1”, FIG. Is selected. This image filter F13 has a large area to be smoothed in the horizontal direction, but has a small area to be smoothed in the vertical direction. This is because the contrast in the vertical direction is large and the contrast in the horizontal direction is small. When the contrast is large in both the vertical and horizontal directions (IDy = 3, I
In the case of Dx = 3), the image filter F33 shown in FIG. 7 is applied, and the area to be smoothed becomes the smallest. As a result, deterioration of the edge portion of the image can be minimized. When the contrast is small in both the vertical and horizontal directions (when IDy = 1 and IDx = 1), the image filter F11 shown in FIG. 7 is applied, and the entire 5 × 5 region is smoothed.

【0046】なお、図7に示す画像フィルタは、一例と
して画像フィルタのサイズが5×5の場合を示している
が、これに限定するものではない。しかし、網点の影響
による画質の劣化やモアレの発生を良好に除去するため
に、画像フィルタのサイズは、原画像の個々の網点サイ
ズよりも大きいことが必要であり、網点サイズの2倍程
度以上の大きさであることが好ましい。
The image filter shown in FIG. 7 shows a case where the size of the image filter is 5 × 5 as an example, but the present invention is not limited to this. However, the size of the image filter needs to be larger than the individual halftone dot size of the original image in order to satisfactorily remove the deterioration of the image quality and the occurrence of moire due to the halftone dot size. The size is preferably about twice or more.

【0047】そしてフィルタ演算部50では、重み付け
係数セット選択部40から送られてくる各重み付け係数
に基づいて数1に示した演算処理を行ってフィルタ済信
号S’を生成する。このフィルタ済信号S’は、この実
施の形態の画像処理装置の出力信号となる。このように
してフィルタ済信号S’が得られると注目画素について
の処理が終了したことになる。そして、次の走査順序に
沿った次の処理対象の画素を注目画素として、同様の処
理を行う。これを繰り返すことによって画像全体に対し
て処理が終了する。
The filter operation unit 50 performs the operation shown in Equation 1 based on each weighting coefficient sent from the weighting coefficient set selection unit 40 to generate a filtered signal S ′. The filtered signal S ′ is an output signal of the image processing device according to the present embodiment. When the filtered signal S 'is obtained in this manner, the processing for the pixel of interest has been completed. Then, similar processing is performed with the next pixel to be processed in the next scanning order as a target pixel. By repeating this, the process ends for the entire image.

【0048】ここで、重み付け係数セット選択部40か
らフィルタ演算部50に出力されるデータは、各成分の
重み付け係数であっても良いが、これに限定するもので
はない。
Here, the data output from the weighting coefficient set selecting section 40 to the filter calculating section 50 may be a weighting coefficient of each component, but is not limited to this.

【0049】また、フィルタ演算部50で予め複数の重
み付け係数をRAM等の記憶部材に記憶させておくと、
重み付け係数セット選択部40を除くことが可能であ
る。すなわち、縦方向テーブル参照部31と横方向テー
ブル参照部32は、それぞれの方向のコントラストC
y,Cxに応じてフィルタ演算部50のRAMにアクセス
するアドレスのオフセット値を参照値IDy,IDxとし
て出力すれば、フィルタ演算部50は、その参照値ID
y,IDxの示すオフセット値に基づいてRAMにアクセ
スすれば、直接的に縦方向および横方向のコントラスト
に応じた各重み付け係数を獲得することができる。
When a plurality of weighting coefficients are stored in a storage member such as a RAM in advance in the filter calculation section 50,
The weighting coefficient set selection unit 40 can be omitted. That is, the vertical table reference unit 31 and the horizontal table reference unit 32 determine the contrast C in each direction.
If the offset value of the address for accessing the RAM of the filter operation unit 50 is output as reference values IDy and IDx according to y and Cx, the filter operation unit 50 outputs the reference value ID
By accessing the RAM based on the offset values indicated by y and IDx, it is possible to directly obtain the respective weighting coefficients corresponding to the vertical and horizontal contrasts.

【0050】このように、この実施の形態の画像処理装
置は、原画像のエッジ部分についてはそのエッジを劣化
させることのないの画像フィルタが適用され、画像の平
坦な部分についてはより大きなサイズの画像フィルタが
適用されるので、画像のエッジを劣化させることなく、
良好に画質の劣化を抑え、またモアレを除去することが
可能となる。
As described above, according to the image processing apparatus of this embodiment, an image filter which does not deteriorate the edge is applied to the edge portion of the original image, and a larger size is applied to the flat portion of the image. Since the image filter is applied, without deteriorating the edge of the image,
It is possible to satisfactorily suppress deterioration of image quality and remove moiré.

【0051】また、縦方向と横方向とのコントラストに
基づいて適用する画像フィルタの各重み付け係数を選択
決定するため、原画像のエッジの方向性を検出すること
ができ、そのエッジを保存するような画像フィルタを得
ることができる。従って、エッジを保存し、かつ、モア
レや画質の劣化を抑制する画像フィルタを適用すること
ができる。
Further, since each weighting coefficient of the image filter to be applied is selected and determined based on the contrast between the vertical direction and the horizontal direction, the directionality of the edge of the original image can be detected, and the edge is stored. A simple image filter can be obtained. Therefore, it is possible to apply an image filter that preserves edges and suppresses moire and deterioration of image quality.

【0052】<4.変形例>図4に示すフィルタ演算部
50で適用される画像フィルタのサイズは、モアレの発
生や画質の劣化を良好に除去するために、原画像の網点
サイズよりも大きいことが必要であることは既に説明し
た。従って、原画像の網点サイズが変更されれば、フィ
ルタ演算部50で適用される画像フィルタのサイズも変
更する必要が生じる場合がある。このような場合でも、
適切に処理を行うために、次のような処理を行えば良
い。
<4. Modification> The size of the image filter applied by the filter operation unit 50 shown in FIG. 4 needs to be larger than the halftone dot size of the original image in order to favorably remove the occurrence of moire and the deterioration of the image quality. That has already been explained. Therefore, if the halftone dot size of the original image is changed, it may be necessary to change the size of the image filter applied by the filter operation unit 50. Even in such a case,
In order to perform the processing appropriately, the following processing may be performed.

【0053】すなわち、画像入力部100(図1参照)
が原画像を読み込んだ際に、網点サイズを検出すること
ができる場合は、その検出した網点サイズをこの画像処
理装置に入力させる。そして、画像処理装置において重
み付け係数セット選択部40が、重み付け係数を選択す
る際に画像フィルタのサイズも適切なサイズに変更する
ようにすれば良い。また、網点サイズが変更になった際
に、オペレータが操作入力部201より網点サイズを設
定入力し、その設定入力された網点サイズをこの画像処
理装置に入力させても良い。このような構成にすると、
任意の網点サイズに応じて常に適切なサイズの画像フィ
ルタが適用され、画像処理装置は、どのような原画像で
あっても画像のエッジを劣化させることなく、良好に画
質の劣化を抑えることができ、またモアレを除去するこ
とが可能となる。
That is, the image input unit 100 (see FIG. 1)
If the halftone dot size can be detected when the original image is read, the detected halftone dot size is input to this image processing apparatus. Then, the weighting coefficient set selection unit 40 in the image processing apparatus may change the size of the image filter to an appropriate size when selecting the weighting coefficient. Further, when the dot size is changed, the operator may set and input the dot size from the operation input unit 201, and may input the set and input dot size to the image processing apparatus. With this configuration,
An image filter of an appropriate size is always applied according to an arbitrary halftone dot size, and the image processing apparatus can suppress the deterioration of the image quality without deteriorating the edge of the image regardless of the original image. And moire can be removed.

【0054】次に、実施の形態で説明したコントラスト
の抽出は、縦方向と横方向との2方向について行った
が、さらに、斜め方向のコントラストについても抽出す
ればなお好ましい。例えば、注目画素について右上がり
斜め方向と左上がり斜め方向についてコントラストを抽
出し、それぞれの方向についてコントラストが大きいと
きはその方向についてのエッジを保存するように画像フ
ィルタを適用すると良い。
Next, the extraction of the contrast described in the embodiment is performed in two directions, that is, the vertical direction and the horizontal direction. However, it is more preferable to extract the contrast in the oblique direction. For example, it is preferable to extract the contrast of the target pixel in the diagonally right-up diagonal direction and the diagonally right-up diagonal direction, and when the contrast is large in each direction, apply an image filter so as to preserve the edge in that direction.

【0055】また、縦,横,斜め以外の方向についてコ
ントラストを求めても良い。すなわち、一般的には2次
元的な広がりをもつ画像フィルタでの互いに異なる方向
であれば良い。
Further, the contrast may be obtained in directions other than the vertical, horizontal and oblique directions. That is, in general, the directions may be different from each other in an image filter having a two-dimensional spread.

【0056】次に、上記の説明においては縦方向テーブ
ル参照部31と横方向テーブル参照部32で得られるそ
れぞれの参照値IDy,IDxは、図6(a),(b)に
示すように「1」,「2」,「3」の3値であったが、
これを図8(a),(b)に示すように3値以上の多段
階の値をとり得るようにし、図7に示すような9個の画
像フィルタをもとに演算を行って必要な画像フィルタを
導出しても良い。このような処理を行う場合には、画像
処理の精度が上昇する。
Next, in the above description, the reference values IDy and IDx obtained by the vertical table reference section 31 and the horizontal table reference section 32 are, as shown in FIG. 6A and FIG. 1 ”,“ 2 ”, and“ 3 ”.
8 (a) and 8 (b) to obtain multi-level values of three or more values, and perform necessary calculations based on nine image filters as shown in FIG. An image filter may be derived. When such processing is performed, the accuracy of image processing increases.

【0057】そして、上記説明した内容は、原画像が網
点によって記録された網点原稿である場合に限らず、そ
の他の画像においてモアレ等が生じている場合には、同
様の処理を施せば、画像のエッジを劣化させることな
く、良好に画質の劣化を抑え、またモアレを除去するこ
とが可能となる。例えば、ディジタルカメラで得られた
画像等の画像処理にも適用可能である。
The contents described above are not limited to the case where the original image is a halftone original recorded by halftone dots, and the same processing may be performed if moire or the like occurs in other images. Therefore, it is possible to satisfactorily suppress deterioration of image quality and remove moiré without deteriorating image edges. For example, the present invention is applicable to image processing of an image or the like obtained by a digital camera.

【0058】[0058]

【発明の効果】以上説明したように、請求項1に記載の
発明によれば、処理対象である注目画素の近傍に位置す
る複数の近傍画素のそれぞれに対して、当該近傍画素の
周辺の所定の領域で平滑化処理を施すことにより、複数
の近傍画素のそれぞれについて平均濃度値を求め、得ら
れた複数の平均濃度値に基づいて注目画素についてのコ
ントラストを求める。そして、そのコントラストに応じ
て、画像フィルタの各成分に割り当てられる重み付け係
数を決定し、その重み付け係数が適用された画像フィル
タを用いて注目画素の主信号に対してフィルタ演算を施
し、出力信号を生成するため、画像のエッジを劣化させ
ることなく、良好に画質の劣化を抑え、またモアレを除
去することが可能となる。
As described above, according to the first aspect of the present invention, for each of a plurality of neighboring pixels located in the vicinity of a pixel of interest to be processed, a predetermined number of pixels around the neighboring pixel are determined. By performing the smoothing process in the area of, an average density value is obtained for each of the plurality of neighboring pixels, and the contrast of the target pixel is obtained based on the obtained average density values. Then, a weighting coefficient assigned to each component of the image filter is determined according to the contrast, a filter operation is performed on the main signal of the pixel of interest using the image filter to which the weighting coefficient is applied, and the output signal is calculated. Since the image is generated, it is possible to satisfactorily suppress deterioration of the image quality and remove moire without deteriorating the edge of the image.

【0059】請求項2に記載の発明によれば、フィルタ
演算において適用される画像フィルタのサイズは、網点
原稿を構成している個々の網点サイズよりも大きいた
め、網点の影響による画質の劣化やモアレを除去するこ
とが可能となる。
According to the second aspect of the present invention, since the size of the image filter applied in the filter operation is larger than the size of each halftone dot constituting the halftone original, the image quality due to the halftone dot effect is obtained. Degradation and moiré can be removed.

【0060】請求項3に記載の発明によれば、注目画素
についてのコントラストを求める際に、複数の近傍画素
から得られた複数の平均濃度値に基づいて互いに異なる
複数の方向についてのコントラストを求め、画像フィル
タの各成分に割り当てられる重み付け係数を決定する際
に、複数の方向についてのコントラストに応じて、複数
の方向についての有効な重み付け係数の分布をそれぞれ
変更する工程を含むため、原画像のエッジの方向性に応
じた画像フィルタを得ることができる。従って、エッジ
を保存し、かつ、モアレや画質の劣化を良好に抑制する
画像フィルタを適用することができる。
According to the third aspect of the present invention, when the contrast of the target pixel is obtained, the contrasts in a plurality of different directions are obtained based on a plurality of average density values obtained from a plurality of neighboring pixels. In determining the weighting coefficients assigned to each component of the image filter, the method includes a step of changing the distribution of effective weighting coefficients in a plurality of directions according to the contrast in the plurality of directions. An image filter according to the direction of the edge can be obtained. Therefore, it is possible to apply an image filter that preserves edges and favorably suppresses moiré and image quality deterioration.

【0061】請求項4に記載の発明によれば、処理対象
である注目画素の近傍に位置する複数の近傍画素のそれ
ぞれに対して、当該近傍画素の周辺の所定の領域で平滑
化処理を施すことにより、複数の近傍画素のそれぞれに
ついて平均濃度値を求め、得られた複数の平均濃度値に
基づいて注目画素についてのコントラストを求める。そ
して、そのコントラストに応じて、画像フィルタの各成
分に割り当てられる重み付け係数を決定し、その重み付
け係数が適用された画像フィルタを用いて注目画素の主
信号に対してフィルタ演算を施し、出力信号を生成する
ため、画像のエッジを劣化させることなく、良好に画質
の劣化を抑え、またモアレを除去することが可能とな
る。
According to the fourth aspect of the present invention, a smoothing process is performed on each of a plurality of neighboring pixels located near the target pixel to be processed in a predetermined area around the neighboring pixel. Thus, an average density value is obtained for each of the plurality of neighboring pixels, and a contrast for the pixel of interest is obtained based on the obtained plurality of average density values. Then, a weighting coefficient assigned to each component of the image filter is determined according to the contrast, a filter operation is performed on the main signal of the pixel of interest using the image filter to which the weighting coefficient is applied, and the output signal is calculated. Since the image is generated, it is possible to satisfactorily suppress deterioration of the image quality and remove moire without deteriorating the edge of the image.

【0062】請求項5に記載の発明によれば、フィルタ
演算において適用される画像フィルタのサイズは、網点
原稿を構成している個々の網点サイズよりも大きいた
め、網点の影響による画質の劣化やモアレを除去するこ
とが可能となる。
According to the fifth aspect of the present invention, since the size of the image filter applied in the filter operation is larger than the size of each halftone dot constituting the halftone original, the image quality due to the halftone dot effect is obtained. Degradation and moiré can be removed.

【0063】請求項6に記載の発明によれば、注目画素
についてのコントラストを求める際に、複数の近傍画素
から得られた複数の平均濃度値に基づいて互いに異なる
複数の方向についてのコントラストを求め、画像フィル
タの各成分に割り当てられる重み付け係数を決定する際
に、複数の方向についてのコントラストに応じて、複数
の方向についての有効な重み付け係数の分布をそれぞれ
変更する工程を含むため、原画像のエッジの方向性に応
じた画像フィルタを得ることができる。従って、エッジ
を保存し、かつ、モアレや画質の劣化を良好に抑制する
画像フィルタを適用することができる。
According to the sixth aspect of the present invention, when obtaining the contrast for the pixel of interest, the contrast for a plurality of different directions is obtained based on a plurality of average density values obtained from a plurality of neighboring pixels. In determining the weighting factors assigned to each component of the image filter, the method includes a step of changing the distribution of effective weighting factors in a plurality of directions according to the contrast in the plurality of directions. An image filter according to the direction of the edge can be obtained. Therefore, it is possible to apply an image filter that preserves edges and favorably suppresses moiré and image quality deterioration.

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

【図1】この発明の実施の形態が適用される装置の全体
構成の一例を示す概略図である。
FIG. 1 is a schematic diagram showing an example of an overall configuration of a device to which an embodiment of the present invention is applied.

【図2】この発明の実施の形態における画像処理の概要
を示す説明図である。
FIG. 2 is an explanatory diagram illustrating an outline of image processing according to the embodiment of the present invention;

【図3】画像フィルタの各成分の重み付け係数を示す図
である。
FIG. 3 is a diagram illustrating weighting coefficients of respective components of an image filter.

【図4】この発明の実施の形態である画像処理装置を示
す概略構成図である。
FIG. 4 is a schematic configuration diagram showing an image processing apparatus according to an embodiment of the present invention.

【図5】上近傍画素等を説明するための説明図である。FIG. 5 is an explanatory diagram for explaining an upper neighboring pixel and the like.

【図6】縦方向テーブル参照部と横方向テーブル参照部
における入力と出力の関係を示す図である。
FIG. 6 is a diagram showing a relationship between inputs and outputs in a vertical table reference section and a horizontal table reference section.

【図7】重み付け係数セット選択部において得られる画
像フィルタの一例を示す図である。
FIG. 7 is a diagram illustrating an example of an image filter obtained in a weighting coefficient set selection unit.

【図8】縦方向テーブル参照部と横方向テーブル参照部
における入力と出力の関係を示す図である。
FIG. 8 is a diagram showing the relationship between inputs and outputs in a vertical table reference section and a horizontal table reference section.

【図9】網点と読み取りを行う画素との位置関係を示す
図である。
FIG. 9 is a diagram showing a positional relationship between halftone dots and pixels to be read.

【図10】従来の画像処理装置を示す概略構成図であ
る。
FIG. 10 is a schematic configuration diagram showing a conventional image processing apparatus.

【図11】従来の画像フィルタの一例を示す図である。FIG. 11 is a diagram illustrating an example of a conventional image filter.

【図12】従来からの1個の網点を生成する方法を示す
説明図である。
FIG. 12 is an explanatory diagram showing a conventional method for generating one halftone dot.

【図13】網点画像のエッジ部分を示す図である。FIG. 13 is a diagram showing an edge portion of a halftone dot image.

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

10 平滑化処理部 21 縦方向コントラスト抽出部 22 横方向コントラスト抽出部 31 縦方向テーブル参照部 32 横方向テーブル参照部 40 重み付け係数セット選択部 50 フィルタ演算部 100 画像入力部 200 画像処理部 201 操作入力部 202 情報表示部 300 画像出力部 S 主信号 S’ フィルタ済信号 DESCRIPTION OF SYMBOLS 10 Smoothing processing part 21 Vertical contrast extraction part 22 Horizontal contrast extraction part 31 Vertical table reference part 32 Horizontal table reference part 40 Weighting coefficient set selection part 50 Filter operation part 100 Image input part 200 Image processing part 201 Operation input Unit 202 information display unit 300 image output unit S main signal S 'filtered signal

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 原画像に対して画素ごとに所定の処理を
施す方法であって、 (a) 処理対象である注目画素の近傍に位置する複数の近
傍画素のそれぞれに対して、当該近傍画素の周辺の所定
の領域で平滑化処理を施すことにより、前記複数の近傍
画素のそれぞれについて平均濃度値を求める工程と、 (b) 前記複数の近傍画素から得られた複数の前記平均濃
度値に基づいて注目画素についてのコントラストを求め
る工程と、 (c) 前記コントラストに応じて、画像フィルタの各成分
に割り当てられる重み付け係数を決定する工程と、 (d) 前記重み付け係数が適用された画像フィルタを用い
て前記注目画素の主信号に対してフィルタ演算を施し、
出力信号を生成する工程と、を有することを特徴とする
画像処理方法。
1. A method of performing a predetermined process for each pixel on an original image, comprising the steps of: (a) for each of a plurality of neighboring pixels located in the vicinity of a pixel of interest to be processed; Performing a smoothing process on a predetermined area around the plurality of neighboring pixels to obtain an average density value for each of the plurality of neighboring pixels; and (b) obtaining a plurality of average density values obtained from the plurality of neighboring pixels. (C) determining a weighting coefficient assigned to each component of the image filter in accordance with the contrast, and (d) determining an image filter to which the weighting coefficient has been applied. Applying a filter operation to the main signal of the pixel of interest using
Generating an output signal.
【請求項2】 網点原稿を読み取ることによって得られ
た原画像に対して画素ごとに所定の処理を施す方法であ
って、 (a) 処理対象である注目画素の近傍に位置する複数の近
傍画素のそれぞれに対して、当該近傍画素の周辺の前記
網点原稿を構成している個々の網点サイズよりも大きい
所定の領域で平滑化処理を施すことにより、前記複数の
近傍画素のそれぞれについて平均濃度値を求める工程
と、 (b) 前記複数の近傍画素から得られた複数の前記平均濃
度値に基づいて注目画素についてのコントラストを求め
る工程と、 (c) 前記コントラストに応じて、画像フィルタの各成分
に割り当てられる重み付け係数を決定する工程と、 (d) 前記重み付け係数が適用された画像フィルタを用い
て前記注目画素の主信号に対してフィルタ演算を施し、
出力信号を生成する工程と、を有し、 前記工程(d)で適用される前記画像フィルタのサイズ
は、前記網点原稿を構成している個々の網点サイズより
も大きいことを特徴とする画像処理方法。
2. A method for performing a predetermined process for each pixel on an original image obtained by reading a halftone dot original, comprising: (a) a plurality of neighborhoods located near a pixel of interest to be processed; For each of the plurality of neighboring pixels, by performing a smoothing process on each of the pixels in a predetermined area larger than the individual halftone dot size constituting the halftone document around the neighboring pixel. Obtaining a mean density value; (b) obtaining a contrast of the pixel of interest based on the plurality of average density values obtained from the plurality of neighboring pixels; (c) an image filter according to the contrast Determining a weighting coefficient assigned to each component of, (d) performing a filter operation on the main signal of the target pixel using an image filter to which the weighting coefficient is applied,
Generating an output signal, wherein the size of the image filter applied in the step (d) is larger than the size of each halftone dot constituting the halftone original document. Image processing method.
【請求項3】 請求項1または2に記載の方法におい
て、 前記工程(b)は、前記複数の近傍画素から得られた複数
の前記平均濃度値に基づいて互いに異なる複数の方向に
ついてのコントラストを求める工程を含み、 前記工程(c)は、前記複数の方向についてのコントラス
トに応じて、前記複数の方向についての有効な重み付け
係数の分布をそれぞれ変更する工程を含むことを特徴と
する画像処理方法。
3. The method according to claim 1, wherein the step (b) comprises: comparing contrasts in a plurality of different directions based on the plurality of average density values obtained from the plurality of neighboring pixels. An image processing method, wherein the step (c) includes a step of changing a distribution of effective weighting coefficients for the plurality of directions, respectively, according to contrast in the plurality of directions. .
【請求項4】 原画像に対して画素ごとに所定の処理を
施す装置であって、 (a) 処理対象である注目画素の近傍に位置する複数の近
傍画素のそれぞれに対して、当該近傍画素の周辺の所定
の領域で平滑化処理を施すことにより、前記複数の近傍
画素のそれぞれについて平均濃度値を求める手段と、 (b) 前記複数の近傍画素から得られた複数の前記平均濃
度値に基づいて注目画素についてのコントラストを求め
る手段と、 (c) 前記コントラストに応じて、画像フィルタの各成分
に割り当てられる重み付け係数を決定する手段と、 (d) 前記重み付け係数が適用された画像フィルタを用い
て前記注目画素の主信号に対してフィルタ演算を施し、
出力信号を生成する手段と、を備えることを特徴とする
画像処理装置。
4. An apparatus for performing a predetermined process for each pixel on an original image, comprising: (a) for each of a plurality of neighboring pixels located in the vicinity of a target pixel to be processed; Means for obtaining an average density value for each of the plurality of neighboring pixels by performing a smoothing process on a predetermined area around the (a), (b) a plurality of average density values obtained from the plurality of neighboring pixels Means for determining the contrast of the pixel of interest based on: (c) means for determining a weighting coefficient assigned to each component of the image filter according to the contrast; and (d) an image filter to which the weighting coefficient has been applied. Applying a filter operation to the main signal of the pixel of interest using
Means for generating an output signal.
【請求項5】 網点原稿を読み取ることによって得られ
た原画像に対して画素ごとに所定の処理を施す装置であ
って、 (a) 処理対象である注目画素の近傍に位置する複数の近
傍画素のそれぞれに対して、当該近傍画素の周辺の前記
網点原稿を構成している個々の網点サイズよりも大きい
所定の領域で平滑化処理を施すことにより、前記複数の
近傍画素のそれぞれについて平均濃度値を求める手段
と、 (b) 前記複数の近傍画素から得られた複数の前記平均濃
度値に基づいて注目画素についてのコントラストを求め
る手段と、 (c) 前記コントラストに応じて、画像フィルタの各成分
に割り当てられる重み付け係数を決定する手段と、 (d) 前記重み付け係数が適用された画像フィルタを用い
て前記注目画素の主信号に対してフィルタ演算を施し、
出力信号を生成する手段と、 を備え、 前記手段(d)で適用される前記画像フィルタのサイズ
は、前記網点原稿を構成している個々の網点サイズより
も大きいことを特徴とする画像処理装置。
5. An apparatus for performing a predetermined process for each pixel on an original image obtained by reading a halftone original, comprising: (a) a plurality of neighborhoods located in the vicinity of a target pixel to be processed; For each of the plurality of neighboring pixels, by performing a smoothing process on each of the pixels in a predetermined area larger than the individual halftone dot size constituting the halftone document around the neighboring pixel. Means for obtaining an average density value; (b) means for obtaining a contrast for the pixel of interest based on the plurality of average density values obtained from the plurality of neighboring pixels; and (c) an image filter according to the contrast. Means for determining a weighting coefficient assigned to each component of, and (d) performing a filter operation on the main signal of the pixel of interest using an image filter to which the weighting coefficient has been applied,
Means for generating an output signal, wherein the size of the image filter applied in the means (d) is larger than the size of each halftone dot constituting the halftone dot document. Processing equipment.
【請求項6】 請求項4または5に記載の装置におい
て、 前記手段(b)は、前記複数の近傍画素から得られた複数
の前記平均濃度値に基づいて互いに異なる複数の方向に
ついてのコントラストを求める手段を含み、 前記手段(c)は、前記複数の方向についてのコントラス
トに応じて、前記複数の方向についての有効な重み付け
係数の分布をそれぞれ変更する手段を含むことを特徴と
する画像処理装置。
6. The apparatus according to claim 4, wherein the means (b) adjusts contrast in a plurality of directions different from each other based on the plurality of average density values obtained from the plurality of neighboring pixels. An image processing apparatus, comprising: means for obtaining, wherein the means (c) includes means for respectively changing distributions of effective weighting coefficients for the plurality of directions according to contrast in the plurality of directions. .
JP07357097A 1997-03-26 1997-03-26 Image processing method and apparatus Expired - Fee Related JP3476649B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP07357097A JP3476649B2 (en) 1997-03-26 1997-03-26 Image processing method and apparatus
US09/040,303 US6272260B1 (en) 1997-03-26 1998-03-18 Method of and apparatus for processing an image filter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07357097A JP3476649B2 (en) 1997-03-26 1997-03-26 Image processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH10271339A true JPH10271339A (en) 1998-10-09
JP3476649B2 JP3476649B2 (en) 2003-12-10

Family

ID=13522078

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07357097A Expired - Fee Related JP3476649B2 (en) 1997-03-26 1997-03-26 Image processing method and apparatus

Country Status (1)

Country Link
JP (1) JP3476649B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03250975A (en) * 1990-02-28 1991-11-08 Canon Inc Picture processor
JPH04188283A (en) * 1990-11-22 1992-07-06 Canon Inc Method and device for processing picture
JPH06131455A (en) * 1992-10-19 1994-05-13 Ricoh Co Ltd Digital color picture reproducing device
JPH10191064A (en) * 1996-12-25 1998-07-21 Dainippon Screen Mfg Co Ltd Image filtering method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03250975A (en) * 1990-02-28 1991-11-08 Canon Inc Picture processor
JPH04188283A (en) * 1990-11-22 1992-07-06 Canon Inc Method and device for processing picture
JPH06131455A (en) * 1992-10-19 1994-05-13 Ricoh Co Ltd Digital color picture reproducing device
JPH10191064A (en) * 1996-12-25 1998-07-21 Dainippon Screen Mfg Co Ltd Image filtering method and device

Also Published As

Publication number Publication date
JP3476649B2 (en) 2003-12-10

Similar Documents

Publication Publication Date Title
US6864994B1 (en) High-speed, high-quality descreening system and method
EP1093295A2 (en) Image processing device and image processing method
JPH11220632A (en) Picture processor and picture processing method and medium for recording picture processing control program
US20100079770A1 (en) Content-aware halftone image resizing
JP2577748B2 (en) Image signal interpolation method and image signal processing apparatus for implementing the method
US6272260B1 (en) Method of and apparatus for processing an image filter
US6201613B1 (en) Automatic image enhancement of halftone and continuous tone images
JPH02127782A (en) Picture contour emphasizing method
US6301395B1 (en) Image processing apparatus that can appropriately enhance contour of an image
JP4366634B2 (en) Noise pixel map creation method, apparatus and program for implementing the method, and photo print apparatus
JPS61242466A (en) Image variable power system
JP3604910B2 (en) Image reduction device and recording medium recording image reduction program
JP2784278B2 (en) Image scaling processor
JP2000253238A (en) Picture processor and picture processing method
JP3476649B2 (en) Image processing method and apparatus
JP4138126B2 (en) Image processing device
US6178268B1 (en) Method of and apparatus for processing image
JPH10276331A (en) Image processing unit and its method
JPH10271340A (en) Image-processing method and device therefor
JPH10191064A (en) Image filtering method and device
JP3222570B2 (en) Image area identification device
JP4063971B2 (en) Image processing method and apparatus
JPH0662230A (en) Image forming device
JP2003102027A5 (en)
JPH01133470A (en) Digital picture processing method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080926

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees