JP2008131158A - Defective pixel detecting device, electronic apparatus, and defective pixel detecting program - Google Patents

Defective pixel detecting device, electronic apparatus, and defective pixel detecting program Download PDF

Info

Publication number
JP2008131158A
JP2008131158A JP2006311536A JP2006311536A JP2008131158A JP 2008131158 A JP2008131158 A JP 2008131158A JP 2006311536 A JP2006311536 A JP 2006311536A JP 2006311536 A JP2006311536 A JP 2006311536A JP 2008131158 A JP2008131158 A JP 2008131158A
Authority
JP
Japan
Prior art keywords
pixel
defective
component
target pixel
target
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
JP2006311536A
Other languages
Japanese (ja)
Inventor
Akito Honda
章人 本田
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.)
Rohm Co Ltd
Original Assignee
Rohm 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 Rohm Co Ltd filed Critical Rohm Co Ltd
Priority to JP2006311536A priority Critical patent/JP2008131158A/en
Publication of JP2008131158A publication Critical patent/JP2008131158A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Color Television Image Signal Generators (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a defective pixel detecting device capable of detecting a defective pixel even when a pixel of interest is a red component pixel or blue component pixel and the pixel of interest is present on the border of an image. <P>SOLUTION: The defective pixel detecting device includes: a first decision section which decides whether the pixel of interest is a defective pixel on the basis of pixel data of red (blue) color component pixel nearby the pixel of interest when the pixel of interest of image data of a Bayer array is the red (blue) color component pixel; a second decision section which decides whether the pixel of interest is present on the density border of a component of the same color with the pixel of interest, and the density border of a component of the same color with the pixel of interest and the density border of a green component are correlative; and a defective pixel detection section which detects the pixel of interest as a defective pixel when the first decision section does not make a negative decision or when the second decision section does not make a negative decision. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、ベイヤー配列の画像データの欠陥画素を検出する欠陥画素検出装置及びそれを備える電子機器並びにベイヤー配列の画像データの欠陥画素を検出するようにコンピュータを機能させるための欠陥画素検出プログラムに関するものである。   The present invention relates to a defective pixel detection apparatus that detects defective pixels in Bayer array image data, an electronic apparatus including the defective pixel detection apparatus, and a defective pixel detection program for causing a computer to function to detect defective pixels in Bayer array image data. Is.

ベイヤー配列の画像データの欠陥画素を検出する欠陥画素検出方法に関する従来技術の一例を以下に説明する。注目画素が赤色成分画素で有る場合、図3に示す注目画素R33を中心とする5×5画素の画素ブロックを用いて欠陥画素検出を行う。注目画素R33の信号レベルが注目画素R33の最も近くに存在する四つの赤色成分画素R31,R53,R35,R13の信号レベル全てに対して極端に高い場合又は注目画素R33の最も近くに存在する四つの赤色成分画素R31,R53,R35,R13の信号レベル全てに対して極端に低い場合に、注目画素R33は欠陥画素として検出される。
特開2005−123946号公報
An example of a conventional technique related to a defective pixel detection method for detecting defective pixels in Bayer array image data will be described below. If the target pixel is a red component pixel, defective pixel detection is performed using a 5 × 5 pixel block centered on the target pixel R33 shown in FIG. When the signal level of the target pixel R33 is extremely high with respect to all the signal levels of the four red component pixels R31, R53, R35, and R13 that are present closest to the target pixel R33, or four that are closest to the target pixel R33. When the signal level of all the red component pixels R31, R53, R35, and R13 is extremely low, the target pixel R33 is detected as a defective pixel.
JP 2005-123946 A

しかしながら、上記欠陥画素検出方法では、図4のように注目画素R33が画像の境界(色及び/又は輝度の境界)上にあって、画素R13の信号レベルと画素R31,R53,R35の信号レベルとの差が大きい場合、注目画素R33の信号レベルの値にかかわらず注目画素R33は欠陥画素ではないという判定がなされるため、画像の境界上の赤色成分画素が欠陥画素であってもそれを検出することができない。画像の境界が縦方向又は横方向にあり、その境界上に欠陥画素が存在する場合、その欠陥画素は目立つ傷となるため、上記のような検出漏れを防止する必要がある。   However, in the above defective pixel detection method, as shown in FIG. 4, the target pixel R33 is on the boundary of the image (color and / or luminance boundary), and the signal level of the pixel R13 and the signal level of the pixels R31, R53, and R35. If there is a large difference, the determination is made that the target pixel R33 is not a defective pixel regardless of the value of the signal level of the target pixel R33. It cannot be detected. When the boundary of the image is in the vertical direction or the horizontal direction and a defective pixel is present on the boundary, the defective pixel becomes a conspicuous scratch, and thus it is necessary to prevent the detection omission as described above.

注目画素が青色成分画素で有る場合も同様の方法によって欠陥画素を検出するため、同様の問題が生じる。   Even when the target pixel is a blue component pixel, the same problem occurs because a defective pixel is detected by the same method.

また、ベイヤー配列の画像データの欠陥画素を検出する欠陥画素検出方法に関する従来技術の他の例として、特許文献1に開示されている欠陥画素検出方法がある。特許文献1に開示されている欠陥画素検出方法は、注目画素と同色成分の周辺画素の信号レベルの分散値を用いることで、欠陥画素検出の誤検出を少なくしているが、注目画素が赤色成分画素又は青色成分画素でありその注目画素が画像の境界上にある場合においては、上記分散値が高い値になるために画像の境界上の注目画素が欠陥画素であってもそれを検出することができないおそれがあった。   Another example of the related art relating to a defective pixel detection method for detecting defective pixels in Bayer array image data is a defective pixel detection method disclosed in Patent Document 1. The defective pixel detection method disclosed in Patent Document 1 uses a variance value of signal levels of peripheral pixels of the same color component as the target pixel to reduce erroneous detection of defective pixels, but the target pixel is red. When the pixel of interest is a component pixel or a blue component pixel and the target pixel is on the boundary of the image, the variance value is high, so that even if the target pixel on the boundary of the image is a defective pixel, it is detected There was a risk of not being able to.

本発明は、上記の状況に鑑み、注目画素が赤色成分画素又は青色成分画素でありその注目画素が画像の境界上にある場合でも欠陥画素の検出が可能である欠陥画素検出装置及びそれを備える電子機器並びに欠陥画素検出プログラムを提供することを目的とする。   In view of the above situation, the present invention includes a defective pixel detection device capable of detecting a defective pixel even when the target pixel is a red component pixel or a blue component pixel and the target pixel is on the boundary of the image, and the same An object is to provide an electronic device and a defective pixel detection program.

上記目的を達成するために、本発明に係る欠陥画素検出装置は、ベイヤー配列の画像データの欠陥画素を検出する欠陥画素検出装置であって、注目画素が赤色成分画素又は青色成分画素である場合に、所定の画素数からなり前記注目画素が含まれる画素ブロックに属する前記注目画素と同色成分の画素の画素データに基づいて前記注目画素が欠陥画素であるか否かを判定する第1判定部と、前記第1判定部によって前記注目画素が欠陥画素でないと判定された場合に、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があるか否かを判定する第2判定部と、前記第1判定部によって前記注目画素が欠陥画素であると判定された場合又は前記第2判定部によって、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があると判定された場合に、前記注目画素を欠陥画素として検出する第1検出部と、前記注目画素が緑色成分画素である場合に欠陥画素を検出する第2検出部とを備える構成としている。   In order to achieve the above object, a defective pixel detection device according to the present invention is a defective pixel detection device that detects defective pixels in Bayer array image data, and the pixel of interest is a red component pixel or a blue component pixel A first determination unit that determines whether the pixel of interest is a defective pixel based on pixel data of a pixel having the same color component as the pixel of interest belonging to a pixel block that includes the pixel of interest and includes a predetermined number of pixels When the first determination unit determines that the target pixel is not a defective pixel, the target pixel is on a density boundary of the same color component as the target pixel, and the density boundary of the same color component as the target pixel is A second determination unit that determines whether or not there is a correlation with the density boundary of the green component, and when the first determination unit determines that the pixel of interest is a defective pixel, or by the second determination unit If the target pixel is on the same color component density boundary as the target pixel and it is determined that there is a correlation between the same color component density boundary and the green component density boundary as the target pixel, the target pixel is defective. The configuration includes a first detection unit that detects a pixel and a second detection unit that detects a defective pixel when the pixel of interest is a green component pixel.

このような構成によると、注目画素が注目画素と同色成分の濃度境界上にあって、注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関がある場合は注目画素を欠陥画素として検出するので、注目画素が赤色成分画素又は青色成分画素でありその注目画素が画像の境界上にある場合でも欠陥画素の検出が可能となる。   According to such a configuration, when the target pixel is on the density boundary of the same color component as the target pixel and there is a correlation between the density boundary of the same color component and the density boundary of the green component, the target pixel is determined as a defective pixel. Since detection is performed, a defective pixel can be detected even when the target pixel is a red component pixel or a blue component pixel and the target pixel is on the boundary of the image.

上記目的を達成するために、本発明に係る欠陥画素検出装置は、ベイヤー配列の画像データの欠陥画素を検出する欠陥画素検出装置であって、注目画素が赤色成分画素又は青色成分画素である場合に、所定の画素数からなり前記注目画素が含まれる画素ブロックに属する前記注目画素と同色成分の画素の画素データに基づいて前記注目画素が欠陥画素であるか否かを判定する第1判定部と、前記第1判定部によって前記注目画素が欠陥画素でないと判定された場合に、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があるか否かを判定する第2判定部と、前記第2判定部によって、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があると判定された場合に、前記画素ブロックに属する前記注目画素と同色成分の画素であって前記濃度境界に対して前記注目画素と同じ側に属する画素の画素データのみに基づいて前記注目画素が欠陥画素であるか否かを判定する第3判定部と、前記第1判定部又は前記第3判定部によって前記注目画素が欠陥画素であると判定された場合に、前記注目画素を欠陥画素として検出する第1検出部と、前記注目画素が緑色成分画素である場合に欠陥画素を検出する第2検出部とを備える構成としている。   In order to achieve the above object, a defective pixel detection device according to the present invention is a defective pixel detection device that detects defective pixels in Bayer array image data, and the pixel of interest is a red component pixel or a blue component pixel A first determination unit that determines whether the pixel of interest is a defective pixel based on pixel data of a pixel having the same color component as the pixel of interest belonging to a pixel block that includes the pixel of interest and includes a predetermined number of pixels When the first determination unit determines that the target pixel is not a defective pixel, the target pixel is on a density boundary of the same color component as the target pixel, and the density boundary of the same color component as the target pixel is A second determination unit that determines whether or not there is a correlation with a density boundary of a green component; and the second determination unit determines that the target pixel is on a density boundary of the same color component as the target pixel, and And the density boundary of the same color component and the density boundary of the green component are determined to be correlated with the target pixel belonging to the pixel block and having the same color component as the target pixel. A third determination unit that determines whether or not the target pixel is a defective pixel based only on pixel data of pixels belonging to the same side, and the target pixel is a defective pixel by the first determination unit or the third determination unit A first detection unit that detects the pixel of interest as a defective pixel and a second detection unit that detects a defective pixel when the pixel of interest is a green component pixel. .

このような構成によると、注目画素が注目画素と同色成分の濃度境界上にあって、注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関がある場合に、画素ブロックに属する注目画素と同色成分の画素であって濃度境界に対して注目画素と同じ側に属する画素の画素データのみに基づいて注目画素が欠陥画素であるか否かを判定するので、注目画素が赤色成分画素又は青色成分画素でありその注目画素が画像の境界上にある場合でも欠陥画素の検出が可能となる。   According to such a configuration, when the target pixel is on the density boundary of the same color component as the target pixel and there is a correlation between the density boundary of the same color component and the density boundary of the green component, the target pixel belonging to the pixel block The pixel of interest is a red component pixel because it is determined whether or not the pixel of interest is a defective pixel based only on pixel data of a pixel having the same color component as the pixel and belonging to the same side as the pixel of interest relative to the density boundary Alternatively, even when the pixel is a blue component and the target pixel is on the boundary of the image, the defective pixel can be detected.

また、上記目的を達成するために、本発明に係る電子機器は、上記いずれかの構成の欠陥画素検出装置と、前記欠陥画素検出装置によって検出された欠陥画素の画素データを補正する補正部とを有する画像処理装置を備える構成としている。本発明に係る電子機器の例としては、カメラ付き携帯電話装置、デジタルスチールカメラ、デジタルビデオカメラ等が挙げられる。   In order to achieve the above object, an electronic apparatus according to the present invention includes a defective pixel detection device having any one of the above configurations, and a correction unit that corrects pixel data of a defective pixel detected by the defective pixel detection device. It is set as the structure provided with the image processing apparatus which has. Examples of the electronic device according to the present invention include a mobile phone device with a camera, a digital still camera, a digital video camera, and the like.

また、上記目的を達成するために、本発明に係る欠陥画素検出プログラムは、ベイヤー配列の画像データの欠陥画素を検出するための欠陥画素検出プログラムであって、コンピュータを、注目画素が赤色成分画素又は青色成分画素である場合に、所定の画素数からなり前記注目画素が含まれる画素ブロックに属する前記注目画素と同色成分の画素の画素データに基づいて前記注目画素が欠陥画素であるか否かを判定する第1判定手段、前記第1判定手段によって前記注目画素が欠陥画素でないと判定された場合に、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があるか否かを判定する第2判定手段、前記第1判定手段によって前記注目画素が欠陥画素であると判定された場合又は前記第2判定手段によって前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があると判定された場合に、前記注目画素を欠陥画素として検出する第1検出手段、及び前記注目画素が緑色成分画素である場合に欠陥画素を検出する第2検出手段として機能させるようにする。   In order to achieve the above object, a defective pixel detection program according to the present invention is a defective pixel detection program for detecting defective pixels in image data of a Bayer array, wherein the target pixel is a red component pixel. Or, in the case of a blue component pixel, whether or not the target pixel is a defective pixel based on pixel data of a pixel having the same color component as the target pixel belonging to the pixel block including the target pixel and having a predetermined number of pixels And when the target pixel is determined not to be a defective pixel by the first determination unit, the target pixel is on a density boundary of the same color component as the target pixel, and the target pixel Second determination means for determining whether or not there is a correlation between the density boundary of the same color component and the density boundary of the green component; and the target pixel is a defective pixel by the first determination means. Or when the target pixel is on the density boundary of the same color component as the target pixel and the density boundary of the same color component and the density boundary of the green component are correlated with the target pixel. In the case where it is determined that the pixel of interest is a defective pixel, it functions as a first detector that detects the defective pixel, and a second detector that detects a defective pixel when the pixel of interest is a green component pixel.

また、上記目的を達成するために、本発明に係る欠陥画素検出プログラムは、ベイヤー配列の画像データの欠陥画素を検出するための欠陥画素検出プログラムであって、コンピュータを、注目画素が赤色成分画素又は青色成分画素である場合に、所定の画素数からなり前記注目画素が含まれる画素ブロックに属する前記注目画素と同色成分の画素の画素データに基づいて前記注目画素が欠陥画素であるか否かを判定する第1判定手段、前記第1判定手段によって前記注目画素が欠陥画素でないと判定された場合に、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があるか否かを判定する第2判定手段、前記第2判定手段によって、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があると判定された場合に、前記画素ブロックに属する前記注目画素と同色成分の画素であって前記濃度境界に対して前記注目画素と同じ側に属する画素の画素データのみに基づいて前記注目画素が欠陥画素であるか否かを判定する第3判定手段、前記第1判定手段又は前記第3判定手段によって前記注目画素が欠陥画素であると判定された場合に、前記注目画素を欠陥画素として検出する第1検出手段、及び前記注目画素が緑色成分画素である場合に欠陥画素を検出する第2検出手段として機能させるようにする。   In order to achieve the above object, a defective pixel detection program according to the present invention is a defective pixel detection program for detecting defective pixels in image data of a Bayer array, wherein the target pixel is a red component pixel. Or, in the case of a blue component pixel, whether or not the target pixel is a defective pixel based on pixel data of a pixel having the same color component as the target pixel belonging to the pixel block including the target pixel and having a predetermined number of pixels And when the target pixel is determined not to be a defective pixel by the first determination unit, the target pixel is on a density boundary of the same color component as the target pixel, and the target pixel The second determination means for determining whether or not there is a correlation between the density boundary of the same color component and the density boundary of the green component, and the second determination means determines that the target pixel is the target image Of the same color component and the density boundary of the same color component as that of the target pixel and the density boundary of the green component are determined to be correlated with each other. Third determination means for determining whether or not the target pixel is a defective pixel based only on pixel data of a pixel belonging to the same side as the target pixel with respect to the density boundary, the first determination unit Alternatively, when the third determination unit determines that the target pixel is a defective pixel, a first detection unit that detects the target pixel as a defective pixel, and a defective pixel when the target pixel is a green component pixel It is made to function as the 2nd detection means to detect.

本発明によると、注目画素が赤色成分画素又は青色成分画素でありその注目画素が画像の境界上にある場合でも欠陥画素の検出が可能である。   According to the present invention, a defective pixel can be detected even when the target pixel is a red component pixel or a blue component pixel and the target pixel is on the boundary of the image.

本発明の実施形態について図面を参照して以下に説明する。本発明に係る電子機器として、ここではカメラ付き携帯電話装置を例に挙げて説明する。   Embodiments of the present invention will be described below with reference to the drawings. Here, a camera-equipped mobile phone device will be described as an example of the electronic apparatus according to the present invention.

本発明に係るカメラ付き携帯電話装置の概略構成例を図1に示す。光学レンズ系1と、ベイヤー配列のカラーフィルタを有するCCD等の固体撮像素子2と、固体撮像素子2から出力されるアナログ信号をデジタル信号に変換するA/D変換部3とによって構成されるカメラモジュール4は、ベイヤー配列のデジタル画像データであるRAW形式の画像データを半導体集積回路装置である画像処理装置5に出力する。   FIG. 1 shows a schematic configuration example of a camera-equipped mobile phone device according to the present invention. A camera configured by an optical lens system 1, a solid-state imaging device 2 such as a CCD having a Bayer color filter, and an A / D conversion unit 3 that converts an analog signal output from the solid-state imaging device 2 into a digital signal. The module 4 outputs RAW format image data, which is digital image data in a Bayer array, to an image processing device 5 which is a semiconductor integrated circuit device.

画像処理装置5においては、カメラモジュール4から出力されたRAW形式の画像データをフレームメモリ6が一時的に保存し、欠陥画素検出装置7がRAW形式の画像データの欠陥画素を検出し、欠陥画素の画素データを欠陥画素の最も近くに存在する画素であって欠陥画素と同色成分の画素の画素データを演算処理して得られるデータに置換する等の補正処理によって補正部8が欠陥画素の画素データを補正し、画像処理部9が欠陥画素の画素データが補正されたRAW形式の画像データに色補間等の各種画像処理を施してRGB画像データを作成する。   In the image processing device 5, the frame memory 6 temporarily stores RAW image data output from the camera module 4, and the defective pixel detection device 7 detects defective pixels in the RAW image data to detect defective pixels. The correction unit 8 detects the pixel of the defective pixel by correction processing such as replacing the pixel data of the pixel having the same color component as that of the defective pixel with data obtained by arithmetic processing. The data is corrected, and the image processing unit 9 creates RGB image data by performing various kinds of image processing such as color interpolation on the RAW image data in which the pixel data of the defective pixel is corrected.

CPU11によってプレビューモードに設定されている場合、画像処理装置5は、画像処理部9によって作成されたRGB画像データを液晶ディスプレイ等の表示装置12に出力する。これにより、カメラモジュール4によって撮像された画像が表示装置12に表示される。また、CPU11によって画像記録が指示されると、画像処理装置5は、画像処理部9によって作成されたRGB画像データをデータ圧縮部10での圧縮処理により圧縮画像データに変換した後、メモリカード等の外部記憶媒体が着脱可能に装着される記憶媒体インターフェース13にその圧縮画像データを出力し、その圧縮画像データを外部記憶媒体に書き込む。これにより、カメラモジュール4によって撮像された画像の圧縮データが外部記憶媒体に記録される。   When the preview mode is set by the CPU 11, the image processing device 5 outputs the RGB image data created by the image processing unit 9 to the display device 12 such as a liquid crystal display. Thereby, the image captured by the camera module 4 is displayed on the display device 12. When image recording is instructed by the CPU 11, the image processing apparatus 5 converts the RGB image data created by the image processing unit 9 into compressed image data by compression processing in the data compression unit 10, and then a memory card or the like. The compressed image data is output to the storage medium interface 13 to which the external storage medium is detachably mounted, and the compressed image data is written to the external storage medium. Thereby, the compressed data of the image captured by the camera module 4 is recorded in the external storage medium.

また、図1に示す本発明に係るカメラ付き携帯電話装置は、アンテナ14と、アンテナ14を介して基地局と送受信する無線部15と、着信を音や振動によって報知する報知部16と、キー入力部17と、音声通話時に操作者が発する音声を入力して電気信号に変換する音声入力部18と、音声通話時に相手方の音声に応じた電気信号を音声に変換して出力する音声出力部19とを備えている。なお、表示装置12は、CPU11の制御によって電話番号等の表示も行う。   In addition, the camera-equipped mobile phone device according to the present invention shown in FIG. 1 includes an antenna 14, a radio unit 15 that transmits and receives to / from a base station via the antenna 14, a notification unit 16 that notifies incoming calls by sound or vibration, and a key. An input unit 17, a voice input unit 18 that inputs voice converted by an operator during a voice call and converts it into an electrical signal, and a voice output unit that converts an electrical signal corresponding to the voice of the other party into voice during voice call and outputs it 19. The display device 12 also displays a telephone number and the like under the control of the CPU 11.

次に、欠陥画素検出装置7の動作について詳細に説明する。注目画素が赤色成分画素で有る場合、欠陥画素検出装置7は、図3に示す注目画素R33を中心とする5×5画素の画素ブロックを用いて図2Aに示すフローチャートの手順に従って欠陥画素検出を行う。   Next, the operation of the defective pixel detection device 7 will be described in detail. When the target pixel is a red component pixel, the defective pixel detection apparatus 7 detects the defective pixel according to the procedure of the flowchart shown in FIG. 2A using a 5 × 5 pixel block centered on the target pixel R33 shown in FIG. Do.

ステップS10において、欠陥画素検出装置7は、5×5画素の画素ブロック内の赤色成分画素を用いた欠陥画素の判定によると、注目画素R33が欠陥画素であるか否かを判定する。かかる判定の一具体例としては、注目画素R33の信号レベルLR33と注目画素R33の最も近くに存在する四つの赤色成分画素R31,R53,R35,R13の信号レベルLR31,LR53,LR35,LR13との各差分Δ1〜Δ4を求め、差分Δ1〜Δ4全てが予め設定された第1の閾値(負の値)より小さければ注目画素R33が欠陥画素(より詳細には白欠陥画素)であると判定し、差分Δ1〜Δ4全てが予め設定された第2の閾値(正の値)より大きければ注目画素R33が欠陥画素(より詳細には黒欠陥画素)であると判定するという手順が挙げられる。なお、差分Δ1〜Δ4は以下の(1)式〜(4)式によって求められる。
Δ1=LR31−LR33 ・・・(1)
Δ2=LR53−LR33 ・・・(2)
Δ3=LR35−LR33 ・・・(3)
Δ4=LR13−LR33 ・・・(4)
In step S10, the defective pixel detection device 7 determines whether or not the target pixel R33 is a defective pixel according to the defective pixel determination using the red component pixel in the 5 × 5 pixel block. As a specific example of such determination, the signal level L R33 of the target pixel R33 and the signal levels L R31 , L R53 , and L R35 of the four red component pixels R31, R53, R35, and R13 that are closest to the target pixel R33. , L R13 and the difference Δ1 to Δ4 are obtained, and if all the differences Δ1 to Δ4 are smaller than a preset first threshold value (negative value), the target pixel R33 is a defective pixel (more specifically, a white defective pixel). And determining that the target pixel R33 is a defective pixel (more specifically, a black defective pixel) if all of the differences Δ1 to Δ4 are greater than a preset second threshold value (positive value). Is mentioned. The differences Δ1 to Δ4 are obtained by the following equations (1) to (4).
Δ1 = L R31 −L R33 (1)
Δ2 = L R53 −L R33 (2)
Δ3 = L R35 -L R33 (3)
Δ4 = L R13 −L R33 (4)

ステップS10において注目画素R33が欠陥画素であると判定された場合(ステップS10のYES)、後述するステップS40に移行する。   When it is determined in step S10 that the target pixel R33 is a defective pixel (YES in step S10), the process proceeds to step S40 described later.

一方、ステップS10において注目画素R33が欠陥画素であると判定されなかった場合(ステップS10のNO)、欠陥画素検出装置7は、注目画素R33が画像の境界上の欠陥画素の可能性が有るか否かを判定する(ステップS20)。具体的には、ステップS20において、欠陥画素検出装置7は、注目画素R33が赤色成分の濃度境界上に有るか否かを判定する。かかる判定の一具体例としては、注目画素R33の最も近くに存在する四つの赤色成分画素R31,R53,R35,R13のうち3つの信号レベルが低く残りの1つの信号レベルが高い場合又は注目画素R33の最も近くに存在する四つの赤色成分画素R31,R53,R35,R13のうち3つの信号レベルが高く残りの1つの信号レベルが低い場合に、注目画素R33が画像の境界上の欠陥画素の可能性が有ると判定する。例えば、赤色成分の濃度境界判別用閾値Rthを予め設定し、上述した差分Δ1〜Δ4のうち3つが閾値Rthより小さく残りの1つが閾値Rthより大きければ、注目画素R33の最も近くに存在する四つの赤色成分画素R31,R53,R35,R13のうち3つの信号レベルが低く残りの1つの信号レベルが高い場合に該当するものとし、上述した差分Δ1〜Δ4のうち3つが閾値Rthより大きく残りの1つが閾値Rthより小さければ、注目画素R33の最も近くに存在する四つの赤色成分画素R31,R53,R35,R13のうち3つの信号レベルが高く残りの1つの信号レベルが低い場合に該当するものとすればよい。   On the other hand, when it is not determined in step S10 that the target pixel R33 is a defective pixel (NO in step S10), the defective pixel detection device 7 determines whether the target pixel R33 may be a defective pixel on the boundary of the image. It is determined whether or not (step S20). Specifically, in step S20, the defective pixel detection device 7 determines whether or not the target pixel R33 is on the density boundary of the red component. As a specific example of such determination, when the signal level of three of the four red component pixels R31, R53, R35, R13 existing closest to the target pixel R33 is low and the remaining one signal level is high, or the target pixel When the signal level of three of the four red component pixels R31, R53, R35, and R13 closest to R33 is high and the remaining one is low, the target pixel R33 is a defective pixel on the boundary of the image. It is determined that there is a possibility. For example, if the threshold value Rth for determining the density boundary of the red component is set in advance and three of the differences Δ1 to Δ4 are smaller than the threshold value Rth and the remaining one is larger than the threshold value Rth, the four closest to the target pixel R33 are present. This corresponds to the case where three of the red component pixels R31, R53, R35, and R13 are low and the remaining one is high, and three of the differences Δ1 to Δ4 are larger than the threshold value Rth. If one is smaller than the threshold value Rth, this corresponds to the case where three signal levels are high among the four red component pixels R31, R53, R35, R13 existing closest to the target pixel R33 and the remaining one signal level is low. And it is sufficient.

ステップS20において注目画素R33が画像の境界上の欠陥画素の可能性が無いと判定された場合(ステップS20のNO)、後述するステップS50に移行する。   When it is determined in step S20 that the target pixel R33 is not a defective pixel on the boundary of the image (NO in step S20), the process proceeds to step S50 described later.

一方、ステップS20において注目画素R33が画像の境界上の欠陥画素の可能性が有ると判定された場合(ステップS20のYES)、欠陥画素検出装置7は、緑色成分の濃度境界と、赤色成分の濃度境界とに相関が有るか否かを判定する(ステップS30)。ここで、緑色成分の濃度境界によって区分けされる領域の緑色成分濃淡パターンと、赤色成分の濃度境界によって区分けされる領域の赤色成分濃淡パターンとが同じ場合(例えば図4において画素R31,R53,R35の信号レベルが高く画素R13の信号レベルが低く、画素G32,G43,G34の信号レベルが高く画素G23の信号レベルが低い場合)、緑色成分の濃度境界と、赤色成分の濃度境界とに相関が有ると判定される。かかる判定の一具体例としては、上述した差分Δ1〜Δ4それぞれと赤色成分の濃度境界判別用閾値閾値Rthとの大小関係により、赤色成分の濃度境界によって区分けされる領域の赤色成分濃淡パターンを認識し、画素G32,G43,G34,G23相互の全パターンの差分を求め、そのそれぞれの差分と予め設定した緑色成分の濃度境界判別用閾値Gthとの大小関係により、緑色成分の濃度境界によって区分けされる領域の緑色成分濃淡パターンを認識し、赤色成分濃淡パターンと緑色成分濃淡パターンとの比較結果に基づいて、緑色成分の濃度境界と赤色成分の濃度境界とに相関が有るか否かを判定する。   On the other hand, when it is determined in step S20 that the target pixel R33 is likely to be a defective pixel on the boundary of the image (YES in step S20), the defective pixel detection device 7 determines that the density boundary of the green component and the red component It is determined whether or not there is a correlation with the density boundary (step S30). Here, when the green component shading pattern of the area divided by the density boundary of the green component and the red component shading pattern of the area divided by the density boundary of the red component are the same (for example, pixels R31, R53, R35 in FIG. 4). The signal level of the pixel R13 is low, the signal level of the pixels G32, G43, and G34 is high and the signal level of the pixel G23 is low), and there is a correlation between the density boundary of the green component and the density boundary of the red component It is determined that there is. As a specific example of such determination, the red component density pattern of the region divided by the density boundary of the red component is recognized based on the magnitude relationship between each of the above differences Δ1 to Δ4 and the threshold threshold value Rth for determining the density boundary of the red component. Then, the difference between all the patterns of the pixels G32, G43, G34, and G23 is obtained, and is divided by the density boundary of the green component according to the magnitude relationship between each difference and a preset green component density boundary discrimination threshold Gth. The green component density pattern in the image area, and based on the comparison result between the red component density pattern and the green component density pattern, determine whether there is a correlation between the density boundary of the green component and the density boundary of the red component .

ステップS30において緑色成分の濃度境界と赤色成分の濃度境界とに相関が有ると判定された場合(ステップS30のYES)、後述するステップS40に移行する。一方、ステップS30において緑色成分の濃度境界と赤色成分の濃度境界とに相関が無いと判定された場合(ステップS30のNO)、後述するステップS50に移行する。   If it is determined in step S30 that there is a correlation between the density boundary of the green component and the density boundary of the red component (YES in step S30), the process proceeds to step S40 described later. On the other hand, if it is determined in step S30 that there is no correlation between the density boundary of the green component and the density boundary of the red component (NO in step S30), the process proceeds to step S50 described later.

欠陥画素検出装置7は、ステップS40において注目画素R33を欠陥画素として検出し、ステップS50において注目画素R33を正常な画素として認識し、ステップS40又はステップS50の処理が終了するとフローを終了する。   The defective pixel detection device 7 detects the target pixel R33 as a defective pixel in step S40, recognizes the target pixel R33 as a normal pixel in step S50, and ends the flow when the process of step S40 or step S50 ends.

なお、欠陥画素検出装置7が、図3に示す注目画素R33を中心とする5×5画素の画素ブロックを用いて図2Bに示すフローチャートの手順に従って欠陥画素検出を行うようにしてもよい。図2Bにおいて、図2Aと同一のステップには同一の符号を付し詳細な説明を省略する。   The defective pixel detection device 7 may perform defective pixel detection according to the procedure of the flowchart shown in FIG. 2B using a 5 × 5 pixel block centered on the target pixel R33 shown in FIG. 2B, the same steps as those in FIG. 2A are denoted by the same reference numerals, and detailed description thereof is omitted.

図2Bに示すフローチャートは、図2Aに示すフローチャートにステップS35を加えたものである。図2Bに示すフローチャートでは、ステップS30において緑色成分の濃度境界と赤色成分の濃度境界とに相関が有ると判定された場合(ステップS30のYES)、欠陥画素検出装置7は、5×5画素の画素ブロック内の赤色成分画素であって赤色成分の濃度境界に対して画素R33と同じ側に属する画素のみを用いた欠陥画素の判定によると、注目画素R33が欠陥画素であるか否かを判定する。かかる判定の一具体例としては、注目画素R33の最も近くに存在する四つの赤色成分画素R31,R53,R35,R13のうち赤色成分の濃度境界に対して画素R33と同じ側に属する画素のみを用い、それらの画素の信号レベルと注目画素R33の信号レベルとの各差分の全てについて、予め設定された第1の閾値(負の値)より小さければ注目画素R33が欠陥画素(より詳細には白欠陥画素)であると判定し、予め設定された第2の閾値(正の値)より大きければ注目画素R33が欠陥画素(より詳細には黒欠陥画素)であると判定するという手順が挙げられる。   The flowchart shown in FIG. 2B is obtained by adding step S35 to the flowchart shown in FIG. 2A. In the flowchart shown in FIG. 2B, when it is determined in step S30 that there is a correlation between the density boundary of the green component and the density boundary of the red component (YES in step S30), the defective pixel detection device 7 has 5 × 5 pixels. According to the determination of a defective pixel using only a red component pixel in the pixel block and a pixel belonging to the same side as the pixel R33 with respect to the density boundary of the red component, it is determined whether or not the target pixel R33 is a defective pixel. To do. As a specific example of such determination, only the pixels belonging to the same side as the pixel R33 with respect to the density boundary of the red component among the four red component pixels R31, R53, R35, R13 existing closest to the target pixel R33 are selected. If all the differences between the signal level of those pixels and the signal level of the target pixel R33 are smaller than a preset first threshold value (negative value), the target pixel R33 is a defective pixel (more specifically, A white defective pixel), and if it is larger than a preset second threshold value (positive value), the target pixel R33 is determined to be a defective pixel (more specifically, a black defective pixel). It is done.

ステップS35において注目画素R33が欠陥画素であると判定された場合(ステップS35のYES)はステップS40に移行し、ステップS35において注目画素R33が欠陥画素であると判定されなかった場合(ステップS35のNO)はステップS50に移行する。   If it is determined in step S35 that the target pixel R33 is a defective pixel (YES in step S35), the process proceeds to step S40, and if it is not determined in step S35 that the target pixel R33 is a defective pixel (in step S35). NO) moves to step S50.

注目画素が青色成分画素で有る場合には、欠陥画素検出装置7が、上述した注目画素が赤色成分画素で有る場合と同様の動作(上述した動作において赤色成分画素を青色成分画素に置換する)によって、欠陥画素検出を行うようにすればよい。   When the pixel of interest is a blue component pixel, the defective pixel detection device 7 performs the same operation as when the pixel of interest described above is a red component pixel (replaces the red component pixel with a blue component pixel in the above-described operation). Thus, defective pixel detection may be performed.

注目画素が緑色成分画素で有る場合には、欠陥画素検出装置7は、例えば、図5に示す注目画素G33を中心とする5×5画素の画素ブロック内の緑色成分画素を用いて、注目画素G33が欠陥画素であるか否かを判定する。かかる判定の一具体例としては、注目画素G33の信号レベルLG33と注目画素G33の最も近くに存在する四つの緑色成分画素G22,G42,G24,G44の信号レベルLG22,LG42,LG24,LG44との各差分Δ5〜Δ8を求め、差分Δ5〜Δ8全てが予め設定された第3の閾値(負の値)より小さければ注目画素G33が欠陥画素(より詳細には白欠陥画素)であると判定し、差分Δ5〜Δ8全てが予め設定された第4の閾値(正の値)より大きければ注目画素G33が欠陥画素(より詳細には黒欠陥画素)であると判定するという手順が挙げられる。なお、差分Δ5〜Δ8は以下の(5)式〜(8)式によって求められる。
Δ5=LG22−LG33 ・・・(5)
Δ6=LG42−LG33 ・・・(6)
Δ7=LG24−LG33 ・・・(7)
Δ8=LG44−LG33 ・・・(8)
When the target pixel is a green component pixel, the defective pixel detection device 7 uses the green component pixel in the pixel block of 5 × 5 pixels centered on the target pixel G33 shown in FIG. It is determined whether G33 is a defective pixel. As a specific example of such determination, the signal level L G33 of the target pixel G33 and the signal levels L G22 , L G42 , and L G24 of the four green component pixels G22, G42, G24, and G44 that are closest to the target pixel G33. , L G44 and the difference Δ5 to Δ8 are obtained, and if all the differences Δ5 to Δ8 are smaller than a preset third threshold value (negative value), the target pixel G33 is a defective pixel (more specifically, a white defective pixel). And if all the differences Δ5 to Δ8 are greater than a preset fourth threshold value (positive value), the target pixel G33 is determined to be a defective pixel (more specifically, a black defective pixel). Is mentioned. The differences Δ5 to Δ8 are obtained by the following equations (5) to (8).
Δ5 = L G22 -L G33 (5)
Δ6 = L G42 −L G33 (6)
Δ7 = L G24 -L G33 (7)
Δ8 = L G44 -L G33 (8)

また、本発明の他の実施形態として、コンピュータが、デジタルスチールカメラから出力されるベイヤー配列のデジタル画像データであるRAW形式の画像データを入力し、そのコンピュータが、図1中の画像処理装置5と同様の動作を行う実施形態が挙げられる。この場合、当該コンピュータは、本発明に係る欠陥画素検出プログラムによって、図1中の欠陥画素検出装置7と同様の動作を行う。   As another embodiment of the present invention, a computer inputs RAW format image data that is digital image data of a Bayer array output from a digital still camera, and the computer inputs the image processing device 5 in FIG. Embodiment which performs the same operation | movement is mentioned. In this case, the computer performs the same operation as the defective pixel detection apparatus 7 in FIG. 1 by the defective pixel detection program according to the present invention.

は、本発明に係るカメラ付き携帯電話装置の概略構成例を示す図である。These are figures which show the example of schematic structure of the mobile telephone apparatus with a camera which concerns on this invention. は、図1に示すカメラ付き携帯電話装置が備える欠陥画素検出装置の動作例を示すフローチャートである。These are the flowcharts which show the operation example of the defective pixel detection apparatus with which the mobile telephone apparatus with a camera shown in FIG. 1 is provided. は、図1に示すカメラ付き携帯電話装置が備える欠陥画素検出装置の他の動作例を示すフローチャート図である。These are the flowchart figures which show the other operation example of the defective pixel detection apparatus with which the mobile telephone apparatus with a camera shown in FIG. は、赤色成分画素である注目画素を中心とする5×5画素の画素ブロックを示す図である。These are diagrams showing a pixel block of 5 × 5 pixels centering on a target pixel which is a red component pixel. は、図3に示す画素ブロックにおいて、注目画素が画像の境界上にある状態を示す図である。FIG. 4 is a diagram illustrating a state in which a target pixel is on an image boundary in the pixel block illustrated in FIG. 3. は、緑色成分画素である注目画素を中心とする5×5画素の画素ブロックを示す図である。FIG. 5 is a diagram illustrating a pixel block of 5 × 5 pixels centered on a target pixel which is a green component pixel.

符号の説明Explanation of symbols

1 光学レンズ系
2 固体撮像素子
3 A/D変換部
4 カメラモジュール
5 画像処理装置
6 フレームメモリ
7 欠陥画素検出装置
8 補正部
9 画像処理部
10 データ圧縮部
11 CPU
12 表示装置
13 記憶媒体インターフェース
14 アンテナ
15 無線部
16 報知部
17 キー入力部
18 音声入力部
19 音声出力部
DESCRIPTION OF SYMBOLS 1 Optical lens system 2 Solid-state image sensor 3 A / D conversion part 4 Camera module 5 Image processing apparatus 6 Frame memory 7 Defective pixel detection apparatus 8 Correction part 9 Image processing part 10 Data compression part 11 CPU
DESCRIPTION OF SYMBOLS 12 Display apparatus 13 Storage medium interface 14 Antenna 15 Radio | wireless part 16 Notification | reporting part 17 Key input part 18 Voice input part 19 Voice output part

Claims (5)

ベイヤー配列の画像データの欠陥画素を検出する欠陥画素検出装置であって、
注目画素が赤色成分画素又は青色成分画素である場合に、所定の画素数からなり前記注目画素が含まれる画素ブロックに属する前記注目画素と同色成分の画素の画素データに基づいて前記注目画素が欠陥画素であるか否かを判定する第1判定部と、
前記第1判定部によって前記注目画素が欠陥画素でないと判定された場合に、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があるか否かを判定する第2判定部と、
前記第1判定部によって前記注目画素が欠陥画素であると判定された場合又は前記第2判定部によって、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があると判定された場合に、前記注目画素を欠陥画素として検出する第1検出部と、
前記注目画素が緑色成分画素である場合に欠陥画素を検出する第2検出部とを備えることを特徴とする欠陥画素検出装置。
A defective pixel detection device for detecting defective pixels in Bayer array image data,
When the pixel of interest is a red component pixel or a blue component pixel, the pixel of interest is defective based on pixel data of a pixel having the same color component as the pixel of interest belonging to the pixel block including the pixel of interest and having a predetermined number of pixels. A first determination unit for determining whether or not the pixel;
When the first determination unit determines that the target pixel is not a defective pixel, the target pixel is on the density boundary of the same color component as the target pixel, and the density boundary and green component of the same color component as the target pixel A second determination unit that determines whether or not there is a correlation with the density boundary;
When the first determination unit determines that the target pixel is a defective pixel, or the second determination unit determines that the target pixel is on the density boundary of the same color component as the target pixel and has the same color as the target pixel. A first detection unit that detects the target pixel as a defective pixel when it is determined that there is a correlation between the density boundary of the component and the density boundary of the green component;
A defective pixel detection apparatus comprising: a second detection unit configured to detect a defective pixel when the target pixel is a green component pixel.
ベイヤー配列の画像データの欠陥画素を検出する欠陥画素検出装置であって、
注目画素が赤色成分画素又は青色成分画素である場合に、所定の画素数からなり前記注目画素が含まれる画素ブロックに属する前記注目画素と同色成分の画素の画素データに基づいて前記注目画素が欠陥画素であるか否かを判定する第1判定部と、
前記第1判定部によって前記注目画素が欠陥画素でないと判定された場合に、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があるか否かを判定する第2判定部と、
前記第2判定部によって、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があると判定された場合に、前記画素ブロックに属する前記注目画素と同色成分の画素であって前記濃度境界に対して前記注目画素と同じ側に属する画素の画素データのみに基づいて前記注目画素が欠陥画素であるか否かを判定する第3判定部と、
前記第1判定部又は前記第3判定部によって前記注目画素が欠陥画素であると判定された場合に、前記注目画素を欠陥画素として検出する第1検出部と、
前記注目画素が緑色成分画素である場合に欠陥画素を検出する第2検出部とを備えることを特徴とする欠陥画素検出装置。
A defective pixel detection device for detecting defective pixels in Bayer array image data,
When the pixel of interest is a red component pixel or a blue component pixel, the pixel of interest is defective based on pixel data of a pixel having the same color component as the pixel of interest belonging to the pixel block including the pixel of interest and having a predetermined number of pixels. A first determination unit for determining whether or not the pixel;
When the first determination unit determines that the target pixel is not a defective pixel, the target pixel is on the density boundary of the same color component as the target pixel, and the density boundary and green component of the same color component as the target pixel A second determination unit that determines whether or not there is a correlation with the density boundary;
When the second determination unit determines that the target pixel is on the same color component density boundary as that of the target pixel and that there is a correlation between the target pixel and the same color component density boundary and the green component density boundary In addition, whether or not the target pixel is a defective pixel based only on pixel data of a pixel having the same color component as the target pixel belonging to the pixel block and belonging to the same side as the target pixel with respect to the density boundary A third determination unit for determining whether or not
A first detection unit that detects the pixel of interest as a defective pixel when the pixel of interest is determined to be a defective pixel by the first determination unit or the third determination unit;
A defective pixel detection apparatus comprising: a second detection unit configured to detect a defective pixel when the target pixel is a green component pixel.
請求項1又は請求項2に記載の欠陥画素検出装置と、前記欠陥画素検出装置によって検出された欠陥画素の画素データを補正する補正部とを有する画像処理装置を備えることを特徴とする電子機器。   An electronic apparatus comprising: the defective pixel detection device according to claim 1 or 2; and an image processing device including a correction unit that corrects pixel data of the defective pixel detected by the defective pixel detection device. . ベイヤー配列の画像データの欠陥画素を検出するための欠陥画素検出プログラムであって、
コンピュータを、
注目画素が赤色成分画素又は青色成分画素である場合に、所定の画素数からなり前記注目画素が含まれる画素ブロックに属する前記注目画素と同色成分の画素の画素データに基づいて前記注目画素が欠陥画素であるか否かを判定する第1判定手段、
前記第1判定手段によって前記注目画素が欠陥画素でないと判定された場合に、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があるか否かを判定する第2判定手段、
前記第1判定手段によって前記注目画素が欠陥画素であると判定された場合又は前記第2判定手段によって前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があると判定された場合に、前記注目画素を欠陥画素として検出する第1検出手段、及び
前記注目画素が緑色成分画素である場合に欠陥画素を検出する第2検出手段として機能させるための欠陥画素検出プログラム。
A defective pixel detection program for detecting defective pixels in Bayer array image data,
Computer
When the pixel of interest is a red component pixel or a blue component pixel, the pixel of interest is defective based on pixel data of a pixel having the same color component as the pixel of interest belonging to the pixel block including the pixel of interest and having a predetermined number of pixels. First determination means for determining whether or not the pixel;
When the first determination unit determines that the target pixel is not a defective pixel, the target pixel is on a density boundary of the same color component as the target pixel, and the density boundary and green component of the same color component as the target pixel Second determination means for determining whether there is a correlation with the density boundary of
When the first determination unit determines that the target pixel is a defective pixel, or when the second determination unit determines that the target pixel is on the density boundary of the same color component as the target pixel, the same color component as the target pixel A first detection means for detecting the pixel of interest as a defective pixel when it is determined that there is a correlation between the density boundary of the green component and the density boundary of the green component; and a defective pixel when the pixel of interest is a green component pixel A defective pixel detection program for functioning as second detection means for detection.
ベイヤー配列の画像データの欠陥画素を検出するための欠陥画素検出プログラムであって、
コンピュータを、
注目画素が赤色成分画素又は青色成分画素である場合に、所定の画素数からなり前記注目画素が含まれる画素ブロックに属する前記注目画素と同色成分の画素の画素データに基づいて前記注目画素が欠陥画素であるか否かを判定する第1判定手段、
前記第1判定手段によって前記注目画素が欠陥画素でないと判定された場合に、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があるか否かを判定する第2判定手段、
前記第2判定手段によって、前記注目画素が前記注目画素と同色成分の濃度境界上にあって、前記注目画素と同色成分の濃度境界と緑色成分の濃度境界とに相関があると判定された場合に、前記画素ブロックに属する前記注目画素と同色成分の画素であって前記濃度境界に対して前記注目画素と同じ側に属する画素の画素データのみに基づいて前記注目画素が欠陥画素であるか否かを判定する第3判定手段、
前記第1判定手段又は前記第3判定手段によって前記注目画素が欠陥画素であると判定された場合に、前記注目画素を欠陥画素として検出する第1検出手段、及び
前記注目画素が緑色成分画素である場合に欠陥画素を検出する第2検出手段として機能させるための欠陥画素検出プログラム。
A defective pixel detection program for detecting defective pixels in Bayer array image data,
Computer
When the pixel of interest is a red component pixel or a blue component pixel, the pixel of interest is defective based on pixel data of a pixel having the same color component as the pixel of interest belonging to the pixel block including the pixel of interest and having a predetermined number of pixels. First determination means for determining whether or not the pixel;
When the first determination unit determines that the target pixel is not a defective pixel, the target pixel is on a density boundary of the same color component as the target pixel, and the density boundary and green component of the same color component as the target pixel Second determination means for determining whether there is a correlation with the density boundary of
When the second determination unit determines that the target pixel is on the same color component density boundary as the target pixel and that there is a correlation between the target pixel and the same color component density boundary and the green component density boundary In addition, whether or not the target pixel is a defective pixel based only on pixel data of a pixel having the same color component as the target pixel belonging to the pixel block and belonging to the same side as the target pixel with respect to the density boundary Third determination means for determining
First detection means for detecting the target pixel as a defective pixel when the first determination unit or the third determination unit determines that the target pixel is a defective pixel; and the target pixel is a green component pixel A defective pixel detection program for functioning as second detection means for detecting defective pixels in some cases.
JP2006311536A 2006-11-17 2006-11-17 Defective pixel detecting device, electronic apparatus, and defective pixel detecting program Pending JP2008131158A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006311536A JP2008131158A (en) 2006-11-17 2006-11-17 Defective pixel detecting device, electronic apparatus, and defective pixel detecting program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006311536A JP2008131158A (en) 2006-11-17 2006-11-17 Defective pixel detecting device, electronic apparatus, and defective pixel detecting program

Publications (1)

Publication Number Publication Date
JP2008131158A true JP2008131158A (en) 2008-06-05

Family

ID=39556610

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006311536A Pending JP2008131158A (en) 2006-11-17 2006-11-17 Defective pixel detecting device, electronic apparatus, and defective pixel detecting program

Country Status (1)

Country Link
JP (1) JP2008131158A (en)

Similar Documents

Publication Publication Date Title
US10855910B2 (en) Electronic device, method, and program
JP4388909B2 (en) Pixel defect correction device
US8462234B2 (en) Image pickup apparatus and dark current correction method therefor
US20060233439A1 (en) Method and apparatus for processing a Bayer-pattern color digital image signal
US8970742B2 (en) Image processing apparatus and method capable of performing correction process speedily and easily
JP4253634B2 (en) Digital camera
US20080075354A1 (en) Removing singlet and couplet defects from images
JP2014126803A (en) Image processing apparatus, image processing method, and image processing program
JP4591046B2 (en) Defect detection correction circuit and defect detection correction method
JP2011077825A (en) Display device, display system, display method and program
JP5181894B2 (en) Image processing apparatus and electronic camera
WO2014087804A1 (en) Image capture device, image processing method, and program
JP4895107B2 (en) Electronic device, information processing method, and program
JP2007195122A (en) Imaging apparatus, image processor and image processing method
JP4331120B2 (en) Defective pixel detection method
US20070269133A1 (en) Image-data noise reduction apparatus and method of controlling same
JP2010258620A (en) Image processor, image processing method, and program
JP5446955B2 (en) Imaging device
JP2001307079A (en) Image processor, image processing method and recording medium
JP2008131165A (en) Defective pixel detecting device, electronic apparatus, and defective pixel detecting program
JP5513310B2 (en) Imaging module, image signal processing method, restoration processing apparatus and method
JP2008131161A (en) Defective pixel detecting device, electronic apparatus, and defective pixel detecting program
JP2008131158A (en) Defective pixel detecting device, electronic apparatus, and defective pixel detecting program
JP2006135564A (en) Device and method for pixel interpolation
JP2003203198A (en) Imaging device, imaging method, computer readable storage medium and computer program