JP2006108878A - Imaging apparatus - Google Patents

Imaging apparatus Download PDF

Info

Publication number
JP2006108878A
JP2006108878A JP2004290235A JP2004290235A JP2006108878A JP 2006108878 A JP2006108878 A JP 2006108878A JP 2004290235 A JP2004290235 A JP 2004290235A JP 2004290235 A JP2004290235 A JP 2004290235A JP 2006108878 A JP2006108878 A JP 2006108878A
Authority
JP
Japan
Prior art keywords
correction data
image
data
correction
imaging apparatus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2004290235A
Other languages
Japanese (ja)
Inventor
Satoshi Suzuki
聡史 鈴木
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 JP2004290235A priority Critical patent/JP2006108878A/en
Publication of JP2006108878A publication Critical patent/JP2006108878A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an imaging apparatus capable of carrying out proper dark shading correction not susceptible to the effect of a peculiar pattern. <P>SOLUTION: When generating horizontal shading correction data, a system control circuit 50 captures a data image in a first image region comprising a plurality of predetermined lines, and generates horizontal shading correction data on the basis of the dark image. Thereafter whether or not the correction data are data not proper to be used for the horizontal shading correction is verified, and when a result of the verification judges that the horizontal shading correction data are proper, the production of the horizontal shading correction data is completed without any modification, however when the result of the verification judges that the horizontal shading correction data are improper, the horizontal shading correction data are corrected or second correction data are produced newly from another image region and the production of the correction data is finished. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、例えば、静止画像や動画像を撮像・記録・再生する撮像装置、撮像方法、プログラムおよび記憶媒体に係る撮像装置に関する。   The present invention relates to an imaging apparatus, an imaging method, a program, and a storage medium for imaging, recording, and reproducing still images and moving images, for example.

従来、この種の撮像装置として、固体メモリ素子を有するメモリカードを記録媒体とし、CCD、CMOS等の固体撮像素子で撮像した静止画像や動画像を記録・再生する電子カメラ等の撮像装置が既に市販されている。   Conventionally, as this type of imaging device, there has already been an imaging device such as an electronic camera that records and reproduces still images and moving images captured by a solid-state imaging device such as a CCD or CMOS, using a memory card having a solid-state memory element as a recording medium. It is commercially available.

この電子カメラのように、CCD、CMOS等の固体撮像素子を用いて撮像する場合、撮像素子を露光しない状態で本撮影と同様に電荷蓄積を行った後に読み出したダーク画像データと、撮像素子を露光した状態で電荷蓄積を行った後に読み出した本撮影画像データとを用いて演算処理することにより、ダークノイズ補正処理を行うことが可能である。この補正処理手段を、ここでは第一の補正手段と呼ぶ。   When imaging using a solid-state imaging device such as a CCD or CMOS like this electronic camera, the dark image data read out after the charge accumulation is performed in the same manner as in the main photographing without exposing the imaging device, and the imaging device. Dark noise correction processing can be performed by performing arithmetic processing using the actual captured image data read after charge accumulation in the exposed state. This correction processing means is referred to herein as first correction means.

これにより、撮像素子で発生する暗電流ノイズや撮像素子固有の微小なキズによる画素欠損等の画質劣化に対し、撮影した画像データを補正して高品位な画像を得ることができる。   As a result, it is possible to obtain a high-quality image by correcting the captured image data against image quality degradation such as pixel current loss due to dark current noise generated in the image sensor and minute scratches inherent to the image sensor.

特に、暗電流ノイズは、電荷蓄積時間および撮像素子の温度上昇に従って増大するので、長秒時の露光や高温時の露光を行う場合、大きな画質改善効果を得ることができ、電子カメラの使用者にとってダークノイズ補正処理は有益な機能となっている。   In particular, since dark current noise increases with the charge accumulation time and the temperature rise of the image sensor, a large image quality improvement effect can be obtained when performing exposure at long seconds or exposure at high temperatures. For this, the dark noise correction processing is a useful function.

しかしながら、上記の補正手段を用いた撮像装置では、ダーク画像データを撮影した後に本撮影を行う場合、連写撮影時に撮影駒間隔を一定に揃えることができるが、単写撮影時にダーク画像撮影時間分だけシャッタレリーズタイムラグが大きくなり、貴重なシャッタチャンスを逃すおそれがあった。   However, in the imaging apparatus using the above correction means, when performing the main shooting after shooting the dark image data, the shooting frame interval can be made constant during the continuous shooting, but the dark image shooting time during the single shooting As a result, the shutter release time lag increases by the amount, and there is a risk of missing a valuable photo opportunity.

一方、本撮影を行った後にダーク画像データを撮影する場合、単写撮影時にシャッタレリーズタイムラグを小さくできるが、連写撮影時に1駒目と2駒目の撮影間隔がダーク画像撮影時間分だけ大きくなり、撮影駒間隔を一定に揃えることができないという問題があった。   On the other hand, when dark image data is taken after the actual shooting, the shutter release time lag can be reduced during single shooting, but the shooting interval between the first frame and the second frame is increased by the dark image shooting time during continuous shooting. Therefore, there is a problem that the interval between the photographing frames cannot be made constant.

また、長秒時の露光や高温時の露光でないときの撮影条件、環境条件は全く考慮されていなかった。つまり、撮像素子で発生する暗電流ノイズや撮像素子固有の微小なキズによる画素欠損等の画質劣化以外に、回路系ノイズが存在するが、これに対する考慮がなされていなかった。ここで、回路系ノイズとは、センサ内の電源ラインの抵抗成分による電圧不均一や素子ばらつき等で発生するダークオフセットとしての固定パターンノイズである。   In addition, photographing conditions and environmental conditions when exposure was not performed at long seconds or exposure at high temperatures were not considered at all. That is, there is circuit system noise other than image quality deterioration such as pixel current loss due to dark current noise generated in the image sensor and minute scratches specific to the image sensor, but this has not been considered. Here, the circuit system noise is fixed pattern noise as dark offset generated due to voltage non-uniformity or element variation due to the resistance component of the power supply line in the sensor.

更に上記の撮像装置は、撮影ごとの変化がない固定パターンノイズの補正に関しては有効であるが、撮影ごとに異なるパターンで発生するランダムなノイズ成分に関しては、補正をすることでむしろ増大させてしまうという問題もあった。これにより、固定パターンノイズ成分よりもランダムノイズの方が支配的な条件下においては、むしろ画質を劣化させる原因となった。   Furthermore, although the above-described imaging apparatus is effective for correcting fixed pattern noise that does not change for each shooting, the random noise component generated in a different pattern for each shooting is rather increased by correction. There was also a problem. As a result, under conditions where random noise is more dominant than fixed pattern noise components, it is a cause of degradation of image quality.

また撮影画像データを補正する手段としては、予めダーク画像の水平写像等の補正データを作成しておき、その補正データを用いて撮影した画像データを補正する補正手段がある。この補正手段を、ここでは第二の補正手段と呼ぶ。   Further, as means for correcting the photographed image data, there is a correcting means for preparing correction data such as a horizontal mapping of a dark image in advance and correcting the image data photographed using the correction data. This correction means is referred to herein as second correction means.

図15を用いて上記第二の補正手段を説明する。   The second correction means will be described with reference to FIG.

画像撮影において、まず撮像素子を露光しない状態での撮影によりダーク画像の全体もしくは一部(図15−a)を取得し、そのダーク画像を垂直方向に写像をとることで、水平1ラインのダークデータ(図15−b)を作成し、メモリ上に記憶させる。続いて撮像素子を露光した状態での撮影により本画像(図15−c)を取得する。そして、メモリ上に記憶させておいた水平1ラインのダークデータ(図15−b)を展開して得られた補正用画像(図15−d)と本画像(図15−c)との差分画像を生成することで水平ダークシェーディング成分を補正した画像(図15−e)を得ることができる。   In image shooting, first, the entire dark image or a part (FIG. 15A) is acquired by shooting without exposing the image sensor, and the dark image is mapped in the vertical direction so that one dark horizontal line is obtained. Data (FIG. 15-b) is created and stored on the memory. Subsequently, a main image (FIG. 15C) is acquired by photographing in a state where the image sensor is exposed. Then, the difference between the correction image (FIG. 15-d) obtained by developing the horizontal one-line dark data (FIG. 15-b) stored in the memory and the main image (FIG. 15-c). By generating an image, an image (FIG. 15-e) in which the horizontal dark shading component is corrected can be obtained.

この第二の補正手段で用いる補正データの生成方法としては、工場の生産工程において予め作成し、メモリ部に格納しておく方法と、撮影直前にダーク画像の一部を取得し、その画像から補正データを生成する方法がある。   As a method for generating correction data used in the second correction means, a method of creating in advance in the production process of the factory and storing it in the memory unit, and acquiring a part of the dark image immediately before shooting, from the image There is a method for generating correction data.

前者は、1画像の撮影の際に、改めて黒画像の撮像、読出をする必要がないため、一回の撮影に所用する時間が短くてすむ。また前記第一の補正手段使用時のように、ランダムノイズ成分を増大させるようなことも無いという長所をもつ。   In the former case, it is not necessary to pick up and read out a black image again at the time of shooting one image, so that the time required for one shooting can be shortened. Further, there is an advantage that the random noise component is not increased as in the case of using the first correction means.

後者は、補正対象のダークノイズの温度等周辺環境による変化の影響を受けにくく、かつ、黒画像全範囲を用いて補正を行う第一の補正手段と比べて、黒画像の一部分のみを用いるため、一回の撮像に所用する時間が短くてすむという長所をもつ。   The latter is less susceptible to changes due to the surrounding environment such as the temperature of dark noise to be corrected, and uses only a part of the black image as compared to the first correction means that performs correction using the entire black image range. The advantage is that the time required for one imaging is short.

しかしながら、上記のダーク画像補正データを用いてダーク画像の補正を行う第二の補正方法にも、以下のような問題点があった。   However, the second correction method for correcting a dark image using the dark image correction data has the following problems.

即ち、補正データ生成のもととなるダーク画像に高温下の暗電流などによる特異パターン等が存在した場合、生成された補正データにも異常部が存在してしまう怖れがあり、その補正データを用いて画像補正を行うことにより、むしろ画像が悪化する可能性があった。   In other words, if there is a unique pattern or the like due to dark current at a high temperature in the dark image that is the basis of the correction data generation, there is a fear that the generated correction data may have an abnormal portion. However, there is a possibility that the image is deteriorated by performing image correction using.

図16及び図17を用いて、上記画像を悪化させる補正例を説明する。   A correction example for deteriorating the image will be described with reference to FIGS. 16 and 17.

図16の補正例は、高温度下や長時間撮影時に撮像素子の周辺回路が発熱することで画面の四隅に暗電流の影響による出力レベルの浮きが発生している場合のものである。この場合のダーク画像は図16−a)のようになる。   The correction example in FIG. 16 is for a case where the output level floats due to the influence of dark current at the four corners of the screen due to heat generation in the peripheral circuits of the image sensor at high temperatures or during long-time shooting. The dark image in this case is as shown in FIG.

この画像の第一の領域を用いて水平ダーク補正データを生成した場合、その補正データは図16−b)のようになる。そして、この補正データを用いて元の画像図16−a)を補正すると、図16−c)の画像のように画面左右が沈んだ画像を生成してしまう。   When horizontal dark correction data is generated using the first region of the image, the correction data is as shown in FIG. When the original image FIG. 16-a) is corrected using the correction data, an image in which the left and right sides of the screen are sunk like the image of FIG. 16-c) is generated.

図17の補正例は、高温度下や長時間撮影時に大きく成長する点キズもしくは点キズ群が存在する場合のものである。この場合のダーク画像は図17−a)のようになる。   The correction example in FIG. 17 is a case where there are point flaws or a group of point flaws that grow greatly at high temperatures or during long-time shooting. The dark image in this case is as shown in FIG.

この画像の第一の領域を用いて水平ダーク補正データを生成した場合、その補正データは図17−b)のようになる。そして、この補正データを用いて元の画像図17−a)を補正すると、図17−c)の画像のようにキズの上下に沈んだ線(帯)がある画像を生成してしまう。
特開平8−307775号公報
When horizontal dark correction data is generated using the first region of the image, the correction data is as shown in FIG. Then, when the original image FIG. 17A is corrected using this correction data, an image having lines (bands) sinking above and below the scratch is generated as in the image of FIG. 17C.
JP-A-8-307775

そこで本発明は、特異パターンの影響を受けにくい、適切なダークシェーディング補正を行うことができる撮像装置を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an imaging apparatus that can perform appropriate dark shading correction that is not easily affected by a unique pattern.

上記目的を達成するために、本発明の撮像装置は、
撮影した画像を記録媒体に記録する撮像装置において、非露光状態で撮像を行って第一の画像データを得る第一の撮像モード、および露光状態で撮像を行って第二の画像データを得る第二の撮像モードで撮像可能な撮像手段と、第一の撮像モードで得られた第一の画像データの全体もしくは一部分である第一の領域から第一のシェーディング補正データを生成する第一の補正データ生成手段と、第一のシェーディング補正データが適切なものであるかを判定する補正データ判定手段と、補正データ判定手段により第一の補正データが不適切なものであると判定された場合に、第一のシェーディング補正データを補正する補正データ修正手段と、第一のシェーディング補正データを用いて第二の画像データに対してダークシェーディング補正を施すダークシェーディング補正手段とを備えたことを特徴とする。
In order to achieve the above object, the imaging apparatus of the present invention provides:
In an imaging device that records a captured image on a recording medium, a first imaging mode that captures an image in a non-exposure state to obtain first image data, and a second image data that captures an image in an exposure state. First correction for generating first shading correction data from an imaging means capable of imaging in the second imaging mode and a first area which is the whole or a part of the first image data obtained in the first imaging mode When the data generation means, the correction data determination means for determining whether the first shading correction data is appropriate, and the correction data determination means determine that the first correction data is inappropriate Correction data correction means for correcting the first shading correction data and dark shading correction for the second image data using the first shading correction data. Characterized in that a be dark shading correction means.

本発明によれば、予め記憶された補正データを選択して補正を行う場合、ダーク画像データを撮影する必要がないので、シャッタレリーズタイムラグを軽減でき、また、レリーズタイムラグによって撮影者がシャッタチャンスを逃すことがなくなる。   According to the present invention, when correction is performed by selecting correction data stored in advance, since it is not necessary to shoot dark image data, the shutter release time lag can be reduced, and the photographer can take a photo opportunity with the release time lag. Never miss it.

また、ISO感度、シャッタ秒時といった撮影条件や、周囲温度などの環境条件により、補正すべき量が予め記憶されている補正データと大きく異なることが予想された場合、第1の撮像モードで得られたダーク画像データから新たに生成した水平ダークシェーディング補正データを用いて補正を行うことにより、画質が劣化することを防止できる。   Further, when it is predicted that the amount to be corrected differs greatly from the correction data stored in advance due to the shooting conditions such as ISO sensitivity and shutter speed and the environmental conditions such as the ambient temperature, it is obtained in the first imaging mode. By performing correction using horizontal dark shading correction data newly generated from the obtained dark image data, it is possible to prevent the image quality from deteriorating.

さらに、予め記憶される補正データを1次元の補正データとすることで、処理が簡便になると同時に、補正データを記憶するためのメモリが少なくて済む。   Furthermore, by making the correction data stored in advance one-dimensional correction data, the processing becomes simple and at the same time, the memory for storing the correction data can be reduced.

このように、シャッタレリーズタイムラグの原因となるダーク画像の撮影を極力減らしつつ、画質の劣化を防止できる。   In this way, it is possible to prevent deterioration of image quality while reducing the dark image capturing that causes the shutter release time lag as much as possible.

本発明の撮像装置、撮像方法、プログラムおよび記憶媒体の実施の形態について、図面を参照しながら説明する。本実施形態の撮像装置は電子カメラに適用される。   Embodiments of an imaging apparatus, an imaging method, a program, and a storage medium of the present invention will be described with reference to the drawings. The imaging apparatus of this embodiment is applied to an electronic camera.

図1は実施の形態における電子カメラの構成を示すブロック図である。図において、100は画像処理装置である。12は撮像素子14の露光量を制御する絞り機能を有したシャッタである。14は光学像を電気信号に変換する撮像素子である。   FIG. 1 is a block diagram illustrating a configuration of an electronic camera according to an embodiment. In the figure, reference numeral 100 denotes an image processing apparatus. Reference numeral 12 denotes a shutter having a diaphragm function for controlling the exposure amount of the image sensor 14. An image sensor 14 converts an optical image into an electric signal.

レンズユニット300内の撮影レンズ310に入射した光線は、絞り312、レンズマウント306、106、ミラー130およびシャッタ12を通じて一眼レフ方式により導かれた撮像素子14上に光学像として結像する。   The light beam incident on the photographing lens 310 in the lens unit 300 forms an optical image on the image sensor 14 guided by the single-lens reflex system through the diaphragm 312, the lens mounts 306 and 106, the mirror 130, and the shutter 12.

16は撮像素子14から出力されるアナログ信号をディジタル信号に変換するA/D変換器である。18は撮像素子14、A/D変換器16およびD/A変換器26にクロック信号や制御信号を供給するタイミング発生回路であり、メモリ制御回路22およびシステム制御回路50によって制御される。   Reference numeral 16 denotes an A / D converter that converts an analog signal output from the image sensor 14 into a digital signal. A timing generation circuit 18 supplies a clock signal and a control signal to the image sensor 14, the A / D converter 16 and the D / A converter 26, and is controlled by the memory control circuit 22 and the system control circuit 50.

20は画像処理回路であり、A/D変換器16からのデータあるいはメモリ制御回路22からのデータに対して所定の画素補間処理や色変換処理を行う。画像処理回路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. The image processing circuit 20 performs predetermined calculation processing using image data taken as necessary, and the system control circuit 50 controls the exposure (shutter) control unit 40 and the distance measurement control unit 42 based on the obtained calculation result. TTL (through-the-lens) AF (autofocus) processing, AE (automatic exposure) processing, and EF (flash dimming) processing for control are performed. The image processing circuit 20 performs predetermined arithmetic processing using the captured image data, and performs TTL AWB (auto white balance) processing based on the obtained arithmetic result.

尚、本実施形態では、測距制御部42および測光制御部46を専用に備えているので、システム制御回路50は、測距制御部42および測光制御部46を用いてAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュ調光)処理の各処理を行い、画像処理回路20を用いてAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュ調光)処理の各処理を行わない構成としてもよい。   In the present embodiment, since the distance measurement control unit 42 and the photometry control unit 46 are provided exclusively, the system control circuit 50 uses the distance measurement control unit 42 and the photometry control unit 46 to perform AF (autofocus) processing. , AE (automatic exposure) processing and EF (flash dimming) processing are performed, and the image processing circuit 20 is used for AF (autofocus) processing, AE (automatic exposure) processing, and EF (flash dimming) processing. It is good also as a structure which does not perform each process.

また、測距制御部42および測光制御部46を用いてAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュ調光)処理の各処理を行い、さらに、画像処理回路20を用いてAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュ調光)処理の各処理を行う構成としてもよい。   Further, the AF (auto focus) process, the AE (automatic exposure) process, and the EF (flash dimming) process are performed using the distance measurement control unit 42 and the photometry control unit 46, and the image processing circuit 20 is used. The AF (autofocus) process, the AE (automatic exposure) process, and the EF (flash dimming) process may be performed.

22はメモリ制御回路であり、A/D変換器16、タイミング発生回路18、画像処理回路20、画像表示メモリ24、D/A変換器26、メモリ30および圧縮・伸長回路32を制御する。   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.

A/D変換器16からのデータは、画像処理回路20およびメモリ制御回路22を介して、あるいは直接、メモリ制御回路22を介して画像表示メモリ24あるいはメモリ30に書き込まれる。   Data from 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 directly via the memory control circuit 22.

24は画像表示メモリ、26はD/A変換器である。28はTFT方式のLCDからなる画像表示部である。画像表示メモリ24に書き込まれた表示用の画像データはD/A変換器26を介して画像表示部28に表示される。撮像された画像データを画像表示部28で逐次表示する場合、電子ファインダ機能を実現することが可能である。また、画像表示部28はシステム制御回路50の指示にしたがって表示のON/OFFを任意に行うことが可能であり、表示をOFFにした場合、画像処理装置100の電力消費を大幅に低減することができる。   Reference numeral 24 is an image display memory, and 26 is a D / A converter. Reference numeral 28 denotes an image display unit comprising a TFT type LCD. The display image data written in the image display memory 24 is displayed on the image display unit 28 via the D / A converter 26. When the captured image data is sequentially displayed on the image display unit 28, an electronic viewfinder function can be realized. Further, the image display unit 28 can arbitrarily turn on / off the display in accordance with an instruction from the system control circuit 50. When the display is turned off, the power consumption of the image processing apparatus 100 can be greatly reduced. Can do.

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

32は適応離散コサイン変換(ADCT)などにより画像データを圧縮伸長する圧縮・伸長回路であり、メモリ30に格納された画像を読み込んで圧縮処理あるいは伸長処理を行い、処理を終えたデータをメモリ30に書き込む。   A compression / decompression circuit 32 compresses and decompresses image data by adaptive discrete cosine transform (ADCT) or the like, reads an image stored in the memory 30, performs compression processing or decompression processing, and stores the processed data in the memory 30. Write to.

40は測光制御部46からの測光情報に基づいて絞り312を制御する絞り制御部340と連携しながらシャッタ12を制御するシャッタ制御部である。42はAF(オートフォーカス)処理を行うための測距制御部であり、レンズユニット300内の撮影レンズ310に入射した光線を絞り312、レンズマウント306、106、ミラー130および測距用サブミラー(図示せず)を介して一眼レフ方式で入射することにより、光学像として結像された画像の合焦状態を測定する。   Reference numeral 40 denotes a shutter control unit that controls the shutter 12 in cooperation with an aperture control unit 340 that controls the aperture 312 based on photometric information from the photometry control unit 46. Reference numeral 42 denotes a distance measurement control unit for performing AF (autofocus) processing. A light beam incident on the photographing lens 310 in the lens unit 300 is used to stop the aperture 312, lens mounts 306 and 106, the mirror 130, and a distance measurement sub-mirror (see FIG. The in-focus state of the image formed as an optical image is measured by entering with a single-lens reflex system via a not-shown).

44は温度計であり、撮影環境における周囲温度を検出する。温度計が撮像素子(センサ)14内にある場合、センサの暗電流をより正確に予想することが可能である。   A thermometer 44 detects the ambient temperature in the photographing environment. When the thermometer is in the image sensor (sensor) 14, it is possible to predict the dark current of the sensor more accurately.

46はAE(自動露出)処理を行うための測光制御部であり、レンズユニット300内の撮影レンズ310に入射した光線を、絞り312、レンズマウント306、106、ミラー130および測光用サブミラー(図示せず)を介して一眼レフ方式で入射することにより、光学像として結像された画像の露出状態を測定する。測光制御部46はフラッシュ部48と連携することにより、EF(フラッシュ調光)処理機能も有する。48はフラッシュ部であり、AF補助光の投光機能およびフラッシュ調光機能を有する。   Reference numeral 46 denotes a photometric control unit for performing AE (automatic exposure) processing. The light beam incident on the photographing lens 310 in the lens unit 300 is converted into an aperture 312, lens mounts 306 and 106, a mirror 130, and a photometric sub-mirror (not shown). The exposure state of the image formed as an optical image is measured. The photometry control unit 46 also has an EF (flash dimming) processing function in cooperation with the flash unit 48. A flash unit 48 has an AF auxiliary light projecting function and a flash light control function.

尚、前述したように、撮像素子14によって撮像された画像データを用いて画像処理回路20により演算された演算結果に基づき、システム制御回路50が露光(シャッタ)制御部40、絞り制御部340、測距制御部342に対し、ビデオTTL方式を用いた露出制御およびAF(オートフォーカス)制御を行うことが可能である。   As described above, based on the calculation result calculated by the image processing circuit 20 using the image data picked up by the image pickup device 14, the system control circuit 50 includes the exposure (shutter) control unit 40, the aperture control unit 340, It is possible to perform exposure control and AF (autofocus) control using the video TTL system for the distance measurement control unit 342.

また、測距制御部42による測定結果と、撮像素子14によって撮像された画像データを画像処理回路20によって演算した演算結果とを用いて、AF(オートフォーカス)制御を行うようにしてもよい。さらに、測光制御部46による測定結果と、撮像素子14によって撮像された画像データを画像処理回路20によって演算した演算結果とを用いて露出制御を行うようにしてもよい。   Further, AF (autofocus) control may be performed using a measurement result obtained by the distance measurement control unit 42 and a calculation result obtained by calculating the image data captured by the image sensor 14 by the image processing circuit 20. Further, exposure control may be performed using the measurement result obtained by the photometry control unit 46 and the calculation result obtained by calculating the image data captured by the image sensor 14 by the image processing circuit 20.

50は画像処理装置100全体を制御するシステム制御回路であり、周知のCPUなどを内蔵する。52はシステム制御回路50の動作用の定数、変数、プログラムなどを記憶するメモリである。54はシステム制御回路50でのプログラムの実行に応じて、文字、画像、音声などで動作状態やメッセージなどを表示する液晶表示装置、スピーカなどを有する表示部であり、画像処理装置100の操作部近辺の視認し易い単数あるいは複数箇所に設置されている。表示部54は、LCD、LED、発音素子などの組合わせにより構成されている。また、表示部54の一部の機能は光学ファインダ104内に設けられている。   Reference numeral 50 denotes a system control circuit that controls the entire image processing apparatus 100 and incorporates a known CPU and the like. Reference numeral 52 denotes a memory for storing constants, variables, programs, and the like for operating the system control circuit 50. Reference numeral 54 denotes a display unit having a liquid crystal display device, a speaker, and the like for displaying an operation state and a message with characters, images, voices, and the like in accordance with execution of a program in the system control circuit 50. An operation unit of the image processing device 100 It is installed at one or a plurality of places that are easily visible in the vicinity. The display unit 54 is configured by a combination of an LCD, an LED, a sound generating element, and the like. Some functions of the display unit 54 are provided in the optical viewfinder 104.

表示部54の表示内容のうち、LCDなどに表示するものとしては、シングルショット/連写撮影表示、セルフタイマ表示、圧縮率表示、記録画素数表示、記録枚数表示、残撮影可能枚数表示、シャッタスピード表示、絞り値表示、露出補正表示、フラッシュ表示、赤目緩和表示、マクロ撮影表示、ブザー設定表示、時計用電池残量表示、電池残量表示、エラー表示、複数桁の数字による情報表示、記録媒体200、210の着脱状態表示、レンズユニット300の着脱状態表示、通信I/F動作表示、日付・時刻表示、外部コンピュータとの接続状態を示す表示などがある。   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 Speed display, Aperture value display, Exposure compensation display, Flash display, Red-eye reduction display, Macro shooting display, Buzzer setting display, Clock battery level display, Battery level display, Error display, Multi-digit number information display and recording There are an attachment / detachment state display of the media 200 and 210, an attachment / detachment state display of the lens unit 300, a communication I / F operation display, a date / time display, and a display showing a connection state with an external computer.

また、表示部54の表示内容のうち、光学ファインダ104内に表示するものとしては、合焦表示、撮影準備完了表示、手振れ警告表示、フラッシュ充電表示、フラッシュ充電完了表示、シャッタスピード表示、絞り値表示、露出補正表示、記録媒体書き込み動作表示などがある。   Among the display contents of the display unit 54, what is displayed in the optical finder 104 includes in-focus display, shooting preparation completion display, camera shake warning display, flash charge display, flash charge completion display, shutter speed display, aperture value. Display, exposure compensation display, recording medium writing operation display, and the like.

さらに、表示部54の表示内容のうち、LED等に表示するものとしては、例えば、合焦表示、撮影準備完了表示、手振れ警告表示、フラッシュ充電表示、フラッシュ充電完了表示、記録媒体書き込み動作表示、マクロ撮影設定通知表示、二次電池充電表示などがある。   Furthermore, among the display contents of the display unit 54, what is displayed on the LED or the like includes, for example, in-focus display, shooting preparation completion display, camera shake warning display, flash charge display, flash charge completion display, recording medium writing operation display, Macro shooting setting notification display, secondary battery charge display, etc.

また、表示部54の表示内容のうち、ランプ等に表示するものとしては、例えば、セルフタイマ通知ランプ等がある。このセルフタイマ通知ランプはAF補助光と共用してもよい。   Among the display contents of the display unit 54, what is displayed on a lamp or the like includes, for example, a self-timer notification lamp. This self-timer notification lamp may be shared with AF auxiliary light.

56は後述するプログラムなどが格納された電気的に消去・記録可能な不揮発性メモリであり、不揮発性メモリとしてEEPROMなどが用いられる。この不揮発性メモリ56には、各種パラメータやISO感度などの設定値、設定モード、および水平ダークシェーディング補正を行う際に用いる1次元補正データが格納される。この1次元補正データは、生産工程において、調整時に作成されて書き込まれるか、もしくは、電源投入時や実際の撮影直前に作成されて書き込まれる。この1次元補正データの作成方法としては、先に図15を用いて説明したとおり、例えばダーク撮影を行って得られた画像の全体ないし複数行分を射影演算することにより、水平1ライン分のデータとする方法等が考えられる。   Reference numeral 56 denotes an electrically erasable / recordable nonvolatile memory storing a program and the like to be described later, and an EEPROM or the like is used as the nonvolatile memory. The nonvolatile memory 56 stores various parameters, setting values such as ISO sensitivity, setting modes, and one-dimensional correction data used when performing horizontal dark shading correction. This one-dimensional correction data is created and written at the time of adjustment in the production process, or is created and written when the power is turned on or immediately before actual photographing. As a method for creating this one-dimensional correction data, as described above with reference to FIG. 15, for example, by performing projection calculation on the whole image or a plurality of lines of an image obtained by performing dark photographing, a horizontal line is obtained. A method of using data can be considered.

尚、補正データとしては、生産工程もしくは実際の撮影直前において撮像されたダーク画像をそのまま2次元データとして記憶したものでもよい。しかし、撮像素子によっては垂直方向の固定パターンノイズが小さく、水平方向の補正のみ行えば済むようなものがある。   As the correction data, a dark image captured immediately before the production process or actual shooting may be stored as it is as two-dimensional data. However, some image pickup devices have a small fixed pattern noise in the vertical direction and need only be corrected in the horizontal direction.

ここで、固定パターンノイズの発生要因としては、撮像素子の回路系からの信号読出し時に画素部の信号が最終出力段に至る読出し経路の差(ばらつき)が大きい。図2は水平および垂直方向における固定パターンノイズの混入を示す図である。水平方向の固定パターンノイズは、図中、垂直ラインaの読出し経路と垂直ラインbの読出し経路との差に依存する。また、垂直方向の固定パターンノイズは、図中、水平ラインcの読出し経路と水平ラインdの読出し経路との差に依存する。例えば、図2に示すように、各水平ラインが読出し回路を共有し、かつ回路レイアウトの工夫などにより各水平ラインの信号を共通読出し回路に転送する際に混入するノイズが小さい撮像素子の場合、垂直方向の固定パターンノイズが小さく補正する必要がない。このような撮像素子を用いる撮像装置では、水平方向の1次元の補正データを用いて本画像を補正することにより、固定パターンノイズを除去することができる。   Here, as a generation factor of the fixed pattern noise, there is a large difference (variation) in the readout path where the signal of the pixel portion reaches the final output stage when the signal is read out from the circuit system of the image sensor. FIG. 2 is a diagram showing mixing of fixed pattern noise in the horizontal and vertical directions. The fixed pattern noise in the horizontal direction depends on the difference between the readout path of the vertical line a and the readout path of the vertical line b in the figure. Also, the fixed pattern noise in the vertical direction depends on the difference between the readout path of the horizontal line c and the readout path of the horizontal line d in the figure. For example, as shown in FIG. 2, in the case of an image sensor in which each horizontal line shares a readout circuit and noise that is mixed when transferring the signal of each horizontal line to the common readout circuit due to circuit layout or the like, Fixed pattern noise in the vertical direction is small and does not need to be corrected. In an imaging apparatus using such an imaging element, fixed pattern noise can be removed by correcting the main image using one-dimensional correction data in the horizontal direction.

60、62、64、66、68および70はシステム制御回路50の各種動作指示を入力するための操作部であり、スイッチ、ダイヤル、タッチパネル、視線検知によるポインティング、音声認識装置などの単数あるいは複数の組み合わせで構成される。これら操作部の詳細を以下に示す。   Reference numerals 60, 62, 64, 66, 68 and 70 are operation units for inputting various operation instructions of the system control circuit 50, and include one or a plurality of switches, dials, touch panels, pointing by line-of-sight detection, voice recognition devices, and the like. Composed of a combination. Details of these operation units are shown below.

60はモードダイアルスイッチであり、自動撮影モード、プログラム撮影モード、シャッタ速度優先撮影モード、絞り優先撮影モード、マニュアル撮影モード、焦点深度優先(デプス)撮影モード、ポートレート撮影モード、風景撮影モード、接写撮影モード、スポーツ撮影モード、夜景撮影モード、パノラマ撮影モードなどの各機能撮影モードを切り替えて設定可能である。   Reference numeral 60 denotes a mode dial switch, which is an automatic shooting mode, program shooting mode, shutter speed priority shooting mode, aperture priority shooting mode, manual shooting mode, depth of focus priority (depth) shooting mode, portrait shooting mode, landscape shooting mode, and close-up shooting. Each function shooting mode such as a shooting mode, a sports shooting mode, a night view shooting mode, and a panoramic shooting mode can be switched and set.

62はシャッタスイッチ(SW1)であり、シャッタボタン(図示せず)の操作途中でONとなり、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュ調光)処理などの動作開始を指示する。   A shutter switch (SW1) 62 is turned on during the operation of a shutter button (not shown), and AF (auto focus) processing, AE (automatic exposure) processing, AWB (auto white balance) processing, EF (flash adjustment). Instructs the start of operation such as light processing.

64はシャッタスイッチ(SW2)であり、シャッタボタン(図示せず)の操作完了でONとなる。このシャッタスイッチ(SW2)64は、撮像素子14から読み出した信号をA/D変換器16、メモリ制御回路22を介してメモリ30に画像データを書き込む露光処理、画像処理回路20やメモリ制御回路22での演算を用いた現像処理、メモリ30から画像データを読み出し、圧縮・伸長回路32で圧縮を行い、記録媒体200、201に画像データを書き込む記録処理という一連の処理の動作開始を指示する。   Reference numeral 64 denotes a shutter switch (SW2), which is turned on when the operation of a shutter button (not shown) is completed. The shutter switch (SW2) 64 is an exposure process for writing image data into the memory 30 via the A / D converter 16 and the memory control circuit 22 through the signal read from the image sensor 14, the image processing circuit 20 and the memory control circuit 22. The development processing using the calculation in the above, the image data is read from the memory 30, compressed by the compression / decompression circuit 32, and the start of a series of processing operations such as recording processing for writing the image data to the recording media 200 and 201 is instructed.

66は再生スイッチであり、撮影モード状態で撮影した画像をメモリ30あるいは記録媒体200、210から読み出して画像表示部28に表示する再生動作の開始を指示する。   Reference numeral 66 denotes a playback switch, which instructs to start a playback operation for reading an image shot in the shooting mode state from the memory 30 or the recording medium 200 or 210 and displaying it on the image display unit 28.

68は単写/連写スイッチであり、シャッタスイッチSW2を押した場合、1コマの撮影を行って待機状態とする単写モードと、シャッタスイッチSW2を押している間、連続して撮影を行い続ける連写モードとを設定可能である。   Reference numeral 68 denotes a single / continuous shooting switch. When the shutter switch SW2 is pressed, a single shooting mode in which one frame is shot to be in a standby state, and shooting is continuously performed while the shutter switch SW2 is being pressed. The continuous shooting mode can be set.

69はISO感度設定スイッチであり、撮像素子14あるいは画像処理回路20におけるゲインの設定を変更することによりISO感度を設定できる。   Reference numeral 69 denotes an ISO sensitivity setting switch, which can set the ISO sensitivity by changing the gain setting in the image sensor 14 or the image processing circuit 20.

70は各種ボタンやタッチパネルなどからなる操作部であり、メニューボタン、セットボタン、マクロボタン、マルチ画面再生改ページボタン、フラッシュ設定ボタン、単写/連写/セルフタイマ切替ボタン、メニュー移動+(プラス)ボタン、メニュー移動−(マイナス)ボタン、再生画像移動+(プラス)ボタン、再生画像−(マイナス)ボタン、撮影画質選択ボタン、露出補正ボタン、日付/時間設定ボタン、パノラマモード等の撮影および再生を実行する際に各種機能の選択および切り替えを設定する選択/切り替えボタン、パノラマモード等の撮影および再生を実行する際に各種機能の決定および実行を設定する決定/実行ボタン、画像表示部28のON/OFFを設定する画像表示ON/OFFスイッチ、撮影直後に撮影した画像データを自動再生するクイックレビュー機能を設定するクイックレビューON/OFFスイッチ、JPEG圧縮の圧縮率を選択するため、あるいは撮像素子の信号をそのままディジタル化して記録媒体に記録するCCDRAWモードを選択するためのスイッチである圧縮モードスイッチ、再生モード、マルチ画面再生・消去モード、PC接続モード等の各機能モードを設定可能な再生スイッチ、シャッタスイッチSW1を押した際にオートフォーカス動作を開始し、一旦合焦した場合、その合焦状態を保ち続けるワンショットAFモードとシャッタスイッチSW1を押している間、連続してオートフォーカス動作を続けるサーボAFモードとを設定可能なAFモード設定スイッチなどがある。   Reference numeral 70 denotes an operation unit composed of various buttons, a touch panel, etc., 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, menu movement + (plus ) Button, menu shift-(minus) button, playback image shift + (plus) button, playback image-(minus) button, shooting image quality selection button, exposure compensation button, date / time setting button, panorama mode shooting and playback A selection / switch button for setting selection and switching of various functions at the time of execution, a determination / execution button for setting determination and execution of various functions at the time of shooting and playback in panoramic mode, etc. Image display ON / OFF switch to set ON / OFF, image taken immediately after shooting Quick review ON / OFF switch for setting the quick review function for automatically reproducing data, for selecting the compression rate of JPEG compression, or for selecting the CCD RAW mode for digitizing the image sensor signal and recording it on a recording medium Auto-focus operation starts when pressing the shutter switch SW1, a playback switch that can set each function mode, such as a compression mode switch, playback mode, multi-screen playback / erase mode, and PC connection mode. In this case, there is an AF mode setting switch that can set a one-shot AF mode that keeps the in-focus state and a servo AF mode that keeps the autofocus operation continuously while pressing the shutter switch SW1.

また、上記プラスボタンおよびマイナスボタンの各機能は、回転ダイアルスイッチを備えることによって、より軽快に数値や機能を選択することが可能となる。   Further, the functions of the plus button and the minus button can be selected more easily with numerical values and functions by providing a rotary dial switch.

72は電源スイッチであり、画像処理装置100の電源オン、電源オフの各モードを切り替え設定可能である。また、画像処理装置100に接続されたレンズユニット300、外部ストロボ、記録媒体200、210等の各種付属装置の電源オン、電源オフの設定も合わせて切り替え設定可能である。   Reference numeral 72 denotes a power switch, which can be set to switch between power-on and power-off modes of the image processing apparatus 100. In addition, the power on and power off settings of various accessory devices such as the lens unit 300, the external strobe, and the recording media 200 and 210 connected to the image processing apparatus 100 can be switched.

80は電源制御部であり、電池検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路などから構成されており、電池の装着の有無、電池の種類、電池残量の検出を行い、その検出結果およびシステム制御回路50の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記録媒体を含む各部に供給する。   Reference numeral 80 denotes a power control unit, which includes a battery detection circuit, a DC-DC converter, a switch circuit that switches a block to be energized, and the like, detects whether or not a battery is installed, the type of battery, and the remaining battery level. 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および84はコネクタ、86はアルカリ電池やリチウム電池などの一次電池、NiCd電池、NiMH電池、Li電池などの二次電池、ACアダプタなどからなる電源部である。   Reference numerals 82 and 84 denote connectors, 86 denotes 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はメモリカードやハードディスクなどの記録媒体との接続を行うコネクタ、98はコネクタ92、96に記録媒体200、210が装着されているか否かを検知する記録媒体着脱検知部である。   90 and 94 are interfaces with a recording medium such as a memory card or a hard disk, 92 and 96 are connectors for connecting to a recording medium such as a memory card or a hard disk, and 98 is a recording medium 200 or 210 attached to the connectors 92 or 96. It is a recording medium attachment / detachment detection unit that detects whether or not the recording medium is present.

尚、本実施形態では、記録媒体を取り付けるインターフェースおよびコネクタが2系統装備されているが、記録媒体を取り付けるインターフェースおよびコネクタは単数あるいは任意の数の系統数装備されていてもよい。また、異なる規格のインターフェースおよびコネクタとして、PCMCIAカードやCF(コンパクトフラッシュ(登録商標))カードなどの規格に準拠したものを用いてもよい。   In this embodiment, two interfaces and connectors for attaching the recording medium are provided. However, a single or an arbitrary number of interfaces and connectors for attaching the recording medium may be provided. Further, as interfaces and connectors of different standards, those conforming to standards such as PCMCIA cards and CF (Compact Flash (registered trademark)) cards may be used.

さらに、インターフェース90、94、コネクタ92、96をPCMCIAカードやCF(コンパクトフラッシュ(登録商標))カードなどの規格に準拠したものを用いて構成した場合、LANカード、モデムカード、USBカード、IEEE1394カード、P1284カード、SCSIカード、PHSなどの通信カードなどの各種通信カードを接続することより、他のコンピュータやプリンタなどの周辺機器との間で画像データや画像データに付属した管理情報を相互に転送することが可能である。   Further, when the interfaces 90 and 94 and the connectors 92 and 96 are configured using a standard conforming to a PCMCIA card or a CF (Compact Flash (registered trademark)) card, a LAN card, a modem card, a USB card, and an IEEE 1394 card are used. By connecting various communication cards such as communication cards such as P1284 card, SCSI card, PHS, etc., image data and management information attached to the image data are mutually transferred between peripheral devices such as other computers and printers. Is possible.

104は光学ファインダであり、撮影レンズ310に入射した光線を、一眼レフ方式によって、絞り312、レンズマウント306、106、ミラー130、132を介して導き、光学像として結像させて表示することが可能である。これにより、画像表示部28による電子ファインダ機能を使用することなく、光学ファインダ104だけを用いて撮影を行うことが可能である。また、光学ファインダ104内には、表示部54の一部の機能、例えば、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタスピード表示、絞り値表示、露出補正表示などが設けられている。   Reference numeral 104 denotes an optical viewfinder, which guides a light beam incident on the photographing lens 310 through an aperture 312, lens mounts 306 and 106, and mirrors 130 and 132 by a single-lens reflex system, and forms an optical image for display. Is possible. Accordingly, it is possible to perform shooting using only the optical viewfinder 104 without using the electronic viewfinder function of the image display unit 28. Further, 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 provided.

110は通信部であり、RS232C、USB、IEEE1394、P1284、SCSI、モデム、LAN、無線通信などの各種通信機能を有する。112は通信部110により画像処理装置100を他の機器と接続するコネクタ、もしくは無線通信を行う場合のアンテナである。   A communication unit 110 has various communication functions such as RS232C, USB, IEEE1394, P1284, SCSI, modem, LAN, and wireless communication. Reference numeral 112 denotes a connector for connecting the image processing apparatus 100 to another device by the communication unit 110 or an antenna for performing wireless communication.

120はレンズマウント106内で画像処理装置100をレンズユニット300と接続するためのインターフェースである。122は画像処理装置100をレンズユニット300と電気的に接続するコネクタである。124はレンズマウント106および/またはコネクタ122にレンズユニット300が装着されているか否かを検知するレンズ着脱検知部である。   Reference numeral 120 denotes an interface for connecting the image processing apparatus 100 to the lens unit 300 in the lens mount 106. A connector 122 electrically connects the image processing apparatus 100 to the lens unit 300. A lens attachment / detachment detection unit 124 detects whether the lens unit 300 is attached to the lens mount 106 and / or the connector 122.

コネクタ122は画像処理装置100とレンズユニット300との間で制御信号、状態信号、データ信号などを伝え合うと共に、各種電圧の電流を供給する機能も備えている。また、コネクタ122は電気通信だけでなく、光通信、音声通信などを伝達する構成としてもよい。   The connector 122 transmits control signals, status signals, data signals, and the like between the image processing apparatus 100 and the lens unit 300, and also has a function of supplying currents of various voltages. Further, the connector 122 may be configured to transmit not only electrical communication but also optical communication, voice communication, and the like.

130、132はミラーであり、撮影レンズ310に入射した光線を、一眼レフ方式によって光学ファインダ104に導く。ミラー132はクイックリターンミラーの構成にしてもハーフミラーの構成にしてもどちらでもよい。   Reference numerals 130 and 132 denote mirrors that guide light rays incident on the photographing lens 310 to the optical viewfinder 104 by a single-lens reflex system. The mirror 132 may be either a quick return mirror or a half mirror.

200はメモリカードやハードディスクなどの記録媒体である。記録媒体200は、半導体メモリや磁気ディスクなどから構成される記録部202、画像処理装置100とのインターフェース204、および画像処理装置100との接続を行うコネクタ206を有している。210は、記録媒体200と同様、メモリカードやハードディスク等の記録媒体である。記録媒体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, and the like, an interface 204 with the image processing apparatus 100, and a connector 206 for connecting with the image processing apparatus 100. Reference numeral 210 denotes a recording medium such as a memory card or a hard disk, similar to the recording medium 200. The recording medium 210 includes a recording unit 212 composed of a semiconductor memory, a magnetic disk, or the like, an interface 214 with the image processing apparatus 100, and a connector 216 for connecting with the image processing apparatus 100.

300は交換レンズタイプのレンズユニットである。306はレンズユニット300を画像処理装置100と機械的に結合するレンズマウントである。レンズマウント306内には、レンズユニット300を画像処理装置100と電気的に接続する各種機能が含まれている。   Reference numeral 300 denotes an interchangeable lens type lens unit. A lens mount 306 mechanically couples the lens unit 300 to the image processing apparatus 100. The lens mount 306 includes various functions for electrically connecting the lens unit 300 to the image processing apparatus 100.

310は撮影レンズ、312は絞りである。320はレンズマウント306内でレンズユニット300を画像処理装置100と接続するためのインターフェースである。322はレンズユニット300を画像処理装置100と電気的に接続するコネクタである。   Reference numeral 310 denotes a photographing lens, and 312 denotes an aperture. Reference numeral 320 denotes an interface for connecting the lens unit 300 to the image processing apparatus 100 in the lens mount 306. A connector 322 electrically connects the lens unit 300 to the image processing apparatus 100.

コネクタ322は画像処理装置100とレンズユニット300との間で制御信号、状態信号、データ信号などを伝え合うと共に、各種電流が供給され、あるいは電流を供給する機能を備えている。また、コネクタ322は電気信号だけでなく、光信号、音声信号などを伝達する構成としてもよい。   The connector 322 has a function of transmitting a control signal, a status signal, a data signal, and the like between the image processing apparatus 100 and the lens unit 300 and supplying various currents or supplying currents. The connector 322 may be configured to transmit not only an electrical signal but also an optical signal, an audio signal, and the like.

340は測光制御部46からの測光情報に基づいて、シャッタ12を制御するシャッタ制御部40と連携しながら、絞り312を制御する絞り制御部である。342は撮影レンズ310のフォーカシングを制御する測距制御部である。344は撮影レンズ310のズーミングを制御するズーム制御部である。350はレンズユニット300全体を制御するレンズシステム制御回路である。レンズシステム制御回路350は、動作用の定数、変数、プログラムなどを記憶するメモリやレンズユニット300固有の番号などの識別情報、管理情報、開放絞り値や最小絞り値、焦点距離等の機能情報、現在や過去の各設定値などを保持する不揮発メモリの機能も備えている。   Reference numeral 340 denotes an aperture control unit that controls the aperture 312 in cooperation with the shutter control unit 40 that controls the shutter 12 based on photometric information from the photometry control unit 46. A distance measurement control unit 342 controls focusing of the photographing lens 310. A zoom control unit 344 controls zooming of the photographing lens 310. A lens system control circuit 350 controls the entire lens unit 300. The lens system control circuit 350 includes identification information such as a memory and an identification number unique to the lens unit 300, management information, function information such as an open aperture value, a minimum aperture value, and a focal length. It also has a non-volatile memory function for holding current and past set values.

上記構成を有する電子カメラの動作について説明する。図3および図4は画像処理装置100の撮影動作処理手順を示すフローチャートである。この処理プログラムは不揮発メモリ56などの記憶媒体に格納されており、メモリ52にロードされてシステム制御回路50内のCPUによって実行される。   The operation of the electronic camera having the above configuration will be described. 3 and 4 are flowcharts showing the shooting operation processing procedure of the image processing apparatus 100. This processing program is stored in a storage medium such as the nonvolatile memory 56, loaded into the memory 52, and executed by the CPU in the system control circuit 50.

電池交換などの電源投入により、システム制御回路50はフラグや制御変数等を初期化し、画像処理装置100の各部に対して必要な所定の初期設定を行う(ステップS101)。システム制御部50は、電源スイッチ72の設定位置を判別し、電源スイッチ72が電源OFFに設定されているか否かを判別する(ステップS102)。   Upon power-on such as battery replacement, the system control circuit 50 initializes flags, control variables, and the like, and performs necessary initial settings for each part of the image processing apparatus 100 (step S101). The system control unit 50 determines the setting position of the power switch 72 and determines whether or not the power switch 72 is set to power OFF (step S102).

電源スイッチ72が電源OFFに設定されている場合、各表示部の表示を終了状態に変更し、フラグや制御変数などを含む必要なパラメータや設定値、設定モードを不揮発性メモリ56に記録し、電源制御部80により画像表示部28を含む画像処理装置100各部の不要な電源を遮断する等の所定の終了処理を行った後(ステップS103)、ステップS102の処理に戻る。   When the power switch 72 is set to power OFF, the display of each display unit is changed to the end state, and necessary parameters, setting values, and setting modes including flags and control variables are recorded in the nonvolatile memory 56. After the power control unit 80 performs a predetermined end process such as cutting off unnecessary power of each part of the image processing apparatus 100 including the image display unit 28 (step S103), the process returns to the process of step S102.

一方、電源スイッチ72が電源ONに設定されていた場合、システム制御回路50は電源制御部80により電池などの電源86の残容量や動作状況が画像処理装置100の動作に問題があるか否かを判別する(ステップS104)。問題があると判別された場合、表示部54に画像の表示や音声の出力により所定の警告を行った後(ステップS105)、ステップS102の処理に戻る。   On the other hand, when the power switch 72 is set to ON, the system control circuit 50 determines whether the remaining capacity of the power source 86 such as a battery and the operation status have a problem in the operation of the image processing apparatus 100 by the power control unit 80. Is determined (step S104). If it is determined that there is a problem, a predetermined warning is given by displaying an image or outputting sound on the display unit 54 (step S105), and then the process returns to step S102.

一方、電源86に問題がないと判別された場合、システム制御回路50はモードダイアルスイッチ60の設定位置を判断し、モードダイアルスイッチ60が撮影モードに設定されているか否かを判別する(ステップS106)。モードダイアルスイッチ60がその他のモードに設定されている場合、システム制御回路50は選択されたモードに応じた処理を実行し(ステップS107)、実行後にステップS102の処理に戻る。   On the other hand, if it is determined that there is no problem with the power supply 86, the system control circuit 50 determines the setting position of the mode dial switch 60 and determines whether or not the mode dial switch 60 is set to the shooting mode (step S106). ). When the mode dial switch 60 is set to another mode, the system control circuit 50 executes processing according to the selected mode (step S107), and returns to the processing of step S102 after execution.

一方、モードダイアルスイッチ60が撮影モードに設定されている場合、記録媒体200、201が装着されているか否かの判断、記録媒体200、201に記録された画像データの管理情報の取得、および記録媒体200、201の動作状態が画像処理装置100の動作、特に記録媒体に対する画像データの記録再生動作に問題があるか否かを判別する(ステップS108)。問題があると判別された場合、表示部54に画像の表示や音声の出力により所定の警告を行った後(ステップS105)、ステップS102の処理に戻る。   On the other hand, when the mode dial switch 60 is set to the shooting mode, it is determined whether or not the recording media 200 and 201 are attached, the management information of the image data recorded on the recording media 200 and 201 is acquired, and the recording is performed. It is determined whether or not the operation state of the mediums 200 and 201 has a problem in the operation of the image processing apparatus 100, particularly the recording / reproducing operation of the image data with respect to the recording medium (step S108). If it is determined that there is a problem, a predetermined warning is given by displaying an image or outputting sound on the display unit 54 (step S105), and then the process returns to step S102.

システム制御回路50は表示部54を用いて画像や音声により画像処理装置100の各種設定状態の表示を行う(ステップS112)。ここで、画像表示部28の画像表示スイッチがONである場合、画像表示部28を用いて画像や音声により画像処理装置100の各種設定状態を表示するようにしてもよい。   The system control circuit 50 displays various setting states of the image processing apparatus 100 using images and sounds using the display unit 54 (step S112). Here, when the image display switch of the image display unit 28 is ON, various setting states of the image processing apparatus 100 may be displayed by an image or sound using the image display unit 28.

システム制御回路50はシャッタスイッチSW1が押されているか否かを判別し(ステップS121)、シャッタスイッチSW1が押されていない場合、ステップS102の処理に戻る。一方、シャッタスイッチSW1が押されている場合、システム制御回路50は、測距処理を行って撮影レンズ310の焦点を被写体に合わせ、測光処理を行って絞り値およびシャッタ速度を決定する測距・測光処理を行う(ステップS122)。測光処理では、必要であればフラッシュの設定を行う。この測距・測光処理の詳細については、後述する。   The system control circuit 50 determines whether or not the shutter switch SW1 has been pressed (step S121). If the shutter switch SW1 has not been pressed, the process returns to step S102. On the other hand, when the shutter switch SW1 is pressed, the system control circuit 50 performs a distance measurement process to focus the photographing lens 310 on the subject, and performs a light measurement process to determine an aperture value and a shutter speed. Photometric processing is performed (step S122). In the photometric process, the flash is set if necessary. Details of the distance measurement / photometry processing will be described later.

この後ステップS123〜S128において、水平ダークシェーディング補正にう使用する補正データの選択を行う。まず、カメラの設定感度を判別する。すなわち、ISO感度設定スイッチ69による設定感度がISO800未満であるか否かを判別する(ステップS123)。この判別理由は、ISO800未満では、露光量が少なくなるので、撮像素子で発生する暗電流ノイズや、撮像素子固有の微小なキズによる画素欠損等による画質劣化が目立つためである。尚、本実施形態では、ISO800としたが、ISO1600等、別の設定感度でもよいことは勿論である。そして、ISO800以上である場合、ステップS127の処理に移行し、一方、ISO800未満である場合、さらに、設定感度がISO400未満であるか否かを判別する(ステップS124)。   Thereafter, in steps S123 to S128, correction data to be used for horizontal dark shading correction is selected. First, the camera setting sensitivity is determined. That is, it is determined whether or not the sensitivity set by the ISO sensitivity setting switch 69 is less than ISO 800 (step S123). The reason for this determination is that, under ISO 800, the exposure amount is small, so that dark current noise generated in the image sensor or image quality deterioration due to pixel defects due to a small flaw unique to the image sensor is conspicuous. In the present embodiment, ISO 800 is used, but other set sensitivity such as ISO 1600 may be used. If it is ISO 800 or higher, the process proceeds to step S127. On the other hand, if it is lower than ISO 800, it is further determined whether or not the set sensitivity is lower than ISO 400 (step S124).

ISO400未満である場合、ステップS128の処理に移行し、一方、ISO400以上である場合、温度計44により計測される周囲温度Tempが28℃未満であるか否かを判別する(ステップS125)。28℃未満である場合、ステップS128の処理に移行し、一方、28℃以上である場合、シャッタ時間Tvが1秒未満であるか否かを判別する(ステップS126)。1秒未満である場合、ステップS128の処理に移行し、一方、1秒以上である場合、ステップS127の処理に移行する。   When the temperature is lower than ISO 400, the process proceeds to step S128. On the other hand, when the temperature is higher than ISO 400, it is determined whether the ambient temperature Temp measured by the thermometer 44 is lower than 28 ° C. (step S125). If it is less than 28 ° C., the process proceeds to step S128. If it is 28 ° C. or more, it is determined whether or not the shutter time Tv is less than 1 second (step S126). If it is less than 1 second, the process proceeds to step S128. If it is 1 second or more, the process proceeds to step S127.

尚、ステップS124〜S126の条件判定では、しきい値として、ISO400、28℃、1秒という値を設定しているが、撮像素子14の特性によっては、それぞれ適当な値であってもよいことは勿論である。   In the condition determination in steps S124 to S126, values of ISO 400, 28 ° C., and 1 second are set as threshold values. However, depending on the characteristics of the image sensor 14, appropriate values may be used. Of course.

ここで、暗電流ノイズは電荷蓄積時間や撮像素子の温度上昇にしたがって増大するので、長秒時の露光や高温時の露光を行う場合、予め記憶されている補正データでは、補正しきれない場合がある。そのため、本撮影時と同じ環境下で撮影されたダーク画像を用いて補正データを生成しなおさなければならない。   Here, dark current noise increases with the charge accumulation time and the temperature rise of the image sensor, so when performing exposure at long seconds or exposure at high temperatures, correction data stored in advance cannot be corrected. There is. Therefore, correction data must be generated again using a dark image taken under the same environment as that at the time of actual photographing.

したがって、ステップS124〜S126のいずれの条件も満たしていない場合、改めて補正データを作成する(ステップS127)。この補正データの生成の詳細については、後述する。   Therefore, if none of the conditions in steps S124 to S126 is satisfied, correction data is created anew (step S127). Details of the generation of the correction data will be described later.

また、ステップS116〜S118の処理において、いずれかの条件を満たしている場合、予め生産工程にて生成しておいた補正データを使用して問題ないないと判断できるため、該当する水平一次元補正データを垂直方向に実際の画像と同数のライン数だけ繰り返しメモリ30の所定領域に展開する(ステップS128)。   In addition, in the processes of steps S116 to S118, if any of the conditions is satisfied, it can be determined that there is no problem using the correction data generated in advance in the production process. The data is repeatedly developed in the predetermined area of the memory 30 by the same number of lines as the actual image in the vertical direction (step S128).

ステップS128では、システム制御回路50は、水平ダークシェーディング補正に用いられる1次元補正データを不揮発性メモリ56から読み出し、メモリ30の所定領域に、この1次元データを垂直方向に実際の画像と同数のライン数だけ繰り返し展開する。この補正データの展開終了後、ステップS129の処理に移行する。水平ダークシェーディング補正データによる本画像の補正方法は図15で示したとおりである。   In step S128, the system control circuit 50 reads the one-dimensional correction data used for horizontal dark shading correction from the nonvolatile memory 56, and stores the one-dimensional data in the predetermined area of the memory 30 in the vertical direction in the same number as the actual image. Repeat as many times as the number of lines. After the expansion of the correction data, the process proceeds to step S129. The method of correcting the main image using the horizontal dark shading correction data is as shown in FIG.

そして、シャッタスイッチSW2が押されているか否かを判別し(ステップS129)、シャッタスイッチSW2が押されていない場合、シャッタスイッチSW1が離されたか否かを判別し(ステップS130)、シャッタスイッチSW1が離されるかシャッタスイッチSW2が押されるまでステップS129およびステップS130の処理を繰り返す。ステップS130でシャッタスイッチSW1が離された場合、ステップS102の処理に移行する。   Then, it is determined whether or not the shutter switch SW2 is pressed (step S129). If the shutter switch SW2 is not pressed, it is determined whether or not the shutter switch SW1 is released (step S130), and the shutter switch SW1. Steps S129 and S130 are repeated until is released or the shutter switch SW2 is pressed. If the shutter switch SW1 is released in step S130, the process proceeds to step S102.

一方、ステップS129でシャッタスイッチSW2が押された場合、システム制御回路50は、撮影した画像データの記憶可能な画像記憶バッファ領域がメモリ30にあるか否かを判別する(ステップS131)。メモリ30の画像記憶バッファ領域内に新たな画像データの記憶可能な領域がないと判別された場合、表示部54に画像の表示や音声の出力により所定の警告を行った後(ステップS132)、ステップS102の処理に戻る。   On the other hand, when the shutter switch SW2 is pressed in step S129, the system control circuit 50 determines whether or not the memory 30 has an image storage buffer area in which captured image data can be stored (step S131). If it is determined that there is no area where new image data can be stored in the image storage buffer area of the memory 30, a predetermined warning is given to the display unit 54 by displaying an image or outputting sound (step S132). The process returns to step S102.

例えば、メモリ30の画像記憶バッファ領域内に記憶可能な最大枚数の連写撮影を行った直後であり、メモリ30から読み出して記憶媒体200、210に書き込むべき最初の画像がまだ記憶媒体200、210に未記録な状態であり、まだ1枚の空き領域もメモリ30の画像記憶バッファ領域上に確保できない状態である場合などである。   For example, immediately after performing the maximum number of continuous shots that can be stored in the image storage buffer area of the memory 30, the first image to be read from the memory 30 and written to the storage media 200, 210 is still the storage media 200, 210. This is a case where a single blank area cannot be secured in the image storage buffer area of the memory 30.

尚、撮影した画像データを圧縮処理してからメモリ30の画像記憶バッファ領域に記憶する場合、圧縮した後の画像データ量が圧縮モードの設定に応じて異なることを考慮して、記憶可能な領域がメモリ30の画像記憶バッファ領域上にあるか否かをステップS131の処理で判断することになる。   Note that when the captured image data is compressed and stored in the image storage buffer area of the memory 30, the area that can be stored in consideration of the fact that the amount of compressed image data varies depending on the compression mode setting. Is in the image storage buffer area of the memory 30, it is determined in step S131.

一方、ステップS131でメモリ30に撮影した画像データの記憶可能な画像記憶バッファ領域があると判別された場合、システム制御回路50は、撮像して所定時間蓄積した撮像信号を撮像素子14から読み出し、A/D変換器16、画像処理回路20およびメモリ制御回路22を介して、あるいはA/D変換器16から直接、メモリ制御回路22を介して、メモリ30の所定領域に撮影した画像データを書き込む撮影処理を実行する(ステップS133)。この撮影処理の詳細については、後述する。   On the other hand, if it is determined in step S131 that there is an image storage buffer area capable of storing the image data captured in the memory 30, the system control circuit 50 reads out the imaging signal that has been captured and accumulated for a predetermined time from the imaging element 14, and The photographed image data is written in a predetermined area of the memory 30 via the A / D converter 16, the image processing circuit 20 and the memory control circuit 22, or directly from the A / D converter 16 via the memory control circuit 22. An imaging process is executed (step S133). Details of this photographing process will be described later.

ステップS133の撮影処理を終えると、システム制御回路50は、ステップS123で展開した水平ダークシェーディング補正データあるいはステップS127で新たに生成された水平ダークシェーディング補正データを用いて減算処理を行うことにより、撮像素子14の暗電流ノイズ等を打ち消すダーク補正演算処理を行う(ステップS134)。   When the photographing process in step S133 is completed, the system control circuit 50 performs subtraction processing using the horizontal dark shading correction data developed in step S123 or the horizontal dark shading correction data newly generated in step S127, thereby capturing an image. Dark correction calculation processing is performed to cancel dark current noise and the like of the element 14 (step S134).

このように、水平ダークシェーディング補正データを用いて補正演算処理を行う場合、撮像素子14で発生する水平方向の暗電流ノイズや固定パターンノイズによる画質劣化に対し、補正を行うことができる。   As described above, when the correction calculation process is performed using the horizontal dark shading correction data, it is possible to correct the image quality deterioration due to the horizontal dark current noise and the fixed pattern noise generated in the image sensor 14.

ステップS134の水平ダークシェーディング補正を終えると、システム制御回路50は、メモリ30の所定領域に書き込まれた画像データの一部をメモリ制御回路22を介して読み出して現像処理を行うために必要なWB(ホワイトバランス)積分演算処理、OB(オプティカルブラック)積分演算処理を行い、演算結果をシステム制御回路50の内部メモリあるいはメモリ52に記憶する。   When the horizontal dark shading correction in step S134 is completed, the system control circuit 50 reads a part of the image data written in a predetermined area of the memory 30 via the memory control circuit 22 and WB necessary for performing development processing. (White balance) integration calculation processing and OB (optical black) integration calculation processing are performed, and the calculation result is stored in the internal memory or the memory 52 of the system control circuit 50.

そして、システム制御回路50は、メモリ制御回路22、必要に応じて画像処理回路20を用いて、メモリ30の所定領域に書き込まれた撮影画像データを読み出し、システム制御回路50の内部メモリあるいはメモリ52に記憶した演算結果を用いて、AWB(オートホワイトバランス)処理、ガンマ変換処理、色変換処理を含む各種現像処理を行う(ステップS135)。   Then, the system control circuit 50 uses the memory control circuit 22 and, if necessary, the image processing circuit 20 to read the captured image data written in a predetermined area of the memory 30 and reads the internal memory or the memory 52 of the system control circuit 50. Are used to perform various development processes including an AWB (auto white balance) process, a gamma conversion process, and a color conversion process (step S135).

システム制御回路50は、メモリ30の所定領域に書き込まれた画像データを読み出して、設定されたモードに応じた画像圧縮処理を圧縮・伸長回路32により行い、メモリ30の画像記憶バッファ領域の空き画像部分に、撮影して一連の処理を終えた画像データの書き込みを行う(ステップS136)。   The system control circuit 50 reads out the image data written in a predetermined area of the memory 30, performs image compression processing according to the set mode by the compression / decompression circuit 32, and free images in the image storage buffer area of the memory 30. The image data that has been photographed and completed a series of processing is written in the portion (step S136).

そして、システム制御回路50は、メモリ30の画像記憶バッファ領域に記憶された画像データを読み出し、インターフェース90、94、コネクタ92、96を介して、メモリカードやコンパクトフラッシュ(登録商標)カード等の記録媒体200、210に読み出した画像データを書き込む記録処理を開始する(ステップS137)。この記録開始処理は、メモリ30の画像記憶バッファ領域の空き画像部分に、撮影して一連の処理を終えた画像データの書き込みが新たに行われる度に、その画像データに対して実行される。   Then, the system control circuit 50 reads the image data stored in the image storage buffer area of the memory 30 and records it on a memory card, a compact flash (registered trademark) card or the like via the interfaces 90 and 94 and the connectors 92 and 96. Recording processing for writing the read image data on the media 200 and 210 is started (step S137). This recording start process is performed on the image data every time new image data is shot and written in the empty image portion of the image storage buffer area of the memory 30.

尚、記録媒体200、201に画像データの書き込みを行っている間、書き込み動作中であることを示すために、表示部54に例えばLEDを点滅させる等の記録媒体書き込み動作表示を行う。   Note that while the image data is being written to the recording media 200 and 201, a recording medium writing operation display such as blinking an LED is performed on the display unit 54 to indicate that the writing operation is being performed.

以上により、撮影に関する一連の処理が終了する。   As described above, a series of processing relating to photographing is completed.

図5はステップS122における測距・測光処理手順を示すフローチャートである。測距・測光処理では、システム制御回路50と、絞り制御部340あるいは測距制御部342との間の各種信号のやり取りは、インターフェース120、コネクタ122、コネクタ322、インターフェース320およびレンズシステム制御回路350を介して行われる。   FIG. 5 is a flowchart showing the distance measurement / photometry processing procedure in step S122. In the distance measurement / photometry processing, the exchange of various signals between the system control circuit 50 and the aperture control unit 340 or the distance measurement control unit 342 includes an interface 120, a connector 122, a connector 322, an interface 320, and a lens system control circuit 350. Is done through.

システム制御回路50は、撮像素子14、測距制御部42および測距制御部342を用いて、AF(オートフォーカス)処理を開始する(ステップS201)。   The system control circuit 50 starts an AF (autofocus) process using the image sensor 14, the distance measurement control unit 42, and the distance measurement control unit 342 (step S201).

システム制御回路50は、撮影レンズ310に入射した光線を、絞り312、レンズマウント306、106、ミラー130、測距用サブミラー(図示せず)を介して、測距制御部42に入射させることにより、光学像として結像された画像の合焦状態を判断し、測距(AF)が合焦と判断されるまで、測距制御部342を用いて撮影レンズ310を駆動しながら、測距制御部42を用いて合焦状態を検出するAF制御を実行する(ステップS202、S203)。   The system control circuit 50 causes the light beam incident on the photographing lens 310 to enter the distance measurement control unit 42 via the aperture 312, the lens mounts 306 and 106, the mirror 130, and the distance measurement sub-mirror (not shown). Then, the focusing state of the image formed as an optical image is determined, and ranging control is performed while driving the photographic lens 310 using the ranging control unit 342 until ranging (AF) is determined to be in focus. The AF control for detecting the in-focus state using the unit 42 is executed (steps S202 and S203).

ステップS203で測距(AF)が合焦と判断された場合、システム制御回路50は、撮影画面内の複数の測距点の中から合焦した測距点を決定し、決定した測距点データと共に測距データおよび/または設定パラメータをシステム制御回路50の内部メモリあるいはメモリ52に記憶する(ステップS204)。   When ranging (AF) is determined to be in focus in step S203, the system control circuit 50 determines a focused distance point from a plurality of distance measurement points on the shooting screen, and the determined distance measurement point. Ranging data and / or setting parameters are stored in the internal memory of the system control circuit 50 or the memory 52 together with the data (step S204).

つづいて、システム制御回路50は、測光制御部46を用いてAE(自動露出)処理を開始する(ステップS205)。システム制御回路50は、撮影レンズ310に入射した光線を、絞り312、レンズマウント306、106、ミラー130、132および測光用レンズ(図示せず)を介して、測光制御部46に入射させることにより、光学像として結像された画像の露出状態を測定し、露出(AE)が適正と判断されるまで露光(シャッタ)制御部40を用いて測光処理を行う(ステップS206、S207)。   Subsequently, the system control circuit 50 starts an AE (automatic exposure) process using the photometry control unit 46 (step S205). The system control circuit 50 causes the light beam incident on the photographing lens 310 to enter the photometry control unit 46 via the aperture 312, the lens mounts 306 and 106, the mirrors 130 and 132, and the photometry lens (not shown). Then, the exposure state of the image formed as an optical image is measured, and photometric processing is performed using the exposure (shutter) control unit 40 until it is determined that the exposure (AE) is appropriate (steps S206 and S207).

ステップS207で露出(AE)が適正であると判断された場合、システム制御回路50は、測光データおよび/または設定パラメータをシステム制御回路50の内部メモリあるいはメモリ52に記憶する。   When it is determined in step S207 that the exposure (AE) is appropriate, the system control circuit 50 stores the photometric data and / or the setting parameter in the internal memory or the memory 52 of the system control circuit 50.

尚、ステップS206の測光処理で検出した露出(AE)結果と、モードダイアルスイッチ60によって設定された撮影モードとに応じて、システム制御回路50では絞り値(Av値)およびシャッタ速度(Tv値)が決定される。   The system control circuit 50 determines the aperture value (Av value) and the shutter speed (Tv value) according to the exposure (AE) result detected in the photometric process in step S206 and the shooting mode set by the mode dial switch 60. Is determined.

ここで、決定されたシャッタ速度(Tv値)に応じて、システム制御回路50は、撮像素子14の電荷蓄積時間を決定し、この決定された同じ電荷蓄積時間で撮影処理およびダーク取り込み処理をそれぞれ行う。   Here, according to the determined shutter speed (Tv value), the system control circuit 50 determines the charge accumulation time of the image sensor 14, and performs the photographing process and the dark capturing process with the determined same charge accumulation time. Do.

ステップS206の測光処理で得られた測定データにより、システム制御回路50はフラッシュが必要であるか否かを判別し(ステップS208)、フラッシュが必要である場合、フラッシュフラグをセットし、充電が完了するまでフラッシュ部48を充電する(ステップS209、S210)。そして、フラッシュ部48の充電が完了すると、本処理を終了してメインの処理に復帰する。   Based on the measurement data obtained by the photometric processing in step S206, the system control circuit 50 determines whether or not flashing is necessary (step S208). If flashing is necessary, the flash flag is set and charging is completed. The flash unit 48 is charged until this is done (steps S209 and S210). Then, when the charging of the flash unit 48 is completed, this process is terminated and the process returns to the main process.

図6および図7はステップS133における撮影処理手順を示すフローチャートである。この撮影処理では、システム制御回路50と、絞り制御部340あるいは測距制御部342との間の各種信号のやり取りは、インターフェース120、コネクタ122、コネクタ322、インターフェース320およびレンズシステム制御回路350を介して行われる。   6 and 7 are flowcharts showing the photographing processing procedure in step S133. In this photographing process, various signals are exchanged between the system control circuit 50 and the aperture control unit 340 or the distance measurement control unit 342 via the interface 120, the connector 122, the connector 322, the interface 320, and the lens system control circuit 350. Done.

システム制御回路50は、ミラー130をミラー駆動部(図示せず)によってミラーアップ位置に移動させ(ステップS301)、システム制御回路50の内部メモリあるいはメモリ52に記憶された測光データに従い、絞り制御部340によって絞り312を所定の絞り値まで駆動する(ステップS302)。   The system control circuit 50 moves the mirror 130 to the mirror up position by a mirror driving unit (not shown) (step S301), and according to the photometric data stored in the internal memory of the system control circuit 50 or the memory 52, the aperture control unit The diaphragm 312 is driven to a predetermined diaphragm value by 340 (step S302).

システム制御回路50は、撮像素子14の電荷クリア動作を行った後(ステップS303)、撮像素子14の電荷蓄積を開始し(ステップS304)、シャッタ制御部40によってシャッタ12を開き(ステップS305)、撮像素子14の露光を開始する(ステップS306)。   After performing the charge clear operation of the image sensor 14 (step S303), the system control circuit 50 starts charge accumulation of the image sensor 14 (step S304), and opens the shutter 12 by the shutter control unit 40 (step S305). Exposure of the image sensor 14 is started (step S306).

そして、フラッシュフラグによりフラッシュ部48が必要であるか否かを判別し(ステップS307)、必要である場合、フラッシュ部48を発光させる(ステップS308)。   Then, it is determined whether or not the flash unit 48 is necessary based on the flash flag (step S307), and if necessary, the flash unit 48 is caused to emit light (step S308).

システム制御回路50は、測光データにしたがって撮像素子14の露光終了を待ち(ステップS309)、露光が終了すると、シャッタ制御部40によってシャッタ12を閉じ(ステップS310)、撮像素子14の露光を終了する。   The system control circuit 50 waits for the exposure of the image sensor 14 according to the photometric data (step S309), and when the exposure ends, the shutter control unit 40 closes the shutter 12 (step S310) and ends the exposure of the image sensor 14. .

システム制御回路50は、絞り制御部340によって絞り312を開放の絞り値まで駆動し(ステップS311)、ミラー130をミラー駆動部(図示せず)によってミラーダウン位置に移動させる(ステップS312)。   The system control circuit 50 drives the aperture 312 to the open aperture value by the aperture controller 340 (step S311), and moves the mirror 130 to the mirror down position by the mirror driver (not shown) (step S312).

設定した電荷蓄積時間が経過したか否かを判別し(ステップS313)、設定した電荷蓄積時間が経過した場合、システム制御回路50は撮像素子14の電荷蓄積を終了した後(ステップS314)、撮像素子14から電荷信号を読み出し、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、あるいはA/D変換器16から直接、メモリ制御回路22を介してメモリ30の所定領域に撮影画像データを書き込む(ステップS315)。一連の処理を終了すると、本処理を終了してメインの処理に復帰する。   It is determined whether or not the set charge accumulation time has elapsed (step S313). If the set charge accumulation time has elapsed, the system control circuit 50 finishes the charge accumulation of the image sensor 14 (step S314), and then performs imaging. A charge signal is read out from the element 14, and a predetermined area of the memory 30 through the A / D converter 16, the image processing circuit 20, the memory control circuit 22, or directly from the A / D converter 16 through the memory control circuit 22. The photographed image data is written in (Step S315). When the series of processes is completed, the present process is terminated and the process returns to the main process.

図8はステップS127における水平シェーディング補正データ生成手順についての1つの実施例を説明するフローチャートである。   FIG. 8 is a flowchart for explaining one embodiment of the horizontal shading correction data generation procedure in step S127.

システム制御回路50は、予め定められた複数行からなる補正データ生成用画像領域を設定し(ステップS501)、その領域内のダーク画像を取り込み(ステップS502)、そのダーク画像をもとに水平シェーディング補正データを作成する(ステップS503)。ダーク画像の取り込みに関する詳細は、後述する。   The system control circuit 50 sets a predetermined correction data generation image area consisting of a plurality of lines (step S501), captures a dark image in the area (step S502), and performs horizontal shading based on the dark image. Correction data is created (step S503). Details regarding dark image capturing will be described later.

その後ステップS503にて作成された補正データが、ステップS501で設定された画像領域内に存在する異常出力部の影響で、水平シェーディング補正に用いるにはふさわしくない補正データとなっていないかを検証する(ステップS504)。この補正データの検証に関する詳細は、後述する。   Thereafter, it is verified whether the correction data created in step S503 is not suitable for use in horizontal shading correction due to the influence of the abnormal output section existing in the image area set in step S501. (Step S504). Details regarding the verification of the correction data will be described later.

ステップS504の検証の結果、ステップS503で生成された水平シェーディング補正データが適切であると判定された場合には(ステップS505)、そのまま補正データの生成を完了し、不適切であると判定された場合には、ステップS504における補正データの検証時に抽出された、補正データの異常部を、その前後の補正データ値を用いて補間するなどの、補正データの修正を施し(ステップS506)、補正データの生成を完了する。   As a result of the verification in step S504, when it is determined that the horizontal shading correction data generated in step S503 is appropriate (step S505), the generation of correction data is completed as it is, and it is determined that it is inappropriate. In this case, correction data correction is performed by interpolating an abnormal portion of the correction data extracted at the time of verification of the correction data in step S504 using correction data values before and after the correction data (step S506). Complete the generation.

図9はステップS127における水平シェーディング補正データ生成手順についての別の実施例を説明するフローチャートである。   FIG. 9 is a flowchart for explaining another embodiment of the horizontal shading correction data generation procedure in step S127.

システム制御回路50は、予め定められた複数行からなる、第一の画像領域を設定し(ステップS601)、その領域内のダーク画像を取り込み(ステップS602)、そのダーク画像をもとに第一の水平シェーディング補正データを作成する(ステップS603)。ダーク画像の取り込みに関する詳細は、後述する。   The system control circuit 50 sets a first image area composed of a plurality of predetermined lines (step S601), captures a dark image in the area (step S602), and based on the dark image, sets the first image area. Horizontal shading correction data is generated (step S603). Details regarding dark image capturing will be described later.

その後ステップS603にて作成された第一の補正データが、ステップS601で設定された第一の画像領域内に存在する異常出力部の影響で、水平シェーディング補正に用いるにはふさわしくない補正データとなっていないかを検証する(ステップS604)。この補正データの検証に関する詳細は、後述する。   After that, the first correction data created in step S603 becomes correction data that is not suitable for use in horizontal shading correction due to the influence of the abnormal output unit existing in the first image area set in step S601. It is verified whether it is not present (step S604). Details regarding the verification of the correction data will be described later.

ステップS604の検証の結果、ステップS603で生成された第一の補正データが適切であると判定された場合には(ステップS605)、そのまま補正データの生成を完了する。   As a result of the verification in step S604, if it is determined that the first correction data generated in step S603 is appropriate (step S605), the generation of correction data is completed as it is.

一方、ステップS603で生成された第一の補正データが不適切であると判定された場合には、現在生成されている補正データがどの画像領域から生成されたものであるかを判定するステップS606に進み、このステップにおいて、現在の補正データが第一の画像領域から生成されたものであるという判定を受けて(ステップS606)、補正データ生成の画像領域が第二の画像領域に変更される(ステップS607)。   On the other hand, if it is determined that the first correction data generated in step S603 is inappropriate, step S606 for determining from which image region the correction data currently generated is generated. In this step, in response to the determination that the current correction data is generated from the first image area (step S606), the correction data generation image area is changed to the second image area. (Step S607).

その後、第二の画像領域について、第一の補正データ生成時と同様の手順がステップS602〜S604において行われ、第二の補正データの生成及び検証が施される。   Thereafter, for the second image region, the same procedure as that for generating the first correction data is performed in steps S602 to S604, and the generation and verification of the second correction data are performed.

第二の補正データが適切であると判定された場合には(ステップS605)、そのまま補正データの生成を完了し、不適切であると判定された場合も、ステップ606において現在の補正データが第二の画像領域から生成されたものであるという判定を受けて(ステップS606)、そのまま補正データの生成を完了する。   If it is determined that the second correction data is appropriate (step S605), the generation of the correction data is completed as it is, and if it is determined that the correction data is inappropriate, the current correction data is determined in step 606. In response to the determination that the image data is generated from the second image area (step S606), the generation of correction data is completed as it is.

以上、図9のフローチャートを用いて説明した水平シェーディング補正データ生成手順において、補正データ生成に使用する画像領域は2つだけとしたが、勿論本発明においては、3つ以上の領域から最も適切な補正データを選出するような手順としても良い。   As described above, in the horizontal shading correction data generation procedure described with reference to the flowchart of FIG. 9, only two image regions are used for correction data generation. Of course, in the present invention, the most appropriate from three or more regions is used. A procedure for selecting correction data may be used.

図10はステップS502およびステップS602におけるダーク取り込み処理手順を示すフローチャートである。システム制御回路50は、撮像素子14の電荷クリア動作を行った後(ステップS401)、シャッタ12が閉じた状態で撮像素子14の電荷蓄積を開始する(ステップS402)。   FIG. 10 is a flowchart showing the dark capture processing procedure in steps S502 and S602. After performing the charge clear operation of the image sensor 14 (step S401), the system control circuit 50 starts charge accumulation of the image sensor 14 with the shutter 12 closed (step S402).

設定した所定の電荷蓄積時間が経過したか否かを判別する(ステップS403)。電荷蓄積時間が経過した場合、システム制御回路50は、撮像素子14の電荷蓄積を終了した後(ステップS404)、撮像素子14から予め定められた数行分の電荷信号を読み出し、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、メモリ30の所定領域に画像データ(ダーク画像データ)を書き込む(ステップS405)。この後、本処理を終了して補正データ生成の処理に復帰する。   It is determined whether or not a predetermined charge accumulation time that has been set has elapsed (step S403). When the charge accumulation time has elapsed, the system control circuit 50 finishes the charge accumulation of the image sensor 14 (step S404), and then reads a predetermined number of rows of charge signals from the image sensor 14 to perform A / D conversion. The image data (dark image data) is written in a predetermined area of the memory 30 via the device 16, the image processing circuit 20, and the memory control circuit 22 (step S405). Thereafter, the present process is terminated and the process returns to the correction data generation process.

図11はステップS504及びS604における水平シェーディング補正データ検証手順についての1つの実施例を説明するフローチャートである。   FIG. 11 is a flowchart for explaining one embodiment of the horizontal shading correction data verification procedure in steps S504 and S604.

システム制御回路50は、補正データの平均値を算出し(ステップS701)、続けて最大値、最小値も算出する(ステップS702,S703)。   The system control circuit 50 calculates the average value of the correction data (step S701), and subsequently calculates the maximum value and the minimum value (steps S702 and S703).

ステップS702で算出した補正データの最大値とステップS701で算出した補正データの平均値の差を算出し、その値が予め定められた所定値(例えば1000LSB)以上であるかどうかを検証する(ステップS704)。所定値以下であった場合には、続けてステップS701で算出した補正データの平均値とステップS703で算出した補正データの最小値の差を算出し、その値が予め定められた所定値(例えば100LSB)以上であるかどうかを検証する(ステップS705)。ステップ705の判定結果が所定値以下であった場合は、ステップS706に移行し、該補正データは補正に適切(OK)と判定する。ステップS704,ステップ705の判定結果がどちらか一方でも所定値以上であった場合にはステップS707に移行し、該補正データは補正には不適切(NG)と判定する。ステップS706,ステップS707の結果補正データの適不適が決定したところで、本処理を終了して補正データ生成の処理に復帰する。   The difference between the maximum value of the correction data calculated in step S702 and the average value of the correction data calculated in step S701 is calculated, and it is verified whether the value is equal to or greater than a predetermined value (for example, 1000LSB) (step S1). S704). If it is equal to or smaller than the predetermined value, the difference between the average value of the correction data calculated in step S701 and the minimum value of the correction data calculated in step S703 is calculated, and the value is set to a predetermined value (for example, 100LSB) or more is verified (step S705). If the determination result in step 705 is equal to or smaller than the predetermined value, the process proceeds to step S706, and the correction data is determined to be appropriate for correction (OK). If either of the determination results in steps S704 and 705 is equal to or greater than a predetermined value, the process proceeds to step S707, and the correction data is determined to be inappropriate (NG) for correction. When the suitability of the correction data is determined as a result of step S706 and step S707, this process is terminated and the process returns to the correction data generation process.

図12はステップS504及びS604における水平シェーディング補正データ検証手順についての別の実施例を説明するフローチャートである。   FIG. 12 is a flowchart for explaining another embodiment of the horizontal shading correction data verification procedure in steps S504 and S604.

システム制御回路50は、まず、補正データに対し、隣接するデータの差分を算出しその値を並べることで微分補正データを作成する(ステップS801)。   First, the system control circuit 50 creates differential correction data by calculating the difference between adjacent data and arranging the values for the correction data (step S801).

次に微分補正データの平均値を算出し(ステップS802)、続けて最大値、最小値も算出する(ステップS803,S804)。   Next, the average value of the differential correction data is calculated (step S802), and the maximum value and the minimum value are also calculated (steps S803 and S804).

ステップS803で算出した微分補正データの最大値とステップS802で算出した微分補正データの平均値の差を算出し、その値が予め定められた所定値(例えば100LSB)以上であるかどうかを検証する(ステップS804)。所定値以下であった場合には、続けてステップS802で算出した微分補正データの平均値とステップS803で算出した微分補正データの最小値の差を算出し、その値が予め定められた所定値(例えば100LSB)以上であるかどうかを検証する(ステップS805)。ステップ805の判定結果が所定値以下であった場合は、ステップS806に移行し、該補正データは補正に適切(OK)と判定する。ステップS804,ステップ805の判定結果がどちらか一方でも所定値以上であった場合にはステップS807に移行し、該補正データは補正には不適切(NG)と判定する。ステップS806,ステップS807の結果補正データの適不適が決定したところで、本処理を終了して補正データ生成の処理に復帰する。   The difference between the maximum value of the differential correction data calculated in step S803 and the average value of the differential correction data calculated in step S802 is calculated, and it is verified whether the value is equal to or greater than a predetermined value (for example, 100LSB). (Step S804). If it is equal to or smaller than the predetermined value, the difference between the average value of the differential correction data calculated in step S802 and the minimum value of the differential correction data calculated in step S803 is calculated, and the value is a predetermined value that is set in advance. It is verified whether or not (for example, 100LSB) or more (step S805). If the determination result in step 805 is equal to or smaller than the predetermined value, the process proceeds to step S806, and the correction data is determined to be appropriate for correction (OK). If either of the determination results in steps S804 and 805 is equal to or greater than a predetermined value, the process proceeds to step S807, and the correction data is determined to be inappropriate (NG) for correction. When the suitability of the correction data is determined as a result of step S806 and step S807, this process is terminated and the process returns to the correction data generation process.

この微分補正データを用いた補正データの検証は、先に図11を用いて説明した補正データそのものの値を用いた検証に比べ、補正データの差分化をしなければならない分、計算量が多くなるという短所があるが、水平シェーディング補正によって補正可能な単調な水平シェーディングの影響を除去できるため、より精度の高い異常点検出が可能であるという長所を有する。   The verification of the correction data using the differential correction data requires a large amount of calculation because the correction data must be differentiated compared to the verification using the correction data itself described with reference to FIG. However, since the influence of monotonous horizontal shading that can be corrected by the horizontal shading correction can be removed, it is possible to detect abnormal points with higher accuracy.

以上、図11、図12のフローチャートを用いて説明した水平シェーディング補正データ検証手順において、補正データの代表値として平均値を使用したが、本発明はこれに限定されず、例えば中央値(メディアン)等を使用しても良い。また、両補正データ検証手順においても、最大値と平均値、最小値と平均値の差をもとに補正データの検証を行うと説明したが、本発明はこれに限定されず、例えば最大値と最小値の差が所定値以上の場合に補正データが不適切であると判定するような検証手順でも良い。更には差分値ではなく補正データもしくは微分補正データの中に絶対値が予め定められた所定範囲外となるものが存在した場合には、補正データが不適切であると判定するような検証手順でもよい。   As described above, in the horizontal shading correction data verification procedure described with reference to the flowcharts of FIGS. 11 and 12, the average value is used as the representative value of the correction data. However, the present invention is not limited to this, and for example, the median value (median) Etc. may be used. Further, in both correction data verification procedures, it has been described that the correction data is verified based on the difference between the maximum value and the average value, and the minimum value and the average value, but the present invention is not limited to this, for example, the maximum value A verification procedure that determines that the correction data is inappropriate when the difference between the minimum value and the minimum value is greater than or equal to a predetermined value may be used. Further, even if there is a correction data or differential correction data that is not a difference value but whose absolute value is outside a predetermined range, a verification procedure for determining that the correction data is inappropriate is also possible. Good.

図13及び図14を用いて、本実施形態の撮像装置による補正例を説明する。   A correction example by the imaging apparatus of the present embodiment will be described with reference to FIGS. 13 and 14.

図13の補正例は、図16を用いて従来の補正を説明した際に使用した画像を補正する場合のものである。この場合のダーク画像は図13−aのようになる。   The correction example in FIG. 13 is for correcting the image used when the conventional correction is described with reference to FIG. The dark image in this case is as shown in FIG.

この画像の第一の領域を用いて水平ダーク補正データを生成した場合、その補正データは図13−b1のようになる。この第一の補正データが適切であるかを判定するために補正データの微分を作成すると図13−b2のようになる。この微分補正データを検証すると、最小値と平均値の差が所定値以上であることから、補正データ生成領域に異常点が存在したと判定され、この第一の領域を用いて作成された第一の補正データは補正に不適切であると判定される。そこで第二の領域を用いて改めて第二の補正データ(図13−c1)及び微分補正データ(図13−C2)を生成する。この微分補正データは最大値と最小値の差が所定範囲内のため、第二の補正データは補正に適していると判定される。   When horizontal dark correction data is generated using the first region of the image, the correction data is as shown in FIG. 13-b1. When a derivative of the correction data is created in order to determine whether the first correction data is appropriate, the result is as shown in FIG. 13-b2. When this differential correction data is verified, since the difference between the minimum value and the average value is equal to or greater than a predetermined value, it is determined that there is an abnormal point in the correction data generation region, and the first data created using this first region is determined. One correction data is determined to be inappropriate for correction. Therefore, second correction data (FIG. 13-c1) and differential correction data (FIG. 13-C2) are generated anew using the second region. Since the differential correction data has a difference between the maximum value and the minimum value within a predetermined range, it is determined that the second correction data is suitable for correction.

そして、この第二の補正データを用いて元の画像図13−aを補正することで、図13−dの画像のように異常点以外は正常な補正が施された画像が得られる。   Then, by correcting the original image FIG. 13-a using the second correction data, an image that is normally corrected except for the abnormal points as in the image of FIG. 13-d is obtained.

図14の補正例は、図17を用いて従来の補正を説明した際に使用した画像を補正する場合のものであるが、これも図13の補正例同様に、異常点の存在しない第二の領域から第二の補正データを生成することで、図14−dの画像のように異常点以外は正常な補正が施された画像が得られる。   The correction example in FIG. 14 is for correcting the image used when the conventional correction is described with reference to FIG. 17, and this is also the second example in which no abnormal point exists, as in the correction example in FIG. 13. By generating the second correction data from this area, an image that has been normally corrected except for abnormal points as in the image of FIG. 14D can be obtained.

以上のように、本実施形態の撮像装置では、高温時、長時間撮影時、高ISO感度撮影時等の厳しい撮影環境下において、画面内に異常出力部が発生してしまった場合でも、水平シェーディング補正用の補正データが補正に適切であるかを検証する処理手順を行うことによって、異常部の影響を受けた誤った補正データを用いたシェーディング補正を施してしまうことを回避でき、すなわち、様々な条件下で適切なダークシェーディング補正を行った最良の画像を生成することが可能である。   As described above, in the imaging apparatus according to the present embodiment, even when an abnormal output portion occurs in the screen under severe shooting environments such as high temperature, long time shooting, and high ISO sensitivity shooting, By performing a processing procedure for verifying whether correction data for shading correction is appropriate for correction, it is possible to avoid performing shading correction using erroneous correction data affected by an abnormal part, that is, It is possible to generate the best image with appropriate dark shading correction under various conditions.

以上が本発明の実施の形態の説明であるが、本発明は、これら実施の形態の構成に限られるものではなく、特許請求の範囲で示した機能、または実施の形態の構成が持つ機能が達成できる構成であればどのようなものであっても適用可能である。   The above is the description of the embodiments of the present invention. However, the present invention is not limited to the configurations of these embodiments, and the functions shown in the claims or the functions of the configurations of the embodiments are included. Any configuration that can be achieved is applicable.

例えば、上記実施形態では、水平ダークシェーディング補正を行う場合、補正データをメモリ30に展開していたが、この展開処理を行わずに、撮像素子14から画像データを取り込みながら順次、本画像から補正データを減算していくように補正することも可能である。   For example, in the above embodiment, when horizontal dark shading correction is performed, correction data is expanded in the memory 30. However, without performing this expansion processing, correction is performed sequentially from the main image while capturing image data from the image sensor 14. It is also possible to correct so that the data is subtracted.

また、本実施形態では、水平ダークシェーディング補正データの展開処理(S128)は、シャッタスイッチSW1が押された後に行われるとしたが、カメラの電源投入時に補正データが展開されるようにしてもよい。   In this embodiment, the horizontal dark shading correction data expansion process (S128) is performed after the shutter switch SW1 is pressed. However, the correction data may be expanded when the camera is turned on. .

また、同様に、水平ダークシェーディング補正データの生成処理(S127)も、シャッタスイッチSW1が押された後に行われるとしたが、例えば、撮影時のレリーズタイムラグを少なくするために、カメラの電源投入時に補正データを生成し、ISO感度や撮影モードなど各種設定が切り換えられた時に補正データを再生成するようなシーケンスにしてもよいし、例えば、より撮影の瞬間と同じ条件で補正を行うために、シャッタスイッチSW2が押された後の実際の撮像直前に補正データが生成されるようなシーケンスにしてもよい。   Similarly, the horizontal dark shading correction data generation process (S127) is performed after the shutter switch SW1 is pressed. For example, when the camera is turned on in order to reduce the release time lag at the time of shooting. A sequence in which correction data is generated and correction data is re-generated when various settings such as ISO sensitivity and shooting mode are switched may be used. For example, in order to perform correction under the same conditions as the moment of shooting, The sequence may be such that correction data is generated immediately before actual imaging after the shutter switch SW2 is pressed.

また、本実施形態では、撮影環境が通常の時は、工場で予め取得しメモリ30に記録しておいた補正データを用いて水平シェーディング補正を行い、高温時や長秒時及び高ISO感度時にはダーク画像から補正データを作成して補正を行うシーケンスとしたが、更に高温,長秒,高ISO感度時等の、一次元のシェーディング補正だけでは良好な画像が得られないような撮影環境下においては、撮影した本画像から一枚の黒画像をそのまま差分する、いわゆる黒引きを行うようなシーケンスを行ってもよい。   In the present embodiment, when the shooting environment is normal, horizontal shading correction is performed using correction data acquired in advance at the factory and recorded in the memory 30, and at high temperatures, long seconds, and high ISO sensitivity. The correction sequence is created by creating correction data from a dark image. However, in a shooting environment where a good image cannot be obtained by only one-dimensional shading correction, such as at high temperatures, long seconds, and high ISO sensitivity. May perform a so-called black-drawing sequence in which one black image is directly subtracted from the captured main image.

さらに、補正データは水平方向の1次元データであるとしたが、垂直方向の1次元データあるいは2次元データであっても構わない。また、2次元の画像全体のデータでなくとも、図9に示すように、水平・垂直それぞれ方向の1次元データを両方記憶しておき、補正データの展開処理(S123)では、水平方向の1次元データを展開する際、垂直方向の1次元データを用いてライン毎に補正量を加減することで、水平・垂直両方向のダークシェーディングを補正することができる。図9は垂直・水平両方向の1次元データを用いた本画像の補正を示す図である。この場合、さらに、垂直方向に関しては、1次元の補正データとして記憶しなくても、数式として記憶しておき、水平方向の1次元データを展開する際、この数式を適用して垂直方向のダークシェーディングを補正するようにしてもよい。   Furthermore, although the correction data is one-dimensional data in the horizontal direction, it may be one-dimensional data or two-dimensional data in the vertical direction. Further, as shown in FIG. 9, both the horizontal and vertical one-dimensional data are stored in the correction data development process (S123), even if it is not the entire two-dimensional image data. When developing the dimension data, the dark shading in both the horizontal and vertical directions can be corrected by adjusting the correction amount for each line using the one-dimensional data in the vertical direction. FIG. 9 is a diagram showing correction of the main image using one-dimensional data in both the vertical and horizontal directions. In this case, the vertical direction is further stored as a mathematical formula without being stored as one-dimensional correction data. When developing the one-dimensional data in the horizontal direction, this formula is applied to darkness in the vertical direction. You may make it correct | amend shading.

また、上記実施形態では、本撮影処理の電荷蓄積時間とダーク取り込み処理の電荷蓄積時間を等しくする場合を示したが、暗電流ノイズ等を補正するのに十分なデータが得られる範囲内であればよく、異なる電荷蓄積時間としてもよい。   In the above-described embodiment, the case where the charge accumulation time of the main photographing process and the charge accumulation time of the dark capturing process are made equal is shown. However, as long as sufficient data for correcting the dark current noise and the like is obtained. The charge accumulation time may be different.

さらに、ステップS502、S602のダーク取り込み処理動作の実行中、撮影動作を行うことができないので、表示部54および/または画像表示部28によって、画像処理装置100がビジー状態にあることを示す画像や音声を報知するようにしてもよい。   Furthermore, since the photographing operation cannot be performed during the execution of the dark capture processing operations in steps S502 and S602, an image indicating that the image processing apparatus 100 is busy is displayed by the display unit 54 and / or the image display unit 28. You may make it alert | report an audio | voice.

また、本実施形態では、ミラー130をミラーアップ位置、ミラーダウン位置を移動して撮影動作を行う場合を示したが、ミラー130をハーフミラーの構成として、移動せずに撮影動作を行うようにしてもよい。   Further, in the present embodiment, the case where the photographing operation is performed by moving the mirror 130 between the mirror up position and the mirror down position has been described. However, the mirror 130 is configured as a half mirror so that the photographing operation is performed without moving. May be.

さらに、記録媒体200、210は、PCMCIAカードやコンパクトフラッシュ(登録商標)等のメモリカード、ハードディスク等だけでなく、マイクロDAT、光磁気ディスク、CD−R、CD−RW等の光ディスク、DVD等の相変化型光ディスク等で構成されていてもよい。さらには、記録媒体200、210がメモリカードとハードディスク等が一体となった複合媒体であってもよい。この場合、複合媒体から一部が着脱自在な構成であってもよい。   Further, the recording media 200 and 210 are not only memory cards such as PCMCIA cards and compact flash (registered trademark), hard disks, but also micro DAT, magneto-optical disks, optical disks such as CD-R and CD-RW, DVDs and the like. It may be composed of a phase change optical disk or the like. Furthermore, the recording media 200 and 210 may be composite media in which a memory card and a hard disk are integrated. In this case, a part of the composite medium may be detachable.

上記実施形態では、記録媒体200、210は画像処理装置100と分離しており、任意に接続可能なものであるとしたが、いずれかあるいは全ての記録媒体が画像処理装置100に固定されたままであってもよい。また、画像処理装置100に、記録媒体200、210が単数あるいは複数の任意の個数接続可能な構成であってもよい。   In the above embodiment, the recording media 200 and 210 are separated from the image processing apparatus 100 and can be arbitrarily connected. However, any or all of the recording media remain fixed to the image processing apparatus 100. There may be. Further, the image processing apparatus 100 may be configured such that a single or a plurality of recording media 200 and 210 can be connected.

また、本発明は、前述した実施形態の機能を実現するソフトウェアのプログラムコードをシステムあるいは装置に供給することによって達成される場合にも適用できることはいうまでもない。この場合、プログラムコード自体が本発明の新規な機能を実現することになり、そのプログラム自体およびそのプログラムを記憶した記憶媒体は本発明を構成することになる。   It goes without saying that the present invention can also be applied to a case where the present invention is achieved by supplying software program codes for realizing the functions of the above-described embodiments to a system or apparatus. In this case, the program code itself realizes the novel function of the present invention, and the program itself and the storage medium storing the program constitute the present invention.

上記実施形態では、図3〜図5および図6〜図10のフローチャートに示すプログラムコードは記憶媒体であるROMに格納されている。プログラムコードを供給する記憶媒体としては、ROMに限らず、例えばフレキシブルディスク、ハードディスク、不揮発性のメモリカードなどを用いることができる。   In the above embodiment, the program codes shown in the flowcharts of FIGS. 3 to 5 and FIGS. 6 to 10 are stored in a ROM that is a storage medium. The storage medium for supplying the program code is not limited to the ROM, and for example, a flexible disk, a hard disk, a nonvolatile memory card, or the like can be used.

本実施形態における電子カメラの構成を示すブロック図である。It is a block diagram which shows the structure of the electronic camera in this embodiment. 水平および垂直方向における固定パターンノイズの混入を示す図である。It is a figure which shows mixing of the fixed pattern noise in a horizontal and vertical direction. 本実施形態の撮影動作処理手順を示すフローチャートである。It is a flowchart which shows the imaging | photography operation processing procedure of this embodiment. 本実施形態の図3につづく撮影動作処理手順を示すフローチャートである。It is a flowchart which shows the imaging | photography operation | movement process procedure following FIG. 3 of this embodiment. 本実施形態の測距・測光処理手順を示すフローチャートである。It is a flowchart which shows the distance measurement and photometry processing procedure of this embodiment. 本実施形態の撮影処理手順を示すフローチャートである。It is a flowchart which shows the imaging | photography process procedure of this embodiment. 本実施形態の図6につづく撮影処理手順を示すフローチャートである。It is a flowchart which shows the imaging | photography process procedure following FIG. 6 of this embodiment. 本実施形態の1つの水平シェーディングデータ生成処理手順を示すフローチャートである。It is a flowchart which shows the one horizontal shading data generation processing procedure of this embodiment. 本実施形態の別の水平シェーディングデータ生成処理手順を示すフローチャートである。It is a flowchart which shows another horizontal shading data generation processing procedure of this embodiment. 本実施形態のダーク取り込み処理手順を示すフローチャートである。It is a flowchart which shows the dark acquisition process procedure of this embodiment. 本実施形態の1つの水平シェーディングデータ検証処理手順を示すフローチャートである。It is a flowchart which shows one horizontal shading data verification process procedure of this embodiment. 本実施形態の別の水平シェーディングデータ検証処理手順を示すフローチャートである。It is a flowchart which shows another horizontal shading data verification processing procedure of this embodiment. 本実施形態の1つの画像の補正例を説明する図である。It is a figure explaining the example of amendment of one picture of this embodiment. 本実施形態の別の画像の補正例を説明する図である。It is a figure explaining the example of amendment of another picture of this embodiment. 水平ダークシェーディング補正データによる本画像の補正を示す図である。It is a figure which shows correction | amendment of this image by horizontal dark shading correction data. 従来例の1つの画像の補正例を説明する図である。It is a figure explaining the example of correction of one picture of a conventional example. 従来例の別の画像の補正例を説明する図である。It is a figure explaining the example of a correction of another image of a prior art example.

符号の説明Explanation of symbols

14 撮像素子
44 温度計
50 システム制御回路
56 不揮発性メモリ
60 モードダイアル
62 シャッタスイッチSW1
64 シャッタスイッチSW2
100 画像処理装置
14 Image sensor 44 Thermometer 50 System control circuit 56 Non-volatile memory 60 Mode dial 62 Shutter switch SW1
64 Shutter switch SW2
100 Image processing apparatus

Claims (18)

撮影した画像を記録媒体に記録する撮像装置において、非露光状態で撮像を行って第一の画像データを得る第一の撮像モード、および露光状態で撮像を行って第二の画像データを得る第二の撮像モードで撮像可能な撮像手段と、第一の撮像モードで得られた第一の画像データの全体もしくは一部分である第一の領域から第一のシェーディング補正データを生成する第一の補正データ生成手段と、第一のシェーディング補正データが適切なものであるかを判定する補正データ判定手段と、補正データ判定手段により第一の補正データが不適切なものであると判定された場合に、第一のシェーディング補正データを補正する補正データ修正手段と、第一のシェーディング補正データを用いて第二の画像データに対してダークシェーディング補正を施すダークシェーディング補正手段とを備えたことを特徴とする撮像装置。   In an imaging apparatus that records a captured image on a recording medium, a first imaging mode that captures images in a non-exposure state to obtain first image data, and a second imaging data that captures images in an exposure state. First correction for generating first shading correction data from an imaging means capable of imaging in the second imaging mode and a first area which is the whole or a part of the first image data obtained in the first imaging mode When the data generation means, the correction data determination means for determining whether the first shading correction data is appropriate, and the correction data determination means determine that the first correction data is inappropriate Correction data correction means for correcting the first shading correction data, and dark shading correction for the second image data using the first shading correction data. Imaging apparatus being characterized in that a be dark shading correction means. 前記補正データ判定手段は、その補正データの最大値と最小値の差が所定値以上の場合にその補正データは不適切であると判定することを特徴とする、請求項1記載の撮像装置。   The imaging apparatus according to claim 1, wherein the correction data determination unit determines that the correction data is inappropriate when the difference between the maximum value and the minimum value of the correction data is equal to or greater than a predetermined value. 前記補正データ判定手段は、その補正データの最大値及び最小値と平均値との差が所定値以上の場合にその補正データは不適切であると判定することを特徴とする、請求項1記載の撮像装置。   The correction data determination means determines that the correction data is inappropriate when a difference between a maximum value and a minimum value of the correction data and an average value is a predetermined value or more. Imaging device. 前記補正データ判定手段は、その補正データの最大値及び最小値と中央値との差が所定値以上の場合にその補正データは不適切であると判定することを特徴とする、請求項1記載の撮像装置。   The correction data determination means determines that the correction data is inappropriate when a difference between a maximum value and a minimum value of the correction data and a median value is a predetermined value or more. Imaging device. 前記補正データ判定手段は、その補正データの隣接する出力値同士の差分値の最大値と最小値の差が所定値以上の場合にその補正データは不適切であると判定することを特徴とする、請求項1記載の撮像装置。   The correction data determination means determines that the correction data is inappropriate when a difference between a maximum value and a minimum value of difference values between adjacent output values of the correction data is equal to or greater than a predetermined value. The imaging device according to claim 1. 前記補正データ判定手段は、その補正データの隣接する出力値同士の差分値の最大値及び最小値と平均値との差が所定値以上の場合にその補正データは不適切であると判定することを特徴とする、請求項1記載の撮像装置。   The correction data determination means determines that the correction data is inappropriate when the difference between the maximum value and the minimum value of the difference values between adjacent output values of the correction data is equal to or greater than a predetermined value. The imaging apparatus according to claim 1, wherein: 前記補正データ判定手段は、その補正データの隣接する出力値同士の差分値の最大値及び最小値と中央値との差が所定値以上の場合にその補正データは不適切であると判定することを特徴とする、請求項1記載の撮像装置。   The correction data determination means determines that the correction data is inappropriate when the difference between the maximum value and the minimum value of the difference values between adjacent output values of the correction data is greater than or equal to a predetermined value. The imaging apparatus according to claim 1, wherein: 前記補正データ修正手段は、前記第一の補正データにおける不適切な部分を検出する補正データ異常部検出手段を有し、前記補正データ異常部検索手段により検出された異常部の部分をその前後のデータから近似式で補間して補正データを補正することを特徴とする、請求項1記載の撮像装置。   The correction data correcting means has correction data abnormal part detecting means for detecting an inappropriate part in the first correction data, and the part of the abnormal part detected by the correction data abnormal part searching means The imaging apparatus according to claim 1, wherein the correction data is corrected by interpolating from the data with an approximate expression. 前記補正データ異常部検出手段は、出力値が予め定められた数値範囲外となる箇所を不適切な部分として検出することを特徴とする、請求項8記載の撮像装置。   9. The imaging apparatus according to claim 8, wherein the correction data abnormality portion detecting means detects a portion where the output value is outside a predetermined numerical range as an inappropriate portion. 前記補正データ異常部検出手段は、補正データ全体の平均値との差が所定値以上となる箇所を不適切な部分として検出することを特徴とする、請求項8記載の撮像装置。   9. The imaging apparatus according to claim 8, wherein the correction data abnormal portion detecting means detects a portion where the difference from the average value of the entire correction data is a predetermined value or more as an inappropriate portion. 前記補正データ異常部検出手段は、補正データ全体の中央値との差が所定値以上となる箇所を不適切な部分として検出することを特徴とする、請求項8記載の撮像装置。   9. The imaging apparatus according to claim 8, wherein the correction data abnormal portion detecting means detects a portion where a difference from a median value of the entire correction data is a predetermined value or more as an inappropriate portion. 前記補正データ異常部検出手段は、補正データの隣接する2つの出力値の差分値が所定値以上となる箇所及びその周辺部分を不適切な部分として検出することを特徴とする、請求項8記載の撮像装置。   9. The correction data abnormal portion detecting means detects a portion where a difference value between two adjacent output values of correction data is equal to or greater than a predetermined value and its peripheral portion as an inappropriate portion. Imaging device. 前記補正データ修正手段は、第一の撮像モードで得られた第一の画像データにおいて第一の領域とは異なる第二の領域から第二のシェーディング補正データを作成する第二の補正データ生成手段と、該第二の補正データを前記第一の補正データと置き換えることを特徴とする請求項1記載の撮像装置。   The correction data correction means generates second shading correction data from a second area different from the first area in the first image data obtained in the first imaging mode. The imaging apparatus according to claim 1, wherein the second correction data is replaced with the first correction data. 前記補正データ修正手段は、前記補正データ判定手段により第一の補正データが不適切であると判定された場合に、前記第一の撮像モードにより再度第一の画像データを撮り直し、前記第一の補正データ生成手段は改めて第一の画像データから、第一の補正データを生成しなおすことを特徴とする請求項1記載の撮像装置。   The correction data correction means re-takes the first image data again in the first imaging mode when the correction data determination means determines that the first correction data is inappropriate. The imaging apparatus according to claim 1, wherein the correction data generation unit regenerates the first correction data from the first image data. 前記補正データ生成手段は、該撮像装置生産工程において予め補正データを生成しておくことを特徴とする、請求項1記載の撮像装置。   The imaging apparatus according to claim 1, wherein the correction data generation unit generates correction data in advance in the imaging apparatus production process. 前記補正データ生成手段は、該撮像装置の電源投入時に補正データを生成することを特徴とする、請求項1記載の撮像装置。   The imaging apparatus according to claim 1, wherein the correction data generation unit generates correction data when the imaging apparatus is powered on. 前記補正データ生成手段は、該撮像装置の各種撮像条件が設定もしくは変更された時に補正データを生成することを特徴とする、請求項1記載の撮像装置。   The imaging apparatus according to claim 1, wherein the correction data generation unit generates correction data when various imaging conditions of the imaging apparatus are set or changed. 前記補正データ生成手段は、該撮像装置による撮像の直前に補正データを生成することを特徴とする、請求項1記載の撮像装置。   The imaging apparatus according to claim 1, wherein the correction data generation unit generates correction data immediately before imaging by the imaging apparatus.
JP2004290235A 2004-10-01 2004-10-01 Imaging apparatus Withdrawn JP2006108878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004290235A JP2006108878A (en) 2004-10-01 2004-10-01 Imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004290235A JP2006108878A (en) 2004-10-01 2004-10-01 Imaging apparatus

Publications (1)

Publication Number Publication Date
JP2006108878A true JP2006108878A (en) 2006-04-20

Family

ID=36378113

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004290235A Withdrawn JP2006108878A (en) 2004-10-01 2004-10-01 Imaging apparatus

Country Status (1)

Country Link
JP (1) JP2006108878A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009232026A (en) * 2008-03-21 2009-10-08 Nikon Corp Electronic camera
JP2010056868A (en) * 2008-08-28 2010-03-11 Canon Inc Imaging device and method for controlling the imaging device
JP2011091508A (en) * 2009-10-20 2011-05-06 Hoya Corp Imaging apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009232026A (en) * 2008-03-21 2009-10-08 Nikon Corp Electronic camera
JP2010056868A (en) * 2008-08-28 2010-03-11 Canon Inc Imaging device and method for controlling the imaging device
JP2011091508A (en) * 2009-10-20 2011-05-06 Hoya Corp Imaging apparatus

Similar Documents

Publication Publication Date Title
JP4378341B2 (en) Imaging apparatus and correction method
JP2004112422A (en) Imaging apparatus
JP2007174124A (en) Imaging apparatus and correction method
JP4532819B2 (en) Imaging device
JP2009086601A (en) Camera
US20050018253A1 (en) Image pickup apparatus for correcting image deterioration due to fixed pattern noise, and image pickup method
JP4761570B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
US20040032490A1 (en) Image sensing apparatus, image sensing method, program, and storage medium
JP4027340B2 (en) Imaging apparatus and imaging method
JP4819479B2 (en) Imaging apparatus and image data correction method
JP3605084B2 (en) Image data correction device, image processing device, image data correction method, program, and storage medium
JP2003333434A (en) Device and method for picking-up image, program, and recording medium
JP4750616B2 (en) Imaging apparatus and control method thereof
JP4393177B2 (en) Imaging apparatus and imaging method
JP2005292740A (en) Electronic camera
JP4411053B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, CONTROL PROGRAM, AND STORAGE MEDIUM
JP3703436B2 (en) Image processing apparatus, image processing method, and program
JP2006270426A (en) Imaging apparatus, its control method, and computer program
JP2006109162A (en) Imaging apparatus, imaging method, program, and storage medium
JP2006148794A (en) Imaging apparatus, correction processing method, correction processing program and storage medium
JP2005333620A (en) Image processing apparatus and image processing method
JP2006108878A (en) Imaging apparatus
JP2005057691A (en) Imaging apparatus and method
JP2005051697A (en) Imaging apparatus
JP5967897B2 (en) Imaging apparatus, control method therefor, and program

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20071204