JPH10339840A - Lens focusing device - Google Patents

Lens focusing device

Info

Publication number
JPH10339840A
JPH10339840A JP9163270A JP16327097A JPH10339840A JP H10339840 A JPH10339840 A JP H10339840A JP 9163270 A JP9163270 A JP 9163270A JP 16327097 A JP16327097 A JP 16327097A JP H10339840 A JPH10339840 A JP H10339840A
Authority
JP
Japan
Prior art keywords
lens
image data
detection unit
image
contour
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
JP9163270A
Other languages
Japanese (ja)
Inventor
Masakazu Oyamada
応一 小山田
Shinichi Hirata
晋一 平田
Akifumi Arayashiki
明文 荒屋敷
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.)
Kokusai Electric Corp
Original Assignee
Kokusai Electric 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 Kokusai Electric Corp filed Critical Kokusai Electric Corp
Priority to JP9163270A priority Critical patent/JPH10339840A/en
Publication of JPH10339840A publication Critical patent/JPH10339840A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a lens focusing device capable of forming a distinct image on an image pickup unit without using a rangefinder. SOLUTION: A CCD 4 fetches the image of an object formed by a lens 1 as image data, and the contour value calculation means of a contour value detector 7 calculates the total sum of the difference of a picture element value concerning a detection unit consisting of one or plural picture elements out of image data between the detection unit and a detection unit around the detection unit, and the contour value totaling means of the detector 7 totals the total sum of the difference of the picture element value calculated concerning the detection unit and further totals it concerning plural detection units. Then, a contour value comparator 8 allows a focusing unit 3 to move the lens 1 along an optical axis to a position where the total sum calculated by the contour value totaling means is larger so as to vary a distance to the object.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、レンズによって結
像された対象物の画像を画像データとして取り込み、当
該画像データに基づいてレンズの位置を制御するレンズ
合焦装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a lens focusing device that captures an image of an object formed by a lens as image data and controls the position of the lens based on the image data.

【0002】[0002]

【従来の技術】従来より、デジタルカメラでは、レンズ
によって対象物の画像を結像し、当該画像を撮像器が画
像データとして取り込むことが行われている。そして、
画像データを取り込む際には、対象物の画像を撮像器上
に鮮明に結像させる必要があるために、レンズ合焦装置
による合焦制御によりレンズの位置を移動させている。
2. Description of the Related Art Conventionally, in a digital camera, an image of an object is formed by a lens, and the image is captured by an image pickup device as image data. And
When capturing image data, it is necessary to clearly form an image of an object on an image pickup device. Therefore, the position of a lens is moved by focusing control by a lens focusing device.

【0003】このようなレンズ合焦装置を備えたデジタ
ルカメラの一例を図3を参照して説明する。このデジタ
ルカメラでは、レンズ11及び絞り12によって対象物
の画像をCCD(charge coupled device)13上に結像
させ、当該結像された画像をCCD13でアナログデー
タの画像データとして取り込み、CCD13によって取
り込まれたアナログデータの画像データをA/D(アナ
ログ/デジタル)変換器14でデジタルデータの画像デ
ータに変換し、当該デジタルデータの画像データをフレ
ームメモリ15に保持させており、必要に応じてフレー
ムメモリ15から画像データを取り出すことが可能とな
っている。
An example of a digital camera equipped with such a lens focusing device will be described with reference to FIG. In this digital camera, an image of an object is formed on a CCD (charge coupled device) 13 by a lens 11 and an aperture 12, and the formed image is captured by the CCD 13 as analog data, and captured by the CCD 13. The A / D (analog / digital) converter 14 converts the analog data image data into digital data image data, and stores the digital data image data in the frame memory 15. 15 can extract image data.

【0004】そして、このデジタルカメラでは、レンズ
合焦装置が測距器17で対象物との距離を測定し、当該
距離に応じたレンズ位置の情報を合焦器16に入力し、
合焦器16で当該情報に応じてレンズ11の位置を移動
させることによってレンズ11を合焦位置、すなわち、
CCD13上に鮮明な画像を結像できる位置に移動させ
ている。
In this digital camera, a lens focusing device measures a distance to an object by a distance measuring device 17 and inputs information of a lens position corresponding to the distance to a focusing device 16.
By moving the position of the lens 11 in accordance with the information with the focuser 16, the lens 11 is brought into the focused position, that is,
It is moved to a position where a clear image can be formed on the CCD 13.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記し
た従来のレンズ合焦装置では、対象物との間の距離を計
測するための測距器を備えていなけければならなかっ
た。そして、この測距器を利用する場合には、距測器と
レンズとが同一の対象物を捉えておく必要があるため
に、測距器の向きをレンズの向きと同一の方向に向けて
配置しなければならなかった。このため、従来のレンズ
合焦装置をデジタルカメラ等といった装置に利用する場
合には、装置の設計上の制約が厳しくなってしまって装
置の小型化等を図る上で障害となっていた。
However, the above-mentioned conventional lens focusing apparatus had to be provided with a distance measuring device for measuring the distance to the object. When using the distance measuring device, the distance measuring device and the lens need to capture the same object, so that the direction of the distance measuring device is oriented in the same direction as the direction of the lens. Had to be placed. For this reason, when the conventional lens focusing device is used for a device such as a digital camera or the like, restrictions on the design of the device have become severe, which has been an obstacle in reducing the size of the device.

【0006】本発明は、上記した従来の事情に鑑みてな
されたもので、測距器を用いることなく撮像器上に鮮明
な画像を結像させることができるレンズ合焦装置を提供
することを目的とする。
The present invention has been made in view of the above-described conventional circumstances, and provides a lens focusing apparatus which can form a clear image on an image pickup device without using a distance measuring device. Aim.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に本発明に係るレンズ合焦装置は、レンズによって結像
された対象物の画像を画像データとして取り込み、当該
画像データに基づいてレンズの位置を制御するレンズ合
焦装置であって、レンズを光軸に沿って移動させて対象
物との距離を変更するレンズ移動手段と、レンズによっ
て結像された対象物の画像を画像データとして取り込む
撮像手段と、画像データ中の一又は複数の画素から成る
検出単位について、当該検出単位と当該検出単位の周辺
の検出単位との画素値の差の総和を算出する輪郭値算出
手段と、検出単位について算出された画素値の差の総和
を、更に、複数の検出単位について総和する輪郭値総和
手段と、輪郭値総和手段により算出された総和がより大
きい位置にレンズ移動手段によりレンズを移動させる合
焦手段と、を備えたことを特徴とする。
To achieve the above object, a lens focusing apparatus according to the present invention captures an image of an object formed by a lens as image data, and based on the image data, captures an image of an object. A lens focusing device for controlling a position, a lens moving means for moving a lens along an optical axis to change a distance to an object, and capturing an image of the object formed by the lens as image data. An imaging unit, a contour value calculating unit that calculates, for a detection unit including one or more pixels in the image data, a sum of pixel value differences between the detection unit and detection units around the detection unit, and a detection unit. The sum of the pixel value differences calculated for the plurality of detection units is further summed up, and the lens is positioned at a position where the sum calculated by the contour value summing means is larger. And focusing means for moving the lens by moving means, characterized by comprising a.

【0008】ここで、検出単位と当該検出単位の周囲の
検出単位との画素値の差とは、検出単位の画素値そのま
まの差という意味だけではなく、例えば、それぞれの画
素値に重み付けを行った後の差という意味も含んでい
る。
Here, the difference in pixel value between the detection unit and the detection unit around the detection unit does not only mean the difference of the pixel value of the detection unit as it is, but, for example, weights each pixel value. After the difference is also included.

【0009】上記した本発明に係るレンズ合焦装置で
は、撮像手段がレンズによって結像された対象物の画像
を画像データとして取り込み、輪郭値算出手段が画像デ
ータ中の一又は複数の画素から成る検出単位について、
当該検出単位と当該検出単位の周辺の検出単位との画素
値の差の総和を算出し、輪郭値総和手段が検出単位につ
いて算出された画素値の差の総和を、更に、複数の検出
単位について総和する。次いで、合焦手段が輪郭値総和
手段により算出された総和がより大きい位置にレンズ移
動手段によりレンズを光軸に沿って移動させて対象物と
の距離を変更する。
In the above-described lens focusing apparatus according to the present invention, the imaging means captures an image of the object formed by the lens as image data, and the contour value calculation means comprises one or a plurality of pixels in the image data. About the detection unit,
The sum of pixel value differences between the detection unit and the detection units around the detection unit is calculated, and the contour value summing means calculates the sum of pixel value differences calculated for the detection unit, and further for a plurality of detection units. Sum up. Next, the focusing unit moves the lens along the optical axis by the lens moving unit to a position where the sum calculated by the contour value summing unit is larger, and changes the distance to the object.

【0010】ここで、検出単位と周辺の検出単位との画
素値の差の総和を、更に、複数の検出単位について総和
した値がより大きいということは、撮像されている対象
物の画像がより鮮明に結像されていることを表してい
る。したがって、前記複数の検出単位について総和した
値がより大きい位置にレンズを移動させることによっ
て、撮像器に鮮明な画像を結像することができる。な
お、前記複数の検出単位について総和した値が最大とな
る位置にレンズを移動させることが好ましい。
Here, the fact that the sum of the differences between the pixel values of the detection unit and the surrounding detection units and the sum of the plurality of detection units is larger means that the image of the object being picked up has a larger value. This indicates that the image is clearly formed. Therefore, a clear image can be formed on the image pickup device by moving the lens to a position where the total value of the plurality of detection units is larger. It is preferable that the lens is moved to a position where the sum of the plurality of detection units is maximized.

【0011】[0011]

【発明の実施の形態】本発明の一実施例に係るレンズ合
焦装置を備えたデジタルカメラの一例を図1を参照して
説明する。このデジタルカメラは、レンズ1と、レンズ
1からの光の量を調節する絞り2と、レンズ1の位置を
移動させる合焦器3と、レンズ1及び絞り2を介して対
象物の画像を撮像するCCD4と、アナログ信号をデジ
タル信号に変換するA/D変換器5と、画像データを格
納するフレームメモリ6と、輪郭値の総和を算出する輪
郭値検出器7と、算出された輪郭値の総和に基づいて合
焦器3を制御する輪郭値比較器8と、輪郭値検出器7に
よる算出結果を保持するメモリ9と、を備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An example of a digital camera provided with a lens focusing device according to one embodiment of the present invention will be described with reference to FIG. This digital camera captures an image of a target object via a lens 1, an aperture 2 for adjusting the amount of light from the lens 1, a focus unit 3 for moving the position of the lens 1, and the lens 1 and the aperture 2. CCD 4, an A / D converter 5 for converting an analog signal into a digital signal, a frame memory 6 for storing image data, a contour value detector 7 for calculating a sum of contour values, A contour value comparator 8 that controls the focusing device 3 based on the summation, and a memory 9 that holds a calculation result by the contour value detector 7 are provided.

【0012】なお、フレームメモリ6と、輪郭検出器7
と、輪郭値比較器8と、合焦器3とは、データ・制御バ
ス10によって接続されている。ここで、レンズ合焦装
置は、CCD4と、A/D変換器5と、フレームメモリ
6と、輪郭値検出器7と、輪郭値比較器8と、メモリ9
と、によって構成されており、デジタルカメラが有する
CCD4、A/D変換器5、フレームメモリ6等といっ
た構成物を利用した構成となっている。
The frame memory 6 and the contour detector 7
, The contour value comparator 8 and the focus unit 3 are connected by a data / control bus 10. Here, the lens focusing device includes a CCD 4, an A / D converter 5, a frame memory 6, a contour value detector 7, a contour value comparator 8, and a memory 9
And a configuration using components such as a CCD 4, an A / D converter 5, and a frame memory 6 included in the digital camera.

【0013】合焦器3は、輪郭値比較器8からの制御信
号に従って、レンズ1を光軸に沿って移動させて当該レ
ンズ1と対象物との間の距離を変更させるモータ等とい
ったレンズ位置移動手段である。CCD4は、レンズ1
及び絞り2を介して結像された対象物の画像をフレーム
毎のアナログデータの画像データとして取り込む撮像手
段であり、取り込んだアナログデータの画像データをA
/D変換器5へ出力する。A/D変換器5は、CCD4
から入力された画像データをアナログデータからデジタ
ルデータに変換し、変換したデジタルデータの画像デー
タをフレームメモリ6へ送出する。フレームメモリ6
は、A/D変換器5から受け取ったデジタルデータの画
像データをフレーム毎に画像データとして格納する。
In accordance with a control signal from the contour value comparator 8, the focuser 3 moves the lens 1 along the optical axis to change the distance between the lens 1 and the object. Means of transportation. The CCD 4 is a lens 1
And image capturing means for capturing an image of the object formed through the aperture 2 as image data of analog data for each frame.
Output to the / D converter 5. The A / D converter 5 is a CCD 4
And converts the analog image data into digital data, and sends the converted digital image data to the frame memory 6. Frame memory 6
Stores the image data of the digital data received from the A / D converter 5 as image data for each frame.

【0014】輪郭値検出器7は、フレームメモリ6に格
納された画像データ中の画素(検出単位)について、当
該画素と当該画素の周辺の画素との画素値の差の総和
(輪郭値)を算出する輪郭値算出手段と、複数の画素
(例えば、画像データ中の中心部の20×20画素等)
について算出された輪郭値を総和する輪郭値総和手段
と、を有している。輪郭値算出手段は、フレームメモリ
に格納された画像データ中の画素(x,y)について以
下の式(1)を適用することによって輪郭値g(x,
y)を算出する。なお、本実施例では、画像データ中の
中心部20×20画素を構成する各画素について輪郭値
の算出を行っている。
The contour value detector 7 calculates, for a pixel (detection unit) in the image data stored in the frame memory 6, the total sum (contour value) of the difference between the pixel value and the pixel around the pixel. Contour value calculating means to be calculated, and a plurality of pixels (for example, 20 × 20 pixels at the center in image data)
And a contour value summing means for summing the contour values calculated with respect to. The contour value calculating means applies a contour value g (x, x, y) to the pixel (x, y) in the image data stored in the frame memory by applying the following equation (1).
y) is calculated. In this embodiment, the contour value is calculated for each pixel constituting the central 20 × 20 pixels in the image data.

【0015】[0015]

【数1】 (Equation 1)

【0016】ここで、”i”は、輪郭値を算出する画素
(x,y)と、算出する際に使用する画素とのX軸方向
の相対位置を表し、”j”は、Y軸方向の相対位置を表
している。また、f(x+i,y+j)は、画素(x+
i,y+j)の画素値である。また、h(i,j)は、
輪郭を検出するためのカーネルであり、画素(x,y)
との相対位置が(i,j)の画素の画素値に対して乗す
る数値である。本実施例では、或る画素の輪郭値とし
て、当該画素と、当該画素の周囲8画素から成る3×3
画素を使用して輪郭値を算出しており、h(i,j)と
しては、式(2)に示すものを用いている。
Here, "i" indicates the relative position in the X-axis direction between the pixel (x, y) for calculating the contour value and the pixel used for calculation, and "j" indicates the Y-axis direction. Represents the relative position of. Also, f (x + i, y + j) is a pixel (x +
i, y + j). H (i, j) is
This is a kernel for detecting an outline, and a pixel (x, y)
Is a numerical value multiplied by the pixel value of the pixel at (i, j). In the present embodiment, as a contour value of a certain pixel, a 3 × 3 pixel including the pixel and eight pixels around the pixel is used.
The contour value is calculated using pixels, and h (i, j) is represented by the equation (2).

【0017】上記した式(1)によると、或る画素の輪
郭値は、或る画素の画素値を4倍したものから上下左右
の画素の画素値を減算したものとして算出されることと
なり、周囲の画素との間での画素値変化が大きいほど、
輪郭値の絶対値が大きいことを表している。このことか
ら、同一の対象物に対するレンズ位置を変えた場合に
は、レンズが合焦位置に近いほど或る画素と周囲の画素
との画素値変化が大きくなるので、レンズが合焦位置に
近いほど輪郭値の絶対値が大きいということがいえる。
According to the above equation (1), the contour value of a certain pixel is calculated as the value obtained by subtracting the pixel values of the upper, lower, left and right pixels from the value obtained by quadrupling the pixel value of a certain pixel. The larger the pixel value change with surrounding pixels, the more
This indicates that the absolute value of the contour value is large. From this, when the lens position with respect to the same object is changed, the closer the lens is to the in-focus position, the larger the pixel value change between a certain pixel and surrounding pixels becomes, so the lens is closer to the in-focus position. It can be said that the absolute value of the contour value is larger as the value is larger.

【0018】なお、或る画素の輪郭値として、当該画素
と当該画素の周囲24画素から成る5×5画素を使用し
て輪郭値を算出する場合には、h(i,j)としては、
例えば、式(3)に示すものを用いることができ、この
場合には、上記した式(1)中の”i”を、−2〜2の
数値を取るようにし、”j”を、−2〜2の数値を取る
ようにすればよい。
When a contour value of a pixel is calculated using a 5 × 5 pixel composed of the pixel and 24 pixels surrounding the pixel, h (i, j) is calculated as follows.
For example, the expression (3) can be used. In this case, “i” in the expression (1) is set to a value of −2 to 2, and “j” is set to −. What is necessary is just to take the numerical value of 2-2.

【0019】輪郭値総和手段は、輪郭値算出手段によっ
て算出された画像データ中の中心部20×20画素を構
成する各画素の輪郭値の絶対値を総和して、当該画像デ
ータを取り込んだ際のレンズの位置と対応付けてメモリ
9に格納する。
The contour value summing means sums up the absolute values of the contour values of the pixels constituting the central 20 × 20 pixels in the image data calculated by the contour value calculating means, and fetches the image data. Is stored in the memory 9 in association with the lens position.

【0020】輪郭値比較器8は、メモリ9に格納された
レンズ位置に対応付けられた輪郭値の総和の中で最大と
なるものを検出し、当該輪郭値の総和が最大となるレン
ズ位置へレンズ1を移動させる制御信号を合焦器3に出
力する合焦手段を有している。
The contour value comparator 8 detects the largest sum of the contour values corresponding to the lens positions stored in the memory 9 and moves to the lens position at which the sum of the contour values becomes the largest. There is a focusing means for outputting a control signal for moving the lens 1 to the focusing device 3.

【0021】次に、上記したデジタルカメラの動作を説
明する。このデジタルカメラでは、レンズ1及び絞り2
がCCD4上に対象物の画像を結像し、CCD4が結像
された画像をアナログデータの画像データとして取り込
み、A/D変換器5がCCD4によって取り込まれた画
像データをアナログデータからデジタルデータへ変換
し、当該デジタルデータの画像データをフレームメモリ
6が格納する。これにより、ユーザは、必要に応じてフ
レームメモリ6に格納されている画像データを使って、
表示装置(図示せず)に表示出力したり、フローピーデ
ィスク等といった記憶媒体に格納する等といった処理を
行うことができる。
Next, the operation of the above digital camera will be described. In this digital camera, a lens 1 and an aperture 2
Forms an image of an object on the CCD 4, captures the image formed by the CCD 4 as image data of analog data, and the A / D converter 5 converts the image data captured by the CCD 4 from analog data to digital data. After conversion, the image data of the digital data is stored in the frame memory 6. Thereby, the user can use the image data stored in the frame memory 6 as necessary,
Processing such as display output on a display device (not shown) or storage in a storage medium such as a floppy disk can be performed.

【0022】ここで、上記した動作において対象物の画
像をより鮮明な画像データとして取り込むために、レン
ズ合焦装置が以下に示すようにレンズ1の位置を移動さ
せて、CCD4上に結像される対象物の画像を鮮明にす
る合焦制御を行う。すなわち、レンズ1及び絞り2がC
CD4上に対象物の画像を結像させ、CCD4が結像さ
れた画像をアナログデータの画像データとして取り込
み、A/D変換器5がCCD4によって取り込まれた画
像データをアナログデータからデジタルデータへ変換
し、当該デジタルデータの画像データをフレームメモリ
6が格納する。
Here, in order to capture the image of the object as clearer image data in the above-described operation, the lens focusing device moves the position of the lens 1 as described below to form an image on the CCD 4. Focus control for sharpening the image of the target object to be performed is performed. That is, when the lens 1 and the aperture 2 are C
An image of the object is formed on the CD 4, the image formed by the CCD 4 is captured as analog data, and the A / D converter 5 converts the image data captured by the CCD 4 from analog data to digital data. Then, the image data of the digital data is stored in the frame memory 6.

【0023】次いで、輪郭値検出器7の輪郭値算出手段
がフレームメモリ6に格納された画像データ中の画素に
ついて輪郭値を算出し、輪郭値総和手段が画像データ中
の中心部の20×20画素について算出された輪郭値を
総和して、当該画像データを取り込んだ際のレンズ位置
と対応させてメモリ9に格納する。そして、合焦器3が
レンズ位置を逐次移動させ、上記同様の動作を繰り返し
行い、複数のレンズ位置に対応する輪郭値の総和をメモ
リ9へ格納する。
Next, the contour value calculating means of the contour value detector 7 calculates a contour value for a pixel in the image data stored in the frame memory 6, and the contour value summing means calculates the center value of 20 × 20 in the image data. The contour values calculated for the pixels are summed up and stored in the memory 9 in correspondence with the lens position when the image data was fetched. Then, the focusing device 3 sequentially moves the lens position, repeats the same operation as described above, and stores the sum of the contour values corresponding to the plurality of lens positions in the memory 9.

【0024】このように、複数のレンズ位置に対応する
輪郭値の総和をメモリ9に格納した後に、輪郭値比較器
8がメモリ4に格納された輪郭値の総和の中で、最大の
ものを検出し、当該最大の輪郭値の総和に対応付けられ
ているレンズ位置、すなわち、合焦位置を検出する。な
お、図2には、輪郭値の和と、レンズ位置との対応関係
を示すとともに、この場合におけるレンズの合焦位置を
示してある。次いで、輪郭値比較器8は、検出した合焦
位置にレンズ1を移動させる制御信号を出力し、合焦器
3が当該制御信号に従ってレンズ1を移動させることと
なる。したがって、CCD4上には、鮮明な対象物の画
像が結像されることとなり、対象物をより鮮明な画像デ
ータとして取り込むことができる。
As described above, after the sum of the contour values corresponding to the plurality of lens positions is stored in the memory 9, the contour value comparator 8 determines the largest sum of the contour values stored in the memory 4. Then, the lens position corresponding to the maximum sum of the contour values, that is, the in-focus position is detected. FIG. 2 shows the correspondence between the sum of the contour values and the lens position, and also shows the focusing position of the lens in this case. Next, the contour value comparator 8 outputs a control signal for moving the lens 1 to the detected in-focus position, and the focus unit 3 moves the lens 1 according to the control signal. Therefore, a clear image of the object is formed on the CCD 4, and the object can be captured as clearer image data.

【0025】なお、上記した実施例では一つの画素から
成る検出単位を用いていたが、例えば、隣接する2個、
3個等といった複数の画素から成る検出単位を用いるこ
ともでき、この場合には検出単位の画素値としては、例
えば、検出単位を構成する複数の画素の画素値の和、或
いは画素値の平均を用いればよい。
In the above-described embodiment, a detection unit composed of one pixel is used.
A detection unit including a plurality of pixels such as three pixels can be used. In this case, the pixel value of the detection unit is, for example, a sum of pixel values of a plurality of pixels constituting the detection unit or an average of the pixel values. May be used.

【0026】また、画像データがR(赤)、G(緑)、
B(青)といった3つの成分を有する画像データである
場合においては、これら3つの成分の中の少なくともい
ずれか一つの成分を使って上記した発明を実施すること
ができる。また、画像データがNTSC方式のY(輝
度)、I、Qといった成分を有する場合、或いは、画像
データがPAL方式のY(輝度)、U、Vといった成分
を有する場合には、例えば、Y(輝度)成分を使って上
記した発明を実施することができる。
The image data is R (red), G (green),
In the case of image data having three components such as B (blue), the above-described invention can be carried out using at least one of these three components. For example, if the image data has components such as Y (luminance), I, and Q in the NTSC system, or if the image data has components such as Y (luminance), U, and V in the PAL system, for example, Y ( The invention described above can be carried out using the (luminance) component.

【0027】なお、上記した実施例では、プロセッサが
ROM、RAM等に格納された制御プログラムを実行す
ることにより、上記したレンズ合焦装置の合焦処理を制
御する構成としていたが、当該合焦処理を実行する各機
能手段を独立したハードウェア回路として構成すること
もできる。
In the above embodiment, the processor controls the focusing process of the lens focusing device by executing the control program stored in the ROM, the RAM, or the like. Each functional unit that executes the processing may be configured as an independent hardware circuit.

【0028】また、本発明は、スチルカメラやビデオカ
メラ等といったデジタルカメラだけでなく、対象物を撮
像するために合焦制御を行うことが必要なものに広く適
用することができる。
The present invention can be widely applied not only to a digital camera such as a still camera or a video camera, but also to a camera that needs to perform focusing control for imaging an object.

【0029】[0029]

【発明の効果】以上説明したように、本発明に係るレン
ズ合焦装置によると、撮像された対象物の画像データ中
の一又は複数の画素から成る検出単位について、当該検
出単位と当該検出単位の周辺の検出単位との画素値の差
の総和を算出し、検出単位について算出された画素値の
差の総和を、更に、複数の検出単位について総和し、当
該総和がより大きい位置にレンズを光軸に沿って移動さ
せて対象物との距離を変更するようにしたために、測距
器を備えずとも撮像器に鮮明な対象物の画像を結像させ
ることができ、鮮明な画像データを取り込むことができ
る。また、デジタルカメラ等といった装置において、当
該レンズ合焦装置を使用することにより測距器を備える
必要がなくなり、コストを削減できるとともに、装置設
計上の制約を緩和することができる。
As described above, according to the lens focusing apparatus according to the present invention, the detection unit composed of one or a plurality of pixels in the image data of the imaged object is the detection unit and the detection unit. Calculate the sum of the pixel value differences with the surrounding detection units, sum the pixel value differences calculated for the detection units, and further sum for multiple detection units, and place the lens at a position where the sum is greater. By moving along the optical axis to change the distance to the object, it is possible to form a clear image of the object on the image pickup device without having a distance measuring device, and clear image data Can be captured. Further, in a device such as a digital camera, the use of the lens focusing device eliminates the need for providing a distance measuring device, so that costs can be reduced and restrictions on device design can be eased.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明に係るレンズ合焦装置を備えたデジタ
ルカメラの構成図である。
FIG. 1 is a configuration diagram of a digital camera including a lens focusing device according to the present invention.

【図2】 輪郭値の和とレンズの位置との対応関係及び
合焦位置を示す図である。
FIG. 2 is a diagram showing a correspondence relationship between a sum of contour values and a position of a lens and a focus position.

【図3】 従来例のレンズ合焦装置を備えたデジタルカ
メラの構成図である。
FIG. 3 is a configuration diagram of a digital camera including a conventional lens focusing device.

【符号の説明】[Explanation of symbols]

1・・レンズ、 2・・絞り、3・・合焦器、
4・・CCD、5・・A/D変換器、 6・・フレ
ームメモリ、7・・輪郭検出器、 8・・輪郭値比較
器、9・・メモリ、 10・・データ・制御バ
ス。
1. Lens, 2. Aperture, 3. Focuser,
4. CCD, 5 A / D converter, 6 frame memory, 7 contour detector, 8 contour value comparator, 9 memory, 10 data control bus.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】レンズによって結像された対象物の画像を
画像データとして取り込み、当該画像データに基づいて
レンズの位置を制御するレンズ合焦装置であって、 レンズを光軸に沿って移動させて対象物との距離を変更
するレンズ移動手段と、 レンズによって結像された対象物の画像を画像データと
して取り込む撮像手段と、 画像データ中の一又は複数の画素から成る検出単位につ
いて、当該検出単位と当該検出単位の周辺の検出単位と
の画素値の差の総和を算出する輪郭値算出手段と、 検出単位について算出された画素値の差の総和を、更
に、複数の検出単位について総和する輪郭値総和手段
と、 輪郭値総和手段により算出された総和がより大きい位置
にレンズ移動手段によりレンズを移動させる合焦手段
と、を備えたことを特徴とするレンズ合焦装置。
1. A lens focusing device for capturing an image of an object formed by a lens as image data and controlling a position of the lens based on the image data, wherein the lens is moved along an optical axis. Lens moving means for changing the distance to the object by means of an imaging means for capturing an image of the object formed by the lens as image data; and detecting the detection unit comprising one or more pixels in the image data. Contour value calculating means for calculating the sum of the pixel values of the unit and the detection unit around the detection unit; and summing the sum of the pixel values calculated for the detection unit for a plurality of detection units. A contour value summing means; and a focusing means for moving a lens by a lens moving means to a position where the sum calculated by the contour value summing means is larger. Lens focusing device.
JP9163270A 1997-06-05 1997-06-05 Lens focusing device Pending JPH10339840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9163270A JPH10339840A (en) 1997-06-05 1997-06-05 Lens focusing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9163270A JPH10339840A (en) 1997-06-05 1997-06-05 Lens focusing device

Publications (1)

Publication Number Publication Date
JPH10339840A true JPH10339840A (en) 1998-12-22

Family

ID=15770626

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9163270A Pending JPH10339840A (en) 1997-06-05 1997-06-05 Lens focusing device

Country Status (1)

Country Link
JP (1) JPH10339840A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009081786A (en) * 2007-09-27 2009-04-16 Casio Comput Co Ltd Imaging apparatus, subject separating method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009081786A (en) * 2007-09-27 2009-04-16 Casio Comput Co Ltd Imaging apparatus, subject separating method, and program

Similar Documents

Publication Publication Date Title
US5877809A (en) Method of automatic object detection in image
US9491440B2 (en) Depth-sensing camera system
JP3733392B2 (en) Image composition change detection method
JP5848561B2 (en) Imaging apparatus, control method therefor, program, and storage medium
JP2004088149A (en) Imaging system and image processing program
JPH0380676A (en) Electronic pan focus device
JP3732665B2 (en) Automatic focus control device and focusing operation determination method thereof
JP2018116239A (en) Image blur correction device, method for controlling the same, imaging device, program, and storage medium
JP2011217103A (en) Compound eye photographing method and apparatus
JPH0580248A (en) Automatic focusing device
JP2001177752A (en) Image pickup method and device to generate combined output image having image components photographed by different focal distances
JP5378283B2 (en) Imaging apparatus and control method thereof
JP4182566B2 (en) Digital camera and computer-readable recording medium
KR100561449B1 (en) Digital zoom out processing apparatus
JP3105334B2 (en) Automatic focusing device
JP2009017427A (en) Imaging device
JP3122099B2 (en) Image synthesizing apparatus and image synthesizing method
KR20010037684A (en) Apparatus for correlating of exposure automatically of a digital still camera and method for performing the same
JPH10339840A (en) Lens focusing device
JPH03149512A (en) Focus control circuit
JPWO2005033764A1 (en) Lens position control device
JPH063577A (en) Focusing device and its method
JP6971589B2 (en) Imaging device, imaging system, its control method and program
JP2011135537A (en) Imaging apparatus and control method of the same
JP2000175101A (en) Automatic tracking device