JPH09318870A - Range finder, photographing device, and background processor - Google Patents

Range finder, photographing device, and background processor

Info

Publication number
JPH09318870A
JPH09318870A JP15316996A JP15316996A JPH09318870A JP H09318870 A JPH09318870 A JP H09318870A JP 15316996 A JP15316996 A JP 15316996A JP 15316996 A JP15316996 A JP 15316996A JP H09318870 A JPH09318870 A JP H09318870A
Authority
JP
Japan
Prior art keywords
block
shift amount
image
main subject
distance measuring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP15316996A
Other languages
Japanese (ja)
Other versions
JP4136012B2 (en
Inventor
Akira Suzuki
明 鈴木
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP15316996A priority Critical patent/JP4136012B2/en
Publication of JPH09318870A publication Critical patent/JPH09318870A/en
Application granted granted Critical
Publication of JP4136012B2 publication Critical patent/JP4136012B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Measurement Of Optical Distance (AREA)
  • Focusing (AREA)
  • Automatic Focus Adjustment (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

PROBLEM TO BE SOLVED: To accurately extract a main object inside a rangefinding visual field at a high speed and to detect the image deviation amount or the distance of the main object part even though the object three-dimensionally exists in a wide field. SOLUTION: An image information detecting part 1 has a pair of photoelectric conversion element columns 1L and 1R. The columns 1L and 1R respectively photoelectrically convert a pair of object images formed by a photometric optical system arranged while having base length. Right and left image information is nearly simultaneously outputted corresponding to each other from each end part. The image information output from the part 1 is given to a main object detecting part 2. The part 2 detects the main object image based on the image information output from the part 1, and the image deviation amount of the main object image is calculated.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、カメラに好適な測
距装置に係り、特にCCD(Charge Coupled Device :
電荷結合素子)等の光電変換素子を用いたパッシブ型の
測距装置、それを用いた撮影装置および背景処理装置に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a distance measuring device suitable for a camera, and more particularly to a CCD (Charge Coupled Device:
The present invention relates to a passive distance measuring device using a photoelectric conversion element such as a charge-coupled device), a photographing device using the same, and a background processing device.

【0002】[0002]

【従来の技術】近年、スティルカメラのみならずビデオ
カメラおよび2枚のエリアCCDを用いた3D(3-Dime
nsional :三次元)撮像装置等を含む各種のカメラにお
いては、ほとんどの場合、ピント合わせを自動化したオ
ートフォーカスシステムが組み込まれている。このよう
なオートフォーカスシステムは、主として、被写体距離
を計測する測距装置と撮影レンズの繰り出し制御を行う
レンズ制御装置との組合せにより構成される。従来よ
り、広い測距視野内の所望の点を撮影者が指示して、そ
の個所について測距演算する測距システム、および前記
測距視野を複数の測距エリアに分割し、これら測距エリ
アを選択的に用いて測距演算する多点測距システム等が
提案されている。
2. Description of the Related Art Recently, 3D (3-Dime) using not only a still camera but also a video camera and two area CCDs has been used.
In most cases, various cameras including nsional (three-dimensional) image pickup devices incorporate an autofocus system that automates focusing. Such an autofocus system is mainly configured by a combination of a distance measuring device that measures the subject distance and a lens control device that controls the extension of the photographing lens. Conventionally, a distance measuring system in which a photographer designates a desired point in a wide distance measuring field and calculates a distance at that point, and the distance measuring field is divided into a plurality of distance measuring areas, and these distance measuring areas are A multi-point distance measuring system or the like has been proposed in which distance calculation is performed by selectively using.

【0003】従来の測距装置には、例えば次のようなも
のがある。 (1) 特開平7−287161号公報には、複数に分割さ
れた測距エリアを有する多点測距装置において、隣接す
る測距エリアを一部分重複させて設定することが示され
ている。このように測距エリアをオーバラップさせるこ
とにより、測距対象が測距エリアの空白部すなわち不感
帯に入ってしまう、いわば中抜け現象の可能性を低減し
ている。
Examples of conventional distance measuring devices are as follows. (1) Japanese Patent Application Laid-Open No. 7-287161 discloses that in a multipoint distance measuring device having a plurality of divided distance measuring areas, adjacent distance measuring areas are partially overlapped and set. By overlapping the distance-measuring areas in this way, the possibility of a so-called hollow-out phenomenon in which the distance-measuring object enters the blank area of the distance-measuring area, that is, the dead zone, is reduced.

【0004】(2) 特開平7−181010号公報には、
多点測距装置において、測距結果が不確定のポイントに
ついては、そのポイントの近傍に位置し且つ測距結果が
既に確定したポイントの測距結果に基づいて、距離を求
めることが示されている。このように、隣接点の既知の
測距結果に基づいて、不確定のポイントの測距結果を求
めることによって、測距演算に要する時間を短縮してい
る。
(2) Japanese Patent Application Laid-Open No. 7-181010 discloses that
It has been shown that, in a multi-point distance measuring device, for a point for which the distance measurement result is uncertain, the distance is calculated based on the distance measurement result of a point located near that point and for which the distance measurement result has already been confirmed. There is. As described above, the time required for the distance measurement calculation is shortened by obtaining the distance measurement result of the indefinite point based on the known distance measurement result of the adjacent point.

【0005】(3) 特開昭61−245124号公報に
は、焦点検出のための画像出力をA/D(Analog-to-Di
gital 〜アナログ−ディジタル)変換している間に、該
焦点検出のための所定の演算を行うことにより、測距演
算に要する時間の短縮を図る焦点検出装置が示されてい
る。
(3) Japanese Patent Application Laid-Open No. 61-245124 discloses an image output for focus detection by an A / D (Analog-to-Di).
A focus detecting device is shown which shortens the time required for the distance measurement calculation by performing a predetermined calculation for the focus detection during the conversion from digital to analog-digital).

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述し
た従来の測距システムには、次のような問題がある。 (1) 特開平7−287161号公報には、分割した複数
の測距エリアを互いにオーバラップさせるようにした測
距装置が示されている。しかしながら、この測距装置
は、単に測距ポイントを細分割して、多点とした場合の
不感帯をなくす手法を提案しているだけある。したがっ
て、実際の撮影に関する主要被写体については、何ら考
慮されておらず、主要被写体の弁別および測距について
は、撮影者の判断・操作に頼っている。また、この測距
装置では、測距点が多点になったことに伴う演算時間の
増大についても、全く考慮されていない。
However, the above-described conventional distance measuring system has the following problems. (1) Japanese Patent Laid-Open No. 7-287161 discloses a distance measuring device in which a plurality of divided distance measuring areas overlap each other. However, this distance measuring device merely proposes a method of eliminating the dead zone when the distance measuring points are simply subdivided to make multiple points. Therefore, no consideration is given to the main subject relating to actual photography, and the discrimination and distance measurement of the main subject depend on the photographer's judgment and operation. In addition, the distance measuring device does not take into consideration the increase in the calculation time due to the number of distance measuring points.

【0007】(2) 特開平7−181010号公報には、
あるポイントで測距結果が確定した場合、それ以降は、
その近傍のみの距離を相関演算する測距装置が示されて
いる。この測距装置は、隣接点との類似性を推定するこ
とにより演算時間を短縮するものである。すなわち、単
に被写体が複数の測距ポイントにまたがっているという
当然の前提に基づき、その隣接点はすでに算出された結
果に近い結果となると推定して、その結果付近を相関演
算し、さらに測距計算が不可能な部分については、可能
な部分の計算結果で代用することにより、演算時間を短
縮する。
(2) Japanese Patent Laid-Open No. 7-181010 discloses that
If the distance measurement result is confirmed at a certain point, after that,
A range finder that correlates distances only in the vicinity is shown. This distance measuring device shortens the calculation time by estimating the similarity with an adjacent point. That is, based on the natural assumption that the subject straddles a plurality of distance measurement points, it is estimated that the adjacent points will have a result close to the already calculated result, and the correlation calculation will be performed in the vicinity of the result, and the distance measurement will be further performed. The calculation time is shortened by substituting the calculation result of the possible part for the part that cannot be calculated.

【0008】しかしながら、実際には被写体と背景とが
3次元的に混在するので、単に近傍の測距結果に基づい
て測距演算を簡略化するだけでは、充分な測距結果は得
ることができないと推察される。また、相関演算の捜索
幅の限定方法等についての開示もない。なお、この公報
でも、主要被写体の抽出あるいは被写体と背景等の分離
については、何も言及していない。
However, since the subject and the background coexist three-dimensionally, a sufficient distance measurement result cannot be obtained by simply simplifying the distance measurement calculation based on the distance measurement results in the vicinity. It is presumed that. Further, there is no disclosure about a method of limiting the search width of the correlation calculation. It should be noted that this publication also makes no mention of extraction of the main subject or separation of the subject and the background.

【0009】(3) 特開昭61−245124号公報に
は、画像出力をA/D変換している時間に他の処理を行
い、A/D変換器と演算回路とが同時に動くだけの焦点
検出装置が示されている。しかしながら、この公報に
は、A/D変換と同時に行う演算として、相関演算等の
重要な演算でなく、一種の前処理である不要周波数成分
の除去等の演算について説明しており、実際の測距演算
そのものについて、特別な考察は、なされていない。こ
のように、従来の測距装置では、多くの場合、測距視野
を複数の測距エリアに分割し、その測距エリア毎に、従
来の相関演算を行って、その結果のうちの1つを選択し
て、その距離にピントを合わせるようにしている。
(3) Japanese Patent Application Laid-Open No. 61-245124 discloses a focus in which other processing is performed during A / D conversion of an image output so that the A / D converter and the arithmetic circuit move simultaneously. A detection device is shown. However, this publication describes, as an operation to be performed simultaneously with A / D conversion, not an important operation such as a correlation operation but an operation such as removal of an unnecessary frequency component, which is a kind of preprocessing, and an actual measurement. No special consideration has been given to the distance calculation itself. As described above, in most conventional distance measuring devices, the distance measuring field of view is divided into a plurality of distance measuring areas, the conventional correlation calculation is performed for each distance measuring area, and one of the results is calculated. I choose to focus on that distance.

【0010】本発明は、上述した事情に鑑みてなされた
もので、広い被写界視野に3次元的に被写体が存在する
場合にも、正確に且つ高速に測距視野内の主要な被写体
を抽出し、その主要被写体部分の像ずれ量または距離を
検出することを可能とする測距装置を提供することを目
的とし、特に画像を左右順次処理して主要被写体を検出
することを第1の目的としている。本発明の第2の目的
は、複数の画像情報ブロックにわたって、相対的なブロ
ックずれおよびブロック信頼性を検出して用いることに
より、正確に測距演算を行うことにある。
The present invention has been made in view of the above-mentioned circumstances, and even when a subject is three-dimensionally present in a wide field of view, the main subject in the range finding field can be accurately and rapidly detected. An object of the present invention is to provide a distance measuring device that is capable of extracting and detecting the image shift amount or distance of the main subject portion. Particularly, it is a first object to detect the main subject by sequentially processing images right and left. Has an aim. A second object of the present invention is to accurately perform distance measurement calculation by detecting and using relative block shift and block reliability across a plurality of image information blocks.

【0011】本発明の第3の目的は、背景と主要被写体
とを分離して正確に測距演算を行い得るようにすること
にある。本発明の第4の目的は、主要被写体検出部をマ
イクロコンピュータ等で構成し、読み出し時間中に処理
を終了させ、高速で測距演算を行い得るようにすること
にある。
A third object of the present invention is to separate the background and the main subject so that distance measurement can be accurately performed. A fourth object of the present invention is to configure the main subject detection unit with a microcomputer or the like, terminate the processing during the reading time, and enable high-speed distance measurement calculation.

【0012】本発明の第5の目的は、左右のブロックを
処理した結果に従って更新することにより、相対シフト
量を最終的に決定するので、毎回複数のシフト量で計算
する必要をなくし、特開平7−181010号公報に示
されたように複雑な判断を不要とするとともに、隣接点
のシフト量を独断的に決定して演算するのではなく、従
前の結果に基づいてシフト量を変化させて演算すること
により、正確にかつ高速に演算することにある。本発明
の第6の目的は、複数の相対シフト量でシフトした左右
ブロックを作成し、比較演算することによって、適切な
相対シフト量を検出することにある。
A fifth object of the present invention is to finally determine the relative shift amount by updating the left and right blocks according to the result of processing, so that it is not necessary to calculate a plurality of shift amounts each time. As shown in Japanese Patent Publication No. 7-181010, the complicated judgment is not necessary, and the shift amount of the adjacent points is not arbitrarily determined and calculated, but the shift amount is changed based on the previous result. Accurate and high-speed calculation is performed by calculation. A sixth object of the present invention is to detect an appropriate relative shift amount by creating left and right blocks shifted by a plurality of relative shift amounts and performing a comparison operation.

【0013】本発明の第7の目的は、抽出された主要被
写体の像ずれ量の分布に基づいて、絞り値および焦点距
離を設定することにより、抽出された主要被写体すべて
にピントを合わせ得る撮影装置を提供することにある。
本発明の第8の目的は、測距装置が抽出した主要被写体
を撮影者が確認することができるような撮影装置を提供
することにある。本発明の第9の目的は、被写体の部分
毎の距離を検出し、主要被写体を抽出して、ポートレー
ト写真等の主要被写体以外の背景を電気的にぼかし得る
背景処理装置を提供することにある。
A seventh object of the present invention is to set an aperture value and a focal length on the basis of the distribution of the image shift amount of the extracted main subject so that all the extracted main subjects can be focused. To provide a device.
An eighth object of the present invention is to provide a photographing device that allows a photographer to confirm the main subject extracted by the distance measuring device. A ninth object of the present invention is to provide a background processing device capable of detecting a distance for each part of a subject, extracting a main subject, and electrically blurring a background other than the main subject such as a portrait photograph. is there.

【0014】[0014]

【課題を解決するための手段】請求項1に記載した本発
明に係る測距装置は、上述した第1の目的を達成するた
めに、基線長を存して配設される左右一対の測距光学系
と、前記一対の測距光学系により形成される被写体光学
像をそれぞれ光電変換する左右一対の光電変換素子列を
有し、これら一対の光電変換素子列で光電変換される一
対の画像情報を、左右の各光電変換素子列の端部より順
次出力する画像情報検出部と、前記画像情報検出部から
の左右一対の画像情報出力を順次処理して主要被写体を
検出し、主要被写体の像ずれ量を検出する主要被写体検
出部とを具備することを特徴としている。
In order to achieve the above-mentioned first object, a distance measuring device according to the present invention as set forth in claim 1 has a pair of left and right measuring devices arranged with a base line length. A distance optical system and a pair of left and right photoelectric conversion element rows for photoelectrically converting the subject optical image formed by the pair of distance measurement optical systems, respectively, and a pair of images photoelectrically converted by the pair of photoelectric conversion element rows. Information is sequentially processed from the end portions of the left and right photoelectric conversion element arrays, and a pair of left and right image information outputs from the image information detection section are sequentially processed to detect the main subject, and the main subject is detected. It is characterized by comprising a main subject detecting section for detecting an image shift amount.

【0015】請求項2に記載した本発明に係る測距装置
は、上述した第2の目的を達成するために、請求項1の
測距装置において、前記主要被写体検出部は、与えられ
る一対の画像情報をそれぞれ複数のブロックに分割する
とともに、該一対の画像情報ブロック列を相対的にシフ
ト可能なブロック形成部と、前記ブロック形成部により
相対的にシフトされた前記一対の画像情報ブロックのブ
ロックずれを検出するブロックずれ検出部と、前記ブロ
ック形成部から出力される前記一対の画像情報ブロック
の信頼性評価情報を検出する信頼性検出部と、前記ブロ
ックずれ検出部および前記信頼性検出部の出力より複数
の画像情報ブロックにわたって前記一対の画像情報のブ
ロックずれおよび信頼性を評価して、前記一対の画像情
報における主要被写体の像ずれおよび該主要被写体まで
の距離の少なくとも一方を検出するウィンドウ評価部と
を含むことを特徴としている。
According to a second aspect of the distance measuring device of the present invention, in order to achieve the above-mentioned second object, in the distance measuring device of the first aspect, the main subject detecting section is provided with a pair of provided main subject detecting parts. The image information is divided into a plurality of blocks, respectively, and the pair of image information block rows is relatively shiftable, and a block of the pair of image information blocks relatively shifted by the block forming unit. A block shift detecting unit that detects a shift, a reliability detecting unit that detects reliability evaluation information of the pair of image information blocks output from the block forming unit, and a block shift detecting unit and the reliability detecting unit. From the output, the block shift and the reliability of the pair of image information are evaluated over a plurality of image information blocks, and the main object in the pair of image information is evaluated. It is characterized in that it comprises a window evaluation unit for detecting at least one of the distance to the image shift and said principal subject's body.

【0016】請求項3に記載した本発明に係る測距装置
は、上述した第3の目的を達成するために、請求項2の
測距装置において、前記ウィンドウ評価部は、与えられ
た相対シフト量およびブロック信頼性評価情報に基づ
き、所定範囲の被写体距離内にある複数のブロックを連
続したブロックとして検出し、所定長さで連続する連続
ブロックのうち最も近距離に対応する連続ブロックを検
出することによって、前記主要被写体を検出する手段を
含むことを特徴としている。
According to a third aspect of the present invention, there is provided a range finder according to the second aspect, wherein the window evaluation unit is provided with a relative shift. Based on the amount and the block reliability evaluation information, a plurality of blocks within a predetermined range of subject distance are detected as continuous blocks, and a continuous block corresponding to the shortest distance among continuous blocks of a predetermined length is detected. Accordingly, it is characterized in that it includes means for detecting the main subject.

【0017】請求項4に記載した本発明に係る測距装置
は、上述した第4の目的を達成するために、請求項1〜
3のうちのいずれか1項の測距装置において、前記主要
被写体検出部は、前記画像情報検出部からの画像読み出
しサイクル中に主要被写体およびその像ずれ量の検出の
ための演算処理を行うマイクロコンピュータを含むこと
を特徴としている。
In order to achieve the above-mentioned fourth object, the distance measuring device according to the present invention described in claim 4 is characterized by
In the range finder according to any one of 3 above, the main subject detection unit performs a calculation process for detecting the main subject and its image shift amount during an image reading cycle from the image information detection unit. It is characterized by including a computer.

【0018】請求項5に記載した本発明に係る測距装置
は、上述した第5の目的を達成するために、基線長を存
して配設される左右一対の測距光学系と、前記一対の測
距光学系により形成される被写体光学像をそれぞれ光電
変換する左右一対の光電変換素子列と、前記一対の光電
変換素子列より出力される左右一対の画像情報をそれぞ
れ複数のブロックに分割するブロック形成部と、前記ブ
ロック形成部で形成される一対の画像情報ブロックを相
対的に所定量シフトする相対シフト手段と、前記相対シ
フト手段によりシフトされた前記一対の画像情報ブロッ
クを比較演算するとともに、この演算結果に基づいて前
記相対シフト手段を制御して前記相対シフト量を逐次更
新して、被写体の像ずれ量を検出する演算部とを具備す
ることを特徴としている。
According to a fifth aspect of the distance measuring device of the present invention, in order to achieve the above-mentioned fifth object, a pair of right and left distance measuring optical systems are arranged with a base line length, A pair of left and right photoelectric conversion element arrays for photoelectrically converting a subject optical image formed by a pair of distance measurement optical systems, and a pair of left and right image information output from the pair of photoelectric conversion element arrays are divided into a plurality of blocks, respectively. And a relative shift unit that relatively shifts the pair of image information blocks formed by the block formation unit by a predetermined amount, and the pair of image information blocks shifted by the relative shift unit are compared and calculated. Along with this, a calculation unit for controlling the relative shift unit based on the calculation result to sequentially update the relative shift amount and detect the image shift amount of the subject is provided. There.

【0019】請求項6に記載した本発明に係る測距装置
は、上述した第6の目的を達成するために、請求項5の
測距装置において、前記演算部は、複数の異なる相対シ
フト量にシフトされた画像情報ブロックの比較演算結果
の比較に基づいて、基準とする相対シフト量を更新する
手段を含むことを特徴としている。
According to a sixth aspect of the distance measuring device of the present invention, in order to achieve the above-mentioned sixth object, in the distance measuring device of the fifth aspect, the arithmetic unit is provided with a plurality of different relative shift amounts. It is characterized in that it includes means for updating the relative shift amount as a reference based on the comparison of the comparison operation results of the image information blocks shifted to.

【0020】請求項7に記載した本発明に係る撮影装置
は、上述した第7の目的を達成するために、請求項1に
記載した測距装置を備え、且つ前記主要被写体検出部に
より抽出される複数のウィンドウのブロックずれ量から
算出される複数の距離が被写界深度内に入るように絞り
値および焦点距離の少なくとも一方を設定する深度調整
手段を含むことを特徴としている。
In order to achieve the above-mentioned seventh object, an image-taking device according to the present invention according to claim 7 comprises the distance measuring device according to claim 1, and is extracted by the main subject detecting section. It is characterized by including depth adjusting means for setting at least one of the aperture value and the focal length so that the plurality of distances calculated from the block shift amounts of the plurality of windows fall within the depth of field.

【0021】請求項8に記載した本発明に係る撮影装置
は、上述した第8の目的を達成するために、前記請求項
1に記載した測距装置を備え、且つ前記主要被写体検出
部により抽出されるウィンドウに対応する測距視野範囲
を表示する測距視野表示手段を含むことを特徴としてい
る。請求項9に記載した本発明に係る背景処理装置は、
上述した第9の目的を達成するために、前記請求項1に
記載した測距装置を備え、且つ前記主要被写体検出部に
より抽出された主要被写体とは異なる距離領域に相当す
る被写体の画像情報を電気的にぼかす手段をさらに含む
ことを特徴としている。
In order to achieve the above-mentioned eighth object, an image-taking device according to the present invention according to claim 8 comprises the distance measuring device according to claim 1 and is extracted by the main subject detecting section. It is characterized by including a distance measuring field display means for displaying a distance measuring field range corresponding to the window. The background processing apparatus according to the present invention according to claim 9 is
In order to achieve the above-mentioned ninth object, the distance measuring device according to claim 1 is provided, and image information of a subject corresponding to a distance area different from the main subject extracted by the main subject detecting unit is displayed. It is characterized in that it further comprises means for electrically blurring.

【0022】[0022]

【作用】すなわち本発明による測距装置は、一対の画像
出力を処理して主要被写体を判別し、該主要被写体像そ
のものの距離および像ずれ量の少なくとも一方を検出し
ているので、広い被写界視野に3次元的に被写体が存在
する場合にも、正確に且つ高速に測距視野内の主要被写
体の像ずれ量または距離を検出することが可能となる。
請求項1の測距装置は、主要被写体検出部で左右一対の
画像出力を順次処理して主要被写体の距離または像ずれ
量を検出している。従来は測距視野を複数に分割してそ
の中で最も近い被写体の存在する測距視野の測距結果に
ピントを合わせていたのに対し、この測距装置では、主
要被写体の像そのものを抽出し、その主要被写体像の像
ずれを検出しているので、正確に主要被写体を捕捉し、
それ以外の被写体情報を含まない主要被写体のみの被写
体情報により像ずれを検出することができ、測距誤差の
小さい測距を行うことができる。
That is, since the distance measuring device according to the present invention processes a pair of image outputs to discriminate the main subject and detects at least one of the distance and the image shift amount of the main subject image itself, a wide range of images can be obtained. Even when a subject exists three-dimensionally in the field of view, it is possible to accurately and quickly detect the image shift amount or distance of the main subject in the distance measuring field of view.
In the distance measuring apparatus according to the first aspect, the main subject detection unit sequentially processes a pair of left and right image outputs to detect the distance or the image shift amount of the main subject. In the past, the distance measuring field was divided into multiple parts, and the focus was on the distance measuring result of the distance measuring field in which the closest subject exists, whereas this distance measuring device extracts the image of the main subject itself. However, since the image shift of the main subject image is detected, the main subject is accurately captured,
The image shift can be detected by the subject information of only the main subject that does not include other subject information, and distance measurement with a small distance measurement error can be performed.

【0023】請求項2の測距装置は、ブロック形成部で
ブロック化した画像情報を用いて、ブロックずれ検出部
でブロックずれを検出し且つ信頼性検出部で信頼性を検
出し、さらにウィンドウ評価部で、複数のブロックにわ
たって信頼性およびブロックずれを評価して、主要被写
体の像ずれ量を検出している。この測距装置では、複数
のブロックにわたって信頼性およびブロックずれを評価
して、像ずれを算出しており、信頼性による加重平均を
使用して情報に重み付けをすることも可能であるので、
誤差成分を排除した正確な測距を行うことができる。
According to another aspect of the distance measuring apparatus of the present invention, the block shift detecting unit detects the block shift and the reliability detecting unit detects the reliability by using the image information blocked by the block forming unit, and further the window evaluation is performed. The unit evaluates reliability and block shift over a plurality of blocks to detect the image shift amount of the main subject. In this range finder, the reliability and the block shift are evaluated over a plurality of blocks, the image shift is calculated, and it is also possible to weight the information by using the weighted average by the reliability.
It is possible to perform accurate distance measurement without the error component.

【0024】請求項3の測距装置は、ウィンドウ評価部
でブロックの連続性を評価しているので、主要被写体の
みを捕捉することができ、撮影者がわざわざ主要被写体
を指示する必要もなく、簡単に主要被写体にピントを合
わせることができる。請求項4の測距装置は、画像情報
の読み出しサイクル中にマイクロコンピュータ等を使用
して演算する。この測距装置は、マイクロコンピュータ
等を用いて容易に実現することができ、また演算を読み
出しサイクル中に行うことができる方式であるので、測
距演算のための演算時間を別途に確保する必要がなく、
また全画素データを記憶素子等に記憶保持しておく必要
がない。
In the distance measuring device according to the third aspect, since the continuity of blocks is evaluated by the window evaluation unit, only the main subject can be captured, and the photographer does not need to purposely designate the main subject. You can easily focus on the main subject. In the distance measuring device according to the fourth aspect, the calculation is performed using a microcomputer or the like during the read cycle of the image information. This distance measuring device can be easily realized by using a microcomputer or the like, and the calculation can be performed during the reading cycle. Therefore, it is necessary to separately secure the calculation time for the distance measuring calculation. Without
Further, it is not necessary to store and hold all pixel data in a storage element or the like.

【0025】請求項5の測距装置は、順次処理されてい
る演算結果を用いて一対の画像情報ブロックの相対シフ
ト量を更新することにより、該相対シフト量を主要被写
体の像ずれ量に近い値に順次近付けて行くことができる
ので、相対シフト量が主要被写体の像ずれ量に近い値と
なり、正確に測距演算を行うことができる。請求項6の
測距装置は、相対的にシフトされたブロックを複数の異
なる相対シフト量について比較演算することにより、複
数のブロックずれ量または複数の信頼性を求め、その結
果を用いて基準となる相対シフト量を更新するので、よ
り正確に且つ容易に相対シフト量を決定することができ
る。
According to the fifth aspect of the present invention, the distance measuring device updates the relative shift amount of the pair of image information blocks by using the sequentially processed calculation result, so that the relative shift amount is close to the image shift amount of the main subject. Since the values can be gradually approached, the relative shift amount becomes a value close to the image shift amount of the main subject, and the distance measurement calculation can be accurately performed. The distance measuring apparatus according to claim 6 obtains a plurality of block shift amounts or a plurality of reliability by performing a comparison operation on a relatively shifted block with respect to a plurality of different relative shift amounts, and uses the result as a reference. Since the relative shift amount is updated, the relative shift amount can be determined more accurately and easily.

【0026】例えば、基準相対シフト量Sに対して、S
+1とS−1とで、ブロックずれおよびブロック信頼性
を求めれば、前記基準相対シフト量Sを増加させる必要
がある場合には、S−1よりもS+1のほうが信頼性が
高くなり、ブロックずれ量も減少する。このようにして
容易に相対シフト量を適切に更新することができる。請
求項7の撮影装置は、複数のウィンドウのブロックずれ
より、像ずれ量または被写体距離を求め、主要被写体が
全て一定の距離に存在しておらず、ある距離範囲に亘っ
て分布していても、撮影光学系の絞り値または焦点距離
を設定することにより、主要被写体全てを被写界深度内
に入るようにすることができる。
For example, with respect to the reference relative shift amount S, S
If the block shift and the block reliability are obtained by +1 and S-1, if the reference relative shift amount S needs to be increased, S + 1 is more reliable than S-1 and the block shift is increased. The quantity also decreases. In this way, the relative shift amount can be easily updated appropriately. According to a seventh aspect of the present invention, the image capturing apparatus obtains the image shift amount or the subject distance from the block shifts of a plurality of windows, and even if the main subjects are not all present at a constant distance and are distributed over a certain distance range By setting the aperture value or the focal length of the photographing optical system, it is possible to bring all the main subjects into the depth of field.

【0027】請求項8の撮影装置は、主要被写体検出部
で主要被写体を抽出し、その主要被写体に対応する測距
視野範囲を表示することにより、撮影者に検出した主要
被写体を知らせることができるので、撮影装置側と撮影
者との認識のずれが明確となり、誤測距による撮影を未
然に防ぐことができる。
According to the eighth aspect of the present invention, the main subject is detected by the main subject detection unit, and the distance measuring field of view corresponding to the main subject is displayed to notify the photographer of the detected main subject. Therefore, the difference in recognition between the photographing device side and the photographer becomes clear, and photographing due to erroneous distance measurement can be prevented in advance.

【0028】請求項9の背景処理装置は、主要被写体を
抽出してその距離を測距することと、2枚のエリアCC
D等を用いた3Dカメラまたはコントラスト法を用いた
ビデオカメラ等の撮影装置との組合せによって、撮影画
面内の全ての部分で部分毎の測距情報を得ることがで
き、被写体像を主要被写体(と同一)の距離の被写体
と、その他の被写体とに分別することができ、主要被写
体と同一距離以外の部分の映像信号を加工することで、
主要被写体以外の被写体像を電気的な処理によりぼかし
た映像にすることができる。この背景処理装置では、主
要被写体を強調するようなポートレート効果を得ること
あるいは主要被写体のみを全体画像から切り出すことが
可能となり、撮影後の編集等の加工を容易に行うことが
できる。
The background processing apparatus according to claim 9 extracts the main subject and measures the distance between the main subject and the two areas CC.
By combining with a photographing device such as a 3D camera using D or the like or a video camera using the contrast method, it is possible to obtain distance measurement information for each part in all parts in the photographing screen, and to obtain a subject image as a main subject ( It is possible to separate into a subject of the same distance) and other subjects, and by processing the video signal of the portion other than the same distance as the main subject,
A subject image other than the main subject can be made into a blurred image by electrical processing. With this background processing device, it is possible to obtain a portrait effect that emphasizes the main subject or to cut out only the main subject from the entire image, and it is possible to easily perform processing such as editing after shooting.

【0029】[0029]

【発明の実施の形態】以下、実施の形態に基づき、図面
を参照して本発明の測距装置を詳細に説明する。図1〜
図4は、本発明の第1の実施の形態に係る測距装置の要
部の構成を示している。図1に示す測距装置は、画像情
報検出部1および主要被写体検出部2を具備している。
BEST MODE FOR CARRYING OUT THE INVENTION The distance measuring device of the present invention will be described in detail below with reference to the drawings based on the embodiments. Figure 1
FIG. 4 shows a configuration of a main part of the distance measuring device according to the first embodiment of the present invention. The distance measuring device shown in FIG. 1 includes an image information detecting section 1 and a main subject detecting section 2.

【0030】画像情報検出部1は、左右一対の光電変換
素子列1Lおよび1Rを有する。これら左右一対の光電
変換素子列1Lおよび1Rは、図2に示すように、所定
の基線長を存して配置された左右一対の測距光学系3L
および3Rにより形成される左右一対の被写体像をそれ
ぞれ光電変換する。これら左右一対の光電変換素子列1
Lおよび1Rにより、前記左右一対の被写体像を光電変
換した結果が、画像情報検出部1から出力される。
The image information detecting section 1 has a pair of left and right photoelectric conversion element arrays 1L and 1R. As shown in FIG. 2, the pair of left and right photoelectric conversion element arrays 1L and 1R includes a pair of left and right distance measuring optical systems 3L arranged with a predetermined base line length.
And a pair of left and right subject images formed by 3R are photoelectrically converted. These pair of left and right photoelectric conversion element arrays 1
The result of photoelectric conversion of the pair of left and right subject images by L and 1R is output from the image information detection unit 1.

【0031】左側の光電変換素子列1Lを構成する各光
電変換素子の出力をそれぞれL1 ,L2 ,L3 ,…,L
n とし、右側の光電変換素子列1Rを構成する各光電変
換素子の出力をそれぞれR1 ,R2 ,R3 ,…,Rn
すると、画像情報検出部1からは、光電変換素子列1L
および1Rの各列端部の情報より、画像情報出力が、順
次、例えばL1 ,R1 ,L2 ,R2 ,L3 ,R3 ,…の
ように左右交互に出力される。このように、左右一対の
光電変換素子列1Lおよび1Rの出力L1 〜Ln および
1 〜Rn が、画像情報検出部1の画像情報出力L1
1 ,L2 ,R2 ,L3 ,R3 ,…として、左右交互に
順次出力されることにより、左右一対の被写体像の左右
対応する位置の情報がほぼ同時に得られる。
The outputs of the photoelectric conversion elements forming the left photoelectric conversion element array 1L are respectively L 1 , L 2 , L 3 , ..., L.
and n, the output of each R 1 in the photoelectric conversion elements forming the right photoelectric conversion element arrays 1R, R 2, R 3, ..., when the R n, from the image information detecting unit 1, the photoelectric conversion element arrays 1L
From the information of the end portions of the columns 1R and 1R, the image information outputs are sequentially output alternately in the left and right direction, for example, L 1 , R 1 , L 2 , R 2 , L 3 , R 3 ,. Thus, the outputs L 1 to L n and R 1 to R n of the pair of left and right photoelectric conversion element arrays 1L and 1R are the image information outputs L 1 and L 1 of the image information detection unit 1 , respectively.
By sequentially outputting R 1 , L 2 , R 2 , L 3 , R 3 , ... Alternately on the left and right, information on the left and right corresponding positions of the pair of left and right object images can be obtained almost at the same time.

【0032】例えば、左の被写体像の左の端部の情報と
右の被写体像の左の端部の情報とがほぼ同時に得られ、
同様にして順次一端から他端へ左右の被写体像の互いに
対応する位置の情報がほぼ同時に得られ、情報が中央部
に至れば、左右の被写体像の各中央部の情報がほぼ同時
に得られる。ちなみに、従来の測距装置においては、光
電変換素子列毎に画像情報が出力されるのが一般的であ
り、例えば、左側の光電変換素子列1Lの情報がすべて
出力された後に右側の光電変換素子列1Rの情報が出力
され、画像情報出力はL1 ,L2 ,…,Ln の後に、R
1 ,R2 ,…,Rn となる。このため、少なくとも一方
の光電変換素子列の画像情報が全て出力された後でなけ
れば、左右の画像情報を比較することができない。
For example, the information on the left end of the left subject image and the information on the left end of the right subject image can be obtained almost simultaneously.
Similarly, the information on the positions of the left and right subject images corresponding to each other is obtained almost simultaneously from one end to the other end, and when the information reaches the central portion, the information of each central portion of the left and right subject images is obtained almost simultaneously. By the way, in a conventional distance measuring device, it is general that image information is output for each photoelectric conversion element array. For example, after all the information of the photoelectric conversion element array 1L on the left side is output, photoelectric conversion on the right side is performed. Information of the element array 1R is output, and image information is output after R 1 , L 2 , ..., L n , and then R
1 , R 2 , ..., R n . Therefore, the left and right image information cannot be compared until all the image information of at least one photoelectric conversion element array is output.

【0033】図1の画像情報検出部1は、このように左
右の画像情報を、各端部より互いに対応してほぼ同時に
出力する。この場合、画像情報検出部1は、各光電変換
素子列1Lおよび1Rの出力を、左右交互に1つの共通
の信号線に与えて出力するものとしているが、それぞれ
独立の2本の信号線でL側とR側とを独立に且つ各対応
する位置の情報を全く同時に出力するようにしてもよ
い。
The image information detecting section 1 in FIG. 1 outputs the left and right image information in this manner from the respective end portions substantially corresponding to each other. In this case, the image information detection section 1 is supposed to output the outputs of the photoelectric conversion element arrays 1L and 1R alternately to the left and right to one common signal line, and to output the same, but two independent signal lines are used. The L side and the R side may be output independently and information of each corresponding position may be output at the same time.

【0034】この画像情報検出部1からの画像情報出力
は、主要被写体検出部2に与えられる。主要被写体検出
部2は、画像情報検出部1からの画像情報出力に基づい
て主要被写体像を検出し、その主要被写体像の像ずれ量
を算出する。図3に主要被写体検出部2の詳細な構成を
示す。主要被写体検出部2は、ブロック形成部21、ブ
ロックずれ検出部22、信頼性検出部23およびウィン
ドウ評価部24を具備している。
The image information output from the image information detecting section 1 is given to the main subject detecting section 2. The main subject detection unit 2 detects the main subject image based on the image information output from the image information detection unit 1 and calculates the image shift amount of the main subject image. FIG. 3 shows a detailed configuration of the main subject detection unit 2. The main subject detection unit 2 includes a block formation unit 21, a block shift detection unit 22, a reliability detection unit 23, and a window evaluation unit 24.

【0035】ブロック形成部21は、画像情報検出部1
から入力された画像情報を小ブロック化して左右に対応
する方向に相対的にシフトする。ブロックずれ検出部2
2は、ブロック形成部21で形成される左右の画像情報
のブロックの間隔を算出する。信頼性検出部23は、ブ
ロック形成部21で形成される左右の画像情報のブロッ
クの信頼性を検出する。ウィンドウ評価部24は、ブロ
ックずれ検出部22および信頼性検出部23の双方の結
果を用いて複数のブロックを接続し、ウィンドウとして
評価して、最終的に左右のウィンドウの像ずれ量を出力
する。
The block forming section 21 includes the image information detecting section 1
The image information input from is divided into small blocks and relatively shifted in the left and right directions. Block shift detection unit 2
2 calculates the interval between the blocks of the left and right image information formed by the block forming unit 21. The reliability detecting unit 23 detects the reliability of the blocks of the left and right image information formed by the block forming unit 21. The window evaluation unit 24 connects a plurality of blocks using the results of both the block shift detection unit 22 and the reliability detection unit 23, evaluates them as windows, and finally outputs the image shift amount of the left and right windows. .

【0036】ブロック形成部21を、さらに具体的に説
明する。説明を理解し易くするために、この実施の形態
ではアナログ出力をデジタルに変換してから処理するも
のとして説明するが、アナログ出力のままこれ以後の実
施の形態に相当する処理を実現することもできる。ブロ
ック形成部21は、時系列的に順次入力される画像情報
をバッファに蓄積し、複数の画素からなるブロックを形
成して、その左右のブロックを後段のブロックずれ検出
部22および信頼性検出部23に供給する。
The block forming section 21 will be described more specifically. In order to make the description easy to understand, in this embodiment, the description will be made assuming that the analog output is converted to digital and then processed. However, it is also possible to realize the processing corresponding to the following embodiments without changing the analog output. it can. The block forming unit 21 accumulates image information sequentially input in time series in a buffer to form a block composed of a plurality of pixels, and the blocks on the left and right of the block shift detecting unit 22 and the reliability detecting unit in the subsequent stage. 23.

【0037】すなわち、ブロック形成部21は、図4に
示すように、与えられたアナログ出力をA/D変換器2
5でデジタルデータに変換して、左右のデータをそれぞ
れL側(左側)バッファ26およびR側(右側)バッフ
ァ27に入力する。この入力データは新しいデータが入
力されると、その都度、順次シフトされ、最終的に破棄
される。つまり、これらのL側バッファ26およびR側
バッファ27には、入力されたデータのうちの新しいデ
ータがバッファの数だけ保持されている。
That is, the block forming section 21 converts the given analog output into the A / D converter 2 as shown in FIG.
5, the data is converted into digital data, and the left and right data are input to the L side (left side) buffer 26 and the R side (right side) buffer 27, respectively. Whenever new data is input, this input data is sequentially shifted and finally discarded. That is, the L-side buffer 26 and the R-side buffer 27 hold new data of the input data as many as the number of buffers.

【0038】次に、これらのバッファから、ブロック選
択部28によりよりブロックが選択されて後段に出力さ
れる。ここで、選択されるブロックは、ブロック数と相
対的シフト量により決定される。この実施の形態では、
ブロック数を4とすると、相対シフト量が0の場合には
1 、L2 、L3 、およびL4 とR1 、R2 、R3 、お
よびR4 とが選択され、相対シフト量を+2とした場合
には、R側をシフトしてL1 、L2 、L3 、L4 とR
3 、R4 、R5 、R6 とが選択され、相対シフト量を−
2とした場合はL側をシフトしてL3 、L4 、L5 、お
よびL6 とR1 、R2 、R3 、およびR4 とが選択され
る。
Next, a block is selected from these buffers by the block selection unit 28 and output to the subsequent stage. Here, the selected block is determined by the number of blocks and the relative shift amount. In this embodiment,
When the number of blocks is 4, when the relative shift amount is 0, L 1 , L 2 , L 3 , and L 4 and R 1 , R 2 , R 3 , and R 4 are selected, and the relative shift amount is In the case of +2, the R side is shifted to L 1 , L 2 , L 3 , L 4 and R
3 , R 4 , R 5 , and R 6 are selected, and the relative shift amount is −
In the case of 2, the L side is shifted to select L 3 , L 4 , L 5 , and L 6 and R 1 , R 2 , R 3 , and R 4 .

【0039】したがって、後段の処理が左右4画像が出
力されるうちに終了するならば、バッファ26および2
7としては、ブロック数+相対シフト量に相当する数だ
け必要である。例えばブロック数4、相対シフト量±8
シフトとすると、12個ずつの画像出力を記憶するバッ
ファがあればよい。この場合、後段のブロックずれ検出
部22および信頼性検出部23の両検出部は、左右4画
像がメモリに入力される間に検出処理を行う必要があ
る。
Therefore, if the subsequent processing is completed while the left and right four images are output, the buffers 26 and 2
As for 7, only the number corresponding to the number of blocks + the relative shift amount is required. For example, the number of blocks is 4, the relative shift amount is ± 8
If shifting is performed, a buffer that stores 12 image outputs is enough. In this case, both the block shift detection unit 22 and the reliability detection unit 23 in the subsequent stage need to perform the detection process while the left and right four images are input to the memory.

【0040】これらの条件がそろえば、入力される画像
出力を全てメモリに格納する必要はなく、12個ずつメ
モリに格納すればよく、相対シフト量によるブロックの
選択も、バッファに対して一義的に行えばよい。この実
施の形態では、アナログ画像データを、デジタル変換し
てメモリに格納するようにしたが、アナログデータのま
まCCD等に記憶させてもよく、アナログデータのまま
ブロックを選択するようにしてもよい。
If these conditions are met, it is not necessary to store all the input image outputs in the memory, but it is sufficient to store 12 image outputs in each memory, and the block selection based on the relative shift amount is unique to the buffer. You can go to In this embodiment, the analog image data is digitally converted and stored in the memory, but the analog data may be stored in the CCD or the like as it is, or the block may be selected as it is in the analog data. .

【0041】次に、ブロック形成部21で形成された左
右それぞれのブロックを評価するブロックずれ検出部2
2および信頼性検出部23について具体的に説明する。
ブロックずれ検出部22は、選択した左右ブロック間の
ブロックずれを検出する。このブロックずれ検出部22
は、既に前述の相対シフト量だけシフトされたブロック
同士を比較するので、実際の画素上で、例えばd0 だけ
ずれていた被写体像のブロックを相対シフト量S0 だけ
すらしてブロックが形成された場合、d0−S0 のブロ
ックずれを、ブロックずれ検出部21が検出することに
なる。このようにする理由は後述するが、相対シフト量
で大まかな像ずれを検出し、ブロックずれ検出部22で
精密な像ずれ量を検出するためである。ここで、このブ
ロック間のずれをどのようにして算出するかについて説
明する。
Next, the block shift detecting section 2 for evaluating each of the left and right blocks formed by the block forming section 21.
2 and the reliability detection unit 23 will be specifically described.
The block shift detection unit 22 detects a block shift between the selected left and right blocks. This block shift detection unit 22
, The blocks already shifted by the relative shift amount are compared with each other. Therefore, on the actual pixel, the block of the subject image which has been shifted by, for example, d 0 is even formed by the relative shift amount S 0 to form a block. In this case, the block shift detector 21 detects the block shift of d 0 −S 0 . The reason for doing this will be described later, but it is because a rough image shift is detected by the relative shift amount, and the block shift detection unit 22 detects a precise image shift amount. Here, how to calculate the shift between the blocks will be described.

【0042】図5に示すように、左右のブロックがΔd
だけずれているとする。このΔdを検出するには、例え
ば図6に示すように、(Rn −Ln ):Δd=(Ln+1
−Ln ):1より、ΔL=Rn −Ln 、C=Ln+1 −L
n とすると、Δd=(ΔL)/Cとして求めることがで
きる。このような方法でLn 、Rn 、Ln+1 、Rn+1
n+2 、Rn+2 の3ポイントについて計算を行って平均
をとることにより、ブロック間のずれを検出することが
できる。また、従来より行われているように、一般的な
相関法を用いて、シフトに対する評価関数を作成し、補
間法を使用して左右ブロック間のずれを検出するように
してもよい。すなわち、ブロックずれ検出部22は、以
上の演算を行うデジタル回路を用いて構成すればよい。
As shown in FIG. 5, the left and right blocks are Δd.
Is shifted only by To detect this Δd, for example, as shown in FIG. 6, (R n −L n ): Δd = (L n + 1
-L n ): 1, ΔL = R n -L n , C = L n + 1 -L
If n , then Δd = (ΔL) / C can be obtained. In this way, L n , R n , L n + 1 , R n + 1 ,
The shift between the blocks can be detected by calculating the three points L n + 2 and R n + 2 and taking the average. Further, as is conventionally done, an evaluation function for shifts may be created by using a general correlation method, and the shift between the left and right blocks may be detected by using an interpolation method. That is, the block shift detection unit 22 may be configured using a digital circuit that performs the above calculation.

【0043】アナログ的に求める場合は、上述と同様の
演算をアナログ的に行ってもよいし、左右ブロックの一
方をディレー手段等により遅延して、左右の信号波形を
重ね合わせて、一致するための遅延量から検出してもよ
い。次に、信頼性検出部23について説明する。この信
頼性検出部23は、前述において、ブロックずれを検出
したのと同様の左右ブロックについて、これらのブロッ
クの画像の信頼性または算出されたブロックずれ量の信
頼性を検出する。
In the case of obtaining in an analog manner, the same operation as described above may be performed in an analog manner, or one of the left and right blocks is delayed by delay means or the like so that the left and right signal waveforms are superposed and coincide with each other. It may be detected from the delay amount. Next, the reliability detector 23 will be described. The reliability detection unit 23 detects the reliability of the image of these blocks or the reliability of the calculated block deviation amount for the left and right blocks similar to those for which the block deviation is detected as described above.

【0044】信頼性検出部23は、図7〜図9のような
特性に基づいて信頼性を検出する。図7〜図9におい
て、各図の上側の特性(a)は、信頼性大、下側の特性
(b)は信頼性小の場合の例を示している。 図7は、
左右のブロックの出力の傾きを比較しており、図7
(a)は、L側とR側の傾きが相似であり、信頼性が高
いが、図7(b)ではL側とR側の傾きが異なり、信頼
性が低い。図8は、コントラストを比較しており、図8
(a)のようにコントラストが高い場合は、算出される
ブロックずれの信頼性が高く、図8(b)のようにコン
トラストが低い場合は、算出されるブロックずれ量の信
頼性が低い。
The reliability detecting section 23 detects the reliability based on the characteristics shown in FIGS. 7 to 9, the upper characteristic (a) of each drawing shows an example in which the reliability is high, and the lower characteristic (b) shows an example in which the reliability is low. FIG.
The output slopes of the left and right blocks are compared, and FIG.
In FIG. 7A, the inclinations on the L side and the R side are similar and the reliability is high, but in FIG. 7B, the inclinations on the L side and the R side are different, and the reliability is low. FIG. 8 compares the contrasts and FIG.
When the contrast is high as shown in (a), the reliability of the calculated block shift is high, and when the contrast is low as shown in FIG. 8B, the reliability of the calculated block shift is low.

【0045】図9は、ブロック内の傾きの連続性に基づ
いて信頼性を判定しており、図9(a)のように傾きの
変動が小さい場合は、信頼性が高く、図9(b)のよう
に傾きの変動が大きい場合は、信頼性が低い。このよう
な方法により、前述のブロックずれ量の演算に用いられ
るブロックの信頼性を検出する。このような左右ブロッ
クより、ブロックずれ検出部22および信頼性検出部2
3は、それぞれブロックずれおよびブロックの信頼性を
検出してウィンドウ評価部24に与える。すなわち、こ
れらブロックずれ検出部22および信頼性検出部23の
双方を通過することにより、左右4画素ずつ8データが
ブロックずれ量および信頼性という2つのデータに変換
される。これら2つのデータがウィンドウ評価部24に
入力される。
In FIG. 9, the reliability is judged based on the continuity of the inclination in the block. When the variation of the inclination is small as shown in FIG. 9A, the reliability is high, and FIG. When the fluctuation of the slope is large as shown in), the reliability is low. With such a method, the reliability of the block used in the above-described calculation of the block shift amount is detected. From such left and right blocks, the block shift detection unit 22 and the reliability detection unit 2
3 detects the block shift and the block reliability, and gives them to the window evaluation unit 24. That is, by passing through both the block shift detecting unit 22 and the reliability detecting unit 23, 8 data of each 4 pixels on the left and right sides are converted into two data of a block shift amount and reliability. These two data are input to the window evaluation unit 24.

【0046】信頼性検出部23も、信頼性をデジタル的
に求めるのではなく、アナログ的に求めることもでき
る。例えば、左右の信号を微分回路に入力して信号の傾
きを求め、図7の場合は、微分出力の左右の差動出力を
求めればよく、図8の場合は、微分出力の大小を比較す
ればよく、図9は微分出力の時間的変動または周波数等
を求めればよい。よってここではデジタルで処理するか
アナログで処理するかはあまり重要ではない。
The reliability detecting section 23 can also calculate the reliability in an analog manner instead of digitally. For example, the left and right signals are input to a differentiating circuit to obtain the signal slope, and in the case of FIG. 7, the left and right differential outputs of the differential output may be obtained. In the case of FIG. 8, the magnitude of the differential output may be compared. In FIG. 9, it is sufficient to obtain the temporal variation of the differential output or the frequency. Therefore, it does not matter here whether it is processed digitally or analogically.

【0047】次にウィンドウ評価部24について説明す
る。ウィンドウ評価部24は、入力されたブロックずれ
量と信頼性に基づいて、ウィンドウを形成し、その像ず
れ量を算出する。まず、ウィンドウ評価部24に入力さ
れるブロックずれ量は、種々の要因により、主要被写体
の像ずれ量を的確に表してはいない。すなわち、まず第
1の要因は、入力されたブロックずれ量が、全て主要被
写体像の像ずれ量とは限らず、被写体の背景の像の像ず
れ量である可能性もあることである。
Next, the window evaluation section 24 will be described. The window evaluation unit 24 forms a window based on the input block shift amount and reliability, and calculates the image shift amount. First, the block shift amount input to the window evaluation unit 24 does not accurately represent the image shift amount of the main subject due to various factors. That is, the first factor is that the input block shift amount is not always the image shift amount of the main subject image, but may be the image shift amount of the background image of the subject.

【0048】つまり、画像情報検出部1の光電変換素子
列1Lおよび1Rの各光電変換素子に結像される像は、
すべて一定の距離の像であるとは限らず、一般には3次
元的に色々な距離の像が入力されているので、それを分
離して主要被写体を抽出する必要がある。次の第2の要
因は、入力されたブロックずれ量がすべて正しい値であ
るとは限らず、光電変換素子のばらつき等のような様々
な原因で誤差を含んでいることである。ウィンドウ評価
部24に入力されるブロックずれ量には、主として、こ
れら2つの要因による誤差が含まれており、それを考慮
して主要被写体のウィンドウを形成して像ずれ量を算出
しなければ、正確な像ずれ量を検出することはできな
い。
That is, the images formed on the photoelectric conversion elements of the photoelectric conversion element rows 1L and 1R of the image information detecting section 1 are:
Not all images are of a constant distance, and generally, images of various distances are input three-dimensionally, so it is necessary to separate them to extract the main subject. The second second factor is that not all input block shift amounts are correct values, but errors are included due to various causes such as variations in photoelectric conversion elements. The block shift amount input to the window evaluation unit 24 mainly includes errors due to these two factors, and the image shift amount must be calculated by forming a window of the main subject in consideration of the errors. An accurate image shift amount cannot be detected.

【0049】まず、後者の第2の要因に係るばらつきの
ような測距誤差等の除去について考える。これについて
は、前述の信頼性検出部23の結果を用いることができ
る。つまり、ブロックの信頼性の低いブロックでは、誤
差を大きく含んだブロックずれの結果が算出されてお
り、信頼性の高いブロックでは誤差が小さい。言い換え
れば、誤差をあまり含んでいないブロックずれのみを採
用してウィンドウを形成して像ずれ量を算出するよう
に、ブロックの信頼性を評価する。また、信頼性の大小
をパラメータにして、ブロックずれ量に重み付けして、
加重平均してもよい。これにより誤差成分が大きいブロ
ックほど排除して誤差成分の小さいブロックずれ量を算
出できる。
First, consideration will be given to the removal of distance-measuring errors such as variations due to the latter second factor. For this, the result of the reliability detection unit 23 described above can be used. That is, the result of block shift including a large error is calculated for a block with low reliability, and the error is small for a block with high reliability. In other words, the reliability of the block is evaluated such that the window is formed by using only the block shift that does not include much error and the image shift amount is calculated. In addition, the degree of reliability is used as a parameter to weight the block shift amount,
A weighted average may be used. As a result, blocks having a larger error component can be excluded and a block shift amount having a smaller error component can be calculated.

【0050】次に、前者の第1の要因に係る主要被写体
の抽出について述べる。まず、主要被写体とはどういう
ものかということを規定する必要がある。なぜなら、厳
密な意味での主要被写体とはカメラ、ビデオカメラ等の
撮影者の意志のみで決定され、個々の撮影者により異な
る。これをすべて網羅するには特別な入力装置等が必要
である。本発明では、このような特殊な人力装置により
主要被写体を弁別することはせず、一般的に規定した主
要被写体を抽出するようにする。まず、図10に示すよ
うに撮影の構図を決定するファインダー視野に対して、
被写体の距離を検出する範囲である測距視野が水平の帯
状に設定されているとする。
Next, the extraction of the main subject relating to the former first factor will be described. First, it is necessary to define what the main subject is. This is because the main subject in a strict sense is determined only by the will of the photographer such as a camera or a video camera, and varies depending on the individual photographer. A special input device is required to cover all of these. In the present invention, the main subject is not discriminated by such a special human-powered device, but the generally defined main subject is extracted. First, as shown in FIG. 10, with respect to the viewfinder field that determines the composition of the shooting,
It is assumed that the distance measuring field of view, which is the range for detecting the distance to the subject, is set in a horizontal strip shape.

【0051】撮影対象としては、一般に図11のような
人物撮影および図12のような風景撮影等が考えられ
る。図11の場合、主要被写体は人物であり、このよう
な人物撮影の場合は、測距視野の被写体の中で最も近い
所を測距すればよい。図12の場合、主要被写体は風景
であり、測距視野内のどこを測距してもよい。したがっ
て、図11および図12のように一般的な人物および風
景の撮影の場合は測距視野のうちの最も近い被写体を測
距すればよい。これに対して、図11および図12に当
てはまらない被写体の場合について、図13、図14、
図15および図16を参照して説明する。
Generally, the person to be photographed may be a person photographed as shown in FIG. 11 or a landscape photographed as shown in FIG. In the case of FIG. 11, the main subject is a person, and in the case of such person photographing, it suffices to measure the distance closest to the subject in the distance measuring field of view. In the case of FIG. 12, the main subject is a landscape, and the distance may be measured anywhere in the distance measuring field of view. Therefore, in the case of photographing a general person and landscape as shown in FIGS. 11 and 12, it is sufficient to measure the closest object in the distance measuring field of view. On the other hand, in the case of a subject that does not apply to FIGS. 11 and 12, FIGS.
This will be described with reference to FIGS. 15 and 16.

【0052】図13は、主要被写体の前にフェンスまた
はネット等のような障害となる物が存在する場合を示し
ている。このような場合、主要被写体の人物に対して前
面にある障害が、さほどじゃまにならず、許容できるレ
ベルの時、撮影者はこのまま人物にピントを合わせて撮
影する。また、前面にある障害が許容できないレベルに
ある場合、すなわちフェンス等が太く人物がかくれてし
まう場合等、には撮影しない。よって、このような場合
は、測距視野の像の大きさを判断すればこれが主要被写
体かそれ以外の像かを判別することができる。
FIG. 13 shows a case where an obstacle such as a fence or a net exists in front of the main subject. In such a case, when the obstacle in front of the person as the main subject is not so disturbing and is at an acceptable level, the photographer focuses on the person as it is and photographs. Also, if the obstacle on the front is at an unacceptable level, that is, if the fence or the like is thick and the person is hidden, the image is not taken. Therefore, in such a case, it is possible to determine whether this is the main subject or another image by determining the size of the image in the distance measuring field.

【0053】次に、図14のように、主要被写体が壁等
に隣接して立った場合、測距視野に壁等が入ってしま
う。また、図15のように、カメラを水平から90°傾
け、いわゆる縦位置で構えた場合、地面が入ってしま
う。これらのような場合には、壁、地面等の距離は一定
でなく、図示の例では、ファインダの外側から内側に向
かって距離が遠ざかるので、検出される距離は変化す
る。よって、ある一定の距離範囲にある被写体は、主要
被写体のみである。つまり、図14における壁は、一定
の距離ではなく漸次変化している。また、図15におけ
る地面も同様である。
Next, as shown in FIG. 14, when the main subject stands adjacent to a wall or the like, the wall or the like is included in the distance measuring visual field. Further, as shown in FIG. 15, when the camera is tilted by 90 ° from the horizontal and held in a so-called vertical position, the ground will enter. In such cases, the distance between the wall and the ground is not constant, and in the example shown in the figure, the distance increases from the outside to the inside of the finder, so the detected distance changes. Therefore, the main subject is the only subject within a certain distance range. That is, the wall in FIG. 14 is not a constant distance but is gradually changing. The same applies to the ground in FIG.

【0054】次に、図16に示すように、狭い出口から
人が出てくるようなシーンでは、近距離に出口前面があ
り、出口前面を測距してしまいそうである。このような
場合、図16の出口のエッジのみコントラストがあり、
出口のその他の所はコントラストがない場合が多いの
で、結局一定の距離であると検出できるのはエッジの所
だけである。以上のように、ある連続した範囲に一定の
距離の個所が存在すると判断された部分の最も近い所の
距離を検出すれば、図11〜図16の場合の主要被写体
を捉えることができる。
Next, as shown in FIG. 16, in a scene where a person comes out from a narrow exit, there is an exit front surface at a short distance, and the front surface of the exit is likely to be measured. In such a case, there is contrast only at the exit edge of FIG.
Since there is often no contrast at other places at the exit, only the edge can be detected as a constant distance. As described above, the main subject in the case of FIGS. 11 to 16 can be captured by detecting the distance of the closest portion of the portion determined to have a certain distance in a certain continuous range.

【0055】よって、図11〜図16における主要被写
体について測距した場合、ある大きさの連続した被写
体、すなわち測距結果がほぼ同じ部分がある大きさだけ
連続的に存在している個所、のうちの最も近距離の被写
体、つまり連続的に存在している部分、を選択すること
によって、主要被写体を抽出することができる。但し、
このような方法でも完全に主要被写体を抽出することが
できるとは限らないので、後述するような表示等の工夫
を適用するようにしてもよい。
Therefore, when distance measurement is performed on the main subject in FIGS. 11 to 16, a continuous subject having a certain size, that is, a portion where the distance measurement results are substantially the same in a certain size are continuously present. The main subject can be extracted by selecting the closest subject among them, that is, the portion that continuously exists. However,
Even with such a method, it is not always possible to completely extract the main subject. Therefore, a device such as a display described later may be applied.

【0056】次に、このような処理を、ウィンドウ評価
部24で、どのように行うかを述べる。上述の動作に
は、測距エリア内の各ポイント(各ブロック)の距離情
報およびその距離情報の真偽、つまり情報の信頼性の検
出が必要であり、それらの双方は前述のブロックずれ検
出部22と信頼性検出部23により順次検出できてい
る。これらの情報に基づいて、ある範囲内の距離にある
ブロックを抽出し、その連続性を検出する。このある範
囲内の距離とは、ピントの合う範囲でよく、主要被写体
とほぼ同距離の全ての被写体でよい。つまり焦点距離、
開口F値(FNO)等による被写界深度等で決めてもよ
く、また検出し易いように一定の値としてもよい。
Next, how the window evaluation section 24 performs such processing will be described. The above operation requires detection of the distance information of each point (each block) in the distance measurement area and the authenticity of the distance information, that is, the reliability of the information. 22 and the reliability detection unit 23 can detect them sequentially. Based on these pieces of information, blocks at a distance within a certain range are extracted and their continuity is detected. The distance within the certain range may be a range in which the subject is in focus, and may be all the objects having substantially the same distance as the main object. So the focal length,
It may be determined by the depth of field based on the aperture F value (F NO ) or the like, or may be a constant value for easy detection.

【0057】次に、この検出された連続するブロックの
うちのある長さ以上のブロックを抽出する。これは、言
い換えれば、短く連続したブロックを無視すればよく、
この長さも一定としてもよいが、撮影装置の焦点距離等
に連動して、広角であるほど短く、望遠であるほど長く
してもよいし、その連続したブロックの存在する距離に
よって変化させて、近距離ほど長く、遠距離ほど短くす
るようにしてもよい。また、主要被写体が人物である可
能性が高いので、人物の幅に合わせた長さに設定しても
よい。このようにして、短いブロックを除去した後に、
残りの連続したブロックのうちの最も近距離のブロック
を抽出して、その像ずれまたは距離を求めればよい。
Next, of the detected continuous blocks, a block having a certain length or more is extracted. In other words, this means ignoring short contiguous blocks,
This length may also be constant, but in conjunction with the focal length of the photographing device, it may be shorter for a wide angle and longer for a telephoto, or may be changed depending on the distance in which continuous blocks exist, The short distance may be long and the long distance may be short. Since the main subject is likely to be a person, the length may be set according to the width of the person. In this way, after removing short blocks,
The closest block among the remaining continuous blocks may be extracted to obtain the image shift or the distance.

【0058】この様子を、図17に示す例で説明する
と、図17の被写体は、図18に示すように、(a)遠
距離にある背景aと、(b)主要被写体bと、(主要被
写体をさえぎっているフェンスからなる前景cにより形
成されている。このような、構図についてのブロックず
れ検出部22の出力を図示すると、図19のようにな
る。図19では、縦軸が、被写体の距離または像ずれ情
報であり、横軸が、順次出力される被写体の測距視野の
位置に対応するブロックの位置である。この出力に対し
て短いブロックの集まりを除去したのが図20である。
図20では被写体aおよびbのうち近距離に対応する被
写体bを選択することにより、主要被写体を抽出して、
その部分の像ずれまたは距離を検出すればよい。
This situation will be described with reference to the example shown in FIG. 17. As shown in FIG. 18, the subject of FIG. 17 is (a) a background a at a long distance, (b) a main subject b, and (main) It is formed by the foreground c that is a fence that blocks the subject.The output of the block shift detection unit 22 for such composition is illustrated in Fig. 19. In Fig. 19, the vertical axis represents the subject. 20 is the distance or image shift information, and the horizontal axis is the position of the block corresponding to the position of the ranging field of view of the subject that is sequentially output. is there.
In FIG. 20, the main subject is extracted by selecting the subject b corresponding to the short distance from the subjects a and b,
The image shift or the distance of that portion may be detected.

【0059】但し、この実施の形態では、ブロックずれ
検出部22の出力は順次出力されるので、ウィンドウ評
価部24は、図21に示すように構成することができ
る。図21に示すウィンドウ評価部24は、連続性チェ
ック部31、ブロックカウンター32、ウィンドウ演算
部33、候補ウィンドウずれ量格納部34および採用ウ
ィンドウずれ量格納部35を有している。まず、ブロッ
クずれ検出部22と信頼性検出部23から、光電変換素
子列の端部に対応する画像情報から算出されたブロック
ずれ量および信頼性評価結果が、ウィンドウ評価部24
の連続性チェック部31に順次入力される。
However, in this embodiment, since the output of the block shift detecting section 22 is sequentially output, the window evaluating section 24 can be constructed as shown in FIG. The window evaluation unit 24 shown in FIG. 21 includes a continuity check unit 31, a block counter 32, a window calculation unit 33, a candidate window shift amount storage unit 34, and an adopted window shift amount storage unit 35. First, the block shift amount and the reliability evaluation result calculated from the block shift detection unit 22 and the reliability detection unit 23 from the image information corresponding to the end portion of the photoelectric conversion element array are the window evaluation unit 24.
Are sequentially input to the continuity check unit 31 of.

【0060】連続性チェック部31は、入力されたブロ
ックずれ量および信頼性評価結果よりブロックの連続性
をチェックして、連続性がある場合にはブロックカウン
ター32をインクリメント(アップカウント)させる。
この時、連続性を有するブロックずれ量の値は、ウィン
ドウ演算部33に与えられ、それまでに演算されたブロ
ックずれ量の平均または信頼性評価結果等を用いて加重
平均される。この結果が候補ウィンドウずれ量格納部3
4に記憶される。
The continuity checking unit 31 checks the continuity of the block based on the input block shift amount and the reliability evaluation result, and if there is continuity, increments (up-counts) the block counter 32.
At this time, the value of the block deviation amount having continuity is given to the window calculation unit 33, and is weighted averaged using the average of the block deviation amounts calculated up to that point or the reliability evaluation result. The result is the candidate window shift amount storage unit 3.
4 is stored.

【0061】このような動作が順次ブロックずれ量が入
力される度に繰り返され、ブロックカウンター32のカ
ウント値がある値以上の時、つまり前述したように連続
したブロックがある値以上のとき、候補ウィンドウずれ
量格納部34に格納された候補ウィンドウずれ量が採用
ウィンドウずれ量格納部35に送られ、それが、以前か
ら記憶されていた採用ウィンドウずれ量よりも近い距離
の演算結果である時にのみ、採用ウィンドウずれ量格納
部35に格納される採用ウィンドウずれ量が更新され
る。
Such an operation is repeated each time the block shift amount is input, and when the count value of the block counter 32 is a certain value or more, that is, when the continuous blocks are a certain value or more as described above, the candidates are selected. Only when the candidate window shift amount stored in the window shift amount storage unit 34 is sent to the adopted window shift amount storage unit 35 and the calculated result is a distance closer than the previously stored adopted window shift amount. The adopted window shift amount stored in the adopted window shift amount storage unit 35 is updated.

【0062】このようにすれば、ブロックカウンター3
2のカウント値に反映される連続したブロックの長さに
より、短い長さの連続ブロックを除去することができ
る。また、採用ウィンドウずれ量格納部35に格納され
る採用ウィンドウずれ量をそれより近距離の結果が入力
されたときにのみ更新しているので、近い距離の連続ブ
ロックのみを選択することができる。次に、連続性チェ
ック部31について説明する。ブロックずれ量の変化が
ある範囲内に入っているかどうかで連続性を判断しても
よいが、図22に示すように、ブロックの信頼性評価結
果を利用することにより、綿密にブロックずれの連続性
を評価することができる。
In this way, the block counter 3
Due to the length of consecutive blocks reflected in the count value of 2, it is possible to eliminate consecutive blocks of short length. Moreover, since the adopted window shift amount stored in the adopted window shift amount storage unit 35 is updated only when a result of a closer distance is input, only continuous blocks of a shorter distance can be selected. Next, the continuity check unit 31 will be described. The continuity may be judged by whether or not the change of the block deviation amount is within a certain range. However, as shown in FIG. 22, by using the reliability evaluation result of the block, the continuity of the block deviation can be closely examined. Sex can be evaluated.

【0063】まず、信頼性が高く且つブロックずれが所
定範囲内(候補ウィンドウずれ量等と比較して)である
ときは、連続した被写体であるので、ブロックカウンタ
ー32をインクリメントさせ、そのブロックずれを候補
ウィンドウずれ量の算出に使用する。また、信頼性が低
く且つブロックずれ量が前記所定範囲内であるときは、
連続している可能性は高いが、測距演算精度が低いの
で、ブロックカウンター32をインクリメントさせるが
候補ウィンドウずれ量には算入しない。
First, when the reliability is high and the block shift is within a predetermined range (compared to the candidate window shift amount, etc.), the subject is a continuous subject, so the block counter 32 is incremented to reduce the block shift. It is used to calculate the candidate window shift amount. When the reliability is low and the block shift amount is within the predetermined range,
Although there is a high possibility that they are continuous, the accuracy of the distance measurement calculation is low, so the block counter 32 is incremented but not included in the candidate window shift amount.

【0064】そして、信頼性が高く且つブロックずれ量
が前記所定範囲外であるときは、以前算出していた候補
ウィンドウとは異なる距離のブロックである可能性が高
いので、ブロックカウンター32をリセットして、新た
に候補ウィンドウを設定するための準備をする。なお、
信頼性が低く且つブロックずれ量が前記所定範囲外であ
るときは、新たに候補を設定するには信頼性が低いので
何もしない。このようにして、入力されたブロックずれ
量および信頼性の評価結果により、候補ウィンドウを設
定し、そのずれ量を、順次入力されるずれ量により求め
ることによって、ブロックカウンター32がある値以上
になったときに、候補ウィンドウずれ量と比較し、記憶
されている採用ウィンドウずれ量より近距離であるとき
は、採用ウィンドウずれ量を更新する。
When the reliability is high and the block shift amount is out of the predetermined range, it is highly likely that the block has a distance different from the previously calculated candidate window. Therefore, the block counter 32 is reset. And prepare for setting a new candidate window. In addition,
When the reliability is low and the block shift amount is out of the predetermined range, the reliability is low for setting a new candidate, so that nothing is done. In this way, the candidate window is set based on the input block deviation amount and the evaluation result of the reliability, and the deviation amount is obtained by the sequentially input deviation amount, so that the block counter 32 becomes a certain value or more. In this case, when the distance is shorter than the stored adopted window shift amount, the adopted window shift amount is updated.

【0065】このように、順次入力されるデータが終了
するまで続けることにより、最終的に有効なウィンドウ
ずれ結果が採用ウィンドウずれ量として記憶されている
ので、この結果が主要被写体の像ずれ量に対応する。こ
の部分についてもデジタル的な演算回路により容易に構
成することができるが、アナログ的な信号処理によって
も実施することができる。つまり図19から短いブロッ
クを除去して図20のようにするには、図23に示すよ
うに、アナログ的なローパスフィルタ41を通すことに
よって実現することができ、信頼性の高い部分のみを出
力するアナログゲート42を通して、最後にレベル判定
部43でレベル判定を行って、近い距離の部分のみを出
力すればよい。
In this way, by continuing until the sequentially input data is completed, the finally effective window shift result is stored as the adopted window shift amount, and this result is the image shift amount of the main subject. Correspond. This part can be easily configured by a digital arithmetic circuit, but can also be implemented by analog signal processing. That is, in order to remove the short blocks from FIG. 19 to obtain the one shown in FIG. 20, it can be realized by passing the analog low-pass filter 41 as shown in FIG. 23, and only the highly reliable portion is output. Finally, the level determination unit 43 may perform the level determination through the analog gate 42, and output only the short distance portion.

【0066】以上述べたように、左右一対の光電変換素
子列1Lおよび1Rの各一端部から左右同時に順次他端
部に相当する画像情報を出力して、その順次出力される
画像情報をブロック形成部21に入力する。ブロック形
成部21は、設定された相対シフト量に応じた左右ブロ
ックを選択して、ブロックずれ検出部22および信頼性
検出部23に入力する。ブロックずれ検出部22および
信頼性検出部23に入力されたブロックに基づいて、そ
れぞれブロックずれ量と信頼性評価値が求められウィン
ドウ評価部24に入力される。ウィンドウ評価部24
は、これらの値より、連続したブロック、すなわちブロ
ックずれ量がある範囲内に入っている連続したブロッ
ク、の長さを評価して、短いブロックを除去し、長いブ
ロックのうちの近距離のブロックを採用する。
As described above, the image information corresponding to the other end portions is sequentially output from the respective one end portions of the pair of left and right photoelectric conversion element arrays 1L and 1R, and the sequentially output image information is formed into blocks. Input to the section 21. The block forming unit 21 selects right and left blocks according to the set relative shift amount and inputs them to the block shift detecting unit 22 and the reliability detecting unit 23. Based on the blocks input to the block shift detection unit 22 and the reliability detection unit 23, the block shift amount and the reliability evaluation value are obtained and input to the window evaluation unit 24. Window evaluation unit 24
From these values, evaluate the length of consecutive blocks, that is, consecutive blocks whose block shift amount is within a certain range, remove short blocks, To adopt.

【0067】このようにすれば、順次画像情報が入力さ
れる度に、各構成が動作して、画像情報転送終了ととも
に主要被写体の距離または像ずれ量が求められる。つま
り、図24に示すように、従来は左右の光電変換素子に
よって得られた情報を全て一旦取り込んで、その後演算
処理していたが、本発明では、入力情報が順次入力され
る毎に演算されるので、入力と演算がほぼ同時に並行し
て行われ、データ入力終了後直ちに演算も終了する。
With this configuration, each time the image information is sequentially input, each component operates to determine the distance or the image shift amount of the main subject when the image information transfer is completed. That is, as shown in FIG. 24, conventionally, all the information obtained by the left and right photoelectric conversion elements was once fetched and then processed, but in the present invention, it is calculated every time input information is sequentially input. Therefore, the input and the calculation are performed almost simultaneously in parallel, and the calculation is finished immediately after the end of the data input.

【0068】よって本発明を実現するためには、複数に
分割されたブロックの像ずれ量または距離の算出と算出
された複数の結果より主要被写体を抽出することが要点
である。このため、以上においては、主として主要被写
体の抽出について述べてきたが、次に、ブロックの像ず
れ量の算出について説明する。前述したように、ブロッ
ク形成部21により形成されたブロックから、ブロック
ずれ検出部22でブロックずれの検出を行うが、このと
き比較されるブロックは、相対シフト量によってブロッ
クの相対位置が示される。
Therefore, in order to realize the present invention, it is essential to calculate the image shift amount or distance of the blocks divided into a plurality of blocks and to extract the main subject from the plurality of calculated results. Therefore, in the above, the extraction of the main subject has been mainly described. Next, the calculation of the image shift amount of the block will be described. As described above, the block shift detecting unit 22 detects the block shift from the block formed by the block forming unit 21, and the relative position of the block to be compared is indicated by the relative shift amount.

【0069】ここで、相対シフト量について説明する。
図25のようにL側の画像情報とR側の画像情報がブロ
ック形成部21に入力されたとする。図25に示すよう
に、L側とR側との相対的な像ずれ量はd=2.8セン
サピッチだけずれているとする。ここで、最初の部分S
aについて、相対シフト量0としてブロック形成部21
が4画素の左右ブロックを形成したとすると図26のよ
うになる。このような左右ブロックをブロックずれ検出
部22に入力した場合、L側とR側の情報の相違が大き
すぎてブロックずれを正確に求めることができない。ま
た、信頼性検出部23も信頼性なしと判断してしまう。
Here, the relative shift amount will be described.
It is assumed that the image information on the L side and the image information on the R side are input to the block forming unit 21 as shown in FIG. As shown in FIG. 25, it is assumed that the relative image shift amount between the L side and the R side is shifted by d = 2.8 sensor pitch. Where the first part S
With respect to a, the block forming unit 21 sets the relative shift amount to 0.
26 forms a left-right block of 4 pixels, the result is as shown in FIG. When such left and right blocks are input to the block shift detection unit 22, the difference between the information on the L side and the information on the R side is too large to accurately obtain the block shift. Further, the reliability detecting unit 23 also determines that there is no reliability.

【0070】次に相対シフト量を2としてブロックを形
成した場合は、図27のようになり、L側、R側の相関
が高くなって、ブロックずれ検出部22はブロックずれ
を検出し易くなり、理論的には像ずれ量2.9−相対シ
フト量2=0.9となって、ブロックずれ検出部22は
0.9という値を検出することができる。また、相対シ
フト量を3とした場合は、図28のようになり、より左
右の相関は強くなり、像ずれ量2.9−相対シフト量3
=−0.1となる。また、左右ブロックの信頼性も高く
なり信頼性検出部23も信頼性が高いと判断する。
Next, when a block is formed with the relative shift amount being 2, the result is as shown in FIG. 27, the correlation between the L side and the R side is high, and the block shift detecting section 22 can detect the block shift easily. Theoretically, the image shift amount is 2.9−the relative shift amount 2 = 0.9, and the block shift detection unit 22 can detect a value of 0.9. Further, when the relative shift amount is 3, it becomes as shown in FIG. 28, and the correlation between the left and right becomes stronger, and the image shift amount 2.9−the relative shift amount 3
= -0.1. Further, the reliability of the left and right blocks also becomes high, and the reliability detecting unit 23 also determines that the reliability is high.

【0071】つまり、左右ブロックを比較するときに、
左右ブロックの像ずれ量に近い相対シフト量でブロック
を形成して比較することで、より正確に像ずれ量、すな
わち相対シフト量+ブロックずれ量を検出することがで
きる。像ずれ量に近い相対シフト量によるブロックを比
較するということは、被写体像のほぼ同一部分を比較す
ることを意味し、異なった相対シフト量によって比較す
ることは被写体像のずれた部分を比較することを意味し
ているので、上述のようになるのは当然である。以上に
おいては、この相対シフト量について特に言及せず、一
定として扱ってきたが、これでは正確な像ずれを検出す
ることができない。この相対シフト量をどのような値と
するかが問題となる。
That is, when comparing left and right blocks,
By forming a block with a relative shift amount close to the image shift amount of the left and right blocks and comparing the blocks, the image shift amount, that is, the relative shift amount + the block shift amount can be detected more accurately. Comparing blocks with a relative shift amount close to the image shift amount means comparing almost the same parts of the subject image, and comparing with different relative shift amounts compares the displaced parts of the subject image. Since it means that, it goes without saying that the above is the case. In the above description, the relative shift amount is not particularly mentioned and is treated as a constant amount, but it is impossible to detect an accurate image shift. The problem is how to set this relative shift amount.

【0072】そこで、順次画像情報が入力される度に相
対シフト量を例えば−n〜nと変化させて、信頼性およ
びブロックずれをチェックして、最良になる相対シフト
量を検出し、その相対シフト量とブロックずれを加えた
値をウィンドウ評価部24に入力するようにすれば、各
ブロック毎に最良の相対シフト量を検出することができ
る。ところが、各ブロック毎に−nからnまで相対シフ
ト量を変化させて、ブロックずれ量および信頼性を検出
するので、非常に演算規模が大きくなってしまう。ま
た、主要被写体の存在が予測される距離の像ずれ量に近
い相対シフト量をセットするようにしてもよいが、この
場合は無限遠から最至近までの像ずれ量が小さいときに
有効である。
Therefore, each time image information is sequentially input, the relative shift amount is changed, for example, from -n to n, and reliability and block deviation are checked to detect the best relative shift amount, and the relative shift amount is detected. If the value obtained by adding the shift amount and the block shift is input to the window evaluation unit 24, the best relative shift amount can be detected for each block. However, since the relative shift amount is changed from −n to n for each block to detect the block shift amount and the reliability, the calculation scale becomes very large. Further, a relative shift amount may be set to be close to the image shift amount of the distance at which the presence of the main subject is predicted, but this is effective when the image shift amount from infinity to the closest distance is small.

【0073】しかしながら、これらの方法はあまり実用
的でない。ここで本発明の第2の実施の形態について述
べる。この第2の実施の形態の前提として、被写体の距
離が無限遠の時の像ずれ量を0、撮影範囲の最至近距離
に被写体が存在するときの像ずれ量をnと規定する。ま
ず、初期値としての相対シフト量は、0である。順次、
画像情報が入力されブロック作成部21が相対シフト量
0に基づいてブロックを作成し、ブロックずれ検出部2
2がブロックずれ量を検出し、信頼性検出部23が信頼
性を検出する。ここで信頼性がある値より高く且つブロ
ックずれ量がある値(例えば1以上)である時、その部
分の像ずれ量は、そのときの相対シフト量よりも大きい
可能性が大きいので、相対シフト量を増加させる。そし
て、順次、情報が入力される度にブロック形成部21
は、更新された相対シフト量にてブロックを形成し、そ
の形成された左右ブロックにてブロックずれ検出部22
および信頼性検出部23がブロックずれと信頼性を検出
し、その時の相対シフト量とブロックずれ量を加えた値
をウィンドウ評価部24に出力する。
However, these methods are not very practical. Here, a second embodiment of the present invention will be described. As a premise of the second embodiment, the image shift amount when the subject distance is infinity is defined as 0, and the image shift amount when the subject exists at the shortest distance of the shooting range is defined as n. First, the relative shift amount as an initial value is 0. Sequentially
The image information is input, the block creation unit 21 creates a block based on the relative shift amount 0, and the block shift detection unit 2
2 detects the amount of block shift, and the reliability detector 23 detects reliability. Here, when the reliability is higher than a certain value and the block shift amount is a certain value (for example, 1 or more), the image shift amount of that portion is likely to be larger than the relative shift amount at that time, and thus the relative shift amount is large. Increase the amount. Then, each time information is sequentially input, the block forming unit 21
Forms a block with the updated relative shift amount, and the block shift detection unit 22 includes the formed left and right blocks.
The reliability detection unit 23 detects the block shift and the reliability, and outputs a value obtained by adding the relative shift amount and the block shift amount at that time to the window evaluation unit 24.

【0074】このようにすることにより、相対的シフト
量は、像ずれ量に追従して増加する。この場合、相対シ
フト量は増加しかしないので、一つでも近距離の被写体
があると、それ以降のブロックで遠距離の被写体の検出
精度が悪くなる。しかしながら、一般的に主要被写体は
一番手前の被写体である確率が高く、測距視野内で一番
近距離の被写体のみ抽出できるので、あまり問題とはな
らない。しかしながら、本発明は、図17のように主要
被写体に対して充分に小さい前景を除去することも目的
としている。そこで、まず前述の相対シフト量を近距離
方向のみシフトした場合について、図29および図30
を参照して説明する。
By doing so, the relative shift amount increases in accordance with the image shift amount. In this case, since the relative shift amount only increases, if there is even one short-distance subject, the detection accuracy of the long-distance subject in the subsequent blocks deteriorates. However, in general, the main subject has a high probability of being the closest subject, and since only the closest subject in the distance measuring field can be extracted, this is not a serious problem. However, the present invention also aims to remove a foreground that is sufficiently small with respect to the main subject as shown in FIG. Therefore, first, in the case where the relative shift amount is shifted only in the short-distance direction, FIGS.
This will be described with reference to FIG.

【0075】図29(a)は、被写体が風景等の遠距離
の被写体のみである場合で、この場合被写体の像ずれ量
は、図29(b)のように視野位置に対して均一に分布
している。これに対して相対シフト量は変化せず、図2
9(c)のように一定である。次に、図30(a)のよ
うに背景に対して前に主要被写体がある場合、図30
(b)のように主要被写体が存在する位置で像ずれ量が
変化する。よって、図30(c)のように、画面左側の
背景部分においては相対シフト量は像ずれ量に近い値で
あり、中央の主要被写体の部分になると相対シフト量が
増大して像ずれ量の値に近付く。
FIG. 29A shows a case where the subject is only a long-distance subject such as a landscape. In this case, the image shift amount of the subject is uniformly distributed with respect to the visual field position as shown in FIG. 29B. are doing. On the other hand, the relative shift amount does not change, and
It is constant like 9 (c). Next, when the main subject is in front of the background as shown in FIG.
As shown in (b), the image shift amount changes at the position where the main subject exists. Therefore, as shown in FIG. 30C, the relative shift amount is close to the image shift amount in the background portion on the left side of the screen, and the relative shift amount increases at the central main subject portion, and the image shift amount is increased. Get closer to the value.

【0076】次に画面の右側の背景部分においては、像
ずれ量が背景に対応しても相対シフト量は変化しない。
このような相対シフト量に基づいて作成されたブロック
ずれを算出し、ウィンドウ評価部に入力されると図示R
a部にてウィンドウが採用されて測距される。次に、図
31(a)のように不要な前景が存在する場合、視野範
囲に対する像ずれ量の分布は、図31(b)のようにな
る。この場合、前述のような近距離のみについてのシフ
ト量の更新では、図31(c)のように左側のフェンス
の部分の前景において、相対シフト量は、主要被写体よ
り近くまで更新されてしまい正確に主要被写体を抽出す
ることができなくなる。
Next, in the background portion on the right side of the screen, the relative shift amount does not change even if the image shift amount corresponds to the background.
When the block shift created based on such a relative shift amount is calculated and input to the window evaluation unit, R shown in the figure is displayed.
The window is adopted in the section a to measure the distance. Next, when there is an unnecessary foreground as shown in FIG. 31 (a), the distribution of the image shift amount with respect to the visual field range is as shown in FIG. 31 (b). In this case, when the shift amount is updated only for the short distance as described above, the relative shift amount is updated closer to the main subject in the foreground of the left fence portion as shown in FIG. It becomes impossible to extract the main subject.

【0077】そこで相対シフト量の更新を増加のみでな
く減少についても行うこととする。ところで、測距装置
としては、主要被写体より遠い被写体(背景)は検出す
る必要がないので、相対シフト量を減少させる場合にも
主要被写体より遠くまで減少させる必要がない。つま
り、ウィンドウ評価部24で、ブロックの連続性を調べ
て採用されたウィンドウより遠くの被写体を検出する必
要がないので、相対シフト量は、初期値は無限遠に対応
する(ここでは0)値として、増加、減少する。この場
合、リミット値は0であるが次にウィンドウ評価部24
がある範囲の連続したブロックを採用した場合には、そ
の値をリミット値に増減することでよい。
Therefore, the relative shift amount is updated not only for the increase but also for the decrease. By the way, since the distance measuring device does not need to detect a subject (background) farther than the main subject, it is not necessary to reduce the relative shift amount farther than the main subject. That is, since it is not necessary for the window evaluation unit 24 to detect continuity of blocks to detect an object farther than the adopted window, the relative shift amount is a value whose initial value corresponds to infinity (here, 0). As a result, increase and decrease. In this case, the limit value is 0, but the window evaluation unit 24
When a continuous block in a certain range is adopted, the value may be increased or decreased to the limit value.

【0078】つまり、初期状態では、相対シフト量のと
り得る範囲は、無限遠の0より最至近のnまで増減する
が、ウィンドウ評価部24がある連続したブロックを採
用し、その時の相対シフト量がm(0≦m≦n)なら
ば、それ以後は相対シフト量のとり得る範囲は、mから
nまでにすることで、相対シフト量のとり得る範囲が狭
くなり、一層正確に主要被写体を抽出することができ
る。この方法での相対シフト量の変化を示したのが図3
1(d)であり、Qa部でウィンドウが採用され、次に
Qb部でもウィンドウが採用され、最終的にQb部に相
当する相対シフト量で主要被写体が抽出される。このと
き、相対シフト量を減少させる方法は、増加させるとき
と同様にブロックずれ検出部22の検出値に基づいて行
い、ブロックずれがある値(例えば−1)以下の時、そ
の部分の像ずれ量はそこでの相対シフト量より小さい可
能性が高いので、相対シフト量を減少させる。
That is, in the initial state, the range of the relative shift amount increases or decreases from 0 at infinity to the closest n, but a continuous block having the window evaluation unit 24 is adopted, and the relative shift amount at that time is adopted. Is m (0 ≦ m ≦ n), the range that the relative shift amount can take after that is from m to n, the range that the relative shift amount can take is narrowed, and the main subject can be more accurately captured. Can be extracted. The change in the relative shift amount by this method is shown in FIG.
1 (d), the window is adopted in the Qa portion, the window is also adopted in the Qb portion, and the main subject is finally extracted with the relative shift amount corresponding to the Qb portion. At this time, the method of reducing the relative shift amount is performed based on the detection value of the block shift detection unit 22 as in the case of increasing it, and when the block shift is equal to or less than a certain value (for example, -1), the image shift of that portion is performed. The amount is likely to be less than the relative shift amount there, thus reducing the relative shift amount.

【0079】以上に述べたような方法により、被写体の
像ずれ量に追従して相対シフト量が求められるので、被
写体が視野範囲に3次元的に存在しても、各被写体の像
ずれ量に追従して相対シフト量が変化して最終的に主要
被写体の像ずれに近い相対シフト量に更新され、その相
対シフト量で左右ブロックが作成されるためブロックず
れ検出部22は正確な値を検出することができる。以上
においては、相対シフト量をブロックずれ量の大小に基
づいて増減させてきたが、次に、より確実に相対シフト
量を増減させる方法について述べる。
Since the relative shift amount is obtained by following the image shift amount of the subject by the method as described above, even if the subject is three-dimensionally present in the visual field range, the image shift amount of each subject is determined. Following this, the relative shift amount changes and is finally updated to a relative shift amount close to the image shift of the main subject, and the left and right blocks are created with this relative shift amount, so the block shift detection unit 22 detects an accurate value. can do. In the above, the relative shift amount has been increased / decreased based on the magnitude of the block shift amount. Next, a method of increasing / decreasing the relative shift amount more reliably will be described.

【0080】前述の方法では、実際の像ずれと相対シフ
ト量がかけ離れていて、それによって作成される左右ブ
ロックによってブロックずれを求める場合、つまり図2
6のような場合にブロックずれを正確に求めることがで
きず、場合によっては推定できないこともある。このよ
うな場合、当然、相対シフト量をどのように更新すれば
よいかわからないことがある。そこで、基準となる相対
シフト量に対して大きい相対シフト量(例えば+2)と
小さい相対シフト量(例えば−2)で、左右ブロックを
作成して、そのブロックでブロックずれ量と信頼性を仮
に求める。基準となる相対シフト量より像ずれが大きい
ときは小さい相対シフト量(−2)の信頼性が悪くな
る。
In the above-mentioned method, the actual image shift and the relative shift amount are far from each other, and the block shift is obtained by the left and right blocks created thereby, that is, FIG.
In the case of 6, the block shift cannot be accurately obtained, and in some cases it may not be estimated. In such a case, naturally, it may not be known how to update the relative shift amount. Therefore, the left and right blocks are created with a large relative shift amount (for example, +2) and a small relative shift amount (for example, −2) with respect to the reference relative shift amount, and the block shift amount and reliability are provisionally obtained for that block. . When the image shift is larger than the reference relative shift amount, the reliability of the small relative shift amount (-2) becomes poor.

【0081】また、基準となる相対シフト量より像ずれ
が小さいときは大きい相対シフト量(+2)の信頼性が
悪くなるので、基準となる相対シフト量をどちらに更新
すればよいかを確実に検出することができる。これはち
ょうど、コントラスト法における、いわゆる山のぼり法
に類似した方法である。すなわち、コントラスト法では
撮影レンズまたは撮像素子を振動させてコントラストの
高くなる方向にピントを動かす方法であったが、これに
似た考えを相対シフトの更新に応用したものである。こ
のような方法を使うと、基準となる相対シフト量を固定
したままブロックずれ量に応じてシフト量を増減させる
よりも確実にシフト量を変動させて評価するので、より
正確に相対シフト量を更新することができる。
Further, when the image shift is smaller than the reference relative shift amount, the reliability of the large relative shift amount (+2) becomes poor. Therefore, it is sure which of the reference relative shift amounts should be updated. Can be detected. This is just a method similar to the so-called mountain climbing method in the contrast method. That is, in the contrast method, the photographing lens or the image pickup element is vibrated to move the focus in the direction in which the contrast is increased, but a similar idea is applied to the update of the relative shift. By using such a method, the relative shift amount can be evaluated more accurately by changing the shift amount more reliably than by increasing or decreasing the shift amount according to the block shift amount while fixing the reference relative shift amount. Can be updated.

【0082】以上の方法で相対シフト量を変化させて、
ブロックずれおよび信頼性を求め、この値によりウィン
ドウを評価して主要被写体の像ずれを検出することがで
きる。また、動体の被写体などで測距動作を繰り返し行
う場合、最終的に採用されたウィンドウの相対シフト量
を使って再測距することにより、正確に且つ高速に測距
を行うことができる。
By changing the relative shift amount by the above method,
The block shift and the reliability are obtained, and the window can be evaluated by this value to detect the image shift of the main subject. Further, when the distance measurement operation is repeatedly performed on a moving subject, the distance can be measured accurately and at high speed by performing the distance measurement again using the finally adopted relative shift amount of the window.

【0083】さらに、本発明を適用することによって、
主要被写体を抽出し、抽出された主要被写体の複数のブ
ロックずれの分布(主要被写体の距離の分布)がわかる
ので、主要被写体が平面的でなく若干前後に凸凹してい
ても、その範囲全体が被写界深度に入るような撮影装
置、すなわちカメラを提供することができる。また、主
要被写体のみを抽出することができるので、主要被写体
に対応する視野範囲を表示したり、2枚のエリアセンサ
を使用して3Dの電子撮像装置を作成した場合、このエ
リアセンサの情報により主要被写体を抽出し測距した
り、主要被写体と同一の距離以外の被写体を電気的にぼ
かしたりして擬似的な望遠レンズ効果等を作り出すこと
ができる。特に本発明は、左右画像を順次処理できるの
で、2枚のエリアセンサ等を使用した3D電子撮像装置
には最適である。
Further, by applying the present invention,
The main subject is extracted, and the distribution of multiple block shifts of the extracted main subject (distance distribution of the main subject) can be known. Therefore, even if the main subject is not flat but rather uneven in the front and back, the entire range is It is possible to provide a photographing device, that is, a camera, that can enter the depth of field. In addition, since only the main subject can be extracted, when the field of view range corresponding to the main subject is displayed or when a 3D electronic image pickup device is created using two area sensors, the information of this area sensor is used. A pseudo telephoto lens effect or the like can be created by extracting a main subject and measuring the distance, or electrically blurring a subject other than the same distance as the main subject. In particular, the present invention is suitable for a 3D electronic image pickup device using two area sensors or the like because it can sequentially process left and right images.

【0084】また、本発明による測距方式は、主に外光
三角測距およびTTL位相差方式に有効な方式である
が、連続したブロックで一番近い距離のウィンドウを求
めることによって、主要被写体を抽出することは、像ず
れを使用した測距方式だけでなく、コントラストの大小
を検出して被写体までの距離を求めるコントラスト法を
ブロック単位に応用することにより、基線長を有する測
距方式でないコントラスト法の測距方式にも有効であ
る。このような場合には、信頼性にあたる部分は、ブロ
ックのコントラストに対応し、相対シフト量に相当する
部分は撮影レンズまたは撮像素子の位置に相当し、ブロ
ックずれ検出はコントラスト法において前回の部分コン
トラストによりコントラストが最大となる繰り出し量を
予想することで算出した繰り出し量または被写体距離の
検出に相当する。
The distance measuring method according to the present invention is mainly effective for the external light triangulation and the TTL phase difference method. However, by determining the window of the closest distance in continuous blocks, Is not only a distance measurement method that uses the image shift, but is not a distance measurement method that has a baseline length by applying the contrast method that finds the distance to the subject by detecting the size of the contrast in block units. It is also effective as a contrast method. In such a case, the part corresponding to the reliability corresponds to the contrast of the block, the part corresponding to the relative shift amount corresponds to the position of the photographing lens or the image pickup element, and the block shift detection uses the previous partial contrast in the contrast method. Corresponds to detection of the amount of extension or the subject distance calculated by predicting the amount of extension that maximizes the contrast.

【0085】このように1枚のエリアセンサを部分毎に
分割し、そのコントラストを求めてそのコントラストの
時系列的な変化により繰り出し量を予想すること、およ
びその部分のコントラストを信頼性情報として使用する
ことで通常のビデオカメラ等にも本発明を適用すること
ができる。次に、マイクロコンピュータ等を使用して、
画像読み出し期間中に演算する方法について説明する。
In this way, one area sensor is divided into parts, the contrast is obtained, and the amount of extension is predicted by the time-series change of the contrast, and the contrast of that part is used as reliability information. By doing so, the present invention can be applied to a normal video camera or the like. Next, using a microcomputer etc.,
A method of calculating during the image reading period will be described.

【0086】図32のように、光電変換素子L1 、L2
…Ln からなる光電変換素子列1Lと、光電変換素子R
1 、R2 …Rn からなる光電変換素子列1Rの画像出力
を、L1 、R1 、L2 、R2 …Ln 、Rn のように交互
に出力し、その出力をA/D変換器51にてデジタルデ
ータに量子化し、それをCPU(中央処理装置)52に
取り込んで処理する。この実施の形態では、被写体が無
限遠にある場合、その被写体により形成される被写体像
の像ずれ量は0とし、その時、図33のようにL1 、L
2 、L3 およびL4 とR1 、R2 、R3 、およびR4
画像出力が一致するものとする。
As shown in FIG. 32, the photoelectric conversion elements L 1 and L 2 are
A photoelectric conversion element array 1L composed of L n and a photoelectric conversion element R
The image output of the photoelectric conversion element array 1R composed of 1 , R 2 ... R n is alternately output like L 1 , R 1 , L 2 , R 2 ... L n , R n , and the output is A / D. The converter 51 quantizes the data into digital data, which is taken into a CPU (Central Processing Unit) 52 for processing. In this embodiment, when the object is at infinity, the image shift amount of the object image formed by the object is zero, at that time, L 1, L as shown in FIG. 33
It is assumed that the image outputs of R 1 , R 2 , R 3 , and R 4 match with 2 , L 3 and L 4 .

【0087】また。図33のように、像ずれ量が1の時
はL1 、L2 、L3 、およびL4 とR2 、R3 、R4
およびR5 の画像出力が一致し、最至近距離の被写体の
時は像ずれ量nの像が一致し、L1 、L2 、L3 、およ
びL4 とR1+n 、R2+n 、R 3+n 、およびR4+n の画像
出力が一致するとする。次に図34に示す全体のフロー
チャートについて説明する。このフローチャートは、読
み出し期間中のフローチャートであり、その前に行われ
る光電変換素子の蓄積時間のコントロールおよび測距演
算後のレンズ繰り出し演算等は本発明に直接関係がない
ので説明を省略する。
Also. As shown in FIG. 33, when the image shift amount is 1.
Is L1 , LTwo , LThree , And LFour And RTwo , RThree , RFour ,
And RFive The image output of the
When the image with the image shift amount n matches,1 , LTwo , LThree , And
And LFour And R1 + n , R2 + n , R 3 + n , And R4 + n Image of
Suppose the outputs match. Next, the overall flow shown in FIG.
The chart will be described. This flow chart is
It is a flow chart during the project period and is performed before that.
Control of storage time of photoelectric conversion element and distance measurement
The lens extension calculation after calculation is not directly related to the present invention.
Therefore, the description is omitted.

【0088】まず、処理が開始されると必要な変数等が
初期化される(ステップS1)。次に、A/D変換する
ための新たなデータが入力されるまで待って(ステップ
S2)、入力された画像出力をA/D変換する(ステッ
プS3)。ここで、A/D変換に時間がかかるA/D変
換器51を使用している場合には、以後の処理を並列的
に行って変換終了後にバッファに入力するようにしても
よい。変換されたデータを、それがL側の画像情報なら
L側バッファに、R側の画像情報ならR側バッファに蓄
える(ステップS4)。これはブロックを形成させるた
め必要である。
First, when the processing is started, necessary variables and the like are initialized (step S1). Next, wait until new data for A / D conversion is input (step S2), and the input image output is A / D converted (step S3). Here, when the A / D converter 51 that takes a long time for A / D conversion is used, the subsequent processing may be performed in parallel and input to the buffer after the conversion is completed. If the converted data is L side image information, it is stored in the L side buffer, and if it is R side image information, it is stored in the R side buffer (step S4). This is necessary to form blocks.

【0089】バッファの様子を図35に示す。図35に
おいて、矢印が示している部分が最新データが蓄えられ
ている場所であり、最上段から順次下の段に向かってL
1 、L2 、L3 …とデータが蓄えられていく様子が示さ
れている。この例では最新のデータから7データ前まで
の7個のデータが蓄えられる。また蓄えられたデータの
順序は、最新データを示すポインタを起点として、図の
ように左側方向にサイクリックに7データが蓄えられて
いるので、最新データのポインタさえあれば、たえず最
新の7データを取り出すことができる。
The state of the buffer is shown in FIG. In FIG. 35, a portion indicated by an arrow is a place where the latest data is stored, and L is sequentially arranged from the top row to the bottom row.
It is shown that data is accumulated as 1 , L 2 , L 3, ... In this example, 7 data from the latest data to 7 data before are stored. In addition, the order of the stored data is that, starting from the pointer indicating the latest data, 7 data are cyclically stored in the left direction as shown in the figure. Can be taken out.

【0090】また、7データのバッファがある場合に
は、ブロック数を4画素とするとR側のバッファでの相
対シフト量は3画素分可能となる。これと同様なバッフ
ァをR側にも設けることができるので、L、Rの画像情
報を蓄えて、ブロックを作成することができる。次に上
記バッファをブロック形成が可能か否かチェックする
(ステップS5)。これは、図35の最上段や2、3段
目のようにまだ画像情報が充分にバッファに蓄えられて
いないかどうかを判断し、まだバッファに必要なデータ
が存在しないときは、以後の処理に進まず、ステップS
2に戻って、画像出力が出力され画像情報をバッファに
入力する作業に戻る。
Further, if there is a buffer of 7 data and the number of blocks is 4 pixels, the relative shift amount in the R side buffer can be 3 pixels. Since a buffer similar to this can be provided on the R side as well, it is possible to store L and R image information and create a block. Next, it is checked whether the buffer can be formed into blocks (step S5). This is to determine whether the image information is not sufficiently stored in the buffer as in the top row, the second and third rows of FIG. 35, and if the buffer does not have the necessary data, the subsequent processing is performed. Not proceed to step S
Returning to step 2, the image output is output and the process of inputting the image information into the buffer is returned to.

【0091】また、バッファがブロックを作成するのに
充分である場合には、nが偶数か奇数かを判断して(ス
テップS6)、交互にステップS7およびS8の作業
か、ステップS10およびS11の作業を行わせる。ブ
ロックずれ検出(ステップS7)およびブロック信頼性
検出(ステップS8)は、左右のブロックが作成されて
始めて演算することができるので、L、Rが読み出され
た後の方が効率がよい。
If the buffer is sufficient to create a block, it is judged whether n is an even number or an odd number (step S6), and the steps S7 and S8 are performed alternately, or steps S10 and S11 are performed. Get the work done. Block misregistration detection (step S7) and block reliability detection (step S8) can be calculated only after the left and right blocks have been created, and are therefore more efficient after L and R have been read.

【0092】ステップS10およびS11の作業は、ス
テップS7およびS8の作業の結果を使用して行うの
で、手順としてはL、Rのブロック作成可能になった
後、ステップS7およびS8でブロックずれ量および信
頼性を演算し、そしてウィンドウ評価(ステップS1
0)し、相対シフト量を更新する(ステップS11)と
いう手順を踏むことによって、演算量を分散でき、しか
も2データ(L、Rのペア)を読み込む毎に左右1ブロ
ック処理できるので、次のブロックは、L、Rが共に1
画素となりブロックを処理することによって、相対シフ
ト量が変化しなければ、バッファサイズに変動はない。
Since the work of steps S10 and S11 is performed using the results of the work of steps S7 and S8, the procedure is that after the L and R blocks can be created, the block shift amount and the block shift amount are calculated in steps S7 and S8. The reliability is calculated, and the window evaluation (step S1
0), and the relative shift amount is updated (step S11), the calculation amount can be dispersed, and one block can be processed left and right each time 2 data (a pair of L and R) is read. Both L and R of the block are 1
If the relative shift amount does not change by processing the block that becomes a pixel, the buffer size does not change.

【0093】また、もっと処理が複雑で1サイクル中に
ステップS7、S8の処理またはステップS10および
S11の処理を行うことができない場合には、このよう
に2サイクルでステップS7、S8、S10およびS1
1の処理が終了するようにする代わりに、4サイクルで
ステップS7、S8、S10およびS11の処理が終了
するようにすれば、1サイクルあたりの演算量を減少さ
せることができる。この場合、サイクルが進むにつれて
バッファ量が増大しないようにするために、左右ブロッ
クの選択を、図36に示すように2サイクル1処理から
4サイクル1処理とすることによって、入力されるデー
タの数と不要になるデータの数が一致するようになるの
で、バッファ量は増大しない。
Further, when the processing is more complicated and the processing of steps S7 and S8 or the processing of steps S10 and S11 cannot be performed in one cycle, the steps S7, S8, S10 and S1 are thus performed in two cycles.
If the processes of steps S7, S8, S10 and S11 are completed in four cycles instead of ending the process of one, the amount of calculation per cycle can be reduced. In this case, in order to prevent the buffer amount from increasing as the cycle progresses, by selecting the left and right blocks from 2 cycle 1 processing to 4 cycle 1 processing as shown in FIG. Since the number of unnecessary data becomes the same, the buffer amount does not increase.

【0094】次に、前述したようにnをインクリメント
し(ステップS9)、以上の作業を画像出力終了まで行
う(ステップS12)。但し、厳密には、画像出力が終
了してもバッファに情報が残っているのでバッファの情
報がなくなるまで処理を続けてもよい。以上の読み出し
動作で被写体抽出および被写体像ずれ量が検出されたの
で、残りの演算等を行う(ステップS13)。ここで、
本発明における主要な処理ステップであるステップS
7、S8、S10およびS11について詳細に説明す
る。まず、前提となる変数を以下に列挙する。
Next, as described above, n is incremented (step S9), and the above work is performed until the image output is completed (step S12). However, strictly speaking, since the information remains in the buffer even after the image output is completed, the processing may be continued until the information in the buffer is exhausted. Since the subject extraction and the subject image shift amount have been detected by the above read operation, the remaining calculation and the like are performed (step S13). here,
Step S, which is the main processing step in the present invention
7, S8, S10 and S11 will be described in detail. First, the prerequisite variables are listed below.

【0095】S:相対シフト量 BL1 〜BL4 :L側ブロック BR1 〜BR4 :R側ブロック 例えば、相対シフト量S=0の時は、2サイクル処理の
場合、BL1 〜BL4はL1 〜L4 、BR1 〜BR4
1 〜R4 に対応し、次の処理ではBL1 〜BL4 はL
2 〜L5 に対応しBR1 〜BR4 はR2 〜R3 に対応す
る。また相対シフト量S=1の時は、BL1 〜BL4
m 〜Lm+3 に対応する場合、BR1 〜BR4 はRm+1
〜Rm+4 に対応する。実際には、図35のようなバッフ
ァに対して直接操作するのでBL1 〜BL4 、BR1
BR4 等の変数のための記憶領域は必要ではない。
S: Relative shift amount BL 1 to BL 4 : L side block BR 1 to BR 4 : R side block For example, when the relative shift amount S = 0, in the case of two cycle processing, BL 1 to BL 4 are L 1 ~L 4, BR 1 ~BR 4 corresponds to R 1 to R 4, the BL 1 to BL 4, at the next processing L
2 to L 5 and BR 1 to BR 4 correspond to R 2 to R 3 . Further, when the relative shift amount S = 1, when BL 1 to BL 4 correspond to L m to L m + 3 , BR 1 to BR 4 are R m + 1.
Corresponds to ~ Rm + 4 . Actually, since the buffer shown in FIG. 35 is directly operated, BL 1 to BL 4 and BR 1 to
No storage is needed for variables such as BR 4 .

【0096】L:ブロックずれ量の算出に使用する変数
であり、L側とR側の差の総和 C:ブロックずれ量の算出に使用する変数であり、画像
間の傾きの総和 d:算出したブロックずれ量 CH1 〜CH3 :L側、R側の画像間の傾きの大きい方 CL1 〜CL3 :傾きの小さい方 まず、ブロックずれ量検出とブロック信頼性検出につい
て、図37および図38を参照して説明する。ブロック
ずれ量の算出は、図6で説明した方法で行うが、左右4
画素ずつ使用した場合、L側とR側の差は4部分あり、
画素間の傾きはL側3部分、R側3部分の6部分となる
ので、整合性をとるため画素間の傾きは中央の2画素の
ところを2倍することにより、中央部を重点的として8
部分とすることでL側とR側の差を2倍して8部分相当
とし、整合をとっている。
L: variable used for calculation of block shift amount, sum of difference between L side and R side C: variable used for calculation of block shift amount, total sum of inclination between images d: calculated block displacement amount CH 1 ~CH 3: L-side, the larger the slope between R side of the image CL 1 -CL 3: smaller inclination first, the block shift amount detection and the block reliability detection, 37 and 38 Will be described with reference to. The block shift amount is calculated by the method described with reference to FIG.
When using pixels pixel by pixel, there are four differences between the L and R sides,
Since the inclination between pixels is 6 on the L side and 3 on the R side, the inclination between the pixels is doubled at the central two pixels for consistency, and the central portion is focused. 8
By forming the parts, the difference between the L side and the R side is doubled to be equivalent to 8 parts, and the matching is achieved.

【0097】まず、図37のブロックずれ検出では、L
側とR側の画素の出力差を4つの部分で求め総和をとる
(ステップS21)。次に、画素間の傾きの算出で中央
部に相当するBL3 −BL2 およびBR3 −BR2 を2
倍して総和をとる(ステップS22およびS23)。こ
れらステップS22およびS23より求めたLおよびC
より、ブロックずれ量を算出する(ステップS24)。
この実施の形態では、L側とR側の差と画素間の傾きの
総和を求めて、ブロックずれ量を求めているが各画素に
ついて個々に求めてその平均を使用してもよい。
First, in the block shift detection of FIG. 37, L
The output difference between the pixels on the right side and the pixel on the R side is calculated in four parts and summed (step S21). Next, in calculating the inclination between pixels, BL 3 −BL 2 and BR 3 −BR 2 corresponding to the central portion are calculated as 2
It is multiplied and the sum is obtained (steps S22 and S23). L and C obtained from these steps S22 and S23
Then, the block shift amount is calculated (step S24).
In this embodiment, the difference between the L side and the R side and the sum of the inclinations between the pixels are obtained to obtain the block shift amount. However, it is also possible to obtain each block individually and use the average thereof.

【0098】次に、図38のブロック信頼性検出につい
て説明する。この実施の形態では図7の左右の傾きの比
較および図9の傾きの連続性を利用する。まず、左右の
ブロックの4画素ずつのデータより左右3個ずつの傾き
を求め、傾きの大きいほうをCH1 〜CH3 に、傾きの
小さいほうをCL1 〜CL3 に代入する(ステップS3
1、S32、S33)。次に、(CL)/(CH)を算
出する(ステップS34)。左右の傾きの絶対値が近い
場合は、(CL)/(CH)は1に近い値となり、異な
る場合は0に近付く。よって、(CL)/(CH)の大
小が信頼性の大小となり、CL1 〜CL3 、CH1 〜C
3 で0になったり、符号が異なったりする場合には、
連続性が悪いので信頼性Hを0とする。
Next, the block reliability detection of FIG. 38 will be described. In this embodiment, the comparison of the left and right inclinations in FIG. 7 and the continuity of the inclinations in FIG. 9 are used. First, determine the left and right tilt of the three by three lateral than by 4 pixel data of the block, the more the inclination large CH 1 to CH 3, substituted inclination of smaller to CL 1 -CL 3 (step S3
1, S32, S33). Next, (CL) / (CH) is calculated (step S34). When the absolute values of the left and right inclinations are close to each other, (CL) / (CH) becomes a value close to 1, and when they are different from each other, it approaches 0. Therefore, the magnitude of (CL) / (CH) becomes the magnitude of reliability, and CL 1 to CL 3 and CH 1 to C
If H 3 becomes 0 or the sign is different,
Since the continuity is poor, the reliability H is set to 0.

【0099】よって、信頼性が高い場合は、H={(C
1 )/(CH1 )}+{(CL2)/(CH2 )}+
{(CL3 )/(CH3 )}は3に近付き、低い場合は
0となる。上述した図37および図38の処理で求めら
れたブロックずれ量dと信頼性Hを使用してウィンドウ
を抽出し、ステップS10のウィンドウ評価とステップ
S11の相対シフト量の更新について説明する。
Therefore, when the reliability is high, H = {(C
L 1 ) / (CH 1 )} + {(CL 2 ) / (CH 2 )} +
{(CL 3 ) / (CH 3 )} approaches 3 and becomes 0 when it is low. A window is extracted using the block shift amount d and the reliability H obtained in the processing of FIGS. 37 and 38, and the window evaluation in step S10 and the relative shift amount update in step S11 will be described.

【0100】まず、使用する変数について説明する。S
dおよびSHは、ブロックずれ量dおよび信頼性Hの結
果により加重平均によりウィンドウずれ量を算出するた
めの変数、d0 は候補になっている候補ウィンドウの算
出されたウィンドウずれ量、Kは、被写界深度に相当
し、算出されたブロックずれ量と候補ウィンドウずれ量
とを比較してKの範囲かどうかを検討する。Wはウィン
ドウの長さを表し、WLはそのウィンドウを採用するか
どうかを決定する定数、ddは採用ウィンドウのウィン
ドウずれ量、そしてssは採用ウィンドウの相対シフト
量である。Nは相対シフト量の最大値であり、最至近距
離に対応する。
First, the variables used will be described. S
d and SH are variables for calculating the window shift amount by the weighted average based on the results of the block shift amount d and the reliability H, d 0 is the calculated window shift amount of the candidate candidate window, and K is Corresponding to the depth of field, the calculated block shift amount and the candidate window shift amount are compared with each other to determine whether or not it is within the K range. W represents the length of the window, WL is a constant that determines whether or not the window is adopted, dd is the window shift amount of the adopted window, and ss is the relative shift amount of the adopted window. N is the maximum value of the relative shift amount and corresponds to the closest distance.

【0101】図39のウィンドウ評価検出について説明
する。このフローチャートは、図22の例に基づいて作
成した。まず、新たに算出されたブロックずれが現在の
候補ウィンドウに対してどのような値かを判断するた
め、候補ウィンドウを算出する(ステップS41)。ス
テップS41では、信頼性Hの積算値SHとブロックず
れ量の積算値sdとで加重平均して、候補ウィンドウず
れ量doを算出する。次に、信頼性をチェックする(ス
テップS42)。ステップS42で、信頼性が高いと判
定された場合、新たに算出されたブロックずれ量dとそ
の時の相対シフト量sが、候補ウィンドウずれ量doに
対して、所定範囲Kに対して範囲内か範囲外かを判断す
る(ステップS43)。
The window evaluation detection of FIG. 39 will be described. This flowchart was created based on the example of FIG. First, a candidate window is calculated in order to determine what value the newly calculated block shift is with respect to the current candidate window (step S41). In step S41, the candidate window deviation amount do is calculated by weighted averaging the reliability H integrated value SH and the block deviation amount integrated value sd. Next, the reliability is checked (step S42). If it is determined in step S42 that the reliability is high, whether the newly calculated block shift amount d and the relative shift amount s at that time are within the predetermined range K with respect to the candidate window shift amount do. It is determined whether it is out of the range (step S43).

【0102】ステップS43において、範囲内と判定さ
れた場合は候補ウィンドウの算出のための変数Sdおよ
びSHに加算され、ウィンドウの長さを表すwを増大さ
せる(ステップS44)。ステップ43において、範囲
外の場合は新たに候補ウィンドウを設定するためウィン
ドウの長さを表すwをクリアしSd、SHに新たなブロ
ックずれ量dと信頼性Hを代入する(ステップS4
5)。ステップS42で信頼性が低い(小)と判定され
た場合は、同様に候補ウィンドウと比較し(ステップS
46)、範囲外の時は信頼性が少ないデータがたまたま
入力された可能性が高いのでこのデータは無視される。
If it is determined in step S43 that it is within the range, it is added to the variables Sd and SH for calculating the candidate window, and w representing the length of the window is increased (step S44). In step 43, if it is out of the range, w that represents the length of the window is cleared to set a new candidate window, and the new block shift amount d and reliability H are substituted into Sd and SH (step S4).
5). If it is determined in step S42 that the reliability is low (small), it is similarly compared with the candidate window (step S42).
46), when the data is out of the range, it is highly likely that the data with low reliability is accidentally input, so this data is ignored.

【0103】範囲内の時は信頼性は低いがブロックとし
ては連続している可能性が高いのでウィンドウの長さw
のみ増加させ、Sd、SHには算入しない(ステップS
47)。ここまでで判断された候補ウィンドウが主要被
写体として充分採用できるかどうかを判断し、信頼性は
候補ウィンドウの時点で充分に評価されているので主要
被写体として充分に足り得る大きさか否か判断するため
定数WLと比較する(ステップS48)。主要被写体と
判断される場合、主要被写体の像ずれ量ddに代入し、
そのときの相対シフト量をSSに代入する(ステップS
49)。 このSSは後述の相対シフト量を更新する範
囲のリミッタとする。よって、ウィンドウ評価を画像読
み出し終了まで繰り返して、最終的に残った像ずれ量d
dが主要被写体と考えられる信頼性および大きさを持っ
た被写体の中で最も近距離の被写体に対応する。
When the value is within the range, the reliability is low, but there is a high possibility that the blocks are continuous. Therefore, the window length w
Only Sd and SH are not included (step S
47). To judge whether or not the candidate window judged up to this point can be sufficiently adopted as a main subject, and to judge whether or not the reliability is sufficiently large as a main subject because the reliability has been sufficiently evaluated at the time of the candidate window. It is compared with the constant WL (step S48). If it is determined to be the main subject, substitute it for the image shift amount dd of the main subject,
The relative shift amount at that time is substituted into SS (step S
49). This SS is a limiter for the range in which the relative shift amount described below is updated. Therefore, the window evaluation is repeated until the image reading is completed, and the finally remaining image shift amount d
d corresponds to the closest object among the objects having reliability and size considered to be the main object.

【0104】次に、図40に示す相対シフト量の更新に
ついて説明する。まず、信頼性値Hについてチェックし
(ステップS51)、信頼性が低い場合は相対シフト量
を更新できないので、このルーチンは終了する。ステッ
プS51で信頼性が高い(大)と判定された場合は、ブ
ロックずれ量dをチェックして(ステップS52)、絶
対値dが1より大きい場合は相対シフト量Sを更新する
(ステップS53およびS54)。更新された相対シフ
ト量Sをチェックして(ステップS55)、以前に決定
している採用ウィンドウの決定時の相対シフト量SSよ
り小さいと判定される場合は、相対シフト量Sを相対シ
フト量SSより小さくならないように制限する(ステッ
プS56)。
Next, updating of the relative shift amount shown in FIG. 40 will be described. First, the reliability value H is checked (step S51). If the reliability is low, the relative shift amount cannot be updated, so this routine ends. If it is determined in step S51 that the reliability is high (large), the block shift amount d is checked (step S52), and if the absolute value d is greater than 1, the relative shift amount S is updated (step S53 and S54). The updated relative shift amount S is checked (step S55), and when it is determined that the relative shift amount SS is smaller than the relative shift amount SS at the time of determining the adoption window that has been determined previously, the relative shift amount S is set to the relative shift amount SS. It is restricted so that it does not become smaller (step S56).

【0105】また、ステップS55で、測距連動範囲の
0〜n(最至近距離の相対シフト量)より、大きいと判
定された場合にも相対シフト量Sの更新を制限する(ス
テップS57)。このようにすることにより不要な相対
シフト量の変動を防ぐ。つまりある一つのウィンドウが
採用され、これが採用ウィンドウとなりこのときの相対
シフト量SSが決定された後はそのウィンドウより近距
離のウィンドウは検出する必要がないからである。
Also, in step S55, the update of the relative shift amount S is restricted even when it is determined that it is larger than 0 to n (relative shift amount of the closest distance) in the distance measurement interlocking range (step S57). By doing so, unnecessary fluctuations in the relative shift amount are prevented. In other words, it is not necessary to detect a window that is closer than that window after a certain window is adopted and this becomes the adopted window and the relative shift amount SS at this time is determined.

【0106】このように図32のフローチャートのプロ
グラムをマイクロコンピュータ等を利用して実行するこ
とにより、画像出力の読み込みサイクルで主要被写体を
抽出演算することができ、低速のA/D変換器を使用し
たり、転送レートの低いCCD等の光電変換素子を使用
したりしても、そのサイクル中に像ずれ量の演算を行う
ことができるので、全体のスピードを速くすることがで
きる。また、この実施の形態では一定のバッファを備え
るだけで画像データ全体をRAM(ランダムアクセスメ
モリ)等の記憶領域に蓄える必要がなく、CCDの非破
壊読み出し等の必要もない。
By thus executing the program of the flowchart of FIG. 32 using a microcomputer or the like, the main subject can be extracted and calculated in the image output read cycle, and a low-speed A / D converter is used. However, even if a photoelectric conversion element such as a CCD having a low transfer rate is used, the image shift amount can be calculated during the cycle, so that the overall speed can be increased. Further, in this embodiment, it is not necessary to store the entire image data in a storage area such as a RAM (random access memory) only by providing a certain buffer, and it is not necessary to perform nondestructive reading of the CCD.

【0107】また、2つのエリアCCD等を使用した3
Dカメラについても、2つのエリアCCDのデータ全体
を記憶演算する必要がないので、出力される2つのエリ
アCCD出力より3次元被写体情報を本発明により算出
し、その3次元情報と2次元画像情報のみ記憶すること
により、3次元情報と2次元情報から3次元の画像情報
を再現するシステムを容易に実現することができる。
[0107] In addition, 3 using two area CCD
Also for the D camera, since it is not necessary to store and calculate the entire data of the two area CCDs, three-dimensional object information is calculated by the present invention from the output two area CCD outputs, and the three-dimensional information and the two-dimensional image information are calculated. By storing only the three-dimensional information and the two-dimensional information, a system that reproduces three-dimensional image information can be easily realized.

【0108】[0108]

【発明の効果】以上述べたように、本発明によれば、広
い被写界視野に3次元的に被写体が存在する場合にも、
正確に且つ高速に測距視野内の主要な被写体を抽出し、
その主要被写体部分の像ずれ量または距離を検出するこ
とを可能とする測距装置、撮影装置および背景処理装置
を提供することができる。
As described above, according to the present invention, even when a subject exists three-dimensionally in a wide field of view,
Accurately and quickly extract the main subject in the ranging field of view,
It is possible to provide a distance measuring device, a photographing device, and a background processing device capable of detecting the image shift amount or the distance of the main subject portion.

【0109】請求項1の測距装置は、主要被写体検出部
で一対の画像出力を順次処理して主要被写体の距離また
は像ずれ量を検出している。従来は測距視野を複数に分
割してその中で最も近い被写体の存在する測距視野の測
距結果にピントを合わせていたのに対し、この測距装置
では、主要被写体の像そのものを抽出し、その主要被写
体像の像ずれを検出しているので、正確に主要被写体を
捕捉し、それ以外の被写体情報を含まない主要被写体の
みの被写体情報により像ずれを検出することができ、測
距誤差の小さい測距を行うことができる。
According to another aspect of the distance measuring apparatus of the present invention, the main subject detecting section sequentially processes the pair of image outputs to detect the distance or image shift amount of the main subject. In the past, the distance measuring field was divided into multiple parts, and the focus was on the distance measuring result of the distance measuring field in which the closest subject exists, whereas this distance measuring device extracts the image of the main subject itself. However, since the image shift of the main subject image is detected, the main subject can be accurately captured, and the image shift can be detected by the subject information of only the main subject that does not include other subject information. Distance measurement with a small error can be performed.

【0110】請求項2の測距装置は、ブロック形成部で
ブロック化した画像情報を用いて、ブロックずれ検出部
でブロックずれを検出し且つ信頼性検出部で信頼性を検
出し、さらにウィンドウ評価部で、複数のブロックにわ
たって信頼性およびブロックずれを評価して、主要被写
体の像ずれ量を検出している。この測距装置では、複数
のブロックにわたって信頼性およびブロックずれを評価
して、像ずれを算出しており、信頼性による加重平均を
使用して情報に重み付けをすることも可能であるので、
誤差成分を排除した正確な測距を行うことができる。
According to another aspect of the distance measuring apparatus of the present invention, the block shift detecting unit detects the block shift and the reliability detecting unit detects the reliability using the image information blocked by the block forming unit, and further the window evaluation is performed. The unit evaluates reliability and block shift over a plurality of blocks to detect the image shift amount of the main subject. In this range finder, the reliability and the block shift are evaluated over a plurality of blocks, the image shift is calculated, and it is also possible to weight the information by using the weighted average by the reliability.
It is possible to perform accurate distance measurement without the error component.

【0111】請求項3の測距装置は、ウィンドウ評価部
でブロックの連続性を評価しているので、主要被写体の
みを捕捉することができ、撮影者がわざわざ主要被写体
を指示する必要もなく、簡単に主要被写体にピントを合
わせることができる。請求項4の測距装置は、画像情報
の読み出しサイクル中にマイクロコンピュータ等を使用
して演算する。この測距装置は、マイクロコンピュータ
等を用いて容易に実現することができ、また演算を読み
出しサイクル中に行うことができる方式であるので、測
距演算のための演算時間を別途に確保する必要がなく、
また全画素データを記憶素子等に記憶保持しておく必要
がない。
In the distance measuring apparatus according to the third aspect, since the continuity of the blocks is evaluated by the window evaluation unit, only the main subject can be captured, and the photographer does not need to purposely designate the main subject. You can easily focus on the main subject. In the distance measuring device according to the fourth aspect, the calculation is performed using a microcomputer or the like during the read cycle of the image information. This distance measuring device can be easily realized by using a microcomputer or the like, and the calculation can be performed during the reading cycle. Therefore, it is necessary to separately secure the calculation time for the distance measuring calculation. Without
Further, it is not necessary to store and hold all pixel data in a storage element or the like.

【0112】請求項5の測距装置は、順次処理されてい
る演算結果を用いて一対の画像情報ブロックの相対シフ
ト量を更新することにより、該相対シフト量を主要被写
体の像ずれ量に近い値に順次近付けて行くことができる
ので、相対シフト量が主要被写体の像ずれ量に近い値と
なり、正確に測距演算を行うことができる。
According to the fifth aspect of the present invention, the distance measuring device updates the relative shift amount of the pair of image information blocks by using the sequentially processed calculation result so that the relative shift amount is close to the image shift amount of the main subject. Since the values can be gradually approached, the relative shift amount becomes a value close to the image shift amount of the main subject, and the distance measurement calculation can be accurately performed.

【0113】請求項6の測距装置は、相対的にシフトさ
れたブロックを複数の異なる相対シフト量について比較
演算することにより、複数のブロックずれ量または複数
の信頼性を求め、その結果を用いて基準となる相対シフ
ト量を更新するので、より正確に且つ容易に相対シフト
量を決定することができる。例えば、基準相対シフト量
Sに対して、S+1とS−1とで、ブロックずれおよび
ブロック信頼性を求めれば、前記基準相対シフト量Sを
増加させる必要がある場合には、S−1よりもS+1の
ほうが信頼性が高くなり、ブロックずれ量も減少する。
このようにして容易に相対シフト量を適切に更新するこ
とができる。
According to a sixth aspect of the distance measuring apparatus, the relatively shifted blocks are compared and calculated for a plurality of different relative shift amounts to obtain a plurality of block shift amounts or a plurality of reliability, and the results are used. Since the relative shift amount serving as a reference is updated, the relative shift amount can be determined more accurately and easily. For example, if the block shift and the block reliability are calculated for S + 1 and S-1 with respect to the reference relative shift amount S, and if the reference relative shift amount S needs to be increased, it is more than S-1. The reliability of S + 1 is higher and the amount of block shift is also reduced.
In this way, the relative shift amount can be easily updated appropriately.

【0114】請求項7の撮影装置は、複数のウィンドウ
のブロックずれより、像ずれ量または被写体距離を求
め、主要被写体が全て一定の距離に存在しておらず、あ
る距離範囲内に分布していても、撮影光学系の絞り値ま
たは焦点距離を設定することにより、主要被写体全てを
被写界深度内に入れることができる。請求項8の撮影装
置は、主要被写体検出部で主要被写体を抽出し、その主
要被写体に対応する測距視野範囲を表示することによ
り、撮影者に検出した主要被写体を知らせることができ
るので、撮影装置側と撮影者との認識のずれが明確とな
り、誤測距による撮影を未然に防ぐことができる。
According to the seventh aspect of the present invention, the image shift amount or the subject distance is obtained from the block shifts of a plurality of windows, and the main subjects are not all present at a constant distance, but are distributed within a certain distance range. However, by setting the aperture value or the focal length of the photographing optical system, it is possible to bring all the main subjects into the depth of field. The photographing apparatus according to claim 8 can notify the photographer of the detected main subject by extracting the main subject with the main subject detection unit and displaying the range-finding visual field range corresponding to the main subject. The difference in recognition between the device side and the photographer becomes clear, and photographing due to erroneous distance measurement can be prevented.

【0115】請求項9の背景処理装置は、主要被写体を
抽出してその距離を測距することと、2枚のエリアCC
D等を用いた3Dカメラまたはコントラスト法を用いた
ビデオカメラ等の撮影装置との組合せによって、撮影画
面内の全ての部分で部分毎の測距情報を得ることがで
き、被写体像を主要被写体(と同一)の距離の被写体
と、その他の被写体とに分別することができ、主要被写
体と同一距離以外の部分の映像信号を加工することで、
主要被写体以外の被写体像を電気的な処理によりぼかし
た映像にすることができる。この背景処理装置では、主
要被写体を強調するようなポートレート効果を得ること
あるいは主要被写体のみを全体画像から切り出すことが
可能となり、撮影後の編集等の加工を容易に行うことが
できる。
The background processing device according to claim 9 extracts the main subject and measures the distance between the main subject and the two areas CC.
By combining with a photographing device such as a 3D camera using D or the like or a video camera using the contrast method, it is possible to obtain distance measurement information for each part in all parts in the photographing screen, and to obtain a subject image as a main subject ( It is possible to separate into a subject of the same distance) and other subjects, and by processing the video signal of the portion other than the same distance as the main subject,
A subject image other than the main subject can be made into a blurred image by electrical processing. With this background processing device, it is possible to obtain a portrait effect that emphasizes the main subject or to cut out only the main subject from the entire image, and it is possible to easily perform processing such as editing after shooting.

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

【図1】本発明の第1の実施の形態に係る測距装置の基
本的な構成を模式的に示すブロック図である。
FIG. 1 is a block diagram schematically showing a basic configuration of a distance measuring device according to a first embodiment of the present invention.

【図2】図1の測距装置における主として測距光学系の
構成を示す模式図である。
FIG. 2 is a schematic diagram mainly showing a configuration of a distance measuring optical system in the distance measuring device of FIG.

【図3】図1の測距装置における主要被写体検出部の詳
細な構成を模式的に示すブロック図である。
FIG. 3 is a block diagram schematically showing a detailed configuration of a main subject detection unit in the distance measuring device of FIG.

【図4】図1の測距装置におけるブロック形成部の詳細
な構成を模式的に示すブロック図である。
FIG. 4 is a block diagram schematically showing a detailed configuration of a block forming unit in the distance measuring device of FIG.

【図5】図1の測距装置の動作を説明するための画像情
報出力の一例を示す図である。
5 is a diagram showing an example of image information output for explaining the operation of the distance measuring device in FIG.

【図6】図1の測距装置の動作を説明するためのブロッ
クずれ検出演算の一例を示す図である。
6 is a diagram showing an example of a block shift detection calculation for explaining the operation of the range finder of FIG.

【図7】図1の測距装置の動作を説明するための信頼性
に寄与する左右の傾き特性の一例を示す図である。
7 is a diagram showing an example of left and right tilt characteristics contributing to reliability for explaining the operation of the distance measuring device of FIG.

【図8】図1の測距装置の動作を説明するための信頼性
に寄与するコントラスト特性の一例を示す図である。
8 is a diagram showing an example of a contrast characteristic that contributes to reliability for explaining the operation of the distance measuring device in FIG.

【図9】図1の測距装置の動作を説明するための信頼性
に寄与する傾きの連続性特性の一例を示す図である。
9 is a diagram showing an example of a continuity characteristic of inclination contributing to reliability for explaining the operation of the distance measuring device of FIG.

【図10】図1の測距装置の動作を説明するためのカメ
ラのファインダ視野と測距視野との関係の一例を示す図
である。
10 is a diagram showing an example of a relationship between a viewfinder field of view and a range finding field of view for explaining the operation of the range finding device of FIG.

【図11】図1の測距装置の動作を説明するための被写
体の一例と測距視野との関係を示す図である。
FIG. 11 is a diagram showing a relationship between an example of a subject and a distance measuring field for explaining the operation of the distance measuring device in FIG. 1.

【図12】図1の測距装置の動作を説明するための被写
体の他の一例と測距視野との関係を示す図である。
FIG. 12 is a diagram showing the relationship between another example of a subject and a distance measuring field for explaining the operation of the distance measuring device in FIG.

【図13】図1の測距装置の動作を説明するための被写
体のその他の一例と測距視野との関係を示す図である。
13 is a diagram showing the relationship between another example of a subject and a distance measuring field for explaining the operation of the distance measuring device in FIG.

【図14】図1の測距装置の動作を説明するための被写
体のさらにその他の一例と測距視野との関係を示す図で
ある。
FIG. 14 is a diagram showing the relationship between another example of a subject and a distance measuring field for explaining the operation of the distance measuring device in FIG. 1.

【図15】図1の測距装置の動作を説明するための被写
体のさらなる一例と測距視野との関係を示す図である。
15 is a diagram showing a relationship between a further example of a subject and a distance measuring field for explaining the operation of the distance measuring device in FIG.

【図16】図1の測距装置の動作を説明するための被写
体のさらなる他の一例と測距視野との関係を示す図であ
る。
16 is a diagram showing the relationship between still another example of a subject and a distance measuring field for explaining the operation of the distance measuring device in FIG. 1. FIG.

【図17】図1の測距装置の動作を説明するための被写
体のさらなるその他の一例と測距視野との関係を示す図
である。
17 is a diagram showing the relationship between another example of a subject and a distance measuring field for explaining the operation of the distance measuring device in FIG. 1. FIG.

【図18】図1の測距装置の動作を説明するための図1
7の被写体を分解して示す図である。
18 is a view for explaining the operation of the distance measuring device of FIG.
It is a figure which decomposes | disassembles and shows the to-be-photographed object.

【図19】図1の測距装置の動作を説明するための図1
7の各被写体の測距結果を示す図である。
19 is a view for explaining the operation of the distance measuring device of FIG.
It is a figure which shows the ranging result of each to-be-photographed object.

【図20】図1の測距装置の動作を説明するための図1
7の各被写体の不要部分を除去した測距結果を示す図で
ある。
20 is a view for explaining the operation of the distance measuring device of FIG.
It is a figure which shows the ranging result which removed the unnecessary part of each to-be-photographed object.

【図21】図1の測距装置におけるウィンドウ評価部の
詳細な構成を模式的に示すブロック図である。
FIG. 21 is a block diagram schematically showing a detailed configuration of a window evaluation unit in the distance measuring device of FIG.

【図22】図1の測距装置における信頼性とブロックず
れ量と信頼性との関係を説明するための図である。
22 is a diagram for explaining the relationship between the reliability, the block shift amount, and the reliability in the distance measuring device of FIG.

【図23】図1の測距装置におけるウィンドウ評価部の
他の詳細な構成を模式的に示すブロック図である。
FIG. 23 is a block diagram schematically showing another detailed configuration of the window evaluation section in the distance measuring device of FIG.

【図24】図1の測距装置における演算時間と、従来の
演算時間との関係を説明するための図である。
24 is a diagram for explaining the relationship between the calculation time and the conventional calculation time in the distance measuring device of FIG.

【図25】図1の測距装置におけるブロックずれ検出を
説明するための図である。
FIG. 25 is a diagram for explaining block shift detection in the distance measuring device of FIG. 1.

【図26】図1の測距装置における相対シフトの一例を
説明するための図である。
FIG. 26 is a diagram for explaining an example of relative shift in the distance measuring device in FIG. 1.

【図27】図1の測距装置における相対シフトの他の一
例を説明するための図である。
27 is a diagram for explaining another example of relative shift in the distance measuring device of FIG. 1. FIG.

【図28】図1の測距装置における相対シフトのその他
の一例を説明するための図である。
28 is a diagram for explaining another example of the relative shift in the distance measuring device in FIG.

【図29】図1の測距装置における測距原理の詳細を説
明するための図である。
FIG. 29 is a diagram for explaining details of a distance measuring principle in the distance measuring device of FIG. 1.

【図30】図1の測距装置における測距原理の詳細を説
明するための図である。
FIG. 30 is a diagram for explaining details of a distance measuring principle in the distance measuring device of FIG. 1.

【図31】図1の測距装置における測距原理の詳細を説
明するための図である。
FIG. 31 is a diagram for explaining details of a distance measuring principle in the distance measuring device of FIG. 1.

【図32】図1の測距装置における主要被写体検出部の
他の詳細な構成を模式的に示すブロック図である。
32 is a block diagram schematically showing another detailed configuration of the main subject detection unit in the range finder of FIG. 1. FIG.

【図33】図1の測距装置における測距原理の詳細を説
明するための図である。
FIG. 33 is a diagram for explaining details of a distance measuring principle in the distance measuring device of FIG. 1.

【図34】図1の測距装置における測距動作を詳細に説
明するためのフローチャートである。
34 is a flow chart for explaining a distance measuring operation in the distance measuring device of FIG. 1 in detail.

【図35】図1の測距装置における測距動作を詳細に説
明するための模式図である。
FIG. 35 is a schematic diagram for explaining in detail the distance measuring operation in the distance measuring device of FIG. 1.

【図36】図1の測距装置における測距動作を詳細に説
明するための模式図である。
FIG. 36 is a schematic diagram for explaining in detail the distance measuring operation in the distance measuring device of FIG. 1.

【図37】図1の測距装置におけるブロックずれ検出を
詳細に説明するためのフローチャートである。
37 is a flow chart for explaining in detail block shift detection in the distance measuring device of FIG. 1. FIG.

【図38】図1の測距装置におけるブロック信頼性検出
を詳細に説明するためのフローチャートである。
38 is a flowchart for explaining block reliability detection in the range finder of FIG. 1 in detail.

【図39】図1の測距装置におけるウィンドウ評価検出
を詳細に説明するためのフローチャートである。
39 is a flow chart for explaining window evaluation detection in the range finder of FIG. 1 in detail.

【図40】図1の測距装置における相対シフト量の更新
を詳細に説明するためのフローチャートである。
FIG. 40 is a flowchart for explaining in detail the update of the relative shift amount in the distance measuring device of FIG. 1.

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

1 画像検出部 1L,1R 光電変換素子列 2 主要被写体検出部 3L,3R 測距光学系 21 ブロック形成部 22 ブロックずれ検出部 23 信頼性検出部 24 ウィンドウ評価部 25,51 A/D(アナログ−ディジタル)変換器 26,27 バッファ 28 ブロック選択部 31 連続性チェック部 32 ブロックカウンタ 33 ウィンドウ演算部 34 候補ウィンドウずれ量格納部 35 採用ウィンドウずれ量格納部 41 ローパスフィルタ 42 アナログゲート 43 レベル判定部 52 CPU(中央処理部) DESCRIPTION OF SYMBOLS 1 Image detection section 1L, 1R Photoelectric conversion element array 2 Main subject detection section 3L, 3R Distance measurement optical system 21 Block formation section 22 Block deviation detection section 23 Reliability detection section 24 Window evaluation section 25, 51 A / D (analog- Digital) converter 26, 27 buffer 28 block selection unit 31 continuity check unit 32 block counter 33 window calculation unit 34 candidate window shift amount storage unit 35 adopted window shift amount storage unit 41 low-pass filter 42 analog gate 43 level determination unit 52 CPU (Central processing unit)

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 基線長を存して配設される左右一対の測
距光学系と、 前記一対の測距光学系により形成される被写体光学像を
それぞれ光電変換する左右一対の光電変換素子列を有
し、これら一対の光電変換素子列で光電変換される一対
の画像情報を、左右の各光電変換素子列の端部より順次
出力する画像情報検出部と、 前記画像情報検出部からの左右一対の画像情報出力を順
次処理して主要被写体を検出し、主要被写体の像ずれ量
を検出する主要被写体検出部と、を具備することを特徴
とする測距装置。
1. A pair of left and right distance-measuring optical systems arranged with a base line length, and a pair of left and right photoelectric conversion element arrays for photoelectrically converting a subject optical image formed by the pair of distance-measuring optical systems, respectively. And a pair of image information photoelectrically converted by the pair of photoelectric conversion element rows, an image information detection unit that sequentially outputs from the end of each of the left and right photoelectric conversion element rows, and the left and right from the image information detection unit. A distance measuring device, comprising: a main subject detection unit that sequentially processes a pair of image information outputs to detect a main subject and detects an image shift amount of the main subject.
【請求項2】 前記主要被写体検出部は、 与えられる一対の画像情報をそれぞれ複数のブロックに
分割するとともに、該一対の画像情報ブロック列を相対
的にシフト可能なブロック形成部と、 前記ブロック形成部により相対的にシフトされた前記一
対の画像情報ブロックのブロックずれを検出するブロッ
クずれ検出部と、 前記ブロック形成部から出力される前記一対の画像情報
ブロックの信頼性評価情報を検出する信頼性検出部と、 前記ブロックずれ検出部および前記信頼性検出部の出力
より複数の画像情報ブロックにわたって前記一対の画像
情報の相対的なブロックずれおよび信頼性を評価して、
前記一対の画像情報における主要被写体の像ずれおよび
該主要被写体までの距離の少なくとも一方を検出するウ
ィンドウ評価部とを含むことを特徴とする請求項1に記
載の測距装置。
2. The main subject detecting section divides a pair of image information given thereto into a plurality of blocks, respectively, and a block forming section capable of relatively shifting the pair of image information block rows, and the block forming section. A block shift detection unit that detects a block shift of the pair of image information blocks relatively shifted by a unit, and a reliability that detects reliability evaluation information of the pair of image information blocks output from the block formation unit. A detection unit, by evaluating the relative block shift and reliability of the pair of image information over a plurality of image information blocks from the output of the block shift detection unit and the reliability detection unit,
The distance measuring apparatus according to claim 1, further comprising a window evaluation unit that detects at least one of an image shift of a main subject and a distance to the main subject in the pair of image information.
【請求項3】 前記ウィンドウ評価部は、与えられた相
対シフト量およびブロック信頼性評価情報に基づき、所
定範囲の被写体距離内にある複数のブロックを連続した
ブロックとして検出し、所定長さで連続する連続ブロッ
クのうち最も近距離に対応する連続ブロックを検出する
ことによって、前記主要被写体を検出する手段を含むこ
とを特徴とする請求項2に記載の測距装置。
3. The window evaluation unit detects a plurality of blocks within an object distance within a predetermined range as continuous blocks based on a given relative shift amount and block reliability evaluation information, and continuously detects the blocks with a predetermined length. 3. The distance measuring apparatus according to claim 2, further comprising means for detecting the main subject by detecting a continuous block corresponding to the shortest distance among the continuous blocks.
【請求項4】前記主要被写体検出部は、前記画像情報検
出部からの画像読み出しサイクル中に主要被写体および
その像ずれ量の検出のための演算処理を行うマイクロコ
ンピュータを含むことを特徴とする請求項1〜3のいず
れか1項に記載の測距装置。
4. The main subject detecting section includes a microcomputer for performing arithmetic processing for detecting a main subject and an image shift amount thereof during an image reading cycle from the image information detecting section. Item 7. The distance measuring device according to any one of items 1 to 3.
【請求項5】 基線長を存して配設される左右一対の測
距光学系と、 前記一対の測距光学系により形成される被写体光学像を
それぞれ光電変換する左右一対の光電変換素子列と、 前記一対の光電変換素子列より出力される左右一対の画
像情報をそれぞれ複数のブロックに分割するブロック形
成部と、 前記ブロック形成部で形成される一対の画像情報ブロッ
クを相対的に所定量シフトする相対シフト手段と、 前記相対シフト手段によりシフトされた前記一対の画像
情報ブロックを比較演算するとともに、この演算結果に
基づいて前記相対シフト手段を制御して前記相対シフト
量を逐次更新して、被写体の像ずれ量を検出する演算部
とを具備することを特徴とする測距装置。
5. A pair of left and right distance measuring optical systems arranged with a base line length, and a pair of left and right photoelectric conversion element arrays for photoelectrically converting a subject optical image formed by the pair of distance measuring optical systems, respectively. A block forming unit that divides a pair of left and right image information output from the pair of photoelectric conversion element columns into a plurality of blocks, respectively, and a pair of image information blocks formed by the block forming unit, which are relatively predetermined amounts. The relative shift means for shifting and the pair of image information blocks shifted by the relative shift means are compared and calculated, and the relative shift means is controlled based on the calculation result to sequentially update the relative shift amount. A distance measuring device comprising: a calculation unit that detects an image shift amount of a subject.
【請求項6】 前記演算部は、複数の異なる相対シフト
量にシフトされた画像情報ブロックの比較演算結果の比
較に基づいて、基準とする相対シフト量を更新する手段
を含むことを特徴とする請求項5に記載の測距装置。
6. The calculation unit includes means for updating a reference relative shift amount based on comparison of comparison calculation results of image information blocks shifted to a plurality of different relative shift amounts. The distance measuring device according to claim 5.
【請求項7】 請求項1に記載した測距装置を備え、且
つ前記主要被写体検出部により抽出される複数のウィン
ドウのブロックずれ量から算出される複数の距離が被写
界深度内に入るように絞り値および焦点距離の少なくと
も一方を設定する深度調整手段を含むことを特徴とする
撮影装置。
7. The distance measuring device according to claim 1 is provided, and a plurality of distances calculated from block shift amounts of a plurality of windows extracted by the main subject detection unit are within the depth of field. An image pickup apparatus comprising: a depth adjusting unit that sets at least one of an aperture value and a focal length.
【請求項8】 前記請求項1に記載した測距装置を備
え、且つ前記主要被写体検出部により抽出されるウィン
ドウに対応する測距視野範囲を表示する測距視野表示手
段を含むことを特徴とする撮影装置。
8. The distance measuring device according to claim 1, further comprising distance measuring visual field display means for displaying a distance measuring visual field range corresponding to a window extracted by the main subject detecting section. Shooting device.
【請求項9】 前記請求項1に記載した測距装置を備
え、且つ前記主要被写体検出部により抽出された主要被
写体とは異なる距離領域に相当する被写体の画像情報を
電気的にぼかす手段をさらに含むことを特徴とする背景
処理装置。
9. A means for electrically blurring image information of a subject corresponding to a distance area different from the main subject extracted by the main subject detecting unit, comprising the distance measuring device according to claim 1. A background processing device comprising:
JP15316996A 1996-05-24 1996-05-24 Ranging device, photographing device, and background processing device Expired - Fee Related JP4136012B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15316996A JP4136012B2 (en) 1996-05-24 1996-05-24 Ranging device, photographing device, and background processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15316996A JP4136012B2 (en) 1996-05-24 1996-05-24 Ranging device, photographing device, and background processing device

Publications (2)

Publication Number Publication Date
JPH09318870A true JPH09318870A (en) 1997-12-12
JP4136012B2 JP4136012B2 (en) 2008-08-20

Family

ID=15556569

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15316996A Expired - Fee Related JP4136012B2 (en) 1996-05-24 1996-05-24 Ranging device, photographing device, and background processing device

Country Status (1)

Country Link
JP (1) JP4136012B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003518630A (en) * 1999-12-28 2003-06-10 ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング Flow analysis method and analyzer
JP2006058421A (en) * 2004-08-18 2006-03-02 Samsung Techwin Co Ltd Method and apparatus for controlling automatic focusing
JP2006133515A (en) * 2004-11-05 2006-05-25 Olympus Corp Camera having focus detector
EP2019547A2 (en) 2007-07-18 2009-01-28 Ricoh Company, Ltd. Image pickup device and control method thereof
WO2009017138A1 (en) 2007-07-27 2009-02-05 Ricoh Company, Ltd. Image processor, image processing method, digital camera, and imaging apparatus
JP2014126803A (en) * 2012-12-27 2014-07-07 Canon Inc Image processing apparatus, image processing method, and image processing program
JP2014219299A (en) * 2013-05-09 2014-11-20 新日鐵住金株式会社 Method of processing profile measurement data on charge in blast furnace
JP2017003709A (en) * 2015-06-08 2017-01-05 キヤノン株式会社 Image-capturing device, light emission control method, and program
JPWO2015068470A1 (en) * 2013-11-06 2017-03-09 凸版印刷株式会社 3D shape measuring apparatus, 3D shape measuring method, and 3D shape measuring program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5124372B2 (en) 2008-07-10 2013-01-23 株式会社リコー Image processing apparatus, image processing method, and digital still camera

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003518630A (en) * 1999-12-28 2003-06-10 ローベルト ボツシユ ゲゼルシヤフト ミツト ベシユレンクテル ハフツング Flow analysis method and analyzer
JP2006058421A (en) * 2004-08-18 2006-03-02 Samsung Techwin Co Ltd Method and apparatus for controlling automatic focusing
JP4520792B2 (en) * 2004-08-18 2010-08-11 サムスン・デジタル・イメージング・カンパニー・リミテッド Automatic focus control method and automatic focus control device
JP2006133515A (en) * 2004-11-05 2006-05-25 Olympus Corp Camera having focus detector
EP2019547A2 (en) 2007-07-18 2009-01-28 Ricoh Company, Ltd. Image pickup device and control method thereof
US7978253B2 (en) 2007-07-18 2011-07-12 Ricoh Company, Ltd. Image pickup device using blur processing and control method thereof
WO2009017138A1 (en) 2007-07-27 2009-02-05 Ricoh Company, Ltd. Image processor, image processing method, digital camera, and imaging apparatus
US8194158B2 (en) 2007-07-27 2012-06-05 Ricoh Company, Ltd. Image processor, image processing method, digital camera, and imaging apparatus
JP2014126803A (en) * 2012-12-27 2014-07-07 Canon Inc Image processing apparatus, image processing method, and image processing program
JP2014219299A (en) * 2013-05-09 2014-11-20 新日鐵住金株式会社 Method of processing profile measurement data on charge in blast furnace
JPWO2015068470A1 (en) * 2013-11-06 2017-03-09 凸版印刷株式会社 3D shape measuring apparatus, 3D shape measuring method, and 3D shape measuring program
JP2017003709A (en) * 2015-06-08 2017-01-05 キヤノン株式会社 Image-capturing device, light emission control method, and program

Also Published As

Publication number Publication date
JP4136012B2 (en) 2008-08-20

Similar Documents

Publication Publication Date Title
US20070189750A1 (en) Method of and apparatus for simultaneously capturing and generating multiple blurred images
US8718326B2 (en) System and method for extracting three-dimensional coordinates
US20020150308A1 (en) Image processing method, and an apparatus provided with an image processing function
CN103067656B (en) Camera head and image capture method
JP2008298685A (en) Measuring device and program
SE523318C2 (en) Camera based distance and angle gauges
JP2012103109A (en) Stereo image processing device, stereo image processing method and program
JPH07167649A (en) Distance measuring equipment
CN107864315A (en) The control method and recording medium of picture pick-up device, picture pick-up device
JP4136012B2 (en) Ranging device, photographing device, and background processing device
JP3988574B2 (en) Image processing device
JPH10186460A (en) Range-finding device for camera
JPH0690357B2 (en) Deviation amount detector
JP4450899B2 (en) Multi-point distance measuring device
JP2001243478A (en) Target body tracing device
JP5454392B2 (en) Ranging device and imaging device
JP2881995B2 (en) Object detection device for optical instruments
JPH11223516A (en) Three dimensional image pickup device
JPH0568666B2 (en)
JPH0683963A (en) Target tracking device
JP4560159B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
JP4449808B2 (en) Human detection device
JP7346021B2 (en) Image processing device, image processing method, imaging device, program and recording medium
JPH09325010A (en) Three-dimensional measuring device
JPH09325019A (en) Three-dimensional measuring device

Legal Events

Date Code Title Description
A977 Report on retrieval

Effective date: 20040224

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20040309

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040510

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060412

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060612

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

Effective date: 20080527

Free format text: JAPANESE INTERMEDIATE CODE: A01

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

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Year of fee payment: 3

Free format text: PAYMENT UNTIL: 20110613

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

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 3

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

Year of fee payment: 4

Free format text: PAYMENT UNTIL: 20120613

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

Free format text: PAYMENT UNTIL: 20130613

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees