JP2008241491A - Three-dimensional measurement instrument - Google Patents

Three-dimensional measurement instrument Download PDF

Info

Publication number
JP2008241491A
JP2008241491A JP2007083276A JP2007083276A JP2008241491A JP 2008241491 A JP2008241491 A JP 2008241491A JP 2007083276 A JP2007083276 A JP 2007083276A JP 2007083276 A JP2007083276 A JP 2007083276A JP 2008241491 A JP2008241491 A JP 2008241491A
Authority
JP
Japan
Prior art keywords
zoom
focus
camera information
image processing
stereo image
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
JP2007083276A
Other languages
Japanese (ja)
Other versions
JP4858263B2 (en
Inventor
Shinichiro Hirooka
廣岡慎一郎
Norihiko Nakano
中野憲彦
Hiroshi Chiba
千葉浩
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2007083276A priority Critical patent/JP4858263B2/en
Publication of JP2008241491A publication Critical patent/JP2008241491A/en
Application granted granted Critical
Publication of JP4858263B2 publication Critical patent/JP4858263B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To allow precise three-dimensional measurement even when zooming and focusing are varied, in a three-dimensional measuring instrument that uses a stereo camera, having zooming and focusing functions. <P>SOLUTION: This three-dimensional measuring instrument has a plurality of imaging means including one or more of imaging means that are variable in the zooming and focusing; a control means for the zooming and focusing; a stereo image processing means for stereo-image-processing photographed images output from the plurality of imaging means, and for measuring three-dimensional information; and a camera information storage means for storing camera information necessary for carrying out the stereo image processings. The camera information storage means has the plurality of pieces of camera information, in response to conditions regarding the camera information varied, depending on the zooming condition and the focusing condition of each imaging means, and the stereo image processing means acquires the zooming condition and the focusing condition of each imaging means and acquires the corresponding camera information from a camera information storage part to be used for the stereo image processing. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、ステレオ撮像手段とステレオ画像処理手段を備える3次元計測装置に関する。   The present invention relates to a three-dimensional measurement apparatus including stereo imaging means and stereo image processing means.

本技術分野の背景技術として、例えば、特開2004−37270号公報(特許文献1)がある。該公報には、「光学条件を変化させて撮影するカメラに対して、レンズディストーションの影響を除去するキャリブレーション用データの測定装置を提供する」ことを目的とし、解決手段として、「マークが配置されたキャリブレーション用チャート1を、光学条件を変化させて撮影するカメラ2で撮影した、複数のチャート撮影画像を用いてカメラ2のキャリブレーション用データを求めるキャリブレーション用データ測定装置であって、前記チャート撮影画像からマークを抽出するマーク抽出部131と、抽出されたマークのマーク位置から、撮影された光学条件でのキャリブレーション用データを演算する内部パラメータ演算部134と、キャリブレーション用データと、前記チャート撮影画像の撮影された複数の光学条件とを用いて、カメラ2の変化する撮影光学条件に対応するキャリブレーション用データを算出する内部パラメータ関数演算部160とを備える」という技術が開示されている。   As background art in this technical field, for example, there is JP-A-2004-37270 (Patent Document 1). The gazette aims to “provide a calibration data measurement device that eliminates the effects of lens distortion for cameras that shoot with varying optical conditions”. A calibration data measuring apparatus for obtaining calibration data of the camera 2 using a plurality of chart photographed images obtained by photographing the calibration chart 1 taken by the camera 2 that photographs the optical chart by changing the optical conditions, A mark extracting unit 131 for extracting a mark from the chart photographed image, an internal parameter calculating unit 134 for calculating calibration data under a photographed optical condition from the mark position of the extracted mark, and calibration data; And a plurality of optical conditions in which the chart photographed image is photographed. Technology that and an internal parameter function calculating unit 160 for calculating the calibration data corresponding to the changing photographing optical conditions of the camera 2 "is disclosed.

特開2004−37270号公報JP 2004-37270 A

複数の撮像部を持つステレオカメラ乃至マルチカメラにおいて、各々の撮像画像における被写体の画像情報を比較することで、被写体の3次元情報を計測することが可能である。その際に精度の良い3次元計測を行うためには、ズームレンズやフォーカスレンズの光学的な特性に起因する画像歪みの影響を除去することと、カメラパラメータと呼ばれる、カメラの焦点距離や画像中心やせん断(以下内部パラメータと記す)、及びカメラの空間中における位置・方位(以下外部パラメータと記す)などの幾何的な情報を正確に把握しておくことが必要となる。   In a stereo camera or a multi-camera having a plurality of imaging units, it is possible to measure three-dimensional information of a subject by comparing image information of the subject in each captured image. In order to perform accurate three-dimensional measurement at that time, the influence of image distortion caused by the optical characteristics of the zoom lens and the focus lens is removed, and the camera focal length and image center, which are called camera parameters, are removed. It is necessary to accurately grasp geometric information such as the shear and shear (hereinafter referred to as internal parameters), and the position / orientation (hereinafter referred to as external parameters) in the camera space.

上記特許文献1では、撮影光学条件としてズームの焦点距離やピントの位置が変化した場合の内部パラメータの変化を示す内部パラメータ関数をキャリブレーション時に作成し、運用時には測定したカメラの焦点距離を元に内部パラメータ関数から他の内部パラメータを算出し、それを初期値としてバンドル調整を行うことで最適な内部パラメータの取得を行っている。しかし、バンドル調整を行うためビデオカメラなどを用いた実時間での運用には適しておらず、また、一般のズーム可変なカメラにおいては、ズーム後にピントを合わせるためフォーカス位置を変えるなど、ズームとフォーカスを連携して動かす必要があるため、ズームまたはフォーカスの一方の変化のみに対応した内部パラメータの組を持つだけでは十分に精度の良いパラメータは取得できない。   In the above-mentioned Patent Document 1, an internal parameter function indicating a change in internal parameter when the zoom focal length or focus position is changed as a photographing optical condition is created at the time of calibration, and based on the measured camera focal length at the time of operation. The other internal parameters are calculated from the internal parameter function, and the optimal internal parameters are obtained by performing bundle adjustment using them as initial values. However, it is not suitable for real-time operation using a video camera or the like because bundle adjustment is performed, and a general zoom variable camera can change the focus position to adjust the focus after zooming. Since it is necessary to move the focus in a coordinated manner, it is not possible to obtain a sufficiently accurate parameter simply by having a set of internal parameters corresponding to only one change in zoom or focus.

また、上記特許文献1では単眼カメラについてのレンズ歪み補正情報と内部パラメータの変化を示す内部パラメータ関数のみしか記憶しないため、ステレオ画像処理を行う際には外部パラメータを都度算出しなくてはならないという問題がある。   In addition, since only the lens distortion correction information for the monocular camera and the internal parameter function indicating the change of the internal parameter are stored in the above-mentioned Patent Document 1, the external parameter must be calculated each time when performing stereo image processing. There's a problem.

そこで、本発明では二つ以上の撮像部からなるステレオカメラにおいて、各撮像部のレンズ歪みと内部パラメータに関する情報についてはズームとフォーカスの組み合わせに対応した複数の情報を、撮像部間の外部パラメータに関する情報についてはズームとフォーカスによらず共通の情報をそれぞれテーブルとして格納することで、ズーミングやフォーカシングを行った場合でも、適切なレンズ歪み情報やカメラパラメータを用いて高精度に3次元計測を行うことを目的とする。   Therefore, in the present invention, in a stereo camera including two or more imaging units, a plurality of pieces of information corresponding to a combination of zoom and focus are related to the external parameters between the imaging units for information on lens distortion and internal parameters of each imaging unit. As for information, common information is stored as a table regardless of zoom and focus, so that even when zooming or focusing is performed, 3D measurement is performed with high accuracy using appropriate lens distortion information and camera parameters. With the goal.

上記目的は特許請求の範囲に記載の発明により達成される。   The above object can be achieved by the invention described in the claims.

本発明によれば、ズーム及びフォーカスが可変なステレオカメラによる3次元計測装置において、ズーミングやフォーカシングを行った場合でも、適切なレンズ歪み情報やカメラパラメータを用いて高精度な3次元計測を行うことが可能となる。   According to the present invention, in a three-dimensional measuring apparatus using a stereo camera with variable zoom and focus, even when zooming or focusing is performed, high-precision three-dimensional measurement is performed using appropriate lens distortion information and camera parameters. Is possible.

以下、図面を用いて本発明の実施例を説明する。   Embodiments of the present invention will be described below with reference to the drawings.

図1は、本発明の第1実施例に係る3次元計測装置を示す模式図である。図1において0101_1は第一の撮像部、0101_2は第二の撮像部、0102はズーム・フォーカス制御部、0103はステレオ画像処理部、0104はカメラ情報格納部である。0110はステレオカメラ部である。   FIG. 1 is a schematic diagram showing a three-dimensional measuring apparatus according to a first embodiment of the present invention. In FIG. 1, 0101_1 is a first imaging unit, 0101_2 is a second imaging unit, 0102 is a zoom / focus control unit, 0103 is a stereo image processing unit, and 0104 is a camera information storage unit. Reference numeral 0110 denotes a stereo camera unit.

図1に示した3次元計測装置において、第一の撮像部0101_1及び第二の撮像部0101_2はそれぞれズーム及びフォーカスが可変な撮像部であり、ズームレンズ及びフォーカスレンズを含むレンズ群とシャッタや撮像素子やAGCやADやカメラ信号処理DSPやタイミングジェネレータ等から構成され、光電変換による撮像を行い、画像データを出力する。ステレオ画像処理を高精度に行うためには、第一の撮像部0101_1の撮像画像と第二の撮像部0101_2の撮像画像は同時露光で撮像されていることが好ましい。ズーム・フォーカス制御部0102は、不図示のユーザ入力部より入力したユーザ入力や、不図示の画像認識部から取得した画像認識結果などの入力をもとに第一の撮像部0101_1または第二の撮像部0101_2のズーム倍率やフォーカス位置を制御する。ステレオ画像処理を高精度に行うためには、なるべく撮像部間のズーム倍率やフォーカスを一致していることが好ましい。ただし、本構成を用いる上で、必ずしも撮像部間のズーム倍率やフォーカスが一致している必要はない。第一の撮像部0101_1または第二の撮像部0101_2のズーム倍率やフォーカス位置を決定するものとしては例えば、ズームレンズを動作させるステッピングモータのステップ位置や、フォーカスレンズを動作させるステッピングモータのステップ位置が一般的であり、ズーム・フォーカス制御部0102はシリアル通信などによりステッピングモータの現在のステップ位置からの移動量を制御することで、ズーム倍率やフォーカス位置を制御することが可能である。ステレオ画像処理部0103は第一の撮像部0101_1と第二の撮像部0101_2の出力する画像データを、ステレオ画像として取得する。また、ズーム・フォーカス制御部0102から第一の撮像部0101_1と第二の撮像部0101_2のズーム及びフォーカスの情報を取得し、カメラ情報格納部0104からズーム及びフォーカスの情報に応じたカメラ情報を取得する。ステレオ画像処理部0103は、このカメラ情報を用いてステレオ画像をステレオ画像処理し、被写体の3次元計測を行って、視差情報や距離情報や3次元位置情報や3次元計測の信頼性を示す評価値などを3次元情報として出力する。ステレオ画像処理には、レンズ歪み補正処理や平行化処理やノイズ除去を行うためのローパスフィルタ処理等の前処理や、エッジ検出等の特徴量演算処理、正規化相互相関や差分絶対値和等のブロックマッチングやspace-sweep法等の各種の相関演算処理を用いてステレオ画像間の対応点検索を行い視差情報を取得するステレオマッチング処理、ランクフィルタ処理やラベリング等により特異点の除去を行う後処理、視差情報を用いて距離情報を演算する距離計算処理などがあり、処理の途中で得られる情報、すなわち例えばステレオマッチング処理で対応点検索を行った場合の対応点の画像上の座標などを出力することもできる。カメラ情報格納部0104は、EEPROMやフラッシュメモリなどの記憶装置であり、第一の撮像部0101_1と第二の撮像部0101_2の出力する画像データを用いてステレオ画像処理を行う場合に必要な情報をカメラ情報として格納している。カメラ情報としては、例えば、第一の撮像部0101_1及び第二の撮像部0101_2の各撮像部についてのレンズ歪み補正情報や内部パラメータ、撮像部間についての外部パラメータなどがある。このうち、第一の撮像部0101_1及び第二の撮像部0101_2のズーム倍率やフォーカス位置に依存して変化する、レンズ歪み補正情報または内部パラメータを格納する場合には、ズーム倍率とフォーカス位置の組み合わせに対応した複数のレンズ歪み補正情報または内部パラメータを格納する。カメラ情報の格納法については後に詳細を記す。カメラ情報は事前にカメラキャリブレーション処理を行うことで取得可能であり、例えば工場出荷時や設置後の初期調整時に校正パターンなどを用いた既存のカメラキャリブレーション手、例えばZhangの用いた手法などで計測し、カメラ情報格納部に格納すればよい。ステレオカメラ部0110は前記の第一の撮像部0101_1、第二の撮像部0101_2、ズーム・フォーカス制御部0102、ステレオ画像処理部0103、カメラ情報格納部0104を含んだ構成により一台のステレオカメラを構築していることを示している。このとき、第一の撮像部0101_1と第二の撮像部0101_2は1つの筐体として固定されていると、撮像部間の外部パラメータが変化しにくく、経年変化に対する耐性が高くなるため好ましい。ただし、撮像部間の位置関係が既知で固定されている、あるいは、パンやチルトや平行移動を行うが、その移動量や移動後の撮像部間の位置関係が何らかの方法によって取得可能である場合には、必ずしも2つの撮像部が1つの筐体として固定されている必要はない。なお、ズーム・フォーカス制御部0102の行う撮像制御処理や、ステレオ画像処理部0103の行うステレオ画像処理は、通常はカメラ内のマイコンやDSPや画像処理LSIなどによって行われる。また、ズーム・フォーカス制御部0102やステレオ画像処理部0103がステレオカメラ部0110の外側にあり、PCに該当して撮像制御処理やステレオ画像処理を行う形態としても良い。   In the three-dimensional measurement apparatus shown in FIG. 1, the first imaging unit 0101_1 and the second imaging unit 0101_2 are imaging units with variable zoom and focus, respectively, a lens group including a zoom lens and a focus lens, a shutter, and imaging. It is composed of elements, AGC, AD, camera signal processing DSP, timing generator, etc., and performs imaging by photoelectric conversion and outputs image data. In order to perform stereo image processing with high accuracy, it is preferable that the captured image of the first imaging unit 0101_1 and the captured image of the second imaging unit 0101_2 are captured by simultaneous exposure. The zoom / focus control unit 0102 receives the first image pickup unit 0101_1 or the second image pickup unit 0101_1 based on a user input input from a user input unit (not shown) or an image recognition result acquired from an image recognition unit (not shown). The zoom magnification and focus position of the imaging unit 0101_2 are controlled. In order to perform stereo image processing with high accuracy, it is preferable that the zoom magnification and the focus between the imaging units are matched as much as possible. However, in using this configuration, it is not always necessary that the zoom magnification and focus between the imaging units match. For determining the zoom magnification and focus position of the first imaging unit 0101_1 or the second imaging unit 0101_2, for example, the step position of the stepping motor that operates the zoom lens and the step position of the stepping motor that operates the focus lens are used. Generally, the zoom / focus control unit 0102 can control the zoom magnification and the focus position by controlling the movement amount of the stepping motor from the current step position by serial communication or the like. The stereo image processing unit 0103 acquires the image data output from the first imaging unit 0101_1 and the second imaging unit 0101_2 as a stereo image. Also, the zoom / focus control unit 0102 acquires zoom and focus information of the first imaging unit 0101_1 and the second imaging unit 0101_2, and the camera information storage unit 0104 acquires camera information corresponding to the zoom and focus information. To do. The stereo image processing unit 0103 performs stereo image processing of the stereo image using this camera information, performs 3D measurement of the subject, and evaluates the reliability of parallax information, distance information, 3D position information, and 3D measurement. Outputs values etc. as 3D information. Stereo image processing includes lens distortion correction processing, parallelization processing, preprocessing such as low-pass filter processing for noise removal, feature amount calculation processing such as edge detection, normalized cross-correlation, sum of absolute differences, etc. Post-processing that removes singularities by means of stereo matching processing that retrieves disparity information by searching for corresponding points between stereo images using various correlation calculation processing such as block matching and space-sweep method, rank filter processing and labeling , Distance calculation processing that calculates distance information using parallax information, etc., output information obtained in the middle of processing, that is, for example, coordinates of corresponding points on the image when corresponding point search is performed by stereo matching processing, etc. You can also The camera information storage unit 0104 is a storage device such as an EEPROM or a flash memory, and stores information necessary for performing stereo image processing using image data output from the first imaging unit 0101_1 and the second imaging unit 0101_2. Stored as camera information. The camera information includes, for example, lens distortion correction information and internal parameters for each imaging unit of the first imaging unit 0101_1 and the second imaging unit 0101_2, and external parameters between imaging units. Among these, when storing lens distortion correction information or internal parameters that change depending on the zoom magnification and focus position of the first imaging unit 0101_1 and the second imaging unit 0101_2, a combination of the zoom magnification and the focus position A plurality of lens distortion correction information or internal parameters corresponding to. Details of how to store the camera information will be described later. Camera information can be acquired by performing camera calibration processing in advance, for example, using existing camera calibration hands that use a calibration pattern at the time of factory shipment or initial adjustment after installation, such as the method using Zhang What is necessary is just to measure and to store in a camera information storage part. The stereo camera unit 0110 includes a first image capturing unit 0101_1, a second image capturing unit 0101_2, a zoom / focus control unit 0102, a stereo image processing unit 0103, and a camera information storage unit 0104. It shows that it is building. At this time, it is preferable that the first image capturing unit 0101_1 and the second image capturing unit 0101_2 are fixed as a single housing because external parameters between the image capturing units are less likely to change and resistance to secular change is increased. However, the positional relationship between the imaging units is known and fixed, or panning, tilting, and parallel movement are performed, but the amount of movement and the positional relationship between the imaging units after movement can be obtained by some method. However, it is not always necessary that the two imaging units are fixed as a single casing. Note that the imaging control processing performed by the zoom / focus control unit 0102 and the stereo image processing performed by the stereo image processing unit 0103 are usually performed by a microcomputer, DSP, image processing LSI, or the like in the camera. Further, the zoom / focus control unit 0102 and the stereo image processing unit 0103 may be outside the stereo camera unit 0110, and may be configured to perform imaging control processing and stereo image processing corresponding to a PC.

ここでは構成として2つの撮像部を用いた場合を示したが、撮像部は2つに限る必要はなく、異なる位置に設置した3つ以上の複数の撮像部であってもよい。また、ステレオ撮像部0201がミラーやプリズムを用いて構成され、1つの撮像素子から構成される1つの撮像部を持つ形態としても良い。また、2つの撮像部のうち一方がズームレンズ及びフォーかスレンズを持たない固定焦点の撮像部としても良い。   Although the case where two imaging units are used is shown here as a configuration, the number of imaging units is not limited to two, and may be three or more imaging units installed at different positions. In addition, the stereo imaging unit 0201 may be configured using a mirror or a prism, and may have one imaging unit configured by one imaging element. One of the two imaging units may be a fixed-focus imaging unit that does not have a zoom lens and a focus lens.

図2は本発明の第1実施例に係るカメラ情報格納部におけるカメラ情報の格納方法の一例を示す図である。図2において、横軸はズーム倍率、縦軸はフォーカス位置を示し、カメラ情報(1,1)はズーム倍率が第一のズーム倍率でフォーカス位置が第一のフォーカス位置にある場合のカメラ情報、カメラ情報(2,1)はズーム倍率が第一のズーム倍率でフォーカス位置が第二のフォーカス位置にある場合のカメラ情報、を指し、以下同様にズーム倍率とフォーカス位置の組み合わせ毎にカメラ情報が存在する。よってカメラ情報格納部0104は、ズーム倍率とフォーカス位置の組み合わせに応じた複数のカメラ情報を格納することになる。ここで、カメラ情報格納部0104が格納する複数のカメラ情報は、撮像部のズーム倍率やフォーカス位置に依存して変化するレンズ歪み補正情報または内部パラメータを指し、これらは撮像部毎に異なる値となりうるためそれぞれの撮像部について複数のカメラ情報を格納する必要がある。なお、撮像部間の外部パラメータについては、各撮像部のズーム倍率やフォーカス位置に依存せず不変なため、複数のカメラ情報として格納する必要はない。このように、撮像部のズーム倍率やフォーカス位置に依存して変化するレンズ歪み補正情報または内部パラメータを、ズーム倍率とフォーカス位置の組み合わせに応じて複数格納しておくことで、ズーム及びフォーカスが可変な撮像部を用いてステレオカメラを構築した場合でも、そのときのズーム倍率やフォーカス位置に適した最適なカメラ情報を用いて、ステレオ画像処理による3次元計測を行うことが可能である。   FIG. 2 is a diagram illustrating an example of a method for storing camera information in the camera information storage unit according to the first embodiment of the present invention. In FIG. 2, the horizontal axis indicates the zoom magnification, the vertical axis indicates the focus position, and the camera information (1, 1) indicates camera information when the zoom magnification is the first zoom magnification and the focus position is at the first focus position. The camera information (2, 1) indicates camera information when the zoom magnification is the first zoom magnification and the focus position is at the second focus position. Similarly, the camera information is obtained for each combination of the zoom magnification and the focus position. Exists. Therefore, the camera information storage unit 0104 stores a plurality of pieces of camera information corresponding to the combination of the zoom magnification and the focus position. Here, the plurality of camera information stored in the camera information storage unit 0104 indicates lens distortion correction information or internal parameters that change depending on the zoom magnification and focus position of the imaging unit, and these values are different for each imaging unit. Therefore, it is necessary to store a plurality of pieces of camera information for each imaging unit. Note that the external parameters between the image capturing units do not depend on the zoom magnification or the focus position of each image capturing unit, and do not need to be stored as a plurality of camera information. As described above, by storing a plurality of lens distortion correction information or internal parameters that change depending on the zoom magnification and focus position of the imaging unit according to the combination of the zoom magnification and the focus position, zoom and focus can be changed. Even when a stereo camera is constructed using a simple imaging unit, it is possible to perform three-dimensional measurement by stereo image processing using optimal camera information suitable for the zoom magnification and focus position at that time.

図3は本発明の第1実施例に係るズームレンズとフォーカスレンズの関係を考慮したカメラ情報の格納方法の一例を示す図である。図3において、横軸はズームレンズを動作させるステッピングモータのステップ位置(以下ズーム制御位置と記す)、縦軸はフォーカスレンズを動作させるステッピングモータのステップ位置(以下フォーカス制御位置と記す)、W端は光学ワイド端、T端は光学テレ端、F端はファー側メカ端、N端はニア側メカ端をそれぞれ示している。図中の実線で示した曲線は、合焦点位置が無限遠の場合のズーム制御位置とフォーカス制御位置の関係を示しており、点線で示した曲線は、合焦点位置が仕様の範囲内において最も近い位置(図中ではxm)の場合のズーム制御位置とフォーカス制御位置の関係を示している。よって、実際のフォーカス制御が可能な実効範囲は図中の斜線で示した部分となり、フォーカス制御が可能な実効範囲はズーム制御位置によって変化する。例えば図3の例ではフォーカス制御が可能な実効範囲は被写界深度の深いW端側ほど狭く、また、ズーム制御位置が被写界深度の浅いT端に近いほど広くなる。よってカメラ情報格納部0104は、実際にはズーム制御位置がW端に近い場合はカメラ情報を少ないサンプル数で、ズーム制御位置がT端に近い場合はカメラ情報を多いサンプル数で格納すればよい。合焦点位置が最も近い位置の仕様値は、3次元計測を適用するアプリターゲットの要求仕様を充たすカメラの仕様値を参照すればよい。また、市販のディジタルカメラなどでは、マクロモードと呼ばれ、接写した被写体に焦点を合わすためフォーカス制御位置を図中の点線で示した曲線より、N端側で可動にする機能がある場合がある。そのためマクロモードでもステレオ画像処理を行いたい場合には、図中に点線で示した曲線とN端との間の範囲のカメラ情報も格納すればよい。ただし、接写時には撮像部間で被写体の見え方が大きく異なるため、ステレオ画像処理による3次元計測を行うには適していない。以上のように、ズーム制御位置とフォーカス制御位置に応じてカメラ情報の格納数を変えることで、カメラ情報の格納数を最適化し、メモリ量の削減を図ることができる。   FIG. 3 is a diagram showing an example of a method for storing camera information in consideration of the relationship between the zoom lens and the focus lens according to the first embodiment of the present invention. In FIG. 3, the horizontal axis represents the stepping motor step position for operating the zoom lens (hereinafter referred to as zoom control position), the vertical axis represents the stepping motor step position for operating the focus lens (hereinafter referred to as focus control position), and the W end. Indicates the optical wide end, the T end indicates the optical tele end, the F end indicates the far side mechanical end, and the N end indicates the near side mechanical end. The curve shown by the solid line in the figure shows the relationship between the zoom control position and the focus control position when the in-focus position is at infinity. The curve shown by the dotted line is the most in-focus position within the specification range. The relationship between the zoom control position and the focus control position in the case of a close position (xm in the drawing) is shown. Therefore, the effective range in which actual focus control is possible is the portion indicated by the hatching in the figure, and the effective range in which focus control is possible varies depending on the zoom control position. For example, in the example of FIG. 3, the effective range in which focus control is possible is narrower toward the W end side where the depth of field is deeper, and becomes wider as the zoom control position is closer to the T end where the depth of field is shallower. Therefore, the camera information storage unit 0104 may actually store the camera information with a small number of samples when the zoom control position is close to the W end, and store the camera information with a large number of samples when the zoom control position is close to the T end. . The specification value of the position where the in-focus position is closest may be referred to the specification value of the camera that satisfies the required specification of the application target to which the three-dimensional measurement is applied. A commercially available digital camera or the like is called a macro mode, and sometimes has a function of moving the focus control position closer to the N end side than the curve indicated by the dotted line in FIG. . Therefore, when it is desired to perform stereo image processing even in the macro mode, it is only necessary to store camera information in a range between the curve indicated by the dotted line and the N end in the figure. However, since the appearance of the subject varies greatly between the imaging units during close-up photography, it is not suitable for performing three-dimensional measurement by stereo image processing. As described above, by changing the number of stored camera information according to the zoom control position and the focus control position, the number of stored camera information can be optimized and the amount of memory can be reduced.

図4は本発明の第1実施例に係るカメラ情報を格納するズーム制御位置とフォーカス制御位置を決定する方法の一例を示す第一の図である。図4において、(a)は第一の撮像部、(b)は第二の撮像部についての図であり、図中において横軸はズーム制御位置、縦軸はフォーカス制御位置であり、aは第一の撮像部におけるW端のズーム制御位置、bは第一の撮像部におけるT端のズーム制御位置、a’は第二の撮像部におけるW端のズーム制御位置、b’は第二の撮像部におけるT端のズーム制御位置である。このとき、カメラ情報を格納するズーム制御位置をW端のズーム制御位置から同量のステップ位置αだけ移動した位置、すなわち第一の撮像部ではズーム制御位置a+α、第二の撮像部ではズーム制御位置a’+αから決定する。W端のズーム制御位置やW端とT端の間のステップ数はカメラ毎に個体差があるが、このようにW端からの相対的なステップ位置を用いることで、撮像部間のズーム倍率の差が小さいときのカメラ情報を格納することができるため、ステレオ画像処理を精度良く行うことができるようになる。カメラ情報を格納するズーム制御位置を決定するαは、ズーム倍率やズーム制御位置などを基準に決めればよい。例えばあらかじめズームを所定の倍率のみで使う、つまりプリセット値を使用する場合は、そのズーム倍率になるときのズーム制御位置を定めてαを決定すればよい。また、任意のズーム倍率でも用いたい場合には、レンズ歪み情報や内部パラメータがズーム制御位置の変化に対し連続的に変化することを考慮し、ズーム制御位置に対して一定の間隔になるようにαを決定しても良い。また、ここではW端のズーム制御位置a及びa’を基準に考えているが、ステレオ画像処理を行うには厳密に撮像部間の焦点距離が等しいことが好ましく、a、a’の近傍で第一の撮像部と第二の撮像部の焦点距離が一致するズーム制御位置がそれぞれ検出できる場合は、そのズーム制御位置を基準位置としてa、a’のかわりに用いても良い。同様にフォーカス制御位置については、図中のc、c’がそれぞれズーム制御位置a+α、a+α’における合焦点位置が無限遠の場合のフォーカス制御位置であり、カメラ情報を格納するフォーカス制御位置はc、c’からそれぞれ同量のステップ位置βだけ移動した位置、すなわち第一の撮像部ではフォーカス制御位置c+β、第二の撮像部ではフォーカス制御位置c’+βで決定すれば良い。カメラ情報を格納するフォーカス制御位置を決定するβは、フォーカス位置やフォーカス制御位置などを基準に決めればよい。例えばあらかじめフォーカスを所定の合焦点位置のみで使う、つまりプリセット値を使用する場合は、そのフォーカスになるときのフォーカス制御位置を定めてβを決定すればよい。また、任意のフォーカスでも用いたい場合には、レンズ歪み情報や内部パラメータがフォーカス制御位置の変化に対し連続的に変化することを考慮し、フォーカス制御位置に対して一定の間隔になるようにβを決定しても良い。図5は本発明の第1実施例に係るカメラ情報を格納するズーム制御位置とフォーカス制御位置を決定する方法の一例を示す第二の図である。図5では図4と同様にカメラ情報を格納するズーム制御位置とフォーカス制御位置をある基準位置からの相対位置として決定するが、ここではカメラ情報を格納するズーム制御位置をW端のズーム制御位置とT端のズーム制御位置との間隔に係数γをかけることで決定している。同様にカメラ情報を格納するフォーカス制御位置を合焦点位置が無限遠の場合のフォーカス制御位置と合焦点位置が仕様の中で最も近い位置の場合のフォーカス制御位置との間隔に係数δをかけることで決定している。このように、ズーム制御位置とフォーカス制御位置を2つの基準位置から定まる相対位置で決定しても良い。かように、カメラ情報を格納するズーム制御位置とフォーカス制御位置をある基準位置からの相対位置として決定することで、撮像部間のズームやフォーカスがなるべく近いときの各々の撮像部のカメラ情報を格納することができるため、精度の良いステレオ画像処理が可能になる。   FIG. 4 is a first diagram illustrating an example of a method for determining a zoom control position and a focus control position for storing camera information according to the first embodiment of the present invention. 4, (a) is a diagram of the first imaging unit, (b) is a diagram of the second imaging unit, in which the horizontal axis is the zoom control position, the vertical axis is the focus control position, and a is The zoom control position at the W end in the first imaging unit, b is the zoom control position at the T end in the first imaging unit, a ′ is the zoom control position at the W end in the second imaging unit, and b ′ is the second zoom control position. This is the zoom control position at the T end in the imaging unit. At this time, the zoom control position for storing the camera information is moved by the same amount of step position α from the zoom control position at the W end, that is, the zoom control position a + α in the first imaging unit, and the zoom control in the second imaging unit. Determined from position a ′ + α. The zoom control position at the W end and the number of steps between the W end and the T end have individual differences for each camera. By using the relative step position from the W end in this way, the zoom magnification between the imaging units is used. Since the camera information when the difference is small can be stored, stereo image processing can be performed with high accuracy. The α for determining the zoom control position for storing the camera information may be determined based on the zoom magnification, the zoom control position, and the like. For example, when zoom is used only at a predetermined magnification, that is, when a preset value is used, α may be determined by determining a zoom control position at which the zoom magnification is reached. Also, if you want to use at any zoom magnification, take into account that lens distortion information and internal parameters change continuously with changes in the zoom control position so that they are at a fixed interval with respect to the zoom control position. α may be determined. Further, here, the zoom control positions a and a ′ at the W end are considered as references, but it is preferable that the focal lengths between the imaging units are strictly equal in order to perform stereo image processing, and in the vicinity of a and a ′. When a zoom control position where the focal lengths of the first imaging unit and the second imaging unit match can be detected, the zoom control position may be used as a reference position instead of a and a ′. Similarly, with respect to the focus control position, c and c ′ in the figure are the focus control positions when the in-focus positions at the zoom control positions a + α and a + α ′ are infinite, and the focus control position for storing camera information is c. , C ′ and the position moved by the same amount of step position β, that is, the focus control position c + β in the first imaging unit and the focus control position c ′ + β in the second imaging unit. Β for determining the focus control position for storing the camera information may be determined based on the focus position, the focus control position, or the like. For example, when the focus is used in advance only at a predetermined focal position, that is, when a preset value is used, β may be determined by determining the focus control position when the focus is reached. Also, if you want to use it at any focus, consider that lens distortion information and internal parameters change continuously in response to changes in the focus control position. May be determined. FIG. 5 is a second diagram showing an example of a method for determining a zoom control position and a focus control position for storing camera information according to the first embodiment of the present invention. In FIG. 5, as in FIG. 4, the zoom control position for storing camera information and the focus control position are determined as relative positions from a certain reference position. Here, the zoom control position for storing camera information is the zoom control position at the W end. And the interval between the zoom control position at the T end and the coefficient γ are applied. Similarly, a factor δ is applied to the distance between the focus control position for storing camera information when the in-focus position is at infinity and the focus control position when the in-focus position is the closest in the specification. It is decided by. As described above, the zoom control position and the focus control position may be determined based on the relative positions determined from the two reference positions. Thus, by determining the zoom control position for storing camera information and the focus control position as relative positions from a certain reference position, the camera information of each imaging unit when the zoom or focus between the imaging units is as close as possible is obtained. Since it can be stored, accurate stereo image processing becomes possible.

図6は本発明の第1実施例に係るカメラ情報を用いたステレオ画像処理シーケンスの一例を示す図である。図6のステレオ画像処理シーケンスはステレオ画像処理部0103で実行される。   FIG. 6 is a diagram showing an example of a stereo image processing sequence using camera information according to the first embodiment of the present invention. The stereo image processing sequence in FIG. 6 is executed by the stereo image processing unit 0103.

図6のステレオ画像処理シーケンスにおいて、ST0601では、第一の撮像部0101_1及び第二の撮像部0101_2から撮像画像を取得する。ST0602では、ズーム・フォーカス制御部0102から、第一の撮像部0101_1のズーム制御位置及びフォーカス制御位置と第二の撮像部0101_2のズーム制御位置及びフォーカス制御位置を取得する。ST0603では、第一の撮像部0101_1のズーム制御位置及びフォーカス制御位置に対応するカメラ情報と、第二の撮像部0101_2のズーム制御位置及びフォーカス制御位置に対応するカメラ情報と、ズームやフォーカスに依存しないカメラ情報、すなわち外部パラメータを取得する。このとき、各撮像部について、ズーム制御位置とフォーカス制御位置に対応するカメラ情報が存在する場合には、そのカメラ情報をそのまま取得すればよいが、対応するカメラ情報が存在しない場合には、近傍のズーム制御情報及びフォーカス制御情報で、対応するカメラ情報が存在する場合にそのカメラ情報で代用する。または、近傍の対応するカメラ情報が存在する複数のズーム制御情報及びフォーカス制御情報を参照し、実際のズーム制御情報及びフォーカス制御情報との関係から重みを付けてカメラ情報を線形に補間することで精度の良いカメラ情報を取得する形にしても良い。ST0604では、取得したカメラ情報を用いてレンズ歪み補正や倍率補正や平行化処理などの補正処理を行う。ST0605ではノイズ除去を行うためのローパスフィルタ処理等の前処理や、エッジ検出等の特徴量演算処理、正規化相互相関や差分絶対値和等のブロックマッチングやspace-sweep法等の各種の相関演算処理を用いてステレオ画像間の対応点検索を行い視差情報を取得するステレオマッチング処理、ランクフィルタ処理やラベリング等により特異点の除去を行う後処理などを行い、最終的に取得した視差情報からカメラ情報を用いて被写体の3次元情報を計測する。このようにズーム制御情報及びフォーカス制御情報を各撮像部から取得し、対応するカメラ情報をカメラ情報格納部0104から取得して用いることで、ステレオ画像処理部0103は各撮像部のズームやフォーカスが変わった場合でも高精度な3次元計測を行うことができる。なお、ST0604で示した補正処理及びST0605で示した3次元計測処理については、最終的なステレオ画像処理の出力結果を用いるアプリケーションの要求仕様に応じて必要な処理のみを行えばよい。よって、アプリケーションの要求仕様に応じて必要なカメラ情報の内容も異なる。例えば、被写体の分離に3次元情報を用いたい場合には、被写体の3次元形状を絶対位置として取得する必要は無く、被写体の相対視差が分かれば良いだけなので、3次元情報を計測するためのカメラ情報は必要なく、単にレンズ歪みを補正するためのレンズ歪み情報を持つだけで十分である。また、3次元形状測定装置のように、被写体の高精度な3次元形状を計測したい場合には、カメラ情報としてレンズ歪み補正情報のほかに、内部パラメータ及び外部パラメータを全て持つ必要がある。また、不図示のオンラインキャリブレーション装置などがあり、動画上からカメラ情報のいくつかが測定できる場合には、その情報についてはカメラ情報格納部0104から取得する必要はない。このようにアプリケーションの使用環境に応じてカメラ情報格納部0104が格納するカメラ情報の内容を決定することができる。   In the stereo image processing sequence of FIG. 6, in ST0601, captured images are acquired from the first imaging unit 0101_1 and the second imaging unit 0101_2. In ST0602, the zoom control position and focus control position of the first imaging unit 0101_1 and the zoom control position and focus control position of the second imaging unit 0101_2 are acquired from the zoom / focus control unit 0102. In ST0603, the camera information corresponding to the zoom control position and the focus control position of the first imaging unit 0101_1, the camera information corresponding to the zoom control position and the focus control position of the second imaging unit 0101_2, and depending on the zoom and focus. Camera information not to be acquired, that is, external parameters are acquired. At this time, if the camera information corresponding to the zoom control position and the focus control position exists for each imaging unit, the camera information may be obtained as it is, but if the corresponding camera information does not exist, If the corresponding camera information exists in the zoom control information and the focus control information, the camera information is substituted. Or, by referring to a plurality of zoom control information and focus control information in which there is corresponding camera information in the vicinity, weighting is performed from the relationship with the actual zoom control information and focus control information, and the camera information is linearly interpolated. You may make it the form which acquires highly accurate camera information. In ST0604, correction processing such as lens distortion correction, magnification correction, and parallelization processing is performed using the acquired camera information. In ST0605, pre-processing such as low-pass filter processing for noise removal, feature amount calculation processing such as edge detection, block matching such as normalized cross-correlation and sum of absolute differences, and various correlation calculations such as space-sweep method Perform stereo matching processing that searches for corresponding points between stereo images using processing and acquires disparity information, post-processing that removes singular points by rank filter processing, labeling, etc., and then the camera from the finally acquired disparity information Measure 3D information of the subject using the information. As described above, the zoom control information and the focus control information are acquired from each imaging unit, and the corresponding camera information is acquired from the camera information storage unit 0104 and used, so that the stereo image processing unit 0103 can adjust the zoom and focus of each imaging unit. Even in the event of a change, highly accurate 3D measurement can be performed. Note that the correction process shown in ST0604 and the three-dimensional measurement process shown in ST0605 need only be performed according to the required specifications of the application using the final stereo image processing output result. Therefore, the contents of necessary camera information differ depending on the required specifications of the application. For example, if you want to use 3D information for subject separation, there is no need to acquire the 3D shape of the subject as an absolute position, and it is only necessary to know the relative parallax of the subject. Camera information is not necessary, and it is sufficient to have lens distortion information for correcting lens distortion. Further, when it is desired to measure a highly accurate three-dimensional shape of a subject like a three-dimensional shape measuring apparatus, it is necessary to have all internal parameters and external parameters as camera information in addition to lens distortion correction information. Further, when there is an online calibration device (not shown) or the like, and some camera information can be measured from the moving image, it is not necessary to acquire the information from the camera information storage unit 0104. As described above, the contents of the camera information stored in the camera information storage unit 0104 can be determined according to the use environment of the application.

次に、カメラ情報格納部0104が格納する各カメラ情報の持ち方について示す。カメラ情報格納部0104が格納するカメラ情報は、図6に示したステレオ画像処理シーケンスにおいて、ST0604の各種の補正処理における補正前座標と補正後座標の対応付け
と、ST0605の3次元情報の計測処理における演算の係数にそれぞれ用いられる。このとき、補正処理に用いられるカメラ情報は補正前座標と補正後座標を対応付ける対応表として格納しておくことで、補正処理時の高速化を図ることができる。また、補正前座標から対応する補正後座標を、あるいは補正後座標から対応する補正前座標を演算するための演算式の係数という形で持っていてもよく、この場合は、補正時に逐次演算処理を行う必要があるが、格納するデータ量の低減を図ることができ、また複数の補正を組み合わせて一度の補正処理で行うことができ、補正の繰り返しによる画質低下を避けることができる。このような補正前座標と補正後座標を対応付ける演算式の係数としては、例えばWengのレンズ歪みモデルにおける、radial方向のレンズ歪み係数やtangential方向のレンズ歪み係数が有名である。また、3次元情報の計測処理において演算の係数として用いるカメラ情報は係数の値をそのまま格納すればよい。
Next, how to hold each camera information stored in the camera information storage unit 0104 will be described. The camera information stored in the camera information storage unit 0104 includes, in the stereo image processing sequence shown in FIG. 6, the association between the coordinates before correction and the coordinates after correction in the various correction processes in ST0604, and the measurement process of three-dimensional information in ST0605. Is used as a coefficient of calculation in. At this time, the camera information used for the correction process is stored as a correspondence table that associates the coordinates before correction and the coordinates after correction, thereby speeding up the correction process. In addition, it may have a post-correction coordinate corresponding to the pre-correction coordinate or a coefficient of an arithmetic expression for calculating the pre-correction coordinate corresponding to the post-correction coordinate. However, the amount of data to be stored can be reduced, and a plurality of corrections can be combined and performed by a single correction process, so that deterioration in image quality due to repeated corrections can be avoided. As a coefficient of an arithmetic expression for associating the coordinates before correction and the coordinates after correction, for example, the lens distortion coefficient in the radial direction and the lens distortion coefficient in the tangential direction in the lens distortion model of Weng are well known. In addition, the camera information used as the calculation coefficient in the three-dimensional information measurement process may store the coefficient value as it is.

図7は本発明の第1実施例に係る対応表を用いたレンズ歪み補正処理の一例を示す図である。図7における対応表を用いたレンズ歪み補正処理は、図6に示したステレオ画像処理シーケンスにおいてST0604で実行される。   FIG. 7 is a diagram showing an example of lens distortion correction processing using the correspondence table according to the first embodiment of the present invention. The lens distortion correction process using the correspondence table in FIG. 7 is executed in ST0604 in the stereo image processing sequence shown in FIG.

図7において、(a)は第一の撮像部または第二の撮像部が出力する画像データでレンズ歪み補正前の撮像画像、(b)はカメラ情報格納部0104からレンズ歪み補正情報として補正前座標と補正後座標の対応表を取得し、撮像画像(a)を対応表に従って補正した補正後画像、(c)は補正に用いた対応画像である。補正前画像(a)及び補正後画像(b)に示した点線は実際に画像中に映った被写体ではなく、歪みの形状を示すための補助線である。補正前画像(a)は代表的な歪みの形状であるたる型歪みが発生した結果、画像の中心から周辺に向けて放射状に歪んでいる。ステレオ画像処理部0102は、対応表を参照して、生成したい補正後画像の各画素に対応した補正前座標の位置を決定し、補正前座標に格納されている輝度データあるいは色データを補正後画像の座標に保存する。この例では、対応表に置いて補正後座標がピクセル精度で記載されているのに対し、補正前座標はサブピクセル精度で記載されているため、補正前座標の輝度データまたは色データは周辺のピクセル精度の座標から再近隣補間法や共線形補間法などによる補間処理を行うことで精度の良い補正処理を行うことができる。対応表に予め複数の補間先の座標を記すことで、データ量が増大するが補間時の演算処理の低減を図ることも可能である。このようにカメラ情報として補正処理時の補正前座標と補正後座標の対応表を格納しておくことで、補正処理の高速化を図ることができる。   In FIG. 7, (a) is image data output from the first imaging unit or the second imaging unit and is a captured image before lens distortion correction, and (b) is the lens distortion correction information from the camera information storage unit 0104 before correction. A correspondence table of coordinates and coordinates after correction is acquired and a captured image (a) is corrected according to the correspondence table, and (c) is a correspondence image used for correction. The dotted lines shown in the pre-correction image (a) and the post-correction image (b) are not the subject actually reflected in the image, but are auxiliary lines for indicating the shape of distortion. The uncorrected image (a) is distorted radially from the center to the periphery of the image as a result of the occurrence of the barrel distortion, which is a typical distortion shape. The stereo image processing unit 0102 refers to the correspondence table, determines the position of the coordinates before correction corresponding to each pixel of the corrected image to be generated, and corrects the luminance data or the color data stored in the coordinates before correction. Save to image coordinates. In this example, the coordinates after correction are described in pixel accuracy in the correspondence table, whereas the coordinates before correction are described in sub-pixel accuracy, so the luminance data or color data of the coordinates before correction are A highly accurate correction process can be performed by performing an interpolation process such as a re-neighbor interpolation method or a collinear interpolation method from the coordinates of pixel accuracy. By previously writing a plurality of interpolation destination coordinates in the correspondence table, the amount of data increases, but it is also possible to reduce the arithmetic processing during interpolation. By storing the correspondence table between the coordinates before correction and the coordinates after correction as camera information in this way, the speed of the correction process can be increased.

また、図7では、対応表を用いた補正処理の例としてレンズ歪み補正処理を示したが、同様に撮像部間の倍率補正処理や平行化処理を行うことも可能である。撮像部間の倍率補正処理は撮像部毎の焦点距離値の相対比から補正前座標と補正後座標の対応をとることで行うことが可能である。また撮像部間で画像上の対応する点が同一の水平ラインに並ぶように補正する平行化処理は、例えば文献「徐剛、辻三郎、”3次元ビジョン”、共立出版(1998)」に書かれた方法を用い、撮像部毎の内部パラメータと撮像部間の外部パラメータと、それらのパラメータから算出可能な基礎行列を用いて、補正前座標と補正後座標の対応をとることで行うことが可能である。このように、各補正処理を順次行うのではなく、各補正処理を行った場合の最終的な補正後座標と補正前座標との対応をとることで、実際の画像補正処理を一度に行い、画像補正に伴う画質劣化の影響を低減しても良い。   In FIG. 7, the lens distortion correction process is shown as an example of the correction process using the correspondence table, but it is also possible to perform the magnification correction process and the parallelization process between the imaging units. The magnification correction process between the imaging units can be performed by taking the correspondence between the coordinates before correction and the coordinates after correction from the relative ratio of the focal length values for each imaging unit. Further, the parallelization processing for correcting the corresponding points on the image between the imaging units so as to be aligned on the same horizontal line is written in, for example, the document “Xugang, Saburo Tsubasa,“ 3D Vision ”, Kyoritsu Publishing (1998)”. This method can be used by taking the correspondence between the coordinates before correction and the coordinates after correction using the internal parameters for each imaging unit, the external parameters between the imaging units, and the basic matrix that can be calculated from those parameters. It is. Thus, instead of sequentially performing each correction process, by taking the correspondence between the final corrected coordinates and the uncorrected coordinates when each correction process is performed, the actual image correction process is performed at one time, You may reduce the influence of the image quality deterioration accompanying image correction.

図8は本発明の第1実施例に係る対応表を用いたレンズ歪み及び倍率補正処理の一例を示す図である。図8における対応表を用いたレンズ歪み及び倍率補正補正処理は、図6に示したステレオ画像処理シーケンスにおいてST0604で実行される。   FIG. 8 is a diagram showing an example of lens distortion and magnification correction processing using the correspondence table according to the first embodiment of the present invention. The lens distortion and magnification correction correction processing using the correspondence table in FIG. 8 is executed in ST0604 in the stereo image processing sequence shown in FIG.

図8において、(a)は第一の撮像部が出力する画像データでレンズ歪み補正前の撮像画像、(b)はカメラ情報格納部0104からレンズ歪み補正情報として補正前座標と補正後座標の対応表を取得し、撮像画像(a)を対応表に従って補正した補正後画像、(c)は
カメラ情報格納部0104からレンズ歪み補正と、第一の撮像部と第二の撮像部との間の倍率を補正する倍率補正を行う対応表を取得し、撮像画像(a)を対応表に従って補正した補正後画像、(d)は第二の撮像部が出力する画像データを(b)と同様に補正した補正後画像である。第一の撮像部の補正前画像(a)及び第一の撮像部のレンズ歪み補正後画像(b)及び第一の撮像部の倍率補正後画像(c)及び第二の撮像部のレンズ歪み補正後画像(d)に示した点線は実際に画像中に映った被写体ではなく、歪みの形状や撮像部間の倍率差を明示するための補助線である。ここでは、補正処理としてレンズ歪み補正と撮像部間の倍率補正を行っているが、補正前画像(a)からレンズ歪み補正後画像(b)を作成し、レンズ歪み補正後画像(b)から倍率補正後画像(c)を作成するのではなく、1つの対応表を用いて直接補正前画像(a)から倍率補正後画像(c)を作成することで画像補正による画質劣化を低減することを実現している。同様にカメラ間の平行化処理を一度に行うことも可能である。このように2つの撮像部におけるカメラ情報が、それぞれの撮像部のズーム制御位置とフォーカス制御位置から特定できるため、撮像部毎のレンズ歪みを補正するだけでなく、撮像部間のカメラ情報を用いてステレオ画像処理を最適に行うための補正処理を一度の補正処理として行うことが可能である。
In FIG. 8, (a) is the image data output from the first imaging unit and the captured image before the lens distortion correction, and (b) is the lens distortion correction information from the camera information storage unit 0104 as the coordinates before correction and the coordinates after correction. A corrected image obtained by acquiring a correspondence table and correcting the captured image (a) according to the correspondence table, (c) is a lens distortion correction from the camera information storage unit 0104, and between the first imaging unit and the second imaging unit. After obtaining a correspondence table for performing magnification correction for correcting the magnification of and correcting the captured image (a) according to the correspondence table, (d) is the image data output by the second imaging unit as in (b) It is an image after correction corrected to. Image before correction (a) of the first imaging unit, image (b) after correction of lens distortion of the first imaging unit, image after correction of magnification (c) of the first imaging unit, and lens distortion of the second imaging unit The dotted line shown in the corrected image (d) is not a subject actually reflected in the image, but an auxiliary line for clearly indicating the distortion shape and the magnification difference between the imaging units. Here, although the lens distortion correction and the magnification correction between the imaging units are performed as the correction processing, an image after lens distortion correction (b) is created from the image before correction (a), and the image after lens distortion correction (b) is created. Reduce image quality degradation due to image correction by creating magnification-corrected image (c) directly from pre-correction image (a) using one correspondence table instead of creating magnification-corrected image (c) Is realized. Similarly, it is possible to perform parallel processing between cameras at a time. Thus, since the camera information in the two imaging units can be specified from the zoom control position and the focus control position of each imaging unit, not only the lens distortion for each imaging unit is corrected, but also the camera information between the imaging units is used. Thus, the correction process for optimally performing the stereo image processing can be performed as a single correction process.

かように本実施例に拠れば、ズーミング及びフォーカシング昨日を有するステレオカメラにおいて、ズームやフォーカスの状態に依存して変化するカメラ情報については、ズームとフォーカスの組み合わせに応じた複数のカメラ情報を格納しておきステレオ画像処理に用いることで、ズーミングやフォーカシングを行った場合でも適切なカメラ情報を用いて高精度な3次元計測が行えるようになる。   Thus, according to the present embodiment, in the stereo camera having the zooming and focusing yesterday, for the camera information that changes depending on the zoom and focus state, a plurality of camera information corresponding to the combination of zoom and focus is stored. By using it for stereo image processing, highly accurate three-dimensional measurement can be performed using appropriate camera information even when zooming or focusing is performed.

図9は本発明の第2実施例に係る3次元計測装置を示す第一の模式図である。図9において0101_1は第一の撮像部、0101_2は第二の撮像部、0102はズーム・フォーカス制御部、0103はステレオ画像処理部、0104はカメラ情報格納部、0110はステレオカメラ部、0911はパンチルト制御部である。   FIG. 9 is a first schematic diagram showing a three-dimensional measuring apparatus according to the second embodiment of the present invention. In FIG. 9, 0101_1 is the first imaging unit, 0101_2 is the second imaging unit, 0102 is the zoom / focus control unit, 0103 is the stereo image processing unit, 0104 is the camera information storage unit, 0110 is the stereo camera unit, and 0911 is pan / tilt. It is a control unit.

図9に示した3次元計測装置において、ステレオカメラ部0110は図1で示したステレオカメラ部と同等の構成を持っており、パン方向またはチルト方向の回転が可能な回転台に取り付けされている。パンチルト制御部0911は、不図示のユーザ入力部より入力したユーザ入力や、不図示の画像認識部から取得した画像認識結果などの入力をもとに回転台を制御することで、ステレオカメラ部0110をパン方向またはチルト方向に動作させる。ステレオカメラ部0110はズーム機能及びフォーカス機能を有する撮像部を含むため、全体で監視向けドームカメラのようなパンチルトズーム機能を有するステレオカメラを構成している。図10はパンチルトズーム機能を有するステレオカメラの一例を示す概観図である。図10において、1010はズーム・フォーカス機能付きステレオカメラであり、ステレオカメラ部0110と同等の構成を持つ。1012は回転台であり、ズーム・フォーカス機能付きステレオカメラ1010のパン方向及びチルト方向に動作させることが可能である。   In the three-dimensional measuring apparatus shown in FIG. 9, the stereo camera unit 0110 has the same configuration as the stereo camera unit shown in FIG. 1, and is attached to a turntable that can rotate in the pan direction or the tilt direction. . The pan / tilt control unit 0911 controls the turntable based on a user input input from a user input unit (not shown) or an image recognition result acquired from an image recognition unit (not shown) to thereby control the stereo camera unit 0110. Is operated in the pan or tilt direction. Since the stereo camera unit 0110 includes an imaging unit having a zoom function and a focus function, the stereo camera unit 0110 constitutes a stereo camera having a pan / tilt zoom function like a surveillance dome camera as a whole. FIG. 10 is a schematic view showing an example of a stereo camera having a pan / tilt / zoom function. In FIG. 10, reference numeral 1010 denotes a stereo camera with a zoom / focus function, which has a configuration equivalent to that of the stereo camera unit 0110. Reference numeral 1012 denotes a turntable that can be operated in the pan and tilt directions of the stereo camera 1010 with a zoom / focus function.

図11は本発明の第2実施例に係るパンチルトが可能な3次元計測装置の動作の様子の一例を示す図である。   FIG. 11 is a diagram showing an example of the operation of the three-dimensional measuring apparatus capable of pan / tilt according to the second embodiment of the present invention.

図11において、1010はズーム・フォーカス機能付きステレオカメラ、1012は回転台、1013は被写体である。ズーム・フォーカス機能付きステレオカメラ1010は回転台1012に固定されて天井から下向きに設置されており、例えば屋内や庭先などの映像を取得することが可能である。図中の記号θは、ズーム・フォーカス機能付きステレオカメラ1010がチルト方向の動作をしたときの天井からの俯角であり、図10においては1台のズーム・フォーカス機能付きステレオカメラ1010が天井からの俯角がそれぞれ45度、90度、135度となった場合の様子を示している。このようにステレオカメラが異なる俯角を持って静止した状態においては、等量のズーミングまたはフォーカシング動作を行った場合でも、レンズ歪みや内部パラメータの変化の仕方が変わってくるおそれがある。そのため、カメラ情報格納部0104は、パンチルトズーム機能付きステレオカメラ1005の姿勢に応じたカメラ情報の変化量を事前に検出して補正情報として格納しておき、ステレオ画像処理0110がパンチルト制御部0911からズーム・フォーカス機能付きステレオカメラ1010の姿勢情報を取得し、対応する補正情報をカメラ情報格納部0104からカメラ情報と一緒に取得することで、このような姿勢差によるカメラ情報の変化を補正することができ、高精度な3次元計測処理を行うことができる。なお、ここでは、カメラ情報格納部0104に姿勢差に応じたカメラ情報の補正量を格納することを示したが、姿勢ごとのカメラ情報をそれぞれ事前に検出して格納しても良い。この場合格納するデータ量が増えるが、補正演算処理を行う必要が無いため、処理量の低減を図ることができる。また、俯角が0度から90度の範囲である場合と90度から180度の範囲である場合では、撮像の上下が反転する。このような場合のため、例えば第一の撮像部0101_1及び第二の撮像部0101_2が反転した映像を出力する、または、ステレオ画像処理部0103がステレオ画像処理を縦軸方向の座標を反転して行う機能を有する場合があるが、ステレオ画像処理に用いる画像の縦軸方向が反転することで、カメラ情報のうち例えばレンズ歪み補正情報や画像中心の情報なども画像の反転に応じた情報に対補正する必要がある。このような画像の反転に基づく補正情報をカメラ情報格納部0104に格納していても良い。   In FIG. 11, 1010 is a stereo camera with a zoom / focus function, 1012 is a turntable, and 1013 is a subject. A stereo camera 1010 with a zoom / focus function is fixed to a turntable 1012 and installed downward from the ceiling. For example, an image of indoors, a garden, or the like can be acquired. The symbol θ in the figure is the depression angle from the ceiling when the stereo camera 1010 with zoom / focus function operates in the tilt direction. In FIG. 10, one stereo camera 1010 with zoom / focus function is viewed from the ceiling. It shows a situation when the depression angle is 45 degrees, 90 degrees, and 135 degrees, respectively. In this manner, when the stereo camera is stationary with different depression angles, even when an equal amount of zooming or focusing operation is performed, the lens distortion and the manner of changing internal parameters may change. Therefore, the camera information storage unit 0104 detects in advance the amount of change in camera information corresponding to the attitude of the stereo camera 1005 with pan / tilt / zoom function and stores it as correction information, and the stereo image processing 0110 receives the information from the pan / tilt control unit 0911. By acquiring attitude information of the stereo camera 1010 with a zoom / focus function and acquiring corresponding correction information from the camera information storage unit 0104 together with the camera information, the change in the camera information due to such an attitude difference is corrected. Therefore, highly accurate three-dimensional measurement processing can be performed. Although the camera information storage unit 0104 stores the correction amount of the camera information according to the posture difference here, the camera information for each posture may be detected and stored in advance. In this case, the amount of data to be stored increases, but it is not necessary to perform correction calculation processing, so that the processing amount can be reduced. Further, when the depression angle is in the range of 0 to 90 degrees and in the range of 90 to 180 degrees, the upper and lower sides of the imaging are reversed. For such a case, for example, the first image capturing unit 0101_1 and the second image capturing unit 0101_2 output an inverted video, or the stereo image processing unit 0103 performs stereo image processing by inverting the coordinates in the vertical axis direction. Although the vertical axis direction of the image used for stereo image processing is inverted, for example, lens distortion correction information and information on the center of the image can be used for information corresponding to the inversion of the image. It is necessary to correct. Correction information based on such image inversion may be stored in the camera information storage unit 0104.

図12は本発明の第2実施例に係る3次元計測装置を示す第二の模式図である。図12において0101_1は第一の撮像部、0101_2は第二の撮像部、0102はズーム・フォーカス制御部、0103はステレオ画像処理部、0104はカメラ情報格納部、0110はステレオカメラ部、1205は温度検出部である。   FIG. 12 is a second schematic diagram showing a three-dimensional measuring apparatus according to the second embodiment of the present invention. In FIG. 12, 0101_1 is the first imaging unit, 0101_2 is the second imaging unit, 0102 is the zoom / focus control unit, 0103 is the stereo image processing unit, 0104 is the camera information storage unit, 0110 is the stereo camera unit, and 1205 is the temperature. It is a detection unit.

図11に示した3次元計測装置において、ステレオカメラ部0110は図1で示したステレオカメラ部と同等の構成を持っている。温度検出部1205は、ステレオカメラ部0110の第一の撮像部0101_1及び第二の撮像部0101_2の筐体の温度を絶対温度または、ある基準温度からの相対温度として計測することができる。ステレオカメラ部0110の姿勢差と同様に撮像時の温度によっても、レンズの膨張収縮や構造の変形などにより、ズーミングまたはフォーカシング動作を行った場合のレンズ歪みや内部パラメータの変化の仕方が変わってくるおそれがある。そのため、カメラ情報格納部0104は、第一の撮像部0101_1及び第二の撮像部0101_2の温度に応じたカメラ情報の変化量を事前に検出して補正情報として格納しておき、ステレオ画像処理0110が温度検出部1205から第一の撮像部0101_1及び第二の撮像部0101_2の温度情報を取得し、対応する補正情報をカメラ情報格納部0104からカメラ情報と一緒に取得することで、このような温度差によるカメラ情報の変化を補正することができ、高精度な3次元計測処理を行うことができる。なお、ここでは、カメラ情報格納部0104に温度に応じたカメラ情報の補正量を格納することを示したが、温度ごとのカメラ情報をそれぞれ事前に検出して格納しても良い。この場合格納するデータ量が増えるが、補正演算処理を行う必要が無いため、処理量の低減を図ることができる。   In the three-dimensional measuring apparatus shown in FIG. 11, the stereo camera unit 0110 has the same configuration as the stereo camera unit shown in FIG. The temperature detection unit 1205 can measure the temperature of the casing of the first imaging unit 0101_1 and the second imaging unit 0101_2 of the stereo camera unit 0110 as an absolute temperature or a relative temperature from a certain reference temperature. Similar to the difference in attitude of the stereo camera unit 0110, the lens distortion and internal parameter change method when zooming or focusing operation is changed due to the expansion and contraction of the lens and the deformation of the structure depending on the temperature at the time of imaging. There is a fear. Therefore, the camera information storage unit 0104 detects in advance the amount of change in camera information corresponding to the temperatures of the first imaging unit 0101_1 and the second imaging unit 0101_2, and stores them as correction information, and stereo image processing 0110. By acquiring the temperature information of the first imaging unit 0101_1 and the second imaging unit 0101_2 from the temperature detection unit 1205 and acquiring the corresponding correction information together with the camera information from the camera information storage unit 0104, Changes in camera information due to temperature differences can be corrected, and highly accurate three-dimensional measurement processing can be performed. Although the camera information storage unit 0104 stores the correction amount of the camera information according to the temperature here, the camera information for each temperature may be detected and stored in advance. In this case, the amount of data to be stored increases, but it is not necessary to perform correction calculation processing, so that the processing amount can be reduced.

また、上記のようなステレオカメラの姿勢差や温度のほかに、各撮像部について、ズーミング時のズームレンズの移動方向や、フォーカシング時のフォーカスレンズの移動方向によっても、等量のズーム倍率及びフォーカス位置におけるカメラ情報が異なる可能性がある。このような場合には、例えばズーミング時に一度ズーム制御位置をW端に合わせて、W端方向からT端方向にズーミングを行うなどズームレンズの移動方向が常に一定となるようにすればよい。同様に、フォーカシング時にフォーカス制御位置を合焦点位置が無限遠の場合のフォーカス制御位置に合わせて、ファー側からニア側にフォーカシングを行うように、フォーカスレンズの移動方向が常に一定となるように制御すればよい。このようにズームレンズ及びフォーカスレンズの移動方向を一定になるように制御することで、ズーミング及びフォーカシングに伴うカメラ情報の再現性の向上を図ることができる。   In addition to the stereo camera attitude difference and temperature described above, the zoom magnification and focus of the same amount can also be obtained for each imaging unit depending on the zoom lens movement direction during zooming and the focus lens movement direction during focusing. The camera information at the position may be different. In such a case, for example, the zoom control position may be adjusted to the W end once during zooming, and the zoom lens movement direction may be kept constant by zooming from the W end direction to the T end direction. Similarly, the focus lens movement direction is always fixed so that the focus control position is set to the focus control position when the in-focus position is at infinity during focusing, so that focusing is performed from the far side to the near side. do it. Thus, by controlling the movement directions of the zoom lens and the focus lens to be constant, the reproducibility of camera information accompanying zooming and focusing can be improved.

かように本実施例によれば、ステレオカメラの姿勢差や使用時の温度に基づくカメラ情報の補正やズーミング及びフォーカシングの移動方向の制御を行うことで、再現性の高いカメラ情報を用いて高精度なステレオ画像処理による3次元計測を行うことができる。   As described above, according to the present embodiment, the camera information is corrected based on the attitude difference of the stereo camera and the temperature during use, and the moving direction of zooming and focusing is controlled, so that the high reproducibility of the camera information can be used. Three-dimensional measurement by accurate stereo image processing can be performed.

なお、本発明は上記した実施例に限定されるものではなく、様々な変形例が含まれる。例えば、上記した実施例は本発明を分かりやすく説明するために詳細に説明したものであり、必ずしも説明した全ての構成を備えるものに限定されるものではない。また、ある実施例の構成の一部を他の実施例の構成に置き換えることが可能であり、また、ある実施例の構成に他の実施例の構成を加えることも可能である。   In addition, this invention is not limited to an above-described Example, Various modifications are included. For example, the above-described embodiments have been described in detail for easy understanding of the present invention, and are not necessarily limited to those having all the configurations described. Further, a part of the configuration of one embodiment can be replaced with the configuration of another embodiment, and the configuration of another embodiment can be added to the configuration of one embodiment.

本発明は監視カメラや車載カメラや立体視カメラに利用可能である。   The present invention is applicable to surveillance cameras, vehicle-mounted cameras, and stereoscopic cameras.

本発明の第1実施例に係る3次元計測装置を示す模式図である。1 is a schematic diagram showing a three-dimensional measuring apparatus according to a first embodiment of the present invention. 本発明の第1実施例に係るカメラ情報格納部におけるカメラ情報の格納方法の一例を示す図である。FIG. 6 is a diagram showing an example of a camera information storage method in the camera information storage unit according to the first embodiment of the present invention. 本発明の第1実施例に係るズームレンズとフォーカスレンズの関係を考慮したカメラ情報の格納方法の一例を示す図である。It is a figure which shows an example of the storage method of the camera information which considered the relationship between the zoom lens and focus lens which concern on 1st Example of this invention. 本発明の第1実施例に係るカメラ情報を格納するズーム制御位置とフォーカス制御位置を決定する方法の一例を示す第一の図である。It is a 1st figure which shows an example of the method of determining the zoom control position and focus control position which store the camera information based on 1st Example of this invention. 本発明の第1実施例に係るカメラ情報を格納するズーム制御位置とフォーカス制御位置を決定する方法の一例を示す第二の図である。It is a 2nd figure which shows an example of the method of determining the zoom control position and focus control position which store the camera information based on 1st Example of this invention. 本発明の第1実施例に係るカメラ情報を用いたステレオ画像処理シーケンスの一例を示す図である。It is a figure which shows an example of the stereo image processing sequence using the camera information which concerns on 1st Example of this invention. 本発明の第1実施例に係る対応表を用いたレンズ歪み補正処理の一例を示す図である。It is a figure which shows an example of the lens distortion correction process using the correspondence table which concerns on 1st Example of this invention. 本発明の第1実施例に係る対応表を用いたレンズ歪み及び倍率補正処理の一例を示すである。It is an example of a lens distortion and magnification correction process using the correspondence table according to the first embodiment of the present invention. 本発明の第2実施例に係るパンチルトズーム機能を有するステレオカメラの一例を示す概観図である。It is a general-view figure which shows an example of the stereo camera which has the pan tilt zoom function based on 2nd Example of this invention. 本発明の第2実施例に係る3次元計測装置を示す第一の模式図である。It is a 1st schematic diagram which shows the three-dimensional measuring apparatus which concerns on 2nd Example of this invention. 本発明の第2実施例に係るパンチルトが可能な3次元計測装置の動作の様子の一例を示す図である。It is a figure which shows an example of the mode of operation | movement of the three-dimensional measuring apparatus which can perform the pan-tilt based on 2nd Example of this invention. 本発明の第2実施例に係る3次元計測装置を示す第二の模式図である。It is a 2nd schematic diagram which shows the three-dimensional measuring apparatus which concerns on 2nd Example of this invention.

符号の説明Explanation of symbols

0101_1 第一の撮像部
0101_2 第二の撮像部
0102 ズーム・フォーカス制御部
0103 ステレオ画像処理部
0104 カメラ情報格納部
0110 ステレオカメラ部
0911 パンチルト制御部
1010 ズーム・フォーカス機能付きステレオカメラ
1012 回転台
1113 被写体
1205 温度検出部
0101_1 First imaging unit 0101_2 Second imaging unit 0102 Zoom / focus control unit 0103 Stereo image processing unit 0104 Camera information storage unit 0110 Stereo camera unit 0911 Pan / tilt control unit 1010 Stereo camera 1012 with zoom / focus function Rotary table 1113 Subject 1205 Temperature detector

Claims (10)

ズーム及びフォーカスが可変な撮像手段を1つ以上含む複数の撮像手段と、
該ズーム及びフォーカスが可変な撮像手段のズーミング及びフォーカシングを制御するズーム・フォーカス制御手段と、
該複数の撮像手段が出力した撮像画像をステレオ画像処理し3次元情報を計測するステレオ画像処理手段と、
該ステレオ画像処理手段がステレオ画像処理を行うために必要なカメラ情報を格納するカメラ情報格納手段と、
を備え、
該カメラ情報格納部が格納するカメラ情報のうち、該ズーム及びフォーカスが可変な撮像手段のズームの状態またはフォーカスの状態に依存して変わるカメラ情報については、その状態に応じた複数のカメラ情報を持ち、
該ステレオ画像処理手段が、該ズーム・フォーカス制御手段から該ズーム及びフォーカスが可変な撮像手段のズームの状態及びフォーカスの状態を取得して、該ステレオカメラ情報格納手段から対応するカメラ情報を取得し、ステレオ画像処理に用いること、
を特徴とする3次元計測装置。
A plurality of imaging means including one or more imaging means with variable zoom and focus;
Zoom / focus control means for controlling zooming and focusing of the imaging means with variable zoom and focus;
Stereo image processing means for processing three-dimensional information by performing stereo image processing on the captured images output by the plurality of imaging means;
Camera information storage means for storing camera information necessary for the stereo image processing means to perform stereo image processing;
With
Among the camera information stored in the camera information storage unit, for the camera information that changes depending on the zoom state or the focus state of the imaging means whose zoom and focus are variable, a plurality of camera information corresponding to the state is obtained. Have
The stereo image processing means acquires the zoom state and focus state of the imaging means with variable zoom and focus from the zoom / focus control means, and acquires corresponding camera information from the stereo camera information storage means. Used for stereo image processing,
3D measuring device.
請求項1に記載の3次元計測装置において、
前記カメラ情報格納手段が複数のカメラ情報を持つ際に、前記ズーム及びフォーカスが可変な撮像手段のズームの状態とフォーカスの状態が特定の組み合わせである場合に、その状態に応じたカメラ情報を格納すること、
を特徴とする3次元計測装置。
The three-dimensional measurement apparatus according to claim 1,
When the camera information storage means has a plurality of camera information, if the zoom state and the focus state of the imaging means with variable zoom and focus are in a specific combination, the camera information corresponding to the state is stored. To do,
3D measuring device.
請求項1に記載の3次元計測装置において、
前記ズーム及びフォーカスが可変な撮像手段のズームの状態及びフォーカスの状態を示す情報として、ズームレンズを制御するステッピングモータのステップ情報と、フォーカスレンズを制御するステッピングモータのステップ情報をそれぞれ用いること、
を特徴とする3次元計測装置。
The three-dimensional measurement apparatus according to claim 1,
Step information of the stepping motor that controls the zoom lens and step information of the stepping motor that controls the focus lens are used as information indicating the zoom state and the focus state of the imaging means with variable zoom and focus, respectively.
3D measuring device.
請求項1に記載の3次元計測装置において、
前記カメラ情報格納手段が格納するカメラ情報のうち、前記ズーム及びフォーカスが可変な撮像手段のズームの状態またはフォーカスの状態に依存して変わるカメラ情報としては撮像手段毎のレンズ歪みまたは焦点距離または画像中心またはせん断に関する情報を、前記ズーム及びフォーカスが可変な撮像手段のズームの状態またはフォーカスの状態に依存しないカメラ情報としては撮像手段間の回転または並進に関する情報を含み、前記カメラ情報格納手段がカメラ情報としてこのうち1種類以上の情報を持つこと、
を特徴とする3次元計測装置。
The three-dimensional measurement apparatus according to claim 1,
Among the camera information stored in the camera information storage means, the camera information that changes depending on the zoom state or the focus state of the imaging means with variable zoom and focus is the lens distortion or focal length or image for each imaging means. The information on the center or shear includes camera information that does not depend on the zoom state or focus state of the image pickup means with variable zoom and focus, and information on rotation or translation between the image pickup means, and the camera information storage means is a camera Have one or more types of information as information,
3D measuring device.
請求項1に記載の3次元計測装置において、
前記ステレオ画像処理手段が、ステレオ画像処理の前処理としてレンズ歪みを補正する際に、前記複数の撮像手段の間のズームの状態及びフォーカスの状態の相対差を前記カメラ情報格納手段の格納するカメラ情報を用いて同時に補正すること、
を特徴とする3次元計測装置。
The three-dimensional measurement apparatus according to claim 1,
When the stereo image processing unit corrects lens distortion as a pre-process of stereo image processing, the camera information storage unit stores a relative difference between the zoom state and the focus state between the plurality of imaging units. Correcting at the same time using information,
3D measuring device.
請求項1に記載の3次元計測装置において、
前記撮像制御装置が前記ズーム及びフォーカスが可変な撮像手段のズーミングまたはフォーカシングを制御するときに、ズームレンズの移動方向及びフォーカスレンズの移動方向が常に一定になるように制御すること、
を特徴とする3次元計測装置。
The three-dimensional measurement apparatus according to claim 1,
When the imaging control device controls zooming or focusing of the imaging means with variable zoom and focus, the zoom lens movement direction and the focus lens movement direction are always controlled to be constant;
3D measuring device.
ズーム及びフォーカスが可変な撮像手段を1つ以上含む複数の撮像手段と、
該ズーム及びフォーカスが可変な撮像手段を制御するズーム・フォーカス制御手段と、
該複数の撮像手段が出力した撮像画像をステレオ画像処理し3次元情報を計測するステレオ画像処理手段と、
該ステレオ画像処理手段がステレオ画像処理を行うために必要なカメラ情報を格納するカメラ情報格納手段と、
該複数の撮像手段が撮像する際の撮像環境を検出する撮像環境検出手段と、
該複数の撮像手段のパン方向及びチルト方向の移動を制御するパンチルト制御手段と
を備え、
該カメラ情報格納部が格納するカメラ情報のうち、該ズーム及びフォーカスが可変な撮像手段のズームの状態またはフォーカスの状態に依存して変わるカメラ情報については、その状態に応じた複数のカメラ情報を持ち、
該ステレオ画像処理手段が、該ズーム・フォーカス制御手段から該ズーム及びフォーカスが可変な撮像手段のズームの状態及びフォーカスの状態を取得して、該ステレオカメラ情報格納手段から対応するカメラ情報を取得し、ステレオ画像処理に用いること、
を特徴とする3次元計測装置。
A plurality of imaging means including one or more imaging means with variable zoom and focus;
Zoom / focus control means for controlling the imaging means with variable zoom and focus;
Stereo image processing means for performing stereo image processing on the captured images output by the plurality of imaging means and measuring three-dimensional information;
Camera information storage means for storing camera information necessary for the stereo image processing means to perform stereo image processing;
Imaging environment detection means for detecting an imaging environment when the plurality of imaging means capture images;
Pan-tilt control means for controlling movement in the pan direction and tilt direction of the plurality of imaging means,
Among the camera information stored in the camera information storage unit, for the camera information that changes depending on the zoom state or the focus state of the imaging means whose zoom and focus are variable, a plurality of camera information corresponding to the state is obtained. Have
The stereo image processing means acquires the zoom state and focus state of the imaging means with variable zoom and focus from the zoom / focus control means, and acquires corresponding camera information from the stereo camera information storage means. Used for stereo image processing,
A three-dimensional measuring device characterized by
ズーム及びフォーカスが可変な撮像手段を1つ以上含む複数の撮像手段と、
該ズーム及びフォーカスが可変な撮像手段を制御するズーム・フォーカス制御手段と、
該複数の撮像手段が出力した撮像画像をステレオ画像処理し3次元情報を計測するステレオ画像処理手段と、
該ステレオ画像処理手段がステレオ画像処理を行うために必要なカメラ情報を格納するカメラ情報格納手段と、
該複数の撮像手段が撮像する際の撮像環境を検出する撮像環境検出手段と、
該複数の撮像手段の温度測定を行う温度検出部と、
を備え、
該カメラ情報格納部が格納するカメラ情報のうち、該ズーム及びフォーカスが可変な撮像手段のズームの状態またはフォーカスの状態に依存して変わるカメラ情報については、その状態に応じた複数のカメラ情報を持ち、
該ステレオ画像処理手段が、該ズーム・フォーカス制御手段から該ズーム及びフォーカスが可変な撮像手段のズームの状態及びフォーカスの状態を取得して、該ステレオカメラ情報格納手段から対応するカメラ情報を取得し、ステレオ画像処理に用いること、
を特徴とする3次元計測装置。
A plurality of imaging means including one or more imaging means with variable zoom and focus;
Zoom / focus control means for controlling the imaging means with variable zoom and focus;
Stereo image processing means for performing stereo image processing on the captured images output by the plurality of imaging means and measuring three-dimensional information;
Camera information storage means for storing camera information necessary for the stereo image processing means to perform stereo image processing;
Imaging environment detection means for detecting an imaging environment when the plurality of imaging means capture images;
A temperature detector for measuring the temperature of the plurality of imaging means;
With
Among the camera information stored in the camera information storage unit, for the camera information that changes depending on the zoom state or the focus state of the imaging means whose zoom and focus are variable, a plurality of camera information corresponding to the state is obtained. Have
The stereo image processing means acquires the zoom state and focus state of the imaging means with variable zoom and focus from the zoom / focus control means, and acquires corresponding camera information from the stereo camera information storage means. Used for stereo image processing,
A three-dimensional measuring device characterized by
請求項7から8に記載の3次元計測装置において、
前記カメラ情報格納手段が前記複数の撮像手段のパンチルトの姿勢または温度に応じたカメラ情報の補正データを格納しており、
前記ステレオ画像処理手段がパンチルトの姿勢または温度に応じて補正したカメラ情報を用いてステレオ画像処理を行うこと、
を特徴とする3次元計測装置。
In the three-dimensional measuring apparatus according to claim 7-8,
The camera information storage means stores correction information of camera information corresponding to the pan / tilt posture or temperature of the plurality of imaging means,
Performing stereo image processing using the camera information corrected by the stereo image processing means in accordance with the posture or temperature of pan / tilt,
3D measuring device.
請求項7から8に記載の3次元計測装置において、
前記カメラ情報格納手段が前記複数の撮像手段のズーム状態及びフォーカスの状態及びパンチルトの姿勢または温度に応じた複数のカメラ情報を格納しており、
前記ステレオ画像処理手段が前記複数の撮像手段のズーム状態及びフォーカスの状態及びパンチルトの姿勢または温度に応じて補正したカメラ情報を用いてステレオ画像処理を行うこと、
を特徴とする3次元計測装置。
In the three-dimensional measuring apparatus according to claim 7-8,
The camera information storage means stores a plurality of camera information corresponding to a zoom state and a focus state and a pan / tilt posture or temperature of the plurality of imaging means;
The stereo image processing means performs stereo image processing using camera information corrected according to a zoom state and a focus state and a pan / tilt attitude or temperature of the plurality of imaging means;
3D measuring device.
JP2007083276A 2007-03-28 2007-03-28 3D measuring device Active JP4858263B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007083276A JP4858263B2 (en) 2007-03-28 2007-03-28 3D measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007083276A JP4858263B2 (en) 2007-03-28 2007-03-28 3D measuring device

Publications (2)

Publication Number Publication Date
JP2008241491A true JP2008241491A (en) 2008-10-09
JP4858263B2 JP4858263B2 (en) 2012-01-18

Family

ID=39913021

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007083276A Active JP4858263B2 (en) 2007-03-28 2007-03-28 3D measuring device

Country Status (1)

Country Link
JP (1) JP4858263B2 (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011125937A1 (en) * 2010-04-06 2011-10-13 富士フイルム株式会社 Calibration data selection device, method of selection, selection program, and three dimensional position measuring device
JP2011227073A (en) * 2010-03-31 2011-11-10 Saxa Inc Three-dimensional position measuring device
WO2012011227A1 (en) 2010-07-22 2012-01-26 パナソニック株式会社 Stereo distance measurement apparatus and stereo distance measurement method
JP2012057996A (en) * 2010-09-07 2012-03-22 Mitsutoyo Corp Image measuring device and image measuring method
JP2012198031A (en) * 2011-03-18 2012-10-18 Ricoh Co Ltd Image correction method and image correction device
US8654195B2 (en) 2009-11-13 2014-02-18 Fujifilm Corporation Distance measuring apparatus, distance measuring method, distance measuring program, distance measuring system, and image pickup apparatus
JP2014527196A (en) * 2011-08-03 2014-10-09 トゥルアリティ, エルエルシー Method for correcting zoom setting and / or vertical offset of stereo film frame, and control or adjustment system for a camera rig having two cameras
JP2014216674A (en) * 2013-04-22 2014-11-17 キヤノン株式会社 Information processing apparatus and information processing method
JP2015021758A (en) * 2013-07-16 2015-02-02 株式会社キーエンス Three-dimensional image processor, three-dimensional image processing method, three-dimensional image processing program, computer-readable recording medium, and recording apparatus
JP2016090549A (en) * 2014-11-11 2016-05-23 倉敷紡績株式会社 Three-dimensional measuring device
JP2017034721A (en) * 2016-11-02 2017-02-09 キヤノン株式会社 Signal processing device, signal processing method, computer program, and lens unit
US9602801B2 (en) 2011-07-18 2017-03-21 Truality, Llc Method for smoothing transitions between scenes of a stereo film and controlling or regulating a plurality of 3D cameras
JP2017535985A (en) * 2014-09-03 2017-11-30 ネクストブイアール・インコーポレイテッド Method and apparatus for capturing, streaming and / or playing content
WO2019138835A1 (en) * 2018-01-12 2019-07-18 キヤノン株式会社 Information processing system, information processing device, information processing method, and program
WO2019216229A1 (en) * 2018-05-09 2019-11-14 ソニー株式会社 Data processing device, data processing method, and program
US10952827B2 (en) 2014-08-15 2021-03-23 Align Technology, Inc. Calibration of an intraoral scanner
CN113473018A (en) * 2021-07-01 2021-10-01 百果园技术(新加坡)有限公司 Video shooting method and device, shooting terminal and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0461387A (en) * 1990-06-29 1992-02-27 Sanyo Electric Co Ltd Magnetic sensor and magnetic rotary encoder
JPH06323821A (en) * 1993-05-13 1994-11-25 Matsushita Electric Ind Co Ltd Skeleton data preparing equipment
JPH0841861A (en) * 1994-07-27 1996-02-13 Shohei Senda Multi-shaft stirring and mixing device for soil improvement
JPH08159762A (en) * 1994-12-01 1996-06-21 Asahi Koyo Kk Method and apparatus for extracting three-dimensional data and stereo image forming apparatus
JP2000074665A (en) * 1998-06-19 2000-03-14 Sony Corp Device and method for generating distance image
JP2001119721A (en) * 1999-10-18 2001-04-27 Asahi Optical Co Ltd Three-dimensional image detector
JP2006003263A (en) * 2004-06-18 2006-01-05 Hitachi Ltd Visual information processor and application system
JP2006090756A (en) * 2004-09-21 2006-04-06 Victor Co Of Japan Ltd Camera calibration device
JP2007081806A (en) * 2005-09-14 2007-03-29 Konica Minolta Holdings Inc Image sensing system
JP2007225434A (en) * 2006-02-23 2007-09-06 Yaskawa Electric Corp Three-dimensional measuring device
JP2007263611A (en) * 2006-03-27 2007-10-11 Yokohama Rubber Co Ltd:The Distortion measuring instrument and method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0461387A (en) * 1990-06-29 1992-02-27 Sanyo Electric Co Ltd Magnetic sensor and magnetic rotary encoder
JPH06323821A (en) * 1993-05-13 1994-11-25 Matsushita Electric Ind Co Ltd Skeleton data preparing equipment
JPH0841861A (en) * 1994-07-27 1996-02-13 Shohei Senda Multi-shaft stirring and mixing device for soil improvement
JPH08159762A (en) * 1994-12-01 1996-06-21 Asahi Koyo Kk Method and apparatus for extracting three-dimensional data and stereo image forming apparatus
JP2000074665A (en) * 1998-06-19 2000-03-14 Sony Corp Device and method for generating distance image
JP2001119721A (en) * 1999-10-18 2001-04-27 Asahi Optical Co Ltd Three-dimensional image detector
JP2006003263A (en) * 2004-06-18 2006-01-05 Hitachi Ltd Visual information processor and application system
JP2006090756A (en) * 2004-09-21 2006-04-06 Victor Co Of Japan Ltd Camera calibration device
JP2007081806A (en) * 2005-09-14 2007-03-29 Konica Minolta Holdings Inc Image sensing system
JP2007225434A (en) * 2006-02-23 2007-09-06 Yaskawa Electric Corp Three-dimensional measuring device
JP2007263611A (en) * 2006-03-27 2007-10-11 Yokohama Rubber Co Ltd:The Distortion measuring instrument and method

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8654195B2 (en) 2009-11-13 2014-02-18 Fujifilm Corporation Distance measuring apparatus, distance measuring method, distance measuring program, distance measuring system, and image pickup apparatus
JP2011227073A (en) * 2010-03-31 2011-11-10 Saxa Inc Three-dimensional position measuring device
WO2011125937A1 (en) * 2010-04-06 2011-10-13 富士フイルム株式会社 Calibration data selection device, method of selection, selection program, and three dimensional position measuring device
CN102822621A (en) * 2010-04-06 2012-12-12 富士胶片株式会社 Calibration data selection device, method of selection, selection program, and three dimensional position measuring device
US8995753B2 (en) 2010-07-22 2015-03-31 Panasonic Corporation Stereo distance measurement apparatus and stereo distance measurement method
WO2012011227A1 (en) 2010-07-22 2012-01-26 パナソニック株式会社 Stereo distance measurement apparatus and stereo distance measurement method
JP2012057996A (en) * 2010-09-07 2012-03-22 Mitsutoyo Corp Image measuring device and image measuring method
JP2012198031A (en) * 2011-03-18 2012-10-18 Ricoh Co Ltd Image correction method and image correction device
US9602801B2 (en) 2011-07-18 2017-03-21 Truality, Llc Method for smoothing transitions between scenes of a stereo film and controlling or regulating a plurality of 3D cameras
US10165249B2 (en) 2011-07-18 2018-12-25 Truality, Llc Method for smoothing transitions between scenes of a stereo film and controlling or regulating a plurality of 3D cameras
JP2014527196A (en) * 2011-08-03 2014-10-09 トゥルアリティ, エルエルシー Method for correcting zoom setting and / or vertical offset of stereo film frame, and control or adjustment system for a camera rig having two cameras
US10356329B2 (en) 2011-08-03 2019-07-16 Christian Wieland Method for correcting the zoom setting and/or the vertical offset of frames of a stereo film and control or regulating system of a camera rig having two cameras
JP2014216674A (en) * 2013-04-22 2014-11-17 キヤノン株式会社 Information processing apparatus and information processing method
JP2015021758A (en) * 2013-07-16 2015-02-02 株式会社キーエンス Three-dimensional image processor, three-dimensional image processing method, three-dimensional image processing program, computer-readable recording medium, and recording apparatus
US10952827B2 (en) 2014-08-15 2021-03-23 Align Technology, Inc. Calibration of an intraoral scanner
JP2017535985A (en) * 2014-09-03 2017-11-30 ネクストブイアール・インコーポレイテッド Method and apparatus for capturing, streaming and / or playing content
US11122251B2 (en) 2014-09-03 2021-09-14 Apple Inc. Methods and apparatus for receiving and/or playing back content
JP2016090549A (en) * 2014-11-11 2016-05-23 倉敷紡績株式会社 Three-dimensional measuring device
JP2017034721A (en) * 2016-11-02 2017-02-09 キヤノン株式会社 Signal processing device, signal processing method, computer program, and lens unit
WO2019138835A1 (en) * 2018-01-12 2019-07-18 キヤノン株式会社 Information processing system, information processing device, information processing method, and program
WO2019216229A1 (en) * 2018-05-09 2019-11-14 ソニー株式会社 Data processing device, data processing method, and program
US11438570B2 (en) * 2018-05-09 2022-09-06 Sony Corporation Data processing apparatus and data processing method for generation of calibration data for performing image processing
CN113473018A (en) * 2021-07-01 2021-10-01 百果园技术(新加坡)有限公司 Video shooting method and device, shooting terminal and storage medium
CN113473018B (en) * 2021-07-01 2023-10-31 百果园技术(新加坡)有限公司 Video shooting method and device, shooting terminal and storage medium

Also Published As

Publication number Publication date
JP4858263B2 (en) 2012-01-18

Similar Documents

Publication Publication Date Title
JP4858263B2 (en) 3D measuring device
JP6663040B2 (en) Depth information acquisition method and apparatus, and image acquisition device
JP5839786B2 (en) Image pickup apparatus and tracking data adjustment method
JP4957134B2 (en) Distance measuring device
US20090214107A1 (en) Image processing apparatus, method, and program
CN106998413A (en) Image processing equipment, picture pick-up device and image processing method
US20220180484A1 (en) Image processing method, electronic device, and computer-readable storage medium
US20070223905A1 (en) Auto-focus performance
JP6014452B2 (en) FOCUS DETECTION DEVICE, LENS DEVICE HAVING THE SAME, AND IMAGING DEVICE
CN109598764A (en) Camera calibration method and device, electronic equipment, computer readable storage medium
JP2011149931A (en) Distance image acquisition device
JP2010258669A (en) Omnidirectional imaging apparatus
TWI398716B (en) Use the flash to assist in detecting focal lengths
JP2019168479A (en) Controller, imaging device, method for control, program, and, and storage medium
JP2006203504A (en) Image pickup device
JP5925109B2 (en) Image processing apparatus, control method thereof, and control program
CN109685854A (en) Camera calibration method and device, electronic equipment, computer readable storage medium
JP2005252680A (en) Lens system
CN111246108B (en) Hall sensor calibration method and device and anti-shake method and device
JP2007267063A (en) Imaging apparatus
JP2011124837A (en) Image synthesizing apparatus
JP5251203B2 (en) Image processing apparatus and image processing program
JP2020067511A (en) Camera system, control method and program of the same
JP2013228589A (en) Image capturing device and control method for the same
JP5176845B2 (en) Image tracking device and imaging device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090915

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110719

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110720

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110915

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111004

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

R151 Written notification of patent or utility model registration

Ref document number: 4858263

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20141111

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250