JP2014049780A - Device and method for determining defective pixel - Google Patents
Device and method for determining defective pixel Download PDFInfo
- Publication number
- JP2014049780A JP2014049780A JP2012188468A JP2012188468A JP2014049780A JP 2014049780 A JP2014049780 A JP 2014049780A JP 2012188468 A JP2012188468 A JP 2012188468A JP 2012188468 A JP2012188468 A JP 2012188468A JP 2014049780 A JP2014049780 A JP 2014049780A
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- value
- defective
- condition
- center
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000002950 deficient Effects 0.000 title claims abstract description 138
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000004364 calculation method Methods 0.000 claims abstract description 33
- 230000007547 defect Effects 0.000 description 122
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 4
- 230000003068 static effect Effects 0.000 description 3
- 239000000470 constituent Substances 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000032683 aging Effects 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Transforming Light Signals Into Electric Signals (AREA)
- Color Television Image Signal Generators (AREA)
Abstract
Description
本発明は、欠陥画素判定装置および欠陥画素判定方法に関する。 The present invention relates to a defective pixel determination device and a defective pixel determination method.
従来、カメラセンサの欠陥補正技術としては、スタティック型とダイナミック型とが存在する。スタティック型は、出荷時に全黒・全白画像を入力して欠陥画素を検出し、欠陥画素の位置をメモリに蓄積する。使用時には、メモリから欠陥画素の位置を読み出し、欠陥画素の周辺画素を用いて算出した値で欠陥画素の画素値を置き換える。 Conventionally, there are a static type and a dynamic type as a defect correction technique of a camera sensor. In the static type, an all-black / all-white image is input at the time of shipment to detect a defective pixel, and the position of the defective pixel is stored in a memory. In use, the position of the defective pixel is read from the memory, and the pixel value of the defective pixel is replaced with a value calculated using the peripheral pixels of the defective pixel.
このスタティック型は、近年の画素数の増加に伴い、欠陥画素の位置を記憶するために大容量のメモリが必要となることと、出荷時に欠陥検出の行程が必要となることから、コストアップ要因となるという問題があり、さらに温度変化や経年変化によって現れる欠陥には対応できないという点も問題である。このような背景から、ダイナミック型の欠陥補正に対する要求が高まっている。 With this static type, as the number of pixels increases in recent years, a large-capacity memory is required to store the positions of defective pixels, and a defect detection process is required at the time of shipment. Another problem is that defects that appear due to changes in temperature and aging cannot be dealt with. Against this background, there is an increasing demand for dynamic defect correction.
ダイナミック型の欠陥補正技術としては、例えば、下記の特許文献に記載された技術がある。 As a dynamic defect correction technique, for example, there is a technique described in the following patent document.
しかしながら、特許文献1に開示された手法は、欠陥補正として一般的な手法であるが、当該画素近傍の8画素の画素値の平均値と当該画素の画素値との差分値を見るだけでは副作用が大きく、実際には近傍の画素の画素値の全てが当該画素の画素値から離れている等の条件を追加する必要がある。そうした場合には、欠陥画素と近い値を持つエッジの近傍に存在する欠陥画素を欠陥と判定することができず、欠陥画素が残ってしまう。
However, the technique disclosed in
特許文献2に開示された手法は、特許文献1に開示された手法とは異なる欠陥画素判定手法であるが、欠陥の判定条件が設定ウィンドウ内で当該画素の画素値が最大値である場合に限られており、欠陥画素と近い値を持つエッジの近傍に存在する欠陥画素を欠陥と十分に判定することができず、欠陥画素が残ってしまう場合がある。
The method disclosed in
特許文献3に開示された手法は、特許文献1に開示された手法および特許文献2に開示された手法とは異なる欠陥画素判定手法であるが、副作用を小さくする設定にすると、やはり欠陥画素と近い値を持つエッジの近傍に存在する欠陥画素を欠陥と十分に判定することができず、欠陥画素が残ってしまう場合がある。
The technique disclosed in Patent Document 3 is a defective pixel determination technique different from the technique disclosed in
そこで、本発明は、欠陥画素が当該欠陥画素の画素値と近い画素値を持つエッジの近傍に存在する場合であっても、当該欠陥画素を欠陥画素であると判定することを可能とする技術を提供しようとするものである。 Therefore, the present invention makes it possible to determine that a defective pixel is a defective pixel even when the defective pixel exists in the vicinity of an edge having a pixel value close to the pixel value of the defective pixel. Is to provide.
本発明のある実施形態によれば、中心画素と同色レイヤであって前記中心画素に隣接する第1の画素群の画素値のうち第1の最大値と第1の最小値との第1の差分値を算出する第1の差分算出部と、前記中心画素と同色レイヤであって前記中心画素に隣接する第2の画素群の画素値のうち第2の最大値と第2の最小値との第2の差分値を算出する第2の差分算出部と、前記第1の最大値または前記第1の最小値と前記中心画素の画素値との関係と前記第1の差分値と前記第2の差分値とに基づいて、前記中心画素が欠陥画素であるか否かを判定する判定部と、を備える、欠陥画素判定装置が提供される。 According to an embodiment of the present invention, the first of the first maximum value and the first minimum value among the pixel values of the first pixel group that is the same color layer as the center pixel and is adjacent to the center pixel. A first difference calculation unit that calculates a difference value; a second maximum value and a second minimum value among pixel values of a second pixel group that is the same color layer as the center pixel and is adjacent to the center pixel; A second difference calculation unit for calculating the second difference value, a relationship between the first maximum value or the first minimum value and the pixel value of the central pixel, the first difference value, and the first difference value. And a determination unit that determines whether or not the central pixel is a defective pixel based on the difference value of 2. A defective pixel determination device is provided.
かかる構成によれば、欠陥画素が当該欠陥画素の画素値と近い画素値を持つエッジの近傍に存在する場合であっても、当該欠陥画素を欠陥画素であると判定することが可能となる。特に、中心画素に対して水平方向または垂直方向に近傍するエッジが存在する場合においても中心画素が欠陥画素であるか否かを判定することが可能となる。 According to such a configuration, even when a defective pixel exists in the vicinity of an edge having a pixel value close to the pixel value of the defective pixel, it is possible to determine that the defective pixel is a defective pixel. In particular, it is possible to determine whether or not the center pixel is a defective pixel even when there is an edge close to the center pixel in the horizontal or vertical direction.
前記判定部は、前記第1の最大値または前記第1の最小値と前記中心画素の画素値との関係が第1の条件を満たし、かつ、前記第1の差分値が第2の条件を満たし、かつ、前記第2の差分値が第3の条件を満たす場合に、前記中心画素が欠陥画素であると判定してもよい。かかる構成によれば、前記判定部は、第1の条件、第2の条件および第3の条件を満たす場合に、前記中心画素が欠陥画素であると判定することができる。 In the determination unit, the relationship between the first maximum value or the first minimum value and the pixel value of the central pixel satisfies a first condition, and the first difference value satisfies a second condition. If the second difference value satisfies the third condition, the center pixel may be determined to be a defective pixel. According to this configuration, the determination unit can determine that the center pixel is a defective pixel when the first condition, the second condition, and the third condition are satisfied.
前記第1の条件は、前記中心画素の画素値が前記第1の最大値よりも大きい場合には、前記中心画素の画素値から前記第1の最大値を減じた値が第1の閾値よりも大きいという条件であってもよい。かかる構成によれば、前記判定部は、前記中心画素の画素値が前記第1の最大値よりも大きい場合には、前記中心画素の画素値から前記第1の最大値を減じた値が第1の閾値よりも大きいという条件を満たすかによって前記第1の条件を満たすかを判定することができる。 When the pixel value of the central pixel is larger than the first maximum value, the first condition is that a value obtained by subtracting the first maximum value from the pixel value of the central pixel is less than a first threshold value. It may be a condition that is large. According to this configuration, when the pixel value of the center pixel is larger than the first maximum value, the determination unit obtains a value obtained by subtracting the first maximum value from the pixel value of the center pixel. Whether or not the first condition is satisfied can be determined based on whether or not the condition that the threshold value is greater than 1 is satisfied.
前記第1の条件は、前記中心画素の画素値が前記第1の最小値よりも小さい場合には、前記第1の最小値から前記中心画素の画素値を減じた値が第1の閾値よりも大きいという条件であってもよい。かかる構成によれば、前記判定部は、前記中心画素の画素値が前記第1の最小値よりも小さい場合には、前記第1の最小値から前記中心画素の画素値を減じた値が第1の閾値よりも大きいという条件を満たすかによって前記第1の条件を満たすかを判定することができる。 When the pixel value of the central pixel is smaller than the first minimum value, the first condition is that a value obtained by subtracting the pixel value of the central pixel from the first minimum value is less than a first threshold value. It may be a condition that is large. According to this configuration, when the pixel value of the center pixel is smaller than the first minimum value, the determination unit obtains a value obtained by subtracting the pixel value of the center pixel from the first minimum value. Whether or not the first condition is satisfied can be determined based on whether or not the condition that the threshold value is greater than 1 is satisfied.
前記第2の条件は、前記第1の差分値が第2の閾値よりも小さいという条件であってもよい。かかる構成によれば、前記判定部は、前記第1の差分値が第2の閾値よりも小さいという条件を満たすかによって前記第2の条件を満たすかを判定することができる。 The second condition may be a condition that the first difference value is smaller than a second threshold value. According to this configuration, the determination unit can determine whether the second condition is satisfied depending on whether the condition that the first difference value is smaller than the second threshold is satisfied.
前記第3の条件は、前記第2の差分値が第3の閾値よりも小さいという条件であってもよい。かかる構成によれば、前記判定部は、前記第2の差分値が第3の閾値よりも小さいという条件を満たすかによって前記第3の条件を満たすかを判定することができる。 The third condition may be a condition that the second difference value is smaller than a third threshold value. According to such a configuration, the determination unit can determine whether the third condition is satisfied depending on whether the condition that the second difference value is smaller than the third threshold is satisfied.
前記中心画素が欠陥画素であるか否かの判定は、前記中心画素を基準として前記第1の画素群および前記第2の画素群を所定角度回転して得られる複数パターンに対してなされてもよい。かかる構成によれば、前記判定部は、1つのパターンだけではなく、当該複数のパターンに対して欠陥判定を行うことにより、より高精度に欠陥判定を行うことが可能となる。 Whether or not the central pixel is a defective pixel may be determined for a plurality of patterns obtained by rotating the first pixel group and the second pixel group by a predetermined angle with respect to the central pixel. Good. According to such a configuration, the determination unit can perform defect determination with higher accuracy by performing defect determination on not only one pattern but also on the plurality of patterns.
また、本発明の別の実施形態によれば、中心画素と同色レイヤであって前記中心画素に隣接する第1の画素群の画素値のうち第1の最大値と第1の最小値との第1の差分値を算出するステップと、前記中心画素と同色レイヤであって前記中心画素に隣接する第2の画素群の画素値のうち第2の最大値と第2の最小値との第2の差分値を算出するステップと、前記第1の最大値または前記第1の最小値と前記中心画素の画素値との関係と前記第1の差分値と前記第2の差分値とに基づいて、前記中心画素が欠陥画素であるか否かを判定するステップと、を含む、欠陥画素判定方法が提供される。
According to another embodiment of the present invention, the first maximum value and the first minimum value among the pixel values of the first pixel group adjacent to the center pixel and having the same color layer as that of the center pixel. A step of calculating a first difference value; and a second difference between a second maximum value and a second minimum value among pixel values of a second pixel group adjacent to the center pixel and having the same color layer as the
かかる方法によれば、欠陥画素が当該欠陥画素の画素値と近い画素値を持つエッジの近傍に存在する場合であっても、当該欠陥画素を欠陥画素であると判定することが可能となる。特に、中心画素に対して水平方向または垂直方向に近傍するエッジが存在する場合においても中心画素が欠陥画素であるか否かを判定することが可能となる。 According to such a method, even when a defective pixel exists in the vicinity of an edge having a pixel value close to the pixel value of the defective pixel, it is possible to determine that the defective pixel is a defective pixel. In particular, it is possible to determine whether or not the center pixel is a defective pixel even when there is an edge close to the center pixel in the horizontal or vertical direction.
以上説明したように、本発明によれば、欠陥画素が当該欠陥画素の画素値と近い画素値を持つエッジの近傍に存在する場合であっても、当該欠陥画素を欠陥画素であると判定することを可能とする技術を提供することが可能である。 As described above, according to the present invention, even when a defective pixel exists in the vicinity of an edge having a pixel value close to the pixel value of the defective pixel, the defective pixel is determined to be a defective pixel. It is possible to provide a technology that makes it possible.
以下に添付図面を参照しながら、本発明の好適な実施の形態について詳細に説明する。なお、本明細書および図面において、実質的に同一の機能構成を有する構成要素については、同一の符号を付すことにより重複説明を省略する。 Exemplary embodiments of the present invention will be described below in detail with reference to the accompanying drawings. In the present specification and drawings, components having substantially the same functional configuration are denoted by the same reference numerals, and redundant description is omitted.
また、本明細書および図面において、実質的に同一の機能構成を有する複数の構成要素を、同一の符号の後に異なるアルファベットを付して区別する場合もある。ただし、実質的に同一の機能構成を有する複数の構成要素の各々を特に区別する必要がない場合、同一符号のみを付する。 In the present specification and drawings, a plurality of constituent elements having substantially the same functional configuration may be distinguished by attaching different alphabets after the same reference numeral. However, when it is not necessary to particularly distinguish each of a plurality of constituent elements having substantially the same functional configuration, only the same reference numerals are given.
まず、本発明の実施形態に適用し得るセンサの種類について説明する。図1は、本発明の実施形態に適用し得る4原色センサ110Aの構成例を示す図である。なお、図1を用いた説明においては、本発明の実施形態に適用し得るセンサとして4原色センサ110Aを例に説明するが、後に説明するように、本発明の実施形態に適用し得るセンサは4原色センサ110Aに限定されない。
First, the types of sensors that can be applied to the embodiment of the present invention will be described. FIG. 1 is a diagram illustrating a configuration example of a four-primary-
図1に示すように、4原色センサ110Aは、A,B,CおよびDにより示される4つのカラーフィルタが2×2画素を単位として並んでいるセンサである。しかし、4つのカラーフィルタは、それぞれが異なる波長領域の光を検出するものであれば、その構成は特に限定されない。例えば、4つのカラーフィルタは、R,GおよびBの3原色の画素に白画素を加えた構成でもよいし、かかる3原色の画素に赤外光画素を加えた構成でもよいし、可視光領域を4等分して得られる各々の波長領域の光をそれぞれが検出可能であってもよい。
As shown in FIG. 1, the four
以上、本発明の実施形態に適用し得るセンサの種類について説明した。続いて、本発明の実施形態が解決しようとする課題を説明する。図2は、本発明の実施形態が解決しようとする課題を示す図である。ここで、従来のダイナミック欠陥判定による手法は、同色レイヤ3×3の中で中心画素が孤立していることを条件としている。同色レイヤとは、例えば、図1に示した4原色センサ110Aにおいては同一種類のカラーフィルタに相当する。したがって、3×3の画素群の中に1画素でも中心画素と同じか極めて近い値を持つ画素が存在する場合には、当該中心画素が欠陥と判定されない。
The types of sensors that can be applied to the embodiment of the present invention have been described above. Subsequently, problems to be solved by the embodiments of the present invention will be described. FIG. 2 is a diagram illustrating a problem to be solved by the embodiment of the present invention. Here, the conventional dynamic defect determination method is based on the condition that the central pixel is isolated in the same color layer 3 × 3. The same color layer corresponds to, for example, the same type of color filter in the four
すなわち、従来のダイナミック欠陥判定による手法によれば、平坦部を中心にほとんどの欠陥画素を判定および除去することができるが、図2に示すように、画像M1から画像M2に欠陥補正がされたとすると、欠陥画素と同レベルのエッジが近傍にある場合は、その欠陥画素(例えば、図2に示した欠陥画素R1、R2など)は欠陥画素であると判定されないため、欠陥補正がなされた後も除去されずに残ってしまうという問題があった。 That is, according to the conventional dynamic defect determination method, most defective pixels can be determined and removed centering on the flat portion, but as shown in FIG. 2, the defect correction is performed from the image M1 to the image M2. Then, when an edge having the same level as that of the defective pixel is in the vicinity, the defective pixel (for example, defective pixels R1, R2, etc. shown in FIG. 2) is not determined to be a defective pixel. There was also a problem that it remained without being removed.
例えば、図2に示した例では、欠陥画素R1と同色レイヤで欠陥画素R1の右側に存在する3画素は(より詳細には、欠陥画素R1と同色レイヤで欠陥画素R1の右上に存在する1画素、右に存在する1画素および右下に存在する1画素の計3画素は)欠陥画素R1と同じ画素値を持っており、欠陥画素R1は欠陥画素であると判定されない。また、欠陥画素R2と同色レイヤで欠陥画素R2の左上の1画素は欠陥画素R2と同じ画素値を持っており、欠陥画素R2は欠陥画素であると判定されない。 For example, in the example shown in FIG. 2, three pixels existing on the right side of the defective pixel R1 in the same color layer as the defective pixel R1 (more specifically, 1 existing in the upper right side of the defective pixel R1 in the same color layer as the defective pixel R1). The pixel, the one pixel present on the right, and the one pixel present on the lower right have the same pixel value as the defective pixel R1, and the defective pixel R1 is not determined to be a defective pixel. In addition, the upper left pixel of the defective pixel R2 in the same color layer as the defective pixel R2 has the same pixel value as the defective pixel R2, and the defective pixel R2 is not determined to be a defective pixel.
そこで、本発明の実施形態においては、欠陥画素が当該欠陥画素の画素値と近い画素値を持つエッジの近傍に存在する場合であっても、当該欠陥画素を欠陥画素であると高精度に判定することを可能とする技術について説明する。 Therefore, in the embodiment of the present invention, even when a defective pixel exists in the vicinity of an edge having a pixel value close to the pixel value of the defective pixel, the defective pixel is determined with high accuracy as a defective pixel. A technique that makes it possible to do this will be described.
続いて、本発明の実施形態に係る欠陥画素判定装置10の機能構成について説明する。図3は、本発明の実施形態に係る欠陥画素判定装置10の機能構成を示す図である。図3に示すように、欠陥画素判定装置10は、センサ110、ラインメモリ120、補正値算出部130、ダイナミック欠陥判定部140、第1のエッジ近傍欠陥判定部150、第2のエッジ近傍欠陥判定部160およびセレクタ170を備える。以下、欠陥画素判定装置10が備える各機能ブロックの機能について順次詳細に説明する。
Subsequently, a functional configuration of the defective
センサ110は、外部からの光を撮像素子の受光平面に結像させ、結像された光を電荷量に光電変換し、当該電荷量を電気信号に変換するイメージセンサにより構成される。イメージセンサの種類は特に限定されず、例えば、CCD(Charge Coupled Device)であってもよいし、CMOS(Complementary Metal Oxide Semiconductor)であってもよい。なお、図3に示された例では、センサ110は、欠陥画素判定装置10の内部に存在しているが、センサ110は、欠陥画素判定装置10の外部に存在してもよい。
The
ここで、本発明の実施形態においては、センサ110の構成例として、2×2画素の中に各色1画素のみが存在する4原色センサ110Aを採用するが、センサ110の構成は、後に説明するようにかかる例に限定されない。センサ110からのRAW信号はラインメモリ120によって蓄積され、補正値算出部130、ダイナミック欠陥判定部140、第1のエッジ近傍欠陥判定部150、第2のエッジ近傍欠陥判定部160およびセレクタ170から読み出される。例えば、RAW信号は、画像信号として5ライン分ずつ読み出される。なお、図3に示された例では、ラインメモリ120は、欠陥画素判定装置10の内部に存在しているが、ラインメモリ120は、欠陥画素判定装置10の外部に存在してもよい。
Here, in the embodiment of the present invention, a four-primary-
補正値算出部130は、欠陥画素の画素値に対する補正がなされる場合における補正後の画素値(以下、「補正値」とも言う。)を算出する。ここで、例えば、図3に示した例では、欠陥判定を行う機能ブロックとして、ダイナミック欠陥判定部140、第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160が存在している。このように、欠陥判定を行う機能ブロックが欠陥画素判定装置10の内部に複数存在する場合には、補正値算出部130は、各々の欠陥判定に対応する補正値を算出し、当該補正値をセレクタ170に供給してもよい。補正値の具体例については、図8を参照して後に説明する。なお、欠陥画素に対する補正を行う必要がない場合などには、欠陥画素判定装置10は補正値算出部130を備えなくてもよい。
The correction
ダイナミック欠陥判定部140、第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160は、ラインメモリ120から供給される画像信号を構成する複数の画素から中心画素を順次に選択し、当該中心画素が欠陥画素であるか否かの判定を行う。ダイナミック欠陥判定部140は、従来のダイナミック欠陥判定による欠陥判定条件を用いて、中心画素が欠陥画素であるか否かの判定を行う。なお、欠陥画素判定装置10はダイナミック欠陥判定部140を備えなくてもよい。
The dynamic
ここで、上記したように、従来のダイナミック欠陥判定による手法によれば、欠陥画素と同レベルのエッジが近傍に存在する場合は、その欠陥画素は欠陥画素であると判定されない。一方、第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160は、欠陥画素と同レベルのエッジが近傍にある場合であっても、その欠陥画素を欠陥画素であると判定することができる。
Here, as described above, according to the conventional dynamic defect determination method, when an edge having the same level as the defective pixel exists in the vicinity, the defective pixel is not determined to be a defective pixel. On the other hand, the first edge vicinity
具体的には、第1のエッジ近傍欠陥判定部150は、中心画素に対して水平方向または垂直方向に近傍するエッジが存在する場合においても中心画素が欠陥画素であるか否かを判定することができる。また、第2のエッジ近傍欠陥判定部160は、中心画素に対して斜め方向に近傍するエッジが存在する場合においても中心画素が欠陥画素であるか否かを判定することができる。
Specifically, the first edge vicinity
なお、図3に示した例では、欠陥画素判定装置10は第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160の双方を備えているが、第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160のうちの少なくともいずれか一方を備えていればよい。第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160のそれぞれが有する機能の詳細については、後に説明する。
In the example illustrated in FIG. 3, the defective
セレクタ170は、ダイナミック欠陥判定部140、第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160それぞれから供給される判定結果に基づいて、補正値算出部130により算出された各補正値からいずれかの補正値を選択する。ダイナミック欠陥判定部140、第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160それぞれから供給される判定結果とセレクタ170により選択される補正値との関係については、図8を参照しながら後に説明する。
The
セレクタ170によって選択された補正値は、例えば、欠陥画素判定装置10の外部に存在する他の装置に出力され、当該他の装置において当該欠陥画素が当該補正値に補正されてもよい。なお、補正値を選択する必要がない場合などには(例えば、ダイナミック欠陥判定部140が存在せず、第2のエッジ近傍欠陥判定部160のみ存在する場合などには)、欠陥画素判定装置10はセレクタ170を備えなくてもよい。
For example, the correction value selected by the
また、図3に示したように、補正値算出部130、ダイナミック欠陥判定部140、第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160を並列に設けることで、ラインメモリ120を重複して設ける必要がなく、ラインメモリ120のメモリサイズを小さく抑えることが可能となる。
In addition, as shown in FIG. 3, the correction
以上、本発明の実施形態に係る欠陥画素判定装置10の機能構成について説明した。
The functional configuration of the defective
続いて、第1のエッジ近傍欠陥判定部150の詳細について説明する。図4は、第1のエッジ近傍欠陥判定部150の詳細構成を示す図である。また、図5は、第1のエッジ近傍欠陥判定部150が有する機能の詳細を示す図である。図4に示すように、第1のエッジ近傍欠陥判定部150は、第1の差分算出部1511、第2の差分算出部1512および判定部152を備える。
Next, details of the first edge vicinity
以下の説明においては、図5に示したように、中心画素を中心画素Pcと示し、中心画素Pcと同色レイヤであって中心画素Pcに隣接する画素群を第1の画素群(画素P1、画素P2、画素P4、画素P6および画素P7)と第2の画素群(画素P3、画素P5および画素P8)とに分ける。 In the following description, as shown in FIG. 5, the central pixel is indicated as the central pixel Pc, and the pixel group that is the same color layer as the central pixel Pc and is adjacent to the central pixel Pc is defined as the first pixel group (pixels P1,. The pixel P2, the pixel P4, the pixel P6, and the pixel P7) are divided into the second pixel group (the pixel P3, the pixel P5, and the pixel P8).
また、図5の(数式1)に示されるように、第1の画素群の画素値のうち第1の最大値を、Pmax=MAX(P1,P2,P4,P6,P7)と示し、図5の(数式2)に示されるように、第1の画素群の画素値のうち第1の最小値を、Pmin=MIN(P1,P2,P4,P6,P7)と示す。したがって、第1の最大値と第1の最小値との第1の差分値は、Pmax−Pminと示される。 Further, as shown in (Formula 1) of FIG. 5, the first maximum value among the pixel values of the first pixel group is expressed as Pmax = MAX (P1, P2, P4, P6, P7), and FIG. As shown in (Formula 2) of 5, the first minimum value among the pixel values of the first pixel group is represented as Pmin = MIN (P1, P2, P4, P6, P7). Therefore, the first difference value between the first maximum value and the first minimum value is represented as Pmax−Pmin.
また、図5の(条件3)に示されるように、第2の画素群の画素値のうち第2の最大値を、MAX(P3,P5,P8)と示し、第2の画素群の画素値のうち第2の最小値を、MIN(P3,P5,P8)と示す。また、図5の(条件3)に示されるように、第2の最大値と第2の最小値との第2の差分値を、MAX(P3,P5,P8)−MIN(P3,P5,P8)と示す。 Further, as shown in (Condition 3) in FIG. 5, the second maximum value among the pixel values of the second pixel group is denoted as MAX (P3, P5, P8), and the pixels of the second pixel group The second minimum value among the values is indicated as MIN (P3, P5, P8). Further, as shown in (Condition 3) of FIG. 5, the second difference value between the second maximum value and the second minimum value is expressed as MAX (P3, P5, P8) −MIN (P3, P5, P8).
ここで、第1の差分算出部1511は、Pmax−Pminを算出する。また、第2の差分算出部1512は、MAX(P3,P5,P8)−MIN(P3,P5,P8)を算出する。判定部152は、PmaxまたはPminと中心画素Pcの画素値との関係とPmax−PminとMAX(P3,P5,P8)−MIN(P3,P5,P8)とに基づいて、中心画素Pcが欠陥画素であるか否かを判定する。
Here, the first
このような欠陥画素の判定手法によれば、中心画素Pcに対して水平方向または垂直方向に近傍するエッジが存在する場合においても中心画素Pcが欠陥画素であるか否かを判定することができる。当該判定手法は、中心画素Pcが白欠陥(Hot Pixel)の場合に対しても適用可能であり、中心画素Pcが黒欠陥(Cold Pixel)の場合に対しても適用可能である。 According to such a defective pixel determination method, it is possible to determine whether or not the center pixel Pc is a defective pixel even when there is an edge in the horizontal direction or the vertical direction with respect to the center pixel Pc. . The determination method can be applied to a case where the center pixel Pc has a white defect (Hot Pixel), and can also be applied to a case where the center pixel Pc has a black defect (Cold Pixel).
なお、図5には、中心画素Pcの右側に垂直方向のエッジが存在する場合を示しているが、中心画素Pcの左側に垂直方向のエッジが存在する場合、中心画素Pcの上側に水平方向のエッジが存在する場合および中心画素Pcの下側に水平方向のエッジが存在する場合に対しても当該手法を適用することができる。 FIG. 5 shows a case where a vertical edge is present on the right side of the center pixel Pc. However, when a vertical edge is present on the left side of the center pixel Pc, the horizontal direction is located above the center pixel Pc. This method can also be applied to the case where there is an edge and the case where there is a horizontal edge below the center pixel Pc.
当該手法をかかる場合に適用するには、中心画素Pcが欠陥画素であるか否かの判定が、中心画素Pcを基準として第1の画素群(画素P1、画素P2、画素P4、画素P6および画素P7)および第2の画素群(画素P3、画素P5および画素P8)を所定角度回転して得られる複数パターンに対してなされる。例えば、所定角度が90度である場合には、90度ずつ回転して得られる4つのパターンに対して判定がなされればよい。このように、当該手法を複数のパターンに対して適用することにより、より高精度に欠陥判定を行うことが可能となる。 In order to apply this method, the determination as to whether or not the center pixel Pc is a defective pixel is performed based on the first pixel group (pixel P1, pixel P2, pixel P4, pixel P6, and pixel P6) based on the center pixel Pc. This is performed for a plurality of patterns obtained by rotating the pixel P7) and the second pixel group (pixel P3, pixel P5, and pixel P8) by a predetermined angle. For example, when the predetermined angle is 90 degrees, it is only necessary to determine four patterns obtained by rotating 90 degrees. Thus, by applying the method to a plurality of patterns, it becomes possible to perform defect determination with higher accuracy.
当該複数パターンに対する判定がなされる場合には、判定部152は、当該複数パターンのうちの少なくともいずれか1つのパターンにおいて中心画素Pcが欠陥画素であると判定した場合には、中心画素Pcが欠陥画素であると判定すればよい。また、判定部152は、当該複数パターンの全てにおいて中心画素Pcが欠陥画素ではないと判定した場合には、中心画素Pcが欠陥画素ではないと判定すればよい。
When the determination with respect to the plurality of patterns is made, the
中心画素Pcを基準として第1の画素群および第2の画素群を所定角度回転して得られる複数パターンに対する判定がなされる場合には、第1の画素群および第2の画素群が所定角度回転された上で、上記の手法における判定と同一の判定がなされてもよい。あるいは、第1の画素群および第2の画素群自体は回転させずに、上記の手法における判定と異なる判定(例えば、中心画素Pcを基準として対象の画素自体を所定角度回転させた後の画素とした上での判定)がなされてもよい。 When determination is made for a plurality of patterns obtained by rotating the first pixel group and the second pixel group by a predetermined angle with respect to the center pixel Pc, the first pixel group and the second pixel group are at a predetermined angle. After the rotation, the same determination as in the above method may be performed. Alternatively, the first pixel group and the second pixel group itself are not rotated, but are different from the determination in the above method (for example, a pixel after the target pixel itself is rotated by a predetermined angle with the central pixel Pc as a reference) May be made).
どのような場合に判定部152が中心画素Pcを欠陥画素であると判定するかについては特に限定されないが、例えば、判定部152は、PmaxまたはPminと中心画素Pcの画素値との関係が第1の条件を満たし、かつ、Pmax−Pminが第2の条件を満たし、かつ、MAX(P3,P5,P8)−MIN(P3,P5,P8)が第3の条件を満たす場合に、中心画素Pcが欠陥画素であると判定してもよい。
There are no particular restrictions on when the
例えば、図5の(数式3)および(条件1)に示されるように、第1の条件は、中心画素Pcの画素値がPmaxよりも大きい場合には、中心画素Pcの画素値からPmaxを減じた値(Pc−Pmax)が第1の閾値(TH1)よりも大きいという条件であってもよい。また、図5の(数式3)および(条件1)に示されるように、第1の条件は、中心画素Pcの画素値がPminよりも小さい場合には、Pminから中心画素Pcの画素値を減じた値(Pmin−Pc)が第1の閾値(TH1)よりも大きいという条件であってもよい。 For example, as shown in (Formula 3) and (Condition 1) in FIG. 5, when the pixel value of the central pixel Pc is larger than Pmax, the first condition is that Pmax is calculated from the pixel value of the central pixel Pc. The condition may be that the reduced value (Pc−Pmax) is larger than the first threshold (TH1). As shown in (Formula 3) and (Condition 1) in FIG. 5, the first condition is that when the pixel value of the central pixel Pc is smaller than Pmin, the pixel value of the central pixel Pc is changed from Pmin. There may be a condition that the reduced value (Pmin−Pc) is larger than the first threshold (TH1).
また、例えば、図5の(条件2)に示されるように、第2の条件は、Pmax−Pminが第2の閾値(TH2)よりも小さいという条件であってもよい。また、例えば、図5の(条件3)に示されるように、第3の条件は、MAX(P3,P5,P8)−MIN(P3,P5,P8)が第3の閾値(TH3)よりも小さいという条件であってもよい。 For example, as shown in (Condition 2) of FIG. 5, the second condition may be a condition that Pmax−Pmin is smaller than the second threshold (TH2). For example, as shown in (Condition 3) of FIG. 5, the third condition is that MAX (P3, P5, P8) −MIN (P3, P5, P8) is more than the third threshold (TH3). The condition of being small may be sufficient.
なお、例えば、判定部152は、PmaxまたはPminと中心画素Pcの画素値との関係が上記した第1の条件を満たさない場合、または、Pmax−Pminが上記した第2の条件を満たさない場合、または、MAX(P3,P5,P8)−MIN(P3,P5,P8)が上記した第3の条件を満たさない場合には、中心画素Pcが欠陥画素ではないと判定してもよい。
Note that, for example, the
以上、本発明の実施形態に係る欠陥画素判定装置10が有する第1のエッジ近傍欠陥判定部150の詳細について説明した。
The details of the first edge vicinity
続いて、第2のエッジ近傍欠陥判定部160の詳細について説明する。図6は、第2のエッジ近傍欠陥判定部160の詳細構成を示す図である。また、図7は、第2のエッジ近傍欠陥判定部160が有する機能の詳細を示す図である。図6に示すように、第2のエッジ近傍欠陥判定部160は、差分算出部161および判定部162を備える。
Next, details of the second edge vicinity
以下の説明においては、図7に示したように、中心画素を中心画素Pcと示し、中心画素Pcと同色レイヤであって中心画素Pcに隣接する画素群から四隅のいずれかの画素(画素P1)を除外した除去後の画素群(画素P2、画素P3、画素P4、画素P5、画素P6、画素P7および画素P8)を想定する。 In the following description, as shown in FIG. 7, the central pixel is indicated as the central pixel Pc, and the pixel of the four corners from the pixel group adjacent to the central pixel Pc is the same color layer as the central pixel Pc (pixel P1). ) Is removed and a pixel group after removal (pixel P2, pixel P3, pixel P4, pixel P5, pixel P6, pixel P7, and pixel P8) is assumed.
また、図7の(数式4)に示されるように、除去後の画素群の画素値のうち最大値を、Pmax=MAX(P2,P3,P4,P5,P6,P7,P8)と示し、図7の(数式5)に示されるように、除去後の画素群の画素値のうち最小値を、Pmin=MIN(P2,P3,P4,P5,P6,P7,P8)と示す。したがって、最大値と最小値との差分値は、Pmax−Pminと示される。 Further, as shown in (Formula 4) of FIG. 7, the maximum value among the pixel values of the pixel group after the removal is expressed as Pmax = MAX (P2, P3, P4, P5, P6, P7, P8), As shown in (Formula 5) of FIG. 7, the minimum value among the pixel values of the pixel group after the removal is represented as Pmin = MIN (P2, P3, P4, P5, P6, P7, P8). Therefore, the difference value between the maximum value and the minimum value is expressed as Pmax−Pmin.
ここで、差分算出部161は、Pmax−Pminを算出する。また、判定部162は、PmaxまたはPminと中心画素Pcの画素値との関係とPmax−Pminとに基づいて、中心画素Pcが欠陥画素であるか否かを判定する。
Here, the
このような欠陥画素の判定手法によれば、中心画素Pcに対して斜め方向に近傍するエッジが存在する場合においても中心画素Pcが欠陥画素であるか否かを判定することができる。当該判定手法は、中心画素Pcが白欠陥(Hot Pixel)の場合に対しても適用可能であり、中心画素Pcが黒欠陥(Cold Pixel)の場合に対しても適用可能である。 According to such a defective pixel determination method, it is possible to determine whether or not the center pixel Pc is a defective pixel even when there is an edge in the oblique direction with respect to the center pixel Pc. The determination method can be applied to a case where the center pixel Pc has a white defect (Hot Pixel), and can also be applied to a case where the center pixel Pc has a black defect (Cold Pixel).
なお、図7には、中心画素Pcの左上側に斜め方向のエッジが存在する場合を示しているが、中心画素Pcの右上側に斜め方向のエッジが存在する場合、中心画素Pcの左下側に斜め方向のエッジが存在する場合および中心画素Pcの右下側に斜め方向のエッジが存在する場合に対しても当該手法を適用することができる。 FIG. 7 shows a case where an oblique edge exists on the upper left side of the center pixel Pc, but when an oblique edge exists on the upper right side of the center pixel Pc, the lower left side of the center pixel Pc. This method can also be applied to the case where there is an oblique edge and the case where there is an oblique edge on the lower right side of the center pixel Pc.
当該手法をかかる場合に適用するには、中心画素Pcが欠陥画素であるか否かの判定が、中心画素Pcを基準として除去後の画素群(P2,P3,P4,P5,P6,P7,P8)を所定角度回転して得られる複数パターンに対してなされる。例えば、所定角度が90度である場合には、90度ずつ回転して得られる4つのパターンに対して判定がなされればよい。このように、当該手法を複数のパターンに対して適用することにより、より高精度に欠陥判定を行うことが可能となる。 In order to apply the method to this case, the determination as to whether or not the center pixel Pc is a defective pixel is performed by determining whether or not the pixel group (P2, P3, P4, P5, P6, P7, This is performed for a plurality of patterns obtained by rotating P8) by a predetermined angle. For example, when the predetermined angle is 90 degrees, it is only necessary to determine four patterns obtained by rotating 90 degrees. Thus, by applying the method to a plurality of patterns, it becomes possible to perform defect determination with higher accuracy.
当該複数パターンに対する判定がなされる場合には、判定部162は、当該複数パターンのうちの少なくともいずれか1つのパターンにおいて中心画素Pcが欠陥画素であると判定した場合には、中心画素Pcが欠陥画素であると判定すればよい。また、判定部162は、当該複数パターンの全てにおいて中心画素Pcが欠陥画素ではないと判定した場合には、中心画素Pcが欠陥画素ではないと判定すればよい。
When the determination with respect to the plurality of patterns is performed, the
中心画素Pcを基準として除去後の画素群を所定角度回転して得られる複数パターンに対する判定がなされる場合には、除去後の画素群が所定角度回転された上で、上記の手法における判定と同一の判定がなされてもよい。あるいは、除去後の画素群自体は回転させずに、上記の手法における判定と異なる判定(例えば、中心画素Pcを基準として対象の画素自体を所定角度回転させた後の画素とした上での判定)がなされてもよい。 When determination is made for a plurality of patterns obtained by rotating the pixel group after removal by a predetermined angle with respect to the center pixel Pc, the determination in the above method is performed after the pixel group after removal is rotated by a predetermined angle. The same determination may be made. Alternatively, the pixel group itself after removal is not rotated, but is different from the determination in the above method (for example, determination after the target pixel itself is rotated by a predetermined angle with the central pixel Pc as a reference) ) May be made.
どのような場合に判定部162が中心画素Pcを欠陥画素であると判定するかについては特に限定されないが、例えば、判定部162は、PmaxまたはPminと中心画素Pcの画素値との関係が第1の条件を満たし、かつ、Pmax−Pminが第2の条件を満たす場合に、中心画素Pcが欠陥画素であると判定してもよい。
There are no particular restrictions on when the
例えば、図7の(数式3)および(条件1)に示されるように、第1の条件は、中心画素Pcの画素値がPmaxよりも大きい場合には、中心画素Pcの画素値からPmaxを減じた値(Pc−Pmax)が第1の閾値(TH1)よりも大きいという条件であってもよい。また、図7の(数式3)および(条件1)に示されるように、第1の条件は、中心画素Pcの画素値がPminよりも小さい場合には、Pminから中心画素Pcの画素値を減じた値(Pmin−Pc)が第1の閾値(TH1)よりも大きいという条件であってもよい。 For example, as shown in (Formula 3) and (Condition 1) in FIG. 7, when the pixel value of the central pixel Pc is larger than Pmax, the first condition is that Pmax is calculated from the pixel value of the central pixel Pc. The condition may be that the reduced value (Pc−Pmax) is larger than the first threshold (TH1). Further, as shown in (Formula 3) and (Condition 1) in FIG. 7, when the pixel value of the center pixel Pc is smaller than Pmin, the first condition is that the pixel value of the center pixel Pc is changed from Pmin. There may be a condition that the reduced value (Pmin−Pc) is larger than the first threshold (TH1).
また、例えば、図7の(条件2)に示されるように、第2の条件は、Pmax−Pminが第2の閾値(TH2)よりも小さいという条件であってもよい。図5に示した第1の閾値(TH1)と図7に示した第1の閾値(TH1)とは同一であってもよいし、異なっていてもよい。また、図5に示した第2の閾値(TH2)と図7に示した第2の閾値(TH2)とは同一であってもよいし、異なっていてもよい。 For example, as shown in (Condition 2) of FIG. 7, the second condition may be a condition that Pmax−Pmin is smaller than the second threshold (TH2). The first threshold value (TH1) shown in FIG. 5 and the first threshold value (TH1) shown in FIG. 7 may be the same or different. Further, the second threshold value (TH2) shown in FIG. 5 and the second threshold value (TH2) shown in FIG. 7 may be the same or different.
なお、例えば、判定部162は、PmaxまたはPminと中心画素Pcの画素値との関係が上記した第1の条件を満たさない場合、または、Pmax−Pminが上記した第2の条件を満たさない場合には、中心画素Pcが欠陥画素ではないと判定してもよい。
For example, the
以上、本発明の実施形態に係る欠陥画素判定装置10が有する第2のエッジ近傍欠陥判定部160の詳細について説明した。
The details of the second edge vicinity
ここで、上記したように、補正値算出部130による補正値算出の手法については特に限定されない。以下では、補正値算出部130による補正値算出の手法の一例について説明する。図8は、欠陥判定の種類と補正値との関係の一例を示す図である。なお、当然のことながら、補正値算出部130による補正値算出の手法は、図8に示した例に限定されない。
Here, as described above, the correction value calculation method by the correction
上記したように、欠陥画素と判定された画素の画素値は、例えば、補正値算出部130により算出された補正値により置き換えられる。図8に示すように、補正値は、ダイナミック欠陥判定部140、第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160のうちのいずれの機能ブロックにより欠陥判定(すなわち、中心画素Pcが欠陥画素であるという判定)がなされたかに応じて異なっていてもよい。
As described above, the pixel value of the pixel determined to be a defective pixel is replaced with the correction value calculated by the correction
例えば、ダイナミック欠陥判定部140により欠陥判定がなされた場合には、中心画素Pcの上下左右4画素(画素P2、画素P4、画素P5および画素P7)の平均値が補正値として使用されてもよい。
For example, when the defect determination is performed by the dynamic
また、第1のエッジ近傍欠陥判定部150により欠陥判定がなされた場合、エッジが中心画素Pcの左または右に存在する場合は、中心画素Pcの上下2画素(画素P2および画素P7)の平均値が補正値として使用されてもよく、エッジが中心画素Pcの上または下に存在する場合は、中心画素Pcの左右2画素(画素P4および画素P5)の平均値が補正値として使用されてもよい。
In addition, when the defect determination is performed by the first edge vicinity
第1のエッジ近傍欠陥判定部150により欠陥判定がなされ、かつ、エッジが中心画素Pcの左または右に存在するのは、エッジの方向が水平方向の場合である。一方、第1のエッジ近傍欠陥判定部150により欠陥判定がなされ、かつ、エッジが中心画素Pcの上または下に存在するのは、エッジの方向が垂直方向である場合である。そこで、エッジの方向が水平方向および垂直方向のいずれであるのかを判定する機能ブロックを設け、セレクタ170は、かかる機能ブロックにより判定されたエッジの方向からエッジが中心画素Pcの左または右に存在するのか上または下に存在するのかを判定してもよい。
Defect determination is performed by the first edge vicinity
また、第2のエッジ近傍欠陥判定部160により欠陥判定がなされた場合、エッジが中心画素Pcの左上、右上、左下および右下のいずれかに存在する場合、中心画素Pcの上下左右4画素(画素P2、画素P4、画素P5および画素P7)の平均値が補正値として使用されてもよい。
In addition, when the defect determination is performed by the second edge vicinity
図8に示した例においては、使用される補正値は、上下2画素平均、左右2画素平均、上下左右4画素平均の3種類のいずれかである。この場合、補正値算出部130はこの3種類の補正値を算出してセレクタ170に供給し、セレクタ170は、ダイナミック欠陥判定部140、第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160それぞれによる判定結果に基づいて、補正値を選択して他の装置に出力する。セレクタ170は、いずれの欠陥判定もなされなかった場合は、入力画素値をそのまま出力すればよい。
In the example shown in FIG. 8, the correction value used is any one of three types: an upper / lower two-pixel average, a left / right two-pixel average, and an upper / lower / left-right four-pixel average. In this case, the correction
セレクタ170には、ダイナミック欠陥判定部140、第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160それぞれによる判定結果が同時に供給され得るため、セレクタ170が複数の欠陥判定を検出する場合もあり得る。そのような場合を想定し、判定結果を参照する順序を予め決めておき、セレクタ170は、最初に検出した欠陥判定に対応する補正値を選択してもよい。この判定結果を参照する順序は、例えば、図8に示したように、ダイナミック欠陥判定、エッジ近傍欠陥判定1(第1のエッジ近傍欠陥判定部150による判定結果)およびエッジ近傍欠陥判定2(第2のエッジ近傍欠陥判定部160による判定結果)の順であってもよいが、特に限定されない。
Since the determination results from the dynamic
以上、補正値算出部130による補正値算出の手法の一例について説明した。
Heretofore, an example of the correction value calculation method by the correction
本発明の実施形態によれば、中心画素と同レベルの値を持つエッジの近傍に存在する欠陥画素も欠陥画素であると判定し、補正および除去を行うことができる。かかる補正および除去は、従来のダイナミック欠陥補正では除去することが不可能であった。予備実験の結果では、従来のダイナミック欠陥補正と本発明の実施形態におけるエッジ近傍欠陥補正とを組み合わせることで99%以上の高い欠陥除去率を達成できており、また重要な画像情報を欠陥と誤判定して補正してしまうことで画像にダメージを与えてしまう副作用も非常に小さく抑えられている。 According to the embodiment of the present invention, it is possible to determine that a defective pixel near the edge having the same level value as the central pixel is also a defective pixel, and perform correction and removal. Such correction and removal could not be removed by conventional dynamic defect correction. As a result of the preliminary experiment, a high defect removal rate of 99% or more can be achieved by combining the conventional dynamic defect correction and the edge vicinity defect correction in the embodiment of the present invention, and important image information is mistaken as a defect. The side effect of damaging the image by determining and correcting it is also very small.
第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160それぞれは、大小比較、加減算およびシフト演算のみで構成され得るため、乗算および割算を必要としない。演算遅延なども非常に小さく抑えられ、回路規模増加はごく僅かである。さらに、第1のエッジ近傍欠陥判定部150および第2のエッジ近傍欠陥判定部160は、ダイナミック欠陥判定部140において使用する所定ライン(例えば、5ライン)の信号を共用して使えるため、ラインメモリの追加も必要ない。以上から、本発明の実施形態は実装が容易であるという利点を有する。
Since each of the first edge vicinity
以上、添付図面を参照しながら本発明の好適な実施形態について詳細に説明したが、本発明はかかる例に限定されない。本発明の属する技術の分野における通常の知識を有する者であれば、特許請求の範囲に記載された技術的思想の範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、これらについても、当然に本発明の技術的範囲に属するものと了解される。 The preferred embodiments of the present invention have been described in detail above with reference to the accompanying drawings, but the present invention is not limited to such examples. It is obvious that a person having ordinary knowledge in the technical field to which the present invention pertains can come up with various changes or modifications within the scope of the technical idea described in the claims. Of course, it is understood that these also belong to the technical scope of the present invention.
例えば、補正値としては、図8に示した例に記載の補正値を用いる必要はなく、補正値算出に使用される画素の範囲は、5×5よりも大きなカーネルサイズにまで広げたり、中心画素Pcとは異色の画素の画素値を補正値の算出に使用したりしてもよい。本発明の実施形態の主眼は、エッジ近傍の同レベル欠陥の判定方法を提供することにある。 For example, the correction value described in the example shown in FIG. 8 does not need to be used as the correction value, and the range of pixels used for calculating the correction value is expanded to a kernel size larger than 5 × 5, The pixel value of a pixel having a different color from the pixel Pc may be used for calculating the correction value. The main point of the embodiment of the present invention is to provide a method for determining a defect at the same level near the edge.
また、本発明の実施形態においては、4原色センサを用いる場合を主に説明したが、2×2画素の中に各色1画素ずつが存在するという点では、3原色BayerセンサのR,B信号も同じであり、これに本発明の実施形態を適用しようとしても技術的な障壁はない。しかし、3原色Bayerセンサでは、2×2画素中に2画素存在するG信号を使ってデモザイキングを行うため、最終画像の解像感が高く、欠陥補正の副作用としての解像度低下がないか検討するのがよい。また、G信号を参照して欠陥の判定精度も上げられる可能性があることに留意すべきである。 In the embodiment of the present invention, the case where the four primary color sensors are used has been mainly described. However, the R, B signals of the three primary color Bayer sensors are present in that one pixel of each color exists in 2 × 2 pixels. This is also the same, and there is no technical barrier to applying the embodiment of the present invention to this. However, in the three primary color Bayer sensor, since the demosaicing is performed using the G signal that is present in 2 × 2 pixels, the resolution of the final image is high and the resolution is not affected as a side effect of defect correction. It is good to do. It should also be noted that the defect determination accuracy may be increased by referring to the G signal.
10 欠陥画素判定装置
110 センサ
120 ラインメモリ
130 補正値算出部
140 ダイナミック欠陥判定部
150 第1のエッジ近傍欠陥判定部
1511 第1の差分算出部
1512 第2の差分算出部
152 判定部
160 第2のエッジ近傍欠陥判定部
161 差分算出部
162 判定部
170 セレクタ
DESCRIPTION OF
Claims (8)
前記中心画素と同色レイヤであって前記中心画素に隣接する第2の画素群の画素値のうち第2の最大値と第2の最小値との第2の差分値を算出する第2の差分算出部と、
前記第1の最大値または前記第1の最小値と前記中心画素の画素値との関係と前記第1の差分値と前記第2の差分値とに基づいて、前記中心画素が欠陥画素であるか否かを判定する判定部と、
を備える、欠陥画素判定装置。 A first difference calculation that calculates a first difference value between a first maximum value and a first minimum value among pixel values of a first pixel group that is the same color layer as the center pixel and is adjacent to the center pixel. And
A second difference for calculating a second difference value between a second maximum value and a second minimum value among pixel values of a second pixel group adjacent to the center pixel and having the same color layer as the center pixel. A calculation unit;
The center pixel is a defective pixel based on the relationship between the first maximum value or the first minimum value and the pixel value of the center pixel, and the first difference value and the second difference value. A determination unit for determining whether or not
A defective pixel determination device comprising:
請求項1に記載の欠陥画素判定装置。 In the determination unit, the relationship between the first maximum value or the first minimum value and the pixel value of the central pixel satisfies a first condition, and the first difference value satisfies a second condition. And when the second difference value satisfies the third condition, the central pixel is determined to be a defective pixel.
The defective pixel determination apparatus according to claim 1.
請求項2に記載の欠陥画素判定装置。 When the pixel value of the central pixel is larger than the first maximum value, the first condition is that a value obtained by subtracting the first maximum value from the pixel value of the central pixel is less than a first threshold value. Is also a condition that
The defective pixel determination apparatus according to claim 2.
請求項2に記載の欠陥画素判定装置。 When the pixel value of the central pixel is smaller than the first minimum value, the first condition is that a value obtained by subtracting the pixel value of the central pixel from the first minimum value is less than a first threshold value. Is also a condition that
The defective pixel determination apparatus according to claim 2.
請求項2に記載の欠陥画素判定装置。 The second condition is a condition that the first difference value is smaller than a second threshold value.
The defective pixel determination apparatus according to claim 2.
請求項2に記載の欠陥画素判定装置。 The third condition is a condition that the second difference value is smaller than a third threshold value.
The defective pixel determination apparatus according to claim 2.
請求項1に記載の欠陥画素判定装置。 Whether or not the central pixel is a defective pixel is determined for a plurality of patterns obtained by rotating the first pixel group and the second pixel group by a predetermined angle with respect to the central pixel.
The defective pixel determination apparatus according to claim 1.
前記中心画素と同色レイヤであって前記中心画素に隣接する第2の画素群の画素値のうち第2の最大値と第2の最小値との第2の差分値を算出するステップと、
前記第1の最大値または前記第1の最小値と前記中心画素の画素値との関係と前記第1の差分値と前記第2の差分値とに基づいて、前記中心画素が欠陥画素であるか否かを判定するステップと、
を含む、欠陥画素判定方法。
Calculating a first difference value between a first maximum value and a first minimum value among pixel values of a first pixel group adjacent to the center pixel and having the same color layer as the center pixel;
Calculating a second difference value between a second maximum value and a second minimum value among pixel values of a second pixel group adjacent to the center pixel in the same color layer as the center pixel;
The center pixel is a defective pixel based on the relationship between the first maximum value or the first minimum value and the pixel value of the center pixel, and the first difference value and the second difference value. Determining whether or not,
A defective pixel determination method.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012188468A JP6091807B2 (en) | 2012-08-29 | 2012-08-29 | Defective pixel determination device and defective pixel determination method |
KR1020130059927A KR101945408B1 (en) | 2012-08-29 | 2013-05-27 | Apparatus and method for determining defect pixel |
US14/010,978 US9258555B2 (en) | 2012-08-29 | 2013-08-27 | Apparatus and method for determining defect pixel |
CN201310384874.7A CN103685988B (en) | 2012-08-29 | 2013-08-29 | For determining the apparatus and method of defect pixel |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012188468A JP6091807B2 (en) | 2012-08-29 | 2012-08-29 | Defective pixel determination device and defective pixel determination method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014049780A true JP2014049780A (en) | 2014-03-17 |
JP6091807B2 JP6091807B2 (en) | 2017-03-08 |
Family
ID=50609077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012188468A Active JP6091807B2 (en) | 2012-08-29 | 2012-08-29 | Defective pixel determination device and defective pixel determination method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6091807B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190378249A1 (en) * | 2018-06-06 | 2019-12-12 | Adobe Inc. | Recolored collage generation based on color hue distances |
KR20220081464A (en) * | 2020-12-09 | 2022-06-16 | 에스케이하이닉스 주식회사 | Image sensing device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002223391A (en) * | 2001-01-24 | 2002-08-09 | Sharp Corp | Automatic fault detecting and correcting device for solid-state imaging element and image pickup unit using the same |
JP2002330354A (en) * | 2001-05-02 | 2002-11-15 | Matsushita Electric Ind Co Ltd | Device, method and program for detecting and correcting defective pixel, and video signal processor |
JP2006148351A (en) * | 2004-11-17 | 2006-06-08 | Olympus Corp | Apparatus for correcting defective pixel |
JP2008113163A (en) * | 2006-10-30 | 2008-05-15 | Fujitsu Ltd | Defective pixel correction circuit, image processing system using the same, and defective pixel correction method |
-
2012
- 2012-08-29 JP JP2012188468A patent/JP6091807B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002223391A (en) * | 2001-01-24 | 2002-08-09 | Sharp Corp | Automatic fault detecting and correcting device for solid-state imaging element and image pickup unit using the same |
JP2002330354A (en) * | 2001-05-02 | 2002-11-15 | Matsushita Electric Ind Co Ltd | Device, method and program for detecting and correcting defective pixel, and video signal processor |
JP2006148351A (en) * | 2004-11-17 | 2006-06-08 | Olympus Corp | Apparatus for correcting defective pixel |
JP2008113163A (en) * | 2006-10-30 | 2008-05-15 | Fujitsu Ltd | Defective pixel correction circuit, image processing system using the same, and defective pixel correction method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190378249A1 (en) * | 2018-06-06 | 2019-12-12 | Adobe Inc. | Recolored collage generation based on color hue distances |
US10796416B2 (en) * | 2018-06-06 | 2020-10-06 | Adobe Inc. | Recolored collage generation based on color hue distances |
KR20220081464A (en) * | 2020-12-09 | 2022-06-16 | 에스케이하이닉스 주식회사 | Image sensing device |
KR102604109B1 (en) | 2020-12-09 | 2023-11-21 | 에스케이하이닉스 주식회사 | Image sensing device |
Also Published As
Publication number | Publication date |
---|---|
JP6091807B2 (en) | 2017-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2527198C2 (en) | Image processing device and image processing device control method | |
JP5631325B2 (en) | Defect detection method for imaging apparatus and imaging apparatus | |
JP5060535B2 (en) | Image processing device | |
US8837852B2 (en) | Apparatus and method for removing defective pixels | |
TWI542217B (en) | Pixel value calibration device and method | |
JP6046927B2 (en) | Image processing apparatus and control method thereof | |
WO2016031597A1 (en) | Image processing device, image processing method, and image processing system | |
JP2016504882A (en) | Method and device for creating an improved color image using a sensor having a color filter | |
US9124832B2 (en) | Dynamic, local edge preserving defect pixel correction for image sensors | |
US8385642B2 (en) | Method for removing color fringe in digital image | |
US20160373664A1 (en) | Methods And Apparatus of Processing Image And Additional Information From Image Sensor | |
JP2007315967A (en) | Defect detection apparatus, defect detection method, defect detection program, and computer-readable recording medium stored with the progtram | |
KR101945408B1 (en) | Apparatus and method for determining defect pixel | |
JP6091807B2 (en) | Defective pixel determination device and defective pixel determination method | |
US8767101B2 (en) | Image processing apparatus and system | |
CN103685988B (en) | For determining the apparatus and method of defect pixel | |
US9739914B2 (en) | Color image sensing | |
JP6091808B2 (en) | Defective pixel determination device and defective pixel determination method | |
JP6063728B2 (en) | Defective pixel detection device, defective pixel detection method, and program | |
JP2012191595A (en) | Imaging apparatus | |
JP2008148115A (en) | Image defect correction system of imaging device using direction detection | |
JP5846100B2 (en) | Display device defect inspection method | |
JP2013243486A (en) | Image data inspection device and image data inspection method | |
JP5957106B2 (en) | Image processing apparatus, image processing apparatus control method, and program | |
KR100762586B1 (en) | Apparatus and Method for reverting faulty pixel |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150708 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160823 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160906 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20161130 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20170110 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20170208 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6091807 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R371 | Transfer withdrawn |
Free format text: JAPANESE INTERMEDIATE CODE: R371 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |