JP4671893B2 - Electronic camera - Google Patents

Electronic camera Download PDF

Info

Publication number
JP4671893B2
JP4671893B2 JP2006078034A JP2006078034A JP4671893B2 JP 4671893 B2 JP4671893 B2 JP 4671893B2 JP 2006078034 A JP2006078034 A JP 2006078034A JP 2006078034 A JP2006078034 A JP 2006078034A JP 4671893 B2 JP4671893 B2 JP 4671893B2
Authority
JP
Japan
Prior art keywords
data value
defective pixel
pixels
image data
defective
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.)
Expired - Fee Related
Application number
JP2006078034A
Other languages
Japanese (ja)
Other versions
JP2007258860A (en
Inventor
正臣 森津
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2006078034A priority Critical patent/JP4671893B2/en
Publication of JP2007258860A publication Critical patent/JP2007258860A/en
Application granted granted Critical
Publication of JP4671893B2 publication Critical patent/JP4671893B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、電子カメラに関し、特にたとえば、イメージセンサに含まれる欠陥画素を補正する、電子カメラに関する。   The present invention relates to an electronic camera, and more particularly to an electronic camera that corrects defective pixels included in an image sensor, for example.

従来のこの種の装置の一例が、特許文献1に開示されている。この従来技術によれば、イメージセンサの欠陥画素が、メカニカルシャッタが閉じられた状態での露光によってイメージセンサで生成された黒画像データに基づいて検出される。検出された欠陥画素の座標データは、メモリに一旦記憶される。被写界を表す画像データの欠陥画素は、メモリに記憶された座標データを参照して、メディアンフィルタ処理によって補正される。
特開2004−23331号公報[H04N 5/335]
An example of a conventional device of this type is disclosed in Patent Document 1. According to this prior art, defective pixels of the image sensor are detected based on black image data generated by the image sensor by exposure with the mechanical shutter closed. The coordinate data of the detected defective pixel is temporarily stored in the memory. The defective pixel of the image data representing the object scene is corrected by the median filter process with reference to the coordinate data stored in the memory.
JP 2004-23331 A [H04N 5/335]

しかし、従来技術では、輝度変化が激しい被写界を撮影したときに欠陥画素に対応する画素データにいわゆる画素潰れが発生し、撮影された画像データの品質が低下する。   However, in the related art, when a scene with a large luminance change is captured, so-called pixel collapse occurs in the pixel data corresponding to the defective pixel, and the quality of the captured image data decreases.

それゆえに、この発明の主たる目的は、撮影された画像データの品質を改善することができる、電子カメラを提供することである。   Therefore, a main object of the present invention is to provide an electronic camera capable of improving the quality of captured image data.

請求項1の発明に従う電子カメラ(10)は、複数の画素が2次元に配列された撮像面を有する撮像手段(14)、撮像面で捉えられた被写界を表す画像データを作成する作成手段(16)、複数の画素に含まれる欠陥画素の画素情報を保持する保持手段(52)、作成手段によって作成された画像データを形成する欠陥画素のデータ値を保持手段によって保持された画素情報に基づいて補正する補正手段(S23)、欠陥画素の周辺に存在する周辺画素のデータ値を検出する検出手段(S21)、補正手段によって補正されたデータ値と検出手段によって検出されたデータ値との相違が既定範囲内であるか否かを判別する判別手段(S27)、判別手段の判別結果が肯定的であるとき作成手段によって作成された画像データを形成する欠陥画素のデータ値を検出手段によって検出されたデータ値に置換する第1置換手段(S29)、および判別手段の判別結果が否定的であるとき作成手段によって作成された画像データを形成する欠陥画素のデータ値を補正手段によって補正されたデータ値に置換する第2置換手段(S31)を備える。   An electronic camera (10) according to the invention of claim 1 has an imaging means (14) having an imaging surface in which a plurality of pixels are two-dimensionally arranged, and creating image data representing an object scene captured by the imaging surface Means (16), holding means (52) for holding pixel information of defective pixels included in a plurality of pixels, and pixel information for holding data values of defective pixels forming image data created by the creating means Correction means for correcting based on (S23), detection means (S21) for detecting data values of peripheral pixels existing around the defective pixel, the data value corrected by the correction means and the data value detected by the detection means A discriminating means for discriminating whether or not the difference is within a predetermined range (S27), and a detecting means for detecting a data value of a defective pixel forming the image data created by the creating means when the discrimination result of the discriminating means is positive Detected by A first replacement means (S29) for replacing with a data value, and a data value obtained by correcting the data value of the defective pixel forming the image data created by the creating means when the discrimination result of the discrimination means is negative by the correcting means The second replacement means (S31) is provided.

撮像手段は、複数の画素が2次元に配列された撮像面を有する。撮像面で捉えられた被写界を表す画像データは、作成手段によって作成される。また、複数の画素に含まれる欠陥画素の画素情報は、保持手段によって保持される。補正手段は、作成手段によって作成された画像データを形成する欠陥画素のデータ値を保持手段によって保持された画素情報に基づいて補正する。   The imaging means has an imaging surface on which a plurality of pixels are arranged two-dimensionally. Image data representing the object scene captured on the imaging surface is created by the creating means. In addition, pixel information of defective pixels included in a plurality of pixels is held by a holding unit. The correcting unit corrects the data value of the defective pixel forming the image data created by the creating unit based on the pixel information held by the holding unit.

検出手段は、欠陥画素の周辺に存在する周辺画素のデータ値を検出する。判別手段は、補正手段によって補正されたデータ値と検出手段によって検出されたデータ値との相違が既定範囲内であるか否かを判別する。   The detecting means detects data values of peripheral pixels existing around the defective pixel. The determining means determines whether or not the difference between the data value corrected by the correcting means and the data value detected by the detecting means is within a predetermined range.

第1置換手段は、判別手段の判別結果が肯定的であるとき、作成手段によって作成された画像データを形成する欠陥画素のデータ値を検出手段によって検出されたデータ値に置換する。第2置換手段は、判別手段の判別結果が否定的であるとき、作成手段によって作成された画像データを形成する欠陥画素のデータ値を補正手段によって補正されたデータ値に置換する。   The first replacement means replaces the data value of the defective pixel forming the image data created by the creation means with the data value detected by the detection means when the discrimination result of the discrimination means is affirmative. When the determination result of the determination unit is negative, the second replacement unit replaces the data value of the defective pixel forming the image data created by the creation unit with the data value corrected by the correction unit.

補正された欠陥画素のデータ値が周辺画素のデータ値に近ければ、周辺画素のデータ値が置換処理に利用される。これによって、輝度変化が乏しい被写界を撮影したときに欠陥画素に現れる違和感が抑えられる。一方、補正された欠陥画素のデータ値が周辺画素のデータ値から大きく外れていれば、補正された欠陥画素のデータ値が置換処理に利用される。これによって、輝度変化が激しい被写界を撮影したときに欠陥画素に現れる画素潰れが回避される。こうして、撮影された画像データの品質が改善される。   If the corrected defective pixel data value is close to the peripheral pixel data value, the peripheral pixel data value is used for the replacement process. As a result, the sense of incongruity that appears in the defective pixels when an object scene with poor luminance change is photographed can be suppressed. On the other hand, if the corrected defective pixel data value greatly deviates from the peripheral pixel data value, the corrected defective pixel data value is used in the replacement process. This avoids pixel crushing that appears in defective pixels when shooting a scene with a sharp luminance change. Thus, the quality of the captured image data is improved.

請求項2の発明に従う電子カメラは、請求項1に従属し、検出手段によって検出されるデータ値は補正手段によって補正されたデータ値に最も近似するデータ値である。   An electronic camera according to a second aspect of the invention is dependent on the first aspect, and the data value detected by the detecting means is a data value that is closest to the data value corrected by the correcting means.

請求項3の発明に従う電子カメラは、請求項1または2に従属し、複数の画素をそれぞれ覆う複数の色要素を有する色フィルタ(14f)をさらに備え、複数の色要素の各々は複数の色のいずれか1つを有し、周辺画素を覆う色フィルタの色は欠陥画素を覆う色フィルタの色と一致する。これによって、判別手段の既定範囲が的確に設定される。   The electronic camera according to the invention of claim 3 is dependent on claim 1 or 2, and further includes a color filter (14f) having a plurality of color elements respectively covering a plurality of pixels, each of the plurality of color elements being a plurality of colors. And the color filter that covers the peripheral pixels matches the color of the color filter that covers the defective pixel. Thereby, the predetermined range of the discriminating means is accurately set.

請求項4の発明に従う電子カメラは、請求項1ないし3のいずれかに従属し、保持手段によって保持される欠陥画素の画素情報は欠陥画素が現れた位置を示す位置情報と欠陥画素の明るさを示す明るさ情報とを含む。これによって、被写界像を表す画像データに含まれるノイズが的確に低減される。   An electronic camera according to a fourth aspect of the present invention is dependent on any one of the first to third aspects, and the pixel information of the defective pixel held by the holding means is position information indicating a position where the defective pixel appears and brightness of the defective pixel. Brightness information. Thereby, noise included in the image data representing the object scene image is accurately reduced.

請求項5の発明に従う画像処理プログラムは、複数の画素が2次元に配列された撮像面を有する撮像手段(14)、撮像面で捉えられた被写界を表す画像データを作成する作成手段(16)、複数の画素に含まれる欠陥画素の画素情報を保持する保持手段(52)を備える電子カメラ(10)のプロセサ(26)に、作成手段によって作成された画像データを形成する欠陥画素のデータ値を保持手段によって保持された画素情報に基づいて補正する補正ステップ(S23)、欠陥画素の周辺に存在する周辺画素のデータ値を検出する検出ステップ(S21)、補正ステップによって補正されたデータ値と検出ステップによって検出されたデータ値との相違が既定範囲内であるか否かを判別する判別ステップ(S27)、判別ステップの判別結果が肯定的であるとき作成手段によって作成された画像データを形成する欠陥画素のデータ値を検出ステップによって検出されたデータ値に置換する第1置換ステップ(S29)、および判別ステップの判別結果が否定的であるとき作成手段によって作成された画像データを形成する欠陥画素のデータ値を補正ステップによって補正されたデータ値に置換する第2置換ステップ(S31)を実行させるための、画像処理プログラムである。   An image processing program according to the invention of claim 5 includes an imaging means (14) having an imaging surface in which a plurality of pixels are two-dimensionally arranged, and a creation means for creating image data representing an object scene captured on the imaging surface ( 16) In the processor (26) of the electronic camera (10) provided with the holding means (52) for holding the pixel information of the defective pixels included in the plurality of pixels, the defective pixels that form the image data created by the creating means Correction step (S23) for correcting the data value based on the pixel information held by the holding means, detection step (S21) for detecting the data value of the peripheral pixels existing around the defective pixel, and the data corrected by the correction step A discriminating step (S27) for discriminating whether or not the difference between the value and the data value detected by the detecting step is within a predetermined range; created by the creating means when the discriminating result of the discriminating step is affirmative First replacement step (S29) for replacing the data value of the defective pixel forming the image data with the data value detected by the detection step, and image data created by the creation means when the discrimination result of the discrimination step is negative Is an image processing program for executing a second replacement step (S31) of replacing the data value of the defective pixel forming the pixel value with the data value corrected by the correction step.

請求項6の発明に従う画像処理方法は、複数の画素が2次元に配列された撮像面を有する撮像手段(14)、撮像面で捉えられた被写界を表す画像データを作成する作成手段(16)、複数の画素に含まれる欠陥画素の画素情報を保持する保持手段(52)を備える電子カメラ(10)の動作制御方法であって、作成手段によって作成された画像データを形成する欠陥画素のデータ値を保持手段によって保持された画素情報に基づいて補正する補正ステップ(S23)、欠陥画素の周辺に存在する周辺画素のデータ値を検出する検出ステップ(S21)、補正ステップによって補正されたデータ値と検出ステップによって検出されたデータ値との相違が既定範囲内であるか否かを判別する判別ステップ(S27)、判別ステップの判別結果が肯定的であるとき作成手段によって作成された画像データを形成する欠陥画素のデータ値を検出ステップによって検出されたデータ値に置換する第1置換ステップ(S29)、および判別ステップの判別結果が否定的であるとき作成手段によって作成された画像データを形成する欠陥画素のデータ値を補正ステップによって補正されたデータ値に置換する第2置換ステップ(S31)を備える、画像処理方法である。   An image processing method according to the invention of claim 6 includes an imaging means (14) having an imaging surface in which a plurality of pixels are two-dimensionally arranged, and a creation means for creating image data representing an object scene captured on the imaging surface ( 16) An operation control method for an electronic camera (10) having a holding means (52) for holding pixel information of defective pixels included in a plurality of pixels, and forming defective image data created by the creating means Correction step (S23) for correcting the data value based on the pixel information held by the holding means, detection step (S21) for detecting data values of peripheral pixels existing around the defective pixel, and correction step A determination step (S27) for determining whether or not the difference between the data value and the data value detected by the detection step is within a predetermined range, created by the creation means when the determination result of the determination step is affirmative First replacement step (S29) for replacing the data value of the defective pixel forming the image data with the data value detected by the detection step, and the image data created by the creation means when the discrimination result of the discrimination step is negative This is an image processing method including a second replacement step (S31) of replacing the data value of the defective pixel forming the pixel value with the data value corrected by the correction step.

請求項5および6についても、請求項1の発明と同様に、補正された欠陥画素のデータ値が周辺画素のデータ値に近ければ、周辺画素のデータ値が置換処理に利用される。これによって、輝度変化が乏しい被写界を撮影したときに欠陥画素に現れる違和感が抑えられる。一方、補正された欠陥画素のデータ値が周辺画素のデータ値から大きく外れていれば、補正された欠陥画素のデータ値が置換処理に利用される。これによって、輝度変化が激しい被写界を撮影したときに欠陥画素に現れる画素潰れが回避される。こうして、撮影された画像データの品質が改善される。   In the fifth and sixth aspects, similarly to the first aspect, if the corrected defective pixel data value is close to the peripheral pixel data value, the peripheral pixel data value is used for the replacement process. As a result, the sense of incongruity that appears in the defective pixels when an object scene with poor luminance change is photographed can be suppressed. On the other hand, if the corrected defective pixel data value greatly deviates from the peripheral pixel data value, the corrected defective pixel data value is used in the replacement process. This avoids pixel crushing that appears in defective pixels when shooting a scene with a sharp luminance change. Thus, the quality of the captured image data is improved.

この発明によれば、補正された欠陥画素のデータ値が周辺画素のデータ値に近ければ、周辺画素のデータ値が置換処理に利用される。これによって、輝度変化が乏しい被写界を撮影したときに欠陥画素に現れる違和感が抑えられる。一方、補正された欠陥画素のデータ値が周辺画素のデータ値から大きく外れていれば、補正された欠陥画素のデータ値が置換処理に利用される。これによって、輝度変化が激しい被写界を撮影したときに欠陥画素に現れる画素潰れが回避される。こうして、撮影された画像データの品質が改善される。   According to the present invention, if the corrected defective pixel data value is close to the peripheral pixel data value, the peripheral pixel data value is used for the replacement process. As a result, the sense of incongruity that appears in the defective pixels when an object scene with poor luminance change is photographed can be suppressed. On the other hand, if the corrected defective pixel data value greatly deviates from the peripheral pixel data value, the corrected defective pixel data value is used in the replacement process. This avoids pixel crushing that appears in defective pixels when shooting a scene with a sharp luminance change. Thus, the quality of the captured image data is improved.

この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。   The above object, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.

図1を参照して、この実施例のディジタルカメラ(電子カメラ)10は、光学レンズ12を含む。被写界の光学像は、光学レンズ12を経てCCDイメージャ14の受光面つまり撮像面に照射される。   Referring to FIG. 1, a digital camera (electronic camera) 10 of this embodiment includes an optical lens 12. The optical image of the object scene is irradiated to the light receiving surface, that is, the imaging surface of the CCD imager 14 through the optical lens 12.

撮像面は、原色ベイヤ配列の色フィルタ14f(図2参照)によって覆われる。色フィルタ14fを構成する複数のフィルタ要素は、撮像面を形成する複数の受光素子にそれぞれ対応する。したがって、各々の受光素子で生成される電荷量は、R(Red),G(Green)およびB(Blue)のいずれか1つの光量を反映する。なお、受光素子は“画素”と定義する。   The imaging surface is covered by a primary color Bayer array color filter 14f (see FIG. 2). The plurality of filter elements constituting the color filter 14f respectively correspond to the plurality of light receiving elements forming the imaging surface. Therefore, the amount of charge generated in each light receiving element reflects one of the light amounts of R (Red), G (Green), and B (Blue). The light receiving element is defined as “pixel”.

撮像面を形成する複数の画素は、正常画素および欠陥画素によって区分される。欠陥画素は、正常画素に比べ極大な電荷量を出力する高感度の欠陥画素と正常画素に比べ極小な電荷量を出力する高感度の欠陥画素とを有する。   The plurality of pixels forming the imaging surface are divided by normal pixels and defective pixels. The defective pixel has a highly sensitive defective pixel that outputs a maximum amount of charge compared to a normal pixel and a highly sensitive defective pixel that outputs a minimum amount of charge compared to a normal pixel.

電源が投入されると、欠陥画素情報読み出し処理とスルー画像処理とが実行される。具体的には、CPU26はまず、フラッシュメモリ52に記憶された欠陥画素情報をバスB1を経て読み出す。   When the power is turned on, a defective pixel information reading process and a through image process are executed. Specifically, the CPU 26 first reads out defective pixel information stored in the flash memory 52 via the bus B1.

欠陥画素情報は、CCDイメージャ14に含まれる複数の欠陥画素の位置情報Adrおよび輝度比率Drateを含み、CPU26に形成されるテーブル26t(図3参照)に格納される。位置情報Adrは欠陥画素の位置を表し、欠陥画素比率Drateは正常画素から出力される電荷量の平均値に対する欠陥画素から出力される電荷量の比率を表す。   The defective pixel information includes position information Adr and luminance ratio Drate of a plurality of defective pixels included in the CCD imager 14, and is stored in a table 26t (see FIG. 3) formed in the CPU 26. The position information Adr represents the position of the defective pixel, and the defective pixel ratio Drate represents the ratio of the charge amount output from the defective pixel to the average value of the charge amount output from the normal pixel.

CPU26は続いて、スイッチSW1およびSW2を端子T1およびT3にそれぞれ接続し、プリ露光および間引き読み出しの繰り返しをタイミングジェネレータ(TG)/シグナルジェネレータ(SG)18に命令し、そしてメモリ制御回路38の書き込み先をSDRAM40のスルー画像エリア40aに設定する。   Subsequently, the CPU 26 connects the switches SW1 and SW2 to the terminals T1 and T3, respectively, instructs the timing generator (TG) / signal generator (SG) 18 to repeat the pre-exposure and thinning-out reading, and writes the memory control circuit 38. The destination is set in the through image area 40a of the SDRAM 40.

SDRAM40は、図4に示すように、スルー画像エリア40a,生画像エリア40b,ワークエリア40cおよび圧縮画像エリア40dを有する。スルー画像エリア40aは電源が投入されてから使用され、生画像エリア40bは記録操作つまりシャッタボタン54による全押し操作が行われてから使用され、ワークエリア40cは画素修正処理(後述)のときに使用され、そして圧縮画像エリア40dはJPEG圧縮処理(後述)のときに使用される。   As shown in FIG. 4, the SDRAM 40 has a through image area 40a, a raw image area 40b, a work area 40c, and a compressed image area 40d. The through image area 40a is used after the power is turned on, the raw image area 40b is used after a recording operation, that is, a full pressing operation by the shutter button 54, and the work area 40c is used during pixel correction processing (described later). The compressed image area 40d is used during JPEG compression processing (described later).

図1に戻って、TG/SG18は、垂直同期信号Vsyncを1/30秒毎に発生し、これに同期する複数のタイミング信号をCCDイメージャ14およびCDS/AGC/AD回路16の各々に与える。撮像面は垂直同期信号Vsyncが発生する毎にプリ露光を施され、撮像面で生成された電荷はラスタ走査による間引き読み出しを施される。読み出された電荷によって形成される低解像度の生画像信号は、30fpsのフレームレートを有する。   Returning to FIG. 1, the TG / SG 18 generates a vertical synchronization signal Vsync every 1/30 seconds, and provides a plurality of timing signals synchronized therewith to the CCD imager 14 and the CDS / AGC / AD circuit 16. The imaging surface is subjected to pre-exposure every time the vertical synchronization signal Vsync is generated, and the charge generated on the imaging surface is subjected to thinning readout by raster scanning. The low-resolution raw image signal formed by the read charges has a frame rate of 30 fps.

CDS/AGC/AD回路16は、CCDイメージャ14に形成される水平転送レジスタ14hから出力された生画像信号に相関2重サンプリング,ゲイン調整およびA/D変換の一連の処理を施し、ディジタル信号である生画像データを出力する。CDS/AGC/AD回路16から出力された生画像データは、スイッチSW1およびSW2を経て、信号処理回路20に与えられる。   The CDS / AGC / AD circuit 16 subjects the raw image signal output from the horizontal transfer register 14h formed in the CCD imager 14 to a series of processes of correlated double sampling, gain adjustment, and A / D conversion. Outputs some raw image data. The raw image data output from the CDS / AGC / AD circuit 16 is given to the signal processing circuit 20 via the switches SW1 and SW2.

信号処理回路20は、与えられた生画像データに白バランス調整,色分離,YUV変換などの処理を施し、これによって生成されたYUV形式の画像データは、バッファ回路22およびバスB1を経てメモリ制御回路38に与えられ、メモリ制御回路38によってSDRAM40のスルー画像エリア40aに書き込まれる。   The signal processing circuit 20 performs processing such as white balance adjustment, color separation, and YUV conversion on the given raw image data, and YUV format image data generated thereby is subjected to memory control via the buffer circuit 22 and the bus B1. The data is supplied to the circuit 38 and written into the through image area 40 a of the SDRAM 40 by the memory control circuit 38.

ビデオエンコーダ44は、こうしてSDRAM40に格納された画像データをメモリ制御回路38を通して読み出す。読み出された画像データは、バスB1およびバッファ回路42を経てビデオエンコーダ44に与えられ、NTSC方式のコンポジットビデオ信号に変換される。変換されたコンポジットビデオ信号はLCD(Liquid Crystal Display)46に与えられ、この結果、被写界を表すスルー画像がLCD46に再現される。   The video encoder 44 reads out the image data thus stored in the SDRAM 40 through the memory control circuit 38. The read image data is supplied to the video encoder 44 through the bus B1 and the buffer circuit 42, and converted into an NTSC composite video signal. The converted composite video signal is applied to an LCD (Liquid Crystal Display) 46, and as a result, a through image representing the object scene is reproduced on the LCD 46.

輝度評価回路24は、信号処理回路20によって生成されたYUV形式の画像データのうちYデータに基づいて、1/30秒毎に被写界の輝度を評価する。評価結果つまり輝度評価値は、CPU26によるスルー画像用AE処理に利用される。CPU26は、輝度評価値に基づいて最適露光時間を算出し、算出された最適露光時間に従うプリ露光処理をTG/SG18に命令する。この結果、LCD46に表示されるスルー画像の明るさが適度に調整される。   The luminance evaluation circuit 24 evaluates the luminance of the object scene every 1/30 seconds based on the Y data among the YUV format image data generated by the signal processing circuit 20. The evaluation result, that is, the luminance evaluation value is used for the through image AE processing by the CPU 26. The CPU 26 calculates the optimum exposure time based on the luminance evaluation value, and instructs the TG / SG 18 to perform pre-exposure processing according to the calculated optimum exposure time. As a result, the brightness of the through image displayed on the LCD 46 is appropriately adjusted.

シャッタボタン54が半押しされると、CPU26は、記録用AE処理を実行する。CCDイメージャ14のプリ露光時間は、上述の輝度評価値に基づいてより厳密に調整される。記録用AE処理によってTG/SG18に設定された最適露光時間は、シャッタボタン54の半押し状態が継続される限り、変更されることはない。   When the shutter button 54 is half-pressed, the CPU 26 executes a recording AE process. The pre-exposure time of the CCD imager 14 is adjusted more strictly based on the above-described luminance evaluation value. The optimum exposure time set in the TG / SG 18 by the recording AE process is not changed as long as the shutter button 54 is half-pressed.

シャッタボタン54が全押しされると、撮影処理が実行される。具体的には、CPU26は、スイッチSW1およびSW2を端子T2およびT4にそれぞれ接続し、最適露光時間に従う本露光及び全画素読み出しの実行をTG/SG18に命令し、そして書き込み設定の変更をメモリ制御回路38に命令する。書き込み設定の変更によって、生画像エリア40b(図4参照)が書き込み先として設定される。   When the shutter button 54 is fully pressed, the photographing process is executed. Specifically, the CPU 26 connects the switches SW1 and SW2 to the terminals T2 and T4, instructs the TG / SG 18 to execute main exposure and all-pixel reading according to the optimum exposure time, and controls the change of the write setting. Command circuit 38. By changing the writing setting, the raw image area 40b (see FIG. 4) is set as the writing destination.

TG/SG18は、記録用AE処理によって算出された最適露光時間に従う本露光をCCDイメージャ14に施し、これによって生成された電荷の全てをラスタ走査態様で読み出す。撮像面はこのとき、飛び越し態様で走査される。全ての電荷によって形成される高画素数の生画像信号は、2フィールド期間(=1/30秒*2)かけて、CCDイメージャ14から出力される。   The TG / SG 18 performs a main exposure on the CCD imager 14 according to the optimum exposure time calculated by the recording AE process, and reads out all of the generated charges in a raster scanning manner. At this time, the imaging surface is scanned in an interlaced manner. A raw image signal having a high pixel number formed by all charges is output from the CCD imager 14 over a period of two fields (= 1/30 seconds * 2).

CCDイメージャ14から出力された各フィールドの生画像信号は、CDS/AGC/AD回路16で上述と同じ処理を施され、生画像データに変換される。変換された生画像データは、スイッチSW1を経てバッファ回路28に与えられ、その後バスB1およびメモリ制御回路38を経てSDRAM40の生画像エリア40bに書き込まれる。   The raw image signal of each field output from the CCD imager 14 is subjected to the same processing as described above by the CDS / AGC / AD circuit 16 and converted into raw image data. The converted raw image data is given to the buffer circuit 28 via the switch SW1, and then written to the raw image area 40b of the SDRAM 40 via the bus B1 and the memory control circuit 38.

生画像エリア40bに生画像データが格納されると、画素修正処理が実行される。具体的には、CPU26はまず、テーブル26tに登録された欠陥画素の位置情報Adrに基づいて欠陥画素の輝度値DEFECTと周辺8画素の輝度値Daround[0]〜Daround[7]とを生画像データから検出する。   When raw image data is stored in the raw image area 40b, pixel correction processing is executed. Specifically, the CPU 26 first generates a raw image from the defective pixel luminance value DEFECT and the peripheral eight pixel luminance values Round [0] to Round [7] based on the defective pixel position information Adr registered in the table 26t. Detect from data.

図5に示すように、周辺8画素の各々は欠陥画素を覆うフィルタ要素の色と同色のフィルタ要素によって覆われる。このように同色に注目することによって、欠陥画素が正確に修正される。   As shown in FIG. 5, each of the surrounding 8 pixels is covered with a filter element having the same color as the color of the filter element covering the defective pixel. By paying attention to the same color in this way, the defective pixel is accurately corrected.

図1に戻って、CPU26は次に、テーブル26tに登録された欠陥画素の欠陥画素比率Drateに従って輝度値DEFECTに補正処理を施し、輝度値DEFECTの推測輝度値Dguessを算出する。   Returning to FIG. 1, next, the CPU 26 corrects the luminance value DEFECT according to the defective pixel ratio Drate of the defective pixels registered in the table 26t, and calculates the estimated luminance value Dguess of the luminance value DEFECT.

CPU26は続いて、推測輝度値Dguessに最も近似する近似輝度値Dnearestを読み出した輝度値Daround[0]〜Daround[7]の中から選択し、選択された近似輝度値Dnearestが既定範囲内であるか否かを判別する。   Subsequently, the CPU 26 selects an approximate luminance value Dnearest that is most approximate to the estimated luminance value Dgues from the read luminance values Dround [0] to Dround [7], and the selected approximate luminance value Dnearest is within a predetermined range. It is determined whether or not.

この判別結果が肯定的であれば、欠陥画素は低周波の画像領域に存在する画素であると判断され、欠陥画素の輝度値DEFECTは近似輝度値Dnearestによって置換される。この結果、欠陥画素に現れる違和感が抑えられる。   If the determination result is affirmative, it is determined that the defective pixel is a pixel existing in the low-frequency image region, and the luminance value DEFECT of the defective pixel is replaced with the approximate luminance value Dnearest. As a result, the uncomfortable feeling that appears in the defective pixel is suppressed.

一方、判別結果が否定的であれば、欠陥画素は高周波の画像領域に存在する画素であると判断され、欠陥画素の輝度値DEFECTは推測輝度値Dguessによって置換される。この結果、欠陥画素に対応する画素データにいわゆる画素潰れが回避される。   On the other hand, if the determination result is negative, it is determined that the defective pixel is a pixel present in the high-frequency image region, and the luminance value DEFECT of the defective pixel is replaced with the estimated luminance value Dguess. As a result, so-called pixel collapse is avoided in the pixel data corresponding to the defective pixel.

具体的には、図6(A)を参照して、欠陥画素が正常画素に比べ極大な電荷量を出力するような輝度値DEFECTは、補正処理によって斜線で示す推測輝度値Dguessに低減される。推測輝度値Dguessに近似する輝度値Daround[4]つまり近似輝度値Dnearestと推測輝度値Dguessとの差分が既定範囲内であれば、図6(B)に示すように、輝度値DEFECTは近似輝度値Dnearestとして選択された輝度値Daround[4]によって置換される。   Specifically, referring to FIG. 6A, the luminance value DEFECT at which a defective pixel outputs a maximum amount of charge compared to a normal pixel is reduced to an estimated luminance value Dguess indicated by hatching by correction processing. . If the difference between the brightness value Dround [4] approximated to the estimated brightness value Dguess, that is, the approximate brightness value Dnearest and the estimated brightness value Dguess is within the predetermined range, the brightness value DEFECT is the approximate brightness as shown in FIG. It is replaced by the luminance value Round [4] selected as the value Dnearest.

図7(A)を参照して、欠陥画素が正常画素に比べ極小な電荷量を出力するような輝度値DEFECTは、補正処理によって斜線で示す推測輝度値Dguessに増幅される。推測輝度値Dguessに近似する輝度値Daround[3]つまり近似輝度値Dnearestと推測輝度値Dguessとの差分とが既定範囲外であれば、図7(B)に示すように、輝度値DEFECTは推測輝度値Dguessによって置換される。   With reference to FIG. 7A, a luminance value DEFECT that causes a defective pixel to output a minimal amount of charge compared to a normal pixel is amplified to an estimated luminance value Dguess indicated by hatching by correction processing. If the luminance value Dround [3] that approximates the estimated luminance value Dguess, that is, the difference between the approximate luminance value Dnearest and the estimated luminance value Dguess is outside the predetermined range, the luminance value DEFECT is estimated as shown in FIG. Replaced by the luminance value Dguess.

なお、上述の処理は、全ての欠陥画素の修正処理を完了するまで継続され、SDRAM40のワークエリア40cが利用される。   The above-described processing is continued until the correction processing for all defective pixels is completed, and the work area 40c of the SDRAM 40 is used.

生画像データの画素修正処理が完了すると、CPU26は、記録処理を実行するべく、信号処理回路20,JPEGエンコーダ34,メモリ制御回路38およびI/F回路48に命令を与える。信号処理回路20は、生画像エリア40bに格納された生画像データを、メモリ制御回路38を通してプログレッシブ走査態様で読み出す。読み出された生画像データは、バスB1,バッファ回路30およびスイッチSW2を介して信号処理回路20に与えられ、YUV形式の画像データに変換される。変換された画像データはバッファ回路22およびバスB1を介してメモリ制御回路38に与えられ、メモリ制御回路38によってSDRAM40に書き込まれる。   When the pixel correction processing of the raw image data is completed, the CPU 26 gives an instruction to the signal processing circuit 20, the JPEG encoder 34, the memory control circuit 38, and the I / F circuit 48 in order to execute the recording processing. The signal processing circuit 20 reads the raw image data stored in the raw image area 40b through the memory control circuit 38 in a progressive scanning manner. The read raw image data is given to the signal processing circuit 20 through the bus B1, the buffer circuit 30, and the switch SW2, and is converted into YUV format image data. The converted image data is applied to the memory control circuit 38 via the buffer circuit 22 and the bus B1, and is written into the SDRAM 40 by the memory control circuit 38.

なお、スイッチSW1およびSW2が端子T1および端子T3にそれぞれ接続されるとき、CDS/AGC/AD回路16から出力される生画像データは信号処理回路20に与えられる。一方、スイッチSW1およびSW2が端子T2および端子T4にそれぞれ接続されるとき、CDS/AGC/AD回路16から出力される生画像データはバッファ回路28,バスB1およびメモリ制御回路38を経てSDRAM40に与えられる。   When the switches SW1 and SW2 are connected to the terminals T1 and T3, respectively, the raw image data output from the CDS / AGC / AD circuit 16 is given to the signal processing circuit 20. On the other hand, when the switches SW1 and SW2 are connected to the terminals T2 and T4, the raw image data output from the CDS / AGC / AD circuit 16 is applied to the SDRAM 40 through the buffer circuit 28, the bus B1 and the memory control circuit 38. It is done.

JPEGエンコーダ34は、生画像エリア40bに格納された画像データをメモリ制御回路38を通して読み出す。読み出された画像データは、バスB1およびバッファ回路32を経てJPEGエンコーダ34に与えられ、JPEG圧縮を施される。これによって生成された圧縮画像データは、バッファ回路36およびバスB1を経てメモリ制御回路38に与えられ、これによってSDRAM40の圧縮画像エリア40d(図4参照)に書き込まれる。I/F回路48は、圧縮画像エリア40dに格納された圧縮画像データをメモリ制御回路38を通して読み出し、読み出された圧縮画像データをファイル形式で記録媒体50に記録する。   The JPEG encoder 34 reads out the image data stored in the raw image area 40b through the memory control circuit 38. The read image data is given to the JPEG encoder 34 through the bus B1 and the buffer circuit 32, and subjected to JPEG compression. The compressed image data generated thereby is applied to the memory control circuit 38 via the buffer circuit 36 and the bus B1, and is thereby written in the compressed image area 40d (see FIG. 4) of the SDRAM 40. The I / F circuit 48 reads the compressed image data stored in the compressed image area 40d through the memory control circuit 38, and records the read compressed image data on the recording medium 50 in a file format.

なお、記録媒体50は、着脱自在であり、図示しないスロットに装着されたときにCPU26によってアクセス可能となる。   Note that the recording medium 50 is detachable, and can be accessed by the CPU 26 when mounted in a slot (not shown).

このように、CCDイメージャ14は、複数の画素が2次元に配列された撮像面を有する。撮像面で捉えられた被写界を表す生画像データは、CDS/AGC/AD回路16によって作成される。また、複数の画素に含まれる欠陥画素の欠陥画素情報は、フラッシュメモリ52によって保持される。CPU26は、CDS/AGC/AD回路16によって作成された生画像データを形成する欠陥画素の輝度値DEFECTをフラッシュメモリ52によって保持された欠陥画素情報に基づいて補正する。   As described above, the CCD imager 14 has an imaging surface on which a plurality of pixels are two-dimensionally arranged. Raw image data representing the scene captured on the imaging surface is created by the CDS / AGC / AD circuit 16. Further, defective pixel information of defective pixels included in a plurality of pixels is held by the flash memory 52. The CPU 26 corrects the luminance value DEFECT of the defective pixel forming the raw image data created by the CDS / AGC / AD circuit 16 based on the defective pixel information held by the flash memory 52.

CPU26は、欠陥画素の周辺に存在する周辺8画素の輝度値Daround[0]〜Daround[7]を検出し、補正された推測輝度値Dguessと検出された近似輝度値Dnearestとの相違が既定範囲内であるか否かを判別する。   The CPU 26 detects the luminance values Darond [0] to Dround [7] of the peripheral eight pixels existing around the defective pixel, and the difference between the corrected estimated luminance value Dguess and the detected approximate luminance value Dnearest is a predetermined range. It is determined whether or not it is within.

判別結果が肯定的であるとき、CDS/AGC/AD回路16によって作成された生画像データを形成する欠陥画素の輝度値DEFECTは、検出された近似輝度値Dnearestに置換される。判別結果が否定的であるとき、CDS/AGC/AD回路16によって作成された生画像データを形成する欠陥画素の輝度値DEFECTは、補正された推測輝度値Dguessに置換される。   When the determination result is affirmative, the luminance value DEFECT of the defective pixel forming the raw image data created by the CDS / AGC / AD circuit 16 is replaced with the detected approximate luminance value Dnearest. When the determination result is negative, the luminance value DEFECT of the defective pixel forming the raw image data created by the CDS / AGC / AD circuit 16 is replaced with the corrected estimated luminance value Dguess.

補正された欠陥画素の推測輝度値Dguessが周辺8画素の近似輝度値Dnearestに近ければ、周辺8画素の近似輝度値Dnearestが置換処理に利用される。これによって、輝度変化が乏しい被写界を撮影したときに欠陥画素に現れる違和感が抑えられる。一方、補正された欠陥画素の推測輝度値Dguessが周辺8画素の近似輝度値Dnearestから大きく外れていれば、補正された欠陥画素の推測輝度値Dguessが置換処理に利用される。これによって、輝度変化が激しい被写界を撮影したときに欠陥画素に現れる画素潰れが回避される。   If the estimated brightness value Dguess of the corrected defective pixel is close to the approximate brightness value Dnearest of the surrounding 8 pixels, the approximate brightness value Dnearest of the surrounding 8 pixels is used for the replacement process. As a result, the sense of incongruity that appears in the defective pixels when an object scene with poor luminance change is photographed can be suppressed. On the other hand, if the estimated luminance value Dguess of the corrected defective pixel is significantly different from the approximate luminance value Dnearest of the surrounding eight pixels, the corrected estimated luminance value Dguess of the defective pixel is used for the replacement process. This avoids pixel crushing that appears in defective pixels when shooting a scene with a sharp luminance change.

CPU26は、図示しないキー入力装置によって撮影モードに設定されたとき、具体的には図8および図9に示すフロー図に従う処理を行う。なお、このフロー図に対応するプログラムは、フラッシュメモリ52に記憶される。   When the CPU 26 is set to the photographing mode by a key input device (not shown), specifically, the CPU 26 performs processing according to the flowcharts shown in FIGS. Note that the program corresponding to this flowchart is stored in the flash memory 52.

図8を参照して、ステップS1ではフラッシュメモリ52から欠陥画素情報を読み出す。ステップS3では、スルー画像処理を実行する。この結果、被写界を表すスルー画像がLCD46に再現される。   Referring to FIG. 8, defective pixel information is read from flash memory 52 in step S1. In step S3, through image processing is executed. As a result, a through image representing the object scene is reproduced on the LCD 46.

ステップS5では、シャッタボタン54が半押しされたか否かを判別する。判別結果が否定的であれば、ステップS7でスルー画像用AE処理を実行する。この結果、LCD46に表示されるスルー画像の明るさが適度に調整される。判別結果が肯定的であれば、ステップS9で記録用AE処理を実行する。この結果、輝度評価回路24から取り込んだ輝度評価値に基づいてより厳密に調整される。   In step S5, it is determined whether or not the shutter button 54 has been half-pressed. If the determination result is negative, through image AE processing is executed in step S7. As a result, the brightness of the through image displayed on the LCD 46 is appropriately adjusted. If the determination result is affirmative, a recording AE process is executed in step S9. As a result, the adjustment is made more strictly based on the luminance evaluation value fetched from the luminance evaluation circuit 24.

ステップS11では、シャッタボタン54が全押しされたか否かを判別する。判別結果が否定的であればステップS13でシャッタボタン54が解除されたか否かを判別する。シャッタボタン54が解除されると、ステップS3に戻り、シャッタボタン54が保持されると、ステップS11に戻る。   In step S11, it is determined whether or not the shutter button 54 has been fully pressed. If the determination result is negative, it is determined in step S13 whether or not the shutter button 54 has been released. When the shutter button 54 is released, the process returns to step S3, and when the shutter button 54 is held, the process returns to step S11.

シャッタボタン54が全押しされると、ステップS15で撮影処理を実行する。生画像データがSDRAM40に格納されると、ステップS17で画素修正処理を実行する。欠陥画素の修正処理が完了すると、ステップS19で記録処理を実行する。この処理が完了すると、ステップS3に戻る。この結果、シャッタボタン54が全押し操作された時点の被写界像を表す圧縮画像データがファイル形式で記録媒体50に記録される。   When the shutter button 54 is fully pressed, shooting processing is executed in step S15. When the raw image data is stored in the SDRAM 40, pixel correction processing is executed in step S17. When the defective pixel correction process is completed, a recording process is executed in step S19. When this process is completed, the process returns to step S3. As a result, compressed image data representing the object scene image at the time when the shutter button 54 is fully pressed is recorded in the recording medium 50 in a file format.

ステップS17の画素修正処理は、図9に示すサブルーチンに従って実行される。ステップS21では、テーブル26tに登録された欠陥画素の位置情報Adrに基づいて欠陥画素の輝度値DEFECTと周辺8画素の輝度値Daround[0]〜Daround[7]とを生画像データから検出する。   The pixel correction process in step S17 is executed according to a subroutine shown in FIG. In step S21, based on the position information Adr of the defective pixel registered in the table 26t, the luminance value DEFECT of the defective pixel and the luminance values Round [0] to Round [7] of the surrounding eight pixels are detected from the raw image data.

ステップS23では、補正処理を実行する。具体的には、数1を使用して得られる算出結果を推測輝度値Dguessに格納し、ステップS25に進む。
[数1]
Dguess=DEFECT/Drate
ステップS25では、推測輝度値Dguessに最も近似する近似輝度値Dnearestを読み出した輝度値Daround[0]〜Daround[7]の中から選択する。ステップS27では、選択された近似輝度値Dnearestが既定範囲内になるか否かを判別する。この既定範囲は、推測輝度値Dguessに定数K1を乗算する値から推測輝度値Dguessに定数K2を乗算する値までを示す。なお、定数K1および定数K2の各々は“0”を上回る有理数であり、定数K2は定数K1を上回る。
In step S23, correction processing is executed. Specifically, the calculation result obtained by using Equation 1 is stored in the estimated luminance value Dguess, and the process proceeds to step S25.
[Equation 1]
Dguess = DEFECT / Drate
In step S25, the approximate luminance value Dnearest that is most approximate to the estimated luminance value Dguess is selected from the read luminance values Dround [0] to Dround [7]. In step S27, it is determined whether or not the selected approximate luminance value Dnearest falls within a predetermined range. This predetermined range indicates from a value obtained by multiplying the estimated luminance value Dguess by the constant K1 to a value obtained by multiplying the estimated luminance value Dguess by the constant K2. Each of the constant K1 and the constant K2 is a rational number exceeding “0”, and the constant K2 exceeds the constant K1.

近似輝度値Dnearestが既定範囲内であれば、欠陥画素は低周波の画像領域に存在する画素であると判断し、ステップS29で欠陥画素の輝度値DEFECTを近似輝度値Dnearestによって置換する。この結果、欠陥画素に現れる違和感が抑えられる。   If the approximate brightness value Dnearest is within the predetermined range, it is determined that the defective pixel is a pixel existing in the low-frequency image region, and the brightness value DEFECT of the defective pixel is replaced with the approximate brightness value Dnearest in step S29. As a result, the uncomfortable feeling that appears in the defective pixel is suppressed.

一方、近似輝度値Dnearestが既定範囲外であれば、欠陥画素は高周波の画像領域に存在する画素であると判断し、ステップS31欠陥画素の輝度値DEFECTを推測輝度値Dguessによって置換する。この結果、欠陥画素に対応する画像データの画素潰れが回避される。   On the other hand, if the approximate luminance value Dnearest is outside the predetermined range, it is determined that the defective pixel is a pixel existing in the high-frequency image region, and the luminance value DEFECT of the defective pixel in step S31 is replaced with the estimated luminance value Dguess. As a result, pixel collapse of the image data corresponding to the defective pixel is avoided.

ステップS33では、全欠陥画素の修正が完了したか否かを判別する。判別結果が否定的であれば、ステップS21に戻り、判別結果が肯定的であれば、上階層のルーチンに復帰する。   In step S33, it is determined whether or not all defective pixels have been corrected. If the determination result is negative, the process returns to step S21. If the determination result is affirmative, the process returns to the upper hierarchy routine.

なお、この実施例では、既定範囲は推測輝度値Dguessに定数K1を乗算した数値と推測輝度値Dguessに定数K2を乗算した数値とによって設定するように説明したが、既定範囲の設定はこれに限らない。例えば、他の既定範囲は近似輝度値Dnearestに定数K3を乗算した数値から近似輝度値Dnearestに定数K4を乗算する値までとして設定することも可能である。なお、定数K3および定数K4の各々は“0”を上回る有理数であり、定数K4は定数K3を上回る。   In this embodiment, the predetermined range has been described as being set by a numerical value obtained by multiplying the estimated luminance value Dguess by the constant K1 and a numerical value obtained by multiplying the estimated luminance value Dguess by the constant K2. Not exclusively. For example, the other predetermined range may be set from a value obtained by multiplying the approximate brightness value Dnearest by the constant K3 to a value obtained by multiplying the approximate brightness value Dnearest by the constant K4. Each of the constant K3 and the constant K4 is a rational number exceeding “0”, and the constant K4 exceeds the constant K3.

この発明の一実施例の構成を示すブロック図である。It is a block diagram which shows the structure of one Example of this invention. 図1実施例に適用されるCCDイメージャの撮像面の一例を示す図解図である。It is an illustration figure which shows an example of the imaging surface of the CCD imager applied to the FIG. 1 Example. 図1実施例に適用されるCPU26に形成されたテーブル26tの一例を示す図解図である。It is an illustration figure which shows an example of the table 26t formed in CPU26 applied to the FIG. 1 Example. 図1実施例に適用されるSDRAM40のメモリマッピングの一例を示す図解図である。It is an illustration figure which shows an example of the memory mapping of SDRAM40 applied to FIG. 1 Example. 図1実施例に適用されるCCDイメージャ14に含まれる欠陥画素とこの周辺画素との一例を示す図解図である。It is an illustration figure which shows an example of the defect pixel contained in the CCD imager 14 applied to FIG. 1 Example, and this peripheral pixel. (A)はCPU26によって検出された欠陥画素と周辺8画素との輝度値の一例を示す図解図であり、(B)はCPU26によって検出された周辺8画素の輝度値とCPU26によって修正処理を施された欠陥画素の推定輝度値との一例を示す図解図である。(A) is an illustrative view showing an example of luminance values of defective pixels and peripheral 8 pixels detected by the CPU 26, and (B) is a luminance value of peripheral 8 pixels detected by the CPU 26 and correction processing by the CPU 26. It is an illustration figure which shows an example with the estimated luminance value of the defective pixel made. (A)はCPU26によって検出された欠陥画素と周辺8画素との輝度値の他の一例を示す図解図であり、(B)はCPU26によって検出された周辺8画素の輝度値とCPU26によって修正処理を施された欠陥画素の推定輝度値との一例を示す図解図である。(A) is an illustrative view showing another example of luminance values of defective pixels and peripheral 8 pixels detected by the CPU 26, and (B) is a luminance value of peripheral pixels detected by the CPU 26 and correction processing by the CPU 26. It is an illustration figure which shows an example with the estimated brightness | luminance value of the defective pixel to which it was given. 図1実施例に適用されるCPU26の動作の一部を示すフロー図である。It is a flowchart which shows a part of operation | movement of CPU26 applied to the FIG. 1 Example. 図1実施例に適用されるCPU26の動作の他の一部を示すフロー図である。It is a flowchart which shows a part of other operation | movement of CPU26 applied to the FIG. 1 Example.

符号の説明Explanation of symbols

10 … ディジタルカメラ
14 … CCDイメージャ
16 … CDS/AGC/AD
52 … フラッシュメモリ
10 ... Digital camera 14 ... CCD imager 16 ... CDS / AGC / AD
52 ... Flash memory

Claims (6)

複数の画素が2次元に配列された撮像面を有する撮像手段、
前記撮像面で捉えられた被写界を表す画像データを作成する作成手段、
前記複数の画素に含まれる欠陥画素の画素情報を保持する保持手段、
前記作成手段によって作成された画像データを形成する前記欠陥画素のデータ値を前記保持手段によって保持された画素情報に基づいて補正する補正手段、
前記欠陥画素の周辺に存在する周辺画素のデータ値を検出する検出手段、
前記補正手段によって補正されたデータ値と前記検出手段によって検出されたデータ値との相違が既定範囲内であるか否かを判別する判別手段、
前記判別手段の判別結果が肯定的であるとき前記作成手段によって作成された画像データを形成する前記欠陥画素のデータ値を前記検出手段によって検出されたデータ値に置換する第1置換手段、および
前記判別手段の判別結果が否定的であるとき前記作成手段によって作成された画像データを形成する前記欠陥画素のデータ値を前記補正手段によって補正されたデータ値に置換する第2置換手段を備える、電子カメラ。
Imaging means having an imaging surface in which a plurality of pixels are two-dimensionally arranged;
Creating means for creating image data representing an object scene captured on the imaging surface;
Holding means for holding pixel information of defective pixels included in the plurality of pixels;
Correction means for correcting the data value of the defective pixel forming the image data created by the creation means based on the pixel information held by the holding means;
Detecting means for detecting data values of peripheral pixels existing around the defective pixel;
Discriminating means for discriminating whether or not the difference between the data value corrected by the correcting means and the data value detected by the detecting means is within a predetermined range;
First replacement means for replacing the data value of the defective pixel forming the image data created by the creation means with the data value detected by the detection means when the discrimination result of the discrimination means is affirmative; and An electronic apparatus comprising: a second replacement unit that replaces a data value of the defective pixel that forms the image data created by the creation unit with a data value corrected by the correction unit when a determination result of the determination unit is negative; camera.
前記検出手段によって検出されるデータ値は前記補正手段によって補正されたデータ値に最も近似するデータ値である、請求項1記載の電子カメラ。   2. The electronic camera according to claim 1, wherein the data value detected by the detecting means is a data value that is closest to the data value corrected by the correcting means. 前記複数の画素をそれぞれ覆う複数の色要素を有する色フィルタをさらに備え、前記複数の色要素の各々は複数の色のいずれか1つを有し、前記周辺画素を覆う色フィルタの色は前記欠陥画素を覆う色フィルタの色と一致する、請求項1または2記載の電子カメラ。   A color filter having a plurality of color elements covering each of the plurality of pixels; each of the plurality of color elements having one of a plurality of colors; The electronic camera according to claim 1, wherein the electronic camera matches a color of a color filter covering a defective pixel. 前記保持手段によって保持される前記欠陥画素の画素情報は前記欠陥画素が現れた位置を示す位置情報と前記欠陥画素の明るさを示す明るさ情報とを含む、請求項1ないし3のいずれかに記載の電子カメラ。   The pixel information of the defective pixel held by the holding unit includes position information indicating a position where the defective pixel appears and brightness information indicating the brightness of the defective pixel. The electronic camera described. 複数の画素が2次元に配列された撮像面を有する撮像手段、前記撮像面で捉えられた被写界を表す画像データを作成する作成手段、前記複数の画素に含まれる欠陥画素の画素情報を保持する保持手段を備える電子カメラのプロセサに、
前記作成手段によって作成された画像データを形成する前記欠陥画素のデータ値を前記保持手段によって保持された画素情報に基づいて補正する補正ステップ、
前記欠陥画素の周辺に存在する周辺画素のデータ値を検出する検出ステップ、
前記補正ステップによって補正されたデータ値と前記検出ステップによって検出されたデータ値との相違が既定範囲内であるか否かを判別する判別ステップ、
前記判別ステップの判別結果が肯定的であるとき前記作成手段によって作成された画像データを形成する前記欠陥画素のデータ値を前記検出ステップによって検出されたデータ値に置換する第1置換ステップ、および
前記判別ステップの判別結果が否定的であるとき前記作成手段によって作成された画像データを形成する前記欠陥画素のデータ値を前記補正ステップによって補正されたデータ値に置換する第2置換ステップを実行させるための、画像処理プログラム。
Imaging means having an imaging surface in which a plurality of pixels are two-dimensionally arranged, creating means for creating image data representing an object scene captured on the imaging surface, pixel information of defective pixels included in the plurality of pixels To a processor of an electronic camera provided with holding means for holding,
A correction step of correcting the data value of the defective pixel forming the image data created by the creating unit based on the pixel information held by the holding unit;
A detection step of detecting data values of peripheral pixels present around the defective pixel;
A determination step of determining whether or not a difference between the data value corrected by the correction step and the data value detected by the detection step is within a predetermined range;
A first replacement step of replacing the data value of the defective pixel forming the image data created by the creation means with the data value detected by the detection step when the determination result of the determination step is affirmative; and In order to execute a second replacement step of replacing the data value of the defective pixel forming the image data created by the creation means with the data value corrected by the correction step when the determination result of the determination step is negative Image processing program.
複数の画素が2次元に配列された撮像面を有する撮像手段、前記撮像面で捉えられた被写界を表す画像データを作成する作成手段、前記複数の画素に含まれる欠陥画素の画素情報を保持する保持手段を備える電子カメラの画像処理方法であって、
前記作成手段によって作成された画像データを形成する前記欠陥画素のデータ値を前記保持手段によって保持された画素情報に基づいて補正する補正ステップ、
前記欠陥画素の周辺に存在する周辺画素のデータ値を検出する検出ステップ、
前記補正ステップによって補正されたデータ値と前記検出ステップによって検出されたデータ値との相違が既定範囲内であるか否かを判別する判別ステップ、
前記判別ステップの判別結果が肯定的であるとき前記作成手段によって作成された画像データを形成する前記欠陥画素のデータ値を前記検出ステップによって検出されたデータ値に置換する第1置換ステップ、および
前記判別ステップの判別結果が否定的であるとき前記作成手段によって作成された画像データを形成する前記欠陥画素のデータ値を前記補正ステップによって補正されたデータ値に置換する第2置換ステップを備える、画像処理方法。
Imaging means having an imaging surface in which a plurality of pixels are two-dimensionally arranged, creating means for creating image data representing an object scene captured on the imaging surface, pixel information of defective pixels included in the plurality of pixels An image processing method of an electronic camera comprising a holding means for holding,
A correction step of correcting the data value of the defective pixel forming the image data created by the creating unit based on the pixel information held by the holding unit;
A detection step of detecting data values of peripheral pixels present around the defective pixel;
A determination step of determining whether or not a difference between the data value corrected by the correction step and the data value detected by the detection step is within a predetermined range;
A first replacement step of replacing the data value of the defective pixel forming the image data created by the creation means with the data value detected by the detection step when the discrimination result of the discrimination step is affirmative; and An image comprising a second replacement step of replacing the data value of the defective pixel forming the image data created by the creation means with the data value corrected by the correction step when the determination result of the determination step is negative; Processing method.
JP2006078034A 2006-03-22 2006-03-22 Electronic camera Expired - Fee Related JP4671893B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006078034A JP4671893B2 (en) 2006-03-22 2006-03-22 Electronic camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006078034A JP4671893B2 (en) 2006-03-22 2006-03-22 Electronic camera

Publications (2)

Publication Number Publication Date
JP2007258860A JP2007258860A (en) 2007-10-04
JP4671893B2 true JP4671893B2 (en) 2011-04-20

Family

ID=38632687

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006078034A Expired - Fee Related JP4671893B2 (en) 2006-03-22 2006-03-22 Electronic camera

Country Status (1)

Country Link
JP (1) JP4671893B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5563283B2 (en) * 2009-12-09 2014-07-30 キヤノン株式会社 Image processing device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004320128A (en) * 2003-04-11 2004-11-11 Mega Chips Corp Defective pixel correction device
JP2007174124A (en) * 2005-12-20 2007-07-05 Canon Inc Imaging apparatus and correction method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004320128A (en) * 2003-04-11 2004-11-11 Mega Chips Corp Defective pixel correction device
JP2007174124A (en) * 2005-12-20 2007-07-05 Canon Inc Imaging apparatus and correction method

Also Published As

Publication number Publication date
JP2007258860A (en) 2007-10-04

Similar Documents

Publication Publication Date Title
JP4008778B2 (en) Imaging device
JP4889538B2 (en) Image processing device
JP5123137B2 (en) Imaging apparatus and imaging method
JP5009880B2 (en) Imaging apparatus and imaging method
JP2009010616A (en) Imaging device and image output control method
JP4167200B2 (en) Signal processing apparatus, signal processing method, and digital camera
JP2007267072A (en) Electronic camera
US7876366B2 (en) Electronic camera
JP2006287814A (en) Imaging apparatus and method of determining motion vector
JP5569361B2 (en) Imaging apparatus and white balance control method
JP4671893B2 (en) Electronic camera
JP5223950B2 (en) Imaging apparatus, display control program, and display control method
JP2009055415A (en) Camera
JP5299159B2 (en) Imaging apparatus and program
WO2006054763A1 (en) Electronic camera
JP4687619B2 (en) Image processing apparatus, image processing method, and program
JP2008172395A (en) Imaging apparatus and image processing apparatus, method, and program
US7570289B2 (en) Electronic camera having a clamp circuit and performing a clamping process on an image signal
JP4449692B2 (en) Electronic camera
JP4726660B2 (en) Electronic camera
JP5799550B2 (en) Imaging apparatus, imaging method, and imaging program
JP4300043B2 (en) Imaging apparatus, imaging method, imaging program, and recording medium
JP5169540B2 (en) Imaging apparatus and imaging method
JP2007243769A (en) Camera
JP4353813B2 (en) Exposure control device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090312

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20101221

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110118

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140128

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140128

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140128

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees