JP5885464B2 - Imaging apparatus, control method thereof, and program - Google Patents

Imaging apparatus, control method thereof, and program Download PDF

Info

Publication number
JP5885464B2
JP5885464B2 JP2011236303A JP2011236303A JP5885464B2 JP 5885464 B2 JP5885464 B2 JP 5885464B2 JP 2011236303 A JP2011236303 A JP 2011236303A JP 2011236303 A JP2011236303 A JP 2011236303A JP 5885464 B2 JP5885464 B2 JP 5885464B2
Authority
JP
Japan
Prior art keywords
defective pixel
image
new
image data
information
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
JP2011236303A
Other languages
Japanese (ja)
Other versions
JP2013093816A (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2011236303A priority Critical patent/JP5885464B2/en
Publication of JP2013093816A publication Critical patent/JP2013093816A/en
Application granted granted Critical
Publication of JP5885464B2 publication Critical patent/JP5885464B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、欠陥画素補正を行うのに好適な撮像装置、その制御方法及びプログラムに関する。   The present invention relates to an imaging apparatus suitable for performing defective pixel correction, a control method thereof, and a program.

デジタルカメラが具備するCCDセンサやCMOSセンサ等の撮像素子には、一部の画素に通常の受光部とレベルの異なる欠陥画素が存在している。この欠陥画素は、記録時や表示時に、いわゆるキズとして現れることとなり、画質性能劣化の一因になる。この欠陥画素を、例えば周辺の非欠陥部の画像情報を用いて補正することで、画質性能の劣化を防ぐことができる。欠陥画素の位置は、主にデジタルカメラの製造過程で検出され、その位置情報がカメラ内に備えられたフラッシュROM等のメモリに記憶される。そして、記憶された欠陥画素の位置情報に基づいて、撮影毎に欠陥画素の補正が行われる。   In an image sensor such as a CCD sensor or a CMOS sensor included in a digital camera, a defective pixel having a level different from that of a normal light receiving unit exists in some pixels. This defective pixel appears as a so-called scratch at the time of recording or displaying, and contributes to deterioration of image quality performance. By correcting this defective pixel using, for example, image information of a peripheral non-defective part, it is possible to prevent deterioration in image quality performance. The position of the defective pixel is detected mainly during the manufacturing process of the digital camera, and the position information is stored in a memory such as a flash ROM provided in the camera. Then, based on the stored position information of the defective pixel, the defective pixel is corrected for each photographing.

しかしながら、欠陥画素の中には、製品としてデジタルカメラが出荷された後に発生するものが存在することがわかっている。このように製品出荷後に発生した欠陥に対しては、例えばユーザがその製品をサービスセンターに持ち込むか、製品によってはユーザ自身で欠陥検出動作を行うプログラムを実行させるかして対処していた。   However, it has been found that some defective pixels occur after a digital camera is shipped as a product. In this way, a defect that occurs after product shipment is dealt with by, for example, the user bringing the product into a service center, or depending on the product, executing a program that performs a defect detection operation by the user.

特許文献1には、異物検出とともに行う欠陥検出日時を記憶しておき、前回から所定時間以上経過していたら欠陥検出処理を実行する撮像装置が記載されている。この撮像装置によれば、定期的に欠陥画素検出が行われるので、新たな欠陥画素が発生した後ずっと欠陥画素が撮影画像に写りこんだままにならないというメリットがある。   Patent Document 1 describes an imaging device that stores the date and time of defect detection performed together with foreign object detection and executes defect detection processing when a predetermined time or more has elapsed since the previous time. According to this imaging apparatus, since defective pixel detection is performed periodically, there is a merit that the defective pixel does not remain in the captured image after a new defective pixel is generated.

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

しかしながら、上記従来例においては、欠陥画素検出を実行した後に撮影される画像に対しては補正を行うことができるが、新たな欠陥画素が発生した後で、次の欠陥画素検出までの期間に撮影された画像に対しては補正を行うことができないという問題があった。   However, in the above-described conventional example, correction can be performed on an image captured after executing defective pixel detection. However, after a new defective pixel is generated, a period until a next defective pixel is detected. There has been a problem that correction cannot be performed on a photographed image.

本発明は上記問題に鑑みてなされたものであり、新たな欠陥画素が発生した後で、次の欠陥画素検出までの期間に撮影された画像に対しても欠陥画素補正を行えるようにすることを目的とする。   The present invention has been made in view of the above-described problem, and enables defective pixel correction to be performed on an image shot during a period until a new defective pixel is detected after a new defective pixel is generated. With the goal.

本発明の撮像装置は、光電変換により画像信号を出力する撮像素子と、前記画像信号に基づいて画像データを生成する画像処理手段と、記画像データその撮影日時とともに画像ファイルとして記録媒体に記録する記録手段と、記画像データに基づいて、前記撮像素子の欠陥画素を検出する欠陥画素検出手段と、前記欠陥画素検出手段により検出された新規欠陥画素の情報をその検出日時とともに記憶する記憶手段と、前記新規欠陥画素の情報に基づいて、前記記録媒体に画像ファイルとして記録されている画像データに含まれる前記新規欠陥画素の出力データを補正する欠陥画素補正手段と、前記記録媒体に記録されている画像ファイルの中から、撮影日時が前記欠陥画素検出手段による前回の欠陥画素検出日時より新しい画像ファイルを抽出し、抽出された画像ファイルの数が少ない場合に、抽出された画像ファイルの画像データに含まれる前記新規欠陥画素の出力データを前記欠陥画素補正手段が補正するように制御し、抽出された画像ファイルの数が多い場合には、抽出された画像ファイルの画像データに含まれる前記新規欠陥画素の出力データを前記欠陥画素補正手段が補正しないように選択的に制御する制御手段と、を備えたことを特徴とする。 Imaging apparatus of the present invention includes an imaging device that outputs an image signal by photoelectric conversion, an image processing means for generating image data based on the image signal, a recording medium pre-outs image data as an image file with the shooting date and time and recording means for recording, based on the previous SL image data, storing the defective pixel detecting means for detecting a defective pixel of the imaging device, the information of new defective pixel detected by the defective pixel detecting means with the detection time And a defective pixel correction unit that corrects output data of the new defective pixel included in image data recorded as an image file on the recording medium, based on the information on the new defective pixel, and the recording medium the new image from the image files recorded, shooting date than the last defective pixel detection date by the defective pixel detecting means fa Extract the Le, if the number of extracted image files is small, the output data of the new defective pixel included in the image data of the extracted image files the defective pixel correction means controlled so as to correct, extracted Control means for selectively controlling the output data of the new defective pixel included in the image data of the extracted image file so that the defective pixel correction means does not correct the image data when the number of image files obtained is large; It is provided with.

本発明によれば、新たな欠陥画素が発生した後、次の欠陥画素検出までの期間に撮影された画像に対しても欠陥画素補正を行うことができる。   According to the present invention, it is possible to perform defective pixel correction on an image taken during a period until a new defective pixel is detected after a new defective pixel is generated.

第1の実施形態に係るデジタルカメラの構成を示すブロック図である。It is a block diagram which shows the structure of the digital camera which concerns on 1st Embodiment. 第1の実施形態における欠陥画素検出及び撮影済み画像に対する欠陥画素補正シーケンスを示すフローチャートである。It is a flowchart which shows the defective pixel correction sequence with respect to the defective pixel detection and picked-up image in 1st Embodiment. 欠陥画素検出の詳細を示すフローチャートである。It is a flowchart which shows the detail of a defective pixel detection. 欠陥画素補正の詳細を示すフローチャートである。It is a flowchart which shows the detail of defect pixel correction | amendment. 記録媒体中のファイル名及び撮影日時の一例を示す図である。It is a figure which shows an example of the file name in a recording medium, and imaging | photography date. 欠陥画素データの一例を示す図である。It is a figure which shows an example of defective pixel data. 第2の実施形態における欠陥画素検出及び撮影済み画像に対する欠陥画素データ付加シーケンスを示すフローチャートである。It is a flowchart which shows the defective pixel detection and the defective pixel data addition sequence with respect to the image | photographed image in 2nd Embodiment. 第3の実施形態における欠陥画素検出及び撮影済み画像に対する欠陥画素補正シーケンスを示すフローチャートである。It is a flowchart which shows the defective pixel correction sequence with respect to the defective pixel detection and picked-up image in 3rd Embodiment.

以下、添付図面を参照して、本発明の好適な実施形態について説明する。
<第1の実施形態>
図1は、第1の実施形態に係るデジタルカメラの構成を示す図である。図1において、100はデジタルカメラである。10は撮影レンズである。12は絞り機能を備える機械式シャッターである。14は光電変換により画像信号を出力する撮像素子である。16は撮像素子14のアナログ信号出力をディジタル信号に変換するA/D変換器である。
Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.
<First Embodiment>
FIG. 1 is a diagram illustrating a configuration of a digital camera according to the first embodiment. In FIG. 1, reference numeral 100 denotes a digital camera. Reference numeral 10 denotes a photographing lens. Reference numeral 12 denotes a mechanical shutter having an aperture function. An image sensor 14 outputs an image signal by photoelectric conversion. Reference numeral 16 denotes an A / D converter that converts an analog signal output from the image sensor 14 into a digital signal.

18はタイミング発生回路であり、メモリ制御回路22及びシステム制御回路50により制御され、撮像素子14、A/D変換器16、D/A変換器26にクロック信号や制御信号を供給する。機械式シャッター12以外にも、タイミング発生回路18による撮像素子14のリセットタイミングの制御によって電子シャッターとして蓄積時間を制御することが可能であり、動画撮影等に使用可能である。   A timing generation circuit 18 is controlled by the memory control circuit 22 and the system control circuit 50, and supplies a clock signal and a control signal to the image sensor 14, the A / D converter 16, and the D / A converter 26. In addition to the mechanical shutter 12, the accumulation time can be controlled as an electronic shutter by controlling the reset timing of the image sensor 14 by the timing generation circuit 18 and can be used for moving image shooting and the like.

20は画像処理回路であり、A/D変換器16からのデータ或いはメモリ制御回路22からのデータに対して所定の画素補間処理や色変換処理を行う。また、画像処理回路20によって画像の切り出し、変倍処理を行うことで電子ズーム機能が実現される。また、画像処理回路20は、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてシステム制御回路50が露光制御部40、測距制御部42に対して制御を行う、TTL方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュプリ発光)処理を行う。さらに、画像処理回路20は、撮像した画像データを用いて所定の演算処理を行い、得られた演算結果に基づいてTTL方式のAWB(オートホワイトバランス)処理も行う。   An image processing circuit 20 performs predetermined pixel interpolation processing and color conversion processing on the data from the A / D converter 16 or the data from the memory control circuit 22. Further, an electronic zoom function is realized by performing image cutting and scaling processing by the image processing circuit 20. The image processing circuit 20 performs predetermined calculation processing using the captured image data, and the system control circuit 50 controls the exposure control unit 40 and the distance measurement control unit 42 based on the obtained calculation result. TTL AF (autofocus) processing, AE (automatic exposure) processing, and EF (flash pre-emission) processing are performed. Further, the image processing circuit 20 performs predetermined calculation processing using the captured image data, and also performs TTL AWB (auto white balance) processing based on the obtained calculation result.

22はメモリ制御回路であり、A/D変換器16、タイミング発生回路18、画像処理回路20、画像表示メモリ24、D/A変換器26、メモリ30、圧縮・伸長回路32を制御する。A/D変換器16のデータが画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器16のデータが直接メモリ制御回路22を介して、画像表示メモリ24或いはメモリ30に書き込まれる。   A memory control circuit 22 controls the A / D converter 16, the timing generation circuit 18, the image processing circuit 20, the image display memory 24, the D / A converter 26, the memory 30, and the compression / decompression circuit 32. The data of the A / D converter 16 is written into the image display memory 24 or the memory 30 via the image processing circuit 20 and the memory control circuit 22 or the data of the A / D converter 16 is directly passed through the memory control circuit 22. It is.

24は画像表示メモリ、26はD/A変換器、28はTFT LCD等からなる画像表示部であり、画像表示メモリ24に書き込まれた表示用の画像データはD/A変換器26を介して画像表示部28により表示される。画像表示部28を用いて撮像した画像データを逐次表示すれば、電子ファインダー機能を実現することが可能である。また、画像表示部28は、システム制御回路50の指示により任意に表示をON/OFFすることが可能であり、表示をOFFにした場合にはデジタルカメラ100の電力消費を大幅に低減することができる。   Reference numeral 24 denotes an image display memory, 26 denotes a D / A converter, 28 denotes an image display unit comprising a TFT LCD, and the display image data written in the image display memory 24 is passed through the D / A converter 26. Displayed by the image display unit 28. If the image data captured using the image display unit 28 is sequentially displayed, the electronic viewfinder function can be realized. The image display unit 28 can arbitrarily turn on / off the display according to an instruction from the system control circuit 50. When the display is turned off, the power consumption of the digital camera 100 can be significantly reduced. it can.

30は撮像した静止画像や動画像のデータを格納するためのメモリであり、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記憶量を備える。これにより、複数枚の静止画像を連続して撮影する連写撮影やパノラマ撮影の場合にも、高速かつ大量の画像書き込みをメモリ30に対して行うことが可能となる。また、メモリ30は、システム制御回路50の作業領域としても使用することが可能である。   Reference numeral 30 denotes a memory for storing captured still images and moving image data, and has a sufficient storage capacity for storing a predetermined number of still images and a predetermined time of moving images. This makes it possible to write a large amount of images to the memory 30 at high speed even in continuous shooting or panoramic shooting in which a plurality of still images are continuously shot. The memory 30 can also be used as a work area for the system control circuit 50.

32は圧縮・伸長回路であり、画像信号に対して、例えば直交変換を用いたJPEG(Joint Photographic Experts Group)規格での圧縮を施し、この圧縮した画像を元のデータに伸長する。メモリ30に格納された画像を読み込んで圧縮処理或いは伸長処理を行い、処理を終えたデータをメモリ30に書き込む。   A compression / decompression circuit 32 compresses the image signal according to, for example, the JPEG (Joint Photographic Experts Group) standard using orthogonal transformation, and decompresses the compressed image to the original data. The image stored in the memory 30 is read, compression processing or decompression processing is performed, and the processed data is written in the memory 30.

40は絞り機能を備える機械式シャッター12を制御する露光制御部であり、フラッシュ48と連携することによりフラッシュ調光機能も有する。42は撮影レンズ10のフォーカシングを制御する測距制御部である。44は撮影レンズ10のズーミングを制御するズーム制御部である。46はバリア102の動作を制御するバリア制御部である。48はフラッシュであり、AF補助光の投光機能、フラッシュ調光機能も有する。露光制御部40、測距制御部42はTTL方式を用いて制御されており、撮像した画像データを画像処理回路20によって演算した演算結果に基づき、システム制御回路50が露光制御部40、測距制御部42に対して制御を行う。   An exposure control unit 40 controls the mechanical shutter 12 having an aperture function, and has a flash light control function in cooperation with the flash 48. A distance measuring control unit 42 controls focusing of the photographing lens 10. A zoom control unit 44 controls zooming of the photographing lens 10. A barrier control unit 46 controls the operation of the barrier 102. A flash 48 has an AF auxiliary light projecting function and a flash light control function. The exposure control unit 40 and the distance measurement control unit 42 are controlled using the TTL method. Based on the calculation result obtained by calculating the captured image data by the image processing circuit 20, the system control circuit 50 performs the exposure control unit 40 and the distance measurement. The controller 42 is controlled.

50はデジタルカメラ100全体を制御するシステム制御回路である。52はシステム制御回路50の動作用の定数、変数、プログラム等を記憶するメモリである。   A system control circuit 50 controls the entire digital camera 100. A memory 52 stores constants, variables, programs, and the like for operating the system control circuit 50.

54はシステム制御回路50でのプログラムの実行に応じて、文字、画像、音声等を用いて動作状態やメッセージ等を表示する液晶表示装置、スピーカー等の表示部である。表示部54は、デジタルカメラ100の操作部近辺の視認し易い位置に設置され、例えばLCDやLED、発音素子等の組み合わせにより構成される。また、表示部54は、その一部の機能が光学ファインダー104内に設置されている。表示部54の表示内容のうち、LCD等に表示するものとしては、シングルショット/連写撮影表示、セルフタイマー表示、圧縮率表示、記録画素数表示、記録枚数表示、残撮影可能枚数表示、シャッタースピード表示、絞り値表示、露出補正表示、フラッシュ表示、赤目緩和表示、マクロ撮影表示等がある。また、ブザー設定表示、電池残量表示、エラー表示、複数桁の数字による情報表示、記録媒体200及び210の着脱状態表示、通信I/F動作表示等も可能である。また、表示部54の表示内容のうち、光学ファインダー104内に表示するものとしては、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタースピード表示、絞り値表示、露出補正表示、等がある。   Reference numeral 54 denotes a display unit such as a liquid crystal display device or a speaker that displays an operation state, a message, and the like using characters, images, sounds, and the like in accordance with execution of a program in the system control circuit 50. The display unit 54 is installed at an easily visible position near the operation unit of the digital camera 100, and is configured by a combination of, for example, an LCD, an LED, and a sounding element. In addition, the display unit 54 is partially installed in the optical viewfinder 104. Among the display contents of the display unit 54, what is displayed on the LCD or the like includes single shot / continuous shooting display, self-timer display, compression rate display, number of recorded pixels, number of recorded pixels, number of remaining images that can be captured, shutter There are speed display, aperture value display, exposure compensation display, flash display, red-eye reduction display, macro shooting display, and the like. Further, a buzzer setting display, a battery remaining amount display, an error display, an information display with a multi-digit number, an attachment / detachment state display of the recording media 200 and 210, a communication I / F operation display, and the like are possible. Further, among the display contents of the display unit 54, what is displayed in the optical viewfinder 104 includes in-focus display, camera shake warning display, flash charge display, shutter speed display, aperture value display, exposure correction display, and the like.

56は電気的に消去・記録可能な不揮発性メモリであり、例えばフラッシュROM等が用いられる。不揮発性メモリ56には、カメラ全般の制御を行うファームウェアの他、製品出荷前に工場にて検出された、欠陥画素データ(欠陥画素の位置情報、欠陥画素の信号レベル)が格納されている。ここに記憶された欠陥画素の位置情報に基づいて、撮影毎に欠陥画素の補正が行うことが可能である。   Reference numeral 56 denotes an electrically erasable / recordable nonvolatile memory, such as a flash ROM. The nonvolatile memory 56 stores, in addition to firmware for controlling the entire camera, defective pixel data (defective pixel position information, defective pixel signal level) detected at the factory before product shipment. Based on the position information of the defective pixel stored here, it is possible to correct the defective pixel for each photographing.

60、62、64、66、70及び72はシステム制御回路50の各種の動作指示を入力するための操作手段であり、スイッチやダイアル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される。
ここで、これらの操作手段の具体的な説明を行う。
60はモードダイアルスイッチであり、電源オフ、自動撮影モード、撮影モード、パノラマ撮影モード、動画撮影モード、再生モード、マルチ画面再生・消去モード、PC(パーソナルコンピュータ)接続モード、テレビ受信モード等の各機能モードを切り替え設定することができる。
62はシャッタースイッチSW1であり、シャッターボタンの操作途中でONとなり、AF処理、AE処理、AWB処理、EF処理等の動作開始を指示する。
64はシャッタースイッチSW2であり、シャッターボタンの操作完了でONとなり、露光処理、現像処理、記録処理という一連の処理の動作開始を指示する。露光処理では、撮像素子14から読み出した信号をA/D変換器16、メモリ制御回路22を介してメモリ30に画像データを書き込む。現像処理では、画像処理回路20やメモリ制御回路22での演算を用いて行われ、メモリ30から画像データを読み出し、圧縮・伸長回路32で圧縮を行う。記録処理では、記録媒体200或いは210に画像データを書き込む。
66は表示切替スイッチであり、画像表示部28の表示切替をすることができる。この機能により、光学ファインダー104を用いて撮影を行う際に、TFT LCD等からなる画像表示部28への電流供給を遮断することにより、省電力を図ることが可能となる。
70は各種ボタンやタッチパネル等からなる操作部であり、メニューボタン、セットボタン、マクロボタン、マルチ画面再生改ページボタン、フラッシュ設定ボタン、単写/連写/セルフタイマー切り替えボタン等がある。また、メニュー移動+(プラス)ボタン、メニュー移動−(マイナス)ボタン、再生画像移動+(プラス)ボタン、再生画像−(マイナス)ボタン、撮影画質選択ボタン、露出補正ボタン、日付/時間設定ボタン等もある。
72はユーザが撮像画像の倍率変更指示を行うズームスイッチであり、撮像画角を望遠側に変更させるテレスイッチと、広角側に変更させるワイドスイッチからなる。このズームスイッチ72を用いることにより、ズーム制御部44に撮影レンズ10の撮像画角の変更を指示し光学ズーム操作を行うトリガとなる。また、画像処理回路20による画像の切り出しや、画素補間処理等による撮像画角の電子的な変更のトリガともなる。
74は被写体検出部であり、被写体を検出する素子等がある。被写体として、顔検出する場合も考えられる。
Reference numerals 60, 62, 64, 66, 70, and 72 denote operation means for inputting various operation instructions of the system control circuit 50. One or a plurality of switches, dials, touch panels, pointing by line-of-sight detection, voice recognition devices, etc. Consists of
Here, a specific description of these operating means will be given.
Reference numeral 60 denotes a mode dial switch, which includes power-off, automatic shooting mode, shooting mode, panoramic shooting mode, moving image shooting mode, playback mode, multi-screen playback / erase mode, PC (personal computer) connection mode, TV reception mode, etc. The function mode can be switched and set.
Reference numeral 62 denotes a shutter switch SW1, which is turned ON during the operation of the shutter button, and instructs to start operations such as AF processing, AE processing, AWB processing, and EF processing.
Reference numeral 64 denotes a shutter switch SW2, which is turned on when the operation of the shutter button is completed, and instructs the start of a series of processing operations including exposure processing, development processing, and recording processing. In the exposure process, the image data is written into the memory 30 through the signal read from the image sensor 14 via the A / D converter 16 and the memory control circuit 22. The development process is performed by using an operation in the image processing circuit 20 or the memory control circuit 22, reads image data from the memory 30, and compresses it by the compression / decompression circuit 32. In the recording process, image data is written to the recording medium 200 or 210.
Reference numeral 66 denotes a display changeover switch, which can change the display of the image display unit 28. With this function, when photographing is performed using the optical viewfinder 104, it is possible to save power by cutting off the current supply to the image display unit 28 including a TFT LCD or the like.
An operation unit 70 includes various buttons, a touch panel, and the like, and includes a menu button, a set button, a macro button, a multi-screen playback page break button, a flash setting button, a single shooting / continuous shooting / self-timer switching button, and the like. Also, menu movement + (plus) button, menu movement-(minus) button, playback image movement + (plus) button, playback image-(minus) button, shooting image selection button, exposure compensation button, date / time setting button, etc. There is also.
A zoom switch 72 is used by the user to give an instruction to change the magnification of the captured image. The zoom switch includes a tele switch that changes the captured field angle to the telephoto side and a wide switch that changes the wide angle side. By using the zoom switch 72, the zoom control unit 44 is instructed to change the imaging field angle of the photographing lens 10 and becomes a trigger for performing an optical zoom operation. In addition, it also serves as a trigger for electronic change of the imaging angle of view by image cutting by the image processing circuit 20 or pixel interpolation processing.
Reference numeral 74 denotes a subject detection unit, which includes an element for detecting the subject. A case where a face is detected as a subject is also conceivable.

80は電源制御部で、電池検出回路、DC-DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成されており、電池の装着の有無、電池の種類、電池残量の検出を行う。また、検出結果及びシステム制御回路50の指示に基づいてDC-DCコンバータを制御し、必要な電圧を必要な期間、記録媒体を含む各部へ供給する。82はコネクタ、84はコネクタ、86はアルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等からなる電源である。   A power control unit 80 includes a battery detection circuit, a DC-DC converter, a switch circuit that switches a block to be energized, and the like, and detects whether or not a battery is attached, the type of battery, and the remaining battery level. Further, the DC-DC converter is controlled based on the detection result and the instruction of the system control circuit 50, and a necessary voltage is supplied to each part including the recording medium for a necessary period. 82 is a connector, 84 is a connector, 86 is a primary battery such as an alkaline battery or lithium battery, a secondary battery such as a NiCd battery, NiMH battery or Li battery, an AC adapter, or the like.

90及び94はメモリカードやハードディスク等の記録媒体とのインタフェース、92及び96はメモリカードやハードディスク等の記録媒体と接続を行うコネクタである。なお、本実施形態では記録媒体を取り付けるインタフェース及びコネクタを2系統持つものとして説明している。もちろん、記録媒体を取り付けるインタフェース及びコネクタは、単数或いは複数、いずれの系統数を備える構成としても構わない。また、異なる規格のインタフェース及びコネクタを組み合わせて備える構成としても構わない。インタフェース及びコネクタとしては、SDカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成して構わない。さらに、インタフェース90及び94、そしてコネクタ92及び96をPCMCIAカードやCFカード等の規格に準拠したものを用いて構成することも可能である。すなわち、LANカードやモデムカード、USBカード、IEEE1394カード、SCSIカード、PHS等の通信カード等の各種通信カードを接続することにより、他のコンピュータやプリンタ等の周辺機器との間で画像データや画像データに付属した管理情報を転送し合うことができる。   Reference numerals 90 and 94 denote interfaces with recording media such as memory cards and hard disks, and reference numerals 92 and 96 denote connectors for connecting to recording media such as memory cards and hard disks. In the present embodiment, it is assumed that there are two interfaces and connectors for attaching the recording medium. Of course, the interface and the connector for attaching the recording medium may have a single or a plurality of systems, any number of systems. Moreover, it is good also as a structure provided with combining the interface and connector of a different standard. The interface and the connector may be configured using an SD card, a CF (Compact Flash (registered trademark)) card, or the like. Further, the interfaces 90 and 94, and the connectors 92 and 96 can be configured by using ones conforming to a standard such as a PCMCIA card or a CF card. That is, by connecting various communication cards such as LAN cards, modem cards, USB cards, IEEE 1394 cards, SCSI cards, PHS and other communication cards, image data and images can be exchanged with other computers and peripheral devices such as printers. Management information attached to the data can be transferred.

102は保護手段であるバリアであり、デジタルカメラ100のレンズ10を含む撮像部を覆うことにより、撮像部の汚れや破損を防止する。104は光学ファインダーであり、画像表示部28による電子ファインダー機能を使用すること無しに、光学ファインダー104のみを用いて撮影を行うことが可能である。また、光学ファインダー104内には、表示部54の一部の機能、例えば、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタースピード表示、絞り値表示、露出補正表示等が設置されている。   Reference numeral 102 denotes a barrier serving as a protection unit, which covers the imaging unit including the lens 10 of the digital camera 100 to prevent the imaging unit from being soiled or damaged. Reference numeral 104 denotes an optical viewfinder, which can take an image using only the optical viewfinder 104 without using the electronic viewfinder function of the image display unit 28. In the optical viewfinder 104, some functions of the display unit 54, for example, a focus display, a camera shake warning display, a flash charge display, a shutter speed display, an aperture value display, an exposure correction display, and the like are installed.

110は通信部であり、USB、IEEE1394、LAN、無線通信等の各種通信機能を有する。112は通信部110によりデジタルカメラ100を他の機器と接続するコネクタ或いは無線通信の場合はアンテナである。   A communication unit 110 has various communication functions such as USB, IEEE 1394, LAN, and wireless communication. Reference numeral 112 denotes a connector for connecting the digital camera 100 to another device by the communication unit 110 or an antenna in the case of wireless communication.

200はメモリカードやハードディスク等の記録媒体である。記録媒体200は、半導体メモリや磁気ディスク等から構成される記録部202、デジタルカメラ100とのインタフェース204、デジタルカメラ100と接続を行うコネクタ206を備えている。210はメモリカードやハードディスク等の記録媒体である。記録媒体210は、半導体メモリや磁気ディスク等から構成される記録部212、デジタルカメラ100とのインタフェース214、デジタルカメラ100と接続を行うコネクタ216を備えている。   Reference numeral 200 denotes a recording medium such as a memory card or a hard disk. The recording medium 200 includes a recording unit 202 composed of a semiconductor memory, a magnetic disk, or the like, an interface 204 with the digital camera 100, and a connector 206 for connecting with the digital camera 100. Reference numeral 210 denotes a recording medium such as a memory card or a hard disk. The recording medium 210 includes a recording unit 212 composed of a semiconductor memory, a magnetic disk, and the like, an interface 214 with the digital camera 100, and a connector 216 for connecting with the digital camera 100.

以下、本実施形態に係るデジタルカメラ100における製品出荷後の欠陥画素検出及び補正について具体的に説明を行う。
(製品出荷後の欠陥画素検出及び補正)
製品出荷後の欠陥画素検出及び補正のタイミングとしては、例えば下記の1〜3等が考えられる。
1.ユーザにより指定されたとき。
2.前回の検出日時から所定時間が経過したとき。
3.カメラの電源ON(又はOFF)時。
Hereinafter, the defective pixel detection and correction after product shipment in the digital camera 100 according to the present embodiment will be specifically described.
(Detection and correction of defective pixels after product shipment)
As defective pixel detection and correction timing after product shipment, for example, the following 1-3 may be considered.
1. When specified by the user.
2. When a predetermined time has passed since the previous detection date.
3. When the camera is turned on (or off).

1.では、操作部70に含まれるメニューボタン押下時に表示されるメニュー項目の1つとして欠陥画素検出の項目を選択・実行することで、欠陥画素検出が行われる。2.及び3.では、カメラ側で自動的に欠陥画素検出を実行するので、ユーザが意識しなくても新たに発生した欠陥画素に対する補正を行うことが可能である。   1. Then, defective pixel detection is performed by selecting and executing a defective pixel detection item as one of the menu items displayed when the menu button included in the operation unit 70 is pressed. 2. And 3. Then, since the defective pixel detection is automatically executed on the camera side, it is possible to correct a newly generated defective pixel without the user being aware of it.

図2は、本実施形態に係るデジタルカメラ100において上記いずれかのタイミングにて実施される、欠陥画素検出及び撮影済み画像に対する欠陥画素補正シーケンスを示すフローチャートである。まず、前回の欠陥画素検出時点から現在までに新たに発生した欠陥画素、すなわち新規欠陥画素を検出するために欠陥画素検出を行う(ステップS201)。ステップS201の欠陥画素検出の詳細については後述する。   FIG. 2 is a flow chart showing a defective pixel detection and defective pixel correction sequence for a photographed image, which is performed at any of the above timings in the digital camera 100 according to the present embodiment. First, defective pixel detection is performed in order to detect a defective pixel newly generated from the previous defective pixel detection time to the present, that is, a new defective pixel (step S201). Details of the defective pixel detection in step S201 will be described later.

次に、新規欠陥画素が発生していたかを否かを判定し(ステップS202)、発生していなければ補正の必要はないので、処理を終了する。ステップS202において新規欠陥画素が発生していた場合、不揮発性メモリ56に格納されている、新規欠陥画素データを取得する(ステップS203)。   Next, it is determined whether or not a new defective pixel has occurred (step S202). If it has not occurred, no correction is necessary, and the processing is terminated. If a new defective pixel has occurred in step S202, new defective pixel data stored in the nonvolatile memory 56 is acquired (step S203).

次に、記録媒体200、210に記録済みの画像ファイルを日時情報に基づいて検索し(ステップS204)、画像ファイルが前回の欠陥画素検出日時より古い場合、欠陥画素補正は行わずステップS206へ進む。ステップS204において画像ファイルが前回の欠陥画素検出日時より新しい場合、ステップS205へ進み、ステップS203において取得した欠陥画素データに基づいて欠陥画素補正を行う。ステップS205の欠陥画素補正の詳細については後述する。   Next, the image files recorded in the recording media 200 and 210 are searched based on the date and time information (step S204). If the image file is older than the previous defective pixel detection date and time, the defective pixel correction is not performed and the process proceeds to step S206. . If the image file is newer than the previous defective pixel detection date and time in step S204, the process proceeds to step S205, and defective pixel correction is performed based on the defective pixel data acquired in step S203. Details of the defective pixel correction in step S205 will be described later.

ステップS206では、全画像ファイルについて検索が行われたか否かを判定し、完了した場合、処理を終了する。まだ完了していない場合、ステップS204へ戻って処理を継続する。   In step S206, it is determined whether or not all image files have been searched. If completed, the process ends. If not completed yet, the process returns to step S204 to continue the process.

(欠陥画素検出)
図3は、図2のステップS201における欠陥画素検出の詳細を示すフローチャートである。欠陥画素検出は、従来より行われているものと同様の方法で実施することができる。すなわち、遮光状態での撮像信号を取り込み、その信号レベルに基づいて欠陥画素判定を行うものである。まず、検出用撮影のための撮影条件設定を行う(ステップS301)。例えば遮光のために、機械式シャッター12を閉じ状態に設定し、シャッタースピード、感度等を検出に適した値に設定する。欠陥画素は温度依存性の高いものが存在するため、場合によっては敢えて温度上昇を伴うような動作を実行させた上で、温度上昇待ちを行う。
(Defective pixel detection)
FIG. 3 is a flowchart showing details of defective pixel detection in step S201 of FIG. The defective pixel detection can be performed by a method similar to that conventionally performed. That is, an image pickup signal in a light-shielded state is taken and defective pixel determination is performed based on the signal level. First, shooting condition settings for detection shooting are performed (step S301). For example, in order to block light, the mechanical shutter 12 is set to a closed state, and the shutter speed, sensitivity, and the like are set to values suitable for detection. Since defective pixels are highly temperature-dependent, depending on the case, an operation that accompanies a temperature rise is executed, and a temperature rise wait is performed.

次に、画像の撮影を行い(ステップS302)、撮像素子14からA/D変換器16を通して得られた生データ(以下RAWデータと記述する)をメモリ30に保存する。次に、RAWデータを順次読み出しながら(ステップS303)、画像レベルが所定の閾値より高いか否かを判定する(ステップS304)。   Next, an image is taken (step S302), and raw data (hereinafter referred to as RAW data) obtained from the image sensor 14 through the A / D converter 16 is stored in the memory 30. Next, while sequentially reading the RAW data (step S303), it is determined whether the image level is higher than a predetermined threshold (step S304).

ステップS304において画像レベルが所定の閾値より高い場合、不揮発性メモリ56の欠陥画素データ領域に既に登録されている欠陥画素と同じものであるか否かを欠陥画素の位置情報を比較して判定する(ステップS305)。欠陥画素データのいずれにも該当しなかった場合、新規欠陥画素であるので、この新規欠陥画素データ(新規欠陥画素の位置情報、新規欠陥画素の信号レベル)を不揮発性メモリ56の欠陥画素データ領域に追記する(ステップS306)。   If the image level is higher than the predetermined threshold value in step S304, it is determined by comparing the position information of the defective pixel whether or not it is the same as the defective pixel already registered in the defective pixel data area of the nonvolatile memory 56. (Step S305). If none of the defective pixel data corresponds to a new defective pixel, the new defective pixel data (position information of the new defective pixel, signal level of the new defective pixel) is used as the defective pixel data area of the nonvolatile memory 56. (Step S306).

一方、ステップS304において画像レベルが所定の閾値より高くなかった場合、欠陥はないと判定し、ステップS307へ進む。ステップS305において不揮発性メモリ56の欠陥画素データ領域に既に登録されている場合も、新規欠陥画素ではないと判定し、ステップS307へ進む。ステップS307では、撮影した画像の全画素について比較が完了したかどうかをチェックし、まだ終わっていなければステップS303へ戻る。全画素について比較が完了していたら、本処理を終了する。   On the other hand, if the image level is not higher than the predetermined threshold in step S304, it is determined that there is no defect, and the process proceeds to step S307. If it is already registered in the defective pixel data area of the nonvolatile memory 56 in step S305, it is determined that the pixel is not a new defective pixel, and the process proceeds to step S307. In step S307, it is checked whether or not the comparison has been completed for all the pixels of the photographed image. If not yet completed, the process returns to step S303. If the comparison has been completed for all the pixels, this process ends.

(欠陥画素補正)
図4は、図2のステップS205における欠陥画素補正の詳細を示すフローチャートである。まず、画像処理回路20は、欠陥画素補正を行う際に使用するための欠陥画素データの読み出しを行う(ステップS401)。欠陥画素データは不揮発性メモリ56に保存されており、撮影後の欠陥画素補正において実際に使用する欠陥画素データを読み出す。
(Defective pixel correction)
FIG. 4 is a flowchart showing details of the defective pixel correction in step S205 of FIG. First, the image processing circuit 20 reads out defective pixel data for use when performing defective pixel correction (step S401). The defective pixel data is stored in the nonvolatile memory 56, and the defective pixel data actually used in the defective pixel correction after photographing is read out.

システム制御回路50は、撮影条件に応じて使用する欠陥画素データを指定した後(ステップS402)、その欠陥画素データに記載された欠陥画素の位置(アドレス)を示す情報を読み出す(ステップS403)。次に、システム制御回路50は、ステップS403において欠陥画素アドレスを特定した当該画素に隣接する同色画素の撮影画像データを読み込む(ステップS404)。   The system control circuit 50 designates defective pixel data to be used according to the photographing conditions (step S402), and then reads information indicating the position (address) of the defective pixel described in the defective pixel data (step S403). Next, the system control circuit 50 reads captured image data of the same color pixel adjacent to the pixel for which the defective pixel address is specified in step S403 (step S404).

次に、システム制御回路50は、ステップS404において得られた隣接画素の値から、当該画素の補正量を算出する(ステップS405)。次に、システム制御回路50は、ステップS405において算出した当該画素の補正量を、メモリ30における当該アドレスに書き込む(ステップS406)。以上で当該画素の補正処理を完了する。次に、システム制御回路50は、指定した欠陥画素データに記載された欠陥画素の欠陥画素補正が全て完了したか否かを判定し(ステップS407)、まだ完了していない場合、ステップS403へ戻って、次の欠陥画素アドレスを読み込む。ステップS407において全ての欠陥画素補正処理が完了した場合、処理を終了する。   Next, the system control circuit 50 calculates the correction amount of the pixel from the value of the adjacent pixel obtained in step S404 (step S405). Next, the system control circuit 50 writes the correction amount of the pixel calculated in step S405 at the address in the memory 30 (step S406). The pixel correction process is thus completed. Next, the system control circuit 50 determines whether or not all defective pixel corrections of the defective pixels described in the designated defective pixel data have been completed (step S407), and if not completed yet, returns to step S403. Then, the next defective pixel address is read. If all defective pixel correction processes are completed in step S407, the process ends.

(記録媒体中の画像ファイルへの欠陥画素検出及び補正の適用例)
以下、第1の実施形態において、記録媒体200、210中のファイル名及び撮影日時が図5に示すようになっていた場合の欠陥画素検出及び補正について詳説する。図5は、記録媒体中のファイル名及び撮影日時の一例を示す図であり、図6は欠陥画素データの一例を示す図である。
(Application example of defective pixel detection and correction to image file in recording medium)
Hereinafter, in the first embodiment, detection and correction of defective pixels when the file names and shooting dates / times in the recording media 200 and 210 are as shown in FIG. 5 will be described in detail. FIG. 5 is a diagram illustrating an example of a file name and shooting date / time in a recording medium, and FIG. 6 is a diagram illustrating an example of defective pixel data.

欠陥画素検出間隔を7日間隔と仮定し、前回の欠陥画素検出日時が2009年6月17日(以下、西暦/月/日で記す)、今回の欠陥画素検出日時が2009/6/24であるとする。また、製品出荷後に新規の欠陥画素が2009/6/19に発生したとする。この場合、2009/6/19日以降に撮影された画像、すなわち、IMG_0003.JPG、IMG_0004.RAW、IMG_0005.RAW、IMG_0005.JPGについては、新規欠陥画素が補正されていない状態で記録されている。なお、IMG_0005.RAW、IMG_0005.JPGは同一の被写体を同タイミングで、異なる複数の記録形式で記録したものである。   Assuming that the defective pixel detection interval is a 7-day interval, the previous defective pixel detection date is June 17, 2009 (hereinafter referred to as the year / month / day), and the current defective pixel detection date is 2009/6/24. Suppose there is. Further, it is assumed that a new defective pixel occurs on 2009/6/19 after product shipment. In this case, images taken after 2009/6/19, that is, IMG_0003.JPG, IMG_0004.RAW, IMG_0005.RAW, and IMG_0005.JPG are recorded in a state where the new defective pixels are not corrected. . Note that IMG_0005.RAW and IMG_0005.JPG are recorded in the same subject in the same timing and in a plurality of different recording formats.

図2のフローチャートに示した欠陥画素検出及び撮影済み画像に対する欠陥画素補正シーケンスを実行する。この場合、IMG_0001.JPGについては、その撮影日時が前回の欠陥画素検出日時より古いので、欠陥画素補正の対象画像とならない。それに対して、IMG_0003.JPG、IMG_0004.RAW、IMG_0005.RAW、IMG_0005.JPGについては、その撮影日時が前回の欠陥画素検出日時より新しいので、欠陥画素補正の対象画像となる。また、IMG_0002.RAWについては、新規欠陥画素の発生日時(2009/6/19)前に記録されたものであるので、本来は欠陥画素補正の必要はないが、新規欠陥画素の正確な混入時期を特定することは困難である。そこで、本実施形態では、前回の欠陥画素検出日時(2009/6/17)と今回の検出日時(2009/6/24)との間に撮影された全ての画像に対して、欠陥画素補正を行っている。すなわち、IMG_0002.RAWについても、欠陥画素補正の対象画像となる。なお、本来は欠陥画素の補正の必要のないIMG_0002.RAW画像の座標(X=1502、Y=622)の画素について、周囲画素から補間演算された結果で置換される。しかしながら、製品出荷後の欠陥画素の発生数は、一般的に製品出荷前に検出されたキズと比較して十分少ないので、周囲画素からの補間演算を施して補正された場合でも画質への影響は軽微である。   The defective pixel detection sequence shown in the flowchart of FIG. 2 and the defective pixel correction sequence for the photographed image are executed. In this case, since IMG_0001.JPG has a shooting date and time older than the previous defective pixel detection date and time, it is not a target image for defective pixel correction. On the other hand, since IMG_0003.JPG, IMG_0004.RAW, IMG_0005.RAW, and IMG_0005.JPG have newer shooting dates and times than the previous defective pixel detection date and time, they become target images for defective pixel correction. Also, since IMG_0002.RAW was recorded before the date and time of occurrence of the new defective pixel (2009/6/19), it is originally not necessary to correct the defective pixel, but the correct mixing time of the new defective pixel is not necessary. It is difficult to specify. Thus, in the present embodiment, defective pixel correction is performed on all images captured between the previous defective pixel detection date (2009/6/17) and the current detection date (2009/6/24). Is going. That is, IMG_0002.RAW is also a target image for defective pixel correction. It should be noted that the pixel at the coordinates (X = 1502, Y = 622) of the IMG — 0002.RAW image, which originally does not require correction of defective pixels, is replaced with the result of interpolation calculation from surrounding pixels. However, since the number of defective pixels after product shipment is generally sufficiently small compared to scratches detected before product shipment, even if correction is performed by interpolation from surrounding pixels, the effect on image quality is affected. Is insignificant.

図6は、不揮発性メモリ56に保存された欠陥画素データを示したもので、欠陥画素番号、欠陥画素の位置を示す座標(X,Y)、欠陥画素の信号レベルの大きさを指す欠陥画素レベル、欠陥画素検出日時から構成される。D1、D2、D3については、製品出荷前の2009/5/7の欠陥画素検出によって検出された欠陥画素データであり、D4nは、製品出荷後の2009/6/24の欠陥画素検出によって検出された欠陥画素データである。図5には存在していないが、2009/6/24以降に撮影された画像については、図6に示す通り、カメラの不揮発性メモリ内に新規欠陥画素データD4nが追加されている。この欠陥画素データD4nを使うことによって、撮影時に、新規欠陥画素まで含めた欠陥画素補正を行うことができる。   FIG. 6 shows defective pixel data stored in the nonvolatile memory 56. The defective pixel indicates the defective pixel number, the coordinates (X, Y) indicating the position of the defective pixel, and the signal level of the defective pixel. Consists of level and defective pixel detection date and time. D1, D2, and D3 are defective pixel data detected by defective pixel detection of 2009/5/7 before product shipment, and D4n is detected by defective pixel detection of 2009/6/24 after product shipment. Defective pixel data. Although not present in FIG. 5, for images taken after 2009/6/24, new defective pixel data D4n is added in the nonvolatile memory of the camera as shown in FIG. By using the defective pixel data D4n, it is possible to perform defective pixel correction including new defective pixels at the time of photographing.

以上述べたように、撮影日時が前回の欠陥画素検出日時より新しい画像データを抽出し、当該画像データに対して、新規欠陥画素の情報に基づいて欠陥画素補正を行うようにしたので、新たな欠陥画素が発生した後、次の欠陥画素検出までの期間に撮影された画像に対しても欠陥画素補正を行うことが可能である。   As described above, image data having a shooting date and time that is newer than the previous defective pixel detection date and time is extracted, and defective pixel correction is performed on the image data based on information on the new defective pixel. It is possible to perform defective pixel correction on an image taken during a period from when a defective pixel is generated until the next defective pixel is detected.

<第2の実施形態>
本実施形態においては、新規欠陥画素検出時に欠陥画素補正を行うのではなく、画像ファイルに新規欠陥画素データを付帯情報として記録する。なお、デジタルカメラ100の構成や基本的な処理動作は第1の実施形態と同様であり、以下では第1の実施形態との相違点を中心に説明する。
<Second Embodiment>
In the present embodiment, defective pixel correction is not performed when a new defective pixel is detected, but new defective pixel data is recorded as incidental information in an image file. The configuration and basic processing operations of the digital camera 100 are the same as those in the first embodiment, and the following description will focus on differences from the first embodiment.

図7は、本実施形態における欠陥画素検出及び撮影済み画像に対する欠陥画素データ付加シーケンスを示すフローチャートである。図中のステップS701〜ステップS704、ステップS706についてはそれぞれ、図2のステップS201〜ステップS204、ステップS206と同じであるので、これらに関する説明は省略する。   FIG. 7 is a flowchart illustrating a defective pixel detection and defective pixel data addition sequence for a photographed image in the present embodiment. Step S701 to step S704 and step S706 in the figure are the same as step S201 to step S204 and step S206 of FIG.

第1の実施形態では新規欠陥画素検出時に欠陥画素補正を行うのに対して、本実施形態では欠陥画素補正は行わず、ステップS705において、新規欠陥画素データを画像ファイルのヘッダ情報として付加する。新規欠陥画素データが付加された画像ファイルについては、例えば再生時に、その存在をユーザに提示して欠陥画素補正の実施の可否をユーザに選択させるといった方法を実施することも可能となる。   In the first embodiment, defective pixel correction is performed when a new defective pixel is detected. In this embodiment, defective pixel correction is not performed, and new defective pixel data is added as header information of an image file in step S705. For the image file to which the new defective pixel data is added, for example, at the time of reproduction, a method of presenting the existence to the user and allowing the user to select whether or not to perform the defective pixel correction can be performed.

このように本実施形態では、記録媒体中に大量の画像ファイルが存在する場合でも、欠陥画素補正を伴わないので、比較的短時間に処理を完了することが可能である。また、新規欠陥画素発生前に撮影された画像に対してまで、当該新規欠陥画素データに基づく欠陥画素補正が一律に行われてしまうことを防止することができる。   As described above, according to the present embodiment, even when a large amount of image files exist in the recording medium, since the defective pixel correction is not performed, the processing can be completed in a relatively short time. Further, it is possible to prevent the defective pixel correction based on the new defective pixel data from being uniformly performed even on an image taken before the new defective pixel is generated.

<第3の実施形態>
本実施形態においては、画像ファイルの検索時に、画像の記録形式に応じて欠陥画素補正の実施可否を判定する。なお、デジタルカメラ100の構成や基本的な処理動作は第1の実施形態と同様であり、以下では第1の実施形態との相違点を中心に説明する。
<Third Embodiment>
In this embodiment, when searching for an image file, whether or not to perform defective pixel correction is determined according to the recording format of the image. The configuration and basic processing operations of the digital camera 100 are the same as those in the first embodiment, and the following description will focus on differences from the first embodiment.

図8は、本実施形態における欠陥画素検出及び撮影済み画像に対する欠陥画素補正シーケンスを示すフローチャートである。まず、前回の欠陥画素検出時点から現在までに新たに発生した欠陥画素、すなわち新規欠陥画素を検出するために欠陥画素検出を行う(ステップS801)。欠陥画素検出の詳細については第1の実施形態と同様である。   FIG. 8 is a flowchart illustrating a defective pixel detection sequence and a defective pixel correction sequence for a captured image in the present embodiment. First, defective pixel detection is performed in order to detect a defective pixel newly generated from the previous defective pixel detection time to the present, that is, a new defective pixel (step S801). Details of the defective pixel detection are the same as those in the first embodiment.

次に、新規欠陥画素が発生していたかを否かを判定し(ステップS802)、発生していなければ補正の必要はないので、処理を終了する。ステップS802において新規欠陥画素が発生していた場合、不揮発性メモリ56に格納されている、新規欠陥画素データを取得する(ステップS803)。   Next, it is determined whether or not a new defective pixel has occurred (step S802). If it has not occurred, no correction is necessary, and the processing is terminated. If a new defective pixel has occurred in step S802, new defective pixel data stored in the nonvolatile memory 56 is acquired (step S803).

次に、記録媒体200、210に記録済みの画像ファイルを日時情報に基づいて検索し(ステップS804)、画像ファイルが前回の欠陥画素検出日時より古い場合、欠陥画素補正は行わずステップS809へ進む。ステップS804において画像ファイルが前回の欠陥画素検出日時より新しい場合、その画像ファイルの記録形式を調べる(ステップS805)。その結果、RAWデータである場合、ステップS806へ進み、ステップS803において取得した新規欠陥画素データに基づいて欠陥画素補正を行い、記録媒体200、210に記録する。欠陥画素補正の詳細についてはステップS804においてRAWデータでなかった場合、欠陥画素補正は行わず、ステップS809へ進む。   Next, the image files recorded in the recording media 200 and 210 are searched based on the date and time information (step S804). If the image file is older than the previous defective pixel detection date and time, the defective pixel correction is not performed and the process proceeds to step S809. . If the image file is newer than the previous defective pixel detection date and time in step S804, the recording format of the image file is checked (step S805). As a result, if the data is RAW data, the process proceeds to step S806, where defective pixel correction is performed based on the new defective pixel data acquired in step S803, and recording is performed on the recording media 200 and 210. If the details of the defective pixel correction are not RAW data in step S804, the defective pixel correction is not performed and the process proceeds to step S809.

ステップS806において欠陥画素補正を行った後、RAWとともにJPEG形式で同時記録した画像が存在するか否かを判定し(ステップS807)、JPEG同時記録画像が存在する場合、ステップS808へ進む。ステップS808で、欠陥画素補正を施したRAWデータを現像・圧縮することでJPEGファイルを生成し、記録媒体200、210中の補正前JPEGファイルと置換する。ステップS807においてJPEG同時記録画像が存在しない場合、ステップS809へ進む。   After performing defective pixel correction in step S806, it is determined whether there is an image simultaneously recorded in JPEG format together with RAW (step S807). If a JPEG simultaneous recording image exists, the process proceeds to step S808. In step S808, a RAW data subjected to defective pixel correction is developed and compressed to generate a JPEG file, which is replaced with the pre-correction JPEG file in the recording media 200 and 210. If there is no JPEG simultaneous recording image in step S807, the process proceeds to step S809.

ステップS809では、全画像ファイルについて検索が行われたか否かを判定し、完了した場合、処理を終了する。まだ完了していない場合、ステップS804へ戻って処理を継続する。   In step S809, it is determined whether or not all image files have been searched. If completed, the process ends. If it has not been completed, the process returns to step S804 and continues.

(記録媒体中の画像ファイルへの欠陥画素検出及び補正の適用例)
以下、第3の実施形態において、記録媒体200、210中のファイル名及び撮影日時が図5に示すようになっていた場合の欠陥画素検出及び補正について詳説する。
(Application example of defective pixel detection and correction to image file in recording medium)
Hereinafter, in the third embodiment, detailed description will be given of defective pixel detection and correction when the file names and shooting dates and times in the recording media 200 and 210 are as shown in FIG.

欠陥画素検出間隔を7日間隔と仮定し、前回の欠陥画素検出日時が2009年6月17日(以下、西暦/月/日で記す)、今回の欠陥画素検出日時が2009/6/24であるとする。また、製品出荷後に新規の欠陥画素が2009/6/19に発生したとする。この場合、2009/6/19日以降に撮影された画像、すなわち、IMG_0003.JPG、IMG_0004.RAW、IMG_0005.RAW、IMG_0005.JPGについては、新規欠陥画素が補正されていない状態で記録されている。なお、IMG_0005.RAW、IMG_0005.JPGは同一の被写体を同タイミングで、異なる複数の記録形式で記録したものである。   Assuming that the defective pixel detection interval is a 7-day interval, the previous defective pixel detection date is June 17, 2009 (hereinafter referred to as the year / month / day), and the current defective pixel detection date is 2009/6/24. Suppose there is. Further, it is assumed that a new defective pixel occurs on 2009/6/19 after product shipment. In this case, images taken after 2009/6/19, that is, IMG_0003.JPG, IMG_0004.RAW, IMG_0005.RAW, and IMG_0005.JPG are recorded in a state where the new defective pixels are not corrected. . Note that IMG_0005.RAW and IMG_0005.JPG are recorded in the same subject in the same timing and in a plurality of different recording formats.

図8のフローチャートに示した欠陥画素検出及び撮影済み画像に対する欠陥画素補正シーケンスを実行する。この場合、IMG_0001.JPGについては、その撮影日時が前回の欠陥画素検出日時より古いので、欠陥画素補正の対象画像とならない。IMG_0002.RAWについては、新規欠陥画素の発生日時より前に撮影された画像であるが、前回の欠陥画素検出日時より新しく、RAWファイルであるので、欠陥画素補正の対象画像となる。IMG_0003.JPGについては、前回の欠陥画素検出日時より新しいが、単独のJPEGファイルなので、欠陥画素補正の対象画像とならない。IMG_0004.RAW,IMG_0005.RAWについては、前回の欠陥画素検出日時より新しく、RAWファイルであるので、欠陥画素補正の対象画像となる。IMG_0005.JPGについてはIMG_0005.RAWとの同時記録となっている。そこで、補正実施済みのIMG_0005.RAWを使用して現像・圧縮を行うことで、欠陥画素補正実施済みのJPEGファイルを作成し、元のJPEGファイルと置換する。   The defective pixel detection sequence shown in the flowchart of FIG. 8 and the defective pixel correction sequence for the captured image are executed. In this case, since IMG_0001.JPG has a shooting date and time older than the previous defective pixel detection date and time, it is not a target image for defective pixel correction. IMG_0002.RAW is an image taken before the occurrence date and time of a new defective pixel, but is a RAW file that is newer than the previous defective pixel detection date and time, and is therefore a target image for defective pixel correction. Although IMG_0003.JPG is newer than the previous defective pixel detection date and time, it is a single JPEG file, so it is not a target image for defective pixel correction. Since IMG_0004.RAW and IMG_0005.RAW are RAW files that are newer than the previous defective pixel detection date and time, they are the target images for defective pixel correction. IMG_0005.JPG is recorded simultaneously with IMG_0005.RAW. Therefore, by performing development and compression using the corrected IMG — 0005.RAW, a JPEG file that has been subjected to defective pixel correction is created and replaced with the original JPEG file.

このように本実施形態では、記録画像形式が、現像圧縮後であるJPEGであった場合には、新規欠陥画素が発生している可能性が高い場合でも、欠陥画素補正を行わないような制御となっている。これは現像後の画像に対する欠陥画素補正の場合、フィルタ処理・拡大縮小処理が含まれるので、1画素のみの欠陥であってもその影響は周辺数画素に広がっており、完全に補正しきれないためである。そして、RAWとJPEGの同時記録が行われていれば、RAWの欠陥補正を行った後で、改めて現像・圧縮し直すことでJPEGの補正を正しく行うことが可能である。   As described above, in the present embodiment, when the recorded image format is JPEG after development and compression, control is performed so that defective pixel correction is not performed even when there is a high possibility that a new defective pixel has occurred. It has become. This is because in the case of defective pixel correction for the developed image, filter processing and enlargement / reduction processing are included, so even if the defect is only one pixel, the effect spreads to several peripheral pixels and cannot be completely corrected. Because. If simultaneous recording of RAW and JPEG is performed, it is possible to correct JPEG correctly by performing RAW defect correction and then developing and compressing again.

以上、本発明をその好適な実施形態に基づいて詳述してきたが、本発明はこれら特定の実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の様々な形態も本発明に含まれる。上述の実施形態の一部を適宜組み合わせてもよい。第1の実施形態では、欠陥画素検出時に欠陥画素補正を行い、第2の実施形態では、欠陥画素検出時には欠陥画素補正は行わず、画像ファイルに欠陥画素データを付加する構成としたが、これらを組み合わせて使用することも考えられる。例えば、欠陥画素検出後、画像ファイルの検索を行った際に、日時情報で該当する画像ファイル数に応じて、その場で補正を行うか、画像ファイルに欠陥画素データを付加するかを選択的に実行するようにしてもよい。例えば該当画像ファイル数が多い場合には補正を行わないようにすることで、処理に要する時間が大幅に短縮できる。   Although the present invention has been described in detail based on preferred embodiments thereof, the present invention is not limited to these specific embodiments, and various forms within the scope of the present invention are also included in the present invention. included. A part of the above-described embodiments may be appropriately combined. In the first embodiment, defective pixel correction is performed when a defective pixel is detected. In the second embodiment, defective pixel correction is not performed when a defective pixel is detected, and defective pixel data is added to the image file. It is also possible to use a combination of these. For example, when searching for an image file after detecting a defective pixel, it is possible to select whether correction is performed on the spot or defective pixel data is added to the image file according to the number of image files corresponding to the date and time information. You may make it perform to. For example, if the number of corresponding image files is large, the time required for processing can be greatly shortened by not performing correction.

また、欠陥画素検出後、画像ファイルの検索を行った際に、日時情報で該当する画像に対して、新規欠陥画素データに基づいて、新規欠陥画素及びその周辺画素の信号レベルを調べることで、撮影画像から欠陥画素の有無をチェックして補正対象画像を絞りこむことも可能である。このようにすれば、新規欠陥画素発生前に記録された画像に対して補正が行われてしまうことを防止できる。   In addition, when the image file is searched after detecting the defective pixel, by checking the signal level of the new defective pixel and its surrounding pixels based on the new defective pixel data for the image corresponding to the date and time information, It is also possible to narrow down the correction target image by checking the presence or absence of defective pixels from the captured image. In this way, it is possible to prevent the image recorded before the new defective pixel is generated from being corrected.

<その他の実施形態>
また、本発明は、以下の処理を実行することによっても実現される。すなわち、上述した実施形態の機能を実現するソフトウェア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU等)がプログラムを読み出して実行する処理である。
<Other embodiments>
The present invention can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads the program. It is a process to be executed.

10:撮影レンズ、12:シャッター、14:撮像素子、16:A/D変換器、18:タイミング発生回路、20:画像処理回路、22:メモリ制御回路、24:画像表示メモリ、26:D/A変換器、28:画像表示部、30:メモリ、32:圧縮・伸長回路、40:露光制御部、42:測距制御部、44:ズーム制御部、46:バリア制御部、48:フラッシュ、50:システム制御回路、52:メモリ、54:表示部、56:不揮発性メモリ、100:デジタルカメラ、200:記録媒体、210:記録媒体 10: photographing lens, 12: shutter, 14: image sensor, 16: A / D converter, 18: timing generation circuit, 20: image processing circuit, 22: memory control circuit, 24: image display memory, 26: D / A converter, 28: image display unit, 30: memory, 32: compression / expansion circuit, 40: exposure control unit, 42: distance measurement control unit, 44: zoom control unit, 46: barrier control unit, 48: flash, 50: System control circuit, 52: Memory, 54: Display unit, 56: Non-volatile memory, 100: Digital camera, 200: Recording medium, 210: Recording medium

Claims (11)

光電変換により画像信号を出力する撮像素子と、
前記画像信号に基づいて画像データを生成する画像処理手段と、
記画像データその撮影日時とともに画像ファイルとして記録媒体に記録する記録手段と、
記画像データに基づいて、前記撮像素子の欠陥画素を検出する欠陥画素検出手段と、
前記欠陥画素検出手段により検出された新規欠陥画素の情報をその検出日時とともに記憶する記憶手段と、
前記新規欠陥画素の情報に基づいて、前記記録媒体に画像ファイルとして記録されている画像データに含まれる前記新規欠陥画素の出力データを補正する欠陥画素補正手段と、
前記記録媒体に記録されている画像ファイルの中から、撮影日時が前記欠陥画素検出手段による前回の欠陥画素検出日時より新しい画像ファイルを抽出し、抽出された画像ファイルの数が少ない場合に、抽出された画像ファイルの画像データに含まれる前記新規欠陥画素の出力データを前記欠陥画素補正手段が補正するように制御し、抽出された画像ファイルの数が多い場合には、抽出された画像ファイルの画像データに含まれる前記新規欠陥画素の出力データを前記欠陥画素補正手段が補正しないように選択的に制御する制御手段と、
を備えたことを特徴とする撮像装置。
An image sensor that outputs an image signal by photoelectric conversion;
Image processing means for generating image data based on the image signal;
Recording means for recording on a recording medium as an image file before Kiga image data together with the shooting date and time,
Based on the previous SL image data, and defective pixel detecting means for detecting a defective pixel of the imaging element,
Storage means for storing information on the new defective pixels detected by the defective pixel detection means together with the detection date and time;
Defective pixel correction means for correcting output data of the new defective pixel included in image data recorded as an image file on the recording medium based on the information of the new defective pixel;
From among the image files recorded on the recording medium, when the shooting date and time to extract a new image file than the previous defective pixel detection date by the defective pixel detecting means, the number of extracted image files is small, The output data of the new defective pixel included in the image data of the extracted image file is controlled so that the defective pixel correction unit corrects, and when the number of extracted image files is large, the extracted image file Control means for selectively controlling the output data of the new defective pixels included in the image data so that the defective pixel correction means does not correct the output data;
An imaging apparatus comprising:
前記記録手段に画像ファイルとして記録された画像データが、前記撮像素子により得られたRAWデータ及び前記RAWデータを現像して得られる画像データである場合、
前記RAWデータに対して、前記新規欠陥画素の情報に基づいて欠陥画素補正を行うとともに、当該欠陥画素補正を行ったRAWデータを現像した画像データを作成し、前記記録手段に記録することを特徴とする請求項1に記載の撮像装置。
When the image data recorded as an image file in the recording means is RAW data obtained by the image sensor and image data obtained by developing the RAW data,
In addition to performing defective pixel correction on the RAW data based on the information on the new defective pixel, image data obtained by developing the RAW data subjected to the defective pixel correction is created and recorded in the recording unit. The imaging apparatus according to claim 1.
前記記録手段に画像ファイルとして記録された画像データの中から、撮影日時が前回の欠陥画素検出日時より新しい画像ファイルを抽出し、さらに前記新規欠陥画素の情報に基づいて、欠陥画素補正を行う画像データを絞り込むことを特徴とする請求項1又は2に記載の撮像装置。 Wherein from among the image data recorded as a recording unit image file, the photographing date and time to extract a new image file from the previous defective pixel detection date, based on further the new defective pixel information of an image to perform defective pixel correction The imaging apparatus according to claim 1, wherein data is narrowed down. 光電変換により画像信号を出力する撮像素子と、
前記画像信号に基づいて画像データを生成する画像処理手段と、
記画像データその撮影日時とともに画像ファイルとして記録媒体に記録する記録手段と、
記画像データに基づいて、前記撮像素子の欠陥画素を検出する欠陥画素検出手段と、
前記欠陥画素検出手段により検出された新規欠陥画素の情報をその検出日時とともに記憶する記憶手段と、
前記記録媒体に記録されている画像ファイルに前記新規欠陥画素の情報を付加する欠陥画素情報付加手段と、
前記記録媒体に記録されている画像ファイルの中から、撮影日時が前記欠陥画素検出手段による前回の欠陥画素検出日時より新しい画像ファイルを抽出し、抽出された画像ファイルの数が多い場合に、抽出された画像ファイルに前記新規欠陥画素の情報を前記欠陥画素情報付加手段が付加するように制御し、抽出された画像ファイルの数が少ない場合には、抽出された画像ファイルに前記新規欠陥画素の情報を前記欠陥画素情報付加手段が付加しないように選択的に制御する制御手段と、
を備えたことを特徴とする撮像装置。
An image sensor that outputs an image signal by photoelectric conversion;
Image processing means for generating image data based on the image signal;
Recording means for recording on a recording medium as an image file before Kiga image data together with the shooting date and time,
Based on the previous SL image data, and defective pixel detecting means for detecting a defective pixel of the imaging element,
Storage means for storing information on the new defective pixels detected by the defective pixel detection means together with the detection date and time;
Defective pixel information adding means for adding information on the new defective pixel to the image file recorded on the recording medium;
From among the image files recorded on the recording medium, when the shooting date and time to extract a new image file than the previous defective pixel detection date by the defective pixel detecting means, the number of extracted image files is large, The defective pixel information adding unit controls the extracted image file so that the information on the new defective pixel is added. When the number of extracted image files is small, the new defective pixel is included in the extracted image file. Control means for selectively controlling the defective pixel information adding means so as not to add the information,
An imaging apparatus comprising:
光電変換により画像信号を出力する撮像素子と、
前記画像信号に基づいて画像データを生成する画像処理手段と、
記画像データその撮影日時とともに画像ファイルとして記録媒体に記録する記録手段と、
記画像データに基づいて、前記撮像素子の欠陥画素を検出する欠陥画素検出手段と、
前記欠陥画素検出手段により検出された新規欠陥画素の情報をその検出日時とともに記憶する記憶手段と、
前記新規欠陥画素の情報に基づいて、前記記録媒体に画像ファイルとして記録されている画像データに含まれる前記新規欠陥画素の出力データを補正する欠陥画素補正手段と、
前記記録媒体に記録されている画像ファイルに前記新規欠陥画素の情報を付加する欠陥画素情報付加手段と、
前記記録媒体に記録されている画像ファイルの中から、撮影日時が前記欠陥画素検出手段による前回の欠陥画素検出日時より新しい画像ファイルを抽出し、抽出された画像ファイルの数が少ない場合に、抽出された画像ファイルの画像データに含まれる前記新規欠陥画素の出力データを前記欠陥画素補正手段が補正するように制御し、抽出された画像ファイルの数が多い場合には、抽出された画像ファイルに前記新規欠陥画素の情報を前記欠陥画素情報付加手段が付加するように選択的に制御する制御手段と、
を備えたことを特徴とする撮像装置。
An image sensor that outputs an image signal by photoelectric conversion;
Image processing means for generating image data based on the image signal;
Recording means for recording on a recording medium as an image file before Kiga image data together with the shooting date and time,
Based on the previous SL image data, and defective pixel detecting means for detecting a defective pixel of the imaging element,
Storage means for storing information on the new defective pixels detected by the defective pixel detection means together with the detection date and time;
Defective pixel correction means for correcting output data of the new defective pixel included in image data recorded as an image file on the recording medium based on the information of the new defective pixel;
Defective pixel information adding means for adding information on the new defective pixel to the image file recorded on the recording medium;
From among the image files recorded on the recording medium, when the shooting date and time to extract a new image file than the previous defective pixel detection date by the defective pixel detecting means, the number of extracted image files is small, The output data of the new defective pixel included in the image data of the extracted image file is controlled so that the defective pixel correction unit corrects, and when the number of extracted image files is large, the extracted image file Control means for selectively controlling the defective pixel information adding means to add information on the new defective pixel to
An imaging apparatus comprising:
光電変換により画像信号を出力する撮像素子と、前記画像信号に基づいて画像データを生成する画像処理手段と、記画像データその撮影日時とともに記録媒体に記録する記録手段とを備えた撮像装置の制御方法であって、
記画像データに基づいて、前記撮像素子の欠陥画素を検出する欠陥画素検出ステップと、
前記欠陥画素検出ステップにより検出された新規欠陥画素の情報をその検出日時とともに記憶手段に記憶する記憶ステップと、
前記新規欠陥画素の情報に基づいて、前記記録媒体に画像ファイルとして記録されている画像データに含まれる前記新規欠陥画素の出力データを補正する欠陥画素補正ステップと、
前記記録媒体に記録されている画像ファイルの中から、撮影日時が前記欠陥画素検出ステップによる前回の欠陥画素検出日時より新しい画像ファイルを抽出し、抽出された画像ファイルの数が少ない場合に、抽出された画像ファイルの画像データに含まれる前記新規欠陥画素の出力データを前記欠陥画素補正ステップで補正するように制御し、抽出された画像ファイルの数が多い場合には、抽出された画像ファイルの画像データに含まれる前記新規欠陥画素の出力データを前記欠陥画素補正ステップで補正しないように選択的に制御する制御ステップと、
を有することを特徴とする撮像装置の制御方法。
Imaging with an imaging device that outputs an image signal by photoelectric conversion, an image processing means for generating image data based on the image signal, and recording means for recording the pre-outs image data on a recording medium together with the shooting date and time An apparatus control method comprising:
Based on the previous SL image data, and the defective pixel detection step of detecting a defective pixel of the imaging element,
A storage step of storing information on the new defective pixel detected by the defective pixel detection step together with its detection date and time in a storage means;
A defective pixel correction step of correcting output data of the new defective pixel included in image data recorded as an image file on the recording medium based on the information of the new defective pixel;
Wherein from among the image files recorded on the recording medium, when the shooting date and time to extract a new image file than the defective pixel detection time of the last due to the defective pixel detection step, the number of extracted image files is small, Control is performed so that the output data of the new defective pixel included in the image data of the extracted image file is corrected in the defective pixel correction step, and when the number of extracted image files is large, the extracted image file A control step of selectively controlling the output data of the new defective pixel included in the image data of the image data so as not to be corrected in the defective pixel correction step;
A method for controlling an imaging apparatus, comprising:
光電変換により画像信号を出力する撮像素子と、前記画像信号に基づいて画像データを生成する画像処理手段と、記画像データその撮影日時とともに画像ファイルとして記録媒体に記録する記録手段とを備えた撮像装置の制御方法であって、
記画像データに基づいて、前記撮像素子の欠陥画素を検出する欠陥画素検出ステップと、
前記欠陥画素検出ステップにより検出された新規欠陥画素の情報をその検出日時とともに記憶手段に記憶する記憶ステップと、
前記記録媒体に記録されている画像ファイルに前記新規欠陥画素の情報を付加する欠陥画素情報付加ステップと、
前記記録媒体に記録されている画像ファイルの中から、撮影日時が前記欠陥画素検出ステップによる前回の欠陥画素検出日時より新しい画像ファイルを抽出し、抽出された画像ファイルの数が多い場合に、抽出された画像ファイルに前記新規欠陥画素の情報を前記欠陥画素情報付加ステップで付加するように制御し、抽出された画像ファイルの数が少ない場合には、抽出された画像ファイルに前記新規欠陥画素の情報を前記欠陥画素情報付加ステップで付加しないように選択的に制御する制御ステップと、
を有することを特徴とする撮像装置の制御方法。
An imaging device that outputs an image signal by photoelectric conversion, an image processing means for generating image data based on the image signal, the pre-outs image data together with the shooting date and time and recording means for recording on a recording medium as an image file A control method for an imaging apparatus provided with
Based on the previous SL image data, and the defective pixel detection step of detecting a defective pixel of the imaging element,
A storage step of storing information on the new defective pixel detected by the defective pixel detection step together with its detection date and time in a storage means;
A defective pixel information adding step of adding information of the new defective pixel to the image file recorded on the recording medium;
From among the image files recorded on the recording medium, when the shooting date and time to extract a new image file than the defective pixel detection time of the last due to the defective pixel detection step, the number of extracted image files is large, The new defective pixel information is controlled to be added to the extracted image file in the defective pixel information adding step. When the number of extracted image files is small, the new defective pixel is added to the extracted image file. A control step of selectively controlling not to add the defective pixel information in the defective pixel information adding step;
A method for controlling an imaging apparatus, comprising:
光電変換により画像信号を出力する撮像素子と、前記画像信号に基づいて画像データを生成する画像処理手段と、記画像データその撮影日時とともに画像ファイルとして記録媒体に記録する記録手段とを備えた撮像装置の制御方法であって、
記画像データに基づいて、前記撮像素子の欠陥画素を検出する欠陥画素検出ステップと、
前記欠陥画素検出ステップにより検出された新規欠陥画素の情報をその検出日時とともに記憶手段に記憶する記憶ステップと、
前記新規欠陥画素の情報に基づいて、前記記録媒体に画像ファイルとして記録されている画像データに含まれる前記新規欠陥画素の出力データを補正する欠陥画素補正ステップと、
前記記録媒体に記録されている画像ファイルに前記新規欠陥画素の情報を付加する欠陥画素情報付加ステップと、
前記記録媒体に記録されている画像ファイルの中から、撮影日時が前記欠陥画素検出ステップによる前回の欠陥画素検出日時より新しい画像ファイルを抽出し、抽出された画像ファイルの数が少ない場合に、抽出された画像ファイルの画像データに含まれる前記新規欠陥画素の出力データを前記欠陥画素補正ステップで補正するように制御し、抽出された画像ファイルの数が多い場合には、抽出された画像ファイルに前記新規欠陥画素の情報を前記欠陥画素情報付加ステップで付加するように選択的に制御する制御ステップと、
を有することを特徴とする撮像装置の制御方法。
An imaging device that outputs an image signal by photoelectric conversion, an image processing means for generating image data based on the image signal, the pre-outs image data together with the shooting date and time and recording means for recording on a recording medium as an image file A control method for an imaging apparatus provided with
Based on the previous SL image data, and the defective pixel detection step of detecting a defective pixel of the imaging element,
A storage step of storing information on the new defective pixel detected by the defective pixel detection step together with its detection date and time in a storage means;
A defective pixel correction step of correcting output data of the new defective pixel included in image data recorded as an image file on the recording medium based on the information of the new defective pixel;
A defective pixel information adding step of adding information of the new defective pixel to the image file recorded on the recording medium;
Wherein from among the image files recorded on the recording medium, when the shooting date and time to extract a new image file than the defective pixel detection time of the last due to the defective pixel detection step, the number of extracted image files is small, Control is performed so that the output data of the new defective pixel included in the image data of the extracted image file is corrected in the defective pixel correction step, and when the number of extracted image files is large, the extracted image file A control step of selectively controlling the new defective pixel information to be added in the defective pixel information adding step;
A method for controlling an imaging apparatus, comprising:
光電変換により画像信号を出力する撮像素子と、前記画像信号に基づいて画像データを生成する画像処理手段と、記画像データその撮影日時とともに記録媒体に記録する記録手段とを備えた撮像装置を制御するためのプログラムであって、
記画像データに基づいて、前記撮像素子の欠陥画素を検出する処理と、
前記欠陥画素を検出する処理により検出された新規欠陥画素の情報をその検出日時とともに記憶手段に記憶する処理と、
前記新規欠陥画素の情報に基づいて、前記記録媒体に画像ファイルとして記録されている画像データに含まれる前記新規欠陥画素の出力データを補正する欠陥画素補正処理と、
前記記録媒体に記録されている画像ファイルの中から、撮影日時が前記欠陥画素を検出する処理による前回の欠陥画素検出日時より新しい画像ファイルを抽出し、抽出された画像ファイルの数が少ない場合に、抽出された画像ファイルの画像データに含まれる前記新規欠陥画素の出力データを前記欠陥画素補正処理で補正するように制御し、抽出された画像ファイルの数が多い場合には、抽出された画像ファイルの画像データに含まれる前記新規欠陥画素の出力データを前記欠陥画素補正処理で補正しないように選択的に制御する処理と、
をコンピュータに実行させるためのプログラム。
Imaging with an imaging device that outputs an image signal by photoelectric conversion, an image processing means for generating image data based on the image signal, and recording means for recording the pre-outs image data on a recording medium together with the shooting date and time A program for controlling a device,
Based on the previous SL image data, a process of detecting a defective pixel of the imaging element,
A process of storing information on a new defective pixel detected by the process of detecting the defective pixel in a storage unit together with the detection date and time;
A defective pixel correction process for correcting output data of the new defective pixel included in image data recorded as an image file on the recording medium based on the information on the new defective pixel;
From among the image files recorded on the recording medium, the photographing date and time to extract a new image file than the previous defective pixel detection date and time by the processing of detecting the defective pixel, when the number of extracted image files is less In addition, the output data of the new defective pixel included in the image data of the extracted image file is controlled to be corrected by the defective pixel correction process, and the extracted data is extracted when the number of extracted image files is large. A process of selectively controlling the output data of the new defective pixel included in the image data of the image file so as not to be corrected by the defective pixel correction process;
A program that causes a computer to execute.
光電変換により画像信号を出力する撮像素子と、前記画像信号に基づいて画像データを生成する画像処理手段と、記画像データその撮影日時とともに画像ファイルとして記録媒体に記録する記録手段とを備えた撮像装置を制御するためのプログラムであって、
記画像データに基づいて、前記撮像素子の欠陥画素を検出する処理と、
前記欠陥画素を検出する処理により検出された新規欠陥画素の情報をその検出日時とともに記憶手段に記憶する処理と、
前記記録媒体に記録されている画像ファイルに前記新規欠陥画素の情報を付加する欠陥画素情報付加処理と、
前記記録媒体に記録されている画像ファイルの中から、撮影日時が前記欠陥画素を検出する処理による前回の欠陥画素検出日時より新しい画像ファイルを抽出し、抽出された画像ファイルの数が多い場合に、抽出された画像ファイルに前記新規欠陥画素の情報を前記欠陥画素情報付加処理で付加するように制御し、抽出された画像ファイルの数が少ない場合には、抽出された画像ファイルに前記新規欠陥画素の情報を前記欠陥画素情報付加処理で付加しないように選択的に制御する処理と、
をコンピュータに実行させるためのプログラム。
An imaging device that outputs an image signal by photoelectric conversion, an image processing means for generating image data based on the image signal, the pre-outs image data together with the shooting date and time and recording means for recording on a recording medium as an image file A program for controlling an imaging device provided,
Based on the previous SL image data, a process of detecting a defective pixel of the imaging element,
A process of storing information on a new defective pixel detected by the process of detecting the defective pixel in a storage unit together with the detection date and time;
A defective pixel information addition process for adding information on the new defective pixel to the image file recorded on the recording medium;
From among the image files recorded on the recording medium, the photographing date and time to extract a new image file than the previous defective pixel detection date and time by the processing of detecting the defective pixel, when the number of extracted image files are often In addition, when the number of extracted image files is small, the new defective pixel information is controlled to be added to the extracted image file by the defective pixel information adding process. A process of selectively controlling not to add information of defective pixels in the defective pixel information addition process;
A program that causes a computer to execute.
光電変換により画像信号を出力する撮像素子と、前記画像信号に基づいて画像データを生成する画像処理手段と、記画像データその撮影日時とともに画像ファイルとして記録媒体に記録する記録手段とを備えた撮像装置を制御するためのプログラムであって、
記画像データに基づいて、前記撮像素子の欠陥画素を検出する処理と、
前記欠陥画素を検出する処理により検出された新規欠陥画素の情報をその検出日時とともに記憶手段に記憶する処理と、
前記新規欠陥画素の情報に基づいて、前記記録媒体に画像ファイルとして記録されている画像データに含まれる前記新規欠陥画素の出力データを補正する欠陥画素補正処理と、
前記記録媒体に記録されている画像ファイルに前記新規欠陥画素の情報を付加する欠陥画素情報付加処理と、
前記記録媒体に記録されている画像データの中から、撮影日時が前記欠陥画素を検出する処理による前回の欠陥画素検出日時より新しい画像ファイルを抽出し、抽出された画像ファイルの数が少ない場合に、抽出された画像ファイルの画像データに含まれる前記新規欠陥画素の出力データを前記欠陥画素補正処理で補正するように制御し、抽出された画像ファイルの数が多い場合には、抽出された画像ファイルに前記新規欠陥画素の情報を前記欠陥画素情報付加処理で付加するように選択的に制御する処理と、
をコンピュータに実行させるためのプログラム。
An imaging device that outputs an image signal by photoelectric conversion, an image processing means for generating image data based on the image signal, the pre-outs image data together with the shooting date and time and recording means for recording on a recording medium as an image file A program for controlling an imaging device provided,
Based on the previous SL image data, a process of detecting a defective pixel of the imaging element,
A process of storing information on a new defective pixel detected by the process of detecting the defective pixel in a storage unit together with the detection date and time;
A defective pixel correction process for correcting output data of the new defective pixel included in image data recorded as an image file on the recording medium based on the information on the new defective pixel;
A defective pixel information addition process for adding information on the new defective pixel to the image file recorded on the recording medium;
From among the image data recorded on the recording medium, the photographing date and time to extract a new image file than the previous defective pixel detection date and time by the processing of detecting the defective pixel, when the number of extracted image files is less In addition, the output data of the new defective pixel included in the image data of the extracted image file is controlled to be corrected by the defective pixel correction process, and the extracted data is extracted when the number of extracted image files is large. A process of selectively controlling the information of the new defective pixel to be added to the image file by the defective pixel information adding process;
A program that causes a computer to execute.
JP2011236303A 2011-10-27 2011-10-27 Imaging apparatus, control method thereof, and program Expired - Fee Related JP5885464B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011236303A JP5885464B2 (en) 2011-10-27 2011-10-27 Imaging apparatus, control method thereof, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011236303A JP5885464B2 (en) 2011-10-27 2011-10-27 Imaging apparatus, control method thereof, and program

Publications (2)

Publication Number Publication Date
JP2013093816A JP2013093816A (en) 2013-05-16
JP5885464B2 true JP5885464B2 (en) 2016-03-15

Family

ID=48616594

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011236303A Expired - Fee Related JP5885464B2 (en) 2011-10-27 2011-10-27 Imaging apparatus, control method thereof, and program

Country Status (1)

Country Link
JP (1) JP5885464B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10122876C2 (en) * 2000-11-24 2003-08-21 Siemens Ag Method for operating an image system of an imaging medical examination device and medical examination device
JP4466017B2 (en) * 2002-12-27 2010-05-26 株式会社ニコン Image processing apparatus and image processing program
JP2004222143A (en) * 2003-01-17 2004-08-05 Minolta Co Ltd Image pickup device and program
JP2005123873A (en) * 2003-10-16 2005-05-12 Canon Inc Solid state imaging device
JP2008022240A (en) * 2006-07-12 2008-01-31 Fujifilm Corp Photographing device, image processor, image file generating method, image processing method, and image processing program
JP4978214B2 (en) * 2006-10-13 2012-07-18 ソニー株式会社 Imaging system and pixel defect correction apparatus
JP5046769B2 (en) * 2007-07-24 2012-10-10 キヤノン株式会社 Imaging apparatus, control method thereof, and program

Also Published As

Publication number Publication date
JP2013093816A (en) 2013-05-16

Similar Documents

Publication Publication Date Title
JP4154431B2 (en) Imaging apparatus and display control method
JP4387559B2 (en) Imaging device
US20050281550A1 (en) Image taking apparatus capable of optically and electrically changing magnification of taken images
JP4958680B2 (en) IMAGING DEVICE, WHITE BALANCE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP4533017B2 (en) Imaging device
JP5917040B2 (en) Image processing apparatus and image processing method
JP2006119996A (en) Battery-driven device and its nonvolatile memory updating method
JP5064686B2 (en) IMAGING DEVICE, CONTROL METHOD FOR THE DEVICE, CONTROL PROGRAM, AND RECORDING MEDIUM
JP2006203689A (en) Imaging apparatus and control method thereof, program, and storage medium
JP4574382B2 (en) Information retrieval apparatus, control method therefor, program, and storage medium
JP2007158604A (en) Imaging apparatus and its control method
JP5885464B2 (en) Imaging apparatus, control method thereof, and program
JP2011223079A (en) Image processing apparatus
JP4836233B2 (en) Image processing apparatus, control method therefor, computer program, and storage medium
JP4574426B2 (en) Data processing apparatus and data processing method
JP4298534B2 (en) Image display apparatus and method
JP6274780B2 (en) IMAGING DEVICE, IMAGING SYSTEM, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP5448498B2 (en) Imaging apparatus, control method thereof, and program
JP4717762B2 (en) Image reproducing apparatus, control method for image reproducing apparatus, program, and recording medium
JP2016082454A (en) Imaging device
JP2013162223A (en) Image processing device, image processing method, and program
JP2003244654A (en) Image processing apparatus, image processing method, and storage medium
JP2007053707A (en) Recording medium
JP2011130198A (en) Imaging apparatus, control method thereof and program
US20110267498A1 (en) Image pickup apparatus and control method therefor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141021

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151008

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151020

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151202

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: 20160112

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160209

R151 Written notification of patent or utility model registration

Ref document number: 5885464

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees