JPH10150571A - Method, device for correcting defective pixel in digital image and recording medium - Google Patents

Method, device for correcting defective pixel in digital image and recording medium

Info

Publication number
JPH10150571A
JPH10150571A JP9202929A JP20292997A JPH10150571A JP H10150571 A JPH10150571 A JP H10150571A JP 9202929 A JP9202929 A JP 9202929A JP 20292997 A JP20292997 A JP 20292997A JP H10150571 A JPH10150571 A JP H10150571A
Authority
JP
Japan
Prior art keywords
pixel
defective
pixels
minimum
defective pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9202929A
Other languages
Japanese (ja)
Inventor
Shigeo Murakami
繁男 村上
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 JP9202929A priority Critical patent/JPH10150571A/en
Publication of JPH10150571A publication Critical patent/JPH10150571A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Image Processing (AREA)
  • Facsimiles In General (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To reflect correction with the pixel values of nearby existent normal pixels, to suppress the sense of discomfort accompanying correction and to decrease the texture deterioration of digital image by performing correcting processing successively from the deflective pixel closest to the normal pixels. SOLUTION: An operator reads the desired image out of an image storage part 1 and instructs the group of defective pixels, discovered visually on a monitor 5 through a mouse 9. A defective pixel specifying processing part 17 sets the evaluation area of 15×15 dots with the instructed defective pixel as a center, calculates a threshold value concerning its peripheral section except for its central section from the average and distribution of pixel values and discriminates the pixels darker than the threshold value as defective pixels among the respective pixels at the central section. A correct pixel value calculating part 29 selects arrangement, minimizing the number of continuous defective pixels for respective row and column directions and performs linear interpolation, while using the values of normal pixels on both the sides of that arrangement. It is sufficient for the operator to instruct the area near the discovered group of defective pixels only once.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、リバーサルフィル
ムやプリントなどの原画をスキャナーなどの読み取り手
段によってデジタル画像に変換した際に、ゴミや埃など
に起因して正常に変換されなかった画素(以下、欠陥画
素と称する)を補正するためのデジタル画像の欠陥画素
補正方法及びその装置及び記録媒体に係り、特に欠陥画
素の補正による原画の質感低下を防止する技術に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pixel (hereinafter referred to as a pixel) which is not normally converted due to dust or dust when an original image such as a reversal film or print is converted into a digital image by a reading means such as a scanner. The present invention relates to a method and apparatus for correcting a defective pixel of a digital image for correcting a defective pixel, and a recording medium, and more particularly, to a technique for preventing a deterioration in texture of an original image due to correction of a defective pixel.

【0002】[0002]

【従来の技術】リバーサルフィルムやカラープリントな
どの原画をスキャナーなどの画像読み取り手段によって
デジタル画像に変換した際に、原画あるいは読み取り手
段にゴミや埃などが付着していた場合には、その部分の
原画あるいはその位置に対応する原画が正常にデジタル
画像に変換されずに不要な欠陥画素となる。つまり、上
記のような状態で変換されたデジタル画像は、不要な欠
陥画素と、原画が正常に変換された正常画素とを含むも
のとなる。このように不要な欠陥画素を含むデジタル画
像は、そのままでは品質が悪いものであるので、通常は
品質向上のために欠陥画素の除去が行われる。
2. Description of the Related Art When an original image such as a reversal film or a color print is converted into a digital image by an image reading means such as a scanner, if dust or dust adheres to the original image or the reading means, the portion of the original image or the reading means is removed. The original image or the original image corresponding to the position is not normally converted into a digital image and becomes an unnecessary defective pixel. That is, the digital image converted in the above state includes unnecessary defective pixels and normal pixels in which the original image has been normally converted. Since a digital image including unnecessary defective pixels as described above has poor quality as it is, defective pixels are usually removed to improve the quality.

【0003】このような欠陥画素の除去作業は、人手の
介在なしに完全に自動的に欠陥画素が除去されることが
理想的であるが、現在ではそのような技術水準にまで達
していないのが現実である。したがって、オペレータの
労力が少なくて済み、かつ、欠陥画素を除去した後のデ
ジタル画像において、欠陥画素の周囲で不自然な段差が
生じることなく視覚的に違和感のないもの、つまり原画
の質感ができるだけ維持されることの2点が技術的な課
題として問われている。
[0003] Ideally, such a defective pixel removing operation should completely remove the defective pixel automatically without human intervention, but at present, such a technical level has not been reached. Is reality. Therefore, the labor of the operator can be reduced, and in the digital image after the defective pixel is removed, there is no visually unnatural feeling without an unnatural step around the defective pixel, that is, the texture of the original image can be minimized. Two points of maintenance are called for as technical issues.

【0004】欠陥画素の除去作業は、欠陥画素の特定
や、特定された欠陥画素の補正などを含む複数個の工程
からなるものである。この欠陥画素の特定方法としては
種々のものが実用化されているが、オペレータの負担が
大きなものの順に記載すると以下のようになる。なお、
以下の作業は、例えば、ディスプレイに表示されている
デジタル画像を見ながらオペレータがマウスなどにより
行うものである。
The operation of removing a defective pixel includes a plurality of steps including identification of a defective pixel and correction of the identified defective pixel. Various methods for specifying the defective pixel have been put to practical use, but the following is described in descending order of the burden on the operator. In addition,
The following operation is performed by an operator using a mouse or the like while watching a digital image displayed on a display, for example.

【0005】(1)欠陥画素を1つずつ指示する。 (2)欠陥画素を囲うように、その外周を自由曲線によ
って指示する。 (3)欠陥画素を内部に含むように2点を指示し、矩形
や円形の領域によって指示する。また、実用化されては
いないが、オペレータの負担を小さくする方法として、 (4)欠陥画素あるいはその付近を1箇所だけ指示する
というものが提案されている。
(1) Specify defective pixels one by one. (2) The outer periphery is designated by a free curve so as to surround the defective pixel. (3) Two points are specified so as to include a defective pixel inside, and a rectangular or circular area is specified. Although not put to practical use, there has been proposed a method of reducing the burden on the operator by (4) designating only one defective pixel or its vicinity.

【0006】また、特定された欠陥画素を補正する方法
の代表的なものとしては、次のようなものが挙げられ
る。
A typical method for correcting the specified defective pixel is as follows.

【0007】(a)ピクセルコピーによる方法 例えば、オペレータが目視により1つずつ欠陥画素を特
定し、この欠陥画素の画素値として、その近傍に位置す
る正常画素の画素値をコピーする。この方法は、恐らく
電子的な画像処理が普及を初めてから今日に至るまで最
も利用されている方法である。しかしながら、この方法
は、特定した欠陥画素に隣接する正常画素の画素値と、
コピーされた正常画素の色調が完全に一致していない場
合には、欠陥画素が補正されてもその部分において色調
の段差が生じて質感が低下する。したがって、この方法
による欠陥画素の補正は、オペレータに負担が大きいと
ともに高度の技量を要し、オペレータの技量の巧拙が画
像の品質に明瞭に反映されるという問題点がある。ま
た、当然のことながら、欠陥画素の数が多い場合には、
非常に多くの作業時間を要する。
(A) Method by Pixel Copy For example, an operator visually identifies a defective pixel one by one, and copies a pixel value of a normal pixel located near the defective pixel as a pixel value of the defective pixel. This method is probably the most widely used method of electronic image processing from the first spread to today. However, this method uses the pixel value of a normal pixel adjacent to the identified defective pixel,
If the color tone of the copied normal pixel does not completely match, even if the defective pixel is corrected, a color tone step occurs in that portion, and the texture is reduced. Therefore, the correction of defective pixels by this method has a problem that the burden on the operator is large and a high level of skill is required, and the skill of the operator is clearly reflected in the image quality. Naturally, if the number of defective pixels is large,
It takes a lot of work time.

【0008】上記の(a)ピクセルコピーによる方法に
比較してオペレータの負担が少なくオペレータの技量に
左右されず、かつ、欠陥画素の数が多い場合であっても
作業時間が短くて済む方法として、(b)欠陥画素の周
囲に位置する正常画素の画素値に基づいて補正する方法
がある。この方法は、上述した(1)〜(4)のいずれ
かの方法により欠陥画素を特定し、欠陥画素の外周に位
置する正常画素の画素値に基づき補正値を算出し、この
補正値により欠陥画素の画素値を置換するというもので
ある。図14を参照して具体的に説明すると、デジタル
画像F中に欠陥画素DP(×印で示したもの)とともに
存在する正常画素NPのうち、特定された欠陥画素DP
の周囲に位置する正常画素(丸印で示したもの)の画素
値の平均値を算出し、この平均値で全ての欠陥画素DP
の画素値を一律に置換する。
As compared with the above (a) method using pixel copying, the burden on the operator is small and is not influenced by the skill of the operator, and the working time is short even when the number of defective pixels is large. (B) There is a method of performing correction based on the pixel value of a normal pixel located around a defective pixel. In this method, a defective pixel is specified by any one of the above-described methods (1) to (4), a correction value is calculated based on a pixel value of a normal pixel located on the outer periphery of the defective pixel, and a defect is calculated based on the correction value. This is to replace the pixel value of the pixel. More specifically, with reference to FIG. 14, among the normal pixels NP that exist together with the defective pixel DP (indicated by a cross) in the digital image F, the specified defective pixel DP
Is calculated, and the average value of the pixel values of the normal pixels (indicated by circles) located around the pixel is calculated.
Are uniformly replaced.

【0009】[0009]

【発明が解決しようとする課題】上述したように上記
(b)の方法にはオペレータの技量に依存しないという
利点があるが、その一方で次のような問題がある。すな
わち、欠陥画素DPが1画素だけで構成されている場合
には、この方法によっても質感を低下させることなく完
全に補正することができる。しかしながら、通常、欠陥
画素DPというものは図14に示すように2画素以上に
よって構成されているものであるので、全ての欠陥画素
DPの画素値を同一の画素値で置き換えると質感の低下
が生じるという問題点がある。
As described above, the method (b) has the advantage that it does not depend on the skill of the operator, but has the following problem. That is, when the defective pixel DP is composed of only one pixel, it is possible to completely correct the defective pixel DP without deteriorating the texture by this method. However, since the defective pixel DP is generally composed of two or more pixels as shown in FIG. 14, if the pixel values of all the defective pixels DP are replaced with the same pixel value, the texture is deteriorated. There is a problem.

【0010】特に、滑らかに画素値(色調)が変化して
いる部分(ビネットと呼ばれる)に欠陥画素DPが存在
している場合には、全ての欠陥画素DPを同じ画素値で
置換すると逆に画素値に大きな段差が発生して質感の大
きな低下が生じてしまう。
In particular, when a defective pixel DP exists in a portion (called a vignette) where the pixel value (color tone) changes smoothly, replacing all the defective pixels DP with the same pixel value conversely. A large step occurs in the pixel value, and the texture is greatly reduced.

【0011】本発明は、このような事情に鑑みてなされ
たものであって、欠陥画素の補正順序を工夫することに
よって、質感の低下を最小限に抑制することができるデ
ジタル画像の欠陥画素補正方法及びその装置及び記録媒
体を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and a method of correcting a defective pixel of a digital image capable of minimizing the deterioration of the texture by devising the correction order of the defective pixel. It is an object to provide a method, an apparatus thereof, and a recording medium.

【0012】[0012]

【課題を解決するための手段】本発明は、このような目
的を達成するために、次のような構成をとる。すなわ
ち、請求項1に記載のデジタル画像の欠陥画素補正方法
は、原画を読み取り手段によりデジタル画像に変換した
際に、ゴミや埃などに起因して前記デジタル画像に生じ
ている欠陥画素を補正する方法において、(a)デジタ
ル画像内に存在する欠陥画素を特定する過程と、(b)
各欠陥画素について行方向に連続する欠陥画素の数を行
方向連続数として求めるとともに、列方向に連続する欠
陥画素の数を列方向連続数として求める過程と、(c)
前記各行方向連続数および前記各列方向連続数の中から
最小のものを最小連続数として求めるとともに、前記最
小連続数に対応する欠陥画素を最小欠陥画素として求め
る過程と、(d)前記最小欠陥画素の最小連続数の方向
に位置して、前記最小欠陥画素を挟む正常画素の画素値
に基づいて、前記最小欠陥画素の画素値を補正画素値と
して求める過程と、(e)前記最小欠陥画素の画素値を
前記補正画素値で置換する過程と、(f)前記補正画素
値で置換した前記欠陥画素を正常画素とする過程と、
(g)前記各欠陥画素が全て正常画素となるまで前記過
程(b)から前記過程(f)を繰り返し行う過程と、を
含むことを特徴とするものである。
The present invention has the following configuration in order to achieve the above object. That is, in the method for correcting defective pixels of a digital image according to the first aspect, when an original image is converted into a digital image by a reading unit, defective pixels occurring in the digital image due to dust and dirt are corrected. The method comprising: (a) identifying defective pixels present in a digital image; and (b)
(C) determining the number of consecutive defective pixels in the row direction for each defective pixel as the continuous number of rows, and determining the number of consecutive defective pixels in the column direction as the continuous number of columns;
(D) obtaining a minimum pixel as the minimum number of consecutive pixels from the number of consecutive rows and the number of consecutive columns, and determining a defective pixel corresponding to the minimum number of consecutive pixels as a minimum defective pixel; Determining a pixel value of the minimum defective pixel as a corrected pixel value based on a pixel value of a normal pixel sandwiching the minimum defective pixel in a direction of the minimum number of consecutive pixels; (F) replacing the defective pixel with the corrected pixel value with a normal pixel;
(G) repeating steps (b) to (f) until all the defective pixels become normal pixels.

【0013】また、請求項2に記載のデジタル画像の欠
陥画素補正方法は、請求項1に記載のデジタル画像の欠
陥画素補正方法において、前記過程(d)の補正画素値
は、前記最小欠陥画素を挟む2つの正常画素の画素値か
ら直線補間により算出されることを特徴とするものであ
る。
The method of correcting defective pixels of a digital image according to claim 2 is the method of correcting defective pixels of digital image according to claim 1, wherein the corrected pixel value in the step (d) is the minimum defective pixel. Are calculated by linear interpolation from the pixel values of two normal pixels sandwiching.

【0014】また、請求項3に記載のデジタル画像の欠
陥画素補正装置は、原画を読み取り手段によりデジタル
画像に変換した際に、ゴミや埃などに起因して前記デジ
タル画像に生じている欠陥画素を補正する装置におい
て、前記デジタル画像を記憶する記憶手段と、前記デジ
タル画像を表示するための表示手段と、前記表示手段に
表示されたデジタル画像内に存在する欠陥画素を特定す
る欠陥画素特定手段と、各欠陥画素について行方向に連
続する欠陥画素の数を行方向連続数として求めるととも
に、列方向に連続する欠陥画素の数を列方向連続数とし
て求める連続数算出手段と、前記各行方向連続数および
前記各列方向連続数の中から最小のものを最小連続数と
して求めるとともに、前記最小連続数に対応する欠陥画
素を最小欠陥画素として求める最小欠陥画素算出手段
と、前記最小欠陥画素の最小連続数の方向に位置して、
前記最小欠陥画素を挟む正常画素の画素値に基づいて、
前記最小欠陥画素の画素値を補正画素値として算出する
補正画素値算出手段と、前記最小欠陥画素の画素値を前
記補正画素値で置換して前記デジタル画像に補正を施
し、前記最小欠陥画素を正常画素とする画素補正手段
と、前記各欠陥画素が全て正常画素となるまで、前記連
続数算出手段と、前記最小欠陥画素算出手段と、前記補
正画素値算出手段と、前記画素補正手段とを繰り返し制
御する制御手段と、を備えていることを特徴とするもの
である。
According to a third aspect of the present invention, there is provided an apparatus for correcting defective pixels of a digital image, wherein a defective pixel generated in a digital image due to dust or the like when an original image is converted into a digital image by a reading means. A storage unit for storing the digital image, a display unit for displaying the digital image, and a defective pixel specifying unit for specifying a defective pixel present in the digital image displayed on the display unit. A number-of-consecutive-numbers calculating unit for obtaining the number of defective pixels continuous in the row direction for each defective pixel as the number of continuous rows, and calculating the number of defective pixels continuous in the column direction as the number of continuous columns; Number and the minimum number among the column-direction continuation numbers is determined as the minimum continuation number, and the defective pixel corresponding to the minimum continuation number is defined as the minimum defective pixel The minimum defective pixel calculation means for calculating Te, located in the direction of the minimum consecutive number of said minimum defective pixel,
Based on the pixel value of the normal pixel sandwiching the minimum defective pixel,
A correction pixel value calculation unit that calculates a pixel value of the minimum defective pixel as a correction pixel value, and corrects the digital image by replacing a pixel value of the minimum defect pixel with the correction pixel value; Pixel correction means to be normal pixels, until all the defective pixels become normal pixels, the consecutive number calculation means, the minimum defective pixel calculation means, the correction pixel value calculation means, the pixel correction means And control means for performing repetitive control.

【0015】また、請求項4に記載のデジタル画像の欠
陥画素補正装置は、請求項3に記載のデジタル画像の欠
陥画素補正装置において、前記補正画素値算出手段は、
前記最小欠陥画素を含む2つの正常画素の画素値から直
線補間によって前記補正画素値を算出することを特徴と
するものである。
According to a fourth aspect of the present invention, there is provided the digital image defective pixel correcting apparatus, wherein the corrected pixel value calculating means comprises:
The correction pixel value is calculated by linear interpolation from the pixel values of two normal pixels including the minimum defective pixel.

【0016】また、請求項5に記載の記録媒体は、原画
を読み取り手段によりデジタル画像に変換した際に、ゴ
ミや埃などに起因して前記デジタル画像に生じている欠
陥画素を補正するためのプログラムを格納した記録媒体
であって、(a)デジタル画像内に存在する欠陥画素を
特定する処理と、(b)各欠陥画素について行方向に連
続する欠陥画素の数を行方向連続数として求めるととも
に、列方向に連続する欠陥画素の数を列方向連続数とし
て求める処理と、(c)前記各行方向連続数および前記
各列方向連続数の中から最小のものを最小連続数として
求めるとともに、前記最小連続数に対応する欠陥画素を
最小欠陥画素として求める処理と、(d)前記最小欠陥
画素の最小連続数の方向に位置して、前記最小欠陥画素
を挟む正常画素の画素値に基づいて、前記最小欠陥画素
の画素値を補正画素値として求める処理と、(e)前記
最小欠陥画素の画素値を前記補正画素値で置換する処理
と、(f)前記補正画素値で置換した前記欠陥画素を正
常画素とする処理と、(g)前記各欠陥画素が全て正常
画素となるまで前記処理(b)から前記処理(f)を繰
り返し行う処理と、を行わせるようにコンピュータを制
御するためのプログラムを格納したものである。
According to a fifth aspect of the present invention, there is provided a recording medium for correcting a defective pixel occurring in a digital image due to dust or the like when an original image is converted into a digital image by a reading unit. A storage medium storing a program, wherein (a) a process for specifying defective pixels present in a digital image, and (b) the number of defective pixels continuous in the row direction for each defective pixel is determined as the number of continuous rows. A process of calculating the number of continuous defective pixels in the column direction as the number of continuous columns; and (c) determining the smallest of the number of continuous rows and the number of continuous columns in the column direction as the minimum number of continuous pixels. (D) determining a defective pixel corresponding to the minimum number of continuous pixels as a minimum defective pixel; and (d) determining a normal pixel located in the direction of the minimum number of continuous minimum defective pixels and sandwiching the minimum defective pixel. A process of obtaining a pixel value of the minimum defective pixel as a corrected pixel value based on the prime value; (e) a process of replacing the pixel value of the minimum defective pixel with the corrected pixel value; And (g) repeating the processes (b) to (f) until all of the defective pixels become normal pixels. It stores a program for controlling a computer.

【0017】[0017]

【作用】請求項1に記載の発明の作用は次のとおりであ
る。まず、デジタル画像内に存在する欠陥画素のうち、
欠陥画素を1画素ずつ指示する手法、または、欠陥画素
を含むように領域を指示した後に、設定した閾値などに
基づき判別する手法などによって、デジタル画像内に存
在している欠陥画素を特定する(過程(a))。このよ
うにして特定した各欠陥画素について、各画素の行方向
に連続して存在している欠陥画素の数を『行方向連続
数』として算出する。この行方向とは、行列において行
数が増減する方向のことをいい、各画素の上下方向のこ
とである。つまり、欠陥画素が存在する画素列におい
て、連続している欠陥画素の数を算出する。さらに、各
欠陥画素について、各画素の列方向に連続して存在して
いる欠陥画素の数を『列方向連続数』として算出する。
この列方向とは、行列において列数が増減する方向、換
言すると左右方向のことである。つまり、欠陥画素が存
在する画素行において連続している欠陥画素の数を算出
する(過程(b))。
The operation of the first aspect of the invention is as follows. First, among the defective pixels present in the digital image,
A defective pixel existing in the digital image is identified by a method of designating defective pixels one by one, or a method of designating an area to include a defective pixel and then determining based on a set threshold or the like ( Step (a)). For each of the defective pixels specified in this way, the number of defective pixels that are continuously present in the row direction of each pixel is calculated as the “continuation number in the row direction”. The row direction refers to a direction in which the number of rows increases or decreases in the matrix, and is a vertical direction of each pixel. That is, the number of consecutive defective pixels is calculated in the pixel row where the defective pixels exist. Further, for each defective pixel, the number of defective pixels existing continuously in the column direction of each pixel is calculated as the “continuation number in the column direction”.
The column direction is a direction in which the number of columns increases or decreases in the matrix, in other words, a left-right direction. That is, the number of consecutive defective pixels in the pixel row where the defective pixel exists is calculated (step (b)).

【0018】上記のようにして各欠陥画素について行方
向連続数と列方向連続数を算出した後、これらの中から
最小のものを『最小連続数』として算出する。つまり、
最小連続数は、いずれかの欠陥画素の行方向連続数また
は列方向連続数である。そして最小連続数に対応する欠
陥画素を『最小欠陥画素』として求める(過程
(c))。この最小欠陥画素は、その周囲、特に最小連
続数に対応する方向(行方向あるいは列方向)に欠陥画
素が少ないものであり、逆に言えば各欠陥画素のうち正
常画素が最も近くに存在するものである。
After calculating the number of continuations in the row direction and the number of continuations in the column direction for each defective pixel as described above, the smallest one of these is calculated as the "minimum continuation number". That is,
The minimum number of consecutive pixels is the number of consecutive consecutive defective pixels in the row or column direction. Then, a defective pixel corresponding to the minimum number of continuous pixels is obtained as a "minimum defective pixel" (step (c)). The minimum defective pixel has few defective pixels around it, particularly in a direction (row direction or column direction) corresponding to the minimum number of continuous pixels, and conversely, a normal pixel is closest to each other among the defective pixels. Things.

【0019】次いで、最小欠陥画素の最小連続数に対応
する方向に着目し、この方向(行方向あるいは列方向)
に位置して最小欠陥画素を挟む正常画素の画素値に基づ
いて補正画素値を算出する(過程(d))。最小欠陥画
素は、その最小連続数に対応する方向に欠陥画素が少な
く正常画素までの距離が最も近いものであるので、これ
を挟む正常画素の画素値を用いて補正画素値を算出する
ことにより、周囲の正常画素の画素値を可能な限り補正
画素値に反映させることができる。そして、最小欠陥画
素の画素値を補正画素値によって置換し(過程
(e))、この補正した欠陥画素を正常画素として扱う
(過程(f))。
Next, paying attention to the direction corresponding to the minimum number of consecutive minimum defective pixels, this direction (row direction or column direction)
Then, a corrected pixel value is calculated based on the pixel values of the normal pixels sandwiching the minimum defective pixel (step (d)). Since the minimum defective pixel has a small number of defective pixels in the direction corresponding to the minimum number of consecutive pixels and has the shortest distance to the normal pixel, the correction pixel value is calculated by using the pixel value of the normal pixel sandwiching the defective pixel. In addition, the pixel values of surrounding normal pixels can be reflected as much as possible on the corrected pixel values. Then, the pixel value of the minimum defective pixel is replaced with the corrected pixel value (step (e)), and the corrected defective pixel is treated as a normal pixel (step (f)).

【0020】このように最小欠陥画素を対象にしてその
画素値を補正した後、全てが正常画素となるまで各欠陥
画素の『行方向連続数』および『列方向連続数』を算出
する過程(b)以降を繰り返し行う(過程(g))。し
たがって各欠陥画素のうち正常画素に最も距離が近い欠
陥画素から順次に上述した補正処理を行うことになるの
で、各欠陥画素が同一の画素値に補正されるようなこと
はなく、各欠陥画素の近傍に存在する正常画素の画素値
を可能な限り反映させることができる。したがって、補
正により違和感が生じることを抑制することができる。
After correcting the pixel value of the minimum defective pixel as described above, the process of calculating the “continuation number in the row direction” and the “continuation number in the column direction” of each defective pixel until all pixels become normal pixels ( b) and subsequent steps are repeated (process (g)). Therefore, since the above-described correction processing is sequentially performed from the defective pixel closest to the normal pixel among the defective pixels, each defective pixel is not corrected to the same pixel value. Can be reflected as much as possible. Therefore, it is possible to suppress the occurrence of unnaturalness due to the correction.

【0021】また、請求項2に記載の発明によれば、最
小欠陥画素を挟む2つの正常画素の画素値に基づいて直
線補間により補正画素値を算出することにより、最小欠
陥画素の近傍に存在する正常画素の画素値をよりよく反
映することができる。したがって、周囲の正常画素との
間に違和感が生じることをより抑制することができる。
According to the second aspect of the present invention, the correction pixel value is calculated by linear interpolation based on the pixel values of two normal pixels sandwiching the minimum defective pixel, so that the correction pixel value exists in the vicinity of the minimum defective pixel. The pixel value of the normal pixel to be reflected can be better reflected. Therefore, it is possible to further suppress a sense of incompatibility with surrounding normal pixels.

【0022】また、請求項3に記載の発明の作用は次の
とおりである。記憶手段に記憶されているデジタル画像
を表示手段に表示した状態で、デジタル画像内に存在す
る欠陥画素を欠陥画素特定手段によって特定する。この
欠陥画素特定手段としては、例えば、オペレータがマウ
スなどのポインティングデバイスによって欠陥画素を1
つずつ指示するものや、オペレータが1箇所だけを指示
し、その周囲の一定領域内に含まれている画素を対象に
して、閾値などに基づいて自動的に欠陥画素を特定する
ようなものである。
The operation of the third aspect of the present invention is as follows. With the digital image stored in the storage means displayed on the display means, defective pixels present in the digital image are specified by the defective pixel specifying means. As this defective pixel specifying means, for example, the operator identifies one defective pixel using a pointing device such as a mouse.
One in which the operator instructs only one place, and the defective pixels are automatically specified based on a threshold or the like for pixels included in a certain area around the one. is there.

【0023】連続数算出手段は、各欠陥画素について、
各画素の行方向に連続して存在している欠陥画素の数を
『行方向連続数』として算出する。この行方向とは、行
列において行数が増減する方向のことをいい、各画素の
上下方向のことである。さらに、各欠陥画素について、
各画素の列方向に連続して存在している欠陥画素の数を
『列方向連続数』として算出する。この列方向とは、行
列において列数が増減する方向をいい、各画素の左右方
向のことである。
The number-of-continuations calculating means calculates, for each defective pixel,
The number of defective pixels that continuously exist in the row direction of each pixel is calculated as “the number of continuous continuations in the row direction”. The row direction refers to a direction in which the number of rows increases or decreases in the matrix, and is a vertical direction of each pixel. Further, for each defective pixel,
The number of defective pixels that exist continuously in the column direction of each pixel is calculated as the “continuation number in the column direction”. The column direction refers to the direction in which the number of columns increases or decreases in the matrix, and is the horizontal direction of each pixel.

【0024】最小欠陥画素算出手段は、各欠陥画素につ
いて行方向連続数と列方向連続数を算出した後、これら
の中から最小のものを『最小連続数』として算出する。
そして最小連続数に対応する欠陥画素を『最小欠陥画
素』として求める。この最小欠陥画素は、その周囲、特
に最小連続数に対応する方向(行方向あるいは列方向)
に欠陥画素が少ないものである。
The minimum defective pixel calculating means calculates the number of continuous pixels in the row direction and the number of continuous pixels in the column direction for each defective pixel, and then calculates the smallest one as the “minimum number of continuous pixels”.
Then, a defective pixel corresponding to the minimum number of continuous pixels is obtained as a “minimum defective pixel”. The minimum defective pixel is located in a direction (row direction or column direction) corresponding to the periphery thereof, particularly, the minimum continuous number.
The number of defective pixels is small.

【0025】補正画素値算出手段は、最小欠陥画素の最
小連続数に対応する方向に着目し、この方向に位置して
最小欠陥画素を挟む正常画素の画素値に基づいて補正画
素値を算出する。最小欠陥画素は、その最小連続数に対
応する方向に欠陥画素が少なく正常画素までの距離が最
も近いものであるので、これを挟む正常画素の画素値を
用いて補正画素値を算出することにより、補正画素値に
周囲の正常画素の画素値を可能な限り反映させることが
できる。このようにして算出された補正画素値により、
画素補正手段が最小欠陥画素の画素値を置換して補正を
施し、この補正した欠陥画素を正常画素とする。
The correction pixel value calculation means pays attention to the direction corresponding to the minimum number of consecutive minimum defective pixels, and calculates a correction pixel value based on the pixel values of normal pixels positioned in this direction and sandwiching the minimum defective pixel. . Since the minimum defective pixel has a small number of defective pixels in the direction corresponding to the minimum number of consecutive pixels and has the shortest distance to the normal pixel, the correction pixel value is calculated by using the pixel value of the normal pixel sandwiching the defective pixel. In addition, the pixel values of surrounding normal pixels can be reflected as much as possible on the corrected pixel values. With the corrected pixel value calculated in this way,
The pixel correcting unit replaces the pixel value of the minimum defective pixel and performs correction, and sets the corrected defective pixel as a normal pixel.

【0026】このように最小欠陥画素を対象にしてその
画素値を補正した後、全てが正常画素となるまで、制御
手段が、上記連続数算出手段と、上記最小欠陥画素算出
手段と、上記補正画素値算出手段と、上記画素補正手段
とを繰り返し制御する。したがって各欠陥画素のうち正
常画素に最も近い欠陥画素から順次に上述した補正処理
を行うことになるので、各欠陥画素が同一の画素値に補
正されるようなことはなく、各欠陥画素の近傍に存在す
る正常画素の画素値を反映させることができる。したが
って、補正により違和感が生じることを抑制することが
できる。
After correcting the pixel value of the minimum defective pixel as described above, the control means continues to calculate the continuous number calculating means, the minimum defective pixel calculating means, The pixel value calculation means and the pixel correction means are repeatedly controlled. Therefore, since the above-described correction processing is sequentially performed from the defective pixel closest to the normal pixel among the defective pixels, each defective pixel is not corrected to the same pixel value, and the vicinity of each defective pixel is not corrected. Can be reflected. Therefore, it is possible to suppress the occurrence of unnaturalness due to the correction.

【0027】また、請求項4に記載の発明によれば、補
正画素値算出手段が最小欠陥画素を挟む2つの正常画素
の画素値に基づいて直線補間により補正画素値を算出す
ることにより、最小欠陥画素の近傍に存在する正常画素
の画素値をよりよく反映することができる。したがっ
て、周囲の正常画素との間に違和感が生じることをより
抑制することができる。
According to the fourth aspect of the present invention, the corrected pixel value calculating means calculates the corrected pixel value by linear interpolation based on the pixel values of two normal pixels sandwiching the minimum defective pixel, thereby minimizing the corrected pixel value. The pixel value of a normal pixel existing near the defective pixel can be better reflected. Therefore, it is possible to further suppress a sense of incompatibility with surrounding normal pixels.

【0028】また、請求項5に記載の記録媒体に格納さ
れているプログラムをコンピュータに実行させることに
より、まず最初にデジタル画像内に存在している欠陥画
素を特定させる。このようにして特定させた各欠陥画素
について、各画素の行方向に連続して存在している欠陥
画素の数を『行方向連続数』として算出させ、各画素の
列方向に連続して存在している欠陥画素の数を『列方向
連続数』として算出させる。
Further, by causing a computer to execute the program stored in the recording medium according to claim 5, first, a defective pixel existing in a digital image is specified. For each defective pixel specified in this way, the number of defective pixels that are continuously present in the row direction of each pixel is calculated as the “continuous number in the row direction”, and the number of defective pixels that are continuously present in the column direction of each pixel is calculated. The number of defective pixels is calculated as the “continuation number in the column direction”.

【0029】上記のようにして各欠陥画素について行方
向連続数と列方向連続数を算出させた後、これらの中か
ら最小のものを『最小連続数』として算出させ、この最
小連続数に対応する欠陥画素を『最小欠陥画素』として
求めさせる。次いで、最小欠陥画素の最小連続数に対応
する方向に着目し、この方向に位置して最小欠陥画素を
挟む正常画素の画素値に基づいて補正画素値を算出させ
る。そして、最小欠陥画素の画素値を補正画素値によっ
て置換させ、この補正した欠陥画素を正常画素として扱
わせる。
After the number of continuations in the row direction and the number of continuations in the column direction are calculated for each defective pixel as described above, the smallest one is calculated as the “minimum continuation number”, and Is determined as the “minimum defective pixel”. Next, paying attention to the direction corresponding to the minimum continuous number of the minimum defective pixels, the correction pixel value is calculated based on the pixel values of the normal pixels located in the direction and sandwiching the minimum defective pixel. Then, the pixel value of the minimum defective pixel is replaced with the corrected pixel value, and the corrected defective pixel is treated as a normal pixel.

【0030】このように最小欠陥画素を対象にしてその
画素値を補正した後、全てが正常画素となるまで各欠陥
画素の『行方向連続数』および『列方向連続数』を算出
させる処理以降を繰り返し行わせる。したがって各欠陥
画素のうち正常画素に最も近い欠陥画素から順次に上述
した補正処理を行うことになるので、各欠陥画素が同一
の画素値に補正されるようなことはなく、各欠陥画素の
近傍に存在する正常画素の画素値を反映させることがで
きる。したがって、補正により違和感が生じることを抑
制することができる。
After correcting the pixel value of the minimum defective pixel as described above, the process of calculating the “continuous number in the row direction” and the “continuous number in the column direction” of each defective pixel until all the pixels become normal pixels is performed. Is repeated. Therefore, since the above-described correction processing is sequentially performed from the defective pixel closest to the normal pixel among the defective pixels, each defective pixel is not corrected to the same pixel value, and the vicinity of each defective pixel is not corrected. Can be reflected. Therefore, it is possible to suppress the occurrence of unnaturalness due to the correction.

【0031】[0031]

【発明の実施の形態】以下、図面を参照して本発明の一
実施例を説明する。図1は、本発明に係るデジタル画像
の欠陥画素補正方法を含む画像処理を行う画像処理装置
の概略構成を示すブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of an image processing apparatus that performs image processing including a method of correcting defective pixels of a digital image according to the present invention.

【0032】図中、符号1は、複数個のデジタル画像を
記憶している画像記憶部であり、記憶容量が大きなハー
ドディスク装置や光磁気ディスク装置などにより構成さ
れている。この画像記憶部1は、本発明における記憶手
段に相当する。デジタル画像は、カラーリバーサルフィ
ルムやカラープリントなどの原画を、図示しないスキャ
ナー(読み取り手段)によってデジタルデータに変換し
て得られるものであり、読み取り時に原画やスキャナー
の読取部にゴミや埃などが付着していた場合にはその部
分が正常に変換されずに欠陥画素となる。ここでは画像
記憶部1に記憶されているデジタル画像が、上記欠陥画
素と、埃などの影響を受けることなく正常に原画から変
換された正常画素とを含むものとして説明する。なお、
一般的に原画がカラーである場合には、デジタル画像が
R・G・Bの三色のそれぞれの情報を含むものである
が、以下においては理解を容易にするために白黒で階調
表現されたデジタル画像を例に採って説明する。なお、
例えば、8ビットで量子化を行って階調表現した場合、
各画素の画素値は0〜255の値をもつことになるが、
以下の説明においては『0』に近い画素値を暗いと表現
し、『255』に近い画素値を明るいものとして表現す
る。
In FIG. 1, reference numeral 1 denotes an image storage unit for storing a plurality of digital images, and is constituted by a hard disk device or a magneto-optical disk device having a large storage capacity. This image storage unit 1 corresponds to a storage unit in the present invention. A digital image is obtained by converting an original image such as a color reversal film or a color print into digital data using a scanner (reading means) (not shown). At the time of reading, dust and dirt adhere to the original image and the reading unit of the scanner. If so, that part is not converted normally and becomes a defective pixel. Here, a description will be given assuming that the digital image stored in the image storage unit 1 includes the defective pixel and a normal pixel normally converted from the original image without being affected by dust or the like. In addition,
In general, when the original image is in color, the digital image includes information of each of the three colors of R, G, and B. In the following, for ease of understanding, a digital image expressed in grayscale in black and white will be described. This will be described using an image as an example. In addition,
For example, when gradation is expressed by performing quantization with 8 bits,
Although the pixel value of each pixel will have a value of 0 to 255,
In the following description, a pixel value near “0” is expressed as dark, and a pixel value near “255” is expressed as bright.

【0033】画像記憶部1に記憶されている複数個のデ
ジタル画像のうち、所望のものをオペレータが選択する
と、その画像が制御部3を介して表示手段に相当するモ
ニタ5に表示される。所望のデジタル画像を選択するに
は、キーボード7あるいはマウス9を利用して行う。上
記の制御部3は、CPUやRAM,ROMなどにより構
成されており、後述する各部を統括制御するものであ
る。この制御部3は、本発明における制御手段に相当す
る。この画像処理装置は、制御部3に後述する処理を行
わせるためのプログラムを記憶装置11に予め記憶して
いる形態のものや、フロッピーディスク、光磁気ディス
ク、ICカードなどの記録媒体Mに格納されているその
プログラムを、駆動装置13から読み込む形態のものが
ある。この例では、記録媒体Mから駆動装置13を介し
て制御部3がプログラムを読み込み、それに基づいて制
御部3が後に詳述する処理を実行するようになってい
る。プログラムの読み込み動作は装置を起動する際に1
度だけ実行すればよい。なお、以下の説明においては、
理解の容易のために上記プログラムによる各処理を機能
的にブロック図にも示している。
When an operator selects a desired one of a plurality of digital images stored in the image storage unit 1, the selected image is displayed on a monitor 5 corresponding to a display unit via the control unit 3. A desired digital image is selected using the keyboard 7 or the mouse 9. The control unit 3 includes a CPU, a RAM, a ROM, and the like, and performs overall control of each unit described below. The control unit 3 corresponds to a control unit in the present invention. This image processing apparatus stores a program for causing the control unit 3 to perform processing described later in the storage device 11 or stores the program in a recording medium M such as a floppy disk, a magneto-optical disk, or an IC card. In some cases, the program is read from the drive device 13. In this example, the control unit 3 reads a program from the recording medium M via the driving device 13, and the control unit 3 executes processing described later in detail based on the program. The program reading operation is performed when the device is started up.
It only needs to be executed once. In the following description,
For easy understanding, each processing by the above program is also shown functionally in a block diagram.

【0034】欠陥画素特定手段に相当する欠陥画素特定
処理部17は、オペレータが選択した画像メモリ中に存
在する欠陥画素を特定するための処理を行う機能を有す
る。この欠陥画素特定処理の詳細については後述する
が、ここで簡単にその処理の概要について説明してお
く。まず、オペレータが画像メモリ中に存在する欠陥画
素を認識し、例えば、マウス9によりいずれかの欠陥画
素あるいはその近傍を指示する。この指示された画素を
中心にして評価領域というものを設定し、この評価領域
内に存在する正常画素の画素値に基づいて評価領域をさ
らに限定する。そして、限定した領域を構成する矩形枠
の画素値に基づいて閾値を設定し、限定した領域内に存
在する全ての画素の画素値と閾値とを比較し、欠陥画素
を特定するようになっている。このようにして特定され
た欠陥画素は、その位置(例えば、画素位置を示す行列
など)が欠陥画素特定処理部17内に欠陥画素情報とし
て保持される。
The defective pixel specifying section 17 corresponding to the defective pixel specifying means has a function of performing processing for specifying a defective pixel existing in the image memory selected by the operator. Although the details of the defective pixel specifying process will be described later, an outline of the process will be briefly described here. First, the operator recognizes a defective pixel existing in the image memory, and designates, for example, any defective pixel or its vicinity using the mouse 9. An evaluation area is set around the designated pixel, and the evaluation area is further limited based on the pixel values of the normal pixels existing in the evaluation area. Then, a threshold value is set based on the pixel values of the rectangular frame constituting the limited area, the pixel values of all the pixels present in the limited area are compared with the threshold value, and the defective pixel is specified. I have. The position of the defective pixel specified in this manner (for example, a matrix indicating the pixel position) is stored in the defective pixel specifying processing unit 17 as defective pixel information.

【0035】処理用メモリ19には、上記の欠陥画素特
定処理部17によって設定された評価領域内に存在する
画素群が制御部3によって転送され、これらの画素群を
記憶保持するものである。ここに記憶されている画素群
は、その画素値が後述する各部によって参照されたり書
き換えられたりする。
To the processing memory 19, a group of pixels existing in the evaluation area set by the defective pixel specifying processing unit 17 is transferred by the control unit 3, and these pixel groups are stored and held. In the pixel group stored here, the pixel value is referred to or rewritten by each unit described later.

【0036】後に詳述するように欠陥画素を補正する際
には、行方向(上下方向)に連続する欠陥画素の数と列
方向(左右方向)に連続する欠陥画素の数を各欠陥画素
ごとに求め、各欠陥画素のうち最小の連続数を有する欠
陥画素から先に補正処理を行うようにする。処理ルール
記憶部23は、複数個の欠陥画素が同じ連続数を有する
場合に、どの欠陥画素を優先して処理するかを決める規
則を予め記憶している。この規則は、オペレータがキー
ボード7やマウス9によって適宜に設定することができ
る。なお、この実施例では、行方向に同一の連続数を有
する欠陥画素が存在した場合には上側の欠陥画素を優先
し、列方向に同一の連続数を有する欠陥画素が存在した
場合には左側の欠陥画素を優先する規則が設定されてい
るものとする。また、最小の連続数を有する欠陥画素を
順次に補正する際に、行方向および列方向のいずれの方
向も最小である場合には、いずれの方向にある正常画素
に基づいて補間するかが問題となるが、このような場合
には、その前に処理した欠陥画素の補正した方向と交互
に切り換えるという規則も設定されている。つまり、行
方向にある正常画素に基づき補正した後は、列方向にあ
る正常画素に基づき補正を行うようにする。
As will be described in detail later, when correcting defective pixels, the number of defective pixels continuous in the row direction (vertical direction) and the number of defective pixels continuous in the column direction (horizontal direction) are determined for each defective pixel. , And the correction process is performed first on the defective pixel having the minimum number of consecutive pixels among the defective pixels. When a plurality of defective pixels have the same continuous number, the processing rule storage unit 23 stores in advance rules for determining which defective pixel is to be preferentially processed. These rules can be appropriately set by the operator using the keyboard 7 and the mouse 9. In this embodiment, when there is a defective pixel having the same continuous number in the row direction, the upper defective pixel is prioritized, and when there is a defective pixel having the same continuous number in the column direction, the left side is determined. It is assumed that a rule that gives priority to the defective pixel is set. Further, when sequentially correcting the defective pixel having the minimum number of consecutive pixels, if both the row direction and the column direction are the minimum, it is problematic to interpolate based on the normal pixel in which direction. However, in such a case, a rule is set to alternately switch between the corrected direction of the defective pixel processed before that and the corrected direction. That is, after the correction is performed based on the normal pixels in the row direction, the correction is performed based on the normal pixels in the column direction.

【0037】本発明の連続数算出手段に相当する連続数
算出部25は、処理用メモリ19を参照して、各欠陥画
素ごとに列方向(左右方向)に連続する欠陥画素の数を
列方向連続数として求めるとともに、各欠陥画素ごとに
行方向(上下方向)に連続する欠陥画素の数を行方向連
続数として求める。最小欠陥画素算出部27は、連続数
算出部25により算出された各列方向連続数および各行
方向連続数の中から最小のものを最小連続数として算出
する。さらに、この最小連続数に対応する欠陥画素を最
小欠陥画素として求める機能を有する。なお、このとき
最小のものが複数個ある場合には、上述した処理ルール
記憶部23を参照して、その規則に応じて最小欠陥画素
を決定する。なお、この最小欠陥画素算出部27は、本
発明における最小欠陥画素算出手段に相当する。
The continuous number calculating section 25 corresponding to the continuous number calculating means of the present invention refers to the processing memory 19 and calculates the number of defective pixels continuous in the column direction (left-right direction) for each defective pixel. In addition to obtaining the number of continuations, the number of defective pixels that continue in the row direction (vertical direction) for each defective pixel is obtained as the number of continuations in the row direction. The minimum defective pixel calculation unit 27 calculates the smallest one of the continuous numbers in each column direction and each continuous direction in each row calculated by the continuous number calculation unit 25 as the minimum continuous number. Further, it has a function of obtaining a defective pixel corresponding to the minimum number of continuous pixels as a minimum defective pixel. At this time, if there are a plurality of minimum defective pixels, the minimum defective pixel is determined according to the rule with reference to the processing rule storage unit 23 described above. Note that the minimum defective pixel calculation section 27 corresponds to the minimum defective pixel calculation means in the present invention.

【0038】補正画素値算出部29は、最小欠陥画素の
最小連続数の方向に対応し、最小欠陥画素を挟む位置に
ある正常画素の画素値に基づいて、最小欠陥画素の画素
値を補正画素値として算出する。この例では、最小欠陥
画素を挟む位置にある2つの正常画素の画素値により直
線補間(内挿補間)によって補正画素値を算出するよう
になっている。なお、補正画素値を算出するための補間
手法としては、種々のものが利用可能であり、例えば、
スプライン補間やラグランジェ補間などが挙げられる。
本実施例では、直線補間によって補正画素値を算出する
が、例えば、デジタル画像上に存在する欠陥画素の位置
に応じて、上記の補間手法により算出するようにしても
よい。なお、補正画素値算出部29が本発明における補
正画素値算出手段に相当する。
The correction pixel value calculation unit 29 calculates the pixel value of the minimum defective pixel based on the pixel value of the normal pixel located at the position sandwiching the minimum defective pixel, corresponding to the direction of the minimum number of consecutive minimum defective pixels. Calculate as a value. In this example, the correction pixel value is calculated by linear interpolation (interpolation interpolation) using the pixel values of two normal pixels located at the position sandwiching the minimum defective pixel. Various methods can be used as an interpolation method for calculating the correction pixel value.
Examples include spline interpolation and Lagrange interpolation.
In this embodiment, the correction pixel value is calculated by linear interpolation. However, for example, the correction pixel value may be calculated by the above-described interpolation method according to the position of a defective pixel existing on a digital image. Note that the correction pixel value calculation unit 29 corresponds to a correction pixel value calculation unit in the present invention.

【0039】画素補正手段に相当する画素補正部31
は、算出された補正画素値により最小欠陥画素の画素値
を置換する。具体的には、処理用メモリ19に記憶され
ている評価領域内の画素群のうち、最小欠陥画素に対応
する欠陥画素の画素値を置換する。また、欠陥画素特定
処理部17に保持されている、補正した最小欠陥画素に
対応する欠陥画素情報を削除する。制御部3は、上述し
た各構成を制御し、欠陥画素特定処理部17に記憶され
ている欠陥画素情報が無くなるまで、上述した連続数算
出部25と、最小欠陥画素算出部27と、補正画素値算
出部29と、画素補正部31とを繰り返し制御する。
Pixel correction unit 31 corresponding to pixel correction means
Replaces the pixel value of the smallest defective pixel with the calculated correction pixel value. Specifically, the pixel value of the defective pixel corresponding to the smallest defective pixel in the pixel group in the evaluation area stored in the processing memory 19 is replaced. Further, the defective pixel information corresponding to the corrected minimum defective pixel held in the defective pixel specifying processing unit 17 is deleted. The control unit 3 controls each of the above-described components, and until the defective pixel information stored in the defective pixel specifying processing unit 17 disappears, the above-described consecutive number calculation unit 25, the minimum defective pixel calculation unit 27, and the correction pixel. The value calculation unit 29 and the pixel correction unit 31 are repeatedly controlled.

【0040】次に、上述した装置の動作について図2の
フローチャートおよび図3ないし図13の模式図を参照
しつつ説明する。
Next, the operation of the above-described apparatus will be described with reference to the flowchart of FIG. 2 and the schematic diagrams of FIGS.

【0041】ステップS1(デジタル画像を表示) オペレータは、画像記憶部1の中から所望のデジタル画
像をキーボード7またはマウス9により選択する。選択
されたデジタル画像は、制御部3を介してモニタ5に表
示される。表示されたデジタル画像は、例えば、図3の
模式図に示すようなものであるとする。図3に示すよう
に、デジタル画像Fは、原画から正常に変換された正常
画素(群)NPと、ゴミや埃の影響により正常に変換さ
れたなかった欠陥画素(群)DP(×印で示す)とを含
むものである。また、このデジタル画像Fは、その左側
付近に比較的暗い画素値(例えば、暗い壁や影の部分)
を有する正常画素(群)NP’(/印で示す)が存在す
る。
Step S1 (Display Digital Image) The operator selects a desired digital image from the image storage unit 1 using the keyboard 7 or the mouse 9. The selected digital image is displayed on the monitor 5 via the control unit 3. The displayed digital image is, for example, as shown in the schematic diagram of FIG. As shown in FIG. 3, the digital image F includes a normal pixel (group) NP normally converted from the original image and a defective pixel (group) DP (x mark) that was not normally converted due to the influence of dust or dust. Shown). The digital image F has a relatively dark pixel value near the left side thereof (for example, a dark wall or a shadow portion).
There is a normal pixel (group) NP ′ (indicated by /) having the following.

【0042】この例では、説明の簡易化のために一例と
して、19ドット×19ドットでデジタル画像Fが表さ
れているものとする。なお、図3中、上下方向に沿って
付した符号L1〜L19は、行列の列数が増減する列方
向(左右方向)に沿って存在する画素群により構成され
る画素行を示すものであり、左右方向に沿って付した符
号C1〜C19は、行列の行数が増減する行方向(上下
方向)に沿って存在する画素群により構成される画素列
を示すものである。なお、以下の説明では、その過程で
画素が欠陥画素か正常画素であるかが不明である場合
は、単に画素Pと称するとともに、その位置を明瞭にす
る必要がある場合には、上記の画素行を表すL1〜L1
9および画素列を表すC1〜C19を用いて括弧書きで
表す。つまり、図3中の正常画素群NPの左上隅に位置
する画素を、P(L19,C1)のように表すことにす
る。
In this example, it is assumed that the digital image F is represented by 19 dots × 19 dots for simplification of description. In FIG. 3, reference numerals L1 to L19 attached along the up-down direction indicate pixel rows constituted by pixel groups existing along the column direction (left-right direction) in which the number of columns of the matrix increases / decreases. The symbols C1 to C19 attached along the left and right directions indicate pixel columns formed by pixel groups existing along the row direction (vertical direction) in which the number of rows of the matrix increases and decreases. In the following description, if it is not clear whether a pixel is a defective pixel or a normal pixel in the process, the pixel is simply referred to as a pixel P. L1 to L1 representing rows
9 and C1 to C19 representing a pixel column are shown in parentheses. That is, the pixel located at the upper left corner of the normal pixel group NP in FIG. 3 is represented as P (L19, C1).

【0043】ステップS2(欠陥画素を特定:過程
(a)および処理(a)に相当) オペレータはモニタ5に表示されているデジタル画像F
を見つつ周囲の画素の画素値との関係などに基づき欠陥
画素群DPを認識し、画素P(L9,C10),画素P
(L9,C11),画素P(L10,C9),画素P
(L10,C10),画素P(L10,C11),画素
P(L10,C12),画素P(L11,C11),画
素P(L11,C12)のうちのいずれかの画素をマウ
ス9により指示する。ここでは、画像の中央に存在する
画素P(L10,C10)が指示されたものとし、適宜
この画素をPIと称する。なお、後述する理由によりこ
の時に必ずしも欠陥画素を指示する必要はなく、欠陥画
素近くの正常画素を指示してもよい。
Step S2 (specify defective pixel: corresponding to process (a) and process (a)) The operator selects the digital image F displayed on the monitor 5.
, The defective pixel group DP is recognized based on the relationship with the pixel values of the surrounding pixels, and the pixels P (L9, C10) and the pixels P
(L9, C11), pixel P (L10, C9), pixel P
One of the pixels (L10, C10), the pixel P (L10, C11), the pixel P (L10, C12), the pixel P (L11, C11), and the pixel P (L11, C12) is designated by the mouse 9. . Here, it is assumed that the pixel P (L10, C10) existing at the center of the image is designated, and this pixel is appropriately referred to as PI. At this time, it is not always necessary to indicate a defective pixel at this time, but a normal pixel near the defective pixel may be specified at this time.

【0044】欠陥画素特定処理部17は、図4に示すよ
うに、予め記憶されている領域の大きさ(15×15ド
ット)の枠を、指示された画素PIを中心にして評価領
域ERとしてモニタ5のデジタル画像F上に重ね合わせ
表示する。そして、デジタル画像Fの画素群のうちその
領域内に含まれている画素群(画素P(L3,C3)と
画素P(L17,C17)とを対角の頂点とする矩形内
の画素群)を評価領域ERとして設定し、評価領域ER
内に含まれている画素群を処理用メモリ19に転送す
る。この場合、転送されるのは、比較的暗い画素値を有
する正常画素群NP’の右側部分と、欠陥画素群DP
と、正常画素群NPの一部である。
As shown in FIG. 4, the defective pixel specification processing unit 17 sets a frame of a previously stored area (15 × 15 dots) as an evaluation area ER around the designated pixel PI. The image is superimposed and displayed on the digital image F on the monitor 5. Then, a pixel group included in the area of the pixel group of the digital image F (a pixel group in a rectangle having the pixels P (L3, C3) and the pixels P (L17, C17) as diagonal vertices) Is set as the evaluation area ER, and the evaluation area ER
Is transferred to the processing memory 19. In this case, what is transferred is the right part of the normal pixel group NP ′ having a relatively dark pixel value and the defective pixel group DP.
And a part of the normal pixel group NP.

【0045】次いで、図5に示すように処理用メモリ1
9に記憶されている評価領域ER内にある画素群のう
ち、中心付近から最も暗い画素値を有する画素を欠陥画
素候補PAとして設定する。中心付近とは、例えば、指
示された画素PIを中心とした2ドット×2ドットの矩
形範囲である。なお、この例の場合、中心付近に存在す
る複数個の〔欠陥〕画素の画素値はほぼ同一であると
し、このような場合にはいずれの画素を欠陥画素候補と
してもよいが、ここではオペレータが指示した画素PI
を優先して欠陥画素候補PAとして設定する。通常、オ
ペレータは、欠陥画素を認識してそれを指示するので、
このように設定しても何ら不都合は生じ得ない。
Next, as shown in FIG.
The pixel having the darkest pixel value from the vicinity of the center among the pixel groups in the evaluation area ER stored in No. 9 is set as the defective pixel candidate PA. The vicinity of the center is, for example, a rectangular area of 2 dots × 2 dots around the designated pixel PI. In this example, it is assumed that the pixel values of a plurality of [defective] pixels near the center are substantially the same, and in such a case, any of the pixels may be a defective pixel candidate. Pixel PI indicated by
Is prioritized and set as a defective pixel candidate PA. Usually, the operator recognizes the defective pixel and indicates it,
No inconvenience can occur with such a setting.

【0046】そして、評価領域ER内に存在する画素群
を対象にして、欠陥画素候補PAの上側にある画素の列
方向に沿う各画素により構成されている上ライン、つま
り、図5に示すように欠陥画素候補PAから評価領域E
Rの上辺の間に位置する7つの上ラインUL1〜UL7
のそれぞれの画素値の平均をライン平均値として算出す
る。この場合、上ラインUL1は最も平均値が小さく、
上ラインUL7は上ラインUL1に次いで平均値が小さ
く、上ラインUL2〜UL6は最も平均値が大きい。
Then, for the pixel group existing in the evaluation area ER, an upper line composed of pixels along the column direction of the pixels above the defective pixel candidate PA, that is, as shown in FIG. From the defective pixel candidate PA to the evaluation area E
Seven upper lines UL1 to UL7 located between the upper sides of R
Is calculated as a line average value. In this case, the upper line UL1 has the smallest average value,
The upper line UL7 has the smallest average value next to the upper line UL1, and the upper lines UL2 to UL6 have the largest average value.

【0047】同様にして、欠陥画素候補PAの下側にあ
る下ラインDL1〜DL7についてライン平均値を算出
する。この場合、下ラインDL1が最も平均値が小さ
く、下ラインDL2〜DL7が下ラインDL1よりも大
きな平均値になる。さらに、欠陥画素候補PAの左右に
位置する左ラインLL1〜LL7,右ラインRL1〜R
L7のライン平均値を算出する。この場合、左ラインL
L7が最も小さな平均値となり、左ラインLL1がそれ
に次いで小さな平均値となり、左ラインLL6が左ライ
ンLL1に次いで小さくなり、左ラインLL2〜LL5
が最も大きな平均値となる。また、各右ラインについて
は、右ラインRL1、右ラインRL2、右ラインRL3
〜RL7の順に平均値が大きくなる。
Similarly, a line average value is calculated for the lower lines DL1 to DL7 below the defective pixel candidate PA. In this case, the lower line DL1 has the smallest average value, and the lower lines DL2 to DL7 have larger average values than the lower line DL1. Furthermore, left lines LL1 to LL7 and right lines RL1 to RL located on the left and right of the defective pixel candidate PA.
The line average value of L7 is calculated. In this case, the left line L
L7 has the smallest average value, the left line LL1 has the next smallest average value, the left line LL6 has the second smallest value after the left line LL1, and the left lines LL2 to LL5.
Is the largest average value. Further, regarding each right line, a right line RL1, a right line RL2, a right line RL3
The average value increases in the order of to RL7.

【0048】上述したようにして算出した上下左右の各
方向ごとの各ライン平均値を参照し、各方向ごとに最も
明るいライン平均値を有するラインを選択する。最も明
るいとは、上述した明暗と画素値との関係からライン平
均値が最も大きなものである。つまり、この例では、5
つの上ラインUL2〜UL6と、6つの下ラインDL2
〜DL7と、4つの左ラインLL2〜LL5と、5つの
右ラインRL3〜RL7とが各方向の中でライン平均値
が最も大きくなっている。このような場合には、欠陥画
素の漏れを防止するために各方向ごとに欠陥画素候補P
Aから最も離れているラインを選択する。つまり、上方
向からは上ラインUL6を選択し、下方向からは下ライ
ンDL7を、左方向からは左ラインLL5と、右方向か
らは右ラインRL7を選択する。この処理によって最初
に設定された評価領域ERから欠陥画素候補PAに向っ
て領域を絞り込み(図6を参照)、評価領域ERの左側
に存在している正常画素群NP’の一部を以下の処理の
対象から除外することができる。
The line having the brightest line average value for each direction is selected with reference to the line average values for each of the upper, lower, left, and right directions calculated as described above. The brightest is the one with the largest line average value from the relationship between the brightness and the pixel value described above. That is, in this example, 5
One upper line UL2 to UL6 and six lower lines DL2
DL7, four left lines LL2 to LL5, and five right lines RL3 to RL7 have the largest line average values in each direction. In such a case, a defective pixel candidate P
Select the line furthest from A. That is, the upper line UL6 is selected from above, the lower line DL7 from below, the left line LL5 from left, and the right line RL7 from right. By this processing, the area is narrowed down from the evaluation area ER initially set toward the defective pixel candidate PA (see FIG. 6), and a part of the normal pixel group NP ′ existing on the left side of the evaluation area ER is described below. It can be excluded from processing.

【0049】次に、図6中の矩形枠Rの各画素から閾値
を算出する。この閾値は、矩形枠Rの画素値の平均値を
Mとし、矩形枠Rの画素値の分散をSとし、定数をCと
した場合、閾値T=M−S×Cによって決定される。こ
のように矩形枠Rの画素値の平均値Mから分散Sを差し
引くのは、矩形枠R内に存在している正常画素のバラツ
キを考慮することによって正常画素を欠陥画素として認
識することを防止するためである。また、分散Sに定数
Cを乗じるのは経験的なものであり、この定数Cとして
は2〜3の値が好ましい。上記のように閾値Tを算出す
るために各ラインUL6,DL7,LL5,RL7によ
って囲われている領域ではなく、その内部を除いた矩形
枠Rの画素群を採用するのは次のような理由による。つ
まり、上記各ラインによって限定された領域内には、欠
陥画素候補PAを含む欠陥画素DPと正常画素NPとが
混在しているので、矩形枠R内に存在する画素群の画素
値を基づき閾値Tを算出しても、欠陥画素DPと正常画
素NPとを正確に判別することができない。そこで、欠
陥画素DPよりも明るい画素値を有する正常画素NPを
だけを含んでいる矩形枠Rの画素値の平均値Mに基づき
閾値Tを算出するのである。
Next, a threshold value is calculated from each pixel of the rectangular frame R in FIG. This threshold value is determined by the threshold value T = M−S × C, where M is the average of the pixel values of the rectangular frame R, S is the variance of the pixel values of the rectangular frame R, and C is a constant. The reason why the variance S is subtracted from the average value M of the pixel values of the rectangular frame R in this way is to prevent the recognition of a normal pixel as a defective pixel by considering the variation of the normal pixel existing in the rectangular frame R. To do that. It is empirical to multiply the variance S by a constant C, and the constant C is preferably a value of 2 to 3. The reason for using the pixel group of the rectangular frame R excluding the area surrounded by the lines UL6, DL7, LL5, and RL7 to calculate the threshold T as described above, instead of the area surrounded by the lines UL6, DL7, LL5, and RL7, is as follows. by. That is, since the defective pixel DP including the defective pixel candidate PA and the normal pixel NP are mixed in the area defined by each line, the threshold value is determined based on the pixel value of the pixel group existing in the rectangular frame R. Even if T is calculated, the defective pixel DP and the normal pixel NP cannot be accurately determined. Therefore, the threshold value T is calculated based on the average value M of the pixel values of the rectangular frame R including only the normal pixels NP having a pixel value brighter than the defective pixel DP.

【0050】算出した閾値Tと矩形枠R内に存在する全
ての画素の画素値とを比較し、閾値Tよりも暗い(小さ
い)画素値を有する画素を全て欠陥画素として判別す
る。つまり、図6中において、矩形枠Rの内部である画
素P(L4,C6)と画素P(L15,C16)との対
角を頂点とする矩形を形成している全ての画素の画素値
と閾値Tとを比較する。
The calculated threshold value T is compared with the pixel values of all the pixels present in the rectangular frame R, and all pixels having pixel values darker (smaller) than the threshold value T are determined as defective pixels. That is, in FIG. 6, the pixel values of all the pixels forming the rectangle having the vertices at the diagonal of the pixels P (L4, C6) and the pixels P (L15, C16) inside the rectangular frame R are Compare with threshold value T.

【0051】このように正常画素だけを含む矩形枠Rの
画素値の平均値Mに基づいて閾値Tを決定し、評価領域
ERをさらに限定した矩形枠R内の画素群だけを対象に
して欠陥画素を特定するので、評価領域ER内に暗い画
素値を有する正常画素NP’が含まれている場合であっ
てもオペレータが指示した画素PIから離れていれば欠
陥画素として誤認識することなく正確に欠陥画素だけを
特定することができる。また、オペレータは最初に1箇
所だけ欠陥画素付近を指示するだけでよく、労力を最小
限にすることができる。これによりオペレータの労力を
最小限にしつつも欠陥画素を特定することができる。
As described above, the threshold value T is determined based on the average value M of the pixel values of the rectangular frame R including only the normal pixels, and the defect T is determined only for the pixel group within the rectangular frame R further defining the evaluation area ER. Since the pixel is specified, even if the evaluation area ER includes a normal pixel NP ′ having a dark pixel value, if the pixel is apart from the pixel PI specified by the operator, the pixel is correctly identified without being erroneously recognized as a defective pixel. Only the defective pixel can be specified. In addition, the operator only needs to first specify the vicinity of the defective pixel in one place, so that the labor can be minimized. Thus, a defective pixel can be specified while minimizing the operator's labor.

【0052】上記の処理により、欠陥画素特定処理部1
7には、次のような欠陥画素情報が記憶される。なお、
特定された欠陥画素群が明瞭となるように、以下の符号
と対応させてデジタル画像Fを拡大して図7に示す。
By the above processing, the defective pixel specifying processor 1
7, the following defective pixel information is stored. In addition,
FIG. 7 shows an enlarged digital image F in correspondence with the following symbols so that the specified defective pixel group becomes clear.

【0053】欠陥画素 DP1(L9,C10) DP2(L9,C11) DP3(L10,C9) DP4(L10,C10) DP5(L10,C11) DP6(L10,C12) DP7(L11,C11) DP8(L11,C12)Defective pixels DP1 (L9, C10) DP2 (L9, C11) DP3 (L10, C9) DP4 (L10, C10) DP5 (L10, C11) DP6 (L10, C12) DP7 (L11, C11) DP8 (L11) , C12)

【0054】ステップS3(連続数を算出:過程(b)
および処理(b)に相当) 連続数算出部25は、処理用メモリ19を参照し、上述
した処理によって特定された8個の欠陥画素DP1〜D
P8のそれぞれについて、自身を含めて行方向に連続す
る欠陥画素の数を行方向連続数として算出するととも
に、自身を含めて列方向に連続する欠陥画素の数を列方
向連続数として算出する。各欠陥画素DP1〜DP8の
行方向連続数および列方向連続数は次のようになる。
Step S3 (Calculate the number of continuations: Step (b)
And the process (b)). The continuation number calculating unit 25 refers to the processing memory 19 and calculates the eight defective pixels DP1 to DP identified by the above-described process.
For each of P8, the number of defective pixels continuous in the row direction including itself is calculated as the continuous number in the row direction, and the number of defective pixels continuous in the column direction including itself is calculated as the continuous number in the column direction. The continuous number in the row direction and the continuous number in the column direction of each defective pixel DP1 to DP8 are as follows.

【0055】 欠陥画素 行方向連続数 列方向連続数 DP1(L9,C10) 2 2 DP2(L9,C11) 3 2 DP3(L10,C9) 1 4 DP4(L10,C10) 2 4 DP5(L10,C11) 3 4 DP6(L10,C12) 2 4 DP7(L11,C11) 3 2 DP8(L11,C12) 2 2Defective pixel Continuous number in row direction Continuous number in column direction DP1 (L9, C10) 22 DP2 (L9, C11) 32 DP3 (L10, C9) 14 DP4 (L10, C10) 24 DP5 (L10, C11) ) 34 DP6 (L10, C12) 24 DP7 (L11, C11) 32 DP8 (L11, C12) 22

【0056】ステップS4(最小欠陥画素を求める:過
程(c)および処理(c)に相当) 最小欠陥画素算出部27は、各欠陥画素DP1〜DP8
の行方向連続数および列方向連続数の中から最小のもの
を求める。ここでは、行方向連続数が『1』である欠陥
画素DP3(L10,C9)が最小のものであり、これ
を最小欠陥画素DP3とする。この最小欠陥画素DP3
は、欠陥画素DP1〜DP8の中で、2つの正常画素N
Pによって挟まれている距離が最も近いものである。
Step S4 (Determine Minimum Defective Pixel: Corresponding to Process (c) and Process (c)) The minimum defective pixel calculation section 27 calculates the defective pixels DP1 to DP8.
Of the row-direction continuation numbers and the column-direction continuation numbers of. Here, the defective pixel DP3 (L10, C9) whose row direction continuation number is “1” is the minimum, and is defined as the minimum defective pixel DP3. This minimum defective pixel DP3
Represents two normal pixels N among the defective pixels DP1 to DP8.
The distance sandwiched by P is the closest.

【0057】ステップS5(補正画素値を求める:過程
(d)および処理(d)に相当) 補正画素値算出部29は、欠陥画素DP3(L10,C
9)の補正画素値を算出する。欠陥画素DP3は行方向
連続数が最小であるので、行方向に位置して欠陥画素D
P3を挟む、図7中に丸で囲った2つの正常画素NP
(L11,C9),NP(L9,C9)の画素値を直線
補間して補正画素値を算出する。このように補正する欠
陥画素DP3を最短距離で挟んでいる2つの正常画素を
用いて補正画素値を算出するので、周囲の正常画素の画
素値を可能な限り反映させることができる。
Step S5 (Determine Corrected Pixel Value: Corresponding to Process (d) and Process (d)) The corrected pixel value calculator 29 determines whether the defective pixel DP3 (L10, C
The correction pixel value of 9) is calculated. Since the number of consecutive defective pixels DP3 in the row direction is the minimum, the defective pixel DP3 is located in the row direction and
Two normal pixels NP circled in FIG. 7 sandwiching P3
The pixel values of (L11, C9) and NP (L9, C9) are linearly interpolated to calculate corrected pixel values. Since the correction pixel value is calculated using the two normal pixels sandwiching the defective pixel DP3 to be corrected at the shortest distance, the pixel values of the surrounding normal pixels can be reflected as much as possible.

【0058】ステップS6(最小欠陥画素を補正する:
過程(e)(f)および処理(e)(f)に相当) 画素補正部31は、最小欠陥画素である欠陥画素DP3
の画素値を、補正画素値算出部29によって算出された
補正画素値によって置換する。具体的には、処理用メモ
リ19に記憶されている評価領域ER内の画素群のデー
タを更新する。さらに、画素補正部31は、欠陥画素特
定処理部17に保持されている最小欠陥画素である欠陥
画素DP3に対応する欠陥画素情報を削除する。これ以
降、欠陥画素DP3を正常画素NPとして扱うことにな
る。したがって、欠陥画素特定処理部17に記憶されて
いる欠陥画素情報は、欠陥画素DP3の情報が削除され
て次のようになる。なお、このときのデジタル画像Fを
模式的に示すと図8のようになる。
Step S6 (correct the minimum defective pixel:
The processes (e) and (f) and the processes (e) and (f) correspond to each other.
Is replaced with the corrected pixel value calculated by the corrected pixel value calculation unit 29. Specifically, the data of the pixel group in the evaluation area ER stored in the processing memory 19 is updated. Further, the pixel correction unit 31 deletes the defective pixel information corresponding to the defective pixel DP3, which is the minimum defective pixel, held in the defective pixel specifying processing unit 17. Thereafter, the defective pixel DP3 is treated as a normal pixel NP. Therefore, the defective pixel information stored in the defective pixel identification processing unit 17 is as follows, with the information of the defective pixel DP3 being deleted. FIG. 8 schematically shows the digital image F at this time.

【0059】欠陥画素 DP1(L9,C10) DP2(L9,C11) DP4(L10,C10) DP5(L10,C11) DP6(L10,C12) DP7(L11,C11) DP8(L11,C12)Defective pixels DP1 (L9, C10) DP2 (L9, C11) DP4 (L10, C10) DP5 (L10, C11) DP6 (L10, C12) DP7 (L11, C11) DP8 (L11, C12)

【0060】以上の処理を終えると、制御部3は、ステ
ップS7(過程(g)および処理(g)に相当する)に
おいて欠陥画素特定処理部17の欠陥画素情報を参照
し、この情報が無くなるまで上記のような処理を繰り返
し行う。現在の欠陥画素特定処理部17には、上記のよ
うに7個の欠陥画素情報が存在しているので、制御部3
はステップS3(連続数の算出)に戻って処理を繰り返
し実行する。
When the above processing is completed, the control section 3 refers to the defective pixel information of the defective pixel specifying processing section 17 in step S7 (corresponding to the process (g) and the processing (g)), and this information is lost. The above process is repeated until the above. Since the current seven defective pixel information exists in the defective pixel identification processing unit 17 as described above, the control unit 3
Returns to step S3 (calculation of the number of continuations) and repeatedly executes the processing.

【0061】ステップS3(連続数を算出) 連続数算出部25は、上述したようにして7個の欠陥画
素DP1,DP2,DP4〜DP8のそれぞれについて
行方向連続数と列方向連続数を算出する。各欠陥画素の
連続数は次のようになる。
Step S3 (Calculate the number of continuations) The number-of-continuations calculation section 25 calculates the number of continuations in the row direction and the number of continuations in the column direction for each of the seven defective pixels DP1, DP2, DP4 to DP8 as described above. . The number of consecutive defective pixels is as follows.

【0062】 欠陥画素 行方向連続数 列方向連続数 DP1(L9,C10) 2 2 DP2(L9,C11) 3 2 DP4(L10,C10) 2 3 DP5(L10,C11) 3 3 DP6(L10,C12) 2 3 DP7(L11,C11) 3 2 DP8(L11,C12) 2 2Defective pixel Row continuous number Column continuous number DP1 (L9, C10) 22 DP2 (L9, C11) 32 DP4 (L10, C10) 23 DP5 (L10, C11) 33 DP6 (L10, C12) ) 23 DP7 (L11, C11) 32 DP8 (L11, C12) 22

【0063】ステップS4(最小欠陥画素を求める) 最小欠陥画素算出部27は、上記各欠陥画素DP1,D
P2,DP4〜DP8の行方向連続数および列方向連続
数の中から最小のものを求める。ここでは、欠陥画素D
P1,DP2,DP4〜DP8のうち欠陥画素DP5を
除く全ての欠陥画素が行方向あるいは列方向連続数のい
ずれかが最小連続数『2』となる。このような場合に
は、最小欠陥画素が決定できないので、連続数算出部2
5は処理ルール記憶部23に記憶されている規則を参照
する。上述したようにこの規則は、行方向に同一の連続
数を有する欠陥画素が存在した場合には上側の欠陥画素
を優先し、列方向に同一の連続数を有する欠陥画素が存
在した場合には左側の欠陥画素を優先するようになって
いる。したがって、この場合には欠陥画素DP7,DP
8が最も上側に存在しているので、これらを優先的に処
理する。つまり、最小欠陥画素を欠陥画素DP7,DP
8とする。
Step S4 (Determine the Minimum Defective Pixel) The minimum defective pixel calculation unit 27 calculates the defective pixels DP1, D
The smallest one is determined from the number of continuations in the row direction and the number of continuations in the column direction of P2, DP4 to DP8. Here, the defective pixel D
Of the defective pixels P1, DP2, DP4 to DP8 except for the defective pixel DP5, either the row or column continuation number becomes the minimum continuation number “2”. In such a case, since the minimum defective pixel cannot be determined,
5 refers to the rules stored in the processing rule storage unit 23. As described above, this rule gives priority to the upper defective pixel when there is a defective pixel having the same continuous number in the row direction, and when there is a defective pixel having the same continuous number in the column direction. Defective pixels on the left are prioritized. Therefore, in this case, the defective pixels DP7, DP
Since 8 exists at the top, these are processed preferentially. That is, the minimum defective pixel is replaced with the defective pixels DP7 and DP7.
8 is assumed.

【0064】ステップS5(補正画素値を求める) 最小欠陥画素である欠陥画素DP7,DP8の補正画素
値を算出するが、欠陥画素DP7は、列方向連続数が最
小の『2』であるので、この方向に位置する正常画素N
P(L11,C10)と正常画素NP(L11,C1
3)の画素値を直線補間することによって補正画素値を
算出できる。しかしながら、欠陥画素DP8は、行方向
連続数も列方向連続数も同じく『2』であるので、いず
れの方向に位置する正常画素を用いて補間するかが問題
となる。このような場合にも、上記の処理ルール記憶部
23の規則を参照する。つまり、行方向および列方向の
いずれの方向も最小である場合には、その前に処理した
欠陥画素の補正した方向と交互に切り換えるという規則
を参照する。ここでその前に処理した欠陥画素とは、先
のステップS5による処理、すなわち、欠陥画素DP3
のことである。この欠陥画素DP3は、行方向(上下方
向)の正常画素に基づき補正したので、今回補正する欠
陥画素DP8は、列方向(左右方向)の正常画素に基づ
き補正する。つまり、上記欠陥画素DP7と同様に、こ
の方向に位置する正常画素NP(L11,C10)と正
常画素NP(L11,C13)の画素値を直線補間する
ことによって補正画素値を算出する。
Step S5 (Determine Corrected Pixel Value) The corrected pixel values of the defective pixels DP7 and DP8, which are the minimum defective pixels, are calculated. Since the number of consecutive defective pixels DP7 is the minimum "2" in the column direction, Normal pixels N located in this direction
P (L11, C10) and the normal pixel NP (L11, C1)
A corrected pixel value can be calculated by linearly interpolating the pixel value of 3). However, since the number of consecutive defective pixels DP8 is also “2” in both the row direction and the column direction, there is a problem in which direction the normal pixel is used for interpolation. In such a case, the rules in the processing rule storage unit 23 are referred to. In other words, when both the row direction and the column direction are the minimum, reference is made to the rule of alternately switching to the corrected direction of the defective pixel processed previously. Here, the previously processed defective pixel is the processing in step S5, that is, the defective pixel DP3
That is. Since the defective pixel DP3 is corrected based on the normal pixels in the row direction (vertical direction), the defective pixel DP8 to be corrected this time is corrected based on the normal pixels in the column direction (horizontal direction). That is, similarly to the defective pixel DP7, the correction pixel value is calculated by linearly interpolating the pixel values of the normal pixel NP (L11, C10) and the normal pixel NP (L11, C13) located in this direction.

【0065】ステップS6において欠陥画素DP7,D
P8の画素値を置換し、ステップS7を経てステップS
3へと戻る。この時点における欠陥画素特定処理部17
の欠陥画素情報は、以下のようになる。なお、このとき
のデジタル画像Fを模式的に示すと図9のようになる。 欠陥画素 DP1(L9,C10) DP2(L9,C11) DP4(L10,C10) DP5(L10,C11) DP6(L10,C12)
In step S6, defective pixels DP7, D
The pixel value of P8 is replaced, and the process proceeds to step S7 through step S7.
Return to 3. Defective pixel specifying processor 17 at this time
Is as follows. FIG. 9 schematically illustrates the digital image F at this time. Defective pixel DP1 (L9, C10) DP2 (L9, C11) DP4 (L10, C10) DP5 (L10, C11) DP6 (L10, C12)

【0066】ステップS3により算出される連続数は次
のようになる。 欠陥画素 行方向連続数 列方向連続数 DP1(L9,C10) 2 2 DP2(L9,C11) 2 2 DP4(L10,C10) 2 3 DP5(L10,C11) 2 3 DP6(L10,C12) 1 3
The continuous number calculated in step S3 is as follows. Defective pixel number in row direction number in column direction DP1 (L9, C10) 2 2 DP2 (L9, C11) 2 2 DP4 (L10, C10) 2 3 DP5 (L10, C11) 2 3 DP6 (L10, C12) 1 3

【0067】ステップS4では、行方向連続数が最小連
続数『1』である欠陥画素DP6を最小欠陥画素に設定
する。
In step S4, the defective pixel DP6 having the minimum continuous number "1" in the row direction is set as the minimum defective pixel.

【0068】ステップS5では、最小欠陥画素DP6の
行方向(上下方向)に位置する正常画素NP(L11,
C12)と正常画素NP(L9,C12)の画素値によ
り補正画素値を算出し、ステップS6において置換す
る。このとき欠陥画素特定処理部17の欠陥画素情報は
次のようになる。なお、このときのデジタル画像Fを模
式的に示すと図10のようになる。 欠陥画素 DP1(L9,C10) DP2(L9,C11) DP4(L10,C10) DP5(L10,C11)
In step S5, the normal pixels NP (L11, L11,
The corrected pixel value is calculated based on the pixel values of the normal pixel NP (L9, C12) and the normal pixel NP (L9, C12), and is replaced in Step S6. At this time, the defective pixel information of the defective pixel specifying processing unit 17 is as follows. The digital image F at this time is schematically shown in FIG. Defective pixel DP1 (L9, C10) DP2 (L9, C11) DP4 (L10, C10) DP5 (L10, C11)

【0069】ステップS3では、次のように連続数が算
出される。 欠陥画素 行方向連続数 列方向連続数 DP1(L9,C10) 2 2 DP2(L9,C11) 2 2 DP4(L10,C10) 2 2 DP5(L10,C11) 2 2
In step S3, the number of continuations is calculated as follows. Defective pixel Continuous number in row direction Continuous number in column direction DP1 (L9, C10) 22 DP2 (L9, C11) 22 DP4 (L10, C10) 22 DP5 (L10, C11) 22

【0070】ステップS4において、処理ルール記憶部
23に記憶されている規則を参照し、最小欠陥画素とし
て上側にある欠陥画素DP4,DP5を設定する。そし
て、ステップS5において、欠陥画素DP4,DP5の
それぞれの補正画素値を、正常画素NP(L10,C
9)と正常画素NP(L10,C12)に基づいて算出
し、ステップS6において補正する。この時点における
欠陥画素特定処理部17の欠陥画素情報は、以下のよう
になる。なお、このときのデジタル画像Fを模式的に示
すと図11のようになる。 欠陥画素 DP1(L9,C10) DP2(L9,C11)
In step S4, the upper defective pixels DP4 and DP5 are set as the minimum defective pixels with reference to the rules stored in the processing rule storage unit 23. Then, in step S5, the respective corrected pixel values of the defective pixels DP4 and DP5 are replaced with the normal pixels NP (L10, C
9) and the normal pixel NP (L10, C12), and is corrected in step S6. The defective pixel information of the defective pixel identification processing unit 17 at this time is as follows. FIG. 11 schematically shows the digital image F at this time. Defective pixel DP1 (L9, C10) DP2 (L9, C11)

【0071】以下、各ステップでは次のように各処理が
行われる。
Hereinafter, each process is performed in each step as follows.

【0072】 ステップS3 欠陥画素 行方向連続数 列方向連続数 DP1(L9,C10) 1 2 DP2(L9,C11) 1 2Step S3 Defective pixel Number of continuations in row direction Number of continuations in column direction DP1 (L9, C10) 1 2 DP2 (L9, C11) 1 2

【0073】ステップS4〜ステップS6 列方向に同一の連続数を有する欠陥画素が存在した場合
には左側の欠陥画素を優先する規則により、最小欠陥画
素を欠陥画素DP1とする。正常画素NP(L10,C
10)と正常画素NP(L8,C10)に基づき補正画
素値を算出し、欠陥画素DP1を補正する。この時の欠
陥画素情報は、以下のようになる。なお、このときのデ
ジタル画像Fを模式的に示すと図12のようになる。 欠陥画素 DP2(L9,C11)
Steps S4 to S6 When there is a defective pixel having the same number of continuous pixels in the column direction, the minimum defective pixel is determined to be defective pixel DP1 according to the rule of giving priority to the defective pixel on the left side. Normal pixel NP (L10, C
10) and a normal pixel NP (L8, C10) to calculate a correction pixel value to correct the defective pixel DP1. The defective pixel information at this time is as follows. The digital image F at this time is schematically shown in FIG. Defective pixel DP2 (L9, C11)

【0074】 ステップS3 欠陥画素 行方向連続数 列方向連続数 DP2(L9,C11) 1 1Step S 3 Defective Pixel Number of Consecutive Rows Number of Consecutive Rows DP 2 (L 9, C 11) 1 1

【0075】ステップS4〜ステップS6 最小欠陥画素を欠陥画素DP2とする。上記規則により
その前に補正した欠陥画素DP1の補正方向(行方向)
とは異なる列方向に位置する正常画素NP(L9,C1
0)と正常画素NP(L9,C12)に基づき補正画素
値を算出し、欠陥画素DP2を補正する。
Steps S4 to S6 The minimum defective pixel is defined as defective pixel DP2. Correction direction (row direction) of defective pixel DP1 corrected before it according to the above rule
Normal pixels NP (L9, C1)
0) and the normal pixel NP (L9, C12) to calculate a correction pixel value, and correct the defective pixel DP2.

【0076】この時点で欠陥画素特定処理部17の欠陥
画素情報が全て削除されるので、ステップS7にて処理
を分岐して終了する。
At this point, since all the defective pixel information of the defective pixel specifying processing section 17 is deleted, the process branches off and ends in step S7.

【0077】上述したように、各欠陥画素DP1〜DP
8のうち正常画素に距離が近いものから順次に補正を行
うことによって、近傍の正常画素の画素値を可能な限り
反映させることができる。したがって、図14に示した
従来例のように、全ての欠陥画素が同じ画素値を有する
ことはなく、周囲の正常画素との間に違和感が生じにく
くすることができる。つまり、デジタル画像の質感の低
下を最小限に抑制することができる。
As described above, each of the defective pixels DP1 to DP
By performing the correction sequentially from the pixels which are closer to the normal pixels among the pixels 8, the pixel values of the nearby normal pixels can be reflected as much as possible. Therefore, unlike the conventional example shown in FIG. 14, all the defective pixels do not have the same pixel value, and it is possible to make it difficult for a sense of incompatibility with surrounding normal pixels. That is, it is possible to minimize the deterioration of the texture of the digital image.

【0078】なお、各欠陥画素DP1〜DP8が補正さ
れた順序を示すと図13に示すようになる。つまり、符
号A〜Fに示す順序で補正がなされたことを示してい
る。このように補正方向を行方向と列方向とに交互に切
り換えることにより、補正画素値に方向性が生じること
をも防止することができる。したがって、さらに質感の
低下を抑制することができる。また、ビネットと呼ばれ
る画素値(色調)が変化している部分に欠陥画素が存在
している場合であっても画素値に大きな段差が発生して
質感の大きな低下が生じることを防止することができ
る。
FIG. 13 shows the order in which the defective pixels DP1 to DP8 are corrected. In other words, it indicates that the corrections have been made in the order shown by the signs A to F. By alternately switching the correction direction between the row direction and the column direction in this way, it is possible to prevent the occurrence of directivity in the corrected pixel value. Therefore, a decrease in texture can be further suppressed. Further, even if a defective pixel exists in a portion where a pixel value (color tone) called a vignette is changed, it is possible to prevent a large step from occurring in the pixel value and a large decrease in texture. it can.

【0079】また、欠陥画素を補正するには、まず欠陥
画素を特定する必要があるが、本実施例では、上述した
ようにオペレータが最初に1箇所だけ欠陥画素付近を指
示するだけでよく、労力を最小限にすることができる。
これによりオペレータの労力を最小限にしながらも、質
感の低下を最小限に抑制して欠陥画素を補正することが
できる。
In order to correct a defective pixel, it is necessary to first specify the defective pixel. However, in this embodiment, as described above, the operator only needs to first specify one position near the defective pixel. Effort can be minimized.
Thereby, it is possible to correct the defective pixel while minimizing the deterioration of the texture while minimizing the labor of the operator.

【0080】なお、処理ルール記憶部23には、上述し
たような規則を予め記憶するようにしたが、デジタル画
像に応じて規則を変えるようにすることが好ましい。
Although the above-described rules are stored in the processing rule storage unit 23 in advance, it is preferable to change the rules according to the digital image.

【0081】また、上記実施例では、欠陥画素を特定す
るために欠陥画素付近の画素をオペレータが指示するよ
うにしたが、欠陥画素の特定方法は種々のものを採用す
ることができる。例えば、従来例に挙げた(1)〜
(3)のような手法により欠陥画素を特定するようにし
てもよい。
In the above embodiment, the operator specifies a pixel near the defective pixel in order to specify the defective pixel. However, various methods for specifying the defective pixel can be adopted. For example, (1)-
The defective pixel may be specified by a method such as (3).

【0082】なお、上述した例では、理解を容易にする
ために白黒の階調表現されたデジタル画像を対象にして
説明したが、一般的にはカラーのデジタル画像が処理対
象となることが多い。このようにカラー画像が処理対象
である場合には、ステップS5の補正画素値を算出する
際に、各色の画素値を用いるようにすればよい。つま
り、カラーデジタル画像がR,G,Bの3色で表現され
ている場合には、例えば、R,G,Bの順に補間を行っ
て補正画素値とすればよい。
In the above-described example, a digital image expressed in black and white gradation has been described as an object for easy understanding. However, a color digital image is generally processed in many cases. . When the color image is to be processed as described above, the pixel value of each color may be used when calculating the correction pixel value in step S5. That is, when a color digital image is represented by three colors of R, G, and B, for example, interpolation may be performed in the order of R, G, and B to obtain corrected pixel values.

【0083】なお、上記図2のフローチャートで示した
ステップS2〜S7までは、本発明に係る欠陥画素補正
方法のプログラムに相当するものであり、記録媒体Mに
格納されているものである。したがって、図1に示すブ
ロック図に示すような構成を備えていないコンピュータ
であっても、上記プログラムを格納した記録媒体Mを読
み込ませて実行させることにより、上記構成の装置と同
様の作用効果を得ることができる。
Steps S2 to S7 shown in the flowchart of FIG. 2 correspond to the program of the defective pixel correction method according to the present invention, and are stored in the recording medium M. Therefore, even if the computer does not have the configuration as shown in the block diagram shown in FIG. 1, the same operation and effect as those of the device having the above configuration can be obtained by reading and executing the recording medium M storing the above program. Obtainable.

【0084】[0084]

【発明の効果】以上の説明から明らかなように、請求項
1に記載の発明方法によれば、各欠陥画素のうち正常画
素に最も距離が近い欠陥画素から順次に補正処理を行う
ことにより、各欠陥画素の近傍に存在する正常画素の画
素値を可能な限り反映させることができる。したがっ
て、欠陥画素を補正することにより違和感が生じること
を抑制することができる。その結果、デジタル画像の質
感が低下することを最小限に抑制することができる。
As is apparent from the above description, according to the method of the present invention, the correction process is performed sequentially from the defective pixel closest to the normal pixel among the defective pixels. The pixel value of a normal pixel existing near each defective pixel can be reflected as much as possible. Therefore, it is possible to suppress the occurrence of uncomfortable feeling by correcting the defective pixel. As a result, it is possible to minimize a decrease in the texture of the digital image.

【0085】また、請求項2に記載の発明方法によれ
ば、直線補間を用いて補正することにより最小欠陥画素
の近傍に存在する正常画素の画素値をよりよく反映する
ことができるので、周囲の正常画素との間に違和感が生
じることをさらに抑制することができる。したがって、
デジタル画像の質感が低下することをさらに抑制するこ
とができる。
According to the second aspect of the present invention, the pixel value of a normal pixel existing near the minimum defective pixel can be better reflected by performing correction using linear interpolation. It is possible to further suppress a sense of incompatibility with the normal pixel. Therefore,
The deterioration of the texture of the digital image can be further suppressed.

【0086】また、請求項3に記載の発明装置によれ
ば、請求項1に記載の発明方法を好適に実施することが
できる。
According to the apparatus of the third aspect, the method of the first aspect can be suitably implemented.

【0087】また、請求項4に記載の発明装置によれ
ば、請求項2に記載の発明方法を好適に実施することが
できる。
According to the apparatus of the present invention, the method of the present invention can be suitably implemented.

【0088】また、請求項5に記載の発明によれば、記
録媒体に格納したプログラムをコンピュータに実行させ
ることにより、請求項1に記載の発明方法を実行させる
ことができる。
According to the fifth aspect of the present invention, by causing a computer to execute a program stored in a recording medium, the method according to the first aspect of the present invention can be executed.

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

【図1】実施例に係る画像処理装置の概略構成を示すブ
ロック図である。
FIG. 1 is a block diagram illustrating a schematic configuration of an image processing apparatus according to an embodiment.

【図2】画像処理装置の動作を示すフローチャートであ
る。
FIG. 2 is a flowchart illustrating an operation of the image processing apparatus.

【図3】デジタル画像を示す模式図である。FIG. 3 is a schematic diagram showing a digital image.

【図4】デジタル画像とともに評価領域を示した模式図
である。
FIG. 4 is a schematic diagram showing an evaluation area together with a digital image.

【図5】評価領域を限定する過程の説明に供する模式図
である。
FIG. 5 is a schematic diagram for explaining a process of limiting an evaluation area.

【図6】評価領域を限定する過程の説明に供する模式図
である。
FIG. 6 is a schematic diagram for explaining a process of limiting an evaluation area.

【図7】欠陥画素の補正過程を示す模式図である。FIG. 7 is a schematic diagram showing a process of correcting a defective pixel.

【図8】欠陥画素の補正過程を示す模式図である。FIG. 8 is a schematic diagram showing a process of correcting a defective pixel.

【図9】欠陥画素の補正過程を示す模式図である。FIG. 9 is a schematic view showing a process of correcting a defective pixel.

【図10】欠陥画素の補正過程を示す模式図である。FIG. 10 is a schematic diagram illustrating a process of correcting a defective pixel.

【図11】欠陥画素の補正過程を示す模式図である。FIG. 11 is a schematic view showing a process of correcting a defective pixel.

【図12】欠陥画素の補正過程を示す模式図である。FIG. 12 is a schematic diagram showing a process of correcting a defective pixel.

【図13】欠陥画素の補正の順序を示す模式図である。FIG. 13 is a schematic diagram showing the order of correcting defective pixels.

【図14】従来例の説明図である。FIG. 14 is an explanatory diagram of a conventional example.

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

1 … 画像記憶部(記憶手段) 3 … 制御部(制御手段) 5 … モニタ(表示手段) 11 … 記憶装置 13 … 駆動装置 M … 記録媒体 17 … 欠陥画素特定処理部(欠陥画素特定手段) 25 … 連続数算出部(連続数算出手段) 27 … 最小欠陥画素算出部(最小欠陥画素算出手
段) 29 … 補正画素値算出部(補正画素値算出手段) 31 … 画素補正部(画素補正手段) F … デジタル画像 NP … 正常画素 DP … 欠陥画素
DESCRIPTION OF SYMBOLS 1 ... Image storage part (storage means) 3 ... Control part (control means) 5 ... Monitor (display means) 11 ... Storage device 13 ... Drive device M ... Recording medium 17 ... Defective pixel specification processing part (defective pixel specification means) 25 … Continuous number calculating unit (continuous number calculating unit) 27… Minimum defective pixel calculating unit (Minimum defective pixel calculating unit) 29… Corrected pixel value calculating unit (Corrected pixel value calculating unit) 31… Pixel correcting unit (Pixel correcting unit) F … Digital image NP… Normal pixel DP… Defective pixel

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 原画を読み取り手段によりデジタル画像
に変換した際に、ゴミや埃などに起因して前記デジタル
画像に生じている欠陥画素を補正する方法において、 (a)デジタル画像内に存在する欠陥画素を特定する過
程と、 (b)各欠陥画素について行方向に連続する欠陥画素の
数を行方向連続数として求めるとともに、列方向に連続
する欠陥画素の数を列方向連続数として求める過程と、 (c)前記各行方向連続数および前記各列方向連続数の
中から最小のものを最小連続数として求めるとともに、
前記最小連続数に対応する欠陥画素を最小欠陥画素とし
て求める過程と、 (d)前記最小欠陥画素の最小連続数の方向に位置し
て、前記最小欠陥画素を挟む正常画素の画素値に基づい
て、前記最小欠陥画素の画素値を補正画素値として求め
る過程と、 (e)前記最小欠陥画素の画素値を前記補正画素値で置
換する過程と、 (f)前記補正画素値で置換した前記欠陥画素を正常画
素とする過程と、 (g)前記各欠陥画素が全て正常画素となるまで前記過
程(b)から前記過程(f)を繰り返し行う過程と、 を含むことを特徴とするデジタル画像の欠陥画素補正方
法。
1. A method for correcting a defective pixel occurring in a digital image due to dust or dust when an original image is converted into a digital image by a reading means, comprising: (a) presenting in the digital image; (B) determining the number of defective pixels that continue in the row direction for each defective pixel as the number of continuations in the row direction and determining the number of defective pixels that continue in the column direction as the number of continuations in the column direction And (c) determining the smallest one among the number of continuations in each row direction and the number of continuations in each column direction as the minimum number of continuations,
Determining a defective pixel corresponding to the minimum number of consecutive pixels as a minimum defective pixel; and (d) based on a pixel value of a normal pixel located in the direction of the minimum number of consecutive consecutive minimum defective pixels. Determining the pixel value of the minimum defective pixel as a corrected pixel value; (e) replacing the pixel value of the minimum defective pixel with the corrected pixel value; and (f) replacing the defective pixel with the corrected pixel value. Converting a pixel into a normal pixel; and (g) repeating the steps (b) to (f) until all of the defective pixels become normal pixels. Defective pixel correction method.
【請求項2】 請求項1に記載のデジタル画像の欠陥画
素補正方法において、前記過程(d)の補正画素値は、
前記最小欠陥画素を挟む2つの正常画素の画素値から直
線補間により算出されることを特徴とするデジタル画像
の欠陥画素補正方法。
2. The method according to claim 1, wherein the corrected pixel value in the step (d) is:
A method of correcting a defective pixel of a digital image, wherein the defective pixel is calculated by linear interpolation from pixel values of two normal pixels sandwiching the minimum defective pixel.
【請求項3】 原画を読み取り手段によりデジタル画像
に変換した際に、ゴミや埃などに起因して前記デジタル
画像に生じている欠陥画素を補正する装置において、 前記デジタル画像を記憶する記憶手段と、 前記デジタル画像を表示するための表示手段と、 前記表示手段に表示されたデジタル画像内に存在する欠
陥画素を特定する欠陥画素特定手段と、 各欠陥画素について行方向に連続する欠陥画素の数を行
方向連続数として求めるとともに、列方向に連続する欠
陥画素の数を列方向連続数として求める連続数算出手段
と、 前記各行方向連続数および前記各列方向連続数の中から
最小のものを最小連続数として求めるとともに、前記最
小連続数に対応する欠陥画素を最小欠陥画素として求め
る最小欠陥画素算出手段と、 前記最小欠陥画素の最小連続数の方向に位置して、前記
最小欠陥画素を挟む正常画素の画素値に基づいて、前記
最小欠陥画素の画素値を補正画素値として算出する補正
画素値算出手段と、 前記最小欠陥画素の画素値を前記補正画素値で置換して
前記デジタル画像に補正を施し、前記最小欠陥画素を正
常画素とする画素補正手段と、 前記各欠陥画素が全て正常画素となるまで、前記連続数
算出手段と、前記最小欠陥画素算出手段と、前記補正画
素値算出手段と、前記画素補正手段とを繰り返し制御す
る制御手段と、 を備えていることを特徴とするデジタル画像の欠陥画素
補正装置。
3. An apparatus for correcting a defective pixel caused in a digital image due to dust or dust when an original image is converted into a digital image by a reading unit, wherein: a storage unit for storing the digital image; Display means for displaying the digital image; defective pixel specifying means for specifying defective pixels present in the digital image displayed on the display means; number of defective pixels continuous in the row direction for each defective pixel And the number of consecutive defective pixels in the column direction as the number of consecutive columns, and a continuous number calculating means for determining the number of consecutive pixels in the column direction as the number of consecutive columns, A minimum defective pixel calculating unit that obtains a defective pixel corresponding to the minimum continuous number as a minimum defective pixel while obtaining the minimum defective pixel; A correction pixel value calculation means for calculating a pixel value of the minimum defective pixel as a correction pixel value, based on a pixel value of a normal pixel sandwiching the minimum defect pixel, in the direction of the minimum number of consecutive pixels, Pixel correction means for substituting the corrected pixel value for the digital image and correcting the digital image to make the minimum defective pixel a normal pixel; and calculating the number of continuations until all of the defective pixels become normal pixels. Means for correcting a defective pixel of a digital image, comprising: means, a minimum defective pixel calculating means, a corrected pixel value calculating means, and a control means for repeatedly controlling the pixel correcting means.
【請求項4】 請求項3に記載のデジタル画像の欠陥画
素補正装置において、前記補正画素値算出手段は、前記
最小欠陥画素を含む2つの正常画素の画素値から直線補
間によって前記補正画素値を算出することを特徴とする
デジタル画像の欠陥画素補正装置。
4. The apparatus for correcting defective pixels of a digital image according to claim 3, wherein the corrected pixel value calculating means calculates the corrected pixel value by linear interpolation from pixel values of two normal pixels including the minimum defective pixel. An apparatus for correcting a defective pixel of a digital image, wherein the correction is performed.
【請求項5】 原画を読み取り手段によりデジタル画像
に変換した際に、ゴミや埃などに起因して前記デジタル
画像に生じている欠陥画素を補正するためのプログラム
を格納した記録媒体であって、 (a)デジタル画像内に存在する欠陥画素を特定する処
理と、 (b)各欠陥画素について行方向に連続する欠陥画素の
数を行方向連続数として求めるとともに、列方向に連続
する欠陥画素の数を列方向連続数として求める処理と、 (c)前記各行方向連続数および前記各列方向連続数の
中から最小のものを最小連続数として求めるとともに、
前記最小連続数に対応する欠陥画素を最小欠陥画素とし
て求める処理と、 (d)前記最小欠陥画素の最小連続数の方向に位置し
て、前記最小欠陥画素を挟む正常画素の画素値に基づい
て、前記最小欠陥画素の画素値を補正画素値として求め
る処理と、 (e)前記最小欠陥画素の画素値を前記補正画素値で置
換する処理と、 (f)前記補正画素値で置換した前記欠陥画素を正常画
素とする処理と、 (g)前記各欠陥画素が全て正常画素となるまで前記処
理(b)から前記処理(f)を繰り返し行う処理と、 を行わせるようにコンピュータを制御するためのプログ
ラムを格納した記録媒体。
5. A recording medium storing a program for correcting a defective pixel occurring in a digital image due to dust or dust when an original image is converted into a digital image by a reading means, (A) a process of identifying defective pixels present in the digital image; and (b) determining the number of defective pixels continuous in the row direction for each defective pixel as the number of continuous defective pixels in the row direction. (C) calculating the smallest number among the row-number continuation numbers and the column-direction continuation numbers as the minimum continuation number;
(D) a process of determining a defective pixel corresponding to the minimum number of consecutive pixels as a minimum defective pixel; and (d) based on a pixel value of a normal pixel sandwiching the minimum defective pixel and located in a direction of the minimum number of consecutive consecutive minimum defective pixels. (E) replacing the pixel value of the minimum defective pixel with the corrected pixel value; and (f) replacing the pixel value of the minimum defective pixel with the corrected pixel value. And (g) a process of repeatedly performing the processes (b) to (f) until all of the defective pixels become normal pixels. Recording medium that stores the program of.
JP9202929A 1996-09-20 1997-07-29 Method, device for correcting defective pixel in digital image and recording medium Pending JPH10150571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9202929A JPH10150571A (en) 1996-09-20 1997-07-29 Method, device for correcting defective pixel in digital image and recording medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP8-250139 1996-09-20
JP25013996 1996-09-20
JP9202929A JPH10150571A (en) 1996-09-20 1997-07-29 Method, device for correcting defective pixel in digital image and recording medium

Publications (1)

Publication Number Publication Date
JPH10150571A true JPH10150571A (en) 1998-06-02

Family

ID=26513645

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9202929A Pending JPH10150571A (en) 1996-09-20 1997-07-29 Method, device for correcting defective pixel in digital image and recording medium

Country Status (1)

Country Link
JP (1) JPH10150571A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5982946A (en) * 1996-09-20 1999-11-09 Dainippon Screen Mfg. Co., Ltd. Method of identifying defective pixels in digital images, and method of correcting the defective pixels, and apparatus and recording media therefor
JP2020008488A (en) * 2018-07-11 2020-01-16 オムロン株式会社 Image processing apparatus, image processing method, and image processing program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5982946A (en) * 1996-09-20 1999-11-09 Dainippon Screen Mfg. Co., Ltd. Method of identifying defective pixels in digital images, and method of correcting the defective pixels, and apparatus and recording media therefor
JP2020008488A (en) * 2018-07-11 2020-01-16 オムロン株式会社 Image processing apparatus, image processing method, and image processing program

Similar Documents

Publication Publication Date Title
US5982946A (en) Method of identifying defective pixels in digital images, and method of correcting the defective pixels, and apparatus and recording media therefor
US7356202B2 (en) Image processing apparatus, an image processing method, and a computer readable medium having recorded thereon a processing program for permitting a computer to perform image processing routines
JP4577621B2 (en) Image correction processing system and image correction processing method
US5715331A (en) System for generation of a composite raster-vector image
US6392759B1 (en) Edge-enhancement processing apparatus and method, and medium containing edge-enhancement processing program
JPH0730772A (en) Image processor
JP2001313844A (en) Method and device for executing local color correction
JP3142550B2 (en) Graphic processing unit
JPH1117969A (en) Color correcting method
JPH08255240A (en) Device and method for correcting image
JPH10150571A (en) Method, device for correcting defective pixel in digital image and recording medium
JPH10232915A (en) Image processor and its method
JPH10150570A (en) Method, device for specifying defective pixel in digital image and recording medium
JPH10340332A (en) Image processor, image processing method and medium recording image processing control program
JP2006074809A (en) Image processor and image processing method
JP2769673B2 (en) Vignette image converter
JP3230533B2 (en) Image processing apparatus and method
JP7491763B2 (en) Image processing device, method, and program
JP4100848B2 (en) Image processing method and image processing apparatus
JPH10200754A (en) Image processing unit
JP3015075B2 (en) How to make a cutout mask
JPH01252069A (en) Picture processing method in color picture forming device
JPH07262351A (en) Image processor and control method for the same
JPH09281946A (en) Character image data forming method and device therefor
JPH05165592A (en) Color adjustment processing system for color image