JP2008118442A - Imaging apparatus and imaging method - Google Patents

Imaging apparatus and imaging method Download PDF

Info

Publication number
JP2008118442A
JP2008118442A JP2006300344A JP2006300344A JP2008118442A JP 2008118442 A JP2008118442 A JP 2008118442A JP 2006300344 A JP2006300344 A JP 2006300344A JP 2006300344 A JP2006300344 A JP 2006300344A JP 2008118442 A JP2008118442 A JP 2008118442A
Authority
JP
Japan
Prior art keywords
lens
image
covariance
imaging
predetermined
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.)
Granted
Application number
JP2006300344A
Other languages
Japanese (ja)
Other versions
JP4886473B2 (en
Inventor
Kimihiro Irie
公祐 入江
Kenkichi Hayashi
健吉 林
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.)
Fujifilm Corp
Original Assignee
Fujifilm Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2006300344A priority Critical patent/JP4886473B2/en
Publication of JP2008118442A publication Critical patent/JP2008118442A/en
Application granted granted Critical
Publication of JP4886473B2 publication Critical patent/JP4886473B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an imaging apparatus capable of performing imaging in a highly accurately focused state, and to provide an imaging method performed by the imaging apparatus. <P>SOLUTION: The imaging apparatus includes: a photographing lens 11 for transmitting subject light and forming an image by the action of a focus lens 22; a CCD 24 for generating an image signal which expresses colors of subject light imaged by transmitting the photographing lens 11 by the combination of a plurality of signal components corresponding to the plurality of prescribed colors, respectively, concerning the respective pixels so as to express an image composed of the plurality of pixels; a covariance calculation circuit 37 for calculating covariance using the two signal components concerning the plurality of pixels constituting the image; and an AF detecting circuit 38 for moving the focus lens 22 in a covariance increase direction along the optical axis of the photographing lens 11. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、被写体像を撮像する撮像装置、および、そのような撮像装置が実行する撮像方法に関する。   The present invention relates to an imaging apparatus that captures a subject image and an imaging method that is performed by such an imaging apparatus.

従来、被写体光をCCD撮像素子(以下、CCDと称する)で受光して撮像する撮像装置が広範に用いられている。このような撮像装置は、被写体光を結像させる光学系にフォーカスレンズが備えられており、撮像の際には、このフォーカスレンズを合焦位置まで自動的に動かすオートフォーカス機能を有しているものが多い。   2. Description of the Related Art Conventionally, imaging devices that receive subject light with a CCD imaging device (hereinafter referred to as a CCD) and image it have been widely used. Such an image pickup apparatus is provided with a focus lens in an optical system that forms an image of subject light, and has an autofocus function that automatically moves the focus lens to a focus position during image pickup. There are many things.

CCDを備えた撮像装置では、光学系によって結像された被写体光が受光され、その被写体光の結像像を表現した画像信号が撮像によって生成されるが、以下では、被写体光の結像像を被写体像と呼び、撮像で得られる画像信号が表す画像を、この被写体像と区別して撮像画像と呼ぶ。撮像画像を表わす画像信号は、撮像画像を構成する各画素の輝度を表す画素値からなる。このとき、フォーカスレンズが合焦位置から離れており被写体像がぼけている場合には、この被写体像の輝度が全体的に均された状態になるために、撮像画像における多くの画素の画素値が平均値に近いので画素値の分散が小さくなる。一方、フォーカスレンズが合焦位置に近く鮮明な被写体像が結像されている場合には、この被写体像中には被写体に応じて様々な輝度が分布することになり、撮像画像における画素値の分散が大きくなる。このように、撮像画像における画素値の分散は、フォーカスレンズの合焦状態を判断するためのパラメータとして有効に利用できることから、この分散が最大値となる位置までフォーカスレンズを動かすことで、このフォーカスレンズを合焦位置まで自動的に動かす技術が提案されている(例えば、特許文献1参照。)。   In an imaging apparatus equipped with a CCD, subject light imaged by an optical system is received, and an image signal representing an image of the subject light is generated by imaging. Is called a subject image, and an image represented by an image signal obtained by imaging is referred to as a captured image in distinction from the subject image. An image signal representing a captured image is composed of pixel values representing the luminance of each pixel constituting the captured image. At this time, if the focus lens is away from the in-focus position and the subject image is blurred, the brightness of the subject image is generally uniformed, so the pixel values of many pixels in the captured image Is close to the average value, the dispersion of pixel values is reduced. On the other hand, when the focus lens is close to the in-focus position and a clear subject image is formed, various luminances are distributed in the subject image according to the subject, and the pixel value of the captured image is Dispersion increases. As described above, the dispersion of the pixel values in the captured image can be effectively used as a parameter for determining the focus state of the focus lens. Therefore, by moving the focus lens to a position where the dispersion becomes the maximum value, A technique for automatically moving the lens to the in-focus position has been proposed (for example, see Patent Document 1).

ここで、撮像で得られる画像信号にはランダムノイズが含まれることがあり、画素値がばらついてしまって、合焦位置でもないのに分散が大きくなり、その結果、フォーカスレンズが合焦位置から離れているにも係わらず誤って合焦状態にあると検出してしまうことがある。そこで、このようなランダムノイズの、分散に対する寄与分を算出して、その算出した寄与分を減じた分散に基づいてフォーカスレンズを動かす技術が提案されている(例えば、特許文献2参照。)。
特開平3−50513号公報 特開2003−501192号公報
Here, random noise may be included in the image signal obtained by imaging, and the pixel value varies, resulting in a large variance even though it is not the in-focus position. As a result, the focus lens is moved from the in-focus position. There is a case where it is erroneously detected that it is in a focused state even though it is away. Therefore, a technique has been proposed in which the contribution of such random noise to the dispersion is calculated and the focus lens is moved based on the dispersion obtained by subtracting the calculated contribution (for example, see Patent Document 2).
Japanese Patent Laid-Open No. 3-50513 JP 2003-501192 A

ところで、上記のCCDは微小な受光部分が2次元的に配列されたものであるが、これらの受光部分の中には、製造時から損傷しているいわゆる点欠陥が存在していることが知られている。このような点欠陥の存在は、点欠陥での受光で得られた画素値が他の正常な受光部分での受光で得られた画素値とは大きく異なった異常値となることから、分散の増大を招き誤った合焦状態が検出される原因になる。このような点欠陥に起因する画素値のばらつきは、ランダムノイズに起因する一様なばらつきとは異なるため、上記の特許文献2に示されている技術では、このような点欠陥に起因する合焦状態の誤検出を防ぐことは困難である。   By the way, the above-mentioned CCD has a small light receiving portion arranged two-dimensionally, and it is known that there are so-called point defects that are damaged from the time of manufacture in these light receiving portions. It has been. The presence of such a point defect is because the pixel value obtained by light reception at the point defect becomes an abnormal value that is significantly different from the pixel value obtained by light reception at other normal light receiving portions. This causes an increase and causes an erroneous focus state to be detected. Since the variation in pixel values caused by such point defects is different from the uniform variation caused by random noise, the technique disclosed in Patent Document 2 described above does not match the results caused by such point defects. It is difficult to prevent erroneous detection of the focus state.

本発明は、上記事情に鑑み、高精度の合焦状態で撮像することができる撮像装置、および、そのような撮像装置が実行する撮像方法を提供することを目的とする。   In view of the above circumstances, an object of the present invention is to provide an imaging device that can capture an image in a highly accurate in-focus state, and an imaging method executed by such an imaging device.

上記目的を達成する本発明の撮像装置は、被写体光を通過させ、1つ以上のレンズの作用で結像させる光学系と、
上記光学系を通過して結像された被写体光の色を、複数の画素それぞれについて、所定の複数色それぞれに対応する複数の信号成分の組合せで表現した、その複数の画素からなる画像を表わす画像信号を生成する撮像部と、
上記撮像部で生成される画像信号が表す画像を構成する複数の画素について、上記複数の信号成分のうちの所定の2つの信号成分を用いた共分散を算出する共分散算出部と、
上記レンズを、上記光学系の光軸に沿って、上記共分散が増加する方向に移動させるレンズ移動部とを備えたことを特徴とする。
An imaging apparatus of the present invention that achieves the above object includes an optical system that allows subject light to pass through and forms an image by the action of one or more lenses,
Represents an image composed of a plurality of pixels in which the color of the subject light imaged through the optical system is represented by a combination of a plurality of signal components corresponding to each of a plurality of predetermined colors for each of the plurality of pixels. An imaging unit for generating an image signal;
A covariance calculating unit that calculates covariance using a predetermined two signal components of the plurality of signal components for a plurality of pixels constituting an image represented by an image signal generated by the imaging unit;
And a lens moving unit that moves the lens in a direction in which the covariance increases along the optical axis of the optical system.

本発明の撮像装置によれば、上記レンズが2つの信号成分についての共分散が増加する方向に動かされる。この共分散は、基本的に被写体光の結像像(被写体像)が鮮明であるほど大きな値となるため、上記レンズは、このように動かされることで合焦位置に近づくこととなる。この共分散は、2つのうちどちらか一方の信号成分のばらつきだけが増えても変化せず、両方の信号成分のばらつきが互いに同じように増えると増加する。ここで、画像信号に含まれるランダムノイズは、画像信号をなす信号成分間でほとんど相関がないので、共分散を用いることで、このランダムノイズの影響を回避することができる。また、微小な受光部分が2次元的に配列されてなるCCDの撮像素子における、製造時から損傷している受光部分であるいわゆる点欠陥の影響についても、この共分散を用いることで次のように回避することができる。上記画像信号を生成する方法としては、被写体像を例えばRGB3色に色分解し、3つのCCDそれぞれで各色の被写体像を受光することで画像信号を生成する方法があり、この方法では、1つの画素についてのRGB3色の信号成分の組合せは、3つのCCDの間で互いに対応する位置にある3つの受光部分の組によって生成される。また、被写体像を1つのCCDで受光する方法もあり、この方法では、CCDを構成する複数の受光素子を、互いに隣接し各々がRGB3色それぞれの色の信号成分を生成する3つの受光素子の組に分け、1つの画素についてのRGB3色の信号成分の組合せは、これら3つの受光素子の組によって生成される。いずれの方法でも、ある画素について、ある色の信号成分を生成する受光部分は、他の色の信号成分を生成する受光部分とは物理的に異なっており、それらの受光部分の両方が点欠陥である確立は低い。この結果、点欠陥による信号成分の変動は、信号成分間でほとんど相関がないので、この点欠陥の影響についても、共分散を用いることで回避することができる。本発明の撮像装置によれば、この共分散に基づいて、上記レンズが合焦位置に近づけられることから、ランダムノイズや点欠陥の影響をほとんど受けずに高精度の合焦状態で撮像することができる。   According to the imaging apparatus of the present invention, the lens is moved in the direction in which the covariance for the two signal components increases. Since the covariance basically becomes larger as the image of the subject light (subject image) becomes clearer, the lens moves closer to the in-focus position by being moved in this way. This covariance does not change even if the variation of only one of the two signal components increases, and increases when the variation of both signal components increases in the same way. Here, since the random noise included in the image signal has almost no correlation between the signal components constituting the image signal, the influence of the random noise can be avoided by using covariance. The influence of so-called point defects, which are light-receiving portions damaged from the time of manufacture, in a CCD image sensor in which minute light-receiving portions are two-dimensionally arranged is also as follows by using this covariance. Can be avoided. As a method for generating the image signal, there is a method in which a subject image is color-separated into, for example, RGB three colors, and each of the three CCDs receives each color of the subject image to generate an image signal. A combination of RGB three-color signal components for a pixel is generated by a set of three light receiving portions located at positions corresponding to each other among the three CCDs. There is also a method of receiving a subject image with a single CCD. In this method, a plurality of light receiving elements constituting the CCD are arranged adjacent to each other by three light receiving elements that generate signal components of three colors of RGB. Dividing into sets, a combination of RGB three-color signal components for one pixel is generated by the set of these three light receiving elements. In any method, the light receiving part that generates a signal component of one color for a certain pixel is physically different from the light receiving part that generates a signal component of another color, and both of these light receiving parts are point defects. The establishment is low. As a result, the fluctuation of the signal component due to the point defect has almost no correlation between the signal components. Therefore, the influence of this point defect can also be avoided by using the covariance. According to the imaging apparatus of the present invention, since the lens can be brought close to the in-focus position based on this covariance, imaging can be performed in a highly accurate in-focus state with almost no influence of random noise or point defects. Can do.

ここで、本発明の撮像装置において、「この撮像装置が撮像するときの感度を設定する感度設定部と、
上記複数の画素について、上記複数種類の信号成分のうちの所定の1つの信号成分を用いた分散を算出する分散算出部とを備え、
上記レンズ移動部が、上記レンズを、上記光学系の光軸に沿って、上記共分散が増加する方向に移動させる第1モードと、そのレンズを、その光学系の光軸に沿って、上記分散が増加する方向に移動させる第2モードとを有し、上記感度設定部で設定された感度が所定感度を超えている場合にそのレンズを上記第1モードで移動させ、その感度設定部で取得された感度が所定感度以下である場合にそのレンズを上記第2モードで移動させるものであることを特徴とする」という形態は好ましい形態である。
Here, in the imaging device of the present invention, “a sensitivity setting unit that sets sensitivity when the imaging device captures an image;
A dispersion calculating unit for calculating a dispersion using a predetermined signal component of the plurality of types of signal components for the plurality of pixels;
The lens moving unit moves the lens along the optical axis of the optical system in a direction in which the covariance increases, and the lens moves along the optical axis of the optical system. A second mode for moving in the direction in which the dispersion increases, and when the sensitivity set by the sensitivity setting unit exceeds a predetermined sensitivity, the lens is moved in the first mode, and the sensitivity setting unit The form of “characterized by moving the lens in the second mode when the acquired sensitivity is equal to or lower than the predetermined sensitivity” is a preferable form.

上記共分散を求めるための演算は2つの信号成分についての演算となるため、1つの信号成分についての演算で足りる分散を求めるための演算に比べると手間や時間を要する。上記の好ましい形態の撮像装置によれば、画像信号中のノイズレベルが高く、分散による合焦状態の検出が困難となる可能性が高い高感度での撮像時にのみ共分散が使われるので効率的である。   Since the calculation for obtaining the covariance is an operation for two signal components, it takes time and effort compared to the calculation for obtaining a variance sufficient for the calculation for one signal component. According to the imaging apparatus of the above preferred form, since the noise level in the image signal is high and the detection of the in-focus state due to dispersion is likely to be difficult, the covariance is used only when imaging with high sensitivity. It is.

また、本発明の撮像装置において、「上記撮像部は、交換可能な撮像素子が、その撮像素子が有する点欠陥の個数が記憶されたメモリと共に搭載されて、その撮像素子を使って上記画像信号を生成するものであり、
上記メモリに記憶されている上記点欠陥の数を取得する点欠陥数取得部と
上記複数の画素について、上記複数種類の信号成分のうちの所定の1つの信号成分を用いた分散を算出する分散算出部とを備え、
上記レンズ移動部が、上記レンズを、上記光学系の光軸に沿って、上記共分散が増加する方向に移動させる第1モードと、そのレンズを、その光学系の光軸に沿って、上記分散が増加する方向に移動させる第2モードとを有し、上記点欠陥数取得部で取得された点欠陥の数が所定数を超えている場合にそのレンズを上記第1モードで移動させ、その点欠陥数取得部で取得された点欠陥の数が所定数以下である場合にそのレンズを上記第2モードで移動させるものである」という形態も好ましい形態である。
In the image pickup apparatus of the present invention, “the image pickup unit includes a replaceable image pickup device mounted with a memory in which the number of point defects of the image pickup device is stored, and the image signal using the image pickup device. Which generates
A point defect number acquisition unit that acquires the number of point defects stored in the memory, and a variance that calculates a variance using a predetermined signal component of the plurality of types of signal components for the plurality of pixels A calculation unit,
The lens moving unit moves the lens along the optical axis of the optical system in a direction in which the covariance increases, and the lens moves along the optical axis of the optical system. A second mode for moving in a direction in which the dispersion increases, and when the number of point defects acquired by the point defect number acquisition unit exceeds a predetermined number, the lens is moved in the first mode, A form in which the lens is moved in the second mode when the number of point defects acquired by the point defect number acquisition unit is a predetermined number or less is also a preferable mode.

この好ましい形態の撮像装置によれば、搭載された撮像素子に点欠陥が多く含まれており、分散による合焦状態の検出が困難となる可能性が高いときにのみ共分散が使われるので効率的である。   According to the imaging device of this preferred form, the mounted image sensor includes many point defects, and the covariance is used only when there is a high possibility that it is difficult to detect the focused state by dispersion. Is.

また、本発明の撮像装置において、「上記撮像部の温度を直接あるいは間接に検出する温度検出部と、
上記複数の画素について、上記複数種類の信号成分のうちの所定の1つの信号成分を用いた分散を算出する分散算出部とを備え、
上記レンズ移動部が、上記レンズを、上記光学系の光軸に沿って、上記共分散が増加する方向に移動させる第1モードと、そのレンズを、その光学系の光軸に沿って、上記分散が増加する方向に移動させる第2モードとを有し、上記温度検出部で検出された温度が所定温度を超えている場合にそのレンズを上記第1モードで移動させ、その温度検出部で検出された温度が所定温度以下である場合にそのレンズを上記第2モードで移動させるものである」という形態も好ましい形態である。
In the imaging apparatus of the present invention, “a temperature detection unit that directly or indirectly detects the temperature of the imaging unit;
A dispersion calculating unit for calculating a dispersion using a predetermined signal component of the plurality of types of signal components for the plurality of pixels;
The lens moving unit moves the lens along the optical axis of the optical system in a direction in which the covariance increases, and the lens moves along the optical axis of the optical system. A second mode for moving in the direction in which the dispersion increases, and when the temperature detected by the temperature detector exceeds a predetermined temperature, the lens is moved in the first mode, and the temperature detector A mode in which the lens is moved in the second mode when the detected temperature is equal to or lower than a predetermined temperature is also a preferable mode.

例えばCCD等の撮像素子における点欠陥は、周辺温度が高まるにつれ顕在化し、撮像画像に点状のキズ等が現れやすくなることが知られている。この好ましい形態の撮像装置によれば、撮像素子の温度が高く、その結果、撮像画像に点状のキズ等が現れやすく、分散がこのキズの影響を受けることにより合焦状態の検出が困難となる可能性が高いときにのみ共分散が使われるので効率的である。   For example, it is known that a point defect in an image sensor such as a CCD becomes apparent as the ambient temperature increases, and a spot-like scratch or the like is likely to appear in a captured image. According to this preferable form of the imaging apparatus, the temperature of the imaging device is high, and as a result, spot-like scratches or the like are likely to appear in the captured image, and it is difficult to detect the in-focus state because the dispersion is affected by the scratches. It is efficient because covariance is used only when there is a high probability that

また、上記目的を達成する本発明の撮像方法は、被写体光の画像を撮像する撮像装置が実行する撮像方法において、
被写体光を通過させ、1つ以上のレンズの作用で結像させる光学系を通過して結像された被写体光の色を、複数の画素それぞれについて、所定の複数色それぞれに対応する複数の信号成分の組合せで表現した、その複数の画素からなる画像を表わす画像信号を生成する撮像過程と、
上記撮像過程で生成される画像信号が表す画像を構成する複数の画素について、上記複数の信号成分のうちの所定の2つの信号成分を用いた共分散を算出する共分散算出過程と、
上記レンズを、上記光学系の光軸に沿って、上記共分散が増加する方向に移動させるレンズ移動過程とを有したことを特徴とする。
An imaging method of the present invention that achieves the above object is an imaging method executed by an imaging device that captures an image of subject light.
A plurality of signals corresponding to a plurality of predetermined colors for each of a plurality of pixels, and the colors of the subject light formed through an optical system that passes through the subject light and forms an image by the action of one or more lenses. An imaging process for generating an image signal representing an image composed of a plurality of pixels expressed by a combination of components;
A covariance calculation process for calculating covariance using a predetermined two signal components of the plurality of signal components for a plurality of pixels constituting an image represented by the image signal generated in the imaging process;
And a lens moving process for moving the lens in the direction in which the covariance increases along the optical axis of the optical system.

これら本発明の撮像方法によれば、高精度の合焦状態で撮像することができる。   According to these imaging methods of the present invention, it is possible to take an image in a highly accurate in-focus state.

尚、本発明の撮像方法については、ここではその基本形態のみを示すに止めるが、これは単に重複を避けるためであり、本発明の撮像方法には、上記の基本形態のみではなく、前述した撮像装置の好ましい形態に対応する形態が含まれる。   Note that the imaging method of the present invention is only shown here in its basic form, but this is merely for avoiding duplication, and the imaging method of the present invention is not limited to the basic form described above but has been described above. The form corresponding to the preferable form of an imaging device is included.

以上、説明したように、本発明によれば、高精度の合焦状態で撮像することができる。   As described above, according to the present invention, it is possible to capture an image in a highly accurate in-focus state.

以下図面を参照して本発明の第1から第4までの各実施形態を説明する。   Hereinafter, first to fourth embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の第1から第4までの各実施形態である各デジタルカメラに共通の外観斜視図である。   FIG. 1 is an external perspective view common to the digital cameras according to the first to fourth embodiments of the present invention.

図1に示すデジタルカメラの前面中央部には、フォーカスレンズを含む撮像レンズ11を内部に備えたズーム鏡胴12が備えられている。また、このデジタルカメラの前面上部には、撮像に同期してフラッシュを発するフラッシュ発光装置13と、光学式ファインダ対物窓14とが備えられている。また、このデジタルカメラの前面左側には、スライド式の電源スイッチ15が備えられている。さらに、このデジタルカメラの上面には、レリーズボタン16が備えられている。   A zoom lens barrel 12 having an imaging lens 11 including a focus lens therein is provided at the center of the front surface of the digital camera shown in FIG. In addition, a flash light emitting device 13 that emits a flash in synchronization with imaging and an optical viewfinder objective window 14 are provided at the upper front of the digital camera. A slide-type power switch 15 is provided on the left side of the front surface of the digital camera. Further, a release button 16 is provided on the upper surface of the digital camera.

以下、本発明の第1実施形態について説明する。   The first embodiment of the present invention will be described below.

図2は、本発明の第1実施形態であるデジタルカメラの回路構成を示すブロック図である。   FIG. 2 is a block diagram showing a circuit configuration of the digital camera according to the first embodiment of the present invention.

図2示すデジタルカメラ1には、前述した撮像レンズ11を構成するズームレンズ21およびフォーカスレンズ22と、絞り径を多段階に調節可能なアイリス23と、ズームレンズ21とフォーカスレンズ22を経由して結像された被写体像を受光してアナログ信号を生成するCCD撮像素子(以下、CCDと称する)24が備えられている。ここで、このCCD24は、微小な受光部分が2次元的に配列されたものであり、互いに隣接する3個の受光部分が1画素に対応すると共に、それら3個の受光部分それぞれが、不図示のフィルタを透過したR(レッド)、G(グリーン)、B(ブルー)3色それぞれの被写体光を受光する。そして、RGB各色の光を受光する各受光部分において、各色のアナログの信号成分が生成されて、各画素の色をRGB3色の信号成分の組合せで表現するアナログ信号が生成される。   In the digital camera 1 shown in FIG. 2, the zoom lens 21 and the focus lens 22 that constitute the imaging lens 11, the iris 23 whose aperture diameter can be adjusted in multiple stages, and the zoom lens 21 and the focus lens 22 are used. A CCD image sensor (hereinafter referred to as a CCD) 24 that receives the formed subject image and generates an analog signal is provided. Here, the CCD 24 has a minute light receiving portion arranged two-dimensionally. Three light receiving portions adjacent to each other correspond to one pixel, and each of the three light receiving portions is not shown. Each of R (red), G (green), and B (blue) subject light transmitted through the filter is received. Then, in each light receiving portion that receives light of each RGB color, an analog signal component of each color is generated, and an analog signal that expresses the color of each pixel by a combination of RGB three color signal components is generated.

また、このデジタルカメラ1には、CCD24での受光や画像信号の読出し等についての制御を行う読出回路25が備えられている。この読出回路25は、CCD24での受光タイミングや画像信号の読出しタイミング等を制御するタイミングジェネレータと、CCD24から読み出したアナログ信号をこのデジタルカメラ1の感度に応じて増幅する増幅回路と、その増幅済みのアナログ信号をデジタルの画像信号に変換するA/D変換回路とで構成されている。また、このデジタルカメラ1には、読出回路25からのデジタルの画像信号をバスライン50に伝達する画像入力コントローラ26と、バスライン50を介して入力されたデジタルの画像信号を輝度(Y)と色(C)とで表わされるYC信号に変換する画像信号処理回路27とが備えられている。   In addition, the digital camera 1 is provided with a reading circuit 25 that controls light reception by the CCD 24, reading of an image signal, and the like. The readout circuit 25 includes a timing generator that controls the light reception timing of the CCD 24 and the readout timing of the image signal, an amplification circuit that amplifies the analog signal read from the CCD 24 in accordance with the sensitivity of the digital camera 1, and the amplified circuit. And an A / D conversion circuit for converting the analog signal into a digital image signal. The digital camera 1 also includes an image input controller 26 that transmits a digital image signal from the readout circuit 25 to the bus line 50, and the digital image signal input via the bus line 50 as luminance (Y). An image signal processing circuit 27 for converting into a YC signal represented by color (C) is provided.

さらに、このデジタルカメラ1には、バスライン50を介して入力されたYC信号を圧縮処理する圧縮処理回路28と、バスライン50を介して入力されたYC信号をNTSC(National TV Standards Committee)信号に変換するビデオエンコーダ29が備えられている。ビデオエンコーダ29から出力されたNTSC信号は、液晶ディスプレイ(以下、LCDと称する)30に供給されてそのLCD30に画像が表示される。   Further, the digital camera 1 includes a compression processing circuit 28 that compresses the YC signal input via the bus line 50, and an NTSC (National TV Standards Committee) signal that converts the YC signal input via the bus line 50. A video encoder 29 is provided for converting into a video. The NTSC signal output from the video encoder 29 is supplied to a liquid crystal display (hereinafter referred to as LCD) 30 and an image is displayed on the LCD 30.

また、デジタルカメラ1には、このデジタルカメラ1全体の制御を行うCPU31と、ズームレンズ21を駆動するモータドライバ32と、アイリス23を駆動するモータドライバ33と、フォーカスレンズ22を駆動するモータドライバ34と、図1にも示すレリーズボタン16が備えられている。   The digital camera 1 includes a CPU 31 that controls the entire digital camera 1, a motor driver 32 that drives the zoom lens 21, a motor driver 33 that drives the iris 23, and a motor driver 34 that drives the focus lens 22. A release button 16 shown in FIG. 1 is also provided.

さらに、このデジタルカメラ1には、各種時間を計測するためのタイマ36、RGB3色の信号成分で構成されるデジタルの画像信号に基づいて、R色の信号成分とG色の信号成分とについての後述の共分散を算出する共分散演算回路37、その算出された共分散に基づいて合焦状態を検出することで、フォーカスレンズ22を合焦位置まで動かすAF検出回路38、デジタルの画像信号に基づいて被写体像の明るさである露出量(以下、EV値と称する)やホワイトバランスを検出するAE&AWB検出回路39、そのAE&AWB検出回路39で検出されたEV値に基づいて露出制御を行う露出制御回路40、このデジタルカメラ1の制御に使われる各種制御プログラムやデジタルの画像信号が一時的に記憶されるメモリ(SDRAM)41、圧縮処理回路28で圧縮された後の画像信号を可搬型記録媒体である記録メディア100に記録するためのメディアコントローラ42が備えられている。   In addition, the digital camera 1 includes a timer 36 for measuring various times, a digital image signal composed of RGB three color signal components, and an R color signal component and a G color signal component. A covariance calculation circuit 37 that calculates covariance, which will be described later, an AF detection circuit 38 that moves the focus lens 22 to the in-focus position by detecting a focus state based on the calculated covariance, and a digital image signal. AE & AWB detection circuit 39 that detects the exposure amount (hereinafter referred to as EV value) and white balance based on the brightness of the subject image based on the exposure value, and exposure control that performs exposure control based on the EV value detected by the AE & AWB detection circuit 39 Circuit 40, a memory (SDRAM) for temporarily storing various control programs and digital image signals used for controlling the digital camera 1 1, an image signal after being compressed by the compression processing circuit 28 media controller 42 for recording on the recording medium 100 is a portable recording medium are provided.

さらに、このデジタルカメラ1には、レリーズボタン16の押下に応じて撮像を行う撮像モードと記録メディア100に記録されている撮像済みの画像を記録メディア100から読み出してLCD30に表示する再生モードとの切り替えや、ズームレンズ21の繰出しの指示等を行うための各種スイッチからなるスイッチ群43、図1にも示す電源スイッチ15、その電源スイッチ15のオン/オフにより制御され各部に電力を供給する電源回路44、その電源回路44へ電力を供給する電力源としてのバッテリ45、図1にも示すフラッシュ発光装置13が備えられている。   Further, the digital camera 1 has an imaging mode for performing imaging in response to pressing of the release button 16 and a playback mode for reading the captured image recorded on the recording medium 100 from the recording medium 100 and displaying it on the LCD 30. A switch group 43 composed of various switches for switching and instructing the extension of the zoom lens 21, the power switch 15 shown in FIG. 1, and a power source that is controlled by turning on / off the power switch 15 and supplies power to each unit A circuit 44, a battery 45 as a power source for supplying power to the power supply circuit 44, and the flash light emitting device 13 also shown in FIG.

ここで、撮像レンズ11は、本発明にいう光学系の一例に相当し、フォーカスレンズ22は、本発明にいうレンズの一例に相当する。また、CCD24と読出回路25とを合わせたものは、本発明にいう撮像部の一例に相当する。さらに、共分散演算回路37は、本発明にいう共分散算出部の一例に相当し、AF検出回路38と、フォーカスレンズ22を駆動するモータドライバ34とを合わせたものは、本発明にいうレンズ移動部の一例に相当する。   Here, the imaging lens 11 corresponds to an example of an optical system according to the present invention, and the focus lens 22 corresponds to an example of a lens according to the present invention. Further, the combination of the CCD 24 and the readout circuit 25 corresponds to an example of an imaging unit according to the present invention. Further, the covariance calculation circuit 37 corresponds to an example of a covariance calculation unit according to the present invention, and the combination of the AF detection circuit 38 and the motor driver 34 for driving the focus lens 22 is a lens according to the present invention. This corresponds to an example of a moving unit.

次に、このデジタルカメラ1の一般的な撮像シーケンスを説明する。   Next, a general imaging sequence of the digital camera 1 will be described.

図3は、図2に示すデジタルカメラ1で実行される撮像シーケンスを表すフローチャートである。   FIG. 3 is a flowchart showing an imaging sequence executed by the digital camera 1 shown in FIG.

この図3に示すフローチャートが示す処理は、本発明の撮像方法の一実施形態に相当する。   The process shown in the flowchart shown in FIG. 3 corresponds to an embodiment of the imaging method of the present invention.

電源がオンされると図3に示すフローチャートが示す処理がスタートし、まず、図1に示すズーム鏡胴12が繰出されるとともにLCD30がオンとなり、表示用の動画であるスルー画像がLCD30上に表示される(ステップS101)。その後、レリーズボタン16が半押しされるまで待機状態となり(ステップS102)、レリーズボタン16が半押しされると(ステップS102におけるYes判定)、まず、フォーカスレンズ22を合焦位置まで動かすフォーカス制御が実行される(ステップS110)。このフォーカス制御(ステップS110)については、後で詳細に説明する。   When the power is turned on, the process shown in the flowchart shown in FIG. 3 starts. First, the zoom lens barrel 12 shown in FIG. 1 is extended and the LCD 30 is turned on, and a through image that is a moving image for display is displayed on the LCD 30. It is displayed (step S101). Thereafter, the state is in a standby state until the release button 16 is half-pressed (step S102). When the release button 16 is half-pressed (Yes determination in step S102), first, focus control for moving the focus lens 22 to the in-focus position is performed. It is executed (step S110). This focus control (step S110) will be described in detail later.

フォーカス制御(ステップS110)が終了すると、フォーカスレンズ22が合焦位置に合わされた状態での画像にLCD30上の表示が一時的に固定され、その画像に基づいて、被写体像の明るさである露出量(EV値)が検出され、その検出されたEV値に基づいて、実際の撮像の際にCCD24が被写体像を捉えるシャッタ秒時や、アイリス23の絞り径を表す絞り値等が決定され、それらのシャッタ秒時や絞り値等がその決定された値に設定されるという露出制御が露出制御回路40において実行される(ステップS103)。また、このステップS103の処理では、実際の撮像の際にフラッシュを発光することの可否の決定も行われる。   When the focus control (step S110) ends, the display on the LCD 30 is temporarily fixed to the image in a state where the focus lens 22 is in the in-focus position, and the exposure that is the brightness of the subject image is based on the image. The amount (EV value) is detected, and based on the detected EV value, the shutter time when the CCD 24 captures the subject image at the time of actual imaging, the aperture value indicating the aperture diameter of the iris 23, and the like are determined. Exposure control is executed in the exposure control circuit 40 such that the shutter time, aperture value, etc. are set to the determined values (step S103). In the process of step S103, it is also determined whether or not the flash can be emitted during actual imaging.

それらの処理が終了すると再びスルー画像がLCD30上に表示され、今度は、レリーズボタン16が全押しされるまで待機状態となる(ステップS104)。レリーズボタン16が全押しされると(ステップS104におけるYes判定)、全画素の読出しが、半押し時に設定されたシャッタ秒時、絞り値、および合焦位置等の条件下で実行され画像信号が生成される(ステップS105)。ここで、このステップS105の処理は、本発明にいう撮像過程の一例に相当する。   When these processes are completed, the through image is displayed again on the LCD 30, and this time, a standby state is entered until the release button 16 is fully pressed (step S104). When the release button 16 is fully pressed (Yes determination in step S104), all pixels are read out under conditions such as the shutter speed, the aperture value, and the in-focus position set when the shutter button is pressed halfway. It is generated (step S105). Here, the process of step S105 corresponds to an example of an imaging process according to the present invention.

その後、このステップS105の処理で生成された画像信号が表す画像がLCD30に表示されると共に、その画像信号が記録メディア100に記録され(ステップS106)、このフローチャートが表す撮像シーケンスが終了する。この処理の終了後には、LCD30に再びスルー画像が表示され、次の撮像が可能となる。   Thereafter, an image represented by the image signal generated in the process of step S105 is displayed on the LCD 30, and the image signal is recorded on the recording medium 100 (step S106), and the imaging sequence represented by this flowchart is completed. After this process is completed, the through image is displayed again on the LCD 30 and the next imaging is possible.

次に、図3に示すフォーカス制御(ステップS110)の詳細について説明する。   Next, details of the focus control (step S110) shown in FIG. 3 will be described.

図4は、フォーカス制御の流れを表すフローチャートである。   FIG. 4 is a flowchart showing the flow of focus control.

処理がスタートすると、まず、フォーカスレンズ22の位置が所定の初期位置に合わされる(ステップS111)。ここで、本実施形態のデジタルカメラ1では、フォーカスレンズ22を初期位置から限界位置まで段階的に動かすことが可能である。以下では、任意段階「k」のフォーカスレンズ22の位置を「F(k)」で表わし、さらに、初期位置に対応する段階を「A」、限界位置に対応する段階を「B」で表す。   When the process starts, first, the position of the focus lens 22 is adjusted to a predetermined initial position (step S111). Here, in the digital camera 1 of the present embodiment, the focus lens 22 can be moved stepwise from the initial position to the limit position. In the following, the position of the focus lens 22 at the arbitrary stage “k” is represented by “F (k)”, the stage corresponding to the initial position is represented by “A”, and the stage corresponding to the limit position is represented by “B”.

フォーカスレンズ22の位置F(k)が初期位置F(A)に合わされると、まず、その状態でのRGBの画像信号の取得が行われる(ステップS112)。このステップS112の処理も、本発明にいう撮像過程の一例に相当する。   When the position F (k) of the focus lens 22 is adjusted to the initial position F (A), RGB image signals in that state are first acquired (step S112). The processing in step S112 also corresponds to an example of an imaging process according to the present invention.

画像信号が取得されると、次に、その画像信号に対して、以下に説明するように、R色の信号成分とG色の信号成分とについての共分散が算出され、その算出された共分散が図2示すメモリ41内に一時的に格納される(ステップS113)。このステップS113の処理は、本発明にいう共分散算出過程の一例に相当する。   When the image signal is acquired, the covariance for the R color signal component and the G color signal component is calculated for the image signal, as will be described below, and the calculated covariance is calculated. The distribution is temporarily stored in the memory 41 shown in FIG. 2 (step S113). The processing in step S113 corresponds to an example of a covariance calculation process according to the present invention.

ここで、この共分散について説明する前に、従来、フォーカス制御用のパラメータとして使われることが多い分散について説明する。   Here, before describing the covariance, the dispersion that has been conventionally used as a parameter for focus control will be described.

例えば、RGB3色の信号成分のうち、画像信号が表す画像の中心部分のL×M=n画素のエリアについてのR色の信号成分の分散がフォーカス制御に使われる場合を想定する。   For example, it is assumed that the dispersion of the R color signal component for the area of L × M = n pixels in the central portion of the image represented by the image signal among the RGB three color signal components is used for focus control.

このエリア内の任意の画素に対応するR色の信号成分をR(i,j)、エリア内の全画素についてのR色の信号成分の平均値をRav、R色の信号成分についての分散をSrとすると、この分散は次の式で表わされる。   The R signal component corresponding to an arbitrary pixel in the area is R (i, j), the average value of the R signal component for all the pixels in the area is Rav, and the variance for the R signal component is distributed. Assuming Sr, this variance is expressed by the following equation.

Figure 2008118442
Figure 2008118442

この(1)式に示すように、この分散は、R色についての信号成分と平均値との差分の2乗の平均を算出したものである。従って、フォーカスレンズ22が合焦位置からずれて被写体像がぼけて輝度が全体的に均された状態になっていると、撮像画像における多くの画素の画素値が平均値に近くなるので分散が小さくなる。一方、フォーカスレンズが合焦位置に近く鮮明な被写体像が結像されている場合には、撮像画像中には被写体像の輝度に応じて様々な画素値が分布することになり分散が大きくなる。分散に基づくフォーカス制御では、このような分散が最大値となる位置を合焦位置として検出する。ところが、画像信号にノイズが多く生じている場合には、信号成分が平均値から大きくずれている画素の数も多く、その結果、分散は増加してしまう。また、R色の信号成分を生成する受光部分に点欠陥が生じている場合、その点欠陥に対応する画素では、信号成分が平均値から大きくずれることとなり、そのような点欠陥の数が増えると、分散も増加してしまう。このようなノイズや点欠陥に起因する分散の増加は、フォーカスレンズ22の位置とは無関係に生じるので、合焦位置の誤検出という不具合を引き起こす可能性が高い。   As shown in the equation (1), this variance is obtained by calculating the average of the square of the difference between the signal component and the average value for the R color. Accordingly, when the focus lens 22 is shifted from the in-focus position and the subject image is blurred and the luminance is generally uniform, the pixel values of many pixels in the captured image are close to the average value, and thus dispersion is achieved. Get smaller. On the other hand, when the focus lens is close to the in-focus position and a clear subject image is formed, various pixel values are distributed in the captured image according to the brightness of the subject image, resulting in a large variance. . In focus control based on dispersion, a position where such dispersion becomes the maximum value is detected as a focus position. However, when a lot of noise is generated in the image signal, the number of pixels whose signal components are greatly deviated from the average value is large, and as a result, the variance increases. Further, when a point defect occurs in the light receiving portion that generates the R color signal component, the signal component greatly deviates from the average value in the pixel corresponding to the point defect, and the number of such point defects increases. And dispersion will also increase. Such an increase in dispersion due to noise or point defects occurs regardless of the position of the focus lens 22, and therefore there is a high possibility of causing a problem of erroneous detection of the in-focus position.

このため、本実施形態では、以下に説明するように、ノイズや点欠陥の影響を受けにくいという性質、即ちノイズや点欠陥に対する強い耐性、を有する共分散がフォーカス制御用のパラメータとして使われる。   For this reason, in the present embodiment, as described below, a covariance having the property of being hardly affected by noise and point defects, that is, strong resistance to noise and point defects is used as a parameter for focus control.

本実施形態では、画像信号が表す画像の中心部分のL×M=n画素のエリアについて、R色の信号成分とG色の信号成分とについての共分散Srgが求められる。ここで、このエリア内の任意の画素に対応するR色の信号成分をR(i,j)、エリア内の全画素についてのR色の信号成分の平均値をRav、エリア内の任意の画素に対応するG色の信号成分をG(i,j)、エリア内の全画素についてのR色の信号成分の平均値をGav、R色の信号成分とG色の信号成分とについての共分散をSrgとすると、この共分散は次の式で表わされる。   In the present embodiment, the covariance Srg for the R color signal component and the G color signal component is obtained for an area of L × M = n pixels in the center portion of the image represented by the image signal. Here, R (i, j) is an R color signal component corresponding to an arbitrary pixel in the area, Rav is an average value of R signal components for all the pixels in the area, and an arbitrary pixel in the area. G (i, j) corresponding to G, the average value of R signal components for all pixels in the area is Gav, and the covariance between the R signal component and the G signal component Is Srg, this covariance is expressed by the following equation.

Figure 2008118442
Figure 2008118442

以下、この(2)式で表わされる共分散が有する、ノイズや点欠陥の影響を受けにくいという性質、即ち耐性について詳細に説明する。   Hereinafter, the property that the covariance represented by the equation (2) is less susceptible to noise and point defects, that is, resistance, will be described in detail.

この(2)式に示すように、共分散は、R色とG色とのそれぞれについての、各信号成分と平均値との差分の乗算結果の平均を算出したものである。ここで、各画素についての乗算結果は、R色の差分とG色の差分との双方が大きいと大きな値となり、そのような乗算結果が多いと共分散も大きな値となる。逆に、2つの差分のうちの一方が小さい場合には乗算結果は小さくなり共分散も小さな値となる。つまり、共分散は、各信号成分が互いに相関して平均値からずれているような場合には大きな値となり、一方の信号成分は平均値からずれているが他方の信号成分は平均値に近い値となっているというように互いに無相関な状態にあるときには小さな値となる。   As shown in the equation (2), the covariance is obtained by calculating the average of the multiplication results of the difference between each signal component and the average value for each of the R color and the G color. Here, the multiplication result for each pixel has a large value when both the R color difference and the G color difference are large, and the covariance also has a large value when there are many such multiplication results. Conversely, when one of the two differences is small, the multiplication result is small and the covariance is also a small value. That is, the covariance is large when the signal components are correlated with each other and deviate from the average value. One signal component deviates from the average value, but the other signal component is close to the average value. When the values are uncorrelated with each other, such as a value, the value is small.

ここで、画像信号におけるRGB3色それぞれの信号成分に含まれるノイズの多くは、RGB3色の信号成分間で互いに無相関に生じる。従って、各信号成分におけるノイズによる平均値からのずれも互いに無相関となることが多く、そのようなノイズによる共分散の増加分は小さなものとなる。つまり、共分散はノイズの影響をほとんど受けることがなく、ノイズに対して強い耐性を有していると言える。   Here, most of the noise contained in the signal components of each of the RGB three colors in the image signal occurs uncorrelated between the signal components of the three RGB colors. Therefore, the deviation from the average value due to noise in each signal component is often uncorrelated with each other, and the increase in covariance due to such noise is small. That is, the covariance is hardly affected by noise and can be said to have strong resistance to noise.

次に、共分散の点欠陥に対する耐性について、上記(2)式と共に以下に示す図5も参照しながら説明する。   Next, the resistance to covariance point defects will be described with reference to FIG.

図5は、分散と共分散それぞれが、点欠陥からうける影響を模式的に示す図である。   FIG. 5 is a diagram schematically showing the effects of dispersion and covariance from point defects.

この図5では、説明を簡単にするために、一次元的に配列された画素を想定している。   In FIG. 5, pixels are assumed to be one-dimensionally arranged in order to simplify the description.

図5のパート(a)には、一次元的な画素の配列において、R色の受光部分の点欠陥が、2箇所に局所的に集中して生じている場合に、ある被写体像が捉えられたときの各色の信号成分を示すグラフG1が記載されている。このグラフG1では、横軸に一次元的な座標が示され、縦軸に信号成分のレベルが示されている。この図5のパート(a)の例では、図中左側の局所部分C1にはR色の受光部分とG色の受光部分に、信号レベルを下げるような点欠陥が生じ、右側の局所部分C2にはR色の受光部分に信号レベルを上げるような点欠陥が生じている。また、R色の受光部分についての点欠陥は、右側の局所部分C2よりも左側の局所部分C1の方が多く生じており、信号成分の変動は左側の局所部分C1の方が大きい。さらに、この左側の局所部分C1では、点欠陥は主にR色の受光部分に生じており、G色の受光部分に生じている点欠陥は僅かである。その結果、この左側の局所部分C1では、信号成分の変動は、R色の方がG色よりも大きい。   Part (a) of FIG. 5 captures a certain subject image when point defects of the R light receiving portion are locally concentrated in two locations in a one-dimensional pixel array. The graph G1 which shows the signal component of each color at the time is described. In this graph G1, the horizontal axis indicates one-dimensional coordinates, and the vertical axis indicates the level of the signal component. In the example of part (a) of FIG. 5, a point defect that lowers the signal level occurs in the R light receiving portion and the G light receiving portion in the left local portion C1 in the drawing, and the right local portion C2 Has a point defect that raises the signal level in the R light receiving portion. Further, more point defects with respect to the light receiving portion of R color occur in the left local portion C1 than in the right local portion C2, and the fluctuation of the signal component is larger in the left local portion C1. Further, in the local portion C1 on the left side, point defects mainly occur in the R light receiving portion, and few point defects occur in the G light receiving portion. As a result, in the left local portion C1, the signal component varies more in the R color than in the G color.

図5のパート(b)には、パート(a)に示す一次元の微小エリアAr1を矢印D方向に動かしたときの、この微小エリアAr1内における分散と共分散との変化を示すグラフG2が記載されている。パート(a)のグラフG1において信号成分が座標に対して変化しない平坦部分では、パート(b)のグラフG2に示すように、信号成分は微小エリアAr1内における平均値と等しいため分散も共分散もともに「0」となる。また、パート(a)のグラフG1の中間部分C3では各色の信号成分は右下がりに変化しており、この中間部分C3では、信号成分は平均値に対して様々な値をとることとなるので分散にピークP2が生じ共分散にもピークP1が生じる。   Part (b) of FIG. 5 is a graph G2 showing a change between dispersion and covariance in the minute area Ar1 when the one-dimensional minute area Ar1 shown in part (a) is moved in the arrow D direction. Are listed. In the flat part where the signal component does not change with respect to the coordinates in the graph G1 of the part (a), as shown in the graph G2 of the part (b), since the signal component is equal to the average value in the minute area Ar1, the variance is also covariance. Both become “0”. In addition, in the intermediate part C3 of the graph G1 of the part (a), the signal components of the respective colors change downward, and in the intermediate part C3, the signal components take various values with respect to the average value. A peak P2 occurs in the dispersion, and a peak P1 also occurs in the covariance.

ここで、パート(a)のグラフG1の左側の局所部分C1では、点欠陥によってR色の信号成分とG色の信号成分とが変動するので、パート(b)のグラフG2に示すように、分散も共分散もともにピークが生じる。しかし、共分散については、G色の信号成分の変動が小さいことの影響を受けるので、この共分散のピークP3は、R色の信号成分の変動のみで決まる分散のピークP4よりも小さなものとなる。さらに、パート(a)のグラフG1の右側の局所部分C1では、点欠陥によってR色の信号成分だけが変動するので、パート(b)のグラフG2に示すように、分散についてはピークP5が生じるが、共分散については「0」のままである。   Here, in the local part C1 on the left side of the graph G1 of the part (a), the signal component of the R color and the signal component of the G color are fluctuated due to the point defect, so as shown in the graph G2 of the part (b), Both dispersion and covariance have peaks. However, since the covariance is affected by the small variation in the G color signal component, the covariance peak P3 is smaller than the dispersion peak P4 determined only by the variation in the R color signal component. Become. Furthermore, in the local portion C1 on the right side of the graph G1 of part (a), only the R color signal component varies due to point defects, and therefore, as shown in the graph G2 of part (b), a peak P5 occurs for dispersion. However, the covariance remains “0”.

フォーカス制御に使われる分散や共分散は、被写体像の主要部分の全体的な合焦の程度を表す必要があるため、図5のパート(b)に示すような広域エリアAr2について求められる。   The variance or covariance used for focus control needs to represent the overall focus level of the main part of the subject image, and is thus obtained for the wide area Ar2 as shown in part (b) of FIG.

従来、行われることが多い、分散を利用したフォーカス制御は、このような広域エリアAr2での分散に含まれる、被写体像に基づくピークP2の高さが、フォーカスレンズ22の位置による合焦の程度に応じて増減することに基づいている。即ち、被写体像に基づくピークP2の高さは、フォーカスレンズ22が合焦位置から外れており画像が不鮮明なときには低く、フォーカスレンズ22が合焦位置に近づき画像が鮮明になるに従って高くなるので、分散が増加する方向へフォーカスレンズ22を動かし、分散が最大値となる位置にフォーカスレンズ22を合わせることで合焦位置が検出される。しかし、この広域エリアAr2での分散は、パート(b)に示すような点欠陥に起因するピークP4,P5も含んでいる。これらのピークP4,P5の高さは、点欠陥の数にのみ依存するのでフォーカスレンズ22の位置に係わらずほぼ一定の大きさを保ち続ける。その結果、広域エリアAr2での分散は、フォーカスレンズ22が合焦位置に合っていないにも係わらず大きな値を示すこととなり、このことが分散を用いる場合の合焦位置の誤検出原因の1つとなっている。   Conventionally, focus control using dispersion, which is often performed, is such that the height of the peak P2 based on the subject image included in the dispersion in such a wide area Ar2 is the degree of focusing by the position of the focus lens 22 It is based on increasing / decreasing according to. That is, the height of the peak P2 based on the subject image is low when the focus lens 22 is out of the focus position and the image is unclear, and increases as the focus lens 22 approaches the focus position and the image becomes clear. The focus lens 22 is moved in the direction in which the dispersion increases, and the focus lens 22 is adjusted to a position where the dispersion becomes the maximum value, so that the in-focus position is detected. However, the dispersion in the wide area Ar2 also includes peaks P4 and P5 due to point defects as shown in part (b). Since the heights of these peaks P4 and P5 depend only on the number of point defects, they remain substantially constant regardless of the position of the focus lens 22. As a result, the dispersion in the wide area Ar2 shows a large value even though the focus lens 22 is not in the in-focus position, which is one of the causes of erroneous detection of the in-focus position when using the dispersion. It has become one.

一方、本実施形態で、フォーカス制御に使われる広域エリアAr2での共分散では、パート(b)に示すように、その共分散に含まれる、点欠陥に起因するピークの数が、分散におけるそのようなピークの数よりも少なく、さらに、そのピークの高さが、分散におけるピークの高さよりも低い。このため、広域エリアAr2での共分散の大きさは、被写体像に基づくピークP1のみによって左右されることとなり、合焦位置の正確な検出が可能となっている。このように、共分散は点欠陥の影響をほとんど受けることがなく、点欠陥に対して強い耐性を有していると言える。   On the other hand, in the present embodiment, in the covariance in the wide area Ar2 used for focus control, as shown in Part (b), the number of peaks due to point defects included in the covariance is The number of such peaks is less, and the height of the peaks is lower than the height of the peaks in the dispersion. For this reason, the size of the covariance in the wide area Ar2 depends only on the peak P1 based on the subject image, and the in-focus position can be accurately detected. Thus, it can be said that covariance is hardly affected by point defects and has strong resistance to point defects.

図6は、フォーカスレンズ22の位置と、分散および共分散それぞれとの関係が、ノイズや点欠陥からうける影響を模式的に示す図である。   FIG. 6 is a diagram schematically showing the influence of the relationship between the position of the focus lens 22 and each of dispersion and covariance from noise and point defects.

この図6には、フォーカスレンズ22の位置に対する、上述した広域エリアAr2での共分散を表すラインL1と分散を表すラインL2が、ランダムノイズや点欠陥の増加に伴ってどのように変化するかが示されている。まず、ランダムノイズに対しては、ノイズが増加するに伴って分散は増加するが、ノイズに対して耐性を有する共分散はほぼ不変である。また、点欠陥に対しては、点欠陥の増加に伴って分散が大きく増加して合焦位置でのピークがかなり埋もれてしまうのに対し、点欠陥に対しても耐性を有する共分散はほぼ不変であり、合焦位置では明確なピークが現れる。   FIG. 6 shows how the line L1 representing the covariance in the wide area Ar2 and the line L2 representing the dispersion with respect to the position of the focus lens 22 change as random noise and point defects increase. It is shown. First, for random noise, the variance increases as the noise increases, but the covariance that is resistant to noise is almost unchanged. Also, for point defects, the dispersion greatly increases with increasing point defects and the peak at the in-focus position is considerably buried, whereas the covariance having resistance to point defects is almost It is invariant and a clear peak appears at the in-focus position.

以上、説明したように、共分散はノイズや点欠陥に対して強い耐性を有し、本実施形態では、フォーカス制御にこの共分散が使われる。   As described above, the covariance has strong resistance to noise and point defects, and in this embodiment, this covariance is used for focus control.

以下、図4に戻って、この図4のフローチャートにおけるステップS112以降の処理について説明を続ける。   Hereinafter, returning to FIG. 4, the description of the processing after step S112 in the flowchart of FIG. 4 will be continued.

ステップS113において、フォーカスレンズ22の位置F(k)が初期位置F(A)に合わされたときの共分散が算出され、メモリ41内に一時的に格納されると、次に、現時点でのフォーカスレンズ22の移動段階「k」が、限界位置に対応する段階「B」に達しているか否かが判定される(ステップS114)。   In step S113, the covariance when the position F (k) of the focus lens 22 is adjusted to the initial position F (A) is calculated and temporarily stored in the memory 41. Next, the current focus is obtained. It is determined whether or not the movement stage “k” of the lens 22 has reached the stage “B” corresponding to the limit position (step S114).

まだこの段階「B」に達していない場合(ステップS104におけるNo判定)、移動段階「k」が1段階上げられ(ステップS115)、フォーカスレンズ22が、その1段階上げられたその移動段階の位置まで動かされて(ステップS116)、ステップS112まで処理が戻って、その状態での画像の取込みが実行される。このステップS112からステップS116までの処理は、フォーカスレンズ22の移動段階が限界位置に対応する段階「B」に達するまで(ステップS114におけるYes判定)繰り返される。   If the stage “B” has not yet been reached (No determination in step S104), the moving stage “k” is raised by one stage (step S115), and the focus lens 22 is moved up by one stage. (Step S116), the process returns to step S112, and image capture in that state is executed. The processing from step S112 to step S116 is repeated until the movement stage of the focus lens 22 reaches the stage “B” corresponding to the limit position (Yes determination in step S114).

この段階「B」に達した場合には、初期位置に対応する段階「A」からこの限界位置に対応する段階「B」までの各段階の中から、ステップS113で図2示すメモリ41内に一時的に格納された共分散のうちで最大の共分散に対応する段階が選ばれる(ステップS117)。そして、この選ばれた段階の位置、即ち共分散が最大となる合焦位置までフォーカスレンズ22が動かされて(ステップS118)、この図3のフローチャートが示すフォーカス制御が終了する。このステップS118は、本発明にいうレンズ移動過程の一例に相当する。この、フォーカス制御が終了すると、処理は、図3のフローチャートが示す撮像処理に戻り、このフォーカス制御に続く処理が実行される。   When this stage “B” has been reached, from the stage “A” corresponding to the initial position to the stage “B” corresponding to this limit position, the memory 41 shown in FIG. The stage corresponding to the maximum covariance among the temporarily stored covariances is selected (step S117). Then, the focus lens 22 is moved to the position at the selected stage, that is, the focus position where the covariance is maximized (step S118), and the focus control shown in the flowchart of FIG. 3 ends. This step S118 corresponds to an example of a lens moving process according to the present invention. When the focus control ends, the process returns to the imaging process shown in the flowchart of FIG. 3, and the process following the focus control is executed.

以上、説明したように、第1実施形態のデジタルカメラ1によれば、ノイズや点欠陥に対して強い耐性を有する共分散に基づいてフォーカス制御が行われることから、高精度の合焦状態で撮像することができる。   As described above, according to the digital camera 1 of the first embodiment, the focus control is performed based on the covariance having strong resistance to noise and point defects. An image can be taken.

次に、本発明の第2実施形態について説明する。   Next, a second embodiment of the present invention will be described.

図7は、本発明の第2実施形態であるデジタルカメラの回路構成を示すブロック図である。   FIG. 7 is a block diagram showing a circuit configuration of a digital camera according to the second embodiment of the present invention.

この図7示すデジタルカメラ2は、露出制御回路40で決定された感度に応じて、フォーカス制御に用いるパラメータを共分散と分散との間で切り替えるという点が、図2に示した第1実施形態のデジタルカメラ1とは異なる。そこで、以下では、この第1実施形態との相違点に注目した説明を行い、重複説明については省略する。また、図7では、図2に示す構成要素と同等な構成要素については図2と同じ符号が付されている。   The digital camera 2 shown in FIG. 7 is that the parameter used for focus control is switched between covariance and dispersion according to the sensitivity determined by the exposure control circuit 40 in the first embodiment shown in FIG. Different from the digital camera 1 of FIG. Therefore, in the following description, attention is paid to the difference from the first embodiment, and redundant description is omitted. In FIG. 7, the same reference numerals as those in FIG. 2 are assigned to the same components as those shown in FIG. 2.

図7に示すデジタルカメラ2は、露出制御回路40で決定された感度を取得する感度取得回路51と、この感度取得回路51が取得した感度に応じてフォーカス制御に用いるパラメータの演算を、共分散演算回路37による演算と分散演算回路53による演算との間で切り替える演算切替回路52と、分散を求める分散演算回路53とを備えている。ここで、このデジタルカメラ2の感度を決定する露出制御回路40が、本発明にいう感度設定部の一例に相当する。   The digital camera 2 shown in FIG. 7 performs covariance on the sensitivity acquisition circuit 51 that acquires the sensitivity determined by the exposure control circuit 40, and the calculation of parameters used for focus control according to the sensitivity acquired by the sensitivity acquisition circuit 51. An operation switching circuit 52 that switches between an operation by the operation circuit 37 and an operation by the distributed operation circuit 53, and a distributed operation circuit 53 that obtains the variance are provided. Here, the exposure control circuit 40 that determines the sensitivity of the digital camera 2 corresponds to an example of a sensitivity setting unit according to the present invention.

また、このデジタルカメラ2では、AF検出回路54は、演算切替回路52によって共分散演算回路37による演算に切り替えられた場合には共分散に基づいてフォーカス制御を行い、分散演算回路53による演算に切り替えられた場合には分散に基づいてフォーカス制御を行う。ここで、この共分散に基づくフォーカス制御が、本発明にいう第1モードの一例に相当し、分散に基づくフォーカス制御が、本発明にいう第2モードの一例に相当する。   In the digital camera 2, the AF detection circuit 54 performs focus control based on the covariance when the calculation switching circuit 52 switches to the calculation by the covariance calculation circuit 37, and performs the calculation by the distribution calculation circuit 53. When switched, focus control is performed based on dispersion. Here, the focus control based on the covariance corresponds to an example of the first mode according to the present invention, and the focus control based on the dispersion corresponds to an example of the second mode according to the present invention.

この第2実施形態のデジタルカメラ2で実行される撮像シーケンスは、フォーカス制御を除いて、第1実施形態のデジタルカメラ2で実行される図3に示す撮像シーケンスと同じである。そこで、以下では、このデジタルカメラ2で実行されるフォーカス制御に注目して説明する。   The imaging sequence executed by the digital camera 2 of the second embodiment is the same as the imaging sequence shown in FIG. 3 executed by the digital camera 2 of the first embodiment, except for focus control. Therefore, the following description will focus on focus control executed by the digital camera 2.

図8は、図7に示すデジタルカメラ2で実行されるフォーカス制御の流れを表すフローチャートである。   FIG. 8 is a flowchart showing the flow of focus control executed by the digital camera 2 shown in FIG.

処理がスタートすると、まず、露出制御回路40で決定された感度が感度取得回路51で取得される(ステップS201)。そして、その取得された感度が所定の閾値よりも高いか否かが判定される(ステップS202)。感度が閾値よりも高い場合には(ステップS202におけるYes判定)、共分散を用いたフォーカス制御が実行され(ステップS203)、感度が閾値よりも低い場合には(ステップS202におけるNo判定)、分散を用いたフォーカス制御が実行される(ステップS204)。尚、ステップS203で実行されるフォーカス制御は、図4のフローチャートが表すフォーカス制御と同じであるので重複説明を省略する。また、ステップS204で実行されるフォーカス制御は、図4のフローチャートが表すフォーカス制御における共分散を分散に置き換えた他は同じ制御であるので、このステップS204で実行されるフォーカス制御についてのこれ以上の説明は省略する。   When the process starts, first, the sensitivity determined by the exposure control circuit 40 is acquired by the sensitivity acquisition circuit 51 (step S201). Then, it is determined whether or not the acquired sensitivity is higher than a predetermined threshold (step S202). When the sensitivity is higher than the threshold (Yes determination in step S202), focus control using covariance is executed (step S203). When the sensitivity is lower than the threshold (No determination in step S202), the variance is Focus control using is performed (step S204). Note that the focus control executed in step S203 is the same as the focus control represented by the flowchart of FIG. Further, since the focus control executed in step S204 is the same control except that the covariance in the focus control represented by the flowchart of FIG. 4 is replaced with the variance, the focus control executed in this step S204 is further controlled. Description is omitted.

ここで、共分散を求める演算は、上記の(2)式に示すように、RG2色の信号成分を対象とした演算であり、上記の(1)式に示すR色の信号成分のみを対象とした分散の演算に比べると手間や時間を要する。そこで、本実施形態では、撮像の感度が所定の閾値以上に高く、撮像で得られる画像信号に含まれるノイズレベルが高くなり、分散に基づくフォーカス制御の精度が低下する恐れがあるときに限り、共分散に基づくフォーカス制御が実行される。これにより、この第2実施形態のデジタルカメラ2によれば、上記の第1実施形態と同様の高精度の合焦状態での撮像を効率的に実行することができる。   Here, the calculation for obtaining the covariance is a calculation for the RG two-color signal component as shown in the above equation (2), and only for the R signal component in the above equation (1). Compared to the calculation of variance, it takes time and effort. Therefore, in the present embodiment, only when the sensitivity of imaging is higher than a predetermined threshold, the noise level included in the image signal obtained by imaging is increased, and the accuracy of focus control based on dispersion may be reduced. Focus control based on covariance is executed. As a result, according to the digital camera 2 of the second embodiment, it is possible to efficiently perform imaging in a highly accurate in-focus state similar to the first embodiment.

次に、本発明の第3実施形態について説明する。   Next, a third embodiment of the present invention will be described.

図9は、本発明の第3実施形態であるデジタルカメラの回路構成を示すブロック図である。   FIG. 9 is a block diagram showing a circuit configuration of a digital camera according to the third embodiment of the present invention.

この図9示すデジタルカメラ3は、フォーカス制御に用いるパラメータを共分散と分散との間で切り替えるという点は上記の第2実施形態と同様であるが、その演算の切替えが予め分かっているCCDの点欠陥数に応じて行われるという点が、第2実施形態とは異なる。そこで、以下では第2実施形態との相違点に注目した説明を行い、重複説明については省略する。また、図9では、図7に示す構成要素と同等な構成要素については図7と同じ符号が付されている。   The digital camera 3 shown in FIG. 9 is the same as the second embodiment in that the parameter used for focus control is switched between covariance and variance. It differs from the second embodiment in that it is performed according to the number of point defects. Therefore, in the following, an explanation will be given focusing on the differences from the second embodiment, and duplicate explanation will be omitted. In FIG. 9, the same reference numerals as those in FIG. 7 are given to components equivalent to the components shown in FIG. 7.

ここで、この図9示すデジタルカメラ3には、交換可能なCCD55が搭載される。また、このCCD55はROM55aを有しており、このROM55aには、CCD55の出荷時に検査によって求められた点欠陥数が記憶されている。さらに、デジタルカメラ3は、このROM55aに記憶されている点欠陥数を取得する点欠陥数取得回路56を備えている。ここで、ROM55aが、本発明にいう「点欠陥の個数が記憶されたメモリ」の一例に相当し、点欠陥数取得回路56が、本発明にいう点欠陥数取得部の一例に相当する。そして、このデジタルカメラ3では、演算切替回路57は、この点欠陥数取得回路56で取得された点欠陥数に応じて、フォーカス制御に用いるパラメータの演算を、共分散演算回路37による演算と分散演算回路53による演算との間で切り替える。   Here, the replaceable CCD 55 is mounted on the digital camera 3 shown in FIG. The CCD 55 has a ROM 55a, and the ROM 55a stores the number of point defects obtained by inspection at the time of shipment of the CCD 55. Further, the digital camera 3 includes a point defect number acquisition circuit 56 for acquiring the number of point defects stored in the ROM 55a. Here, the ROM 55a corresponds to an example of a “memory storing the number of point defects” according to the present invention, and the point defect number acquisition circuit 56 corresponds to an example of a point defect number acquisition unit according to the present invention. In this digital camera 3, the calculation switching circuit 57 calculates the parameters used for focus control according to the number of point defects acquired by the point defect number acquisition circuit 56, and the calculation by the covariance calculation circuit 37. Switching between calculation by the calculation circuit 53 is performed.

図10は、図9に示すデジタルカメラ3で実行されるフォーカス制御の流れを表すフローチャートである。   FIG. 10 is a flowchart showing the flow of focus control executed by the digital camera 3 shown in FIG.

処理がスタートすると、まず、現在デジタルカメラ3に搭載されているCCD55のROM55aから、点欠陥数取得回路56によってこのCCD55の点欠陥数が取得される(ステップS301)。そして、その取得された点欠陥数が所定の閾値よりも多いか否かが判定される(ステップS302)。点欠陥数が閾値よりも多い場合には(ステップS302におけるYes判定)、共分散を用いたフォーカス制御が実行され(ステップS303)、点欠陥数が閾値よりも少ない場合には(ステップS302におけるNo判定)、分散を用いたフォーカス制御が実行される(ステップS304)。尚、ステップS303およびステップS304で実行されるフォーカス制御については重複説明を省略する。   When the process starts, first, the number of point defects of the CCD 55 is acquired by the point defect number acquisition circuit 56 from the ROM 55a of the CCD 55 currently mounted on the digital camera 3 (step S301). Then, it is determined whether or not the acquired number of point defects is greater than a predetermined threshold (step S302). When the number of point defects is larger than the threshold (Yes determination in step S302), focus control using covariance is executed (step S303), and when the number of point defects is smaller than the threshold (No in step S302). Determination) and focus control using dispersion is executed (step S304). Note that redundant description of the focus control executed in steps S303 and S304 is omitted.

本実施形態では、搭載されているCCD55の点欠陥数が所定の閾値よりも多く、分散に基づくフォーカス制御の精度が低下する恐れがあるときに限り、共分散に基づくフォーカス制御が実行される。これにより、この第3実施形態のデジタルカメラ3によれば、上記の第1実施形態と同様の高精度の合焦状態での撮像を効率的に実行することができる。   In the present embodiment, focus control based on covariance is executed only when the number of point defects of the mounted CCD 55 is greater than a predetermined threshold and the accuracy of focus control based on variance may be reduced. As a result, according to the digital camera 3 of the third embodiment, it is possible to efficiently execute imaging in a highly accurate in-focus state similar to the first embodiment.

次に、本発明の第4実施形態について説明する。   Next, a fourth embodiment of the present invention will be described.

図11は、本発明の第4実施形態であるデジタルカメラの回路構成を示すブロック図である。   FIG. 11 is a block diagram showing a circuit configuration of a digital camera according to the fourth embodiment of the present invention.

この図11示すデジタルカメラ4は、フォーカス制御に用いるパラメータを共分散と分散との間で切り替えるという点は上記の第2実施形態や第3実施形態と同様であるが、その演算の切替えがCCD24の温度に応じて行われるという点が、これらの実施形態とは異なる。そこで、以下では第2実施形態や第3実施形態との相違点に注目した説明を行い、重複説明については省略する。また、図11では、図7に示す構成要素と同等な構成要素については図7と同じ符号が付されている。   The digital camera 4 shown in FIG. 11 is the same as the second embodiment and the third embodiment described above in that the parameter used for focus control is switched between covariance and dispersion. This embodiment is different from these embodiments in that it is performed according to the temperature. Therefore, in the following description, attention is paid to the differences from the second embodiment and the third embodiment, and duplicate descriptions are omitted. In FIG. 11, the same reference numerals as those in FIG. 7 are assigned to the same components as those shown in FIG. 7.

図11示すデジタルカメラ4は、CCD24の温度を取得する温度検出回路58を備えている。ここで、温度検出回路58が、本発明にいう温度検出部の一例に相当する。そして、このデジタルカメラ3では、演算切替回路59は、この温度検出回路58で検出された温度に応じて、フォーカス制御に用いるパラメータの演算を、共分散演算回路37による演算と分散演算回路53による演算との間で切り替える。   The digital camera 4 shown in FIG. 11 includes a temperature detection circuit 58 that acquires the temperature of the CCD 24. Here, the temperature detection circuit 58 corresponds to an example of a temperature detection unit according to the present invention. In the digital camera 3, the calculation switching circuit 59 calculates the parameters used for focus control according to the temperature detected by the temperature detection circuit 58 by the calculation by the covariance calculation circuit 37 and the distribution calculation circuit 53. Switch between operations.

図12は、図11に示すデジタルカメラ4で実行されるフォーカス制御の流れを表すフローチャートである。   FIG. 12 is a flowchart showing the flow of focus control executed by the digital camera 4 shown in FIG.

処理がスタートすると、温度検出回路58において、まず、デジタルカメラ4が起動してから所定時間が経過したか否かが図11に示すタイマ36で計測されている時間に基づいて判定され(ステップS401)、起動してから所定時間が経過していた場合に(ステップS401におけるYes判定)、CCD24の温度が検出される(ステップS402)。そして、その検出された温度が所定の閾値よりも高いか否かが判定される(ステップS403)。   When the process starts, the temperature detection circuit 58 first determines whether or not a predetermined time has elapsed since the digital camera 4 was started based on the time measured by the timer 36 shown in FIG. 11 (step S401). ) When a predetermined time has elapsed since the start (Yes determination in step S401), the temperature of the CCD 24 is detected (step S402). Then, it is determined whether or not the detected temperature is higher than a predetermined threshold (step S403).

検出された温度が閾値よりも高い場合には(ステップS403におけるYes判定)、共分散を用いたフォーカス制御が実行され(ステップS404)、起動してから所定時間が経過していなかった場合(ステップS401におけるNo判定)、あるいは、検出された温度が所定の閾値よりも低い場合には(ステップS403におけるNo判定)、分散を用いたフォーカス制御が実行される(ステップS405)。尚、ステップS404およびステップS405で実行されるフォーカス制御については重複説明を省略する。   When the detected temperature is higher than the threshold value (Yes determination in step S403), focus control using covariance is executed (step S404), and a predetermined time has not elapsed since the start (step S404). If the detected temperature is lower than a predetermined threshold (No determination in step S403), focus control using dispersion is executed (step S405). Note that redundant description of the focus control executed in steps S404 and S405 is omitted.

本実施形態では、起動後所定時間が経過しCCD55の温度が所定の閾値よりも高く、CCD24における点欠陥が顕在化してフォーカス制御用に取り込んだ画像に点状のキズが生じ、そのキズの影響により分散に基づくフォーカス制御の精度が低下する恐れがあるときに限り、共分散に基づくフォーカス制御が実行される。これにより、この第4実施形態のデジタルカメラ4によれば、上記の第1実施形態と同様の高精度の合焦状態での撮像を効率的に実行することができる。   In the present embodiment, after a predetermined time has elapsed since the start, the temperature of the CCD 55 is higher than a predetermined threshold, and a point defect in the CCD 24 becomes obvious, causing a point-like flaw in an image captured for focus control, and the influence of the flaw. The focus control based on the covariance is executed only when there is a risk that the accuracy of the focus control based on the variance may be reduced. As a result, according to the digital camera 4 of the fourth embodiment, it is possible to efficiently perform imaging in the in-focus state as in the first embodiment.

尚、上記では、本発明の一実施形態としてデジタルカメラを例示したが、本発明はこれに限るものではなく、本発明の一実施形態は、例えば、カメラ機能を有する携帯電話や、動画撮影を行うビデオカメラ等であっても良い。   In the above, a digital camera has been exemplified as an embodiment of the present invention. However, the present invention is not limited to this, and the embodiment of the present invention can be used for, for example, a mobile phone having a camera function or a video shooting. It may be a video camera or the like.

また、上記では、本発明にいうレンズ移動部の一例として、フォーカスレンズを所定の初期位置から限界位置まで一通り動かして、共分散が最大となる位置を見つけた後に、フォーカスレンズを改めてその位置まで移動させるものを例示したが、本発明にいうレンズ移動部はこれに限るものではなく、例えば、共分散が増加する方向にフォーカスレンズを動かし、共分散の変化が極大となる位置でフォーカスレンズの移動を止めるというもの等であっても良い。   Further, in the above, as an example of the lens moving unit referred to in the present invention, the focus lens is moved from a predetermined initial position to a limit position, and a position where the covariance is maximized is found. However, the lens moving unit referred to in the present invention is not limited to this. For example, the focus lens is moved in a direction in which the covariance increases, and the focus lens is at a position where the change of the covariance is maximized. It may be a thing that stops the movement of.

本発明の第1から第4までの各実施形態である各デジタルカメラに共通の外観斜視図である。It is an external appearance perspective view common to each digital camera which is each 1st to 4th embodiment of this invention. 本発明の第1実施形態であるデジタルカメラの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the digital camera which is 1st Embodiment of this invention. 図2に示すデジタルカメラ1で実行される撮像シーケンスを表すフローチャートである。3 is a flowchart showing an imaging sequence executed by the digital camera 1 shown in FIG. フォーカス制御の流れを表すフローチャートである。It is a flowchart showing the flow of focus control. 分散と共分散それぞれが、点欠陥からうける影響を模式的に示す図である。It is a figure which shows typically the influence which dispersion | distribution and covariance each receive from a point defect. フォーカスレンズ22の位置と、分散および共分散それぞれとの関係が、ノイズや点欠陥からうける影響を模式的に示す図である。It is a figure which shows typically the influence which the relationship between the position of the focus lens 22, and each of dispersion | distribution and covariance receives from noise or a point defect. 本発明の第2実施形態であるデジタルカメラの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the digital camera which is 2nd Embodiment of this invention. 図7に示すデジタルカメラ2で実行されるフォーカス制御の流れを表すフローチャートである。It is a flowchart showing the flow of the focus control performed with the digital camera 2 shown in FIG. 本発明の第3実施形態であるデジタルカメラの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the digital camera which is 3rd Embodiment of this invention. 図9に示すデジタルカメラ3で実行されるフォーカス制御の流れを表すフローチャートである。10 is a flowchart showing a flow of focus control executed by the digital camera 3 shown in FIG. 9. 本発明の第4実施形態であるデジタルカメラの回路構成を示すブロック図である。It is a block diagram which shows the circuit structure of the digital camera which is 4th Embodiment of this invention. 図11に示すデジタルカメラ4で実行されるフォーカス制御の流れを表すフローチャートである。12 is a flowchart showing a flow of focus control executed by the digital camera 4 shown in FIG.

符号の説明Explanation of symbols

1,2,3,4 デジタルカメラ
11 撮像レンズ
12 ズーム鏡胴
13 フラッシュ発光装置
14 光学式ファインダ対物窓
15 電源スイッチ
16 レリーズボタン
21 ズームレンズ
22 フォーカスレンズ
23 アイリス
24,55 CCD
25 読出回路
26 画像入力コントローラ
27 画像信号処理回路
28 圧縮処理回路
29 ビデオエンコーダ
30 LCD
31 CPU
32,33,34 モータドライバ
36 タイマ
37 共分散演算回路
38,54 AF検出回路
39 AE&AWB検出回路
40 露出制御回路
41 メモリ
42 メディアコントローラ
43 スイッチ群
44 電源回路
45 バッテリ
50 バスライン
51 感度取得回路
52,57,59 演算切替回路
53 分散演算回路
55a ROM
56 点欠陥数取得回路
58 温度検出回路
100 記録メディア
1, 2, 3, 4 Digital camera 11 Imaging lens 12 Zoom lens barrel 13 Flash light emitting device 14 Optical viewfinder objective window 15 Power switch 16 Release button 21 Zoom lens 22 Focus lens 23 Iris 24, 55 CCD
25 Reading Circuit 26 Image Input Controller 27 Image Signal Processing Circuit 28 Compression Processing Circuit 29 Video Encoder 30 LCD
31 CPU
32, 33, 34 Motor driver 36 Timer 37 Covariance calculation circuit 38, 54 AF detection circuit 39 AE & AWB detection circuit 40 Exposure control circuit 41 Memory 42 Media controller 43 Switch group 44 Power supply circuit 45 Battery 50 Bus line 51 Sensitivity acquisition circuit 52, 57, 59 Operation switching circuit 53 Distributed operation circuit 55a ROM
56 point defect number acquisition circuit 58 temperature detection circuit 100 recording medium

Claims (5)

被写体光を通過させ、1つ以上のレンズの作用で結像させる光学系と、
前記光学系を通過して結像された被写体光の色を、複数の画素それぞれについて、所定の複数色それぞれに対応する複数の信号成分の組合せで表現した、該複数の画素からなる画像を表わす画像信号を生成する撮像部と、
前記撮像部で生成される画像信号が表す画像を構成する複数の画素について、前記複数の信号成分のうちの所定の2つの信号成分を用いた共分散を算出する共分散算出部と、
前記レンズを、前記光学系の光軸に沿って、前記共分散が増加する方向に移動させるレンズ移動部とを備えたことを特徴とする撮像装置。
An optical system that allows subject light to pass therethrough and forms an image by the action of one or more lenses;
Represents an image composed of a plurality of pixels in which the color of the subject light imaged through the optical system is represented by a combination of a plurality of signal components corresponding to each of a plurality of predetermined colors for each of the plurality of pixels. An imaging unit for generating an image signal;
A covariance calculating unit that calculates covariance using a predetermined two signal components of the plurality of signal components for a plurality of pixels constituting an image represented by an image signal generated by the imaging unit;
An image pickup apparatus comprising: a lens moving unit that moves the lens in a direction in which the covariance increases along the optical axis of the optical system.
この撮像装置が撮像するときの感度を設定する感度設定部と、
前記複数の画素について、前記複数種類の信号成分のうちの所定の1つの信号成分を用いた分散を算出する分散算出部とを備え、
前記レンズ移動部が、前記レンズを、前記光学系の光軸に沿って、前記共分散が増加する方向に移動させる第1モードと、該レンズを、該光学系の光軸に沿って、前記分散が増加する方向に移動させる第2モードとを有し、前記感度設定部で設定された感度が所定感度を超えている場合に該レンズを前記第1モードで移動させ、該感度設定部で取得された感度が所定感度以下である場合に該レンズを前記第2モードで移動させるものであることを特徴とする請求項1記載の撮像装置。
A sensitivity setting unit for setting the sensitivity when the imaging apparatus captures an image;
A dispersion calculating unit that calculates a dispersion using a predetermined one of the plurality of types of signal components for the plurality of pixels;
The lens moving unit moves the lens along the optical axis of the optical system in a direction in which the covariance increases, and the lens moves along the optical axis of the optical system. A second mode for moving in a direction in which dispersion increases, and when the sensitivity set by the sensitivity setting unit exceeds a predetermined sensitivity, the lens is moved in the first mode, and the sensitivity setting unit The imaging apparatus according to claim 1, wherein when the acquired sensitivity is equal to or lower than a predetermined sensitivity, the lens is moved in the second mode.
前記撮像部は、交換可能な撮像素子が、該撮像素子が有する点欠陥の個数が記憶されたメモリと共に搭載されて、該撮像素子を使って前記画像信号を生成するものであり、
前記メモリに記憶されている前記点欠陥の数を取得する点欠陥数取得部と
前記複数の画素について、前記複数種類の信号成分のうちの所定の1つの信号成分を用いた分散を算出する分散算出部とを備え、
前記レンズ移動部が、前記レンズを、前記光学系の光軸に沿って、前記共分散が増加する方向に移動させる第1モードと、該レンズを、該光学系の光軸に沿って、前記分散が増加する方向に移動させる第2モードとを有し、前記点欠陥数取得部で取得された点欠陥の数が所定数を超えている場合に該レンズを前記第1モードで移動させ、該点欠陥数取得部で取得された点欠陥の数が所定数以下である場合に該レンズを前記第2モードで移動させるものであることを特徴とする請求項1記載の撮像装置。
The image pickup unit is configured such that a replaceable image sensor is mounted together with a memory in which the number of point defects of the image sensor is stored, and the image signal is generated using the image sensor.
A point defect number acquisition unit for acquiring the number of point defects stored in the memory; and a variance for calculating a variance using a predetermined one of the plurality of types of signal components for the plurality of pixels A calculation unit,
The lens moving unit moves the lens along the optical axis of the optical system in a direction in which the covariance increases, and the lens moves along the optical axis of the optical system. A second mode that moves in a direction in which the dispersion increases, and when the number of point defects acquired by the point defect number acquisition unit exceeds a predetermined number, the lens is moved in the first mode, The imaging apparatus according to claim 1, wherein the lens is moved in the second mode when the number of point defects acquired by the point defect number acquisition unit is a predetermined number or less.
前記撮像部の温度を直接あるいは間接に検出する温度検出部と、
前記複数の画素について、前記複数種類の信号成分のうちの所定の1つの信号成分を用いた分散を算出する分散算出部とを備え、
前記レンズ移動部が、前記レンズを、前記光学系の光軸に沿って、前記共分散が増加する方向に移動させる第1モードと、該レンズを、該光学系の光軸に沿って、前記分散が増加する方向に移動させる第2モードとを有し、前記温度検出部で検出された温度が所定温度を超えている場合に該レンズを前記第1モードで移動させ、該温度検出部で検出された温度が所定温度以下である場合に該レンズを前記第2モードで移動させるものであることを特徴とする請求項1記載の撮像装置。
A temperature detection unit for directly or indirectly detecting the temperature of the imaging unit;
A dispersion calculating unit that calculates a dispersion using a predetermined one of the plurality of types of signal components for the plurality of pixels;
The lens moving unit moves the lens along the optical axis of the optical system in a direction in which the covariance increases, and the lens moves along the optical axis of the optical system. A second mode for moving in a direction in which the dispersion increases, and when the temperature detected by the temperature detector exceeds a predetermined temperature, the lens is moved in the first mode, and the temperature detector The imaging apparatus according to claim 1, wherein when the detected temperature is equal to or lower than a predetermined temperature, the lens is moved in the second mode.
被写体光の画像を撮像する撮像装置が実行する撮像方法において、
被写体光を通過させ、1つ以上のレンズの作用で結像させる光学系を通過して結像された被写体光の色を、複数の画素それぞれについて、所定の複数色それぞれに対応する複数の信号成分の組合せで表現した、該複数の画素からなる画像を表わす画像信号を生成する撮像過程と、
前記撮像過程で生成される画像信号が表す画像を構成する複数の画素について、前記複数の信号成分のうちの所定の2つの信号成分を用いた共分散を算出する共分散算出過程と、
前記レンズを、前記光学系の光軸に沿って、前記共分散が増加する方向に移動させるレンズ移動過程とを有したことを特徴とする撮影方法。
In an imaging method executed by an imaging device that captures an image of subject light,
A plurality of signals corresponding to a plurality of predetermined colors for each of a plurality of pixels, and the colors of the subject light formed through an optical system that passes through the subject light and forms an image by the action of one or more lenses. An imaging process for generating an image signal representing an image composed of the plurality of pixels expressed by a combination of components;
A covariance calculation process for calculating covariance using a predetermined two signal components of the plurality of signal components for a plurality of pixels constituting an image represented by the image signal generated in the imaging process;
An imaging method comprising: a lens moving process for moving the lens in a direction in which the covariance increases along the optical axis of the optical system.
JP2006300344A 2006-11-06 2006-11-06 Imaging apparatus and imaging method Expired - Fee Related JP4886473B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006300344A JP4886473B2 (en) 2006-11-06 2006-11-06 Imaging apparatus and imaging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006300344A JP4886473B2 (en) 2006-11-06 2006-11-06 Imaging apparatus and imaging method

Publications (2)

Publication Number Publication Date
JP2008118442A true JP2008118442A (en) 2008-05-22
JP4886473B2 JP4886473B2 (en) 2012-02-29

Family

ID=39504008

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006300344A Expired - Fee Related JP4886473B2 (en) 2006-11-06 2006-11-06 Imaging apparatus and imaging method

Country Status (1)

Country Link
JP (1) JP4886473B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10339839A (en) * 1997-06-05 1998-12-22 Kokusai Electric Co Ltd Lens focusing device
JPH11344662A (en) * 1998-06-02 1999-12-14 Ricoh Co Ltd Automatic focusing device
JP2004184634A (en) * 2002-12-02 2004-07-02 Lapole System:Kk Automatic focusing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10339839A (en) * 1997-06-05 1998-12-22 Kokusai Electric Co Ltd Lens focusing device
JPH11344662A (en) * 1998-06-02 1999-12-14 Ricoh Co Ltd Automatic focusing device
JP2004184634A (en) * 2002-12-02 2004-07-02 Lapole System:Kk Automatic focusing method and device

Also Published As

Publication number Publication date
JP4886473B2 (en) 2012-02-29

Similar Documents

Publication Publication Date Title
CN108028895B (en) Calibration of defective image sensor elements
CN104168416B (en) Picture pick-up device and its control method
JP5322783B2 (en) IMAGING DEVICE AND CONTROL METHOD OF IMAGING DEVICE
JP5753371B2 (en) Imaging apparatus and control method thereof
JPWO2012133413A1 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
JP2013054135A (en) Imaging device and control method thereof
US9716840B2 (en) Image pickup apparatus that reduces unevenness of exposure caused by artificial light source, method of detecting change in amount of light, and storage medium
US9380200B2 (en) Image pickup apparatus and control method in which object searching based on an image depends on pixel combining on the image
US9578232B2 (en) Image capturing apparatus, method for controlling the same, and storage medium
US9832360B2 (en) Image capturing apparatus and method of controlling the same
JP2020112635A (en) Control device, imaging apparatus, control method, and program
US7710492B2 (en) Imaging device and imaging method for performing automatic focus detection
JP2007221268A (en) Imaging apparatus
JP6960755B2 (en) Imaging device and its control method, program, storage medium
JP6482247B2 (en) FOCUS ADJUSTMENT DEVICE, IMAGING DEVICE, FOCUS ADJUSTMENT DEVICE CONTROL METHOD, AND PROGRAM
JP5387341B2 (en) Imaging device
JP6758964B2 (en) Control device, image pickup device, control method, program, and storage medium
JP4886473B2 (en) Imaging apparatus and imaging method
JP5965654B2 (en) TRACKING DEVICE, IMAGING DEVICE, TRACKING METHOD USED FOR IMAGING DEVICE
JP2015064521A (en) Focus detection device, focus adjustment device, and imaging apparatus
JP2014211589A (en) Focus adjustment device and imaging device
JP2013074368A (en) Imaging apparatus and imaging method
JP6902921B2 (en) Imaging equipment, control methods, and programs
JP6806471B2 (en) Focus detection device and method, and imaging device
KR101396328B1 (en) Image pickup device and auto focusing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090911

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111024

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111122

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111209

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

Free format text: PAYMENT UNTIL: 20141216

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4886473

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees