JP2007072095A - Imaging method and imaging apparatus - Google Patents

Imaging method and imaging apparatus Download PDF

Info

Publication number
JP2007072095A
JP2007072095A JP2005257849A JP2005257849A JP2007072095A JP 2007072095 A JP2007072095 A JP 2007072095A JP 2005257849 A JP2005257849 A JP 2005257849A JP 2005257849 A JP2005257849 A JP 2005257849A JP 2007072095 A JP2007072095 A JP 2007072095A
Authority
JP
Japan
Prior art keywords
signal
evaluation value
luminance
focus
imaging
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.)
Pending
Application number
JP2005257849A
Other languages
Japanese (ja)
Inventor
Hisashige Sogawa
久茂 祖川
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2005257849A priority Critical patent/JP2007072095A/en
Publication of JP2007072095A publication Critical patent/JP2007072095A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent wrong focus control from being performed due to high-luminance subject. <P>SOLUTION: An evaluated value SC, which is not processed to remove high luminance, is set as an evaluated value used for AF processing. Whether an entire screen is dark is decided in S11, and whether the entire screen is very bright is decided in S13. When it is decided that the overall screen is dark or very bright and that a high luminance part, such as a bright spot exists in the entire dark screen in S12, whether a difference between the presence of a high-luminance mask and the absence of the high-luminance mask is equal to or larger than a predetermined value is decided in S15. When the difference between the presence of the high-luminance mask and the absence of the high-luminance mask is not equal to or larger than the predetermined value, processing is finished. When the difference is equal to or higher than the predetermined value, processing that the focal position is not taken as a focusing position is performed in S16. Thus, a peak due to the high-luminance subject is decided as being false and is excluded from the candidates for focusing position, and the AF processing is performed based on the evaluated value SC. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

この発明は、静止画、動画等を得ることができる撮像方法および撮像装置に関する。   The present invention relates to an imaging method and an imaging apparatus capable of obtaining a still image, a moving image, and the like.

撮像装置において、合焦位置では、撮像信号中の中高域成分のレベルの積分値が最大となることを利用したフォーカス制御装置が提案されている。下記特許文献1に記載されているように、撮像信号中の中高域成分をハイパスフィルタによって抽出し、抽出された中高域成分を積分して評価値を得、評価値最大となるように、フォーカス位置が制御される。   In the imaging apparatus, there has been proposed a focus control apparatus that utilizes the fact that the integrated value of the level of the middle and high frequency components in the imaging signal becomes maximum at the in-focus position. As described in Patent Document 1 below, the middle and high frequency components in the imaging signal are extracted by a high-pass filter, the extracted middle and high frequency components are integrated to obtain an evaluation value, and the focus is set to maximize the evaluation value. The position is controlled.

特開平3−243071号公報Japanese Patent Laid-Open No. 3-243071

このようなオートフォーカス装置では、被写体にビデオライト、蛍光灯、光を反射している鏡等の高輝度部分が存在すると、撮像信号中の中高輝度成分のレベルが非常に大きくなる。したがって、中高輝度成分を積分して得られる評価値に高輝度の部分が含まれ、オートフォーカス用の評価値としては、正しくない値となる。その理由は、輝点のような高輝度部分は、非合焦状態でボケた画像でも積分した結果の評価値が比較的大きな値となるからである。   In such an autofocus device, when a high-luminance part such as a video light, a fluorescent lamp, or a mirror reflecting light is present on the subject, the level of the medium-high luminance component in the imaging signal becomes very large. Accordingly, the evaluation value obtained by integrating the medium and high luminance components includes a high luminance portion, and the evaluation value for autofocus is an incorrect value. The reason for this is that a high luminance portion such as a bright spot has a relatively large evaluation value as a result of integration even in a blurred image in an out-of-focus state.

特許文献1では、かかる問題を解決するために、撮像信号中と所定レベルの閾値とを比較し、閾値以上の撮像信号をマスキングするようにしている。図7を参照して特許文献1に記載されている処理を説明する。   In Patent Document 1, in order to solve such a problem, the imaging signal is compared with a threshold of a predetermined level, and an imaging signal equal to or higher than the threshold is masked. The process described in Patent Document 1 will be described with reference to FIG.

図7Aが撮像された画像信号(輝度信号)のレベル変化の一例を1次元方向例えば水平方向に示すものであり、比較的高輝度レベルのレベルを有する閾値THR1がが設定される。図7において、T1,T2,T3,・・・は、クロック信号によって規定されるタイミングを示している。このタイミングは、1画素間隔または数画素の間隔に対応している。図7Bは、画像信号をハイパスフィルタに供給することが得られた中高域成分の信号を示す。中高域成分は、各間隔の前後のレベル変化量(レベルの差分の絶対値)の大小と対応したレベルを有する。中高域成分のレベルとコントラストとが対応するので、中高域成分の変化の信号をコントラスト信号と称する。   FIG. 7A shows an example of a level change of a captured image signal (luminance signal) in a one-dimensional direction, for example, a horizontal direction, and a threshold value THR1 having a relatively high luminance level is set. In FIG. 7, T1, T2, T3,... Indicate timings defined by the clock signal. This timing corresponds to an interval of one pixel or an interval of several pixels. FIG. 7B shows a signal of a mid-high frequency component obtained by supplying the image signal to the high-pass filter. The mid-high range component has a level corresponding to the level change amount (absolute value of level difference) before and after each interval. Since the level of the mid-high frequency component corresponds to the contrast, the signal of the change of the mid-high frequency component is referred to as a contrast signal.

撮影画像中に1または複数のフォーカス制御用の枠が設定され、各枠において、評価値が求められる。フォーカスレンズの位置の変化範囲内に複数のサンプリング点が設定され、各サンプリング点において、図7Bに示すようなコントラスト信号から評価値が計算される。例えば枠の中の水平方向のコントラスト信号のピーク値を評価値としたり、水平方向のコントラスト信号をさらに垂直方向に積分して評価値を求めたりされる。合焦位置では、画像がボケていないので、コントラストが大となる。そして、フォーカス位置の変化範囲の各サンプリング点の評価値のピークの最大の位置が合焦位置とされ、その位置にフォーカスレンズが制御される。   One or a plurality of focus control frames are set in the captured image, and an evaluation value is obtained in each frame. A plurality of sampling points are set within the change range of the focus lens position, and an evaluation value is calculated from the contrast signal as shown in FIG. 7B at each sampling point. For example, the peak value of the horizontal contrast signal in the frame is used as an evaluation value, or the evaluation value is obtained by further integrating the horizontal contrast signal in the vertical direction. Since the image is not blurred at the in-focus position, the contrast becomes large. Then, the maximum position of the evaluation value peak of each sampling point in the change range of the focus position is set as the focus position, and the focus lens is controlled at that position.

図7Aにおいては、画像信号の中でT11の前後のレベルが閾値THR1を超えるものとなっている。したがって、タイミングT11の前後の2個の間隔をマスクするマスク幅Aによって、図7Cに示すように、コントラスト信号中のタイミングT10−T12の期間が除去される。しかしながら、マスク幅Aによっては、除去幅が小さすぎ、除去できない高輝度部分が残る問題がある。   In FIG. 7A, the levels before and after T11 in the image signal exceed the threshold value THR1. Therefore, as shown in FIG. 7C, the period of the timing T10-T12 in the contrast signal is removed by the mask width A that masks the two intervals before and after the timing T11. However, depending on the mask width A, the removal width is too small, and there is a problem that a high-luminance portion that cannot be removed remains.

次に、閾値THR1のレベルをより小さくし、タイミングT11を中心として前後2個の間隔、すなわち、タイミングT9−T13までの期間をマスクするマスク幅Bを設定する。図7Dに示すように、マスク幅Bによって、高輝度部分を全て除去することができる。   Next, the level of the threshold value THR1 is further reduced, and a mask width B for masking two intervals before and after the timing T11, that is, a period from the timing T9 to T13 is set. As shown in FIG. 7D, the high-intensity portion can be completely removed by the mask width B.

さらに、閾値THR1を小さくして、タイミングT11を中心として前後5個の間隔、すなわち、タイミングT6−T16までの期間をマスクするマスク幅Cを設定する。図7Eに示すように、マスク幅Cは、除去する幅が広すぎるので、高輝度によるコントラスト信号以外のコントラスト信号(T6−T9)をも除去してしまう問題が生じる。   Further, the threshold value THR1 is reduced, and a mask width C for masking the interval between the timing T11 and the previous five intervals, that is, the period from the timing T6 to T16, is set. As shown in FIG. 7E, since the mask width C is too wide to be removed, there arises a problem that the contrast signal (T6-T9) other than the high-contrast contrast signal is also removed.

このように、特許文献1に記載の方法は、マスク幅が小さすぎると、高輝度被写体によるコントラスト信号を除去することができず、一方、マスク幅が広すぎると、実際にコントラストがある被写体を検出することができない問題があった。すなわち、閾値のレベルを適切に設定することが非常に困難であった。   As described above, the method described in Patent Document 1 cannot remove a contrast signal due to a high-brightness subject if the mask width is too small, whereas if the mask width is too wide, an object having actual contrast can be removed. There was a problem that could not be detected. That is, it is very difficult to set the threshold level appropriately.

したがって、この発明の目的は、高輝度被写体によるコントラスト信号の除去するための閾値レベルの設定の困難なことを解消した撮像方法および撮像装置を提供することにある。   Accordingly, an object of the present invention is to provide an imaging method and an imaging apparatus that eliminate the difficulty of setting a threshold level for removing a contrast signal from a high-luminance subject.

上述した課題を解決するために、この発明は、フォーカスレンズを通じて被写体を撮像し、該被写体光を電気的信号に変換する撮像ステップと、
撮像ステップで得られた輝度信号中の中高域成分に基づいて第1のフォーカス制御用信号を抽出する信号抽出ステップと、
第1のフォーカス制御用信号の高輝度部分を除去した第2のフォーカス制御用信号を抽出する信号抽出ステップと、
第1のフォーカス制御用信号からフォーカスレンズの位置に応じて第1の評価値を生成する評価信号生成ステップと、
第2のフォーカス制御用信号からフォーカスレンズの位置に応じて第2の評価値を生成する評価信号生成ステップと、
レンズ位置がほぼ同一の位置における第1の評価値と第2の評価値との差を検出し、検出された差が大きい場合に、第1の評価値を合焦位置の候補から除外する比較ステップと、
比較ステップの処理がなされた上記第1の評価値と、比較ステップの処理がなされない第1の評価値の両方を使用してフォーカスレンズの位置を制御するステップと
からなる撮像方法である。
In order to solve the above-described problems, the present invention captures an object through a focus lens and converts the object light into an electrical signal.
A signal extraction step of extracting the first focus control signal based on the middle and high frequency components in the luminance signal obtained in the imaging step;
A signal extraction step of extracting a second focus control signal from which a high-luminance portion of the first focus control signal is removed;
An evaluation signal generating step for generating a first evaluation value according to the position of the focus lens from the first focus control signal;
An evaluation signal generating step for generating a second evaluation value from the second focus control signal according to the position of the focus lens;
A comparison in which the difference between the first evaluation value and the second evaluation value at the positions where the lens positions are substantially the same is detected, and the first evaluation value is excluded from the focus position candidates when the detected difference is large. Steps,
An imaging method comprising the step of controlling the position of the focus lens using both the first evaluation value processed in the comparison step and the first evaluation value not processed in the comparison step.

この発明、フォーカスレンズを通じて被写体を撮像し、該被写体光を電気的信号に変換する撮像手段と、
撮像手段で得られた輝度信号中の中高域成分に基づいて第1のフォーカス制御用信号を抽出する信号抽出手段と、
第1のフォーカス制御用信号の高輝度部分を除去した第2のフォーカス制御用信号を抽出する信号抽出手段と、
第1のフォーカス制御用信号からフォーカスレンズの位置に応じて第1の評価値を生成する評価信号生成手段と、
第2のフォーカス制御用信号からフォーカスレンズの位置に応じて第2の評価値を生成する評価信号生成手段と、
レンズ位置がほぼ同一の位置における第1の評価値と第2の評価値との差を検出し、検出された差が大きい場合に、第1の評価値を合焦位置の候補から除外する比較手段と、
比較手段の処理がなされた第1の評価値に基づいてフォーカスレンズの位置を制御する手段と
からなる撮像装置である。
An imaging means for imaging a subject through a focus lens and converting the subject light into an electrical signal;
Signal extraction means for extracting a first focus control signal based on a middle-high frequency component in the luminance signal obtained by the imaging means;
Signal extraction means for extracting a second focus control signal from which a high-luminance portion of the first focus control signal is removed;
An evaluation signal generating means for generating a first evaluation value from the first focus control signal according to the position of the focus lens;
An evaluation signal generating means for generating a second evaluation value according to the position of the focus lens from the second focus control signal;
A comparison in which the difference between the first evaluation value and the second evaluation value at the positions where the lens positions are substantially the same is detected, and the first evaluation value is excluded from the focus position candidates when the detected difference is large. Means,
An image pickup apparatus including means for controlling the position of the focus lens based on the first evaluation value processed by the comparison means.

この発明によれば、高輝度被写体によるピントボケを防止することができる。この発明では、高輝度を除去するための設定幅を小さくし、全ての高輝度被写体によるコントラスト信号を除去できなくても、高輝度被写体による偽のピークを検出し、正しく合焦することができる。この発明では、設定幅を小さくすることによって回路規模を小さくすることができる。   According to the present invention, it is possible to prevent out-of-focus due to a high-luminance subject. In the present invention, the setting range for removing high brightness is reduced, and even if the contrast signal from all high brightness subjects cannot be removed, a false peak due to the high brightness subject can be detected and correctly focused. . In the present invention, the circuit scale can be reduced by reducing the set width.

以下、この発明の一実施の形態による撮像装置について図面を参照しながら説明する。一実施の形態の全体の構成が図1に示されている。図1において、参照符号1は、フォーカスレンズ群を示す。フォーカスレンズ群1を通過した被写体光がCCD(Charge Coupled Device)、CMOS(Complementary Metal Oxide Semiconductor)等の素子を利用した
撮像素子2に入射され、撮像素子2から被写体光に応じた撮像信号が得られる。なお 撮像装置の一例は、ディジタルカメラであるが、PDA(Personal Digital Assistants)、
携帯電話機等であっても良く、また、動画を撮影する装置であっても良い。
An imaging apparatus according to an embodiment of the present invention will be described below with reference to the drawings. The overall configuration of one embodiment is shown in FIG. In FIG. 1, reference numeral 1 indicates a focus lens group. Subject light that has passed through the focus lens group 1 is incident on an image sensor 2 using an element such as a CCD (Charge Coupled Device) or CMOS (Complementary Metal Oxide Semiconductor), and an image signal corresponding to the subject light is obtained from the image sensor 2. It is done. An example of the imaging device is a digital camera, but a PDA (Personal Digital Assistants),
It may be a mobile phone or the like, or may be a device that captures moving images.

撮像素子2からの撮像信号がAGC(Automatic Gain Control)3に供給され、AGC
3において、レベルが制御された撮像信号がA/Dコンバータ4に供給され、アナログ撮像信号からディジタル撮像信号へ変換される。A/Dコンバータ4からのディジタル撮像信号がディジタル画像処理部5およびオプティカルディテクタ8に供給される。
An imaging signal from the imaging device 2 is supplied to an AGC (Automatic Gain Control) 3, and AGC
3, the image pickup signal whose level is controlled is supplied to the A / D converter 4 and converted from an analog image pickup signal to a digital image pickup signal. A digital image pickup signal from the A / D converter 4 is supplied to the digital image processing unit 5 and the optical detector 8.

ディジタル画像処理部5において撮像信号が処理される。ディジタル画像処理部5の出力信号がメモリカード等の記録メディア6に記録されると共に、LCD(Liquid Crystal Display)等の画像表示部7に表示される。オプティカルディテクタ8によってオートフ
ォーカス制御のためのAF(Auto Focus)用信号であるコントラスト信号が生成される。オプティカルディテクタ8では、コントラスト信号以外に、自動露光用の信号およびオートホワイトバランス用の信号が生成される。
The image signal is processed in the digital image processing unit 5. The output signal of the digital image processing unit 5 is recorded on a recording medium 6 such as a memory card and displayed on an image display unit 7 such as an LCD (Liquid Crystal Display). The optical detector 8 generates a contrast signal that is an AF (Auto Focus) signal for autofocus control. In addition to the contrast signal, the optical detector 8 generates an automatic exposure signal and an auto white balance signal.

オプティカルディテクタ8で生成されたコントラスト信号がシステムコントローラ9に供給される。システムコントローラ9は、例えばマイクロコンピュータからなり、撮像装置全体を制御すると共に、オプティカルディテクタ8から供給されるコントラスト信号から高輝度部分を除去する幅を設定し、高輝度部分除去後のコントラスト信号を形成し、高輝度部分除去後のコントラスト信号から求めた評価値と、高輝度部分を除去しないコントラスト信号から求めた評価値との両方を使用して合焦位置を計算する。合焦位置が得られるように、システムコントローラ9がモータ駆動信号を生成し、生成したモータ駆動信号をモータ駆動回路10に対して出力する。モータ駆動回路10によってフォーカスレンズ群1が合焦位置となるように制御される。   The contrast signal generated by the optical detector 8 is supplied to the system controller 9. The system controller 9 is composed of, for example, a microcomputer, controls the entire imaging apparatus, sets a width for removing a high-luminance portion from the contrast signal supplied from the optical detector 8, and forms a contrast signal after removal of the high-luminance portion. Then, the in-focus position is calculated using both the evaluation value obtained from the contrast signal after removal of the high luminance part and the evaluation value obtained from the contrast signal from which the high luminance part is not removed. The system controller 9 generates a motor drive signal so that the in-focus position can be obtained, and outputs the generated motor drive signal to the motor drive circuit 10. The focus lens group 1 is controlled by the motor drive circuit 10 so as to be in the in-focus position.

図2は、オプティカルディテクタ8内部のコントラスト信号抽出部分の構成を示す。ディジタル画像信号が輝度信号生成回路81に供給され、輝度信号が生成される。生成された輝度信号が抽出手段としてのフィルタ演算回路82および高輝度判定手段としての高輝度カウンタ84に供給される。フィルタ演算回路82は、輝度信号中の中高域成分を抽出し、中高域成分に対応するコントラスト信号をそのまま出力すると共に、コントラスト信号を高輝度除去回路83に供給する。高輝度除去回路83から高輝度周辺部分が除去された高輝度除去後のコントラスト信号が得られる。これらのコントラスト信号がシステムコントローラ9に供給され、フォーカス制御のための評価値の生成に使用される。   FIG. 2 shows a configuration of a contrast signal extraction portion inside the optical detector 8. The digital image signal is supplied to the luminance signal generation circuit 81, and a luminance signal is generated. The generated luminance signal is supplied to a filter arithmetic circuit 82 serving as an extraction unit and a high luminance counter 84 serving as a high luminance determination unit. The filter calculation circuit 82 extracts the middle and high frequency components in the luminance signal, outputs the contrast signal corresponding to the middle and high frequency components as it is, and supplies the contrast signal to the high luminance removal circuit 83. The contrast signal after high luminance removal from which the high luminance peripheral portion is removed from the high luminance removal circuit 83 is obtained. These contrast signals are supplied to the system controller 9 and used to generate an evaluation value for focus control.

高輝度カウンタ84は、画像信号の各画素レベルを閾値と比較し、例えば閾値以上の画素を高輝度と判定し,高輝度除去用信号を発生する。高輝度除去用信号が高輝度除去回路83に供給され、高輝度周辺部分を除去するのに使用される。また、高輝度カウンタ84のカウント値がシステムコントローラ9に供給される。   The high-intensity counter 84 compares each pixel level of the image signal with a threshold value, determines, for example, pixels that are equal to or higher than the threshold value as high-intensity, and generates a high-intensity removal signal. A high luminance removal signal is supplied to the high luminance removal circuit 83 and used to remove the high luminance peripheral portion. Further, the count value of the high luminance counter 84 is supplied to the system controller 9.

なお、図2に示すオプティカルディテクタ8の構成要素である輝度信号生成回路81、フィルタ演算回路82、高輝度除去回路83および高輝度カウンタ8に対しては、システムコントローラ9から制御信号が供給される。この制御信号によって、例えば1枚の画像中の所定の部分例えば中央付近の枠の画像に注目して評価値を生成したり、複数の評価枠の画像に注目して評価値を生成する場合の枠の切り換え制御が可能である。評価値は、設定された枠毎に求められる。   Note that a control signal is supplied from the system controller 9 to the luminance signal generation circuit 81, the filter operation circuit 82, the high luminance removal circuit 83, and the high luminance counter 8 which are components of the optical detector 8 shown in FIG. . With this control signal, for example, when an evaluation value is generated by paying attention to a predetermined part of an image, for example, an image of a frame near the center, or an evaluation value is generated by paying attention to images of a plurality of evaluation frames. Frame switching control is possible. The evaluation value is obtained for each set frame.

ここで、高輝度除去前のコントラスト信号から生成された評価値SCおよび高輝度除去後のコントラスト信号から生成された評価値SRについて図3を参照して説明する。ここで、評価値は、各枠のコントラスト信号の水平方向のピーク値、各枠の水平方向のピーク値を垂直方向に積分した値等である。   Here, the evaluation value SC generated from the contrast signal before high luminance removal and the evaluation value SR generated from the contrast signal after high luminance removal will be described with reference to FIG. Here, the evaluation value is a horizontal peak value of the contrast signal of each frame, a value obtained by integrating the horizontal peak value of each frame in the vertical direction, or the like.

図3Aは、高輝度除去前のコントラスト信号から生成された評価値SCのフォーカスレンズ群1のレンズ位置の変化に対するレベル変化の一例を示す。評価値SCの例えば位置A,B,Dにレベルのピークが発生している。位置Dのピークは、高輝度被写体例えば輝点が存在し、ボケた輝点で発生する偽のピークである。このような評価値SCによってフォーカス制御を行うと、レンズの合焦位置がDに制御され、ボケた高輝度被写体に合焦してしまう問題が生じる。   FIG. 3A shows an example of a level change with respect to a change in the lens position of the focus lens group 1 of the evaluation value SC generated from the contrast signal before high luminance removal. Level peaks occur at, for example, positions A, B, and D of the evaluation value SC. The peak at the position D is a false peak that occurs at a blurred bright spot where a bright subject, for example, a bright spot exists. When focus control is performed using such an evaluation value SC, the focus position of the lens is controlled to D, which causes a problem of focusing on a blurred high-luminance subject.

高輝度除去回路83によって高輝度部分を除去したコントラスト信号から生成された評価値の一例SRaおよび他の例SRbを図3Bおよび図3Cにそれぞれ示す。評価値SRaの場合では、高輝度部分を除去するための設定幅が不適切のために、高輝度部分を除去しきれず、偽のピークの一部が残っている。評価値SRbの場合では、設定幅が適切のために、高輝度部分が除去され、偽のピークが除去されている。ここで、評価値SRaの場合には、高輝度部分を除去しきれなかったために、位置Cおよび位置Eに新たにピークが発生する。その結果、評価値SRaを使用すると、位置Cまたは位置Eを合焦位置として誤って検出するおそれがあるが、この発明の一実施の形態では、評価値SCを使用してフォーカス制御を行うために、かかる問題は生じない。評価値SCの場合には、ピークは、位置A,B,Dにのみ存在している。   FIG. 3B and FIG. 3C show an example SRa and another example SRb generated from the contrast signal from which the high luminance part is removed by the high luminance removal circuit 83, respectively. In the case of the evaluation value SRa, the setting range for removing the high-luminance portion is inappropriate, and thus the high-luminance portion cannot be removed, and a part of the false peak remains. In the case of the evaluation value SRb, since the setting width is appropriate, the high luminance part is removed and the false peak is removed. Here, in the case of the evaluation value SRa, since the high-luminance portion has not been completely removed, new peaks are generated at the position C and the position E. As a result, when the evaluation value SRa is used, the position C or the position E may be erroneously detected as the in-focus position. However, in one embodiment of the present invention, focus control is performed using the evaluation value SC. However, this problem does not occur. In the case of the evaluation value SC, the peaks exist only at the positions A, B, and D.

この発明の一実施の形態では、設定幅が不適切なために、高輝度によるピークを全て除去しきれない場合でも、図2に示すオプティカルディテクタ8の構成で、以下に述べる処理によって正しい位置に合焦することができる。なお、図4、図5および図6にそれぞれ示す処理は、システムコントローラ9によってなされるものである。   In the embodiment of the present invention, even when all the peaks due to high luminance cannot be completely removed because the setting width is inappropriate, the configuration of the optical detector 8 shown in FIG. You can focus. The processes shown in FIGS. 4, 5, and 6 are performed by the system controller 9.

図4は、この発明の一実施の形態の処理の全体を示す。最初のステップS1において、高輝度除去していない評価値SCをAF用処理に使用する評価値として設定する。次のステップS2において、高輝度除去した評価値SRと高輝度除去していない評価値SCとの比較処理がなされる。比較処理は、評価値の各サンプリング位置における値同士の比較である。   FIG. 4 shows the entire processing according to the embodiment of the present invention. In the first step S1, an evaluation value SC that has not been subjected to high luminance removal is set as an evaluation value used for AF processing. In the next step S2, a comparison process is performed between the evaluation value SR with high luminance removed and the evaluation value SC without high luminance removal. The comparison process is a comparison between values at each sampling position of the evaluation value.

図3における評価値SRaおよびSRbの場合では、たとえ除去のための設定幅が狭すぎても、位置Dにおける偽のピークが高輝度部分除去処理によって元のレベルに比して大幅に小さい値とされている。したがって、比較の結果は、大きな値となる。このことをもって評価値SCにおける位置Dのピークを偽のものと判定し、合焦位置の候補から除外する。そして、ステップS3において、評価値SCを基準に評価値SRとSCの比較結果をも使用して最終的なAF処理がなされる。ステップS3のAF処理は、例えば評価値SCのピーク位置から評価値SRaとの差分が一定以上である位置を除いたピーク位置、この例では、Bのレンズ位置を合焦位置とする処理である。   In the case of the evaluation values SRa and SRb in FIG. 3, even if the setting range for removal is too narrow, the false peak at the position D is a value significantly smaller than the original level by the high luminance partial removal processing. Has been. Therefore, the result of the comparison is a large value. With this, the peak at the position D in the evaluation value SC is determined to be false and is excluded from the focus position candidates. In step S3, the final AF processing is performed using the comparison result between the evaluation values SR and SC with reference to the evaluation value SC. The AF process in step S3 is a process in which, for example, a peak position obtained by excluding a position where the difference between the evaluation value SRa and the evaluation value SRa is equal to or greater than a certain value from the peak position of the evaluation value SC, in this example, the B lens position is set as the in-focus position. .

図5は、ステップS2の処理をより詳細に説明するものである。ステップS11において、画面全体が暗いか否かが判定される。画面全体が暗くない場合には、ステップS13において、画面全体が非常に明るいか否かかが判定される。画面全体が非常に明るいか、暗くないと、この発明の処理が不要であるので、処理が終了する。画面全体が非常に明るいまたは暗いと判定されると、ステップS12において、高輝度判定処理がなされる。高輝度判定処理は、後述するように、非常に明るい画面全体または暗い画面全体の中に輝点のような高輝度部分があるか否かを判定する処理である。   FIG. 5 explains the process of step S2 in more detail. In step S11, it is determined whether or not the entire screen is dark. If the entire screen is not dark, it is determined in step S13 whether or not the entire screen is very bright. If the entire screen is not very bright or dark, the processing of the present invention is unnecessary, and the processing ends. If it is determined that the entire screen is very bright or dark, a high brightness determination process is performed in step S12. As described later, the high brightness determination process is a process for determining whether or not there is a high brightness portion such as a bright spot in the entire very bright screen or the entire dark screen.

ステップS12において、高輝度部分があると判定されると、高輝度判定フラグFLがON("1")とされ、高輝度部分がないと判定されると、高輝度判定フラグFLがOFF
("0")とされる。ステップS14では、高輝度判定フラグFLの値から高輝度部分があ
ると判定されたか否かが判定される。高輝度部分がないと判定された場合には、この発明の処理が不要であるので、処理が終了する。
In step S12, if it is determined that there is a high luminance part, the high luminance determination flag FL is turned ON ("1"), and if it is determined that there is no high luminance part, the high luminance determination flag FL is turned OFF.
("0"). In step S14, it is determined whether or not it is determined that there is a high luminance portion from the value of the high luminance determination flag FL. If it is determined that there is no high-luminance portion, the processing of the present invention is unnecessary, and the processing ends.

ステップS15において、高輝度マスクありと高輝度マスクなしの比が所定値以上あるか否かが判定される。比は、高輝度マスクありと高輝度マスクなしの差から求めることができる。高輝度マスクありと、高輝度マスクなしの差が所定値以上でない場合には、処理終了するこの差が所定値以上の場合には、ステップS16において、そのフォーカス位置を合焦位置としない処理がなされる。以上で、ステップS2の処理終了する。   In step S15, it is determined whether or not the ratio between the presence of the high brightness mask and the absence of the high brightness mask is greater than or equal to a predetermined value. The ratio can be obtained from the difference between the presence of the high brightness mask and the absence of the high brightness mask. If the difference between the presence of the high-intensity mask and the absence of the high-intensity mask is not greater than or equal to the predetermined value, the process is terminated. Made. Above, the process of step S2 is complete | finished.

図6は、図5に示す処理における高輝度部分(例えば輝点)があるか否かを判定する高輝度判定処理S12の一例を示す。判定に際して、画像信号と比較される閾値AおよびBが設定される。閾値Aは、閾値Bに比して明るい側に設定された値である。閾値Aを超える値を有する画素をカウントした値を高輝度カウント値KAとする。閾値Bを超える値を有する画素をカウントした値を高輝度カウント値KBとする。また、これらのカウント値KAおよびKBの比をCとする。すなわち、C=KA/KBである。   FIG. 6 shows an example of the high luminance determination processing S12 for determining whether or not there is a high luminance portion (for example, a bright spot) in the processing shown in FIG. In the determination, threshold values A and B to be compared with the image signal are set. The threshold A is a value set on the brighter side than the threshold B. A value obtained by counting pixels having a value exceeding the threshold A is defined as a high luminance count value KA. A value obtained by counting pixels having a value exceeding the threshold B is set as a high luminance count value KB. The ratio of these count values KA and KB is C. That is, C = KA / KB.

ステップS21において、比Cが設定された閾値THR KK以上か否かが判定される。C≧THR KKの場合には、高輝度判定フラグFLがON("1")とされる。 一方、C<THR KKの場合には、高輝度判定フラグFLがOFF("0")とされる。例えば
高輝度被写体の場合では、高輝度の画素が多いために、カウント値KAおよびKBが共に大きくなり、高輝度と判定される。これに対して高輝度でない被写体では、カウント値KAが少なく、カウント値KBが多くなるために、比CがTHR KKより小となるために、高輝度被写体と判定されない。
In step S21, the threshold value THR for which the ratio C is set It is determined whether or not it is greater than or equal to KK. C ≧ THR In the case of KK, the high brightness determination flag FL is set to ON (“1”). On the other hand, C <THR In the case of KK, the high luminance determination flag FL is set to OFF (“0”). For example, in the case of a high-luminance subject, since there are many high-luminance pixels, both the count values KA and KB are large, and it is determined that the luminance is high. On the other hand, for a non-bright subject, the count value KA is small and the count value KB is large, so the ratio C is THR. Since it is smaller than KK, it is not determined as a high-luminance subject.

上述したように、この発明の一実施の形態では、図3Aに示す評価値SCと図3Bに示す評価値SRaとを使用して、レンズ位置変化範囲内の各サンプリング位置において、二つの評価値の差を求め、この差が所定の閾値以上となる評価値SC中のサンプリング位置Dの評価値は、合焦位置の候補から除外するので、この位置に誤ってフォーカスレンズの位置が制御されることを防止できる。   As described above, in the embodiment of the present invention, the evaluation value SC shown in FIG. 3A and the evaluation value SRa shown in FIG. 3B are used to evaluate two evaluation values at each sampling position within the lens position change range. And the evaluation value at the sampling position D in the evaluation value SC at which this difference is equal to or greater than a predetermined threshold value is excluded from the focus position candidates, and the position of the focus lens is erroneously controlled at this position. Can be prevented.

以上、この発明の一実施の形態について具体的に説明したが、この発明は、上述の一実施の形態に限定されるものではなく、この発明の技術的思想に基づく各種の変形が可能である。   Although one embodiment of the present invention has been specifically described above, the present invention is not limited to the above-described embodiment, and various modifications based on the technical idea of the present invention are possible. .

この発明の一実施の形態の全体の構成を示すブロック図である。It is a block diagram which shows the whole structure of one embodiment of this invention. この発明の一実施の形態におけるオプティカルディテクタの一例のブロック図である。It is a block diagram of an example of the optical detector in one embodiment of this invention. この発明の一実施の形態の説明に用いる評価値の例を示す略線図である。It is a basic diagram which shows the example of the evaluation value used for description of one embodiment of this invention. この発明の一実施の形態の処理の全体的な流れを説明するためのフローチャートである。It is a flowchart for demonstrating the whole flow of the process of one Embodiment of this invention. この発明の一実施の形態の処理において偽のピークに合焦することを防止するための処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process for preventing focusing on a false peak in the process of one Embodiment of this invention. この発明の一実施の形態の処理において高輝度被写体の有無を判定するための処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process for determining the presence or absence of a high-intensity subject in the process of one Embodiment of this invention. 従来のフォーカス制御を説明するための略線図である。It is a basic diagram for demonstrating the conventional focus control.

符号の説明Explanation of symbols

1・・・フォーカスレンズ群
2・・・撮像素子
8・・・オプティカルディテクタ
9・・・システムコントローラ
81・・・輝度信号生成回路
82・・・フィルタ演算回路
83・・・高輝度除去回路


DESCRIPTION OF SYMBOLS 1 ... Focus lens group 2 ... Imaging device 8 ... Optical detector 9 ... System controller 81 ... Luminance signal generation circuit 82 ... Filter arithmetic circuit 83 ... High luminance removal circuit


Claims (3)

フォーカスレンズを通じて被写体を撮像し、該被写体光を電気的信号に変換する撮像ステップと、
上記撮像ステップで得られた輝度信号中の中高域成分に基づいて第1のフォーカス制御用信号を抽出する信号抽出ステップと、
上記第1のフォーカス制御用信号の高輝度部分を除去した第2のフォーカス制御用信号を抽出する信号抽出ステップと、
上記第1のフォーカス制御用信号から上記フォーカスレンズの位置に応じて第1の評価値を生成する評価信号生成ステップと、
上記第2のフォーカス制御用信号から上記フォーカスレンズの位置に応じて第2の評価値を生成する評価信号生成ステップと、
上記レンズ位置がほぼ同一の位置における上記第1の評価値と上記第2の評価値との差を検出し、検出された上記差が大きい場合に、上記第1の評価値を合焦位置の候補から除外する比較ステップと、
上記比較ステップの処理がなされた上記第1の評価値と、上記比較ステップの処理がなされない上記第1の評価値の両方を使用して上記フォーカスレンズの位置を制御するステップと
からなる撮像方法。
An imaging step of imaging a subject through a focus lens and converting the subject light into an electrical signal;
A signal extraction step of extracting a first focus control signal based on the middle and high frequency components in the luminance signal obtained in the imaging step;
A signal extraction step of extracting a second focus control signal from which a high-luminance portion of the first focus control signal is removed;
An evaluation signal generating step for generating a first evaluation value according to the position of the focus lens from the first focus control signal;
An evaluation signal generating step for generating a second evaluation value according to the position of the focus lens from the second focus control signal;
A difference between the first evaluation value and the second evaluation value at a position where the lens positions are substantially the same is detected, and when the detected difference is large, the first evaluation value is determined as a focus position. A comparison step to exclude from the candidate,
An imaging method comprising: controlling the position of the focus lens using both the first evaluation value that has been processed in the comparison step and the first evaluation value that has not been processed in the comparison step .
上記第1のフォーカス制御用信号が高輝度被写体を含むことを判定された場合にのみ、上記比較ステップがなされる撮像方法。   An imaging method in which the comparison step is performed only when it is determined that the first focus control signal includes a high-luminance subject. フォーカスレンズを通じて被写体を撮像し、該被写体光を電気的信号に変換する撮像手段と、
上記撮像手段で得られた輝度信号中の中高域成分に基づいて第1のフォーカス制御用信号を抽出する信号抽出手段と、
上記第1のフォーカス制御用信号の高輝度部分を除去した第2のフォーカス制御用信号を抽出する信号抽出手段と、
上記第1のフォーカス制御用信号から上記フォーカスレンズの位置に応じて第1の評価値を生成する評価信号生成手段と、
上記第2のフォーカス制御用信号から上記フォーカスレンズの位置に応じて第2の評価値を生成する評価信号生成手段と、
上記レンズ位置がほぼ同一の位置における上記第1の評価値と上記第2の評価値との差を検出し、検出された上記差が大きい場合に、上記第1の評価値を合焦位置の候補から除外する比較手段と、
上記比較手段の処理がなされた上記第1の評価値に基づいて上記フォーカスレンズの位置を制御する手段と
からなる撮像装置。
Imaging means for imaging a subject through a focus lens and converting the subject light into an electrical signal;
A signal extraction means for extracting a first focus control signal based on a middle-high frequency component in the luminance signal obtained by the imaging means;
Signal extraction means for extracting a second focus control signal from which a high-luminance portion of the first focus control signal is removed;
Evaluation signal generating means for generating a first evaluation value from the first focus control signal according to the position of the focus lens;
Evaluation signal generating means for generating a second evaluation value according to the position of the focus lens from the second focus control signal;
A difference between the first evaluation value and the second evaluation value at a position where the lens positions are substantially the same is detected, and when the detected difference is large, the first evaluation value is determined as a focus position. Comparison means to exclude from the candidate,
An imaging apparatus comprising: means for controlling the position of the focus lens based on the first evaluation value processed by the comparison means.
JP2005257849A 2005-09-06 2005-09-06 Imaging method and imaging apparatus Pending JP2007072095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005257849A JP2007072095A (en) 2005-09-06 2005-09-06 Imaging method and imaging apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005257849A JP2007072095A (en) 2005-09-06 2005-09-06 Imaging method and imaging apparatus

Publications (1)

Publication Number Publication Date
JP2007072095A true JP2007072095A (en) 2007-03-22

Family

ID=37933597

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005257849A Pending JP2007072095A (en) 2005-09-06 2005-09-06 Imaging method and imaging apparatus

Country Status (1)

Country Link
JP (1) JP2007072095A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009053438A (en) * 2007-08-27 2009-03-12 Sanyo Electric Co Ltd Electronic camera
JP2009053469A (en) * 2007-08-28 2009-03-12 Sanyo Electric Co Ltd Video camera
JP2009053462A (en) * 2007-08-28 2009-03-12 Sanyo Electric Co Ltd Video camera
JP2009053428A (en) * 2007-08-27 2009-03-12 Sanyo Electric Co Ltd Electronic camera
US8237850B2 (en) 2007-08-27 2012-08-07 Sanyo Electric Co., Ltd. Electronic camera that adjusts the distance from an optical lens to an imaging surface
EP2624538A1 (en) * 2012-02-06 2013-08-07 Hitachi Ltd. Image signal processing apparatus and image signal processing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06205268A (en) * 1993-01-06 1994-07-22 Matsushita Electric Ind Co Ltd Automatic focus adjustment device and video camera
JPH06209425A (en) * 1992-08-27 1994-07-26 Sony Electron Inc Camera automatic focusing controlling system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06209425A (en) * 1992-08-27 1994-07-26 Sony Electron Inc Camera automatic focusing controlling system
JPH06205268A (en) * 1993-01-06 1994-07-22 Matsushita Electric Ind Co Ltd Automatic focus adjustment device and video camera

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009053438A (en) * 2007-08-27 2009-03-12 Sanyo Electric Co Ltd Electronic camera
JP2009053428A (en) * 2007-08-27 2009-03-12 Sanyo Electric Co Ltd Electronic camera
US8237850B2 (en) 2007-08-27 2012-08-07 Sanyo Electric Co., Ltd. Electronic camera that adjusts the distance from an optical lens to an imaging surface
US8471953B2 (en) 2007-08-27 2013-06-25 Sanyo Electric Co., Ltd. Electronic camera that adjusts the distance from an optical lens to an imaging surface
JP2009053469A (en) * 2007-08-28 2009-03-12 Sanyo Electric Co Ltd Video camera
JP2009053462A (en) * 2007-08-28 2009-03-12 Sanyo Electric Co Ltd Video camera
EP2624538A1 (en) * 2012-02-06 2013-08-07 Hitachi Ltd. Image signal processing apparatus and image signal processing method

Similar Documents

Publication Publication Date Title
JP4588583B2 (en) Imaging apparatus and focus control method
JP4725802B2 (en) Imaging apparatus, focusing method, and focusing program
JP4325599B2 (en) Imaging apparatus and display control method
JP2007108412A (en) Autofocus device and its program
JP6202860B2 (en) Imaging apparatus and imaging method
JP4155280B2 (en) Imaging device
JPH04274405A (en) Focusing detection device
JP2009171220A (en) Imaging apparatus and its control method
JP2007306225A (en) Imaging apparatus and method, and program
JP2009077057A (en) Imaging apparatus, and control method for imaging apparatus
JP2007135140A (en) Imaging apparatus
JP2008288868A (en) Imaging device and program
JP2011150281A (en) Imaging apparatus, method for controlling the imaging apparatus, and computer program
JP2007072095A (en) Imaging method and imaging apparatus
JP2009009072A (en) Dynamic focus zone for camera
JP4385383B2 (en) Programmable anti-aliasing system and method for a camera
US11190704B2 (en) Imaging apparatus and control method for performing live view display of a tracked object
KR101720189B1 (en) Digital photographing apparatus and control method thereof
JP2004309739A (en) Focus detection device
KR20100079832A (en) Digital camera supporting an intelligent self-timer mode and controlling method for the same
JP4818130B2 (en) Imaging apparatus and control method thereof
US20160360082A1 (en) Imaging apparatus and method, and program
JP2003262909A (en) Electronic camera
JP6603892B2 (en) Imaging device
JP2009135670A (en) Image device and its control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080825

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110118

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110628