[go: up one dir, main page]

JP2012065069A - Defect detection and compensation apparatus, program and storage medium - Google Patents

Defect detection and compensation apparatus, program and storage medium Download PDF

Info

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
Application number
JP2010206363A
Other languages
Japanese (ja)
Inventor
Hideyasu Kuniba
英康 国場
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.)
Nikon Corp
Original Assignee
Nikon Corp
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 Nikon Corp filed Critical Nikon Corp
Priority to JP2010206363A priority Critical patent/JP2012065069A/en
Publication of JP2012065069A publication Critical patent/JP2012065069A/en
Withdrawn legal-status Critical Current

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は、選択した欠陥画素マップに記載の欠陥画素の位置情報に基づいて欠陥画素を補正する。
【選択図】図1
Processing 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 Patent Document 1, position information of a pixel in which an output value of each pixel obtained from the image sensor is equal to or more than a first threshold when exposed for a predetermined time in a completely dark state, and RGB information of the pixel position And the output value are stored in the defective pixel candidate table in advance, and the gain corresponding to the white balance is set to the output value of the pixel described in the defective pixel candidate table in response to the white balance setting performed before or after photographing. Multiplying is performed, and defective pixels are corrected by detecting, as a defective pixel, a pixel whose multiplied value exceeds a second threshold value that is larger than the first threshold value.

特開2007−140646号公報JP 2007-140646 A

しかしながら、特許文献1に記載の発明では、ホワイトバランスの設定毎に、そのゲインを欠陥候補画素のデジタルデータに乗算する演算と、乗算したデータと第2閾値とを比較して欠陥画素を抽出する比較判定との二つの処理を行う必要があるため、欠陥補正をして画像を得るのに長時間を要してしまい、次の撮影を迅速に行えないおそれがある。   However, in the invention described in Patent Document 1, every time white balance is set, an operation for multiplying the digital data of the defect candidate pixel by the gain, and the multiplied data and the second threshold value are compared to extract the defective pixel. Since it is necessary to perform the two processes of comparison and determination, it takes a long time to perform defect correction and obtain an image, and there is a possibility that the next photographing cannot be performed quickly.

本発明は、上記問題に鑑みてなされたものであり、ホワイトバランス等の撮影条件を考慮して欠陥画素を補正する処理を短時間で行うことができる欠陥画素補正装置、及びプログラム、並びに記憶媒体を提供することを目的とする。   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.

本発明を採用したデジタルカメラの構成を示すブロック図である。It is a block diagram which shows the structure of the digital camera which employ | adopted this invention. 原色ベイヤー配列のカラーフィルタアレイを示す説明図である。It is explanatory drawing which shows the color filter array of a primary color Bayer arrangement. 撮像素子から得られる1画面分のCFA画像データを構成する各画素の出力値を二次元配列で概略的に示す説明図である。It is explanatory drawing which shows roughly the output value of each pixel which comprises the CFA image data for 1 screen obtained from an image pick-up element by a two-dimensional arrangement | sequence. 第1欠陥画素マップを概略的に示す説明図である。It is explanatory drawing which shows a 1st defective pixel map roughly. 第1欠陥画素マップに代えてテーブルメモリにした別例を示す説明図である。It is explanatory drawing which shows another example which replaced with the 1st defective pixel map and was made into the table memory. 第2欠陥画素マップを概略的に示す説明図である。It is explanatory drawing which shows a 2nd defective pixel map roughly. 第2欠陥画素マップに代えてテーブルメモリにした別例を示す説明図である。It is explanatory drawing which shows another example which replaced with the 2nd defective pixel map and was made into the table memory. 第3欠陥画素マップを概略的に示す説明図である。It is explanatory drawing which shows a 3rd defective pixel map roughly. 第3欠陥画素マップに代えてテーブルメモリにした別例を示す説明図である。It is explanatory drawing which shows another example which replaced with the 3rd defective pixel map and was made into the table memory. 欠陥画素マップを選択する時に用いる決定テーブルを概略的に示す説明図である。It is explanatory drawing which shows roughly the determination table used when selecting a defective pixel map. デジタルカメラの動作手順を示すフローチャート図である。It is a flowchart figure which shows the operation | movement procedure of a digital camera. 撮像素子の感度特定を概略的に示すグラフである。It is a graph which shows roughly the sensitivity specific of an image sensor. Rawファイルを記録するデジタルカメラの別の実施形態を示すブロック図である。It is a block diagram which shows another embodiment of the digital camera which records a Raw file. 図13で説明したカメラで生成されるRawファイルの中身を示す説明図である。It is explanatory drawing which shows the content of the Raw file produced | generated with the camera demonstrated in FIG. 図14で説明したRawファイルを現像するRawファイル現像装置の構成を示すブロック図である。It is a block diagram which shows the structure of the Raw file developing device which develops the Raw file demonstrated in FIG. 任意のホワイトバランスゲインを設定するデジタルカメラで生成されるRawファイルの中身を示す説明図である。It is explanatory drawing which shows the content of the Raw file produced | generated with the digital camera which sets arbitrary white balance gains. 図16で説明したRawファイルを読み込むとともに、任意のホワイトバランスゲインを設定するようにしたRawファイル現像装置の実施形態を示すブロック図である。FIG. 17 is a block diagram illustrating an embodiment of a raw file developing device that reads the raw file described in FIG. 16 and sets an arbitrary white balance gain. 欠陥画素レベルマップを記録するRawファイルの構成を概略的に示す説明図である。It is explanatory drawing which shows schematically the structure of the Raw file which records a defective pixel level map. 図18で説明したRawファイルを読み込むとともに、任意の空格子補間処理を設定するようにしたRawファイル現像装置の実施形態を示すブロック図である。FIG. 19 is a block diagram illustrating an embodiment of a raw file developing device that reads the raw file described in FIG. 18 and sets an arbitrary empty grid interpolation process. 欠陥画素レベルマップの生成するために各画素値を段階的に区分した範囲と各範囲に対応する補正レベルとの関係を示す説明図である。It is explanatory drawing which shows the relationship between the range which divided each pixel value in steps in order to produce | generate a defective pixel level map, and the correction level corresponding to each range. 欠陥画素レベルマップの概略を示す説明図である。It is explanatory drawing which shows the outline of a defective pixel level map. 図21で説明した補正レベルと欠陥画素マップとの関係を示す説明図である。It is explanatory drawing which shows the relationship between the correction level demonstrated in FIG. 21, and a defective pixel map.

デジタルカメラ10は、図1に示すように、光学系11、カラーイメージセンサ12、アナログフロントエンド(以下「AFE」と称す)13、画像処理部14、画像圧縮部15、及び記録部16を備えている。画像処理部14は、ホワイトバランスゲイン算出回路17、欠陥画素マップ選択回路18、欠陥補正回路19、ホワイトバランス処理回路20、空格子補間回路21、及び色変換回路22等で構成されている。この画像処理部14には、ワークメモリ用のRAM23が接続されている。   As shown in FIG. 1, the digital camera 10 includes an optical system 11, a color image sensor 12, an analog front end (hereinafter referred to as “AFE”) 13, an image processing unit 14, an image compression unit 15, and a recording unit 16. ing. The image processing unit 14 includes a white balance gain calculation circuit 17, a defective pixel map selection circuit 18, a defect correction circuit 19, a white balance processing circuit 20, a sky lattice interpolation circuit 21, a color conversion circuit 22, and the like. A RAM 23 for work memory is connected to the image processing unit 14.

光学系11は、撮影レンズや絞り等で構成されている。カラーイメージセンサ(ベイヤー配列型単板撮像素子)12は、カラーフィルタアレイ(CFA)24とCCD等の固体撮像素子(以下「撮像素子」と称す)25とで構成されており、光学系11により結像される光学像を光電変換して得られる電荷を受光セル毎に一定時間蓄積し受光セル(画素)毎の受光量に応じた電気信号を出力する。   The optical system 11 includes a photographic lens, a diaphragm, and the like. The color image sensor (Bayer array type single-plate image pickup device) 12 includes a color filter array (CFA) 24 and a solid-state image pickup device 25 (hereinafter referred to as “image pickup device”) 25 such as a CCD. Charges obtained by photoelectrically converting the optical image to be formed are accumulated for a certain time for each light receiving cell, and an electric signal corresponding to the amount of light received for each light receiving cell (pixel) is output.

カラーフィルタアレイ24は、撮像素子25の総画素数Nに対して、例えば、詳しくは図2に示すように、G(緑色)の解像度がN/2、R(赤色)及びB(青色)の解像度がN/4となる原色ベイヤー配列になっている。   In the color filter array 24, for example, as shown in detail in FIG. 2, the resolution of G (green) is N / 2, and R (red) and B (blue) with respect to the total number N of pixels of the image sensor 25. The primary color Bayer array has a resolution of N / 4.

ここで、各画素は、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 image sensor 25 outputs a plurality of pixels that output color information of the first color component having the highest spatial frequency, and a second pixel 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 plurality of pixels that output color information of the color component or the third color component are two-dimensionally arranged.

AFE13は、カラーイメージセンサ12から出力されるアナログの電気信号をデジタルに変換してCFA画像データとして出力するとともに、デジタル変換に際してノイズ除去等の処理を施す。   The AFE 13 converts an analog electrical signal output from the color image sensor 12 into digital and outputs it as CFA image data, and performs processing such as noise removal at the time of digital conversion.

ホワイトバランスゲイン算出回路17は、CFA画像データに基づいて、例えば3色のうちのR(赤色)及びB(青色)の色情報を、G(緑色)の色情報のピークレベルと等しくなるように調整するために、ホワイトバランス補正処理の時にRGBの各値に乗算する係数、すなわちホワイトバランスゲインを算出する。このホワイトバランス調整量は、R/Gゲイン(緑色に対する赤色のゲイン)の値Wと、B/Gゲイン(緑色に対する青色のゲイン)の値Wとで構成されている。 Based on the CFA image data, the white balance gain calculation circuit 17 sets, for example, the color information of R (red) and B (blue) of the three colors to be equal to the peak level of the color information of G (green). In order to adjust, a coefficient for multiplying each RGB value at the time of white balance correction processing, that is, a white balance gain is calculated. The white balance adjusting amount is composed of the value W R of R / G gain (red gain for green), and the value W B of B / G gain (blue gain to green).

一例として、ホワイトバランスゲイン算出回路17は、JISZ8725の「光源の分布温度及び色温度・相関色温度の測定方法」に従ってCFA画像データをTC−Duv座標のデータに変換し、画像データにおける無彩色部分を判定する。そして、座標変換後のデータが無彩色と判定された場合には、ホワイトバランスゲイン算出回路17は、TC−Duv座標から求まる相関色温度を所定の色温度−ホワイトバランスゲインの関係式に当てはめてGに対するR及びBのホワイトバランスゲインW,Wを算出する。 As an example, the white balance gain calculation circuit 17 converts the CFA image data into TC-Duv coordinate data according to JIS Z8725 “Measurement method of distribution temperature and color temperature / correlated color temperature of light source”, and achromatic portion in the image data. Determine. When the data after coordinate conversion is determined to be achromatic, the white balance gain calculation circuit 17 applies the correlated color temperature obtained from the TC-Duv coordinates to a predetermined color temperature-white balance gain relational expression. R and B white balance gains W R and W B for G are calculated.

ホワイトバランスゲインW,Wの情報は、欠陥画素マップ選択回路18とホワイトバランス処理回路20とにそれぞれ送られる。欠陥画素マップ選択回路18は、第1ないし第3の欠陥画素マップ27〜29を記憶する記憶部30を有し、算出した2つのホワイトバランスゲインW,Wに基づいて第1ないし第3の欠陥画素マップ27〜29のうちのいずれかを選択する。 Information of the white balance gain W R, W B are sent respectively to the defective pixel map selection circuit 18 and the white balance processing circuit 20. The defective pixel map selection circuit 18 includes a storage unit 30 that stores the first to third defective pixel maps 27 to 29, and the first to third based on the calculated two white balance gains W R and W B. Any one of the defective pixel maps 27 to 29 is selected.

各欠陥画素マップ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 image sensor 25 and the photographing light source.

欠陥補正回路19は、選択した欠陥画素マップ27〜29に記録されている欠陥画素を補正する。ホワイトバランス処理回路20は、無彩色の被写体が無彩色な被写体の画像になるように、ホワイトバランスゲイン算出回路17で算出した2つのホワイトバランスゲインW,Wを、対応する色の画素値に乗算する。 The defect correction circuit 19 corrects the defective pixels recorded in the selected defective pixel maps 27-29. The white balance processing circuit 20 uses the two white balance gains W R and W B calculated by the white balance gain calculation circuit 17 as pixel values of corresponding colors so that the achromatic subject becomes an achromatic subject image. Multiply by.

空格子補間回路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画像データに対して表示に適したRGB等の色変換や階調変換等を行う。 The obtained RBG image data is data based on the sensitivity characteristics of the image sensor 25. Therefore, the color conversion circuit 22 performs color conversion and gradation conversion, the S RGB or the like suitable for display to the RGB image data.

画像圧縮部15は、RGB画像データを非可逆圧縮方式、例えば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 recording unit 16 records the compressed image data in, for example, an internal memory or a removable memory card.

次に、上記構成の作用を簡単に説明する。デジタルカメラ10の組立工場には、欠陥画素マップ生成手段と、書き込み手段とを備えている。欠陥画素マップ生成手段は、撮影光源に応じて複数の欠陥画素マップ27〜29を予め生成し、書き込み手段は、生成した欠陥画素マップ27〜29をデジタルカメラ10の記憶部30に記録する。   Next, the operation of the above configuration will be briefly described. The assembly factory of the digital camera 10 includes defective pixel map generation means and writing means. The defective pixel map generating unit generates a plurality of defective pixel maps 27 to 29 in advance according to the photographing light source, and the writing unit records the generated defective pixel maps 27 to 29 in the storage unit 30 of the digital camera 10.

欠陥画素マップ27〜29は、予め撮像して得られるCFA画像データに基づいて、撮像素子25の各画素のうちの異常な値を出力する画素を抽出し、抽出した欠陥画素のみの位置情報をテーブルとして記録したものである。   The defective pixel maps 27 to 29 extract pixels that output abnormal values from the respective pixels of the image sensor 25 based on CFA image data obtained by imaging in advance, and position information of only the extracted defective pixels. It is recorded as a table.

具体的には、真っ暗な状態で所定時間露光した時に撮像素子25の各画素から出力されるCFA画像データを12ビットのデジタルデータとして示した値と、予め決めた閾値とを比較し、前記閾値を超える値の画素を欠陥画素として抽出し、その抽出した欠陥画素の位置情報を記憶する。   Specifically, a value indicating CFA image data output from each pixel of the image sensor 25 when exposed for a predetermined time in a completely dark state as 12-bit digital data is compared with a predetermined threshold, and the threshold Is extracted as a defective pixel, and the position information of the extracted defective pixel is stored.

例えば、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の区別無く欠陥画素を抽出してそれらの位置情報を記録したテーブルである。このときに用いる閾値は、全て一律にした値、すなわち「T」=「T」=「T」との関係になっている。ここで、「T」はR画素用の閾値、「T」はG画素用の閾値、TはB画素用の閾値である。ここで、閾値「T」,「T」,「T」を、例えば「150」に設定すると、第1欠陥画素マップ27は、例えば図4に示す「×」の画素位置を、欠陥画素を表す「1」とし、「×」以外の正常画素を「0」とするマップになる。なお、第1欠陥画素情報としては、マップ27に限らず、例えば、図5に示すように、欠陥画素の位置情報のみを記録するテーブルとしてもよい。 For example, the first defective pixel map 27 is a table in which defective pixels are extracted without distinguishing RGB and their position information is recorded. The threshold values used at this time are all uniform values, that is, “T R ” = “T G ” = “T B ”. 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. Here, when the thresholds “T R ”, “T G ”, and “T B ” are set to “150”, for example, the first defective pixel map 27 displays the pixel position “×” shown in FIG. The map is “1” representing a pixel and “0” for normal pixels other than “x”. The first defective pixel information is not limited to the map 27. For example, as shown in FIG. 5, the first defective pixel information may be a table that records only the position information of the defective pixels.

第2欠陥画素マップ28には、R画素の判定基準を厳しくして欠陥画素を抽出してそれらの位置情報を記録したテーブルである。このときに用いる閾値は、「K」×「T」=「T」=「T」との関係になっている。なお、「K」は、「1」以下の定数である。ここで、前述した閾値「T」,「T」,「T」を、例えば「150」に設定し、そして「K」を例えば「0.7」に設定すると、G及びB画素用の閾値「T」,「T」が「150」であるのに対し、R画素用の閾値は「K」×「T」なので「105」となる。したがって、図6に示すように、「×」の画素位置が欠陥画素として検出される。このときに検出した欠陥画素は、第1欠陥画素マップ27に対してR画素だけ厳しく検出されており、第2欠陥画素マップ28は、例えば図6に示す「×」の画素位置を、欠陥画素を表す「1」とし、「×」以外の正常画素を「0」とするマップになる。なお、前述したように、第2欠陥画素情報としては、図7に示すように、欠陥画素の位置情報のみを記録するテーブルとしてもよい。 The second defective pixel map 28 is a table in which defective pixels are extracted with stricter determination criteria for R pixels and their positional information is recorded. The threshold used at this time has a relationship of “K R ” × “T R ” = “T G ” = “T B ”. “K R ” is a constant equal to or less than “1”. Here, when the threshold values “T R ”, “T G ”, and “T B ” described above are set to “150” and “K R ” is set to “0.7”, for example, the G and B pixels The threshold values “T G ” and “T B ” are “150”, whereas the threshold value for the R pixel is “K R ” × “T R ”, so “105”. Therefore, as shown in FIG. 6, a pixel position “x” is detected as a defective pixel. The defective pixels detected at this time are strictly detected by R pixels with respect to the first defective pixel map 27, and the second defective pixel map 28 indicates, for example, a pixel position of “x” shown in FIG. Is a map in which normal pixels other than “x” are “0”. As described above, the second defective pixel information may be a table that records only the positional information of the defective pixels, as shown in FIG.

第3欠陥画素マップには、B画素の判定基準を厳しくして欠陥画素を抽出してそれらの位置情報を記録したテーブルである。このときに用いる閾値は、「T」=「T」=「T」×「K」との関係になっている。なお、「K」は、「1」以下の定数である。ここで、前述した閾値「T」,「T」,「T」を「150」、そして「K」を「0.7」とすると、R及びG画素用の閾値「T」,「T」は「150」、B画素用の閾値は、「K」×「T」なので「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 defective pixel map 27, and the third defective pixel map 29 indicates the pixel position of “x” shown in FIG. This is a map in which “1” is expressed, and normal pixels other than “x” are “0”. The third defective pixel information is not limited to the map, and may be a table that records only the position information of the defective pixels as shown in FIG. 9, for example.

欠陥画素マップ選択回路18は、撮影光源により決まる2つのホワイトバランスゲインW,Wに基づいて、複数の欠陥画素マップ27〜29のうちの何れか一つ、又は何れかを組み合わせたものを選択する。 Defective pixel map selection circuit 18, the two white balance gains W R determined by the imaging light source, based on W B, any one of a plurality of defective pixel map 27 to 29, or a combination of any select.

マップを選択するときには、例えば、図10に示すように、2つのホワイトバランスゲインW,Wのうちの一方を縦軸に他方を横軸にとり、横軸と縦軸の範囲に応じて欠陥画素マップ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画素用のホワイトバランスゲインWが「0」〜「1.8」の範囲で、かつR画素用のホワイトバランスゲインWが「0」〜「1.8」の範囲のときに第1欠陥画素マップ(Map1)を選択する。また、B画素用のホワイトバランスゲインWが「1.8」〜「3」の範囲で、かつR画素用のホワイトバランスゲインWが「0」〜「1.8」の範囲のときに第2欠陥画素マップ(Mpa2)を選択する。さらに、B画素用のホワイトバランスゲインWが「0」〜「1.8」の範囲で、かつR画素用のホワイトバランスゲインWが「1.8」〜「3」の範囲のときに第3欠陥画素マップ(Map3)が選択される。そして、B画素用のホワイトバランスゲインWが「1.8」〜「3」の範囲で、かつR画素用のホワイトバランスゲインWが「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画像データに基づいてホワイトバランスゲインW,Wを自動的に算出する。 Next, the operation of the digital camera 10 will be described with reference to FIG. The CFA image data captured from the image sensor 25 in response to the shutter release is captured by the white balance gain calculation circuit 17 and the defect correction circuit 19 via the AFE 13. White balance gain calculation circuit 17 automatically calculates the white balance gain W R, the W B on the basis of the CFA image data.

例えば、図12に示す分光感度特性を有する撮像素子25を用いて、CIE標準光源D65の環境下で撮影したCFA画像データの場合には、ホワイトバランスゲイン「W」が略「2.08」、「W」が略「1.25」になる。また、CIE標準光源Aの環境下で撮影したCFA画像データの場合には、ホワイトバランスゲイン「W」が略「1.01」、「W」が略「2.89」になる。なお、CIE標準光源Aの環境下で撮影したCFA画像データの場合には、R,G,B各色の画像データを無彩色の被写体に完全に揃えることはせずに、光源の影響を残す場合もある。この場合には、「W」>「1.01」、及び、「W」<「2.89」を満たすようにすればよい。このようにホワイトバランスゲインW,Wは、撮像素子25の分光感度とCFA画像データから得られる所定の光源の分光強度とに基づいて算出される。 For example, in the case of CFA image data captured in the environment of the CIE standard light source D65 using the image sensor 25 having the spectral sensitivity characteristic shown in FIG. 12, the white balance gain “W R ” is approximately “2.08”. , “W B ” becomes approximately “1.25”. Further, in the case of CFA image data shot under the environment of the CIE standard light source A, the white balance gain “W R ” is substantially “1.01”, and “W B ” is substantially “2.89”. In the case of CFA image data photographed in the environment of the CIE standard light source A, the influence of the light source is left without completely aligning the R, G, B color image data with the achromatic subject. There is also. In this case, “W R ”> “1.01” and “W B ” <“2.89” may be satisfied. As described above, the white balance gains W R and W B are calculated based on the spectral sensitivity of the image sensor 25 and the spectral intensity of a predetermined light source obtained from the CFA image data.

ホワイトバランスゲイン算出回路17は、算出したホワイトバランスゲインW,Wの情報を欠陥画素マップ選択回路18とホワイトバランス処理回路20とに送る。欠陥画素マップ選択回路18は、2つのホワイトバランスゲインWR,に基づいて欠陥画素マップ27〜29を選択する。 WB gain calculating circuit 17, the calculated white balance gain W R, and sends the information of W B to the defective pixel map selection circuit 18 and the white balance processing circuit 20. Defective pixel map selection circuit 18, the two white balance gains W R, selects a defective pixel map 27 to 29 based on the W B.

例えばホワイトバランスゲイン「W」が略「2.08」、かつ「W」が略「1.25」の場合には、図10で説明したように「Map2」、すなわち第2欠陥画素マップ28が選択され、また、ホワイトバランスゲイン「W」が略「1.01」、かつ「W」が略「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”, “Map 2”, that is, the second defective pixel map as described with reference to FIG. 28, and when the white balance gain “W R ” is approximately “1.01” and “W B ” is approximately “2.89”, “Map 3”, that is, the third defective pixel map 29 Is selected. The selected defective pixel maps 27 to 29 are sent to the defect correction circuit 19.

欠陥補正回路19は、欠陥画素マップ27〜29に対してCFA画像データを照合させて、CFA画像データ上での欠陥画素の位置を検出し、検出した欠陥画素に対して近接する同色の4つの画素位置のデジタルデータの平均値を、その欠陥画素のデジタルデータとして置き換えて欠陥画素補正を行う。なお、マップではなく欠陥画素テーブルを用いる場合には、選択したテーブルに記載の欠陥画素の位置情報を読み出してCFA画像データ上での欠陥画素の位置を検出すればよい。   The defect correction circuit 19 collates the CFA image data against the defective pixel maps 27 to 29, detects the position of the defective pixel on the CFA image data, and detects the same four colors of the same color adjacent to the detected defective pixel. The defective pixel correction is performed by replacing the average value of the digital data at the pixel position with the digital data of the defective pixel. If a defective pixel table is used instead of a map, the position information of the defective pixel described in the selected table may be read to detect the position of the defective pixel on the CFA image data.

その後、ホワイトバランス処理回路20がホワイトバランス処理を行う。ホワイトバランス処理回路20は、算出したホワイトバランスゲインW,Wを、R画素、B画素の各デジタルデータに乗算する。 Thereafter, the white balance processing circuit 20 performs white balance processing. White balance processing circuit 20, the calculated white balance gain W R, the W B, multiplies the R pixel, each digital data of the B pixel.

続いて、空格子補間回路21により画素補間処理が実行されてRGB画像データが作られ、その後、色変換回路22によりRGB画像データに基づいてRGB画像データへの色変換処理等が実行される。色変換処理を実行した後には、画像圧縮部15によりRGB画像データを圧縮して圧縮画像データを作る。この圧縮画像データは、記録部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 color conversion circuit 22 based on the RGB image data. . After performing the color conversion process creates a compressed image data by compressing the S RGB image data by the image compression unit 15. The compressed image data is recorded by the recording unit 16 on, for example, an internal memory or a memory card.

上記実施形態では、撮像素子25としては、CCDとして説明しているが、本発明ではこれに限らず、MOSタイプの撮像素子でもよい。また、本発明は、デジタルカメラ10に限らす、ビデオカメラ、テレビカメラ、カメラ付き携帯電話、防犯用モニタカメラ、及びスキャナー等の画像形成装置に採用することができる。   In the above embodiment, the image sensor 25 is described as a CCD. However, the present invention is not limited to this and may be a MOS type image sensor. The present invention is not limited to the digital camera 10 and can be applied to image forming apparatuses such as a video camera, a television camera, a camera-equipped mobile phone, a security monitor camera, and a scanner.

また、CFA24もベイヤー配列以外の種々のCFAを用いても良い。さらに、RGB3色のベイヤー配列のCFA24について説明しているが、CFAが4色以上の場合にも本発明は適用可能である。   The CFA 24 may also use various CFAs other than the Bayer array. Furthermore, although the description is made on the RGB three-color Bayer array CFA 24, the present invention is also applicable to the case where the CFA has four or more colors.

上記実施形態では、オートホワイトバランス機能を備えたデジタルカメラ10について説明しているが、ユーザが所望するホワイトバランスモードを設定するホワイトバランスモード設定手段を設けてもよい。この場合には、ホワイトバランスモードに関連付けしたホワイトバランスゲインを予め記憶するゲイン記憶部と、設定したホワイトバランスモードに応じてゲイン記録部からホワイトバランスゲインを選択するゲイン選択部とを設ける。ゲイン選択部は、選択したホワイトバランスゲインの情報を欠陥画素マップ選択回路18とホワイトバランス処理回路20とに送ればよい。また、ゲイン入力手段を設け、ゲイン入力手段によりユーザが任意のホワイトバランスゲインを入力するようにしてもよい。   In the above embodiment, the digital camera 10 having the auto white balance function is described. However, a white balance mode setting unit that sets a white balance mode desired by the user may be provided. In this case, a gain storage unit that stores in advance the white balance gain associated with the white balance mode and a gain selection unit that selects the white balance gain from the gain recording unit according to the set white balance mode are provided. The gain selection unit may send the selected white balance gain information to the defective pixel map selection circuit 18 and the white balance processing circuit 20. Further, gain input means may be provided, and the user may input an arbitrary white balance gain by the gain input means.

また、上記各実施形態では、欠陥補正回路19として、欠陥画素と同じ色の隣接画素値をもって欠陥画素の位置の画素値とする処理を行っているが、これに限らず、近傍の画素間の相関を調べ、相関の有る方向の同じ色の画素値を補間して欠陥画素の位置の画素値とする処理を行っても良い。   Further, in each of the above embodiments, the defect correction circuit 19 performs the process of setting the adjacent pixel value of the same color as the defective pixel to the pixel value at the position of the defective pixel. The correlation may be examined, and the pixel value of the same color in the correlated direction may be interpolated to obtain the pixel value at the position of the defective pixel.

上記各実施形態では、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 digital camera 31 includes, for example, an optical system 11, a color image sensor 12, an A / D 32, an image processing unit 33, and a recording unit 34, as shown in FIG. A white balance gain calculation circuit 35, a defective pixel map selection circuit 36, an image compression circuit 37, and a file output circuit 38.

A/D32は、デジタルに変換した生のCFA画像データをホワイトバランスゲイン算出回路35と画像圧縮回路37とに出力する。ホワイトバランスゲイン算出回路35は、前述したようにCFA画像データに基づいてホワイトバランスゲインW,Wを算出し、算出したホワイトバランスゲインW,Wを欠陥画素マップ選択回路36とファイル出力回路38とに送る。欠陥画素マップ選択回路36は、ホワイトバランスゲインW,Wに基づいて、記憶部39に記憶した複数の欠陥画素マップ27〜29のうちの何れかを選択し、選択した欠陥画素マップ27〜29をファイル出力回路38に送る。 The A / D 32 outputs the raw CFA image data converted to digital to the white balance gain calculation circuit 35 and the image compression circuit 37. White balance gain calculation circuit 35, the white balance gain W R based on the CFA image data as described above, to calculate the W B, calculated white balance gain W R, W B defective pixel map selection circuit 36 and the file output To the circuit 38. Defective pixel map selection circuit 36, based on the white balance gain W R, the W B, selecting one of a plurality of defective pixel map 27 to 29 stored in the storage unit 39, the defective pixel map 27 to the selected 29 is sent to the file output circuit 38.

画像圧縮回路37は、CFA画像データを可逆圧縮もしくは非可逆圧縮(高ビットレート)してファイル出力回路38に出力する。ファイル出力回路38は、図14に示すように、CFA圧縮画像データと、これにホワイトバランスゲインW,W、及び選択した欠陥画素マップをそれぞれ関連付けして一つのファイルに記録してRawファイルとして出力する。記録部34はRawファイルを例えば、内部メモリやメモリカードに記録する。 The image compression circuit 37 performs lossless compression or lossy compression (high bit rate) on the CFA image data and outputs the result to the file output circuit 38. As shown in FIG. 14, the file output circuit 38 associates the CFA compressed image data, the white balance gains W R and W B , and the selected defective pixel map with each other and records them in a single file, thereby recording the Raw file. Output as. The recording unit 34 records the raw file in, for example, an internal memory or a memory card.

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 file development device 40 shown in FIG. 15 includes a raw file storage unit 41, a development processing execution unit 42, a display unit 43, and the like. The RAW file recorded in the digital camera 31 is transferred to the RAW file storage unit 41 via the interface according to a transfer instruction from the input unit 44.

現像処理実行部42は、欠陥画素補正処理45、ホワイトバランス処理46、画素補間処理47、及び色変換処理48等からなるプログラムで構成されており、これらプログラムは、ハードディスク等の記録媒体に記録されている。入力部44からRawファイルの現像指示が入力されると、欠陥画素補正処理45は、Rawファイルに記録されているCFA画像データと欠陥画素マップとを読み出し、前記CFA画像データに対して前記欠陥画素マップに記録の欠陥画素の位置情報に従って欠陥補正を行う。Rawファイルに記録の欠陥画素マップは、デジタルカメラ31で算出したホワイトバランスゲインに基づいて選択した欠陥画素マップである。   The development processing execution unit 42 includes a program including a defective pixel correction process 45, a white balance process 46, a pixel interpolation process 47, a color conversion process 48, and the like. These programs are recorded on a recording medium such as a hard disk. ing. When a raw file development instruction is input from the input unit 44, the defective pixel correction processing 45 reads CFA image data and a defective pixel map recorded in the raw file, and the defective pixel is read from the CFA image data. Defect correction is performed according to the position information of the defective pixels recorded on the map. The defective pixel map recorded in the RAW file is a defective pixel map selected based on the white balance gain calculated by the digital camera 31.

その後、ホワイトバランス処理46は、Rawファイルに記録されているホワイトバランスゲインW,Wを読み出し、欠陥画素補正済みのCFA画像データのうちのB,Rの各画素値に対してホワイトバランスゲインW,Wを乗算してホワイトバランス処理を行う。その後、画素補間処理47は、ホワイトバランス処理済みのCFA画像データに基づいてRGB画像データを作り、色変換処理部位は、RGB画像データに基づいてRGB変換を行う。このRGB画像データに基づいて表示部43に画像が表示される。 Then, white balance processing 46, the white balance gain W B recorded in the Raw file, reads the W R, the white balance gain B of the defective pixel corrected CFA image data for each pixel value of R W B, the white balance processing by multiplying the W R. Thereafter, the pixel interpolation processing 47 creates RGB image data based on the CFA image data that has been subjected to white balance processing, and the color conversion processing part performs S RGB conversion based on the RGB image data. An image is displayed on the display unit 43 based on the S RGB image data.

ところで、デジタルカメラ31で算出したホワイトバランスゲインW,Wを使用せずに、ユーザが入力部44を介して所望するホワイトバランスゲインW,Wを入力してホワイトバランス処理を行う場合がある。この場合には、デジタルカメラ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 digital camera 31 side, not only the selected defective pixel map, but also all the defective pixel maps 27 to 29 recorded in the storage unit 39 as shown in FIG. Configure to record in the Raw file.

この場合、図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 map selection unit 52 is provided in the development processing execution unit 51. The defective pixel map selection unit 52 selects any defective pixel map from the plurality of defective pixel maps 27 to 29 read from the Raw file based on the white balance gain designated by the white balance gain input unit 53. . The defective pixel correction processing 45 performs defective pixel correction on the CFA image data read from the raw file based on the selected defective pixel map. The white balance processing 46 multiplies the CFA image data after the defective pixel correction by a designated white balance gain.

上記各実施形態は、ホワイトバランスゲインに基づいて欠陥画素マップを選択するように構成しているが、本発明ではこれに限らず、欠陥画素の画質への影響は空格子補間処理(画素補間処理)によっても異なるため、空格子補間処理に応じて欠陥画素マップを選択するように構成してもよい。   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画素位置にて色差C=(R−G)及びC=(B−G)をそれぞれ計算した後にC,Cを補間して各が素でG,CR,を求めて、R=C+G,B=C+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画素を厳しく検出するために、「T」=「K」×「T」=「T」とした閾値を設定して欠陥画素を検出したマップとする。ここで、「T」はR画素用の閾値、「T」はG画素用の閾値、「T」はB画素用の閾値である。なお、「K」は、「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画素を厳しく検出するために、「T」=「K」×「TG」=「K」×「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画素を厳しく検出するために、「K」×「T」=「K」×「TG」=「TB」とした閾値を設定して欠陥画素を検出したマップとする。なお、B画素の白点欠陥は見えにくいため、第3欠陥画素マップとしては、「T」=「K」×「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 digital camera 31, a defective pixel level map 60 (see FIG. 13) generated based on the digital data of all the pixels at the time of shading shooting is stored in the storage unit 39 at the time of factory shipment, and shooting is performed. The defective pixel level map 60 is recorded in the RAW file together with the CFA image data every time. Therefore, as shown in FIG. 18, a defective pixel level map 60 is recorded together with CFA image data and the like in the RAW file created at this time.

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 level selection unit 69 is provided. The defective pixel level selection unit 69 reads out the defective pixel level map 60 from the raw file, and detects a defective pixel corresponding to the empty lattice interpolation processing selected by the empty lattice interpolation processing selection unit 70 based on the defective pixel level map 60. To do. Thereafter, as described above, the defective pixel correction process 45 corrects the defective pixel based on the position information of the defective pixel.

欠陥画素レベルマップ60は、図20に示すように、欠陥画素補正を行うための条件に応じて各画素値を7段階の範囲に区分し、各区分を補正レベル「0」〜「6」に対応付け、図21に示すように、各画素位置に補正レベルを表す数字を付与したマップになる。   As shown in FIG. 20, the defective pixel level map 60 divides each pixel value into a range of seven stages according to the conditions for performing defective pixel correction, and divides each division into correction levels “0” to “6”. As shown in FIG. 21, the map is obtained by assigning a number representing a correction level to each pixel position.

ここで、例えば補正レベル「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 level selection unit 69 selects a correction level suitable for the selected empty grid interpolation process from the defective pixel level map read from the Raw file, and the output value is included in the range of the selected correction level. The pixel position is detected as a defective pixel. In this case, as shown in FIG. 22, since it can be understood that there are defective pixel maps 1 to 7 in which position information of defective pixels is described for each correction level, the defective pixel level selection unit 69 includes a plurality of defective pixels. This corresponds to defective pixel information selection means for selecting one of the maps 1 to 7.

このような欠陥画素レベルマップを記憶しておくことで、画素補間方法における欠陥画素の影響度、ホワイトバランスゲイン、色変換処理、及び画像データに写る被写体の情報等に基づいて、欠陥画素レベルマップから補正対象となる欠陥画素の位置情報を記載した欠陥画素マップ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, defective pixel maps 1 to 7 describing position information of defective pixels to be corrected can be selected. In this case, in addition to selecting one of the defective pixel maps 1 to 7, a plurality of defective pixel maps 5 to 7 may be selected, for example.

上記実施形態では、撮影条件として空格子(画素)補間方法、ホワイトバランスゲイン、色変換処理、及び画像データに写る被写体の情報等に応じて欠陥画素マップを選択しているが、他の撮影条件、例えば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 Digital camera 17, 35 White balance gain calculation circuit 18, 36 Defective pixel map selection circuit 40, 50, 65 Raw file development device

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:
請求項1記載の欠陥画素補正装置において、
前記撮影条件は、ホワイトバランスゲイン、又は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.
請求項1又は2記載の欠陥画素補正装置において、
前記欠陥画素情報は、前記撮影条件に応じて前記色毎に決めた閾値に基づいて検出した欠陥画素の位置情報が記録されていることを特徴とする欠陥画素補正装置。
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ないし3いずれか記載の欠陥画素補正装置において、
前記カラーの画像データは、
空間周波数が最も高い第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.
請求項4記載の欠陥画素補正装置において、
前記撮影条件をホワイトバランスとし、
所定の明るさで撮影した時に撮像素子から得られるカラーの画像データに対して、色毎に一律の閾値を用いて検出した第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:
請求項6記載の欠陥画素補正方法を実行させるコンピュータが読み取り可能なプログラム。   A computer-readable program for executing the defective pixel correction method according to claim 6. 請求項7に記載のコンピュータが読み取り可能なプログラムを記録した記録媒体。   A recording medium on which the computer-readable program according to claim 7 is recorded.
JP2010206363A 2010-09-15 2010-09-15 Defect detection and compensation apparatus, program and storage medium Withdrawn JP2012065069A (en)

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)

* Cited by examiner, † Cited by third party
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

Cited By (3)

* Cited by examiner, † Cited by third party
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