JP2006047645A - Focus adjusting device and method - Google Patents

Focus adjusting device and method Download PDF

Info

Publication number
JP2006047645A
JP2006047645A JP2004228016A JP2004228016A JP2006047645A JP 2006047645 A JP2006047645 A JP 2006047645A JP 2004228016 A JP2004228016 A JP 2004228016A JP 2004228016 A JP2004228016 A JP 2004228016A JP 2006047645 A JP2006047645 A JP 2006047645A
Authority
JP
Japan
Prior art keywords
focus
range
movement range
determined
focus position
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
JP2004228016A
Other languages
Japanese (ja)
Inventor
Shinya Hirai
信也 平井
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 JP2004228016A priority Critical patent/JP2006047645A/en
Publication of JP2006047645A publication Critical patent/JP2006047645A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To enable focusing including the objects outside the range finding area, while shortening the distance measuring time by measuring the distance inside the range finding area. <P>SOLUTION: This focus adjusting device makes focusing by moving the focusing lens 2, based on the image signals obtained by photographing an object. It has a controllers 11, 12 to move the focusing lens by a predetermined amount; a distance measuring range setup means 13 to set up the moving range by specifying the limits the focusing lens can move; an AF evaluation calculating circuit 14 which uses the image signals obtained by photographing at various points, by moving the focusing lens within this range and detects the focused state at each point; and a focusing position deciding section 15, which checks if there is a focusing position within the moving range by using the detected focused states, and decides the position predetermined outside the moving range as the focusing point, if there is none. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、焦点調節装置および方法に関し、更に詳しくはビデオカメラやデジタルスチルカメラ等の撮像装置に用いられ、適切な合焦状態に撮像装置を調節する焦点調節装置および方法に関する。   The present invention relates to a focus adjustment apparatus and method, and more particularly, to a focus adjustment apparatus and method used in an imaging apparatus such as a video camera or a digital still camera to adjust the imaging apparatus to an appropriate in-focus state.

従来より、デジタルスチルカメラやデジタルビデオカメラ等の映像機器で用いられる自動焦点調節方法として、例えば、CCD等の撮像素子から得られる映像信号を分析して合焦状態を評価する信号を作成し、その信号を用いて合焦位置を決定する方法がある。かかる方法は、オートフォーカス専用のセンサーを必要としないためローコストで実現でき、パララックスが無く、また、精度も高いという利点を備えている。一方、フォーカスレンズを、フォーカスレンズの移動範囲である、所定の焦点調節距離範囲内で駆動し、順次評価信号を作成する必要があるため、測距時間が長くかかってしまうという欠点がある。   Conventionally, as an automatic focus adjustment method used in video equipment such as a digital still camera and a digital video camera, for example, a video signal obtained from an image sensor such as a CCD is analyzed to create a signal for evaluating a focused state, There is a method of determining the in-focus position using the signal. Since this method does not require a sensor dedicated to autofocus, it can be realized at low cost, has no advantages of parallax, and has high accuracy. On the other hand, since it is necessary to drive the focus lens within a predetermined focus adjustment distance range, which is the movement range of the focus lens, and to sequentially generate evaluation signals, there is a disadvantage that it takes a long distance measurement time.

測距時間を短縮する1つの方法として、測距する焦点調節距離範囲(以下、「測距距離範囲」と呼ぶ。)を狭くする方法がある。通常撮影時に例えば50cm〜無限遠の範囲を測距距離範囲とした場合に、測距時間短縮モードとして、例えば、測距距離範囲を50cm〜3mとすることにより、測距時間を短くすることが可能である(例えば、特許文献1参照)。   As one method for shortening the distance measurement time, there is a method of narrowing a focus adjustment distance range (hereinafter referred to as a “distance distance range”) for distance measurement. For example, if the range from 50 cm to infinity is set as the distance measurement distance range during normal shooting, the distance measurement time can be shortened by setting the distance measurement distance range to 50 cm to 3 m, for example. It is possible (see, for example, Patent Document 1).

特開平05−107464号公報JP 05-107464 A

しかしながら、上記方法では、測距時間短縮モードにおいて、被写体が測距距離範囲外の距離にある場合には、被写体に合焦できないという欠点がある。   However, the above-described method has a drawback that the subject cannot be focused when the subject is outside the distance measurement distance range in the distance measurement time reduction mode.

本発明は上記問題点を鑑みてなされたものであり、測距距離範囲で測距を行うことにより測距時間を短縮しつつ、測距距離範囲外の被写体にも合焦可能にすることを目的とする。   The present invention has been made in view of the above problems, and it is possible to focus on a subject outside the distance measurement range while shortening the distance measurement time by performing distance measurement within the distance measurement range. Objective.

上記目的を達成するため、被写体を撮影して得た画像信号に基づいて、フォーカスレンズの位置を移動して焦点調節を行う本発明の焦点調節装置は、前記フォーカスレンズを所定量ずつ移動するように制御する制御手段と、前記フォーカスレンズの移動可能範囲の一部を特定する移動範囲を設定する設定手段と、前記移動範囲内で、前記フォーカスレンズを前記所定量ずつ移動した各位置で撮影した画像信号を用いて、各位置での合焦状態を検出する検出手段と、前記検出された合焦状態から、前記移動範囲内に合焦位置が存在するか否かを判断し、合焦位置が存在すると判断した場合には、前記合焦状態に基づいて合焦位置を決定し、合焦位置が存在しないと判断した場合には、前記移動範囲外の予め設定した所定位置を合焦位置として決定する合焦位置決定手段とを有する。   In order to achieve the above object, the focus adjustment apparatus of the present invention that adjusts the focus by moving the position of the focus lens based on the image signal obtained by photographing the subject is configured to move the focus lens by a predetermined amount. Control means for controlling the focus lens, setting means for setting a movement range for specifying a part of the movable range of the focus lens, and photographing at each position where the focus lens is moved by the predetermined amount within the movement range A detection means for detecting a focus state at each position using an image signal, and determining whether or not a focus position exists within the movement range from the detected focus state, and a focus position Is determined based on the in-focus state, and when it is determined that the in-focus position does not exist, a predetermined position outside the movement range is set to the in-focus position. As decided And a focus position determining means for.

被写体を撮影して得た画像信号に基づいて、フォーカスレンズの位置を移動して焦点調節を行う本発明の焦点調節方法は、前記フォーカスレンズの移動可能範囲の一部を特定する移動範囲を設定する設定工程と、前記移動範囲内で、前記フォーカスレンズを所定量ずつ移動し、移動した各位置で撮影した画像信号を用いて、各位置での合焦状態を検出する検出工程と、前記検出された合焦状態から、前記移動範囲内に合焦位置が存在するか否かを判断する判断工程と、合焦位置が存在すると判断した場合には、前記合焦状態に基づいて合焦位置を決定し、合焦位置が存在しないと判断した場合には、前記移動範囲外の予め設定した所定位置を合焦位置として決定する合焦位置決定工程とを有する。   The focus adjustment method of the present invention, which adjusts the focus by moving the position of the focus lens based on the image signal obtained by photographing the subject, sets a movement range for specifying a part of the movable range of the focus lens. A setting step for moving the focus lens by a predetermined amount within the moving range, and a detection step for detecting an in-focus state at each position using an image signal photographed at each moved position, and the detection A determination step for determining whether or not a focus position exists within the movement range from the focused state, and when it is determined that a focus position exists, the focus position is determined based on the focus state. And a focus position determination step of determining a predetermined position outside the movement range as the focus position when it is determined that the focus position does not exist.

以上説明したように、本発明によれば、測距距離範囲で測距を行うことにより測距時間を短縮しつつ、測距距離範囲外の被写体にも合焦可能とすることができる。   As described above, according to the present invention, it is possible to focus on a subject outside the distance measurement range while shortening the distance measurement time by performing distance measurement within the distance measurement distance range.

以下、添付図面を参照して本発明を実施するための最良の形態を詳細に説明する。   The best mode for carrying out the present invention will be described below in detail with reference to the accompanying drawings.

図1は、本発明の実施の形態における焦点調節装置を利用したデジタルカメラの概略図である。   FIG. 1 is a schematic diagram of a digital camera using a focus adjustment apparatus according to an embodiment of the present invention.

本実施の形態におけるデジタルカメラは、光学系1およびフォーカスレンズ2を持ち、これらにより結像した光を撮像素子3により光電変換し、出力ノイズを除去するCDS回路やA/D変換前に行う非線形増幅回路等を備えた前置処理回路4とA/D変換器5を通してデジタル化した信号をメモリコントローラ6を介してメモリ7に格納し、図示していない信号処理回路によって、ホワイトバランス処理、γ変換、圧縮といった処理を必要に応じて施してから記録媒体8に記録する。   The digital camera according to the present embodiment has an optical system 1 and a focus lens 2 and photoelectrically converts light imaged by these using an image sensor 3 and removes output noise, or a nonlinear effect performed before A / D conversion. A signal digitized through a pre-processing circuit 4 having an amplification circuit and the like and an A / D converter 5 is stored in a memory 7 through a memory controller 6, and white balance processing, γ is performed by a signal processing circuit (not shown). Processing such as conversion and compression is performed as necessary, and then recorded on the recording medium 8.

フォーカス動作は、制御部11の制御に基づいて、フォーカスレンズ駆動回路12がフォーカスレンズ2を駆動することで行われる。フォーカスレンズ駆動回路12は、フォーカスレンズ2を所定量づつ移動させ、各位置(以下、「焦点調節位置」と呼ぶ。)において撮像した画像信号を用いて、画像のコントラストに応じた信号(以下、「AF評価値」と呼ぶ。)をAF評価値演算回路14において演算する。   The focus operation is performed when the focus lens driving circuit 12 drives the focus lens 2 based on the control of the control unit 11. The focus lens driving circuit 12 moves the focus lens 2 by a predetermined amount, and uses a signal corresponding to the contrast of the image (hereinafter, referred to as “focus adjustment position”) using the image signal captured at each position (hereinafter referred to as “focus adjustment position”). The AF evaluation value calculation circuit 14 calculates “AF evaluation value”.

AF評価値の演算は次のように行う。まず、撮影された画像の内、測距に用いる画像の一部を示す測距枠内の画像データの各ラインに、水平方向のバンドパスフィルタを適用する。次に、ライン毎にバンドパス出力信号の絶対値の最も大きいものを選択する。選択した信号を垂直方向に積分する。上記構成により、水平方向のコントラストの大きいものが検出され、垂直方向に積分することで信号のS/Nの向上につながる。このように演算することで、合焦状態で最も値が大きくなり、デフォーカス状態にすると値が小さくなるような信号である、AF評価値を得ることができる。したがって、AF評価値の極大値が得られた焦点調節位置で撮影を行うことで、合焦した画像を得ることができる。   The AF evaluation value is calculated as follows. First, a horizontal band-pass filter is applied to each line of image data in a distance measurement frame indicating a part of an image used for distance measurement among the captured images. Next, the one having the largest absolute value of the bandpass output signal is selected for each line. Integrate the selected signal vertically. With the above configuration, a high contrast in the horizontal direction is detected, and integration in the vertical direction leads to an improvement in signal S / N. By calculating in this way, it is possible to obtain an AF evaluation value that is a signal that has the largest value in the in-focus state and decreases in the de-focused state. Therefore, a focused image can be obtained by shooting at the focus adjustment position where the maximum AF evaluation value is obtained.

フォーカスレンズ2の駆動は、測距範囲設定部13により設定された、フォーカスレンズ2の移動範囲である測距距離範囲内で行い、AF評価値演算回路14において各焦点調節位置で上述したようにして算出されたAF評価値に基づいて、合焦位置決定部15が合焦位置を決定した後、フォーカスレンズ駆動回路12はその位置にフォーカスレンズ2を駆動する。なお、SW1(9)が操作された場合にフォーカス動作が行われ、SW2(10)が操作された場合に撮像および画像の記録が行われる。   The focus lens 2 is driven within the distance measurement distance range which is the movement range of the focus lens 2 set by the distance measurement range setting unit 13 and is as described above at each focus adjustment position in the AF evaluation value calculation circuit 14. After the focus position determination unit 15 determines the focus position based on the AF evaluation value calculated in this way, the focus lens drive circuit 12 drives the focus lens 2 to that position. Note that a focus operation is performed when SW1 (9) is operated, and imaging and image recording are performed when SW2 (10) is operated.

上記構成を有するデジタルカメラにおいて、測距距離範囲を限定した場合の合焦動作について、図2のフローチャートおよび図3を参照しながら詳しく説明する。図3は、各焦点調節位置(被写体距離)と、各位置で算出されたAF評価値との関係を示す図であり、本実施の形態では、被写体距離D1〜D2の範囲を測距距離範囲とする。   With reference to the flowchart of FIG. 2 and FIG. 3, the focusing operation when the distance measuring distance range is limited in the digital camera having the above configuration will be described in detail. FIG. 3 is a diagram showing the relationship between each focus adjustment position (subject distance) and the AF evaluation value calculated at each position. In this embodiment, the range of subject distances D1 to D2 is a distance measurement distance range. And

ステップS1において、測距範囲設定部13により設定された測距距離範囲内(D1〜D2)でフォーカスレンズ2を所定量ずつ駆動し、各焦点調節位置でAF評価値演算回路14によりAF評価値の演算を行う。図3では無限遠に被写体がある場合のAF評価値の例を示しており、説明のために測距距離範囲外の焦点調節位置についてもAF評価値を示しているが(白点)、ステップS1におけるAF評価値の演算動作からは、実際にはデータは得られない。   In step S1, the focus lens 2 is driven by a predetermined amount within the distance measurement distance range (D1 to D2) set by the distance measurement range setting unit 13, and the AF evaluation value calculation circuit 14 performs AF evaluation value at each focus adjustment position. Perform the operation. FIG. 3 shows an example of the AF evaluation value when the subject is at infinity. For the purpose of explanation, the AF evaluation value is also shown for the focus adjustment position outside the distance measurement range (white point). No data is actually obtained from the AF evaluation value calculation operation in S1.

ステップS2において、取得したAF評価値を用いて被写体が測距距離範囲外にあるか否かを判定する。測距距離範囲の遠端よりも被写体が遠くにあるか否かを判定する場合には、取得したAF評価値を被写体距離の長い順にE[0]、E[1]、・・・E[n](nはAF評価値を演算した被写体距離の数より1小さい値)とし、また、取得したAF評価値の最大値をEmaxとすると、
E[0] = Emax、かつ、E[1] ー E[2] > 0
In step S2, it is determined whether or not the subject is out of the distance measuring distance range using the acquired AF evaluation value. When determining whether or not the subject is farther than the far end of the distance measuring range, the acquired AF evaluation values are E [0], E [1],... E [ n] (n is a value one smaller than the number of subject distances for which the AF evaluation value is calculated), and the maximum value of the acquired AF evaluation value is Emax.
E [0] = Emax and E [1]-E [2]> 0

を満足する場合に、測距距離範囲よりも遠い距離に被写体があると判定する。これにより、図3に示す例の場合には測距距離範囲よりも遠い距離に被写体があると判定されることが分かる。
また、測距距離範囲の近端よりも被写体が近くにあるか否かを判定する場合には、取得したAF評価値の内、被写体距離が短いAF評価値を用いて、同様に、
E[n] = Emax、かつ、E[n-1] ー E[n-2] > 0
Is satisfied, it is determined that the subject is at a distance farther than the distance measurement distance range. Thereby, in the example shown in FIG. 3, it turns out that it is determined that there is a subject at a distance farther than the distance measuring distance range.
In addition, when determining whether or not the subject is closer than the near end of the distance measuring distance range, among the acquired AF evaluation values, using the AF evaluation value with a short subject distance,
E [n] = Emax and E [n-1]-E [n-2]> 0

を満足する場合に、測距距離範囲よりも近い距離に被写体があると判定する。
ステップS3において、被写体が測距距離範囲外にあると判断した場合にはステップS4に進み、そうでない場合にはステップS5に進む。
Is satisfied, it is determined that the subject is at a distance closer than the distance measurement distance range.
If it is determined in step S3 that the subject is outside the distance measurement range, the process proceeds to step S4, and if not, the process proceeds to step S5.

ステップS4においては、被写体が測距距離範囲よりも遠くにあるか、近くにあるかに応じて、測距距離範囲外の予め設定しておいた焦点調節位置を合焦位置として設定する。   In step S4, a preset focus adjustment position outside the distance measurement range is set as a focus position depending on whether the subject is farther or closer than the distance measurement range.

一方、測距距離範囲内に被写体がある場合には、ステップS5において、合焦可能か否かを判定し、合焦可能な場合にはステップS6に進んでAF評価値が最も大きい被写体距離を合焦位置として決定し、被写体が暗い場合等、合焦不可能な場合には、ステップS7に進んで測距距離範囲内の所定焦点調節位置を合焦位置として設定する。   On the other hand, if there is a subject within the distance measuring distance range, it is determined in step S5 whether or not focusing is possible. If focusing is possible, the process proceeds to step S6 and the subject distance having the largest AF evaluation value is determined. When the focus position is determined and focus is impossible, such as when the subject is dark, the process proceeds to step S7, and a predetermined focus adjustment position within the distance measurement distance range is set as the focus position.

ステップS8において、ステップS4、S6、またはS7のいずれかで設定した合焦位置にフォーカスレンズ2を駆動する。   In step S8, the focus lens 2 is driven to the in-focus position set in any of steps S4, S6, or S7.

なお、本実施の形態で使用する測距距離範囲は、例えば、予め決められた固定の測距距離範囲を記憶しておいたり、デジタルカメラがレンズ交換式である場合には、取り付け可能なレンズに応じて(具体的には、焦点距離や、製品の種類に応じて)予め測距距離範囲を記憶しておき、取り付けられたレンズに応じて記憶してある測距距離範囲の1つを選択したり、撮影モード(風景撮影モード、人物撮影モード、接写モード等)に応じて予め測距距離範囲を記憶しておき、設定された撮影モードに応じて記憶してある測距距離範囲の1つを選択したり、ユーザーが任意に設定するなど、様々な方法が考えられる。   The distance measurement range used in the present embodiment is, for example, a fixed distance measurement distance range determined in advance, or a lens that can be attached when the digital camera is an interchangeable lens type. (Specifically, according to the focal length and product type), a distance measuring distance range is stored in advance, and one of the distance measuring distance ranges stored according to the attached lens is stored. The distance measurement distance range is stored in advance according to the selected shooting mode (landscape shooting mode, portrait shooting mode, close-up shooting mode, etc.), and the distance measurement distance range stored in accordance with the set shooting mode is stored. Various methods are conceivable, such as selecting one or setting the user arbitrarily.

特に、無限点から被写界深度分近い距離を測距距離範囲の遠端とし(図3のD1)、無限点とD1の中間点(つまり、過焦点距離)を、被写体が測距距離範囲よりも遠くにある場合の測距距離範囲外の合焦位置として設定しておけば、図3に示す例のように被写体が測距距離範囲よりも遠くにあると判断された場合、被写体距離D1〜無限遠の範囲に存在する被写体が被写界深度内に存在することになるため、どの距離にあっても被写体にほぼ合焦することが可能となる。したがって、測距距離範囲外に被写体があると判定された場合でも合焦可能となる。このように、測距距離範囲と上記測距距離範囲外の合焦位置をうまく調整することにより、測距距離範囲がD1〜D2と限定されているにも関わらず、実際にピントの合う範囲を無限遠〜D2とすることが可能となる。   In particular, the distance close to the depth of field from the infinite point is set as the far end of the distance measuring range (D1 in FIG. 3), and the object is located at the intermediate point between the infinite point and D1 (ie, the hyperfocal distance) If it is set as the in-focus position outside the distance measurement range when it is farther than the object distance, the object distance is determined when it is determined that the object is farther than the distance measurement distance range as shown in FIG. Since the subject existing in the range from D1 to infinity exists within the depth of field, the subject can be substantially focused at any distance. Therefore, it is possible to focus even when it is determined that the subject is outside the distance measurement distance range. Thus, by adjusting the distance measurement distance range and the in-focus position outside the distance measurement distance range, the distance measurement distance range is limited to D1 to D2, but the actual focus range From infinity to D2.

上記の通り本実施の形態によれば、測距距離範囲外に被写体があると判定された場合には測距距離範囲外にフォーカス位置を制御し、測距距離範囲内に被写体があると判定された場合には測距結果の位置にフォーカス制御を行うことが可能となり、測距距離範囲外の被写体に対しても合焦状態を得やすくすることができる。   As described above, according to the present embodiment, when it is determined that there is a subject outside the distance measuring distance range, the focus position is controlled outside the distance measuring distance range, and it is determined that the subject is within the distance measuring range. In this case, it is possible to perform focus control on the position of the distance measurement result, and it is possible to easily obtain a focused state for a subject outside the distance measurement distance range.

なお、上記実施の形態では、本発明の焦点調節装置をデジタルカメラに搭載した場合について説明したが、デジタルカメラに限るものではなく、撮像した画像の合焦状態を演算可能であれば、焦点調節を行う撮像装置全般に本発明の焦点調節装置または方法を適用可能であることは言うまでもない。   In the above embodiment, the case where the focus adjustment device of the present invention is mounted on a digital camera has been described. However, the present invention is not limited to a digital camera. If the focus state of a captured image can be calculated, the focus adjustment is performed. Needless to say, the focus adjustment apparatus or method of the present invention can be applied to any imaging apparatus that performs the above.

<他の実施形態>
本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。ここでプログラムコードを記憶する記憶媒体としては、例えば、フレキシブルディスク、ハードディスク、ROM、RAM、磁気テープ、不揮発性のメモリカード、CD−ROM、CD−R、DVD、光ディスク、光磁気ディスク、MOなどが考えられる。また、LAN(ローカル・エリア・ネットワーク)やWAN(ワイド・エリア・ネットワーク)などのコンピュータネットワークを、プログラムコードを供給するために用いることができる。
<Other embodiments>
An object of the present invention is to supply a storage medium (or recording medium) in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus. Needless to say, this can also be achieved by reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a case where the function of the above-described embodiment is realized by performing part or all of the actual processing and the processing is included. Examples of the storage medium for storing the program code include a flexible disk, hard disk, ROM, RAM, magnetic tape, nonvolatile memory card, CD-ROM, CD-R, DVD, optical disk, magneto-optical disk, MO, and the like. Can be considered. Also, a computer network such as a LAN (Local Area Network) or a WAN (Wide Area Network) can be used to supply the program code.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Furthermore, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function is based on the instruction of the program code. It goes without saying that the CPU or the like provided in the expansion card or the function expansion unit performs part or all of the actual processing and the functions of the above-described embodiments are realized by the processing.

本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明した図2に示すフローチャートに対応するプログラムコードが格納されることになる。   When the present invention is applied to the above-described storage medium, the program code corresponding to the flowchart shown in FIG. 2 described above is stored in the storage medium.

本発明の実施の形態に係るデジタルカメラの概略構成を説明するブロック図である。1 is a block diagram illustrating a schematic configuration of a digital camera according to an embodiment of the present invention. 本発明の実施の形態におけるフォーカス動作を示すフローチャートである。It is a flowchart which shows the focus operation | movement in embodiment of this invention. 本発明の実施の形態における無限遠に被写体がある場合のAF評価値の例を示す図である。It is a figure which shows the example of AF evaluation value when a to-be-photographed object exists in infinity in embodiment of this invention.

符号の説明Explanation of symbols

1 光学系
2 フォーカスレンズ
3 撮像素子
4 前置処理回路
5 A/D変換器
6 メモリコントローラ
7 メモリ
8 記録媒体
9 SW1
10 SW2
11 制御部
12 フォーカスレンズ駆動回路
13 測距範囲設定部
14 AF評価値演算回路
15 合焦位置決定部
DESCRIPTION OF SYMBOLS 1 Optical system 2 Focus lens 3 Image pick-up element 4 Pre-processing circuit 5 A / D converter 6 Memory controller 7 Memory 8 Recording medium 9 SW1
10 SW2
DESCRIPTION OF SYMBOLS 11 Control part 12 Focus lens drive circuit 13 Distance measurement range setting part 14 AF evaluation value calculation circuit 15 Focus position determination part

Claims (14)

被写体を撮影して得た画像信号に基づいて、フォーカスレンズの位置を移動して焦点調節を行う焦点調節装置であって、
前記フォーカスレンズを所定量ずつ移動するように制御する制御手段と、
前記フォーカスレンズの移動可能範囲の一部を特定する移動範囲を設定する設定手段と、
前記移動範囲内で、前記フォーカスレンズを前記所定量ずつ移動した各位置で撮影した画像信号を用いて、各位置での合焦状態を検出する検出手段と、
前記検出された合焦状態から、前記移動範囲内に合焦位置が存在するか否かを判断し、合焦位置が存在すると判断した場合には、前記合焦状態に基づいて合焦位置を決定し、合焦位置が存在しないと判断した場合には、前記移動範囲外の予め設定した所定位置を合焦位置として決定する合焦位置決定手段と
を有することを特徴とする焦点調節装置。
A focus adjustment device that performs focus adjustment by moving the position of a focus lens based on an image signal obtained by photographing a subject,
Control means for controlling the focus lens to move by a predetermined amount;
Setting means for setting a moving range for specifying a part of the movable range of the focus lens;
Detecting means for detecting a focused state at each position using an image signal captured at each position where the focus lens is moved by the predetermined amount within the moving range;
From the detected focus state, it is determined whether or not a focus position exists within the movement range, and when it is determined that a focus position exists, the focus position is determined based on the focus state. And a focus position determining unit that determines a predetermined position outside the movement range as the focus position when it is determined that the focus position does not exist.
前記判断手段は、前記移動範囲内に合焦位置が存在しない場合に、合焦位置が前記移動範囲に対して、無限点側にあるか、至近側にあるかを判断し、前記合焦位置決定手段は、合焦位置があると判断された側の前記所定位置を合焦位置として決定することを特徴とする請求項1に記載の焦点調節装置。   The determination means determines whether the in-focus point is on the infinite point side or the near side with respect to the movement range when the in-focus position does not exist within the movement range, and the in-focus position The focus adjustment apparatus according to claim 1, wherein the determining unit determines the predetermined position on the side determined to have the in-focus position as the in-focus position. 前記移動範囲に過焦点位置が含まれず、前記判定手段が前記移動範囲に対して無限点側に合焦位置が存在すると判断した場合に、前記合焦位置決定手段は過焦点位置を合焦位置として決定することを特徴とする請求項2に記載の焦点調節装置。   When the movement range does not include an overfocus position and the determination unit determines that a focus position exists on the infinite point side with respect to the movement range, the focus position determination unit determines the overfocus position as the focus position. The focus adjustment apparatus according to claim 2, wherein the focus adjustment apparatus is determined as follows. 前記設定手段は、無限点から被写界深度分の距離を近づけた距離に対応する前記フォーカスレンズの位置を、前記移動範囲の遠端として設定することを特徴とする請求項1乃至3のいずれかに記載の焦点調節装置。   The said setting means sets the position of the said focus lens corresponding to the distance close | similar to the distance for the depth of field from the infinite point as a far end of the said movement range, Any one of Claim 1 thru | or 3 characterized by the above-mentioned. A focus adjustment device according to claim 1. 前記設定手段は、使用するレンズの焦点距離、種類、撮影モードの少なくともいずれかに応じて前記移動範囲を設定することを特徴とする請求項1乃至4のいずれかに記載の焦点調節装置。   5. The focus adjustment apparatus according to claim 1, wherein the setting unit sets the movement range according to at least one of a focal length, a type, and a shooting mode of a lens to be used. 前記設定手段は、ユーザによる指示に応じて前記移動範囲を設定することを特徴とする請求項1乃至4のいずれかに記載の焦点調節装置。   The focus adjustment apparatus according to claim 1, wherein the setting unit sets the movement range in accordance with an instruction from a user. 被写体を撮影して得た画像信号に基づいて、フォーカスレンズの位置を移動して焦点調節を行う焦点調節方法であって、
前記フォーカスレンズの移動可能範囲の一部を特定する移動範囲を設定する設定工程と、
前記移動範囲内で、前記フォーカスレンズを所定量ずつ移動し、移動した各位置で撮影した画像信号を用いて、各位置での合焦状態を検出する検出工程と、
前記検出された合焦状態から、前記移動範囲内に合焦位置が存在するか否かを判断する判断工程と、
合焦位置が存在すると判断した場合には、前記合焦状態に基づいて合焦位置を決定し、合焦位置が存在しないと判断した場合には、前記移動範囲外の予め設定した所定位置を合焦位置として決定する合焦位置決定工程と
を有することを特徴とする焦点調節方法。
A focus adjustment method for performing focus adjustment by moving the position of a focus lens based on an image signal obtained by photographing a subject,
A setting step for setting a movement range for specifying a part of the movable range of the focus lens;
Within the movement range, the focus lens is moved by a predetermined amount, and using the image signal photographed at each moved position, a detection step for detecting a focused state at each position;
A determination step of determining whether or not a focus position exists within the movement range from the detected focus state;
When it is determined that the in-focus position exists, the in-focus position is determined based on the in-focus state. When it is determined that the in-focus position does not exist, a predetermined position outside the movement range is set. And a focus position determination step for determining the focus position.
前記判断工程では、前記移動範囲内に合焦位置が存在しない場合に、合焦位置が前記移動範囲に対して、無限点側にあるか、至近側にあるかを判断し、前記合焦位置決定工程では、合焦位置があると判断された側の前記所定位置を合焦位置として決定することを特徴とする請求項7に記載の焦点調節方法。   In the determining step, when there is no in-focus position within the movement range, it is determined whether the in-focus position is on the infinite point side or the near side with respect to the movement range, and the in-focus position The focus adjustment method according to claim 7, wherein, in the determining step, the predetermined position on the side determined to be in focus is determined as the focus position. 前記移動範囲に過焦点位置が含まれず、前記判定工程が前記移動範囲に対して無限点側に合焦位置が存在すると判断した場合に、前記合焦位置決定工程では過焦点位置を合焦位置として決定することを特徴とする請求項8に記載の焦点調節方法。   If the movement range does not include an overfocus position and the determination step determines that a focus position exists on the infinite point side with respect to the movement range, the focus position determination step determines the overfocus position as the focus position. The focus adjustment method according to claim 8, wherein the focus adjustment method is determined as follows. 前記設定工程では、無限点から被写界深度分の距離を近づけた距離に対応する前記フォーカスレンズの位置を、前記移動範囲の遠端として設定することを特徴とする請求項7乃至9のいずれかに記載の焦点調節方法。   10. The setting step, wherein the position of the focus lens corresponding to a distance close to the distance corresponding to the depth of field from an infinite point is set as a far end of the moving range. The focus adjustment method according to any one of the above. 前記設定工程では、使用するレンズの焦点距離、種類、撮影モードの少なくともいずれかに応じて前記移動範囲を設定することを特徴とする請求項7乃至10のいずれかに記載の焦点調節方法。   The focus adjustment method according to claim 7, wherein in the setting step, the moving range is set according to at least one of a focal length, a type, and a shooting mode of a lens to be used. 前記設定工程では、ユーザによる指示に応じて前記移動範囲を設定することを特徴とする請求項7乃至10のいずれかに記載の焦点調節方法。   The focus adjustment method according to claim 7, wherein, in the setting step, the movement range is set in accordance with an instruction from a user. 請求項7乃至12のいずれかに記載の焦点調節方法を実現するためのプログラムコードを有することを特徴とする情報処理装置が実行可能なプログラム。   A program executable by an information processing apparatus, comprising program code for realizing the focus adjustment method according to claim 7. 請求項13に記載のプログラムを記憶したことを特徴とする情報処理装置が読み取り可能な記憶媒体。   A storage medium readable by an information processing apparatus, wherein the program according to claim 13 is stored.
JP2004228016A 2004-08-04 2004-08-04 Focus adjusting device and method Withdrawn JP2006047645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004228016A JP2006047645A (en) 2004-08-04 2004-08-04 Focus adjusting device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004228016A JP2006047645A (en) 2004-08-04 2004-08-04 Focus adjusting device and method

Publications (1)

Publication Number Publication Date
JP2006047645A true JP2006047645A (en) 2006-02-16

Family

ID=36026274

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004228016A Withdrawn JP2006047645A (en) 2004-08-04 2004-08-04 Focus adjusting device and method

Country Status (1)

Country Link
JP (1) JP2006047645A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006171588A (en) * 2004-12-20 2006-06-29 Casio Comput Co Ltd Imaging apparatus and program
JP2009092961A (en) * 2007-10-10 2009-04-30 Casio Comput Co Ltd Focusing position control device, focusing position control method, and focusing position control program
JP2012049998A (en) * 2010-08-30 2012-03-08 Samsung Electronics Co Ltd Imaging device, photographing mode selecting method and computer program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006171588A (en) * 2004-12-20 2006-06-29 Casio Comput Co Ltd Imaging apparatus and program
JP2009092961A (en) * 2007-10-10 2009-04-30 Casio Comput Co Ltd Focusing position control device, focusing position control method, and focusing position control program
JP2012049998A (en) * 2010-08-30 2012-03-08 Samsung Electronics Co Ltd Imaging device, photographing mode selecting method and computer program

Similar Documents

Publication Publication Date Title
JP4262272B2 (en) POINT ADJUSTMENT DEVICE, IMAGING DEVICE, FOCUS ADJUSTMENT DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
US6970646B2 (en) Focus control apparatus, image sensor, program and storage medium
JP5483953B2 (en) Focus adjustment device, focus adjustment method and program
US8203643B2 (en) Automatic focusing device
JP4946337B2 (en) Autofocus device and camera
JP5213813B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP4543602B2 (en) camera
JP2008020710A (en) Photographing device and focus adjusting method
JP2011248159A (en) Imaging apparatus, imaging system, imaging apparatus control method and program
JP6900161B2 (en) Focus adjustment device and imaging device
JP2008054177A (en) Imaging apparatus
JP2009037263A (en) Point adjusting device, imaging device, control method for focus adjusting device, program, and recording medium
JP2014013368A (en) Imaging apparatus and control method thereof
JP4500789B2 (en) Focus adjustment apparatus and program
JP5744501B2 (en) Focus adjustment apparatus, control method thereof, and program
JP2007011054A (en) Imaging apparatus, control method for imaging apparatus and computer program
JP2006047645A (en) Focus adjusting device and method
JP4574559B2 (en) Imaging device, focus position detection device, and focus position detection method
JP2006330394A (en) Autofocus device
JP4769667B2 (en) Imaging device
JP2006293383A (en) Automatic focusing device, digital camera, portable information input device, method for detecting focusing position, and computer-readable storage medium
JP2006157604A (en) Camera apparatus and automatic photographing control program
JP2006330160A (en) Autofocus camera
JP3977406B2 (en) Autofocus device, autofocus method, imaging device, program, storage medium
JP4960730B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM

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