JP4326997B2 - Imaging apparatus, focusing method, control program, and recording medium - Google Patents

Imaging apparatus, focusing method, control program, and recording medium Download PDF

Info

Publication number
JP4326997B2
JP4326997B2 JP2004093692A JP2004093692A JP4326997B2 JP 4326997 B2 JP4326997 B2 JP 4326997B2 JP 2004093692 A JP2004093692 A JP 2004093692A JP 2004093692 A JP2004093692 A JP 2004093692A JP 4326997 B2 JP4326997 B2 JP 4326997B2
Authority
JP
Japan
Prior art keywords
image data
imaging
imaging unit
evaluation value
maintained
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2004093692A
Other languages
Japanese (ja)
Other versions
JP2005286427A (en
Inventor
俊行 三宅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2004093692A priority Critical patent/JP4326997B2/en
Publication of JP2005286427A publication Critical patent/JP2005286427A/en
Application granted granted Critical
Publication of JP4326997B2 publication Critical patent/JP4326997B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Color Television Image Signal Generators (AREA)
  • Studio Devices (AREA)
  • Focusing (AREA)

Description

本発明は、撮像装置に関するものであり、特に、オートフォーカス(以下「AF」と略記する)機能を有する撮像装置に関するものである。   The present invention relates to an imaging apparatus, and more particularly, to an imaging apparatus having an autofocus (hereinafter abbreviated as “AF”) function.

動画撮影時に常時ピントの合った画像を撮影するため、または、常時ピントを合わせておくことによりシャッタタイムラグを短縮するために、合焦動作を連続的(断続的に)に行うコンティニュアスオートフォーカス(以下「CAF」と略記する)方式を設定可能なデジタルスチルカメラがある。   Continuous autofocus that performs continuous (intermittent) focusing to capture images that are always in focus during movie shooting, or to reduce shutter time lag by always focusing. There is a digital still camera capable of setting a method (hereinafter abbreviated as “CAF”).

そして、オートフォーカスを行う方法としては、具体的には、1回の合焦動作における合焦位置検出方法である、所謂「山登りサーボ方式によるテレビカメラの自動焦点調整」(非特許文献1参照)に示される方式が広く採用されている。この方式では、フォーカスレンズを至近位置から無限遠位置まで、または、無限遠位置から至近位置まで移動させて、画像データ中の高周波成分またはエッジ成分が最大となるフォーカスレンズ位置を合焦位置とする。   As a method for performing autofocus, specifically, a so-called “automatic focus adjustment of a TV camera by a hill-climbing servo system” which is a focus position detection method in one focus operation (see Non-Patent Document 1). The method shown in is widely adopted. In this method, the focus lens is moved from the closest position to the infinity position or from the infinity position to the close position, and the focus lens position where the high frequency component or edge component in the image data is maximized is set as the focus position. .

そして、上記CAFにおいて、合焦動作を連続的に行う方式としては、一定の時間間隔で合焦操作を行う方式や、特許文献1に開示の方式等がある。具体的には、上記特許文献1に開示の方式では、現在の画像データと、前回の合焦動作中または合焦直後の画像データのAF評価値、AE評価値、AWB評価値を比較して、前回の合焦動作における合焦状態が維持されているか否かを判定し、前回の合焦動作における合焦状態が維持されていない場合には合焦動作を行う。   In the CAF, methods for continuously performing the focusing operation include a method for performing a focusing operation at a constant time interval, a method disclosed in Patent Document 1, and the like. Specifically, in the method disclosed in Patent Document 1, the current image data is compared with the AF evaluation value, AE evaluation value, and AWB evaluation value of the image data during the previous focusing operation or immediately after the focusing. Then, it is determined whether or not the focusing state in the previous focusing operation is maintained. If the focusing state in the previous focusing operation is not maintained, the focusing operation is performed.

また、特許文献2に開示の方式では、オートフォーカス動作の制御に「色情報」を用い、「色情報」の具体例とし「彩度ピーク値」を用いることが開示されている。
特開2003−232984公報(公開日;2003年8月22日) 特開平5−236330号公報(公開日;1993年9月10日) 「NHK技術研究」第17巻 第1号21頁 昭和40年発行 石田他
Further, the method disclosed in Patent Document 2 discloses that “color information” is used for controlling the autofocus operation, and “saturation peak value” is used as a specific example of “color information”.
JP 2003-232984 A (publication date; August 22, 2003) Japanese Patent Laid-Open No. 5-236330 (Release Date; September 10, 1993) "NHK Technology Research" Vol. 17, No. 1, p. 21 Issued in 1965, Ishida et al.

しかしながら、オートフォーカスは、焦点を自動的に合わせるものであるが、上記従来の技術では、焦点が合っている場合にも関わらず、合焦動作を行うことがあるという問題点がある。   However, autofocus automatically adjusts the focus. However, the conventional technique has a problem in that a focusing operation may be performed even when the focus is achieved.

具体的には、一定の間隔で合焦動作を行う場合には、前回の合焦動作における合焦状態が維持されているか否かにかかわらず合焦動作が行われる。このため、合焦動作中はモータによりフォーカスレンズの移動が行われるために消費電流が増加することとなる。また、前回の合焦動作における合焦状態が維持されているにもかかわらず合焦動作を行うと、合焦動作を行っている間は、焦点が合っていないために、ボケた映像が撮影、表示されることになる。   Specifically, when performing the focusing operation at a constant interval, the focusing operation is performed regardless of whether or not the focusing state in the previous focusing operation is maintained. For this reason, the current consumption increases because the focus lens is moved by the motor during the focusing operation. Also, if the in-focus operation is performed even though the in-focus state in the previous in-focus operation is maintained, the image is blurred because the focus is not in focus during the in-focus operation. Will be displayed.

また、上記特許文献1に開示の方式では、合焦動作を再度行う場合の判別方法としてAF評価値やAE評価値等を用いて、合焦動作を再度行う必要があるか否かを判定している。上記AF評価値やAE評価値は明るさによって変動するため、被写体までの距離が変わらない場合でも、AF評価値やAE評価値は変動することとなる。つまり、合焦とは、被写体を撮像する際に焦点を合わせるために行うものであるが、上記特許文献1に開示の方式では、AF評価値やAE評価値等を用いて、再度合焦動作が必要か否かを判定しているために、例えば、屋外で撮影を行っている場合に太陽が雲に隠れたり、逆に雲に隠れていた太陽が晴れ出したりして、被写体または被写体周辺の明るさが変化すると、焦点が合っているにもかかわらず、合焦動作が行われることとなる。   In the method disclosed in Patent Document 1, it is determined whether or not the focusing operation needs to be performed again by using an AF evaluation value, an AE evaluation value, or the like as a determination method when performing the focusing operation again. ing. Since the AF evaluation value and the AE evaluation value vary depending on the brightness, the AF evaluation value and the AE evaluation value vary even when the distance to the subject does not change. In other words, focusing is performed for focusing when imaging a subject. However, in the method disclosed in Patent Document 1, focusing operation is performed again using AF evaluation values, AE evaluation values, and the like. For example, when shooting outdoors, the sun may be hidden behind the clouds, or the sun hidden behind the clouds may be sunny. When the brightness changes, the focusing operation is performed regardless of the focus.

なお、上記特許文献2に開示の方式では、オートフォーカス動作の制御に「色情報」を用い、「色情報」の具体例とし「彩度ピーク値」を用いることが開示されているが、上記特許文献2における「彩度ピーク値」とは、例えば、段落番号〔0024〕にあるように「色差信号R−Y,B−Yのそれぞれの振幅の最大値CRMAX,CBMAX」のことである。このCRMAX,CBMAXは、明るさ(明度)の成分が強く影響するものであり、上記特許文献2に開示の方式でオートフォーカスを行った場合でも、被写体または被写体周辺の明るさが変化すると、焦点が合っているにもかかわらず合焦動作が行われることとなる。また、上記特許文献2は、連続的にオートフォーカスを行うという技術思想はない。   The method disclosed in Patent Document 2 discloses that “color information” is used to control the autofocus operation, and “saturation peak value” is used as a specific example of “color information”. The “saturation peak value” in Patent Document 2 is, for example, “maximum values CRMAX and CBMAX of the amplitudes of the color difference signals RY and BY” as described in paragraph [0024]. The CRMAX and CBMAX are strongly influenced by the brightness (brightness) component, and even when autofocus is performed by the method disclosed in Patent Document 2, if the brightness of the subject or the surroundings of the subject changes, the focus is increased. The focusing operation is performed regardless of whether or not. Further, Patent Document 2 does not have a technical idea of continuously performing autofocus.

このように、上記従来の方式では、合焦動作を行う必要がない場合であっても、合焦動作が行われる場合があるという問題点を有している。   As described above, the conventional method has a problem that the focusing operation may be performed even when it is not necessary to perform the focusing operation.

本発明は、上記の問題点に鑑みてなされたものであり、その目的は、無駄な合焦動作を行うことがない撮影装置および合焦方法を提供することにある。   The present invention has been made in view of the above problems, and an object of the present invention is to provide an imaging apparatus and a focusing method that do not perform useless focusing operation.

本発明に係る撮像装置は、上記課題を解決するために、結像面に結像される光学像を画像データとして出力する撮像部と、上記撮像部から出力された画像データと、該画像データの上記撮像部からの出力前に上記撮像部から出力されていた画像データとの、色の三属性における彩度および/または色相の変化量に基づいて、合焦状態が維持されているか否かを判定する判定手段と、上記判定手段の判定結果に基づいて、合焦状態が維持されていない場合に、上記撮像部のフォーカスを調整する合焦動作制御手段とを備えていることを特徴としている。   In order to solve the above-described problem, an imaging apparatus according to the present invention outputs an optical image formed on an imaging plane as image data, image data output from the imaging unit, and the image data Whether or not the in-focus state is maintained based on the amount of change in saturation and / or hue in the three attributes of color with the image data output from the imaging unit before output from the imaging unit And a focusing operation control unit that adjusts the focus of the imaging unit when the in-focus state is not maintained based on the determination result of the determination unit. Yes.

上記判定手段は、彩度および/または色相の変化量が所定の範囲内であるか否かによって、合焦状態が維持されているか否かを判定している。また、「合焦状態が維持されているか否か」とは、新たに取得する画像データの上記撮像部からの出力前に上記撮像部から出力されていた画像データに基づいて決定されたフォーカスレンズの合焦位置が変わっているか否かと同じである。   The determination means determines whether or not the in-focus state is maintained based on whether or not the amount of change in saturation and / or hue is within a predetermined range. Further, “whether or not the in-focus state is maintained” means that the focus lens determined based on the image data output from the imaging unit before outputting the image data to be newly acquired from the imaging unit. This is the same as whether or not the in-focus position has changed.

上記色の三属性とは、明度、彩度、色相を示している。上記の構成によれば、判定手段は、画像データの彩度および/または色相に基づいて、再度合焦動作を行うか否か(合焦状態が維持されているか否か)を判定している。つまり、明るさの影響が少ない、色のあざやかさの度合いを示す彩度および/またはスペクトル単色光の波長で表される色相を用いて上記判定を行っているので、例えば、焦点が合っているにもかかわらず、被写体または被写体周辺の明るさが変化することにより合焦動作が行われることを低減することができる。これにより、無駄な合焦動作、つまり、焦点距離が合っているにも関わらず、フォーカスレンズを動作させて合焦動作を行うことがない撮影装置を提供することができる。   The above three attributes of color indicate lightness, saturation, and hue. According to the above configuration, the determining unit determines whether or not to perform the focusing operation again (whether or not the focused state is maintained) based on the saturation and / or hue of the image data. . In other words, since the above determination is performed using the hue expressed by the saturation and / or the wavelength of the spectral monochromatic light, which is less influenced by the brightness and indicates the degree of vividness of the color, for example, the focus is achieved. Nevertheless, it is possible to reduce the focusing operation due to the change in the brightness of the subject or the surroundings of the subject. Accordingly, it is possible to provide a photographing apparatus that does not perform the focusing operation by operating the focus lens even though the focusing operation is useless, that is, the focal length is correct.

また、上記の構成とすることにより、被写体までの距離が変化せず、被写体または被写体周辺の明るさが変化した場合に合焦動作が再起動されることを防ぐため、消費電流を削減し、電池寿命の長い撮像装置を提供することができる。また、無駄な合焦動作を行うことを低減できるため、無駄な合焦動作を行っている間のボケた映像が撮影・表示されることをより低減させることができる。   Also, with the above configuration, the current consumption is reduced to prevent the focusing operation from being restarted when the distance to the subject does not change and the brightness of the subject or the subject changes. An imaging device with a long battery life can be provided. In addition, since it is possible to reduce performing a useless focusing operation, it is possible to further reduce shooting and display of a blurred image during the useless focusing operation.

本発明に係る撮像装置は、上記判定手段は、さらに、上記撮像部から出力された画像データと該画像データの上記撮像部からの出力前に上記撮像部から出力されていた画像データとからそれぞれ求められる輝度情報に基づいて、合焦状態が維持されているか否かを判定する構成であることがより好ましい。   In the imaging apparatus according to the present invention, the determination unit may further include image data output from the imaging unit and image data output from the imaging unit before the image data is output from the imaging unit. More preferably, it is configured to determine whether or not the focused state is maintained based on the required luminance information.

上記輝度情報は、例えば、AF(Auto Focus)値および/またはAE(Auto Exposure)値を含んでいる。上記AF値とは、上記画像データ中の所定領域における高周波成分または近接画素の輝度差積分値を示している。また、上記AE値とは、上記画像データ中の所定領域における輝度値の積分値を示している。つまり、上記輝度情報とは、AF値および/またはAE値を示している。   The luminance information includes, for example, an AF (Auto Focus) value and / or an AE (Auto Exposure) value. The AF value indicates a high frequency component in a predetermined region in the image data or a luminance difference integral value of adjacent pixels. The AE value indicates an integral value of luminance values in a predetermined area in the image data. That is, the luminance information indicates an AF value and / or an AE value.

上記の構成によれば、彩度および/または色相に加え、さらに、輝度情報を用いて、合焦状態が維持されているか否かを判定しているので、より一層、無駄な合焦動作が行われることを低減させることができる。   According to the above configuration, in addition to the saturation and / or hue, it is further determined whether or not the in-focus state is maintained using the luminance information, and therefore, further unnecessary focusing operation is performed. What is done can be reduced.

本発明に係る撮像装置は、上記画像データをL*a*b*色空間に変換する変換手段を備え、
上記判定手段は、上記撮像部から出力された画像データと該画像データの上記撮像部からの出力前に上記撮像部から出力されていた画像データとからそれぞれ得られたa*およびb*に基づいて、合焦状態が維持されているか否かを判定する構成がより好ましい。
An imaging apparatus according to the present invention includes a conversion unit that converts the image data into an L * a * b * color space.
The determination means is based on a * and b * respectively obtained from the image data output from the imaging unit and the image data output from the imaging unit before the output of the image data from the imaging unit. Therefore, it is more preferable to determine whether or not the in-focus state is maintained.

上記の構成によれば、L*a*b*色空間におけるa*およびb*を用いて合焦状態が維持されているか否かを判定するようになっている。L*a*b*色空間では、L*が明度を示しており、他のa*およびb*は、明るさの影響が少ないパラメータである。従って、a*およびb*を用いて判定することにより、被写体およびその周囲の明るさが変化することによって、被写体との距離が変更ない場合であっても、合焦動作が行われることをより一層低減させることができる。   According to the above configuration, it is determined whether or not the in-focus state is maintained using a * and b * in the L * a * b * color space. In the L * a * b * color space, L * indicates brightness, and the other a * and b * are parameters that are less affected by brightness. Therefore, the determination using a * and b * makes it possible to perform the focusing operation even when the distance to the subject does not change due to changes in the brightness of the subject and its surroundings. It can be further reduced.

本発明に係る撮像装置は、上記画像データをL*u*v*色空間に変換する変換手段を備え、上記判定手段は、上記撮像部から出力された画像データと該画像データの上記撮像部からの出力前に上記撮像部から出力されていた画像データとからそれぞれ得られたu*およびv*に基づいて、合焦状態が維持されているか否かを判定する構成であることがより好ましい。   The imaging apparatus according to the present invention includes a conversion unit that converts the image data into an L * u * v * color space, and the determination unit includes the image data output from the imaging unit and the imaging unit of the image data. It is more preferable that the in-focus state is determined based on u * and v * respectively obtained from the image data output from the imaging unit before output from .

上記の構成によれば、L*u*v*色空間におけるu*およびv*を用いて合焦状態が維持されているか否かを判定するようになっている。L*u*v*色空間では、L*が明度を示しており、他のu*およびv*は、明るさの影響が少ないパラメータである。従って、u*およびv*を用いて判定することにより、被写体およびその周囲の明るさが変化することによって、被写体との距離が変更ない場合であっても、合焦動作が行われることをより一層低減させることができる。   According to the above configuration, it is determined whether or not the in-focus state is maintained using u * and v * in the L * u * v * color space. In the L * u * v * color space, L * indicates lightness, and the other u * and v * are parameters that are less affected by brightness. Therefore, by determining using u * and v *, it is possible to perform the focusing operation even when the distance to the subject does not change due to changes in the brightness of the subject and its surroundings. It can be further reduced.

本発明に係る合焦方法は、上記の課題を解決するために、撮像部によって結像面に結像される光学像を画像データとして出力する撮像工程と、上記撮像部から出力された画像データと、該画像データの上記撮像部からの出力前に上記撮像部から出力されていた画像データとの、色の三属性における彩度および/または色相の変化量に基づいて、合焦状態が維持されているか否かを判定する判定工程と、上記判定工程の判定結果に基づいて、合焦状態が維持されていない場合に、上記撮像部のフォーカスを調整する合焦動作制御工程とを含むことを特徴としている。   In order to solve the above-described problem, the focusing method according to the present invention includes an imaging step of outputting an optical image formed on the imaging plane by the imaging unit as image data, and image data output from the imaging unit. And the image data output from the image pickup unit before the image data is output from the image pickup unit, the focus state is maintained based on the saturation and / or hue change amount in the three attributes of color. A determination step for determining whether or not the focus has been maintained, and a focusing operation control step for adjusting the focus of the imaging unit when the in-focus state is not maintained based on the determination result of the determination step. It is characterized by.

上記の構成によれば、色の三属性における彩度および/または色相に基づいて、合焦状態が維持されているか否かを判定している。これにより、例えば、焦点が合っているにもかかわらず、被写体または被写体周辺の明るさが変化することにより合焦動作が行われることを低減することができる。   According to said structure, it is determined whether the focused state is maintained based on the saturation and / or hue in the three attributes of color. Thereby, for example, it is possible to reduce the fact that the focusing operation is performed due to a change in the brightness of the subject or the surroundings of the subject even though the focus is achieved.

また、本発明の撮像装置の制御プログラムは、コンピュータを上記の各手段として機能させるコンピュータ・プログラムである。   The control program for the imaging apparatus of the present invention is a computer program that causes a computer to function as each of the means described above.

上記の構成により、コンピュータで上記撮像装置の各手段を実現することによって、上記撮像装置を実現することができる。   With the configuration described above, the imaging device can be realized by realizing each unit of the imaging device with a computer.

また、本発明の撮像装置の制御プログラムを記録したコンピュータ読み取り可能な記録媒体は、上記の各手段をコンピュータに実現させて、上記撮像装置を動作させる撮像装置の制御プログラムを記録したコンピュータ読み取り可能な記録媒体である。   A computer-readable recording medium recording the control program for the imaging apparatus of the present invention is a computer-readable recording medium that records the control program for the imaging apparatus that causes the computer to realize the above-described units and operate the imaging apparatus. It is a recording medium.

上記の構成により、上記記録媒体から読み出された撮像装置の制御プログラムによって、上記撮像装置をコンピュータ上に実現することができる。   With the above configuration, the imaging device can be realized on a computer by the control program of the imaging device read from the recording medium.

本発明に係る撮像装置は、結像面に結像される光学像を画像データとして出力する撮像部と、上記撮像部から出力された画像データと、該画像データの上記撮像部からの出力前に上記撮像部から出力されていた画像データとの、色の三属性における彩度および/または色相の変化量に基づいて、合焦状態が維持されているか否かを判定する判定手段と、上記判定手段の判定結果に基づいて、合焦状態が維持されていない場合に、上記撮像部のフォーカスを調整する合焦動作制御手段とを備えている構成である。   An imaging apparatus according to the present invention includes an imaging unit that outputs an optical image formed on an imaging plane as image data, image data output from the imaging unit, and before output of the image data from the imaging unit. Determining means for determining whether or not the in-focus state is maintained based on the amount of change in saturation and / or hue in the three attributes of color with the image data output from the imaging unit; Based on the determination result of the determination unit, the focus operation control unit adjusts the focus of the imaging unit when the in-focus state is not maintained.

それゆえ、例えば、焦点が合っているにもかかわらず、被写体または被写体周辺の明るさが変化することにより合焦動作が行われることを低減することができる。これにより、無駄な合焦動作、つまり、焦点距離が合っているにも関わらず、フォーカスレンズを動作させて合焦動作を行うことがない撮影装置を提供することができる。   Therefore, for example, it is possible to reduce the fact that the focusing operation is performed due to a change in the brightness of the subject or the surroundings of the subject even though the focus is achieved. Accordingly, it is possible to provide a photographing apparatus that does not perform the focusing operation by operating the focus lens even though the focusing operation is useless, that is, the focal length is correct.

本発明の一実施形態について説明すると以下の通りである。すなわち、本実施の形態にかかる撮像装置は、断続的に合焦動作を行う撮像装置であって、明るさの影響が少ない、色の三属性における彩度および/または色相を用いて、前回の合焦動作における合焦状態から新たに合焦動作を行う必要があるか否かを判定し、この判定結果に基づいて、必要に応じて合焦動作を行う構成である。   An embodiment of the present invention will be described as follows. In other words, the imaging apparatus according to the present embodiment is an imaging apparatus that intermittently performs focusing operation, and uses the saturation and / or hue in the three attributes of color that are less affected by brightness, In this configuration, it is determined whether or not it is necessary to newly perform a focusing operation from the focusing state in the focusing operation, and the focusing operation is performed as necessary based on the determination result.

なお、以下の説明では、デジタルスチルカメラを例に説明するが、撮像装置としては、上記に限定されるものではなく、例えば、ビデオカメラ等も含まれる。   In the following description, a digital still camera will be described as an example. However, the imaging apparatus is not limited to the above, and includes, for example, a video camera.

図2は、本実施の形態にかかるデジタルスチルカメラ(撮像装置、以下、カメラと称する)50の概略の構成を示すブロック図である。   FIG. 2 is a block diagram showing a schematic configuration of a digital still camera (imaging apparatus, hereinafter referred to as a camera) 50 according to the present embodiment.

上記カメラ50は、フォーカスレンズ1、CCD(撮像部)2、CDS/AGC/ADC回路3、モータ4、タイミング信号発生器5、信号処理部10、記録メディア6、LCDコントローラ7およびLCD8を備えている。なお、フォーカスレンズ1、CCD2およびモータ4でカメラ部30を構成している。   The camera 50 includes a focus lens 1, a CCD (imaging unit) 2, a CDS / AGC / ADC circuit 3, a motor 4, a timing signal generator 5, a signal processing unit 10, a recording medium 6, an LCD controller 7 and an LCD 8. Yes. The focus lens 1, the CCD 2, and the motor 4 constitute a camera unit 30.

そして、上記信号処理部10は、補間回路11、ホワイトバランス/ガンマ補正回路12、輝度・色差信号生成回路13、画像圧縮処理回路14、ビデオエンコーダ回路15、AF/AE評価値演算回路16、色空間変換・色評価値演算回路(変換手段)17、および、システムコントローラ18備えている。   The signal processing unit 10 includes an interpolation circuit 11, a white balance / gamma correction circuit 12, a luminance / color difference signal generation circuit 13, an image compression processing circuit 14, a video encoder circuit 15, an AF / AE evaluation value calculation circuit 16, a color A space conversion / color evaluation value calculation circuit (conversion means) 17 and a system controller 18 are provided.

また、モータ4、システムコントローラ18、およびAF/AE評価値演算回路16によって合焦手段が構成されている。   The motor 4, the system controller 18, and the AF / AE evaluation value calculation circuit 16 constitute a focusing means.

被写体からの光はフォーカスレンズ1を通して撮像素子2(CCDセンサー、CMOSセンサー等を示す。ここではCCDセンサーを使用するものとし、以下「CCD」と記す)に入射される。より具体的には、フォーカスレンズ1で集光された光は、CCD2の受光素子が備えられている受光面に結像される。上記CCD2の受光面は多数の受光素子からなり、各受光素子には入射光量に応じた電荷が蓄積され、所定の露光時間内で蓄積された電荷を各受光素子から読み出すことによりアナログの画像データが得られる。   Light from the subject is incident on an imaging device 2 (CCD sensor, CMOS sensor, etc., which uses a CCD sensor, hereinafter referred to as “CCD”) through the focus lens 1. More specifically, the light condensed by the focus lens 1 is imaged on the light receiving surface provided with the light receiving element of the CCD 2. The light receiving surface of the CCD 2 is composed of a large number of light receiving elements, and charges corresponding to the amount of incident light are accumulated in each light receiving element, and analog image data is read out by reading the accumulated charges within a predetermined exposure time from each light receiving element. Is obtained.

なお、図2では実際のレンズ系のうち、本発明の説明に必要なフォーカスレンズのみを図示している。フォーカスレンズ1は、光軸方向の進退により被写体像の焦点調整を行うものである。このフォーカスレンズ1はモータ4により駆動される。モータ4は信号処理部10の後述するシステムコントローラ18により制御される。   FIG. 2 shows only the focus lens necessary for the description of the present invention in the actual lens system. The focus lens 1 adjusts the focus of the subject image by moving back and forth in the optical axis direction. The focus lens 1 is driven by a motor 4. The motor 4 is controlled by a system controller 18 described later of the signal processing unit 10.

CCD2は、光電変換を行う複数の画素が2次元に配列された撮像面を有し、被写体光が入射されることにより撮像面に結像された光学像を電気信号に変換して、アナログの画像データとして出力する。   The CCD 2 has an imaging surface in which a plurality of pixels that perform photoelectric conversion are two-dimensionally arranged. The CCD 2 converts an optical image formed on the imaging surface upon incidence of subject light into an electrical signal, and converts it into an analog signal. Output as image data.

CCD2から出力された画像データは、CDS/AGC/ADC回路3によりノイズ成分の除去、ゲインの付加、アナログ信号からデジタル信号への変換が行われる。   The image data output from the CCD 2 is subjected to noise component removal, gain addition, and conversion from an analog signal to a digital signal by the CDS / AGC / ADC circuit 3.

CCD2およびCDS/AGC/ADC回路3は、タイミング信号発生器5(以下「TG」と略記する)によりタイミング制御される。TG5はシステムコントローラ18により制御される。   The CCD 2 and the CDS / AGC / ADC circuit 3 are timing-controlled by a timing signal generator 5 (hereinafter abbreviated as “TG”). The TG 5 is controlled by the system controller 18.

CDS/AGC/ADC回路3によりデジタル化された画像信号は信号処理部10に入力されるが、この時点では各画素はRGBいずれか1成分の信号しか有さないため、補間回路11により他の成分の信号(RGB信号)が生成される。   The image signal digitized by the CDS / AGC / ADC circuit 3 is input to the signal processing unit 10, but at this time, each pixel has only one component signal of RGB, so that the interpolation circuit 11 performs other signal processing. Component signals (RGB signals) are generated.

次に、ホワイトバランス/ガンマ補正回路12によりホワイトバランスを合わせるためのゲイン調整、ガンマ補正が行われる。   Next, the white balance / gamma correction circuit 12 performs gain adjustment and gamma correction for matching the white balance.

続いて、輝度・色差信号生成回路13により、RGB信号から輝度・色差信号に変換される。また、ここで輝度信号に対し輪郭強調等の処理が加えられる。   Subsequently, the luminance / color difference signal generation circuit 13 converts the RGB signals into luminance / color difference signals. In addition, processing such as edge enhancement is added to the luminance signal.

輝度・色差信号はビデオエンコーダ回路15により、液晶画面(以下「LCD」と略記する)に表示可能な形式に変換され、LCDコントローラ7(以下「LCDC」と略記する)を介してLCD8に表示される。   The luminance / color difference signal is converted into a format that can be displayed on a liquid crystal screen (hereinafter abbreviated as “LCD”) by the video encoder circuit 15 and displayed on the LCD 8 via the LCD controller 7 (hereinafter abbreviated as “LCDC”). The

また、静止画の撮影が行われた場合、輝度・色差信号は画像圧縮処理回路14でJPEG圧縮処理が行われ、JPEG圧縮データが記録メディア6に保存される。   When a still image is shot, the luminance / color difference signal is subjected to JPEG compression processing by the image compression processing circuit 14, and JPEG compressed data is stored in the recording medium 6.

AF/AE評価値演算回路16は、輝度信号中の所定領域の高周波成分またはエッジ成分よりAF評価値を、輝度信号中の所定領域の輝度値よりAE評価値を算出する。   The AF / AE evaluation value calculation circuit 16 calculates an AF evaluation value from a high frequency component or an edge component in a predetermined area in the luminance signal, and calculates an AE evaluation value from the luminance value in the predetermined area in the luminance signal.

色空間変換・色評価値演算回路17は、ホワイトバランス調整後のRGB信号を入力とし、色空間変換を行い、色評価値を演算する。これは、RGB信号は明るさによって変動し、また互いに相関関係があるため、色空間変換により明るさの影響が少ない色評価値を求めるためである。   The color space conversion / color evaluation value calculation circuit 17 receives the RGB signal after white balance adjustment, performs color space conversion, and calculates a color evaluation value. This is because the RGB signals vary depending on the brightness and are correlated with each other, so that a color evaluation value with little influence of brightness is obtained by color space conversion.

システムコントローラ18は、カメラ50全体の制御を行うためのものであり、図示されていないが、プログラムに従って各種演算処理を行うCPU、プログラムを格納するROM、各処理過程のデータ等を格納するRAMなどにより構成される。   The system controller 18 is for controlling the entire camera 50. Although not shown, the system controller 18 is a CPU that performs various arithmetic processes according to a program, a ROM that stores a program, a RAM that stores data of each process, and the like. Consists of.

そして、システムコントローラ18は、色空間変換・色評価値演算回路17、および、AF/AE評価値演算回路16からの信号に基づいて、前回の合焦状態が維持されているか否かを判定して、合焦状態が維持されていないと判定すると、再度合焦動作を行う。これについて以下に説明する。   Then, the system controller 18 determines whether or not the previous in-focus state is maintained based on signals from the color space conversion / color evaluation value calculation circuit 17 and the AF / AE evaluation value calculation circuit 16. If it is determined that the in-focus state is not maintained, the in-focus operation is performed again. This will be described below.

図1は、システムコントローラの概略構成を示すブロック図である。なお、説明の便宜上、図面にはオートフォーカスに直接的に関係のある部材のみを示している。   FIG. 1 is a block diagram showing a schematic configuration of the system controller. For convenience of explanation, only the members directly related to autofocus are shown in the drawing.

上記システムコントローラ18は、図1に示すように、記憶部21、比較部(判定手段)22、AF制御部(合焦動作制御手段)23を備えている。上記記憶部21は、システムコントローラ18に入力されてくる様々なデータを記憶するものである。具体的には、上記記憶部21は、AF/AE評価値演算回路16から出力されてくるAF評価値およびAE評価値、ならびに、色空間変換・色評価値演算回路17から出力されてくる色評価値を記憶する。   As shown in FIG. 1, the system controller 18 includes a storage unit 21, a comparison unit (determination unit) 22, and an AF control unit (focusing operation control unit) 23. The storage unit 21 stores various data input to the system controller 18. Specifically, the storage unit 21 outputs the AF evaluation value and the AE evaluation value output from the AF / AE evaluation value calculation circuit 16 and the color output from the color space conversion / color evaluation value calculation circuit 17. The evaluation value is stored.

比較部22は、上記記憶部21に記憶されたAF評価値、AE評価値および色評価値について、最新のAF評価値、AE評価値および色評価値(現在評価値)と、最新よりも以前のAF評価値、AE評価値および色評価値(前回評価値)とを比較する。具体的な、判断方法等については後述する。   For the AF evaluation value, the AE evaluation value, and the color evaluation value stored in the storage unit 21, the comparison unit 22 uses the latest AF evaluation value, the AE evaluation value, and the color evaluation value (current evaluation value) and before the latest. The AF evaluation value, the AE evaluation value, and the color evaluation value (previous evaluation value) are compared. A specific determination method and the like will be described later.

AF制御部23は、カメラ部30を動作させて、合焦動作を行うものである。   The AF control unit 23 operates the camera unit 30 to perform a focusing operation.

ここで、色空間変換・色評価値演算回路17について詳細に説明する。色空間変換・色評価値演算回路17は、ホワイトバランス/ガンマ補正回路12にてホワイトバランスが調整された後のRGB信号を、所定領域の色空間変換処理を行い、色の三属性における彩度および/または色相を求めるものである。そして、本実施の形態では、均等色空間における彩度および/または色相を算出している。より具体的には、本実施の形態では、ホワイトバランス調整後のRGB信号を、CIE 1976(L*a*b*)色空間におけるL*a*b*またはCIE 1976(L*u*v*)色空間におけるL*u*v*に変換する。   Here, the color space conversion / color evaluation value calculation circuit 17 will be described in detail. The color space conversion / color evaluation value calculation circuit 17 performs color space conversion processing of a predetermined area on the RGB signal after the white balance is adjusted by the white balance / gamma correction circuit 12, and the saturation of the three attributes of the color And / or hue. In this embodiment, the saturation and / or hue in the uniform color space is calculated. More specifically, in the present embodiment, the RGB signal after white balance adjustment is converted into L * a * b * or CIE 1976 (L * u * v *) in the CIE 1976 (L * a * b *) color space. ) Convert to L * u * v * in color space.

ここで、RGB信号からL*a*b*またはL*u*v*へは、例えば以下の変換式を用いて変換する。   Here, the RGB signal is converted into L * a * b * or L * u * v * using, for example, the following conversion formula.

X = 0.6068R + 0.1735G + 0.2004B
Y = 0.2989R + 0.5866G + 0.1145B
Z = 0.0000R + 0.0661G + 1.1163B
L* = 116(Y / Yn)1/3 - 16
a* = 500((X / Xn) 1/3 - (Y / Yn)1/3)
b* = 200((Y / Yn) 1/3 - (Z / Zn)1/3)
Xn, Yn, Znは完全拡散反射面の三刺激値であり、Yn=100と規格化する。
X = 0.6068R + 0.1735G + 0.2004B
Y = 0.2989R + 0.5866G + 0.1145B
Z = 0.0000R + 0.0661G + 1.1163B
L * = 116 (Y / Yn) 1 /3-16
a * = 500 ((X / Xn) 1 /3-(Y / Yn) 1/3 )
b * = 200 ((Y / Yn) 1 /3-(Z / Zn) 1/3 )
Xn, Yn, and Zn are the tristimulus values of the perfect diffuse reflection surface, and are normalized as Yn = 100.

U = 4X / (X + 15Y + 3Z)
V = 9Y / (X + 15Y + 3Z)
L* = 116(Y / Yn)1/3 - 16
u* = 13L*(U - Un)
v* = 13L*(V - Vn)
Yn, Un, Vnは完全拡散反射面の三刺激値Yと色度座標であり、Yn=100と規格化する。
U = 4X / (X + 15Y + 3Z)
V = 9Y / (X + 15Y + 3Z)
L * = 116 (Y / Yn) 1 /3-16
u * = 13L * (U-Un)
v * = 13L * (V-Vn)
Yn, Un, and Vn are the tristimulus value Y and chromaticity coordinates of the perfect diffuse reflection surface, and are normalized as Yn = 100.

そして、色空間変換・色評価値演算回路17は、CIE 1976(L*a*b*)色空間に変換した場合には、その変換結果からtan−1(b*/a*)で算出される色相角のヒストグラムを求める。一方、色空間変換・色評価値演算回路17は、CIE 1976(L*u*v*)色空間に変換した場合には、その変換結果からtan−1(v*/u*)で算出される色相角のヒストグラムを求める。そして、算出結果をシステムコントローラ18に送信する。なお、上記L*u*v*またはL*a*b*に変換して、tan−1(v*/u*)またはtan−1(b*/a*)を求める際には、L*(明度)は、使用しないので、ホワイトバランスが調整された後のRGB信号から、u*,v*またはa*,b*(クロマティクネス指数)のみを得てもよい。 When the color space conversion / color evaluation value calculation circuit 17 converts the color space into the CIE 1976 (L * a * b *) color space, the color space conversion / color evaluation value calculation circuit 17 calculates tan −1 (b * / a *) from the conversion result. Obtain the histogram of the hue angle. On the other hand, when the color space conversion / color evaluation value calculation circuit 17 converts to the CIE 1976 (L * u * v *) color space, the color space conversion / color evaluation value calculation circuit 17 calculates tan −1 (v * / u *) from the conversion result. Obtain the histogram of the hue angle. Then, the calculation result is transmitted to the system controller 18. Note that when calculating tan −1 (v * / u *) or tan −1 (b * / a *) by converting to L * u * v * or L * a * b *, L * Since (brightness) is not used, only u *, v * or a *, b * (chromaticness index) may be obtained from the RGB signal after the white balance is adjusted.

なお、上記信号処理部10は、各ブロック(補間回路11、ホワイトバランス/ガンマ補正回路12、輝度・色差信号生成回路13、画像圧縮処理回路14、ビデオエンコーダ回路15、AF/AE評価値演算回路16、色空間変換・色評価値演算回路17、および、システムコントローラ18)が、ハードウェアロジックによって実現されてもよいし、これら機能のうちの少なくとも何れか一部を、次のようにCPUを用いてソフトウェアによって実現されてもよい。   The signal processing unit 10 includes each block (interpolation circuit 11, white balance / gamma correction circuit 12, luminance / color difference signal generation circuit 13, image compression processing circuit 14, video encoder circuit 15, AF / AE evaluation value calculation circuit. 16, the color space conversion / color evaluation value calculation circuit 17 and the system controller 18) may be realized by hardware logic, and at least some of these functions may be implemented by a CPU as follows. And may be realized by software.

すなわち、カメラ50の信号処理部10は、各ブロックの機能を実現するカメラ50の制御方法の命令を実行するCPU(central processing unit)、上記プログラムを格納したROM(read only memory)、上記プログラムを展開するRAM(random access memory)、上記プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、信号処理部10は、上述した機能を実現するソフトウェアであるカメラ50の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、信号処理部10に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、実現可能である。この場合、記録媒体から読み出されたプログラムコード自体が上述した機能を実現することになり、そのプログラムコードを記録した記録媒体は本発明を構成することになる。   That is, the signal processing unit 10 of the camera 50 includes a CPU (central processing unit) that executes instructions of a control method of the camera 50 that realizes the function of each block, a ROM (read only memory) that stores the program, and the program. A RAM (random access memory) to be developed, a storage device (recording medium) such as a memory for storing the program and various data, and the like are provided. Then, the signal processing unit 10 records a recording medium on which a program code (execution format program, intermediate code program, source program) of a control program for the camera 50, which is software for realizing the above-described functions, is recorded so as to be readable by a computer. This can also be realized by supplying the processing unit 10 and reading and executing the program code recorded on the recording medium by the computer (or CPU or MPU). In this case, the program code itself read from the recording medium realizes the above-described function, and the recording medium recording the program code constitutes the present invention.

このように本明細書において、手段(部)とは必ずしも物理的手段を意味するものではなく、各手段の機能がソフトウェアによって実現される場合も包含する。さらに、1つの手段の機能が、2つ以上の物理的手段により実現されても、もしくは、2つ以上の手段の機能が、1つの物理的手段により実現されてもよい。   Thus, in this specification, the means (unit) does not necessarily mean a physical means, but includes cases where the function of each means is realized by software. Further, the function of one means may be realized by two or more physical means, or the functions of two or more means may be realized by one physical means.

次に、本発明の合焦動作再起動判定について、図3のフローチャートに基づいて説明する。なお、図3では、ステップを“S”として記す。   Next, the focus operation restart determination of the present invention will be described based on the flowchart of FIG. In FIG. 3, the step is denoted as “S”.

デジタルスチルカメラの電源投入後、操作者によって、静止画または動画撮影モードに設定され、かつ、AF方式としてCAFが設定されると、システムコントローラ18のAF制御部23は通常の合焦動作を行う(ステップ1)。   After the digital still camera is turned on, when the operator sets the still image or moving image shooting mode and the CAF is set as the AF method, the AF control unit 23 of the system controller 18 performs a normal focusing operation. (Step 1).

すなわち、まず、システムコントローラ18は、モータ4を制御して、フォーカスレンズ1を無限遠位置または至近位置に移動させる。そして、システムコントローラ18は、モータ4を動作させて、フォーカスレンズ1を各AF評価値取得位置に順次移動させる。そして、CCD2は、フォーカスレンズ1を移動させた際の画像データを連続的に得る。得られた画像データは、CDS/AGC/ADC回路3を経てデジタル化された後、補間回路11にて他の画素との補間が行われ、ホワイトバランス/ガンマ補正回路12にて、ホワイトバランス調整が行われたRGB信号に変換される。そして、このRGB信号は、輝度・色差信号生成回路13により、輝度・色差信号に変換され、AF/AE評価値演算回路16に入力される。そして、AF/AE評価値演算回路16では、入力された輝度・色差信号に基づいて、AF評価値を算出する。そして、システムコントローラ18は、AF/AE評価値演算回路16からAF評価値を取得して、当該システムコントローラ18の記憶部21にAF評価値を格納する。このようにして、システムコントローラ18は、モータ4を動作させて、フォーカスレンズ1を次のAF評価値取得位置に移動させ、AF/AE評価値演算回路16よりAF評価値を取得する。この動作を、AF評価値の極大値が検出されるまで、もしくはフォーカスレンズ1が至近位置(無限遠位置から開始した場合)または無限遠位置(至近位置から開始した場合)に到達するまで繰り返す(ステップ2)。そして、システムコントローラ18の比較部22は、取得したAF評価値の極大値または最大値に対応するフォーカスレンズ1の位置を合焦位置と判断する。そして、システムコントローラ18は、フォーカスレンズ1を、AF評価値の極大値または最大値が検出された位置に移動させ、合焦動作を終了する。そして、システムコントローラ18は、AF/AE評価値演算回路16から、合焦位置におけるAF評価値、AE評価値を取得するとともに、色空間変換・色評価値演算回路17から、色評価値(tan−1(v*/u*)またはtan−1(b*/a*))を取得し、当該システムコントローラ18の記憶部21に格納する(ステップ3)。 That is, first, the system controller 18 controls the motor 4 to move the focus lens 1 to the infinity position or the close position. Then, the system controller 18 operates the motor 4 to sequentially move the focus lens 1 to each AF evaluation value acquisition position. The CCD 2 continuously obtains image data when the focus lens 1 is moved. The obtained image data is digitized through the CDS / AGC / ADC circuit 3, interpolated with other pixels by the interpolation circuit 11, and white balance adjustment by the white balance / gamma correction circuit 12. Are converted into RGB signals. The RGB signals are converted into luminance / color difference signals by the luminance / color difference signal generation circuit 13 and input to the AF / AE evaluation value calculation circuit 16. The AF / AE evaluation value calculation circuit 16 calculates an AF evaluation value based on the input luminance / color difference signal. Then, the system controller 18 acquires the AF evaluation value from the AF / AE evaluation value calculation circuit 16 and stores the AF evaluation value in the storage unit 21 of the system controller 18. In this way, the system controller 18 operates the motor 4 to move the focus lens 1 to the next AF evaluation value acquisition position, and acquires the AF evaluation value from the AF / AE evaluation value calculation circuit 16. This operation is repeated until the maximum value of the AF evaluation value is detected, or until the focus lens 1 reaches a close position (when starting from an infinite position) or an infinite position (when starting from a close position) ( Step 2). Then, the comparison unit 22 of the system controller 18 determines the position of the focus lens 1 corresponding to the maximum value or the maximum value of the acquired AF evaluation value as the focus position. Then, the system controller 18 moves the focus lens 1 to a position where the maximum value or maximum value of the AF evaluation value is detected, and ends the focusing operation. Then, the system controller 18 acquires the AF evaluation value and the AE evaluation value at the in-focus position from the AF / AE evaluation value calculation circuit 16, and the color evaluation value (tan −1 (v * / u *) or tan −1 (b * / a *)) is acquired and stored in the storage unit 21 of the system controller 18 (step 3).

次に、システムコントローラ18は、CCD2が新たな画像データを取得したか否かを判断する(ステップ4)。   Next, the system controller 18 determines whether or not the CCD 2 has acquired new image data (step 4).

そして、上記ステップ4にて、新たな画像データを取得したと判断すると、システムコントローラ18は、信号処理部10がCCD2より画像データを取得すると、AF/AE評価値演算回路16からAF評価値およびAE評価値を、色空間変換・色評価値演算回路17から色評価値を取得する(ステップ5)。そして、システムコントローラ18は、取得したAF評価値、AE評価値および色評価値を、当該システムコントローラ18の記憶部21に記憶する。なお、説明の便宜上、新たに取得したAF評価値、AE評価値および色評価値を現在評価値、新たに取得する直前に取得したAF評価値、AE評価値および色評価値を前回評価値として説明する。つまり、現在評価値は、断続的に取得する評価値の中で、前回評価値の1回後に取得した評価値を示す。   When it is determined in step 4 that new image data has been acquired, the system controller 18 receives the AF evaluation value and the AF evaluation value from the AF / AE evaluation value calculation circuit 16 when the signal processing unit 10 acquires image data from the CCD 2. The AE evaluation value is acquired from the color space conversion / color evaluation value calculation circuit 17 (step 5). Then, the system controller 18 stores the acquired AF evaluation value, AE evaluation value, and color evaluation value in the storage unit 21 of the system controller 18. For convenience of explanation, the newly acquired AF evaluation value, AE evaluation value, and color evaluation value are used as the current evaluation value, and the AF evaluation value, AE evaluation value, and color evaluation value acquired immediately before the new acquisition are used as the previous evaluation value. explain. That is, the current evaluation value indicates an evaluation value acquired one time after the previous evaluation value among the evaluation values acquired intermittently.

そして、システムコントローラ18の比較部22は、記憶部21に記憶されている現在評価値と前回評価値とを比較することにより、新たに合焦動作を行う必要があるか否かを判定する。より具体的には、上記比較部22は、前回色評価値と、現在色評価値とを比較して、現在色評価値と前回色評価値との差(α)が所定の範囲内であるか否かを判断する(ステップ6)。換言すると、上記比較部22は、ステップ5で取得した色評価値つまり現在色評価値を、ステップ3で取得した色評価値つまり前回色評価値と比較し、その変動量(両者の差)が所定値α2以上であるか否かを判定する。そして、現在色評価値と前回色評価値との差が上記所定値α2以上である、すなわち、前回色評価値と現在評価値との差が大きいと判定すると、比較部22は、前回の合焦動作における合焦状態が維持されていないと判定し、AF制御部23を動作させて合焦動作を行う(ステップ1に戻る)。   Then, the comparison unit 22 of the system controller 18 determines whether or not a new focusing operation needs to be performed by comparing the current evaluation value stored in the storage unit 21 with the previous evaluation value. More specifically, the comparison unit 22 compares the previous color evaluation value and the current color evaluation value, and the difference (α) between the current color evaluation value and the previous color evaluation value is within a predetermined range. (Step 6). In other words, the comparison unit 22 compares the color evaluation value acquired in step 5, that is, the current color evaluation value, with the color evaluation value acquired in step 3, that is, the previous color evaluation value, and the variation amount (difference between both) is the same. It is determined whether or not the value is equal to or greater than a predetermined value α2. If the comparison unit 22 determines that the difference between the current color evaluation value and the previous color evaluation value is equal to or greater than the predetermined value α2, that is, the difference between the previous color evaluation value and the current evaluation value is large, the comparison unit 22 It is determined that the in-focus state in the focusing operation is not maintained, and the AF control unit 23 is operated to perform the focusing operation (return to step 1).

上記ステップ6にて、現在色評価値と前回色評価値との差(α)が所定値α2よりも小さいと判断すると、比較部22は、前回AF評価値と、現在AF評価値とを比較して、現在AF評価値と前回AF評価値との差(β)が所定の範囲内であるか否かを判断する(ステップ7)。換言すると、上記比較部22は、ステップ5で取得したAF評価値つまり現在AF評価値を、ステップ3で取得したAF評価値つまり前回AF評価値と比較し、その変動量(両者の差)が所定値β2以上であるか否かを判定する。そして、現在AF評価値と前回AF評価値との差が上記所定値β2以上であると判定すると、比較部22は、前回の合焦動作における合焦状態が維持されていないと判定し、AF制御部23を動作させて合焦動作を行う(ステップ1に戻る)。   If it is determined in step 6 that the difference (α) between the current color evaluation value and the previous color evaluation value is smaller than the predetermined value α2, the comparison unit 22 compares the previous AF evaluation value with the current AF evaluation value. Then, it is determined whether or not the difference (β) between the current AF evaluation value and the previous AF evaluation value is within a predetermined range (step 7). In other words, the comparison unit 22 compares the AF evaluation value acquired in step 5, that is, the current AF evaluation value, with the AF evaluation value acquired in step 3, that is, the previous AF evaluation value, and the variation amount (difference between both) is calculated. It is determined whether or not it is equal to or greater than a predetermined value β2. If it is determined that the difference between the current AF evaluation value and the previous AF evaluation value is greater than or equal to the predetermined value β2, the comparison unit 22 determines that the in-focus state in the previous focusing operation is not maintained, and AF The controller 23 is operated to perform the focusing operation (return to step 1).

上記ステップ7にて、現在AF評価値と前回AF評価値との差(β)が所定値β2よりも小さいと判断すると、比較部22は、前回AE評価値と、現在AE評価値とを比較して、現在AE評価値と前回AE評価値との差(β)が所定の範囲内であるか否かを判断する(ステップ8)。換言すると、上記比較部22は、ステップ5で取得したAE評価値つまり現在AE評価値を、ステップ3で取得したAE評価値つまり前回AE評価値と比較し、その変動量(両者の差)が所定値γ2以上であるか否かを判定する。そして、現在AE評価値と前回AE評価値との差が上記所定値γ2以上であると判定すると、比較部22は、前回の合焦動作における合焦状態が維持されていないと判定し、AF制御部23を動作させて合焦動作を行う(ステップ1に戻る)。   If it is determined in step 7 that the difference (β) between the current AF evaluation value and the previous AF evaluation value is smaller than the predetermined value β2, the comparison unit 22 compares the previous AE evaluation value with the current AE evaluation value. Then, it is determined whether or not the difference (β) between the current AE evaluation value and the previous AE evaluation value is within a predetermined range (step 8). In other words, the comparison unit 22 compares the AE evaluation value acquired in step 5, that is, the current AE evaluation value with the AE evaluation value acquired in step 3, that is, the previous AE evaluation value, and the variation amount (difference between the two) is calculated. It is determined whether or not a predetermined value γ2 or more. If it is determined that the difference between the current AE evaluation value and the previous AE evaluation value is equal to or greater than the predetermined value γ2, the comparison unit 22 determines that the in-focus state in the previous focusing operation is not maintained, and AF The controller 23 is operated to perform the focusing operation (return to step 1).

上記ステップ8にて、現在AE評価値と前回AE評価値との差(γ)が所定値γ2よりも小さいと判断すると、比較部22は、現在色評価値と前回色評価値との差(α)、現在AF評価値と前回AF評価値との差(β)、および、現在AE評価値と前回AE評価値との差(γ)が、それぞれ、所定の値α1、β1およびγ1以上であるか否かを判定する(ステップ9)。なお、上記所定値α1およびα2、所定値β1およびβ2、所定値γ1およびγ2の関係は、それぞれ、所定値α2 > 所定値α1、所定値β2 > 所定値β1、所定値γ2 > 所定値γ1の関係を満たしている。   If it is determined in step 8 above that the difference (γ) between the current AE evaluation value and the previous AE evaluation value is smaller than the predetermined value γ2, the comparison unit 22 determines the difference between the current color evaluation value and the previous color evaluation value ( α), the difference (β) between the current AF evaluation value and the previous AF evaluation value, and the difference (γ) between the current AE evaluation value and the previous AE evaluation value are equal to or greater than predetermined values α1, β1, and γ1, respectively. It is determined whether or not there is (step 9). The predetermined values α1 and α2, the predetermined values β1 and β2, and the predetermined values γ1 and γ2 are as follows: predetermined value α2> predetermined value α1, predetermined value β2> predetermined value β1, and predetermined value γ2> predetermined value γ1. Satisfies the relationship.

そして、上記αがα1以上であり、かつ、βがβ1以上であり、かつ、γがγ1以上であると判断すると、比較部22は、前回の合焦動作における合焦状態が維持されていないと判定し、AF制御部23を動作させて合焦動作を行う(ステップ1に戻る)。また、上記αがα1より小さい、または、βがβ1より小さい、または、γがγ1より小さいと判断すると、比較部22は、新たな画像データに基づく、AF評価値、AE評価値および色評価値が取得されるまで待機する。具体的には、処理はステップ4に戻る。   If it is determined that α is α1 or more, β is β1 or more, and γ is γ1 or more, the comparison unit 22 does not maintain the focusing state in the previous focusing operation. And the AF control unit 23 is operated to perform a focusing operation (return to step 1). If it is determined that α is smaller than α1, β is smaller than β1, or γ is smaller than γ1, the comparing unit 22 determines an AF evaluation value, an AE evaluation value, and a color evaluation based on new image data. Wait for the value to be retrieved. Specifically, the process returns to step 4.

以上のように、本発明にかかるカメラ50は、結像面に結像される光学像を画像データとして出力するカメラ部30と、カメラ部30からから出力された現在の画像データと、その現在の画像データのカメラ部30からの出力前にカメラ部30から出力されていた画像データである、前回の合焦動作における合焦直後の画像データとの、色の三属性における彩度および/または色相の変化量に基づいて、前回の合焦動作における合焦状態が維持されているか否かを判定する比較部22と、上記比較部22の判定結果に基づいて、前回の合焦動作における合焦状態が維持されていない場合に、上記現在の画像データに基づいて上記カメラ50のフォーカスを調整するAF制御部23とを備えている構成である。上記の構成によれば、比較部22は、画像データの彩度および/または色相に基づいて、再度合焦動作を行うか否か(前回の合焦動作における合焦状態が維持されているか否か)を判定している。つまり、明るさの影響が少ない、色のあざやかさの度合いを示す彩度および/またはスペクトル単色光の波長で表される色相を用いて上記判定を行っているので、例えば、焦点が合っているにもかかわらず、被写体または被写体周辺の明るさが変化することにより合焦動作が行われることを低減することができる。これにより、無駄な合焦動作、つまり、焦点距離が合っているにも関わらず、フォーカスレンズを動作させて合焦動作を行うことがないカメラ50を提供することができる。   As described above, the camera 50 according to the present invention includes the camera unit 30 that outputs an optical image formed on the imaging surface as image data, the current image data output from the camera unit 30, and the current image data. And / or saturation in three attributes of color and / or image data that has been output from the camera unit 30 before the output of the image data from the camera unit 30 immediately after focusing in the previous focusing operation. A comparison unit 22 that determines whether or not the in-focus state in the previous focusing operation is maintained based on the hue change amount, and an in-focus operation in the previous focusing operation based on the determination result of the comparison unit 22. The AF control unit 23 adjusts the focus of the camera 50 based on the current image data when the focus state is not maintained. According to the above configuration, the comparison unit 22 determines whether to perform the focusing operation again based on the saturation and / or hue of the image data (whether the focusing state in the previous focusing operation is maintained). )). In other words, since the above determination is performed using the hue expressed by the saturation and / or the wavelength of the spectral monochromatic light, which is less influenced by the brightness and indicates the degree of vividness of the color, for example, the focus is achieved. Nevertheless, it is possible to reduce the focusing operation due to the change in the brightness of the subject or the surroundings of the subject. Accordingly, it is possible to provide the camera 50 that does not perform the focusing operation by operating the focus lens even though the focusing operation is useless, that is, the focal length is correct.

なお、上記合焦動作を再度行うか否かの判定手順について、上記の説明は、単に一例を示したものであり、上記手順に限定されるものではない。また、合焦動作に関しても、初回は制度をあげるためにフォーカスレンズ1の稼動範囲を所定のステップ幅ですべてサーチし、再起動時(再度合焦動作を行うとき)は所要時間を短縮するために、前回の合焦動作における合焦位置の近辺(周囲)をサーチするようにしてもよい。これについて具体的に説明する。一度合焦動作が完了した後、断続的に合焦動作を行うCAFの場合、前回の合焦動作からあまり時間が経過していない状態で合焦動作が行われることとなる。この場合には、被写体が移動していることは少なく、フォーカスレンズ1を無限遠位置から至近位置まで移動させて合焦動作を行わなくても、前回の合焦位置近傍のみ、合焦動作を行うことによって、合焦状態を作り出すことが可能になる場合が多い。また、合焦動作中は、焦点が合っていない状態であり、この状態で撮影を行うと、ボケた画像が得られることになる。従って、最小限の合焦動作で合焦状態を作り出すことがより好ましい。   In addition, about the determination procedure of whether to perform the said focusing operation | movement again, said description is only an example and is not limited to the said procedure. As for the focusing operation, in order to improve the system for the first time, the entire operating range of the focus lens 1 is searched with a predetermined step width, and the time required for restarting (when performing the focusing operation again) is shortened. In addition, the vicinity (periphery) of the focus position in the previous focus operation may be searched. This will be specifically described. In the case of the CAF that performs the focusing operation intermittently after the focusing operation is completed once, the focusing operation is performed in a state where not much time has passed since the previous focusing operation. In this case, the subject is rarely moved, and the focusing operation is performed only in the vicinity of the previous focusing position without performing the focusing operation by moving the focus lens 1 from the infinity position to the closest position. By doing so, it is often possible to create a focused state. Further, during the focusing operation, the camera is out of focus, and if shooting is performed in this state, a blurred image can be obtained. Therefore, it is more preferable to create a focused state with a minimum focusing operation.

そこで、本発明にかかるカメラ50では、合焦動作を断続的に行う(CAFモード)場合であって、前回の合焦動作における合焦状態が維持されていないと判断した場合には、システムコントローラ(合焦動作制御手段)18は、前回の合焦動作によって検出された合焦位置を含むその近傍の領域のみ、合焦手段を動作させてもよい。なお、上記合焦位置を含むその近傍の領域とは、通常の合焦動作におけるフォーカスレンズ1を動作させる距離、すなわち、フォーカスレンズ1の移動可能距離である無限遠位置から至近位置までの距離よりも短い距離である。そして、システムコントローラ18は、上記合焦位置を含むその近傍の領域について合焦動作を行わせて、合焦位置が検出されなかった場合には、合焦手段に通常の合焦動作を行わせてもよい。   Therefore, in the camera 50 according to the present invention, when the focusing operation is intermittently performed (CAF mode) and it is determined that the focusing state in the previous focusing operation is not maintained, the system controller The (focusing operation control means) 18 may operate the focusing means only in the vicinity of the area including the focusing position detected by the previous focusing operation. Note that the area in the vicinity including the in-focus position is a distance from which the focus lens 1 is operated in a normal in-focus operation, that is, a distance from an infinite position that is a movable distance of the focus lens 1 to a close position. Is also a short distance. Then, the system controller 18 causes the focusing operation to be performed on a region in the vicinity including the focusing position, and if the focusing position is not detected, causes the focusing means to perform a normal focusing operation. May be.

また、上記の説明は、ホワイトバランス調整後のRGB信号を、CIE 1976(L*a*b*)色空間またはCIE 1976(L*u*v*)色空間に変換して、tan−1(b*/a*)またはtan−1(v*/u*)の値に基づいて、前回の合焦状態が維持されているか否かを判断している。しかしながら、前回の合焦状態が維持されているか否かを判定する方法としては、上記に限定されるものではなく、例えば、C*ab(クロマ),hab(色相角)を用いて判定を行ってもよい。すなわち、本発明では、前回の合焦状態が維持されているか否かを判定するものとして、明るさの影響が少ないパラメータを用いている。 In the above description, the RGB signal after white balance adjustment is converted into the CIE 1976 (L * a * b *) color space or the CIE 1976 (L * u * v *) color space, and tan −1 ( Based on the value of b * / a *) or tan −1 (v * / u *), it is determined whether or not the previous in-focus state is maintained. However, the method for determining whether or not the previous in-focus state is maintained is not limited to the above. For example, the determination is performed using C * ab (chroma) or hab (hue angle). May be. In other words, in the present invention, a parameter that is less influenced by brightness is used as a determination as to whether or not the previous in-focus state is maintained.

また、上記の説明では、デジタルスチルカメラについて説明しているが、本発明にかかる撮像装置は、上記に限定されるものではなく、例えば、ビデオカメラ等にも好適に使用できる。本発明をビデオカメラに用いた場合、例えば、屋外で太陽が雲に隠れたり、逆に雲に隠れていた太陽が晴れ出したりしたとき、即ち被写体または被写体の周辺の明るさが変化しただけでも、合焦動作が再起動され、ピントがぼけた状態になることを防ぐことができる。   In the above description, the digital still camera is described. However, the imaging apparatus according to the present invention is not limited to the above, and can be suitably used for, for example, a video camera. When the present invention is used in a video camera, for example, when the sun is hidden behind a cloud outdoors, or when the sun hidden behind a cloud is clear, that is, even if the brightness of the subject or the surroundings of the subject changes. In this case, it is possible to prevent the in-focus operation from being restarted and the out-of-focus state.

また、本発明にかかる合焦方法は、結像面に結像される光学像を画像データに変換する撮像工程と、前記光学像の焦点調整を行うためにフォーカスレンズを移動させて合焦位置を検出し、検出した合焦位置にフォーカスレンズを停止させる合焦動作を連続的に行う合焦工程とを含む合焦方法であって、前記撮像工程により得られた現在の画像データと、その現在の画像データを得るための撮像工程より以前の撮像工程により得られていた画像データである、前回の合焦動作における合焦直後の画像データとの、AF評価値、AE評価値、色の三属性における彩度および/または色相にかかる評価値(色評価値)を比較して、前回の合焦動作における合焦状態が維持されているか否かを判定し、前回の合焦動作における合焦状態が維持されていない場合に合焦動作を行う合焦動作制御工程を含む構成であってもよい。   Further, the focusing method according to the present invention includes an imaging step for converting an optical image formed on the imaging surface into image data, and a focus lens for moving the focus to adjust the focus of the optical image. And a focusing process that continuously performs a focusing operation to stop the focus lens at the detected focusing position, the current image data obtained by the imaging process, and The AF evaluation value, the AE evaluation value, the color of the image data obtained by the imaging process prior to the imaging process for obtaining the current image data, and the image data immediately after focusing in the previous focusing operation. The evaluation values (color evaluation values) relating to the saturation and / or hue in the three attributes are compared to determine whether or not the in-focus state in the previous focusing operation is maintained. The focus is maintained Focusing operation controlling step performs the focusing operation when had emitting layer may include a.

また、本発明にかかるカメラ50は、結像面に結像される光学像を画像データに変換するCCD(撮像部)2と、前記光学像の焦点調整を行うためにフォーカスレンズを移動させて合焦位置を検出し、検出した合焦位置にフォーカスレンズを停止させる合焦動作を連続的に行うモータ4、AF/AE評価値演算回路16およびシステムコントローラ18(合焦手段)とを備えた撮像装置において、CCD2から出力された現在の画像データと、その現在の画像データのCCD2からの出力前にCCD2から出力されていた画像データである、前回の合焦動作における合焦直後の画像データとの、AF評価値、AE評価値、色の三属性における彩度および/または色相にかかる評価値(色評価値)を比較して、前回の合焦動作における合焦状態が維持されているか否かを判定し、前回の合焦動作における合焦状態が維持されていない場合に合焦動作を行うシステムコントローラ18(合焦動作制御手段)を備える構成であってもよい。   The camera 50 according to the present invention includes a CCD (imaging unit) 2 that converts an optical image formed on the imaging surface into image data, and a focus lens that moves the focus of the optical image. A motor 4, an AF / AE evaluation value calculation circuit 16, and a system controller 18 (focusing means) that continuously perform a focusing operation for detecting a focusing position and stopping the focus lens at the detected focusing position are provided. In the imaging device, current image data output from the CCD 2 and image data output from the CCD 2 before the output of the current image data from the CCD 2 are image data immediately after focusing in the previous focusing operation. And the AF evaluation value, the AE evaluation value, the saturation in the three attributes of color and / or the evaluation value (color evaluation value) relating to the hue, and the in-focus state in the previous focusing operation Determines whether it is maintained, it may be configured to include a system controller 18 (focusing operation control means) for performing focusing operation when a focus state in the previous focusing operation is not maintained.

上記色の三属性における彩度および/または色相は、均等色空間における彩度および/または色相であってもよい。   The saturation and / or hue in the three attributes of the color may be saturation and / or hue in a uniform color space.

また、本発明にかかるカメラ50は、上記画像データをL*u*v*色空間に変換して、tan−1(v*/u*)を算出する色空間変換・色評価値演算回路17を備え、上記システムコントローラ18は、得られたtan−1(v*/u*)に基づいて、前回の合焦動作における合焦状態が維持されているか否かを判定する構成であってもよい。つまり、色の三属性における彩度および/または色相として、tan−1(v*/u*)を用いて、上記現在の画像データと前回の画像データとからそれぞれ求められるtan−1(v*/u*)の変化量に基づいて前回の合焦動作における合焦状態が維持されているか否かを判定してもよい。 The camera 50 according to the present invention converts the image data into the L * u * v * color space and calculates tan −1 (v * / u *), a color space conversion / color evaluation value calculation circuit 17. The system controller 18 is configured to determine whether or not the focused state in the previous focusing operation is maintained based on the obtained tan −1 (v * / u *). Good. In other words, the saturation and / or hue in Ironosanzokusei, tan -1 (v * / u *) using, tan obtained from each of the above current image data and previous image data -1 (v * / U *), it may be determined whether or not the focused state in the previous focusing operation is maintained.

また、本発明にかかるカメラ50は、上記画像データをL*a*b*色空間に変換して、tan−1(b*/a*)を算出する色空間変換・色評価値演算回路17を備え、上記システムコントローラ18は、得られたtan−1(b*/a*)に基づいて、前回の合焦動作における合焦状態が維持されているか否かを判定する構成であってもよい。つまり、色の三属性における彩度および/または色相として、tan−1(b*/a*)を用いて、上記現在の画像データと前回の画像データとからそれぞれ求められるtan−1(b*/a*)の変化量に基づいて前回の合焦動作における合焦状態が維持されているか否かを判定してもよい。 Further, the camera 50 according to the present invention converts the image data into the L * a * b * color space and calculates tan −1 (b * / a *), a color space conversion / color evaluation value calculation circuit 17. The system controller 18 is configured to determine whether or not the focused state in the previous focusing operation is maintained based on the obtained tan −1 (b * / a *). Good. In other words, the saturation and / or hue in Ironosanzokusei, tan -1 (b * / a *) by using, tan obtained from each of the above current image data and previous image data -1 (b * It may be determined whether or not the in-focus state in the previous focusing operation is maintained based on the change amount of / a *).

また、本発明にかかるカメラ50は、結像面に結像される光学像を画像データとして出力するフォーカスレンズ1およびCCD2と、CCD2から出力された現在の画像データと、その現在の画像データのCCD2からの出力前にCCD2から出力されていた画像データである、前回の合焦動作における合焦直後の画像データとの、色の三属性における彩度および/または色相を比較して、上記現在と前回との画像データにおける上記彩度および/または色相の変化量が所定の範囲内であるか否かによって前回の合焦動作における合焦状態が維持されているか否かを判定する比較部22と、上記比較部22の判定結果に基づいて、前回の合焦動作における合焦状態が維持されていない場合に、上記現在の画像データに基づいて上記撮像部のフォーカスを調整するAF制御部23とを備えている構成であってもよい。   In addition, the camera 50 according to the present invention includes a focus lens 1 and a CCD 2 that output an optical image formed on the imaging surface as image data, current image data output from the CCD 2, and current image data. By comparing the saturation and / or hue in the three attributes of color with image data output from the CCD 2 before output from the CCD 2 and image data immediately after focusing in the previous focusing operation, The comparison unit 22 determines whether or not the in-focus state in the previous focusing operation is maintained based on whether or not the saturation and / or hue change amount in the image data between the previous and the previous image data is within a predetermined range. And when the in-focus state in the previous focusing operation is not maintained based on the determination result of the comparison unit 22, Carcass may be configured to and a AF control unit 23 for adjusting.

本発明にかかる撮像装置は、CCD等の撮像素子によって取得された画像データに基づいて合焦動作を行う合焦機能(オートフォーカス機能)を有するデジタルカメラやビデオカメラ等に好適に適用できる。   The imaging apparatus according to the present invention can be suitably applied to a digital camera, a video camera, or the like having a focusing function (autofocus function) that performs a focusing operation based on image data acquired by an imaging element such as a CCD.

本実施の形態にかかるデジタルカメラの要部の構成を示すブロック図である。It is a block diagram which shows the structure of the principal part of the digital camera concerning this Embodiment. 上記デジタルカメラの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the said digital camera. 上記デジタルカメラにおける合焦動作判定手順の一例を示すフローチャートである。It is a flowchart which shows an example of the focusing operation | movement determination procedure in the said digital camera.

符号の説明Explanation of symbols

1 フォーカスレンズ(撮像部)
2 CCD(撮像部)
3 CDS/AGC/ADC回路
5 タイミング信号発生器
6 記録メディア
7 LCDコントローラ
8 LCD
10 信号処理部
11 補間回路
12 ホワイトバランス/ガンマ補正回路
13 輝度・色差信号生成回路
14 画像圧縮処理回路
15 ビデオエンコーダ回路
16 AF/AE評価値演算回路
17 色空間変換・色評価値演算回路(変換手段)
18 システムコントローラ
21 記憶部
22 比較部(判定手段)
23 AF制御部(合焦動作制御手段)
30 カメラ部(撮像部)
50 カメラ
1 Focus lens (imaging part)
2 CCD (imaging part)
3 CDS / AGC / ADC circuit 5 Timing signal generator 6 Recording medium 7 LCD controller 8 LCD
DESCRIPTION OF SYMBOLS 10 Signal processing part 11 Interpolation circuit 12 White balance / gamma correction circuit 13 Luminance / color difference signal generation circuit 14 Image compression processing circuit 15 Video encoder circuit 16 AF / AE evaluation value calculation circuit 17 Color space conversion / color evaluation value calculation circuit (conversion means)
18 System controller 21 Storage unit 22 Comparison unit (determination means)
23 AF control unit (focusing operation control means)
30 Camera unit (imaging unit)
50 cameras

Claims (7)

結像面に結像される光学像を画像データとして出力する撮像部と、
上記撮像部により出力された画像データと該画像データの直前に上記撮像部から出力されていた画像データとの、色の三属性における彩度および/または色相の変化量に基づいて、合焦状態が維持されているか否かを判定する判定手段と、
上記判定手段の判定結果に基づいて、合焦状態が維持されていない場合に、上記撮像部のフォーカスを調整する合焦動作制御手段と
上記画像データをL*a*b*色空間に変換する変換手段とを備え、
上記判定手段は、上記撮像部から出力された画像データと、該画像データの直前に上記撮像部から出力されていた画像データとからそれぞれ得られたa*およびb*に基づき、tan −1 (b*/a*)で算出される色相角のヒストグラムを求め、このヒストグラムに応じて、合焦状態が維持されているか否かを判定することを特徴とする撮像装置。
An imaging unit that outputs an optical image formed on the imaging surface as image data;
And image data output by the imaging unit, the image data immediately before between the imaging unit or RaIzuru force once was image data, based on the amount of change in saturation and / or hue in Ironosanzokusei, Determining means for determining whether or not the in-focus state is maintained;
Based on the determination result of the determination unit, a focusing operation control unit that adjusts the focus of the imaging unit when the in-focus state is not maintained ;
Conversion means for converting the image data into an L * a * b * color space;
Said determining means, based on the image data output from the imaging unit, the a * and b * obtained from each of the image data that has been output from the imaging unit immediately before the image data, tan -1 ( An imaging apparatus characterized by obtaining a histogram of hue angles calculated by (b * / a *) and determining whether or not the in-focus state is maintained according to the histogram .
結像面に結像される光学像を画像データとして出力する撮像部と、
上記撮像部により出力された画像データと、該画像データの直前に上記撮像部から出力されていた画像データとの、色の三属性における彩度および/または色相の変化量に基づいて、合焦状態が維持されているか否かを判定する判定手段と、
上記判定手段の判定結果に基づいて、合焦状態が維持されていない場合に、上記撮像部のフォーカスを調整する合焦動作制御手段と、
上記画像データをL*u*v*色空間に変換する変換手段とを備え、
上記判定手段は、上記撮像部から出力された画像データと、該画像データの直前に上記撮像部から出力されていた画像データとからそれぞれ得られたu*およびv*に基づき、tan −1 (v*/u*)で算出される色相角のヒストグラムを求め、このヒストグラムに応じて、合焦状態が維持されているか否かを判定することを特徴とする撮像装置。
An imaging unit that outputs an optical image formed on the imaging surface as image data;
Focusing is performed based on the amount of change in saturation and / or hue in the three color attributes of the image data output by the imaging unit and the image data output from the imaging unit immediately before the image data. Determining means for determining whether or not the state is maintained;
Based on the determination result of the determination unit, a focusing operation control unit that adjusts the focus of the imaging unit when the in-focus state is not maintained;
Conversion means for converting the image data into an L * u * v * color space;
Said determining means, based on the image data output from the imaging section, the image data u * and obtained respectively from the image data that has been output from the imaging section immediately before the v *, tan -1 ( An image pickup apparatus characterized by obtaining a histogram of hue angles calculated by (v * / u *) and determining whether or not an in-focus state is maintained according to the histogram .
上記判定手段は、さらに、上記撮像部から出力された画像データと該画像データの直前に上記撮像部から出力されていた画像データとからそれぞれ求められる輝度情報に基づいて、合焦状態が維持されているか否かを判定するものであることを特徴とする請求項1または2に記載の撮像装置。 Said determination means further based on the luminance information obtained from each of the image data output from the imaging unit, an image data that has been the imaging unit or RaIzuru force immediately before the image data, focus state the imaging apparatus according to claim 1 or 2, characterized in that but is intended to determine whether it is maintained. 撮像部によって結像面に結像される光学像を画像データとして出力する撮像工程と、
上記撮像工程において、上記撮像部により出力された画像データと、該画像データの直前に上記撮像部から出力されていた画像データとの、色の三属性における彩度および/または色相の変化量に基づいて、合焦状態が維持されているか否かを判定する判定工程と、
上記判定工程の判定結果に基づいて、合焦状態が維持されていない場合に、上記撮像部のフォーカスを調整する合焦動作制御工程と
上記画像データをL*a*b*色空間に変換する変換工程とを含み、
上記判定工程において、上記撮像部から出力された画像データと、該画像データの直前に上記撮像部から出力されていた画像データとからそれぞれ得られたa*およびb*に基づき、tan −1 (b*/a*)で算出される色相角のヒストグラムを求め、このヒストグラムに応じて、合焦状態が維持されているか否かを判定することを特徴とする合焦方法。
An imaging step of outputting an optical image formed on the imaging surface by the imaging unit as image data;
In the imaging process, the image data outputted by the imaging section, the image data that has been the imaging unit or RaIzuru force immediately before the image data, the change in saturation and / or hue in Ironosanzokusei A determination step of determining whether the in-focus state is maintained based on the amount; and
Based on the determination result of the determination step, when the in-focus state is not maintained, a focusing operation control step of adjusting the focus of the imaging unit ,
Converting the image data into an L * a * b * color space,
Based on a * and b * obtained from the image data output from the imaging unit and the image data output from the imaging unit immediately before the image data in the determination step, tan −1 ( b * / a *), a histogram of hue angles calculated, and determining whether or not the in-focus state is maintained according to the histogram .
撮像部によって結像面に結像される光学像を画像データとして出力する撮像工程と、An imaging step of outputting an optical image formed on the imaging surface by the imaging unit as image data;
上記撮像工程において、上記撮像部により出力された画像データと、該画像データの直前に上記撮像部から出力されていた画像データとの、色の三属性における彩度および/または色相の変化量に基づいて、合焦状態が維持されているか否かを判定する判定工程と、In the imaging step, the amount of change in saturation and / or hue in the three attributes of color between the image data output by the imaging unit and the image data output from the imaging unit immediately before the image data. A determination step for determining whether or not the in-focus state is maintained, and
上記判定工程の判定結果に基づいて、合焦状態が維持されていない場合に、上記撮像部のフォーカスを調整する合焦動作制御工程と、Based on the determination result of the determination step, when the in-focus state is not maintained, a focusing operation control step of adjusting the focus of the imaging unit,
上記画像データをL*u*v*色空間に変換する変換工程とを含み、Converting the image data into an L * u * v * color space,
上記判定工程において、上記撮像部から出力された画像データと、該画像データの直前に上記撮像部から出力されていた画像データとからそれぞれ得られたu*およびv*に基づき、tanBased on u * and v * respectively obtained from the image data output from the imaging unit and the image data output from the imaging unit immediately before the image data in the determination step, tan −1-1 (v*/u*)で算出される色相角のヒストグラムを求め、このヒストグラムに応じて、合焦状態が維持されているか否かを判定することを特徴とする合焦方法。A focusing method characterized by obtaining a histogram of hue angles calculated by (v * / u *) and determining whether or not the in-focus state is maintained according to the histogram.
請求項1〜3のいずれか1項に記載の撮像装置を動作させる撮像装置の制御プログラムであって、コンピュータを上記の各手段として機能させるための撮像装置の制御プログラム。 An imaging apparatus control program for operating the imaging apparatus according to claim 1 , wherein the computer functions as each of the above-described means. 請求項6に記載の撮像装置の制御プログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the control program for the imaging apparatus according to claim 6 is recorded.
JP2004093692A 2004-03-26 2004-03-26 Imaging apparatus, focusing method, control program, and recording medium Expired - Fee Related JP4326997B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004093692A JP4326997B2 (en) 2004-03-26 2004-03-26 Imaging apparatus, focusing method, control program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004093692A JP4326997B2 (en) 2004-03-26 2004-03-26 Imaging apparatus, focusing method, control program, and recording medium

Publications (2)

Publication Number Publication Date
JP2005286427A JP2005286427A (en) 2005-10-13
JP4326997B2 true JP4326997B2 (en) 2009-09-09

Family

ID=35184383

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004093692A Expired - Fee Related JP4326997B2 (en) 2004-03-26 2004-03-26 Imaging apparatus, focusing method, control program, and recording medium

Country Status (1)

Country Link
JP (1) JP4326997B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5527955B2 (en) 2008-09-09 2014-06-25 キヤノン株式会社 IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP5899693B2 (en) * 2011-08-03 2016-04-06 株式会社ニコン Region extraction device, imaging device, and region extraction program

Also Published As

Publication number Publication date
JP2005286427A (en) 2005-10-13

Similar Documents

Publication Publication Date Title
US8325268B2 (en) Image processing apparatus and photographing apparatus
JP5652649B2 (en) Image processing apparatus, image processing method, and image processing program
US8937677B2 (en) Digital photographing apparatus, method of controlling the same, and computer-readable medium
US8253850B2 (en) Imaging apparatus and program thereof
JP5458937B2 (en) IMAGING DEVICE, IMAGING METHOD, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING PROGRAM FOR EXECUTING THE IMAGING METHOD
JP2010147786A (en) Imaging device and image processing method
JP2012151566A (en) Imaging device
JP2007052061A (en) Imaging device, focusing operation control method, and electronic information apparatus
JP5407373B2 (en) Imaging apparatus and program
JP2013042428A (en) Imaging device and image processing method
JP2010187113A (en) Imaging apparatus, and white balance bracketing photographing program
JP5948997B2 (en) Imaging apparatus and imaging method
JP5532621B2 (en) Electronic camera and image processing program
JP2012119756A (en) Imaging apparatus and white-balance control method
JP2010136301A (en) Imaging apparatus and solid-state imaging element therefor
JP4326997B2 (en) Imaging apparatus, focusing method, control program, and recording medium
JP2006217249A (en) Electronic camera, electronic camera system and program
JP4871664B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP2005167465A (en) Digital camera and imaging method of digital camera
JP2015122569A (en) Imaging apparatus, control method therefor and program
JP3997746B2 (en) Digital still camera
JP5091734B2 (en) Imaging apparatus and imaging method
JP2014127770A (en) Imaging apparatus
JP2013197937A (en) Image pickup device and exposure control method and program
JP2011180545A (en) Imaging device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060125

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080418

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080624

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080821

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20080821

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

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

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

Free format text: PAYMENT UNTIL: 20120619

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120619

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130619

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees