JP2003046781A - Method and device for image processing - Google Patents

Method and device for image processing

Info

Publication number
JP2003046781A
JP2003046781A JP2001232815A JP2001232815A JP2003046781A JP 2003046781 A JP2003046781 A JP 2003046781A JP 2001232815 A JP2001232815 A JP 2001232815A JP 2001232815 A JP2001232815 A JP 2001232815A JP 2003046781 A JP2003046781 A JP 2003046781A
Authority
JP
Japan
Prior art keywords
pixel
gradation level
interest
range
image processing
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.)
Withdrawn
Application number
JP2001232815A
Other languages
Japanese (ja)
Inventor
Tsutomu Takayama
勉 高山
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 JP2001232815A priority Critical patent/JP2003046781A/en
Publication of JP2003046781A publication Critical patent/JP2003046781A/en
Withdrawn legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To perform processing according to the strength of removing, the type of document and resolution, etc., in detecting and removing dust noise on a document image. SOLUTION: Upon detection of a defective pixel by a defective pixel detection section 105, if the difference between a gradation value of a median value in pixels in a filter range preset by a filter range setting section 107 and a gradation value of the defective value is no less than a threshold value preset by threshold value setting section 108, a median filter 106 replaces the defective pixel with the median value. In this case, the filter range or the threshold value may be changed according to the setting by a filter strength setting section 109.

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 method and an image processing apparatus, and more particularly to an image processing method and an image processing apparatus for correcting dust noise due to dust contained in image data read by an image reading apparatus or the like. It is a thing.

【0002】[0002]

【従来の技術】従来、電子的な画像データを生成する手
法のひとつとして、原稿に描かれた画像を光学画像スキ
ャナで読み取り、原稿画像を表現する電子的な画像デー
タを得るというものがある。この手法では、簡便に画像
データを生成できるものの、原稿に付着したほこりや、
画像スキャナの読み取り面に付着した汚れ等も画像の一
部として読み取られてしまう。このため、生成される画
像データに、本来画像の成分ではないノイズ(ダストノ
イズ)としてその汚れ等の像が含まれることになる。こ
のような埃等によるダストノイズを修正するために、従
来は、読み取った画像データをディスプレイ装置などで
画像再生しておき、操作者がその画像をよく観察し、ダ
ストノイズであることを認めた上で、画像編集ソフトウ
エアを利用してレタッチ修正する以外に有効な方法がな
かった。
2. Description of the Related Art Conventionally, as one of methods of generating electronic image data, there is a method of reading an image drawn on a document with an optical image scanner and obtaining electronic image data representing the image of the document. With this method, you can easily generate image data, but
Dirt or the like attached to the reading surface of the image scanner is also read as a part of the image. Therefore, the generated image data includes an image such as dirt as noise (dust noise) that is not originally a component of the image. In order to correct the dust noise due to such dust and the like, conventionally, the read image data is image-reproduced by a display device or the like, and the operator often observes the image and acknowledges that it is dust noise. Above, there was no effective method other than retouching correction using image editing software.

【0003】そこで、このようなダストノイズを短時間
で自動的に検出して除去処理する手法にかかる発明が、
本願出願人により、平成13年4月2日付けの特願20
01−103642号として特許出願されている。
Therefore, an invention relating to a method for automatically detecting and removing such dust noise in a short time is as follows.
Japanese Patent Application No. 20 dated April 2, 2001 by the applicant of the present application
The patent application has been filed as 01-103642.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、特願2
001−103642号に開示された技術では、ダスト
ノイズとして検出された欠陥画素については、その近傍
画素の値に基づいて常に一定の手順で修正されてしま
う。この一定の手順がかならずしもあらゆる画像に対し
て好結果をもたらすとはかぎらないため、修正の程度を
可変にする必要があった。
However, Japanese Patent Application No. 2
In the technique disclosed in No. 001-103642, a defective pixel detected as dust noise is always corrected in a fixed procedure based on the values of its neighboring pixels. This fixed procedure does not always give good results for all images, so it was necessary to make the degree of correction variable.

【0005】本発明は上記従来例に鑑みて成されたもの
で、ダストノイズを除去する強さを可変に設定したり、
あるいは、原稿画像の種類に応じてダストノイズの除去
処理を最適化することのできる画像処理方法及び装置を
提供することを目的とする。
The present invention has been made in view of the above-mentioned conventional example, in which the strength for removing dust noise can be set variably,
Alternatively, another object is to provide an image processing method and apparatus capable of optimizing the dust noise removal processing according to the type of the original image.

【0006】[0006]

【課題を解決するための手段】上記の課題を解決するた
めに本発明の画像処理方法は次のような構成から成る。
In order to solve the above problems, the image processing method of the present invention has the following configuration.

【0007】注目画素の近傍の範囲または第1の閾値ま
たはそれら両方を変更可能な設定工程と、画像データの
注目画素の階調レベルと、前記注目画素の近傍の範囲内
の画素の階調レベルに基づいて求めた置換画素の階調レ
ベルとの差が、前記第1の閾値以上である場合に、前記
注目画素の階調レベルを前記置換画素の階調レベルによ
り置換する置換工程とを備える。
Setting step capable of changing the range in the vicinity of the pixel of interest, the first threshold value, or both, the gradation level of the pixel of interest in the image data, and the gradation level of pixels in the range in the vicinity of the pixel of interest. And a difference between the gradation level of the replacement pixel and the gradation level of the replacement pixel is equal to or larger than the first threshold, the replacement step of replacing the gradation level of the target pixel with the gradation level of the replacement pixel. .

【0008】好ましくは、前記設定工程は、前記注目画
素の近傍の範囲を広げ、あるいは狭めるよう変更する。
Preferably, in the setting step, the range in the vicinity of the pixel of interest is changed to be widened or narrowed.

【0009】また、前記設定工程は、前記第1の閾値を
下げ、あるいは上げるよう変更する。
In the setting step, the first threshold value is changed so as to be lowered or raised.

【0010】また、前記設定工程は、前記注目画素の近
傍の範囲を広げるとともに前記第1の閾値を下げ、ある
いは、前記注目画素の近傍の範囲を狭めるとともに前記
第1の閾値を上げる。
In the setting step, the range in the vicinity of the pixel of interest is widened and the first threshold is lowered, or the range in the vicinity of the pixel of interest is narrowed and the first threshold is raised.

【0011】この構成により、注目画素を置換するため
の閾値や置換画素の値を設定可能とできる。
With this configuration, it is possible to set the threshold value for replacing the pixel of interest and the value of the replacement pixel.

【0012】好ましくは、前記設定工程は、前記注目画
素を含む画像の種類に応じて注目画素の近傍の範囲また
は第1の閾値またはそれら両方を変更する。
Preferably, the setting step changes the range in the vicinity of the pixel of interest, the first threshold value, or both in accordance with the type of image containing the pixel of interest.

【0013】好ましくは、原稿種類の設定に応じて、前
記置換工程による注目画素の置換を行わせない禁止工程
をさらに備える。
Preferably, the method further includes a prohibition step in which the pixel of interest is not replaced in the replacement step according to the setting of the document type.

【0014】好ましくは、前記設定工程は、前記注目画
素を含む画像がデジタル化された際の解像度に応じて注
目画素の近傍の範囲または第1の閾値またはそれら両方
を変更する。
Preferably, in the setting step, the range in the vicinity of the pixel of interest or the first threshold value or both of them are changed according to the resolution when the image including the pixel of interest is digitized.

【0015】好ましくは、前記置換工程は、前記置換画
素として、前記注目画素の近傍の範囲内の画素のうち、
階調レベルの中間値を階調レベルとして有する画素を用
いる。
Preferably, in the replacing step, as the replacing pixel, among the pixels in the range near the target pixel,
A pixel having an intermediate value of the gradation level as the gradation level is used.

【0016】好ましくは、画像データから、近傍画素と
の階調レベルの差が第2の閾値以上となる画素を中心画
素とする対象画素群を検出する対象画素検出工程と、前
記中心画素を中心とする第1の範囲内にある画素の階調
レベル値に基づいて基準値を求め、該基準値と前記対象
画素群の各画素との階調レベル差が第3の閾値以上とな
る画素を欠陥画素として検出する欠陥画素検出工程とを
さらに備え、前記欠陥画素検出工程により検出された欠
陥画素を前記中心画素とする。
Preferably, a target pixel detecting step of detecting a target pixel group whose center pixel is a pixel having a gradation level difference from a neighboring pixel of not less than a second threshold value from the image data; The reference value is obtained based on the gradation level value of the pixel in the first range, and the pixel whose gradation level difference between the reference value and each pixel of the target pixel group is equal to or larger than the third threshold is determined. A defective pixel detecting step of detecting as a defective pixel is further provided, and the defective pixel detected by the defective pixel detecting step is set as the central pixel.

【0017】[0017]

【発明の実施の形態】以下本発明の実施の形態である画
像処理方法、及び画像処理装置を図面を参照しながらそ
の実施例について詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of an image processing method and an image processing apparatus according to an embodiment of the present invention will be described in detail below with reference to the drawings.

【0018】(第1の実施形態)図1は本発明を適用し
た画像処理部102を備えた画像処理装置の機能構成を
示すブロック図である。図1において、101は画像デ
ータの読取を行う画像読取装置、103は画像データを
入力するためのインターフェース(I/F)、104は
画像データを記憶する画像メモリ、105は欠陥画素抽
出部、106はメディアンフィルタ、107はフィルタ
範囲設定部、108は階調レベルの閾値設定部、109
はフィルタの強さ設定部である。
(First Embodiment) FIG. 1 is a block diagram showing the functional arrangement of an image processing apparatus having an image processing unit 102 to which the present invention is applied. In FIG. 1, 101 is an image reading device that reads image data, 103 is an interface (I / F) for inputting image data, 104 is an image memory that stores image data, 105 is a defective pixel extraction unit, and 106 is Is a median filter, 107 is a filter range setting unit, 108 is a gradation level threshold setting unit, 109
Is a filter strength setting unit.

【0019】上記構成において、図2のフローチャート
を参照しながら、本第1の実施形態における画像処理方
法について詳細に説明する。
With the above arrangement, the image processing method according to the first embodiment will be described in detail with reference to the flowchart of FIG.

【0020】先ずステップ201において、画像読取装
置101からインターフェイス103を通して画像デー
タが画像メモリ104に入力される。次にステップ20
2において、画像メモリ104から読み出された画像デ
ータの内から、ダストノイズの特徴を備えた画素を欠陥
画素抽出部105にて抽出する。ここで、欠陥画素の抽
出手順について説明する。
First, in step 201, image data is input from the image reading apparatus 101 to the image memory 104 through the interface 103. Next step 20
In 2, the defective pixel extracting unit 105 extracts pixels having the feature of dust noise from the image data read from the image memory 104. Here, the procedure for extracting defective pixels will be described.

【0021】<欠陥画素の抽出>図6は、欠陥画素を抽
出する欠陥画素抽出部105の詳細のブロック図であ
る。図6において、601は階調レベル差ΔL1算出
部、602は階調レベル差ΔL2設定部、603は対象
画素抽出部、604は範囲設定部、605は平均値算出
部、606は階調レベル差ΔL3算出部、607は階調
レベル差ΔL4設定部、608は画素抽出部である。欠
陥画素抽出部は、次のようにしてダストノイズの特徴を
備えた画素を抽出する。
<Extraction of Defective Pixels> FIG. 6 is a detailed block diagram of the defective pixel extraction unit 105 for extracting defective pixels. In FIG. 6, 601 is a gradation level difference ΔL1 calculation unit, 602 is a gradation level difference ΔL2 setting unit, 603 is a target pixel extraction unit, 604 is a range setting unit, 605 is an average value calculation unit, and 606 is a gradation level difference. A ΔL3 calculation unit, 607 is a gradation level difference ΔL4 setting unit, and 608 is a pixel extraction unit. The defective pixel extraction unit extracts pixels having the characteristics of dust noise as follows.

【0022】まず、ΔL1算出部601は、画像メモリ
104から画像データを読み出し、そのうちの任意の画
素データAに注目し、図3に示すようにこの注目画素A
とその左右の隣接画素E,Fとの階調レベル差ΔL1x
と、注目画素Aと上下の隣接画素C,Hとの階調レベル
差ΔL1yとを次のように算出する。なお、画素を示す
符号であるA,Bなどは、そのままその画素の濃度階調
を示す符号としても用いる。また、注目画素Aの選択方
法としては、画像全体をもれなく走査するために、ラス
タ走査順に順次選択する方法が望ましい。
First, the ΔL1 calculator 601 reads out image data from the image memory 104, pays attention to arbitrary pixel data A among them, and as shown in FIG.
Difference ΔL1x between the left and right adjacent pixels E and F
Then, the gradation level difference ΔL1y between the target pixel A and the upper and lower adjacent pixels C and H is calculated as follows. It should be noted that the symbols A, B, etc. indicating the pixels are also used as they are as the symbols indicating the density gradation of the pixel. Further, as a method of selecting the target pixel A, a method of sequentially selecting in the raster scanning order is desirable in order to scan the entire image without omission.

【0023】 ΔL1x=│A×2−(E+F)│ … (1) ΔL1y=│A×2−(C+H)│ … (2) このΔL1xとΔL1yの大きい値を注目画素Aの階調
レベル差ΔL1とする。この算出処理は階調レベル差Δ
L1算出部601にて行われる。なお、カラー画像デー
タの場合には、例えば次のようにする。RGBの各色成
分ごとに、注目画素と左右の画素との階調レベルの差Δ
L1xr,ΔL1xg,ΔL1xbを求め、そのうち最
も大きな値を式(1)のΔL1xとして利用する。ΔL
yについても同様にして求める。この方法は、以下の説
明やその他の実施形態についても同様であり、階調レベ
ルの差を求める場合にはこの要領で得ることができる。
ΔL1x = | A × 2- (E + F) | (1) ΔL1y = | A × 2- (C + H) | And This calculation process is based on the gradation level difference Δ
This is performed by the L1 calculation unit 601. In the case of color image data, for example, the following is performed. The difference Δ in gradation level between the pixel of interest and the left and right pixels for each color component of RGB
L1xr, ΔL1xg, and ΔL1xb are obtained, and the largest value is used as ΔL1x in Expression (1). ΔL
Similarly, y is obtained. This method is the same as in the following description and other embodiments, and can be obtained in this manner when obtaining the difference in gradation level.

【0024】ΔL1の算出方法は上記例に限ったことで
はなく、ΔL1xまたはΔL1yのどちらかを用いても
良い。また、ΔL1xまたはΔL1yの算出に、左右、
上下の両方向を使用せずに、左のみ、上のみを使用する
といった算出方法としても良い。その場合には注目画素
と隣接画素との階調レベル差をΔL1xやΔL1yとし
て用いる。更に、ΔL1を決定する際に、本実施形態で
は隣接画素のみを使用しているが、注目画素から2画素
以上離れた画素を使用しても構わない。
The method of calculating ΔL1 is not limited to the above example, and either ΔL1x or ΔL1y may be used. In addition, when calculating ΔL1x or ΔL1y,
The calculation method may be such that only the left side and the upper side are used without using both the upper and lower directions. In that case, the gradation level difference between the pixel of interest and the adjacent pixel is used as ΔL1x or ΔL1y. Furthermore, when determining ΔL1, only adjacent pixels are used in the present embodiment, but pixels that are two or more pixels away from the pixel of interest may be used.

【0025】ΔL1は、画像データが有する、局所的に
はそこを構成する画素値の相関度が高いという局所的相
関性を利用するために算出される値である。そのため、
注目画素に対する比較対象の画素としては、注目画素と
相関していることを期待し得る範囲であれば選択でき
る。すなわち、注目画素から2画素以上離れた画素を使
用しても構わないとはいうものの、まったくどの画素で
あってもかまわないのではなく、注目画素近傍の画素で
ある必要があり、望ましくは本実施形態のように隣接画
素を選択するのが良い。画像データを読み込んだ際の解
像度によってもこの範囲は変動する。例えば、ある一定
の画素数分離れた2画素に注目した場合、高解像度であ
れば或る程度の相関度を有していても、低解像度ではそ
の相関度は低下する。なお、ここでは、画像データにお
いて注目画素と相関していることを期待し得る範囲を注
目画素の近傍と称するものとする。
ΔL1 is a value calculated in order to utilize the local correlation that the image data locally has a high degree of correlation of the pixel values forming the image data. for that reason,
The pixel to be compared with the target pixel can be selected as long as it can be expected to be correlated with the target pixel. That is, although it is possible to use a pixel that is more than two pixels away from the pixel of interest, it does not matter which pixel it is at all and it must be a pixel in the vicinity of the pixel of interest. Adjacent pixels are preferably selected as in the embodiment. This range also varies depending on the resolution when reading the image data. For example, when attention is paid to two pixels separated by a certain number of pixels, even if the high resolution has a certain degree of correlation, the low resolution decreases the degree of correlation. Note that here, the range in the image data where it can be expected to be correlated with the target pixel is referred to as the vicinity of the target pixel.

【0026】次に、対象画素抽出部603により、第1
の閾値ΔL2設定部602にて設定された第1の閾値Δ
L2と階調レベル差ΔL1とを比較し、ΔL1≧ΔL2
となるかどうかの判定を行う。ΔL1≧ΔL2とならな
い場合には注目画素を次の未処理の画素に移動する。
Next, the target pixel extraction unit 603 makes the first
The first threshold Δ set by the threshold ΔL2 setting unit 602 of
L2 is compared with the gradation level difference ΔL1, and ΔL1 ≧ ΔL2
It is determined whether or not If ΔL1 ≧ ΔL2 is not satisfied, the pixel of interest is moved to the next unprocessed pixel.

【0027】なお、第1の閾値ΔL2は、注目画素がノ
イズである可能性を判定するための閾値であり、この後
引き続いて行われるノイズであるか否かの判定対象とな
る画素数を絞り込むための値である。対象を絞り込むた
めの値であるから、第1の閾値ΔL2の値は0より大き
ければ、例えば1であればその目的を達成できる(階調
レベルは0〜155などの整数で表されるものとす
る)。そのほかに、第1の閾値ΔL2の決定方法として
は、例えば、自然画像などからオブジェクトの境界を含
まない比較的一様な局所画像を実験的に獲得し、そこに
おける階調レベルΔL1(ΔL1R)を上式で算出し
て、ΔL1R<ΔL2となる最小の数値をΔL2として
決定する方法などが考えられる。ΔL2設定部602
は、あらかじめ入力された値を記憶するメモリで構成で
きる。
The first threshold value ΔL2 is a threshold value for judging the possibility that the pixel of interest is noise, and the number of pixels to be subsequently judged whether or not it is noise is narrowed down. Is a value for. Since it is a value for narrowing down the target, if the value of the first threshold value ΔL2 is larger than 0, for example, if it is 1, the object can be achieved (the gradation level is represented by an integer such as 0 to 155). To). In addition, as a method of determining the first threshold value ΔL2, for example, a relatively uniform local image that does not include the boundary of an object is experimentally acquired from a natural image or the like, and the gradation level ΔL1 (ΔL1R) at that is acquired. A method of calculating the above equation and determining the minimum numerical value of ΔL1R <ΔL2 as ΔL2 is conceivable. ΔL2 setting unit 602
Can be configured with a memory that stores a value that is input in advance.

【0028】さて、ΔL1≧ΔL2となった場合には、
対象画素抽出部603により、注目画素を対象画素とし
て抽出し、次にその周囲の近接画素も対象画素として抽
出する。なお、以下では、修正処理の候補となる対象画
素を単に対象画素と呼ぶ。図3において注目画素Aが対
象画素だった場合には、例えばその隣接画素C,E,
F,Hも対象画素として抽出する。これは、ダストノイ
ズはある程度の広がりを有するのが普通のためである。
この抽出処理は対象画素抽出部603にて行われる。
When ΔL1 ≧ ΔL2,
The target pixel extraction unit 603 extracts the target pixel as the target pixel, and then also extracts the neighboring pixels around it as the target pixel. In the following, the target pixel that is a candidate for the correction process is simply referred to as the target pixel. In FIG. 3, when the target pixel A is the target pixel, for example, the adjacent pixels C, E,
F and H are also extracted as target pixels. This is because dust noise normally has some spread.
This extraction processing is performed by the target pixel extraction unit 603.

【0029】対象画素の抽出方法は上記例に限ったこと
ではなく、注目画素及びその上下左右の隣接画素のうち
の少なくともいずれかを対象画素として抽出しても良
い。更に注目画素から2画素以上離れた画素を抽出して
も構わない。ただし、この範囲も前述した近傍の範囲に
限られる。なお、ここでいう抽出には、文字通り抽出す
るということだけでなく、例えば画像メモリにおける画
素のアドレスを記憶して必要に応じて参照可能としてお
くといった、実質的に抽出したと同様の処理が行える状
態を設定する動作も含まれる。
The method of extracting the target pixel is not limited to the above example, and the target pixel and at least one of the upper, lower, left and right adjacent pixels may be extracted as the target pixel. Further, it is also possible to extract pixels that are more than two pixels away from the pixel of interest. However, this range is also limited to the range in the vicinity described above. It should be noted that the extraction referred to here is not limited to literal extraction, but it is possible to perform substantially the same processing as extraction, such as storing the address of a pixel in the image memory and making it available for reference. The operation of setting the state is also included.

【0030】次に、抽出された対象画素データに注目
し、範囲設定部604にて設定された範囲の画素データ
の平均値Laを平均値算出部605にて算出し、階調レ
ベル差ΔL3算出部606にて対象画素データと平均値
Laとの階調レベル差ΔL3を算出する。範囲設定部6
05にて設定された範囲が図3のように3×3画素の場
合、階調レベル差ΔL3は次のように算出される。
Next, paying attention to the extracted target pixel data, the average value calculation unit 605 calculates the average value La of the pixel data in the range set by the range setting unit 604, and the gradation level difference ΔL3 is calculated. The unit 606 calculates the gradation level difference ΔL3 between the target pixel data and the average value La. Range setting section 6
When the range set in 05 is 3 × 3 pixels as shown in FIG. 3, the gradation level difference ΔL3 is calculated as follows.

【0031】 ΔL3=│A−La│ =│A−(A+B+C+D+E+F+G+H+I)/9
│ 上式は注目画素AについてのΔL3を算出する式である
が、ひとつの注目画素とともに抽出された対象画素それ
ぞれについてそれらを注目画素Aとみなし、上式と同様
の処理を行って対象画素すべてについてΔL3を算出す
る。
ΔL3 = | A−La | = | A− (A + B + C + D + E + F + G + H + I) / 9
│ The above formula is a formula for calculating ΔL3 for the target pixel A, but regarding each target pixel extracted together with one target pixel, they are regarded as the target pixel A, and the same process as the above formula is performed for all target pixels. ΔL3 is calculated for.

【0032】次に、階調レベル差設定部607にて設定
された第2の閾値ΔL4と階調レベル差ΔL3とを比較
し、ΔL3≧ΔL4となるかどうかの判定を行う。
Next, the second threshold value ΔL4 set by the gradation level difference setting unit 607 is compared with the gradation level difference ΔL3 to determine whether ΔL3 ≧ ΔL4.

【0033】この判定は、修正処理の対象画素として絞
り込まれた画素の内から、修正を実際に施される欠陥画
素を決定するための処理である。修正処理の対象として
絞り込まれた画素の中には、例えば、オブジェクトの境
界を形成する画素やグラデーションを形成する画素など
も含まれている可能性がある。そこで、注目画素とその
近傍の広範囲にわたる画素の平均値との階調レベルの差
が第2の閾値ΔL4以上であるか判定することで、それ
ら通常の画像の一部を成す画素を修正処理の対象画素か
ら排除する。
This determination is a process for determining a defective pixel to be actually corrected from the pixels narrowed down as the target pixel of the correction process. The pixels narrowed down as the target of the correction process may include, for example, pixels forming the boundary of the object and pixels forming the gradation. Therefore, by determining whether the difference in gradation level between the pixel of interest and the average value of pixels in a wide range in the vicinity thereof is equal to or larger than the second threshold value ΔL4, the pixels forming a part of these normal images are corrected. Exclude from the target pixel.

【0034】第2の閾値ΔL4の決定方法としては、例
えば、自然画像などからオブジェクトの境界やグラデー
ション部分を形成する局所画像を実験的に獲得し、そこ
における階調レベルΔL3(ΔL3R)を算出して、Δ
L3R<ΔL4となる最小の数値をΔL4として決定す
る方法などが考えられる。
As a method of determining the second threshold value ΔL4, for example, a local image forming a boundary of an object or a gradation portion is experimentally acquired from a natural image or the like, and a gradation level ΔL3 (ΔL3R) there is calculated. , Δ
A method of determining the minimum numerical value of L3R <ΔL4 as ΔL4 can be considered.

【0035】前記判定の結果、ΔL3≧ΔL4であれ
ば、注目画素を最終的に欠陥画素と判断して抽出する。
この抽出処理は画素抽出部608にて行われる。ΔL3
<ΔL4であれば、注目画素は欠陥画素とは判断せず、
注目画素を次に移して、対象画素抽出部603による対
象画素の抽出から順次繰り返す。
If ΔL3 ≧ ΔL4 as a result of the above judgment, the pixel of interest is finally judged as a defective pixel and extracted.
This extraction processing is performed by the pixel extraction unit 608. ΔL3
<ΔL4, the target pixel is not determined to be a defective pixel,
The pixel of interest is moved to the next, and the process from the extraction of the target pixel by the target pixel extraction unit 603 is sequentially repeated.

【0036】この手順により、画像データに存在するダ
ストノイズを自動的・効率的に検出することができる。
ダストノイズの検出は、候補となる画素の数を段階的に
絞りながら行われる。そして、処理に時間を要する判定
はある程度画素数を絞った段階で行われるために、全画
素について詳細な判定処理を施す必要がなく、ノイズ検
出に要する時間を短縮できる。すなわち、各段階におい
ては、注目画素とその近傍画素との階調レベル差に基づ
いて、欠陥画素であるノイズの候補を検出する。そし
て、段階的に近傍範囲を変えつつ(上記例においては近
傍範囲を拡張しつつ)その近傍範囲内の画素との階調レ
ベル差を求めて、その差に基づいて欠陥画素を判定す
る。このとき、ノイズ検出の最初の段階では、近傍範囲
を狭くして処理の効率化を図り、進んだ段階では近傍範
囲を広げて判定の高精度化を図っている。
By this procedure, dust noise existing in image data can be detected automatically and efficiently.
Dust noise is detected while gradually reducing the number of candidate pixels. Since the determination that requires time for processing is performed at a stage where the number of pixels is narrowed down to some extent, it is not necessary to perform detailed determination processing for all pixels, and the time required for noise detection can be shortened. That is, in each stage, a candidate for noise, which is a defective pixel, is detected based on the gradation level difference between the pixel of interest and its neighboring pixels. Then, while changing the neighborhood range stepwise (while expanding the neighborhood range), the gradation level difference with the pixels in the neighborhood range is obtained, and the defective pixel is determined based on the difference. At this time, in the first stage of noise detection, the neighborhood range is narrowed to improve the processing efficiency, and in the advanced stage, the neighborhood range is expanded to improve the accuracy of the determination.

【0037】<欠陥画素の修正>以上のようにして欠陥
画素抽出部105によって欠陥画素が抽出されると、次
に図2のステップS203に戻って欠陥画素の修正処理
が行われる。ステップS203においては、いわゆるメ
ディアンフィルタなる処理をメディアンフィルタ106
にて行う。以下にメディアンフィルタ106による処理
(メディアンフィルタ処理)の詳細な説明を行う。
<Correction of Defective Pixel> When the defective pixel is extracted by the defective pixel extraction unit 105 as described above, the process returns to step S203 of FIG. 2 and the defective pixel correction process is performed. In step S203, the so-called median filter is processed by the median filter 106.
Will be done at. The process (median filter process) performed by the median filter 106 will be described in detail below.

【0038】メディアンフィルタ106は、まず、抽出
された欠陥画素に注目し、フィルタ範囲設定部107に
て設定された範囲(以下フィルタ範囲と称す)の画素デ
ータの中間値を求める。フィルタ範囲が図3のように3
×3画素の場合、注目画素をA、その周囲8画素をB〜
Iとする。ここではそれら画素を階調レベルの順番に並
べたときに、 D < C < B < E < G < F < H < I < A であると仮定する。
The median filter 106 first pays attention to the extracted defective pixel, and obtains the intermediate value of the pixel data in the range set by the filter range setting unit 107 (hereinafter referred to as the filter range). The filter range is 3 as shown in Fig. 3.
In the case of × 3 pixels, the target pixel is A, and the surrounding 8 pixels are B to
I. Here, it is assumed that D <C <B <E <G <F <H <I <A when these pixels are arranged in the order of gradation levels.

【0039】次にメディアンフィルタ106は、注目画
素Aも含め、その周囲8画素の中から、階調レベルの中
間値となる画素(この場合は階調レベルが5番目となる
G)を見つけ出し、中間値画素Gの階調レベルと注目画
素Aの階調レベルとの差が階調レベルの閾値設定部10
8にて設定される階調レベルの閾値以上の場合には、注
目画素Aの階調レベルを中間値画素Gの階調レベルに置
き換える。
Next, the median filter 106 finds the pixel having the intermediate value of the gradation level (in this case, the fifth gradation level G) from the surrounding 8 pixels including the target pixel A, The difference between the gradation level of the intermediate value pixel G and the gradation level of the target pixel A is the gradation level threshold setting unit 10
When it is equal to or higher than the threshold of the gradation level set in 8, the gradation level of the target pixel A is replaced with the gradation level of the intermediate value pixel G.

【0040】このような、注目画素をその近傍画素の中
間値で置換するというメディアンフィルタ処理により、
欠陥画素Aが修復されたことになる。この場合、画像デ
ータがRGB各画像データで構成されている場合、RG
B各階調レベルの中間値がそれぞれ異なる画素となった
場合には、それぞれ異なる画素データ置き換えても構わ
ない。
By such median filter processing of replacing the pixel of interest with the intermediate value of its neighboring pixels,
The defective pixel A has been repaired. In this case, if the image data is composed of RGB image data, RG
B If the intermediate values of each gradation level are different pixels, different pixel data may be replaced.

【0041】フィルタの強さ設定部109は、ユーザー
がダストノイズをどの程度の強さでの除去したいかを設
定するための設定部である。例えば、「標準」「強」
「弱」といったような設定内容が考えられる。このフィ
ルタの強さ設定部109にて設定された内容に応じて、
範囲設定部107にて設定されるフィルタ範囲と、階調
レベルの閾値設定部108にて設定される階調レベルの
閾値とは、両方あるいはいずれか一方が可変制御され
る。
The filter strength setting unit 109 is a setting unit for the user to set the strength with which dust noise should be removed. For example, "standard""strong"
Setting contents such as "weak" are conceivable. Depending on the contents set by the filter strength setting unit 109,
The filter range set by the range setting unit 107 and the gradation level threshold set by the gradation level threshold setting unit 108 are variably controlled.

【0042】例えば、「標準」設定時に対して「強」設
定では、フィルタ範囲をより広くする。こうすること
で、欠陥画素は中間値画素に置き換わり易くなる。つま
り、フィルタ範囲が広がることによって、欠陥画素との
相関が弱い画素がフィルタ範囲に含まれることになる。
このため、フィルタ範囲内の画素の階調レベルのレンジ
が広がり、欠陥画素との階調レベル差がより大きい画素
が中間値画素として選択されやすい。そのため、「標
準」と同じ階調レベルの閾値であっても、欠陥画素は中
間値画素に置き換わり易くなる。
For example, the "strong" setting makes the filter range wider than the "standard" setting. By doing so, the defective pixel is easily replaced by the intermediate pixel. That is, as the filter range is expanded, pixels having a weak correlation with the defective pixel are included in the filter range.
For this reason, the range of the gradation level of the pixels in the filter range is widened, and the pixel having a larger gradation level difference from the defective pixel is easily selected as the intermediate value pixel. Therefore, even if the threshold value has the same gradation level as the “standard”, the defective pixel is likely to be replaced with the intermediate value pixel.

【0043】この場合、例えば、「標準」ではフィルタ
範囲を7×7画素範囲とし、「弱」ではフィルタ範囲を
3×3画素範囲とし、「強」ではフィルタ範囲を9×9
画素範囲とする、などといったようにフィルタ範囲が設
定される。
In this case, for example, the filter range is set to 7 × 7 pixel range in “standard”, the filter range is set to 3 × 3 pixel range in “weak”, and the filter range is set to 9 × 9 in “strong”.
A filter range is set such as a pixel range.

【0044】また、「標準」設定時に対して「強」設定
では階調レベルの閾値を小さくしてやることでも、容易
に欠陥画素は中間値画素に置き換わり易くなる。当然な
がら、フィルタ範囲と階調レベルの閾値を共に可変制御
しても構わない。
Further, by setting the threshold value of the gradation level to be smaller in the "strong" setting than in the "standard" setting, the defective pixel can be easily replaced with the intermediate value pixel. Of course, both the filter range and the threshold of the gradation level may be variably controlled.

【0045】一方、フィルタの強さ設定が「弱」の場合
には、「強」とは逆にフィルタ範囲を狭くしたり、ある
いは階調レベルの閾値を大きくしたり、あるいはその両
方を行うことで、欠陥画素が中間値画素に置き換わり難
くすることができる。また、これらの組合せの設定によ
って、「標準」「強」「弱」だけでなく、より細かい設
定も可能である。
On the other hand, when the filter strength setting is "weak", the filter range is narrowed contrary to "strong", the gradation level threshold is increased, or both are performed. Thus, it is possible to make it difficult for the defective pixel to be replaced with the intermediate value pixel. Further, by setting these combinations, not only “standard”, “strong”, and “weak” but also more detailed settings are possible.

【0046】以上説明したように、ユーザーが希望する
強さでダストノイズを除去することが可能となる。
As described above, the dust noise can be removed with the strength desired by the user.

【0047】なお、フィルタの強さ設定部109は、フ
ィルタ範囲と階調レベルの閾値とをそれぞれ独立して設
定することができる構成であっても良い。
The filter strength setting unit 109 may have a structure capable of independently setting the filter range and the threshold of the gradation level.

【0048】また、画像処理装置には表示装置や印刷装
置といった出力装置を接続しておくことで、ダストノイ
ズが除去された画像を出力することができる。
By connecting an output device such as a display device or a printing device to the image processing device, an image from which dust noise is removed can be output.

【0049】<コンピュータによるノイズ除去処理>以
上説明した図1及び図6の構成は、パーソナルコンピュ
ータなどの汎用デジタルコンピュータによっても実現で
きる。そのためには、図2の手順を記述したコンピュー
タプログラムを、図7の構成を有するデジタルコンピュ
ータのメモリ1312にロードし、CPU1315によ
ってそのプログラムを実行させることで、図1の各ブロ
ックの機能を実現する。
<Noise Removal Processing by Computer> The configurations of FIGS. 1 and 6 described above can also be realized by a general-purpose digital computer such as a personal computer. To this end, the computer program describing the procedure of FIG. 2 is loaded into the memory 1312 of the digital computer having the configuration of FIG. 7, and the program is executed by the CPU 1315, thereby realizing the function of each block of FIG. .

【0050】図7において、コンピュータ本体1310
は、画像読取装置101及び印刷装置1302と接続さ
れている。画像読取装置101はインターフェース13
11により接続され、印刷装置101はインターフェー
ス1317を介して接続されている。メモリ1312に
は、プログラムを格納したり、作業領域が確保される汎
用メモリ部分と、図1の画像メモリ104に相当する画
像メモリ部分とが確保されている。二次記憶デバイス1
314はハードディスクなどの固定媒体のデバイスや、
光ディスクや取り外し式の磁気ディスク、光磁気ディス
クや、差し替え可能な不揮発メモリユニットであり、画
像データや図2などに示すコンピュータプログラムを供
給或いは格納できる。CPU1315は、コンピュータ
の有するハードウエアやソフトウエア資源を管理すると
ともに、図2に示す手順を含むコンピュータプログラム
を実行して、図1の構成としてコンピュータが機能する
ことを実現する。操作部1316は必要に応じて操作者
が入力を行うためのキーボード等である。閾値ΔL2,
ΔL4あるいはフィルタの強さなどは、操作部1316
から入力しておくこともできる。表示部1313はCR
Tや液晶等を用いたディスプレイデバイスであり、画像
表示などに用いられる。
In FIG. 7, the computer main body 1310
Are connected to the image reading apparatus 101 and the printing apparatus 1302. The image reading apparatus 101 has an interface 13
11 and the printing apparatus 101 is connected via the interface 1317. In the memory 1312, a general-purpose memory portion for storing programs and a work area and an image memory portion corresponding to the image memory 104 in FIG. 1 are secured. Secondary storage device 1
314 is a fixed medium device such as a hard disk,
An optical disk, a removable magnetic disk, a magneto-optical disk, or a replaceable non-volatile memory unit, which can supply or store image data or a computer program shown in FIG. The CPU 1315 manages the hardware and software resources of the computer and executes the computer program including the procedure shown in FIG. 2 to realize that the computer functions as the configuration of FIG. The operation unit 1316 is a keyboard or the like for the operator to input as necessary. Threshold ΔL2,
ΔL4, the strength of the filter, and the like can be set by the operation unit 1316.
You can also enter from. Display 1313 is CR
It is a display device using T, liquid crystal, etc., and is used for image display and the like.

【0051】このような構成のコンピュータによって図
2の手順を実行する場合には、印刷装置1302によっ
て、ノイズ除去された画像を印刷出力できる。この場
合、全く操作者が介在せずにノイズの除去をするため
に、複写機などに適用することもできる。
When the procedure of FIG. 2 is executed by the computer having such a configuration, the printing device 1302 can print out the noise-removed image. In this case, it can be applied to a copying machine or the like in order to remove noise without the intervention of an operator.

【0052】(第2の実施形態)図4を用いて本発明の
第2の実施の形態である画像処理方法、及び画像処理装
置を説明する。図4は画像処理装置の機能構成を示すブ
ロック図であり、第1の実施の形態と同一の機能のブロ
ックには同一の符号を付し、説明を省略する。図4にお
いて、401は本発明を適用した画像処理部、402は
原稿種類設定部である。
(Second Embodiment) An image processing method and an image processing apparatus according to a second embodiment of the present invention will be described with reference to FIG. FIG. 4 is a block diagram showing a functional configuration of the image processing apparatus. The blocks having the same functions as those in the first embodiment are designated by the same reference numerals and the description thereof will be omitted. In FIG. 4, 401 is an image processing unit to which the present invention is applied, and 402 is a document type setting unit.

【0053】上記構成において、本第2の実施形態にお
ける画像処理方法について第1の実施の形態と異なる部
分について説明する。第1の実施形態と異なる点は、本
実施形態では、フィルタ範囲や階調レベルの閾値を原稿
の種類に応じて変更する点である。
With respect to the image processing method according to the second embodiment having the above-mentioned structure, parts different from those of the first embodiment will be described. The difference from the first embodiment is that the filter range and the threshold of the gradation level are changed according to the type of the original in the present embodiment.

【0054】原稿種類設定部402は、ユーザが画像読
取装置101にて読取を行おうとしている原稿の種類を
設定するための設定部である。例えば、「写真」「印刷
物」といったような設定内容が考えられる。一般的に、
「写真」原稿では人物や自然の風景が撮影されている場
合が多いので、ある画素の階調レベルと近接している画
素の階調レベルとは、強い相関性があり、階調レベルの
変化は滑らかである場合が多い。一方、「印刷物」原稿
の場合には、文字や図表などで構成されている場合が多
いので、ある画素の階調レベルと近接している画素の階
調レベルとは、余り相関性がなく、階調レベルの変化が
急激である場合が多い。
The document type setting unit 402 is a setting unit for setting the type of document that the user intends to read with the image reading apparatus 101. For example, setting contents such as “photograph” and “printed matter” can be considered. Typically,
Since many people and natural landscapes are often photographed in a “photograph” document, there is a strong correlation between the gradation level of a pixel and the gradation level of a pixel that is close to it. Is often smooth. On the other hand, in the case of a “printed matter” document, since it is often composed of characters and charts, there is little correlation between the gradation level of a certain pixel and the gradation level of a neighboring pixel, In many cases, the gradation level changes rapidly.

【0055】そこで、このような設定内容に応じて、範
囲設定部107にて設定されるフィルタ範囲と、階調レ
ベルの閾値設定部108にて設定される階調レベルの閾
値を可変制御される。例えば、原稿の種類が「印刷物」
設定時に対して「写真」設定では、フィルタ範囲をより
広くしてやることで、欠陥画素は中間値画素に置き換わ
り易くなる。つまり、フィルタ範囲を広くすることによ
って欠陥画素との相関が弱い画素、即ち欠陥画素との階
調レベル差がより大きい画素が中間値画素として選択さ
れることになり、「印刷物」と同じ階調レベルの閾値で
あっても欠陥画素は中間値画素に置き換わり易くなる。
また、「印刷物」設定時に対して「写真」設定では階調
レベルの閾値を小さくしてやることでも、容易に欠陥画
素は中間値画素に置き換わり易くなる。当然ながら、フ
ィルタ範囲と階調レベルの閾値を共に可変制御しても構
わない。
Therefore, the filter range set by the range setting unit 107 and the gradation level threshold set by the gradation level threshold setting unit 108 are variably controlled according to the setting contents. . For example, the type of document is "printed"
In the “photograph” setting, the filter range is made wider than in the setting, so that the defective pixel is easily replaced by the intermediate value pixel. That is, by widening the filter range, a pixel having a weak correlation with the defective pixel, that is, a pixel having a larger gradation level difference from the defective pixel is selected as the intermediate value pixel, and the same gradation as that of the “printed matter” is selected. Even at the level threshold, defective pixels are likely to be replaced by intermediate-value pixels.
Also, by setting the gradation level threshold to be smaller in the “photograph” setting than in the “printed matter” setting, the defective pixel can be easily replaced with the intermediate value pixel. Of course, both the filter range and the threshold of the gradation level may be variably controlled.

【0056】また、これらの組合せの設定によって、
「写真」「印刷物」だけでなく、その中間的な原稿に対
しての設定も可能である。
By setting these combinations,
It is possible to set not only "photograph" and "printed matter" but also an intermediate document.

【0057】更に「印刷物」原稿の場合には、メディア
ンフィルタ106の処理を禁止するような制御を行って
も良い。
Further, in the case of a “printed matter” document, control may be performed to prohibit the processing of the median filter 106.

【0058】以上説明したように、画像データの原稿の
種類に応じて最適な設定でダストノイズを除去すること
が可能となる。
As described above, the dust noise can be removed with the optimum setting according to the type of the original of the image data.

【0059】(第3の実施形態)図5を用いて本発明の
第3の実施の形態である画像処理方法及び画像処理装置
を説明する。図5は画像処理装置の機能構成を示すブロ
ック図であり、第1の実施の形態と同一の機能のブロッ
クには同一の符号を付し、説明を省略する。図5におい
て、501は本発明を適用した画像処理部、502は解
像度設定部である。
(Third Embodiment) An image processing method and an image processing apparatus according to a third embodiment of the present invention will be described with reference to FIG. FIG. 5 is a block diagram showing a functional configuration of the image processing apparatus, blocks having the same functions as those in the first embodiment are designated by the same reference numerals, and description thereof will be omitted. In FIG. 5, 501 is an image processing unit to which the present invention is applied, and 502 is a resolution setting unit.

【0060】上記構成において、本第3の実施形態にお
ける画像処理方法について第1の実施の形態と異なる部
分について説明する。
In the above-mentioned configuration, the image processing method according to the third embodiment will be described by focusing on the differences from the first embodiment.

【0061】解像度設定部502は、ユーザーが画像読
取装置101にて読み取りを行うときの解像度を設定す
るための設定部である。例えば、「300dpi」「600dpi」
といったような設定内容が考えられる。「300dpi」に比
べて「600dpi」では画素と画素の物理的な距離が1/2
であるので、隣接している画素間の階調レベルの変化は
滑らかである。
The resolution setting unit 502 is a setting unit for setting the resolution when the user reads with the image reading apparatus 101. For example, "300dpi""600dpi"
Such setting contents are possible. The physical distance between pixels is 1/2 in "600dpi" compared to "300dpi"
Therefore, the change in gradation level between adjacent pixels is smooth.

【0062】このような解像度の設定内容に応じて、範
囲設定部107にて設定されるフィルタ範囲と、階調レ
ベルの閾値設定部108にて設定される階調レベルの閾
値を可変制御される。例えば、「300dpi」設定時に対し
て「600dpi」設定では、フィルタ範囲を2倍に広くして
やることで、画像の広さとしては同等になり、欠陥画素
は中間値画素に置き換わり易くなる。つまり、フィルタ
範囲を広くすることによって欠陥画素との相関が弱い画
素、即ち欠陥画素との階調レベル差がより大きい画素が
中間値画素として選択されることになり、「300dpi」と
同じ階調レベルの閾値であっても「300dpi」時とほぼ同
様のメディアンフィルタ処理効果が得られる。また、
「300dpi」設定時に対して「600dpi」設定では階調レベ
ルの閾値を小さくしてやることでも、容易に欠陥画素は
中間値画素に置き換わり易くなる。当然ながら、フィル
タ範囲と階調レベルの閾値を共に可変制御しても構わな
い。
The filter range set by the range setting unit 107 and the gradation level threshold set by the gradation level threshold setting unit 108 are variably controlled according to the setting contents of the resolution. . For example, in the case of "600dpi" setting compared to the case of "300dpi" setting, by making the filter range twice as wide, the size of the image becomes the same, and the defective pixel is easily replaced by the intermediate value pixel. In other words, by widening the filter range, pixels with weak correlation with defective pixels, that is, pixels with a larger gradation level difference with defective pixels, are selected as intermediate value pixels, and the same gradation as "300 dpi" is selected. Even with the level threshold, the median filtering effect similar to that at "300 dpi" can be obtained. Also,
Even if the threshold value of the gradation level is set smaller in the “600 dpi” setting than in the “300 dpi” setting, the defective pixel can be easily replaced with the intermediate value pixel. Of course, both the filter range and the threshold of the gradation level may be variably controlled.

【0063】また、これらの組合せの設定によってこの
ようにどのような解像度に対しての設定も可能である。
By setting these combinations, it is possible to set for any resolution in this way.

【0064】以上説明したように、画像データの解像度
に応じて最適な設定でダストノイズを除去することが可
能となる。
As described above, it is possible to remove the dust noise with the optimum setting according to the resolution of the image data.

【0065】なお、本発明は、複数の機器(例えばホス
トコンピュータ、インタフェイス機器、リーダ、プリン
タなど)から構成されるシステムに適用しても、一つの
機器からなる装置(例えば、複写機、ファクシミリ装置
など)に適用してもよい。
Even when the present invention is applied to a system composed of a plurality of devices (eg, host computer, interface device, reader, printer, etc.), a device composed of one device (eg, copying machine, facsimile). Device).

【0066】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体(または記録媒体)を、システムあるい
は装置に供給し、そのシステムあるいは装置のコンピュ
ータ(またはCPUやMPU)が記憶媒体に格納されたプログ
ラムコードを読み出し実行することによっても達成され
る。
Further, an object of the present invention is to supply a storage medium (or a recording medium) recording a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and a computer of the system or the apparatus ( Alternatively, it is achieved by the CPU or MPU) reading and executing the program code stored in the storage medium.

【0067】この場合、記憶媒体から読み出されたプロ
グラムコード自体が前述した実施形態の機能を実現する
ことになり、そのプログラムコードを記憶した記憶媒体
は本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0068】また、コンピュータが読み出したプログラ
ムコードを実行することにより、前述した実施形態の機
能が実現されるだけでなく、そのプログラムコードの指
示に基づき、コンピュータ上で稼働しているオペレーテ
ィングシステム(OS)などが実際の処理の一部または全部
を行い、その処理によって前述した実施形態の機能が実
現される場合も含まれる。
Further, by executing the program code read by the computer, not only the functions of the above-described embodiment are realized, but also the operating system (OS) running on the computer is executed based on the instruction of the program code. ) And the like perform a part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0069】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張カー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書込まれた後、そのプログラムコードの指示
に基づき、その機能拡張カードや機能拡張ユニットに備
わるCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれる。
Furthermore, after the program code read from the storage medium is written in the memory provided in the function expansion card inserted into the computer or the function expansion unit connected to the computer, based on the instruction of the program code. It also includes a case where a CPU or the like included in the function expansion card or the function expansion unit performs a part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0070】[0070]

【発明の効果】以上説明したように、本発明によれば埃
等によるダストノイズを、ダストノイズを除去する強さ
や、原稿画像の種類、あるいは画像データの解像度に応
じた程度で適切に除去することが可能となる。
As described above, according to the present invention, the dust noise due to dust or the like is appropriately removed according to the strength of removing the dust noise, the type of the original image, or the resolution of the image data. It becomes possible.

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

【図1】 本発明の第1の実施形態における画像処理装
置のブロック図
FIG. 1 is a block diagram of an image processing apparatus according to a first embodiment of the present invention.

【図2】 本発明の第1の実施形態の動作を説明するフ
ローチャート
FIG. 2 is a flowchart illustrating the operation of the first embodiment of the present invention.

【図3】 本発明の第1の実施形態における画素データ
配置を示す図
FIG. 3 is a diagram showing a pixel data arrangement according to the first embodiment of the present invention.

【図4】 本発明の第2の実施例における画像処理装置
のブロック図
FIG. 4 is a block diagram of an image processing apparatus according to a second embodiment of the present invention.

【図5】 本発明の第3の実施形態における画像処理装
置のブロック図
FIG. 5 is a block diagram of an image processing apparatus according to a third embodiment of the present invention.

【図6】 本発明の第1の実施形態における欠陥画素抽
出部のブロック図
FIG. 6 is a block diagram of a defective pixel extraction unit according to the first embodiment of the present invention.

【図7】 本発明を実現するコンピュータのブロック図FIG. 7 is a block diagram of a computer that implements the present invention.

Claims (20)

【特許請求の範囲】[Claims] 【請求項1】 注目画素の近傍の範囲または第1の閾値
またはそれら両方を変更可能な設定工程と、 画像データの注目画素の階調レベルと、前記注目画素の
近傍の範囲内の画素の階調レベルに基づいて求めた置換
画素の階調レベルとの差が、前記第1の閾値以上である
場合に、前記注目画素の階調レベルを前記置換画素の階
調レベルにより置換する置換工程とを備えることを特徴
とする画像処理方法。
1. A setting step capable of changing a range in the vicinity of a pixel of interest, a first threshold value, or both, a gradation level of a pixel of interest in image data, and a floor of a pixel in a range in the vicinity of the pixel of interest. A replacement step of replacing the gradation level of the target pixel with the gradation level of the replacement pixel when the difference from the gradation level of the replacement pixel obtained based on the gradation level is equal to or more than the first threshold value; An image processing method comprising:
【請求項2】 前記設定工程は、前記注目画素の近傍の
範囲を広げ、あるいは狭めるよう変更することを特徴と
する請求項1に記載の画像処理方法。
2. The image processing method according to claim 1, wherein in the setting step, the range in the vicinity of the target pixel is changed to be widened or narrowed.
【請求項3】 前記設定工程は、前記第1の閾値を下
げ、あるいは上げるよう変更することを特徴とする請求
項1に記載の画像処理方法。
3. The image processing method according to claim 1, wherein in the setting step, the first threshold value is changed to be lowered or raised.
【請求項4】 前記設定工程は、前記注目画素の近傍の
範囲を広げるとともに前記第1の閾値を下げ、あるい
は、前記注目画素の近傍の範囲を狭めるとともに前記第
1の閾値を上げることを特徴とする請求項1に記載の画
像処理方法。
4. The setting step increases the range in the vicinity of the pixel of interest and lowers the first threshold value, or narrows the range in the vicinity of the pixel of interest and raises the first threshold value. The image processing method according to claim 1.
【請求項5】 前記設定工程は、前記注目画素を含む画
像の種類に応じて注目画素の近傍の範囲または第1の閾
値またはそれら両方を変更することを特徴とする請求項
1乃至4のいずれか1項に記載の画像処理方法。
5. The setting step changes the range in the vicinity of the pixel of interest, the first threshold value, or both in accordance with the type of image containing the pixel of interest. The image processing method according to item 1.
【請求項6】 原稿種類の設定に応じて、前記置換工程
による注目画素の置換を行わせない禁止工程をさらに備
えることを特徴とする請求項5に記載の画像処理方法。
6. The image processing method according to claim 5, further comprising a prohibition step of not performing the replacement of the target pixel in the replacement step according to the setting of the document type.
【請求項7】 前記設定工程は、前記注目画素を含む画
像がデジタル化された際の解像度に応じて注目画素の近
傍の範囲または第1の閾値またはそれら両方を変更する
ことを特徴とする請求項1乃至4のいずれか1項に記載
の画像処理方法。
7. The setting step changes the range in the vicinity of the pixel of interest, the first threshold value, or both in accordance with the resolution when the image including the pixel of interest is digitized. Item 5. The image processing method according to any one of Items 1 to 4.
【請求項8】 前記置換工程は、前記置換画素として、
前記注目画素の近傍の範囲内の画素のうち、階調レベル
の中間値を階調レベルとして有する画素を用いることを
特徴とする請求項1に記載の画像処理方法。
8. The replacement step comprises, as the replacement pixel,
The image processing method according to claim 1, wherein among the pixels within the range near the target pixel, a pixel having an intermediate value of the gradation level as a gradation level is used.
【請求項9】 画像データから、近傍画素との階調レベ
ルの差が第2の閾値以上となる画素を中心画素とする対
象画素群を検出する対象画素検出工程と、 前記中心画素を中心とする第1の範囲内にある画素の階
調レベル値に基づいて基準値を求め、該基準値と前記対
象画素群の各画素との階調レベル差が第3の閾値以上と
なる画素を欠陥画素として検出する欠陥画素検出工程と
をさらに備え、 前記欠陥画素検出工程により検出された欠陥画素を前記
中心画素とすることを特徴とする請求項1乃至8のいず
れか1項に記載の画像処理方法。
9. A target pixel detection step of detecting, from image data, a target pixel group whose center pixel is a pixel whose difference in gradation level from a neighboring pixel is equal to or greater than a second threshold value; A reference value is obtained based on the gradation level value of the pixel within the first range, and the pixel whose difference in gradation level between the reference value and each pixel of the target pixel group is the third threshold value or more is defective. 9. The image processing according to claim 1, further comprising a defective pixel detecting step of detecting as a pixel, wherein the defective pixel detected by the defective pixel detecting step is set as the central pixel. Method.
【請求項10】 注目画素の近傍の範囲または第1の閾
値またはそれら両方を変更可能な設定手段と、 画像データの注目画素の階調レベルと、前記注目画素の
近傍の範囲内の画素の階調レベルに基づいて求めた置換
画素の階調レベルとの差が、前記第1の閾値以上である
場合に、前記注目画素の階調レベルを前記置換画素の階
調レベルにより置換する置換手段とを備えることを特徴
とする画像処理装置。
10. A setting means capable of changing a range in the vicinity of the pixel of interest, a first threshold value, or both, a gradation level of the pixel of interest in the image data, and a floor of a pixel in the range in the vicinity of the pixel of interest. Replacement means for replacing the gradation level of the target pixel with the gradation level of the replacement pixel when the difference from the gradation level of the replacement pixel obtained based on the gradation level is equal to or more than the first threshold value; An image processing apparatus comprising:
【請求項11】 前記設定手段は、前記注目画素の近傍
の範囲を広げ、あるいは狭めるよう変更することを特徴
とする請求項10に記載の画像処理装置。
11. The image processing apparatus according to claim 10, wherein the setting unit widens or narrows a range in the vicinity of the target pixel.
【請求項12】 前記設定手段は、前記第1の閾値を下
げ、あるいは上げるよう変更することを特徴とする請求
項10に記載の画像処理装置。
12. The image processing apparatus according to claim 10, wherein the setting unit changes the first threshold value so as to decrease or increase it.
【請求項13】 前記設定手段は、前記注目画素の近傍
の範囲を広げるとともに前記第1の閾値を下げ、あるい
は、前記注目画素の近傍の範囲を狭めるとともに前記第
1の閾値を上げることを特徴とする請求項10に記載の
画像処理装置。
13. The setting means widens a range in the vicinity of the pixel of interest and lowers the first threshold value, or narrows a range in the vicinity of the pixel of interest and raises the first threshold value. The image processing apparatus according to claim 10.
【請求項14】 前記設定手段は、前記注目画素を含む
画像の種類に応じて注目画素の近傍の範囲または第1の
閾値またはそれら両方を変更することを特徴とする請求
項10乃至13のいずれか1項に記載の画像処理装置。
14. The setting unit changes the range in the vicinity of the pixel of interest, the first threshold value, or both in accordance with the type of image including the pixel of interest. The image processing device according to item 1.
【請求項15】 原稿種類の設定に応じて、前記置換手
段による注目画素の置換を行わせないよう制御する禁止
手段をさらに備えることを特徴とする請求項14に記載
の画像処理装置。
15. The image processing apparatus according to claim 14, further comprising a prohibition unit that controls the replacement unit so that the pixel of interest is not replaced according to the setting of the document type.
【請求項16】 前記設定手段は、前記注目画素を含む
画像がデジタル化された際の解像度に応じて注目画素の
近傍の範囲または第1の閾値またはそれら両方を変更す
ることを特徴とする請求項10乃至13のいずれか1項
に記載の画像処理装置。
16. The setting means changes the range in the vicinity of the pixel of interest, the first threshold value, or both depending on the resolution when the image including the pixel of interest is digitized. Item 14. The image processing device according to any one of items 10 to 13.
【請求項17】 前記置換手段は、前記置換画素とし
て、前記注目画素の近傍の範囲内の画素のうち、階調レ
ベルの中間値を階調レベルとして有する画素を用いるこ
とを特徴とする請求項10に記載の画像処理装置。
17. The replacement unit uses, as the replacement pixel, a pixel having an intermediate value of a gradation level as a gradation level among pixels in a range in the vicinity of the pixel of interest. The image processing device according to item 10.
【請求項18】 画像データから、近傍画素との階調レ
ベルの差が第2の閾値以上となる画素を中心画素とする
対象画素群を検出する対象画素検出手段と、 前記中心画素を中心とする第1の範囲内にある画素の階
調レベル値に基づいて基準値を求め、該基準値と前記対
象画素群の各画素との階調レベル差が第3の閾値以上と
なる画素を欠陥画素として検出する欠陥画素検出手段と
をさらに備え、 前記欠陥画素検出手段により検出された欠陥画素を前記
中心画素とすることを特徴とする請求項10乃至17の
いずれか1項に記載の画像処理装置。
18. A target pixel detection means for detecting, from image data, a target pixel group whose center pixel is a pixel having a gradation level difference from a neighboring pixel of not less than a second threshold value; A reference value is obtained based on the gradation level value of the pixel within the first range, and the pixel whose difference in gradation level between the reference value and each pixel of the target pixel group is the third threshold value or more is defective. 18. The image processing according to claim 10, further comprising: defective pixel detection means for detecting as a pixel, wherein the defective pixel detected by the defective pixel detection means is used as the central pixel. apparatus.
【請求項19】 コンピュータにより実行することで、
請求項10乃至18のいずれか1項に記載の画像処理装
置を実現することを特徴とするコンピュータプログラ
ム。
19. By executing by a computer,
A computer program that realizes the image processing device according to any one of claims 10 to 18.
【請求項20】 請求項19に記載のコンピュータプロ
グラムを格納することを特徴とするコンピュータ可読の
記憶媒体。
20. A computer-readable storage medium storing the computer program according to claim 19.
JP2001232815A 2001-07-31 2001-07-31 Method and device for image processing Withdrawn JP2003046781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001232815A JP2003046781A (en) 2001-07-31 2001-07-31 Method and device for image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001232815A JP2003046781A (en) 2001-07-31 2001-07-31 Method and device for image processing

Publications (1)

Publication Number Publication Date
JP2003046781A true JP2003046781A (en) 2003-02-14

Family

ID=19064672

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001232815A Withdrawn JP2003046781A (en) 2001-07-31 2001-07-31 Method and device for image processing

Country Status (1)

Country Link
JP (1) JP2003046781A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006244407A (en) * 2005-03-07 2006-09-14 Toshiba Matsushita Display Technology Co Ltd Display device
WO2009133844A1 (en) * 2008-04-30 2009-11-05 株式会社 東芝 Video encoding and decoding method and device equipped with edge-referenced filtering function
CN110796615B (en) * 2019-10-18 2023-06-02 浙江大华技术股份有限公司 Image denoising method, device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006244407A (en) * 2005-03-07 2006-09-14 Toshiba Matsushita Display Technology Co Ltd Display device
WO2009133844A1 (en) * 2008-04-30 2009-11-05 株式会社 東芝 Video encoding and decoding method and device equipped with edge-referenced filtering function
CN110796615B (en) * 2019-10-18 2023-06-02 浙江大华技术股份有限公司 Image denoising method, device and storage medium

Similar Documents

Publication Publication Date Title
JP4215038B2 (en) Image processing apparatus, image processing method, and program
US8064721B2 (en) Method and apparatus for removing noise from a digital image
JP3902894B2 (en) Image processing apparatus and image processing method
JP2003132358A (en) Image processing method, device and system
US8300946B2 (en) Image processing apparatus, image processing method, and computer program
JP2001169080A (en) Color picture processing method, color picture processor and recording medium for the same
JP2002135592A (en) Image processing apparatus and recording medium
JP2006343863A (en) Image processor and image processing method
JP5049922B2 (en) Image processing apparatus and image processing method
JP2007104706A (en) Image processing apparatus and image processing method
JP4900175B2 (en) Image processing apparatus and method, and program
JP4502001B2 (en) Image processing apparatus and image processing method
JP3820751B2 (en) Image processing apparatus and method, and recording medium on which image processing program is recorded
JP2003046781A (en) Method and device for image processing
JP2002300404A (en) Image processing method and image processor
JP2006113658A (en) Image processing apparatus and method, and storage medium with program recorded thereon
JPH10232915A (en) Image processor and its method
JP2008147712A (en) Image processor and image processing method
JP2006155572A (en) Image processor, image forming device, image processing method and computer program
JP7301529B2 (en) Image processing device, image processing method, and program
JP4049296B2 (en) Color image information processing method, program used to execute the method, and color image information processing apparatus
JP2000013613A (en) Image processor, method and record medium recording image processing program
KR20140063378A (en) Image forminag apparatus, method for image forming and computer-readable recording medium
JP4324532B2 (en) Image processing apparatus and storage medium
JPH11136505A (en) Picture processor and picture processing method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20081007