JP2012065069A - Defect detection and compensation apparatus, program and storage medium - Google Patents
Defect detection and compensation apparatus, program and storage medium Download PDFInfo
- Publication number
- JP2012065069A JP2012065069A JP2010206363A JP2010206363A JP2012065069A JP 2012065069 A JP2012065069 A JP 2012065069A JP 2010206363 A JP2010206363 A JP 2010206363A JP 2010206363 A JP2010206363 A JP 2010206363A JP 2012065069 A JP2012065069 A JP 2012065069A
- Authority
- JP
- Japan
- Prior art keywords
- defective pixel
- color
- information
- defective
- white balance
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Landscapes
- Transforming Light Signals Into Electric Signals (AREA)
- Color Television Image Signal Generators (AREA)
Abstract
【課題】ホワイトバランスを考慮して欠陥画素を補正する処理を短時間で行う。
【解決手段】デジタルカメラ10には、複数の欠陥画素マップ27〜28が予め記憶されている。欠陥画素マップ27〜28には、遮光状態で所定時間露光した時に撮像素子から得られるCFA画像データの画素値と撮影光源に応じて色毎に変えた閾値とに基づいて検出した欠陥画素の位置情報が記録さている。ホワイトバランスゲイン算出回路17は、撮像素子25から取得したCFA画像データに基づいてホワイトバランスゲインを算出する。欠陥画素マップ選択回路18は、ホワイトバランスゲインに応じて複数の欠陥画素マップ27〜29のうちからいずれかを選択する。欠陥補正回路19は、選択した欠陥画素マップに記載の欠陥画素の位置情報に基づいて欠陥画素を補正する。
【選択図】図1Processing for correcting defective pixels in consideration of white balance is performed in a short time.
In a digital camera, a plurality of defective pixel maps are stored in advance. In the defective pixel maps 27 to 28, the positions of defective pixels detected based on the pixel value of CFA image data obtained from the image sensor when exposed for a predetermined time in a light-shielded state and the threshold value changed for each color according to the photographing light source. Information is recorded. The white balance gain calculation circuit 17 calculates a white balance gain based on the CFA image data acquired from the image sensor 25. The defective pixel map selection circuit 18 selects one of the plurality of defective pixel maps 27 to 29 according to the white balance gain. The defect correction circuit 19 corrects the defective pixel based on the position information of the defective pixel described in the selected defective pixel map.
[Selection] Figure 1
Description
本発明は、画像信号中、特に固体撮像素子上に生じる欠陥画素を検出する欠陥検出補正装置、及びプログラム、並びに記録媒体に関する。 The present invention relates to a defect detection and correction apparatus, a program, and a recording medium that detect defective pixels generated in an image signal, particularly on a solid-state imaging device.
カラーイメージセンサ等を構成する固体撮像素子(以下、「撮像素子」と称す)では、半導体の局部的な結晶欠陥等によって感度が低下したり、あるいは出荷時以降に何らかのストレス要因で発生する傷などに伴って画素欠陥が生じることがある。このような場合、その画素欠陥に起因して画像に白点欠陥や黒点欠陥が生じ、画質が劣化する。このため、撮像素子を利用するデジタルカメラには、予め欠陥画素の位置情報を検出しておき、画像データを取得後にその位置情報に基づいて欠陥画素の出力値を近傍の画素値を使って補正する欠陥画素補正回路が組み込まれている。 In a solid-state imaging device (hereinafter referred to as “imaging device”) that constitutes a color image sensor or the like, the sensitivity is reduced due to local crystal defects of the semiconductor, or scratches caused by some stress factor after shipment. As a result, pixel defects may occur. In such a case, a white spot defect or a black spot defect occurs in the image due to the pixel defect, and the image quality deteriorates. For this reason, in a digital camera using an image sensor, position information of a defective pixel is detected in advance, and after acquiring image data, an output value of the defective pixel is corrected using a neighboring pixel value based on the position information. A defective pixel correction circuit is incorporated.
ところで、一般的なデジタルカメラでは、画像処理等によって各画素に有するRGBの各出力値を変更した場合については欠陥画像の補正が考慮されていない。例えば、ホワイトバランス処理の時に、増幅前には異常な値を出力せず欠陥画素に該当しないものであっても、そのゲインの大きさによっては欠陥画素に相当するデータを有することになる場合がある。ホワイトバランス補正により欠陥画素に相当することになった画素については欠陥補正対象とされないため、そのまま画像として表示することによりこの画素に起因する白点欠陥が画像上に現れてしまうおそれがある。 By the way, in a general digital camera, correction of a defective image is not considered when each RGB output value of each pixel is changed by image processing or the like. For example, even when the white balance processing does not output an abnormal value before amplification and does not correspond to a defective pixel, there may be data corresponding to the defective pixel depending on the magnitude of the gain. is there. Since the pixel corresponding to the defective pixel by the white balance correction is not a defect correction target, if it is displayed as it is as an image, there is a possibility that a white point defect due to this pixel will appear on the image.
そこで、ホワイトバランス補正を考慮した欠陥画素を補正する画像処理装置が知られている(特許文献1)。特許文献1に記載の画像処理装置では、真っ暗な状態で所定時間露光したときに撮像素子のから得られる各画素の出力値が第1閾値以上となる画素の位置情報、その画素位置のRGB情報及び出力値を欠陥画素候補テーブルに予め記憶しておき、撮影前又は後で行われるホワイトバランスの設定に応答して、ホワイトバランスに応じたゲインを欠陥画素候補テーブルに記載の画素の出力値に乗算し、乗算した値が、前記第1閾値よりも大きい第2閾値を超える画素を欠陥画素として検出して欠陥画素補正を行っている。
Therefore, an image processing apparatus that corrects defective pixels in consideration of white balance correction is known (Patent Document 1). In the image processing apparatus described in
しかしながら、特許文献1に記載の発明では、ホワイトバランスの設定毎に、そのゲインを欠陥候補画素のデジタルデータに乗算する演算と、乗算したデータと第2閾値とを比較して欠陥画素を抽出する比較判定との二つの処理を行う必要があるため、欠陥補正をして画像を得るのに長時間を要してしまい、次の撮影を迅速に行えないおそれがある。
However, in the invention described in
本発明は、上記問題に鑑みてなされたものであり、ホワイトバランス等の撮影条件を考慮して欠陥画素を補正する処理を短時間で行うことができる欠陥画素補正装置、及びプログラム、並びに記憶媒体を提供することを目的とする。 The present invention has been made in view of the above problems, and a defective pixel correction apparatus, a program, and a storage medium that can perform a process of correcting a defective pixel in a short time in consideration of shooting conditions such as white balance. The purpose is to provide.
上記目標を達成するために、本発明では、撮影条件を設定する撮影条件設定手段と、所定の明るさで撮影した時に撮像素子から得られるカラーの画像データに基づいて検出した欠陥画素の位置情報がカラーの画像データを構成する色毎に予め記録されている欠陥画素情報を複数記憶する欠陥画素情報記憶手段と、前記設定した撮影条件に応じて前記複数の欠陥画素情報のうちの何れかの欠陥画素情報を選択する選択手段と、前記選択した欠陥画素情報に記録の欠陥画素の位置情報に基づいて欠陥画素を補正する欠陥画素補正手段と、を備えたものである。 In order to achieve the above-described goal, in the present invention, shooting condition setting means for setting shooting conditions, and position information of defective pixels detected based on color image data obtained from the image sensor when shooting at a predetermined brightness Defective pixel information storage means for storing a plurality of defective pixel information recorded in advance for each color constituting color image data, and any one of the plurality of defective pixel information according to the set photographing condition Selection means for selecting defective pixel information, and defective pixel correction means for correcting defective pixels based on position information of defective pixels recorded in the selected defective pixel information.
撮影条件としては、ホワイトバランスゲイン、又はISO感度が好適である。なお、空格子補間処理(画素補間処理)や連写モード等としてもよい。欠陥画素情報としては、撮影条件に応じて前記色毎に決めた閾値に基づいて検出した欠陥画素の位置情報を記録したメモリマップやテーブルメモリ等としてもよい。 As a photographing condition, white balance gain or ISO sensitivity is suitable. Note that a blank grid interpolation process (pixel interpolation process), a continuous shooting mode, or the like may be used. The defective pixel information may be a memory map, a table memory, or the like that records position information of defective pixels detected based on the threshold value determined for each color according to the shooting conditions.
カラーの画像データとしては、3色のカラーフィルタアレイを備えた1個の撮像素子から得られる画像データとしてもよい。この場合、空間周波数が最も高い第1色成分の色情報を出力する複数の画素と、前記第1色成分の色情報を出力せず前記第1色成分よりも空間周波数が低い第2色成分又は第3色成分の色情報を出力する複数の画素と、が2次元配列された撮像素子によって生成される画像データになる。なお、3板式CCD等から得られるカラーの画像データとしてもよい。 The color image data may be image data obtained from a single image sensor having a three-color color filter array. In this case, a plurality of pixels that output color information of the first color component having the highest spatial frequency, and a second color component that does not output color information of the first color component and has a spatial frequency lower than that of the first color component Alternatively, the image data is generated by an imaging device in which a plurality of pixels that output color information of the third color component are two-dimensionally arranged. Color image data obtained from a three-plate CCD or the like may be used.
撮影条件をホワイトバランスにする場合には、所定の明るさで撮影した時に撮像素子から得られるカラーの画像データに対して、色毎に一律の閾値を用いて検出した第1欠陥画素情報と、第2色成分の色情報を他の色情報よりも厳しく判定する閾値を用いて検出した第2欠陥画素情報と、第3色成分の色情報を他の色情報よりも厳しく判定する閾値を用いて検出した第3欠陥画素マップとを前記欠陥画素情報記憶手段に予め記憶しておくとともに、撮影毎に得られるカラーの画像データに基づいて前記第2及び第3色成分の色情報に応じたホワイトバランスゲインを算出するホワイトバランスゲイン算出回路を設け、前記選択手段は、前記二つのホワイトバランスゲインに基づいて第1〜第3欠陥画素情報のうちから何れかを選択するように構成すればよい。 When the shooting condition is white balance, the first defective pixel information detected using a uniform threshold for each color with respect to color image data obtained from the image sensor when shooting at a predetermined brightness, The second defective pixel information detected using the threshold value for determining the color information of the second color component more strictly than the other color information and the threshold value for determining the color information of the third color component more strictly than the other color information are used. The third defective pixel map detected in advance is stored in the defective pixel information storage means in advance, and the color information of the second and third color components is determined based on the color image data obtained at each photographing. A white balance gain calculation circuit for calculating a white balance gain is provided, and the selection unit selects one of the first to third defective pixel information based on the two white balance gains. It can be formed.
本発明としては、カラーの画像データを、色毎の欠陥画素の情報に基づいて補正する欠陥画素補正方法としてもよい。この場合には、撮影条件を設定する撮影条件設定ステップと、欠陥画素の位置情報が前記カラーの画像データを構成する色毎に記録されている複数の欠陥画素情報のうちの何れかを前記設定した撮影条件に応じて、選択する欠陥画素情報選択ステップと、前記選択した欠陥画素情報に記録されている欠陥画素の位置情報に基づいて欠陥画素を補正する欠陥画素補正ステップと、を含むものである。また、本発明としては、欠陥画素補正方法を実行させるコンピュータが読み取り可能なプログラムとしてもよい。また、コンピュータが読み取り可能なプログラムを記録した記録媒体としてもよい。 The present invention may be a defective pixel correction method in which color image data is corrected based on defective pixel information for each color. In this case, the setting of the shooting condition setting step for setting the shooting condition and the plurality of pieces of defective pixel information in which the position information of the defective pixel is recorded for each color constituting the color image data is set. And a defective pixel information selecting step to be selected according to the shooting conditions, and a defective pixel correcting step for correcting the defective pixel based on the position information of the defective pixel recorded in the selected defective pixel information. Further, the present invention may be a computer-readable program that executes a defective pixel correction method. Moreover, it is good also as a recording medium which recorded the computer readable program.
本発明では、複数の欠陥画素情報のうちの何れかの欠陥画素情報を選択することで撮影条件に影響が生じる欠陥画素を確実に検出することができ、よって、従来技術で説明した演算や比較等の処理を行う必要がないため、撮影条件を考慮した欠陥画素補正を迅速に行うことができる。 In the present invention, it is possible to reliably detect defective pixels that affect the photographing conditions by selecting any defective pixel information from among a plurality of defective pixel information, and therefore, the calculation and comparison described in the related art Therefore, it is possible to quickly perform defective pixel correction in consideration of shooting conditions.
デジタルカメラ10は、図1に示すように、光学系11、カラーイメージセンサ12、アナログフロントエンド(以下「AFE」と称す)13、画像処理部14、画像圧縮部15、及び記録部16を備えている。画像処理部14は、ホワイトバランスゲイン算出回路17、欠陥画素マップ選択回路18、欠陥補正回路19、ホワイトバランス処理回路20、空格子補間回路21、及び色変換回路22等で構成されている。この画像処理部14には、ワークメモリ用のRAM23が接続されている。
As shown in FIG. 1, the
光学系11は、撮影レンズや絞り等で構成されている。カラーイメージセンサ(ベイヤー配列型単板撮像素子)12は、カラーフィルタアレイ(CFA)24とCCD等の固体撮像素子(以下「撮像素子」と称す)25とで構成されており、光学系11により結像される光学像を光電変換して得られる電荷を受光セル毎に一定時間蓄積し受光セル(画素)毎の受光量に応じた電気信号を出力する。
The
カラーフィルタアレイ24は、撮像素子25の総画素数Nに対して、例えば、詳しくは図2に示すように、G(緑色)の解像度がN/2、R(赤色)及びB(青色)の解像度がN/4となる原色ベイヤー配列になっている。
In the
ここで、各画素は、G色を出力する画素と、G色を出力しない画素とで構成されている。すなわち、撮像素子25は、空間周波数が最も高い第1色成分の色情報を出力する複数の画素と、第1色成分の色情報を出力せず第1色成分よりも空間周波数が低い第2色成分又は第3色成分の色情報を出力する複数の画素と、を2次元配列したものである。
Here, each pixel includes a pixel that outputs G color and a pixel that does not output G color. That is, the
AFE13は、カラーイメージセンサ12から出力されるアナログの電気信号をデジタルに変換してCFA画像データとして出力するとともに、デジタル変換に際してノイズ除去等の処理を施す。
The
ホワイトバランスゲイン算出回路17は、CFA画像データに基づいて、例えば3色のうちのR(赤色)及びB(青色)の色情報を、G(緑色)の色情報のピークレベルと等しくなるように調整するために、ホワイトバランス補正処理の時にRGBの各値に乗算する係数、すなわちホワイトバランスゲインを算出する。このホワイトバランス調整量は、R/Gゲイン(緑色に対する赤色のゲイン)の値WRと、B/Gゲイン(緑色に対する青色のゲイン)の値WBとで構成されている。
Based on the CFA image data, the white balance
一例として、ホワイトバランスゲイン算出回路17は、JISZ8725の「光源の分布温度及び色温度・相関色温度の測定方法」に従ってCFA画像データをTC−Duv座標のデータに変換し、画像データにおける無彩色部分を判定する。そして、座標変換後のデータが無彩色と判定された場合には、ホワイトバランスゲイン算出回路17は、TC−Duv座標から求まる相関色温度を所定の色温度−ホワイトバランスゲインの関係式に当てはめてGに対するR及びBのホワイトバランスゲインWR,WBを算出する。
As an example, the white balance
ホワイトバランスゲインWR,WBの情報は、欠陥画素マップ選択回路18とホワイトバランス処理回路20とにそれぞれ送られる。欠陥画素マップ選択回路18は、第1ないし第3の欠陥画素マップ27〜29を記憶する記憶部30を有し、算出した2つのホワイトバランスゲインWR,WBに基づいて第1ないし第3の欠陥画素マップ27〜29のうちのいずれかを選択する。
Information of the white balance gain W R, W B are sent respectively to the defective pixel
各欠陥画素マップ27〜29には、予め決めた閾値に基づいて検出した欠陥画素の位置情報が予め記録されている。閾値は、色温度や光源の分光放射強度で決まる撮影光源に応じて色毎に決められている。これは、撮像素子25の分光感度と撮影光源との関係によりR又はBの画素位置での白点欠陥の影響が他色の画素位置での白点欠陥の影響と異なるためである。
In each of the defective pixel maps 27 to 29, position information of defective pixels detected based on a predetermined threshold is recorded in advance. The threshold value is determined for each color according to the imaging light source determined by the color temperature and the spectral radiation intensity of the light source. This is because the influence of the white spot defect at the R or B pixel position is different from the influence of the white spot defect at the pixel position of the other color due to the relationship between the spectral sensitivity of the
欠陥補正回路19は、選択した欠陥画素マップ27〜29に記録されている欠陥画素を補正する。ホワイトバランス処理回路20は、無彩色の被写体が無彩色な被写体の画像になるように、ホワイトバランスゲイン算出回路17で算出した2つのホワイトバランスゲインWR,WBを、対応する色の画素値に乗算する。
The
空格子補間回路21は、CFA画像データがRGBのいずれか1つのデータであることから、各画素につき周りの画素の色から推測することによりその画素以外の色を補う処理(画素補間処理)を行ってRGB画像データを作る。 Since the CFA image data is any one of RGB data, the empty lattice interpolation circuit 21 performs a process (pixel interpolation process) for compensating for colors other than the pixels by estimating from the color of the surrounding pixels for each pixel. Go to make RGB image data.
ここで用いる補間方法としては、CFA画像データから輝度成分画像を生成して空格子補間を行ってもよい。また、代わりに、周知の色相を保つ補間法、メジアン処理による補間法、勾配に基づく補間法、及び、適応型カラーブレーン補間法(ACPI)等のいずれかの補間法を用いることができる。 As an interpolation method used here, a luminance component image may be generated from CFA image data and empty grid interpolation may be performed. Alternatively, any of interpolation methods such as a well-known interpolation method for maintaining hue, an interpolation method using median processing, an interpolation method based on gradient, and an adaptive color brain interpolation method (ACPI) can be used.
得られたRBG画像データは、撮像素子25の感度特性に基づくデータである。そこで、色変換回路22は、RGB画像データに対して表示に適したSRGB等の色変換や階調変換等を行う。
The obtained RBG image data is data based on the sensitivity characteristics of the
画像圧縮部15は、SRGB画像データを非可逆圧縮方式、例えばJPEG方式により符号化して圧縮画像データを作る。記録部16は、圧縮画像データを、例えば内部メモリ、又は着脱可能なメモリカード等に記録する。
The image compression unit 15 encodes the S RGB image data by an irreversible compression method, for example, the JPEG method, and creates compressed image data. The
次に、上記構成の作用を簡単に説明する。デジタルカメラ10の組立工場には、欠陥画素マップ生成手段と、書き込み手段とを備えている。欠陥画素マップ生成手段は、撮影光源に応じて複数の欠陥画素マップ27〜29を予め生成し、書き込み手段は、生成した欠陥画素マップ27〜29をデジタルカメラ10の記憶部30に記録する。
Next, the operation of the above configuration will be briefly described. The assembly factory of the
欠陥画素マップ27〜29は、予め撮像して得られるCFA画像データに基づいて、撮像素子25の各画素のうちの異常な値を出力する画素を抽出し、抽出した欠陥画素のみの位置情報をテーブルとして記録したものである。
The defective pixel maps 27 to 29 extract pixels that output abnormal values from the respective pixels of the
具体的には、真っ暗な状態で所定時間露光した時に撮像素子25の各画素から出力されるCFA画像データを12ビットのデジタルデータとして示した値と、予め決めた閾値とを比較し、前記閾値を超える値の画素を欠陥画素として抽出し、その抽出した欠陥画素の位置情報を記憶する。
Specifically, a value indicating CFA image data output from each pixel of the
例えば、CFA画像データが、図3に示すように得られたものとする。ここで、図3における数字がデジタルデータである。このCFA画像データに基づいて、撮影光源に応じた欠陥画素の位置情報を持つ第1〜第3の欠陥画素マップ27〜29を作る。 For example, it is assumed that CFA image data is obtained as shown in FIG. Here, the numbers in FIG. 3 are digital data. Based on the CFA image data, first to third defective pixel maps 27 to 29 having position information of defective pixels corresponding to the photographing light source are created.
例えば、第1欠陥画素マップ27は、RGBの区別無く欠陥画素を抽出してそれらの位置情報を記録したテーブルである。このときに用いる閾値は、全て一律にした値、すなわち「TR」=「TG」=「TB」との関係になっている。ここで、「TR」はR画素用の閾値、「TG」はG画素用の閾値、TBはB画素用の閾値である。ここで、閾値「TR」,「TG」,「TB」を、例えば「150」に設定すると、第1欠陥画素マップ27は、例えば図4に示す「×」の画素位置を、欠陥画素を表す「1」とし、「×」以外の正常画素を「0」とするマップになる。なお、第1欠陥画素情報としては、マップ27に限らず、例えば、図5に示すように、欠陥画素の位置情報のみを記録するテーブルとしてもよい。
For example, the first
第2欠陥画素マップ28には、R画素の判定基準を厳しくして欠陥画素を抽出してそれらの位置情報を記録したテーブルである。このときに用いる閾値は、「KR」×「TR」=「TG」=「TB」との関係になっている。なお、「KR」は、「1」以下の定数である。ここで、前述した閾値「TR」,「TG」,「TB」を、例えば「150」に設定し、そして「KR」を例えば「0.7」に設定すると、G及びB画素用の閾値「TG」,「TB」が「150」であるのに対し、R画素用の閾値は「KR」×「TR」なので「105」となる。したがって、図6に示すように、「×」の画素位置が欠陥画素として検出される。このときに検出した欠陥画素は、第1欠陥画素マップ27に対してR画素だけ厳しく検出されており、第2欠陥画素マップ28は、例えば図6に示す「×」の画素位置を、欠陥画素を表す「1」とし、「×」以外の正常画素を「0」とするマップになる。なお、前述したように、第2欠陥画素情報としては、図7に示すように、欠陥画素の位置情報のみを記録するテーブルとしてもよい。
The second
第3欠陥画素マップには、B画素の判定基準を厳しくして欠陥画素を抽出してそれらの位置情報を記録したテーブルである。このときに用いる閾値は、「TR」=「TG」=「TB」×「KR」との関係になっている。なお、「KR」は、「1」以下の定数である。ここで、前述した閾値「TR」,「TG」,「TB」を「150」、そして「KR」を「0.7」とすると、R及びG画素用の閾値「TR」,「TG」は「150」、B画素用の閾値は、「KR」×「TB」なので「105」となる。したがって、図8に示す「×」の画素位置が欠陥画素として検出される。このときに検出した欠陥画素は、第1欠陥画素マップ27に対してB画素だけ厳しく検出されており、第3欠陥画素マップ29は、図8に示す「×」の画素位置を、欠陥画素を表す「1」とし、「×」以外の正常画素を「0」とするマップになる。なお、第3欠陥画素情報も、マップに限らず、例えば、図9に示すように、欠陥画素の位置情報のみを記録するテーブルとしてもよい。
The third defective pixel map is a table in which defective pixels are extracted with strict criteria for determining B pixels and their positional information is recorded. The threshold value used at this time has a relationship of “T R ” = “T G ” = “T B ” × “K R ”. “K R ” is a constant equal to or less than “1”. Here, assuming that the threshold values “T R ”, “T G ”, and “T B ” are “150” and “K R ” is “0.7”, the threshold values “T R ” for R and G pixels are used. , “T G ” is “150”, and the threshold value for the B pixel is “K R ” × “T B ”, so “105”. Therefore, the pixel position “x” shown in FIG. 8 is detected as a defective pixel. The defective pixels detected at this time are strictly detected by only B pixels with respect to the first
欠陥画素マップ選択回路18は、撮影光源により決まる2つのホワイトバランスゲインWR,WBに基づいて、複数の欠陥画素マップ27〜29のうちの何れか一つ、又は何れかを組み合わせたものを選択する。
Defective pixel
マップを選択するときには、例えば、図10に示すように、2つのホワイトバランスゲインWR,WBのうちの一方を縦軸に他方を横軸にとり、横軸と縦軸の範囲に応じて欠陥画素マップ27〜29を割り当てた決定テーブルを用いる。この決定テーブルは、予め記憶部30に記憶されている。 When selecting a map, for example, as shown in FIG. 10, two white balance gains W R, the other one of W B to the longitudinal axis horizontal axis, depending on the range of the horizontal and vertical axes defect A decision table to which pixel maps 27 to 29 are assigned is used. This determination table is stored in the storage unit 30 in advance.
決定テーブルは、B画素用のホワイトバランスゲインWBが「0」〜「1.8」の範囲で、かつR画素用のホワイトバランスゲインWRが「0」〜「1.8」の範囲のときに第1欠陥画素マップ(Map1)を選択する。また、B画素用のホワイトバランスゲインWBが「1.8」〜「3」の範囲で、かつR画素用のホワイトバランスゲインWRが「0」〜「1.8」の範囲のときに第2欠陥画素マップ(Mpa2)を選択する。さらに、B画素用のホワイトバランスゲインWBが「0」〜「1.8」の範囲で、かつR画素用のホワイトバランスゲインWRが「1.8」〜「3」の範囲のときに第3欠陥画素マップ(Map3)が選択される。そして、B画素用のホワイトバランスゲインWBが「1.8」〜「3」の範囲で、かつR画素用のホワイトバランスゲインWRが「1.8」〜「3」の範囲のときには、第2及び第3欠陥画素マップ(Map2+Map3)が選択される。この場合、第2及び第3欠陥画素マップとの論理和(OR)で得られる欠陥画素の位置情報、すなわち第2及び第3欠陥画素マップの欠陥画素の位置情報のうちの少なくともいずれかを含む位置情報で、かつ第2又は第3欠陥画素マップで得られる位置情報を欠陥画素とする。 Determination table, white balance gain W B for the B pixel is "0" in the range between "1.8" and the white balance gain W R for R pixel is in the range of "0" to "1.8" Sometimes the first defective pixel map (Map1) is selected. Further, in the range white balance gain W B for the B pixel is "1.8" to "3", and when the white balance gain W R for R pixel is in the range of "0" to "1.8" A second defective pixel map (Mpa2) is selected. Furthermore, to the extent the white balance gain W B for B pixels are "0" to "1.8", and when the white balance gain W R for R pixel is in the range of "1.8" to "3" A third defective pixel map (Map3) is selected. Then, the range of the white balance gain W B for the B pixel is "1.8" to "3", and when the white balance gain W R for R pixel is in the range of "1.8" to "3" is Second and third defective pixel maps (Map2 + Map3) are selected. In this case, at least one of the position information of the defective pixels obtained by the logical sum (OR) with the second and third defective pixel maps, that is, the position information of the defective pixels of the second and third defective pixel maps is included. Position information obtained by the position information and the second or third defective pixel map is defined as a defective pixel.
次に、デジタルカメラ10の作用を、図11を参照しながら説明する。シャッタレリーズに応答して撮像素子25から取り込んだCFA画像データは、AFE13を介してホワイトバランスゲイン算出回路17と欠陥補正回路19に取り込まれる。ホワイトバランスゲイン算出回路17は、CFA画像データに基づいてホワイトバランスゲインWR,WBを自動的に算出する。
Next, the operation of the
例えば、図12に示す分光感度特性を有する撮像素子25を用いて、CIE標準光源D65の環境下で撮影したCFA画像データの場合には、ホワイトバランスゲイン「WR」が略「2.08」、「WB」が略「1.25」になる。また、CIE標準光源Aの環境下で撮影したCFA画像データの場合には、ホワイトバランスゲイン「WR」が略「1.01」、「WB」が略「2.89」になる。なお、CIE標準光源Aの環境下で撮影したCFA画像データの場合には、R,G,B各色の画像データを無彩色の被写体に完全に揃えることはせずに、光源の影響を残す場合もある。この場合には、「WR」>「1.01」、及び、「WB」<「2.89」を満たすようにすればよい。このようにホワイトバランスゲインWR,WBは、撮像素子25の分光感度とCFA画像データから得られる所定の光源の分光強度とに基づいて算出される。
For example, in the case of CFA image data captured in the environment of the CIE standard light source D65 using the
ホワイトバランスゲイン算出回路17は、算出したホワイトバランスゲインWR,WBの情報を欠陥画素マップ選択回路18とホワイトバランス処理回路20とに送る。欠陥画素マップ選択回路18は、2つのホワイトバランスゲインWR,WBに基づいて欠陥画素マップ27〜29を選択する。
WB gain calculating
例えばホワイトバランスゲイン「WR」が略「2.08」、かつ「WB」が略「1.25」の場合には、図10で説明したように「Map2」、すなわち第2欠陥画素マップ28が選択され、また、ホワイトバランスゲイン「WR」が略「1.01」、かつ「WB」が略「2.89」の場合には、「Map3」、すなわち第3欠陥画素マップ29が選択される。選択した欠陥画素マップ27〜29は、欠陥補正回路19に送られる。
For example, when the white balance gain “W R ” is approximately “2.08” and “W B ” is approximately “1.25”, “
欠陥補正回路19は、欠陥画素マップ27〜29に対してCFA画像データを照合させて、CFA画像データ上での欠陥画素の位置を検出し、検出した欠陥画素に対して近接する同色の4つの画素位置のデジタルデータの平均値を、その欠陥画素のデジタルデータとして置き換えて欠陥画素補正を行う。なお、マップではなく欠陥画素テーブルを用いる場合には、選択したテーブルに記載の欠陥画素の位置情報を読み出してCFA画像データ上での欠陥画素の位置を検出すればよい。
The
その後、ホワイトバランス処理回路20がホワイトバランス処理を行う。ホワイトバランス処理回路20は、算出したホワイトバランスゲインWR,WBを、R画素、B画素の各デジタルデータに乗算する。
Thereafter, the white
続いて、空格子補間回路21により画素補間処理が実行されてRGB画像データが作られ、その後、色変換回路22によりRGB画像データに基づいてSRGB画像データへの色変換処理等が実行される。色変換処理を実行した後には、画像圧縮部15によりSRGB画像データを圧縮して圧縮画像データを作る。この圧縮画像データは、記録部16により、例えば内部メモリやメモリカード等に記録される。
Subsequently, pixel interpolation processing is performed by the empty lattice interpolation circuit 21 to generate RGB image data, and then color conversion processing to S RGB image data is performed by the
上記実施形態では、撮像素子25としては、CCDとして説明しているが、本発明ではこれに限らず、MOSタイプの撮像素子でもよい。また、本発明は、デジタルカメラ10に限らす、ビデオカメラ、テレビカメラ、カメラ付き携帯電話、防犯用モニタカメラ、及びスキャナー等の画像形成装置に採用することができる。
In the above embodiment, the
また、CFA24もベイヤー配列以外の種々のCFAを用いても良い。さらに、RGB3色のベイヤー配列のCFA24について説明しているが、CFAが4色以上の場合にも本発明は適用可能である。
The
上記実施形態では、オートホワイトバランス機能を備えたデジタルカメラ10について説明しているが、ユーザが所望するホワイトバランスモードを設定するホワイトバランスモード設定手段を設けてもよい。この場合には、ホワイトバランスモードに関連付けしたホワイトバランスゲインを予め記憶するゲイン記憶部と、設定したホワイトバランスモードに応じてゲイン記録部からホワイトバランスゲインを選択するゲイン選択部とを設ける。ゲイン選択部は、選択したホワイトバランスゲインの情報を欠陥画素マップ選択回路18とホワイトバランス処理回路20とに送ればよい。また、ゲイン入力手段を設け、ゲイン入力手段によりユーザが任意のホワイトバランスゲインを入力するようにしてもよい。
In the above embodiment, the
また、上記各実施形態では、欠陥補正回路19として、欠陥画素と同じ色の隣接画素値をもって欠陥画素の位置の画素値とする処理を行っているが、これに限らず、近傍の画素間の相関を調べ、相関の有る方向の同じ色の画素値を補間して欠陥画素の位置の画素値とする処理を行っても良い。
Further, in each of the above embodiments, the
上記各実施形態では、CFA画像データに対してホワイトバランス処理や空格子補間処理、及び色変換処理等を施してフルカラー画像を作り出すデモザイク処理を行い、完成した画像データに対してJPEG等の汎用の圧縮画像フォーマットで保存しているが、本発明ではこれに限らず、デモザイク処理前の生データをそのままファイル保存する機能を持つデジタルカメラにも採用することができる。 In each of the above-described embodiments, a demosaic process for generating a full color image by performing white balance processing, empty grid interpolation processing, color conversion processing, and the like on CFA image data is performed, and general-purpose data such as JPEG is performed on the completed image data. Although stored in a compressed image format, the present invention is not limited to this, and the present invention can be applied to a digital camera having a function of saving raw data before demosaic processing as it is.
この場合には、算出したホワイトバランスゲインと、欠陥画素マップ選択回路で選択した欠陥画素マップとを、生データにそれぞれ関連付けして保存すればよい。 In this case, the calculated white balance gain and the defective pixel map selected by the defective pixel map selection circuit may be stored in association with the raw data.
このようなデジタルカメラ31は、例えば、図13に示すように、光学系11、カラーイメージセンサ12、A/D32、画像処理部33、及び記録部34で構成されており、画像処理部33は、ホワイトバランスゲイン算出回路35、欠陥画素マップ選択回路36、画像圧縮回路37、及びファイル出力回路38で構成されている。
Such a
A/D32は、デジタルに変換した生のCFA画像データをホワイトバランスゲイン算出回路35と画像圧縮回路37とに出力する。ホワイトバランスゲイン算出回路35は、前述したようにCFA画像データに基づいてホワイトバランスゲインWR,WBを算出し、算出したホワイトバランスゲインWR,WBを欠陥画素マップ選択回路36とファイル出力回路38とに送る。欠陥画素マップ選択回路36は、ホワイトバランスゲインWR,WBに基づいて、記憶部39に記憶した複数の欠陥画素マップ27〜29のうちの何れかを選択し、選択した欠陥画素マップ27〜29をファイル出力回路38に送る。
The A /
画像圧縮回路37は、CFA画像データを可逆圧縮もしくは非可逆圧縮(高ビットレート)してファイル出力回路38に出力する。ファイル出力回路38は、図14に示すように、CFA圧縮画像データと、これにホワイトバランスゲインWR,WB、及び選択した欠陥画素マップをそれぞれ関連付けして一つのファイルに記録してRawファイルとして出力する。記録部34はRawファイルを例えば、内部メモリやメモリカードに記録する。
The
Rawファイルは、Rawファイル現像装置により現像される。例えば、図15に示すRawファイル現像装置40は、Rawファイル格納部41、現像処理実行部42、及び表示部43等を備えている。デジタルカメラ31に記録されたRawファイルは、入力部44からの転送指示によりインタフェースを介してRawファイル格納部41に転送される。
The raw file is developed by a raw file developing device. For example, the raw
現像処理実行部42は、欠陥画素補正処理45、ホワイトバランス処理46、画素補間処理47、及び色変換処理48等からなるプログラムで構成されており、これらプログラムは、ハードディスク等の記録媒体に記録されている。入力部44からRawファイルの現像指示が入力されると、欠陥画素補正処理45は、Rawファイルに記録されているCFA画像データと欠陥画素マップとを読み出し、前記CFA画像データに対して前記欠陥画素マップに記録の欠陥画素の位置情報に従って欠陥補正を行う。Rawファイルに記録の欠陥画素マップは、デジタルカメラ31で算出したホワイトバランスゲインに基づいて選択した欠陥画素マップである。
The development
その後、ホワイトバランス処理46は、Rawファイルに記録されているホワイトバランスゲインWB,WRを読み出し、欠陥画素補正済みのCFA画像データのうちのB,Rの各画素値に対してホワイトバランスゲインWB,WRを乗算してホワイトバランス処理を行う。その後、画素補間処理47は、ホワイトバランス処理済みのCFA画像データに基づいてRGB画像データを作り、色変換処理部位は、RGB画像データに基づいてSRGB変換を行う。このSRGB画像データに基づいて表示部43に画像が表示される。
Then,
ところで、デジタルカメラ31で算出したホワイトバランスゲインWB,WRを使用せずに、ユーザが入力部44を介して所望するホワイトバランスゲインWB,WRを入力してホワイトバランス処理を行う場合がある。この場合には、デジタルカメラ31側では、選択した欠陥画素マップのみではなく、図16に示すように、記憶部39に記録されている全ての欠陥画素マップ27〜29を、ファイル出力回路38がRawファイルの中に記録するように構成する。
Incidentally, the white balance gain W B calculated by the digital camera 31, without the use of W R, the white balance gain W B which the user desires via an input unit 44, when performing the white balance processing to input W R There is. In this case, on the
この場合、図17に示すように、Rawファイル現像装置50には、現像処理実行部51に欠陥画素マップ選択部52を設ける。欠陥画素マップ選択部52は、ホワイトバランスゲイン入力部53で指定されたホワイトバランスゲインに基づいて、Rawファイルから読み出した複数の欠陥画素マップ27〜29の中から何れかの欠陥画素マップを選択する。欠陥画素補正処理45は、Rawファイルから読み出したCFA画像データに対して、選択した欠陥画素マップに基づいて欠陥画素補正を行う。ホワイトバランス処理46は、欠陥画素補正済みのCFA画像データに対して、指定のホワイトバランスゲインを乗算する。
In this case, as shown in FIG. 17, in the raw file development device 50, a defective pixel
上記各実施形態は、ホワイトバランスゲインに基づいて欠陥画素マップを選択するように構成しているが、本発明ではこれに限らず、欠陥画素の画質への影響は空格子補間処理(画素補間処理)によっても異なるため、空格子補間処理に応じて欠陥画素マップを選択するように構成してもよい。 In each of the above embodiments, the defective pixel map is selected based on the white balance gain. However, the present invention is not limited to this, and the influence on the image quality of the defective pixel is not limited to the empty grid interpolation process (pixel interpolation process). ), The defective pixel map may be selected in accordance with the empty grid interpolation process.
例えば、以下のような空格子補間処理がある。この処理は、前述したCFA画像データのR、及びB画素位置において、上下のG画素の相関と左右のG画素の相関とを調べ、相関の高い方のG画素の平均を当該画素位置のG画素値としてGの補間を行い、R画素位置、B画素位置にて色差CR=(R−G)及びCB=(B−G)をそれぞれ計算した後にCR,CBを補間して各が素でG,CR,CBを求めて、R=CR+G,B=CB+Bから各画素のR,G,Bを求める方法である。 For example, there are the following empty grid interpolation processes. In this processing, the correlation between the upper and lower G pixels and the correlation between the left and right G pixels are examined at the R and B pixel positions of the CFA image data described above, and the average of the higher correlation G pixels is determined as the G of the pixel position. G is interpolated as a pixel value, color differences C R = (R−G) and C B = (B−G) are calculated at the R pixel position and the B pixel position, respectively, and then C R and C B are interpolated. each is seeking G, C R, and C B under, R = C R + G, B = C B + from B of each pixel R, a method of determining G, and B.
このような空格子補間処理を行う場合には、Gの白点欠陥はそのまま残るのに対し、R及びB画素の白点欠陥は、補間による平滑化のためにぼやけてしまい、画質への影響が小さくなるため、以下のような欠陥画素マップを作るのが好ましい。 When such a vacancy interpolation process is performed, the white spot defect of G remains as it is, whereas the white spot defect of R and B pixels is blurred due to smoothing by interpolation, and this affects the image quality. Therefore, it is preferable to create the following defective pixel map.
例えば、図10で説明した第1欠陥画素マップとしては、G画素を厳しく検出するために、「TR」=「KG」×「TG」=「TB」とした閾値を設定して欠陥画素を検出したマップとする。ここで、「TR」はR画素用の閾値、「TG」はG画素用の閾値、「TB」はB画素用の閾値である。なお、「KR」は、「1」以下の定数である。 For example, in the first defective pixel map described with reference to FIG. 10, in order to strictly detect the G pixel, a threshold value of “T R ” = “K G ” × “T G ” = “T B ” is set. A map in which defective pixels are detected. Here, “T R ” is a threshold value for R pixel, “T G ” is a threshold value for G pixel, and “T B ” is a threshold value for B pixel. “K R ” is a constant equal to or less than “1”.
第2欠陥画素マップとしては、G画素及びB画素を厳しく検出するために、「TR」=「KG」×「TG」=「KG」×「TB」とした閾値を設定して欠陥画素を検出したマップとする。 The second defective pixel map, in order to detect severely G and B pixels, and set the "T R" = "K G" × "T G" = thresholds as "K G" × "T B" And a map in which defective pixels are detected.
第3欠陥画素マップとしては、R画素及びG画素を厳しく検出するために、「KG」×「TR」=「KG」×「TG」=「TB」とした閾値を設定して欠陥画素を検出したマップとする。なお、B画素の白点欠陥は見えにくいため、第3欠陥画素マップとしては、「TR」=「KG」×「TG」=「TB」との閾値を設定して欠陥画素を検出したマップ、すなわち第1欠陥画素マップと同じにしてもよい。 As the third defective pixel map, in order to strictly detect the R pixel and the G pixel, a threshold value of “K G ” × “T R ” = “K G ” × “T G” = “T B” is set. And a map in which defective pixels are detected. Since the white point defect of the B pixel is difficult to see, the third defective pixel map has a threshold value of “T R ” = “K G ” × “T G” = “T B” to set the defective pixel. The detected map may be the same as the first defective pixel map.
これによれば、空格子補間処理に応じて複数の欠陥画素マップを作り、複数の欠陥画素マップの中からホワイトバランスゲインに基づいて何れかのマップを選択して欠陥画素補正を行う。 According to this, a plurality of defective pixel maps are created according to the empty grid interpolation process, and any one of the plurality of defective pixel maps is selected based on the white balance gain to perform defective pixel correction.
また、複数の空格子補間処理のうちの何れかの処理を選択する空格子補間選択部をRawファイル現像装置に設けてもよい。 In addition, a vacancy interpolation selection unit that selects any one of a plurality of vacancy interpolation processes may be provided in the Raw file developing device.
この場合、例えば、デジタルカメラ31では、遮光撮影した時の全画素のデジタルデータに基づいて生成した欠陥画素レベルマップ60(図13参照)を、工場出荷時に記憶部39に記憶しておき、撮影毎にCFA画像データとともに欠陥画素レベルマップ60をRawファイルの中に記録する。したがって、このときに作られるRawファイルには、図18に示すように、CFA画像データ等とともに欠陥画素レベルマップ60が記録される。
In this case, for example, in the
Rawファイル現像装置65では、図19に示すように、欠陥画素レベル選択部69を設ける。欠陥画素レベル選択部69は、Rawファイルから欠陥画素レベルマップ60を読み出すとともに、欠陥画素レベルマップ60に基づいて、空格子補間処理選択部70で選択した空格子補間処理に応じた欠陥画素を検出する。その後は、前述したように欠陥画素補正処理45が欠陥画素の位置情報に基づいて欠陥画素を補正する。
In the raw file developing device 65, as shown in FIG. 19, a defective pixel
欠陥画素レベルマップ60は、図20に示すように、欠陥画素補正を行うための条件に応じて各画素値を7段階の範囲に区分し、各区分を補正レベル「0」〜「6」に対応付け、図21に示すように、各画素位置に補正レベルを表す数字を付与したマップになる。
As shown in FIG. 20, the defective
ここで、例えば補正レベル「0」は、補正の必要のない画素を表し、補正レベル「1」は、当該画素で白点欠陥が目立ちやすい場合で、かつ白点欠陥が目立ちやすい被写体画像の場合に、補正した方が好ましい画素を表す。補正レベル「2」は、当該画素で白点欠陥が目立ちやすい場合に、補正した方が好ましい画素を表す。補正レベル「3」は、当該画素で白点欠陥が目立ち難い場合で、かつ白点欠陥が目立ちやすい被写体画像の場合に補正した方が好ましい画素を表す。そして、補正レベル「4」〜「6」は、当該画素で白点欠陥が目立ち難い場合でも補正した方が好ましい画素を表す。ここで、白点欠陥が目立ちやすい被写体画像とは、暗くて平坦な(フラットな)被写体画像、すなわち輝度変化や色変化の少ない画像である。 Here, for example, the correction level “0” represents a pixel that does not need to be corrected, and the correction level “1” is a case where a white spot defect is conspicuous in the pixel and a white spot defect is conspicuous. Represents a pixel that is preferably corrected. The correction level “2” represents a pixel that is preferably corrected when a white spot defect is conspicuous in the pixel. The correction level “3” represents a pixel that is preferably corrected when the white spot defect is not noticeable in the pixel and the subject image is easily noticeable. The correction levels “4” to “6” represent pixels that are preferably corrected even when white point defects are not noticeable in the pixel. Here, the subject image in which white point defects are conspicuous is a dark and flat subject image, that is, an image with little luminance change or color change.
したがって、欠陥画素レベル選択部69は、Rawファイルから読み出した欠陥画素レベルマップのうち、選択された空格子補間処理に適した補正レベルを選択し、選択した補正レベルの範囲に出力値が含まれる画素位置を欠陥画素として検出する。この場合、図22に示すように、補正レベル毎に欠陥画素の位置情報を記載した欠陥画素マップ1〜7があるものと解すことができるため、欠陥画素レベル選択部69は、複数の欠陥画素マップ1〜7の中から何れかを選択する欠陥画素情報選択手段に相当する。
Therefore, the defective pixel
このような欠陥画素レベルマップを記憶しておくことで、画素補間方法における欠陥画素の影響度、ホワイトバランスゲイン、色変換処理、及び画像データに写る被写体の情報等に基づいて、欠陥画素レベルマップから補正対象となる欠陥画素の位置情報を記載した欠陥画素マップ1〜7を選ぶことができる。なお、この場合、欠陥画素マップ1〜7のうちの一つを選択する以外に、例えば欠陥画素マップ5〜7というように、複数を選択してもよい。
By storing such a defective pixel level map, the defective pixel level map is based on the degree of influence of the defective pixel in the pixel interpolation method, white balance gain, color conversion processing, information on the subject in the image data, and the like. From the above,
上記実施形態では、撮影条件として空格子(画素)補間方法、ホワイトバランスゲイン、色変換処理、及び画像データに写る被写体の情報等に応じて欠陥画素マップを選択しているが、他の撮影条件、例えばISO感度や連写モード等に基づいて欠陥画素マップを選択するように構成してもよい。 In the above-described embodiment, the defective pixel map is selected according to the empty lattice (pixel) interpolation method, the white balance gain, the color conversion process, the information of the subject in the image data, and the like as the shooting conditions. For example, the defective pixel map may be selected based on the ISO sensitivity, the continuous shooting mode, or the like.
ISO感度に基づく場合には、デジタルカメラ側で予め決めた閾値を超える高感度が設定された場合、遮光状態で撮影した各色の画素値を厳しく判定した欠陥画素マップを選択し、また閾値未満の低感度が設定された場合には、前記各色の画素値を緩く判定した欠陥画素マップを選択するように構成するのが好適である。なお、逆に高感度の場合には緩く判定した欠陥画素マップを、また低感度の場合には厳しく判定した欠陥画素マップを選択するように構成してもよい。 When based on the ISO sensitivity, when a high sensitivity exceeding a predetermined threshold is set on the digital camera side, a defective pixel map is selected in which the pixel value of each color photographed in a light-shielded state is strictly determined, and less than the threshold When low sensitivity is set, it is preferable to select a defective pixel map in which the pixel value of each color is determined to be loose. Conversely, a defective pixel map determined loosely in the case of high sensitivity may be selected, and a defective pixel map determined strictly in the case of low sensitivity may be selected.
また、連写モードが設定された場合には、単写モードに比べて緩く判定した欠陥画素マップを選択するように構成するのが好ましい。 In addition, when the continuous shooting mode is set, it is preferable to select a defective pixel map that is determined to be looser than the single shooting mode.
上記各実施形態では、白点欠陥の補正について説明しているが、黒点欠陥の補正にも本発明を採用することができる。黒点欠陥を補正する場合には、絞りやシャッターを所定量に開放して所定の露出条件で撮像し、この撮像で得られたCFA画像データを用いて、撮影条件に応じて色毎に決めた閾値に基づいて黒点欠陥を検出した欠陥画素情報を複数生成すればよい。この場合、各色に設定される閾値は、画素値のうちの正常な範囲の画素値を下回る値に設定し、閾値未満の値を有する画素を黒点欠陥として検出すればよい。 In each of the above-described embodiments, correction of white spot defects has been described, but the present invention can also be adopted for correction of black spot defects. When correcting the black spot defect, the aperture and the shutter are opened to a predetermined amount, and an image is captured under a predetermined exposure condition. The CFA image data obtained by this imaging is used for each color according to the imaging condition. What is necessary is just to produce | generate several defective pixel information which detected the black spot defect based on the threshold value. In this case, the threshold value set for each color may be set to a value lower than the pixel value in the normal range of the pixel values, and a pixel having a value less than the threshold value may be detected as a black spot defect.
上記各実施形態では、種々の実施の形態および変形例を説明したが、本発明はこれらの内容に限定されるものではない。本発明の技術的思想の範囲内で考えられるその他の態様も本発明の範囲内に含まれる。 In the above embodiments, various embodiments and modifications have been described. However, the present invention is not limited to these contents. Other embodiments conceivable within the scope of the technical idea of the present invention are also included in the scope of the present invention.
10,31 デジタルカメラ
17,35 ホワイトバランスゲイン算出回路
18,36 欠陥画素マップ選択回路
40,50,65 Rawファイル現像装置
10, 31
Claims (8)
撮影条件を設定する撮影条件設定手段と、
前記欠陥画素の位置情報が前記カラーの画像データを構成する色毎に記録されている欠陥画素情報を複数記憶する欠陥画素情報記憶手段と、
前記設定した撮影条件に応じて前記複数の欠陥画素情報のうちの何れかの欠陥画素情報を選択する選択手段と、
前記選択した欠陥画素情報に記録の欠陥画素の位置情報に基づいて欠陥画素を補正する欠陥画素補正手段と、
を備えたことを特徴とする欠陥画素補正装置。 In a defective pixel correction device that corrects a defective pixel detected based on color image data obtained from an image sensor when photographing at a predetermined brightness,
Shooting condition setting means for setting shooting conditions;
Defective pixel information storage means for storing a plurality of pieces of defective pixel information recorded for each color constituting position information of the defective pixels in the color image data;
Selecting means for selecting any defective pixel information from the plurality of defective pixel information according to the set photographing condition;
Defective pixel correction means for correcting defective pixels based on position information of defective pixels recorded in the selected defective pixel information;
A defective pixel correction apparatus comprising:
前記撮影条件は、ホワイトバランスゲイン、又はISO感度になっていることを特徴する欠陥画素補正装置。 The defective pixel correction device according to claim 1,
The defective pixel correction apparatus according to claim 1, wherein the photographing condition is a white balance gain or an ISO sensitivity.
前記欠陥画素情報は、前記撮影条件に応じて前記色毎に決めた閾値に基づいて検出した欠陥画素の位置情報が記録されていることを特徴とする欠陥画素補正装置。 The defective pixel correction device according to claim 1 or 2,
The defective pixel correction device, wherein the defective pixel information is recorded with positional information of defective pixels detected based on a threshold value determined for each color according to the photographing condition.
前記カラーの画像データは、
空間周波数が最も高い第1色成分の色情報を出力する複数の画素と、前記第1色成分の色情報を出力せず前記第1色成分よりも空間周波数が低い第2色成分又は第3色成分の色情報を出力する複数の画素と、が2次元配列された撮像素子によって生成される画像データになっていることを特徴とする欠陥画素補正装置。 The defective pixel correction device according to any one of claims 1 to 3,
The color image data is
A plurality of pixels that output color information of the first color component having the highest spatial frequency, and a second color component or third color that does not output color information of the first color component and has a spatial frequency lower than that of the first color component. A defective pixel correction apparatus, wherein a plurality of pixels that output color information of color components are image data generated by an image sensor that is two-dimensionally arranged.
前記撮影条件をホワイトバランスとし、
所定の明るさで撮影した時に撮像素子から得られるカラーの画像データに対して、色毎に一律の閾値を用いて検出した第1欠陥画素情報と、第2色成分の色情報を他の色情報よりも厳しく判定する閾値を用いて検出した第2欠陥画素情報と、第3色成分の色情報を他の色情報よりも厳しく判定する閾値を用いて検出した第3欠陥画素マップとを前記欠陥画素情報記憶手段に予め記憶しておくとともに、
撮影毎に得られるカラーの画像データに基づいて前記第2及び第3色成分の色情報に応じた二つのホワイトバランスゲインを算出するホワイトバランスゲイン算出回路を設け、
前記選択手段は、前記二つのホワイトバランスゲインに基づいて第1〜第3欠陥画素情報のうちから何れかを選択することを特徴とする欠陥画素補正装置。 The defective pixel correction device according to claim 4,
The shooting condition is white balance,
For color image data obtained from an image sensor when photographing at a predetermined brightness, the first defective pixel information detected using a uniform threshold value for each color and the color information of the second color component for other colors Second defective pixel information detected using a threshold that is determined more strictly than information, and a third defective pixel map detected using a threshold that determines the color information of the third color component more strictly than other color information. While pre-stored in the defective pixel information storage means,
A white balance gain calculating circuit for calculating two white balance gains according to the color information of the second and third color components based on color image data obtained for each shooting;
The defective pixel correction apparatus, wherein the selection unit selects one of the first to third defective pixel information based on the two white balance gains.
撮影条件を設定する撮影条件設定ステップと、
前記設定した撮影条件に応じて、前記欠陥画素の位置情報が前記カラーの画像データを構成する色毎に記録されている複数の欠陥画素情報のうちの何れかを選択する欠陥画素情報選択ステップと、
前記選択した欠陥画素情報に記録されている欠陥画素の位置情報に基づいて欠陥画素を補正する欠陥画素補正ステップと、
を含むことを特徴とする欠陥画素補正方法。 In a defective pixel correction method for correcting color image data based on defective pixel information for each color,
A shooting condition setting step for setting shooting conditions;
A defective pixel information selection step for selecting any one of a plurality of defective pixel information recorded for each color constituting the color image data, according to the set photographing condition; ,
A defective pixel correction step of correcting the defective pixel based on the position information of the defective pixel recorded in the selected defective pixel information;
A defective pixel correction method comprising:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010206363A JP2012065069A (en) | 2010-09-15 | 2010-09-15 | Defect detection and compensation apparatus, program and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010206363A JP2012065069A (en) | 2010-09-15 | 2010-09-15 | Defect detection and compensation apparatus, program and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2012065069A true JP2012065069A (en) | 2012-03-29 |
Family
ID=46060352
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2010206363A Withdrawn JP2012065069A (en) | 2010-09-15 | 2010-09-15 | Defect detection and compensation apparatus, program and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2012065069A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105979233A (en) * | 2016-06-30 | 2016-09-28 | 北京奇艺世纪科技有限公司 | Mosaic removing method, image processor and image sensor |
| CN116074495A (en) * | 2023-03-07 | 2023-05-05 | 合肥埃科光电科技股份有限公司 | A storage method, detection and correction method and device for bad pixels of an image sensor |
| WO2024125145A1 (en) * | 2022-12-16 | 2024-06-20 | 深圳市中兴微电子技术有限公司 | Defect pixel detection method and apparatus, and device and medium |
-
2010
- 2010-09-15 JP JP2010206363A patent/JP2012065069A/en not_active Withdrawn
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105979233A (en) * | 2016-06-30 | 2016-09-28 | 北京奇艺世纪科技有限公司 | Mosaic removing method, image processor and image sensor |
| WO2024125145A1 (en) * | 2022-12-16 | 2024-06-20 | 深圳市中兴微电子技术有限公司 | Defect pixel detection method and apparatus, and device and medium |
| CN116074495A (en) * | 2023-03-07 | 2023-05-05 | 合肥埃科光电科技股份有限公司 | A storage method, detection and correction method and device for bad pixels of an image sensor |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5045421B2 (en) | Imaging apparatus, color noise reduction method, and color noise reduction program | |
| JP5152114B2 (en) | Image processing apparatus, image processing method, imaging apparatus, and computer program | |
| JP4768448B2 (en) | Imaging device | |
| JP4904440B2 (en) | Image processing method and apparatus, image processing program, and medium storing this program | |
| JP6086663B2 (en) | Image processing apparatus, endoscope apparatus, and isolated point noise correction method | |
| US20100066868A1 (en) | Image processing apparatus and method of processing image | |
| CN102883108B (en) | Picture pick-up device and control method, image processing equipment and method | |
| KR101639664B1 (en) | Photographing apparatus and photographing method | |
| US20140204248A1 (en) | Apparatus and method for image processing and storage medium, and image pickup apparatus | |
| JP5621053B2 (en) | Image processing apparatus, method and program, and imaging apparatus | |
| JP2015186247A (en) | Image processing system, control method, and program | |
| JP2016012746A (en) | Signal processing apparatus, signal processing method, and signal processing program | |
| JP6282123B2 (en) | Image processing apparatus, image processing method, and program | |
| US8237829B2 (en) | Image processing device, image processing method, and imaging apparatus | |
| JP5552795B2 (en) | Imaging apparatus, image processing apparatus, and program | |
| JP2012065069A (en) | Defect detection and compensation apparatus, program and storage medium | |
| US8896731B2 (en) | Image processing apparatus, image processing method, and camera module | |
| JP2009100302A (en) | Image processing apparatus, image processing method, program, imaging apparatus, and imaging method | |
| JP2010068465A (en) | Image processing apparatus, image capturing apparatus, and image processing method | |
| JP2005167485A (en) | Image processing apparatus and image processing method | |
| JP2010178226A (en) | Imaging apparatus, chromatic aberration suppressing method, and chromatic aberration suppressing circuit, and program | |
| US20060092440A1 (en) | Human visual system based design of color signal transformation in a color imaging system | |
| JP4779588B2 (en) | Image processing apparatus, image processing method, and program thereof | |
| JP4732795B2 (en) | Solid-state imaging device and image correction method | |
| JP2013055459A (en) | Imaging device, image processing device, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20131203 |