JP2009002789A - Portable measuring device, and measuring method using the same - Google Patents

Portable measuring device, and measuring method using the same Download PDF

Info

Publication number
JP2009002789A
JP2009002789A JP2007163800A JP2007163800A JP2009002789A JP 2009002789 A JP2009002789 A JP 2009002789A JP 2007163800 A JP2007163800 A JP 2007163800A JP 2007163800 A JP2007163800 A JP 2007163800A JP 2009002789 A JP2009002789 A JP 2009002789A
Authority
JP
Japan
Prior art keywords
image
recording
focus
photographed image
photographed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007163800A
Other languages
Japanese (ja)
Inventor
Keizo Ochi
圭三 越智
Koji Yamamoto
廣治 山元
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.)
Konica Minolta Opto Inc
Original Assignee
Konica Minolta Opto Inc
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 Konica Minolta Opto Inc filed Critical Konica Minolta Opto Inc
Priority to JP2007163800A priority Critical patent/JP2009002789A/en
Publication of JP2009002789A publication Critical patent/JP2009002789A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a small-sized, inexpensive and portable measuring device capable of acquiring easily a focused image. <P>SOLUTION: This portable measuring device capable of measuring a measuring object, in a state of being held by a user's hand, is equipped with an imaging means for acquiring a photographed image by photographing the measuring object, a recording means for recording a photographed image group acquired by continuously photographing during a fixed period by the imaging means; an instruction input means for performing instruction input, in order to make a recording operation of the photographed image group start in the fixed period, and a selection means for selecting a photographed image, having the highest focusing degree from among a plurality of photographed images recorded in the recording means. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、手持ちで被測定物の計測を行うことが可能な携帯型計測器に関し、特に、被測定物を撮像して合焦画像を取得する携帯型計測器及びこれを用いた計測方法に関する。   The present invention relates to a portable measuring instrument capable of measuring an object to be measured by hand, and more particularly to a portable measuring instrument that captures an image of the object to be measured and obtains a focused image, and a measurement method using the same. .

従来、例えば医療用の患部形状計測器や内視鏡スケールといった被測定物の三次元形状を非接触で測定する三次元計測器(特許文献1参照)など、ユーザが手で持って(手持ちで)被測定物の計測を行うことが可能な携帯型計測器(ハンディタイプの計測器)が知られている。この携帯型計測器による計測時には、被測定物を撮像して焦点(ピント)が合った画像(合焦画像)を取得する。当該撮像時の焦点を合わせる方式として固定焦点(パンフォーカス)方式がある。
特開平4−12724号公報 特開平9−325018号公報
Conventionally, for example, a three-dimensional measuring instrument that measures a three-dimensional shape of an object to be measured such as a medical disease shape measuring instrument or an endoscope scale in a non-contact manner (see Patent Document 1), etc. ) A portable measuring instrument (handy type measuring instrument) capable of measuring an object to be measured is known. At the time of measurement by the portable measuring instrument, an object to be measured is imaged and an image (in-focus image) in focus is obtained. There is a fixed focus (pan focus) method as a method of adjusting the focus at the time of imaging.
Japanese Patent Laid-Open No. 4-12724 JP-A-9-325018

しかしながら、上記固定焦点方式では焦点位置が固定されているため、携帯型計測器を手で移動すなわち被測定物に対して遠近移動させることで焦点を合わせる必要があるが、正しい合焦位置を見付け、この距離(焦点距離)を固定して合焦画像を得ることは容易ではない。また、このような固定焦点でなく焦点可変であったとしても、マニュアルフォーカスの場合、当該手持ちであり被測定物との距離を固定できないため、フォーカシング機能自体が意味をもたない。一方、オートフォーカス(AF)方式(特許文献2参照)の場合には、上記正しい合焦位置を容易に見付けることは可能となるものの、AF機能(AF機構)を備える分だけ携帯型計測器のサイズアップ(大型化)やコストアップを招いてしまう。   However, since the focus position is fixed in the above fixed focus method, it is necessary to adjust the focus by moving the portable measuring instrument by hand, that is, by moving the object far or away from the object to be measured. It is not easy to obtain a focused image with this distance (focal length) fixed. Further, even if the focus is variable instead of such a fixed focus, in the case of manual focus, the distance from the object to be measured cannot be fixed and the focusing function itself has no meaning. On the other hand, in the case of the autofocus (AF) method (see Patent Document 2), the correct focus position can be easily found, but the portable measuring instrument has only the AF function (AF mechanism). This leads to an increase in size (upsizing) and cost.

本発明は上記事情に鑑みてなされたもので、携帯型であっても、計測における合焦画像を容易に取得することが可能な携帯型計測器及びこれを用いた計測方法を提供することを目的とする。   The present invention has been made in view of the above circumstances, and provides a portable measuring instrument that can easily acquire a focused image in measurement even if it is portable, and a measurement method using the portable measuring instrument. Objective.

本発明に係る携帯型計測器は、ユーザが手に持った状態で被測定物の計測を行うことが可能な携帯型計測器であって、前記被測定物を撮影して撮影画像を得る撮像手段と、前記撮像手段によって一定期間に連続的に撮影して得られた撮影画像群を記録する記録手段と、前記一定期間における撮影画像群の記録動作を開始させるための指示入力を行う指示入力手段と、前記記録手段に記録された複数の撮影画像から最も合焦度合いの高い撮影画像を選択する選択手段とを備えることを特徴とする。   A portable measuring instrument according to the present invention is a portable measuring instrument capable of measuring an object to be measured while being held in a hand of a user, and obtains a photographed image by photographing the object to be measured. Means, recording means for recording a group of photographed images obtained by continuous photographing by the imaging means for a predetermined period, and instruction input for instructing to start a recording operation of the photographed image group for the predetermined period And a selection means for selecting a photographed image with the highest degree of focus from a plurality of photographed images recorded in the recording means.

上記構成によれば、ユーザが手に持った状態で被測定物の計測を行うことが可能な携帯型計測器において、撮像手段によって被測定物が撮影されて撮影画像が得られ、記録手段によって、撮像手段により一定期間に連続的に撮影して得られた撮影画像群が記録される。そして、指示入力手段によって、一定期間における撮影画像群の記録動作を開始させるための指示入力が行われ、選択手段によって、記録手段に記録された複数の撮影画像から最も合焦度合いの高い撮影画像が選択される。   According to the above configuration, in the portable measuring instrument capable of measuring the object to be measured while being held in the hand, the object to be measured is captured by the imaging unit to obtain a captured image, and the recording unit A group of captured images obtained by continuously capturing images for a predetermined period by the imaging unit is recorded. Then, an instruction input for starting the recording operation of the photographed image group for a certain period is performed by the instruction input unit, and a photographed image with the highest degree of focus is selected from the plurality of photographed images recorded in the recording unit by the selection unit. Is selected.

このように、ユーザの操作に応じて撮影画像の記録が開始されて、一定期間の間、連続的に撮影して得られた撮影画像群が記録され、この記録された撮影画像群の中から最も合焦度合いの高い撮影画像が選択されるので、例えばユーザが手で持って携帯型計測器を大凡の合焦位置までもっていき、合焦位置の近傍を移動させながら一定期間の間、撮影画像を記録することによって合焦位置の撮影画像を含んだ撮影画像群が記録され、この撮影画像群から、選択手段による処理(最も合焦度合いの高い撮影画像を選択する処理)によって自動的に合焦画像を取得することができる。したがって、このように携帯型であっても、ユーザは被測定物に対する焦点位置を正確に合わせる作業が不要となり、謂わば大まかに合焦位置近傍を撮影する(複数の画像フレームを連続的に記録する)だけで容易に合焦画像を取得することが可能となる。   In this way, recording of a captured image is started in response to a user's operation, and a captured image group obtained by continuously capturing images for a certain period is recorded, and the recorded captured image group is selected from the recorded captured image group. Since the photographed image with the highest degree of focus is selected, for example, the user holds the portable measuring instrument to the approximate in-focus position with his hand, and shoots for a certain period while moving the vicinity of the in-focus position. By recording the image, a group of captured images including the captured image at the in-focus position is recorded, and from this captured image group, processing by a selection unit (processing for selecting a captured image with the highest degree of focus) is automatically performed. A focused image can be acquired. Therefore, even in such a portable type, the user does not need to accurately adjust the focus position with respect to the object to be measured, and so-called roughly photographing the vicinity of the focus position (recording a plurality of image frames continuously). It is possible to easily obtain a focused image.

また、上記構成において、前記撮像手段による撮影画像をモニタ表示可能に構成された表示手段をさらに備えてもよい(請求項2)。   Moreover, in the said structure, you may further provide the display means comprised so that the monitor image of the picked-up image by the said imaging means was possible (Claim 2).

これによれば、撮像手段による撮影画像をモニタ表示可能に構成された表示手段をさらに備えるので、ユーザは、被測定物の撮影画像を表示手段のモニタ表示を見ながら容易に大凡の合焦位置を見付けることができる。すなわち、確実に撮影画像群に合焦画像を含ませることができるようになり、ひいては携帯型計測器による計測において一層容易に合焦画像を取得することができる。   According to this, since the display unit configured to be able to monitor and display the captured image by the imaging unit is further provided, the user can easily approximate the in-focus position while viewing the captured image of the object to be measured on the monitor display of the display unit. Can be found. That is, the focused image can be surely included in the captured image group, and as a result, the focused image can be acquired more easily in the measurement by the portable measuring instrument.

また、上記構成において、前記撮影画像に基づいて、前記被測定物に対して合焦したか否かを検知する合焦検知手段と、前記合焦検知手段により前記合焦が検知されると前記記録手段による記録動作を停止させる制御を行う記録制御手段とをさらに備えてもよい(請求項3)。   Further, in the above configuration, a focus detection unit that detects whether or not the object to be measured is focused based on the captured image, and when the focus is detected by the focus detection unit, It may further comprise recording control means for performing control for stopping the recording operation by the recording means.

これによれば、合焦検知手段によって、撮影画像に基づいて、被測定物に対して合焦したか否かが検知され、また、記録制御手段によって、合焦検知手段により合焦が検知されると記録手段による記録動作を停止させる制御が行われるので、大まかに合焦位置近傍を撮影して得た撮影画像群の中に、合焦が検知されたときの撮影画像(最も焦点度合いが高いつまり合焦画像であろうと想定される画像であって、必ずしもこの画像が所要の合焦画像ではない)をより容易且つ確実に含ませることが可能となる。   According to this, the focus detection unit detects whether or not the object to be measured is focused based on the photographed image, and the focus is detected by the focus detection unit by the recording control unit. Then, control for stopping the recording operation by the recording means is performed, so that a photographed image (when the focus degree is the most focused) is detected in the photographed image group obtained by photographing the vicinity of the in-focus position roughly. It is possible to more easily and reliably include an image that is assumed to be a high-in-focus image, which is not necessarily a required focused image.

また、上記構成において、前記記録制御手段は、前記記録手段に撮影画像を循環的に記録させる制御を行うものであって、前記合焦検知手段により前記合焦が検知された時点から、前記記録手段の記録容量における所定容量分だけ撮影画像を前記循環的に記録させた後、前記記録動作を停止させる制御を行ってもよい(請求項4)。   Further, in the above configuration, the recording control unit performs control to cause the recording unit to record a captured image in a cyclic manner, and the recording control unit starts from the time when the in-focus is detected by the in-focus detection unit. Control may be performed to stop the recording operation after the photographed image is cyclically recorded by a predetermined capacity in the recording capacity of the means (claim 4).

これによれば、記録制御手段が、記録手段に撮影画像を循環的に記録させる制御を行うものとされ、この記録制御手段によって、合焦検知手段により合焦が検知された時点から、記録手段の記録容量における所定容量分だけ撮影画像が循環的に記録された後、記録動作を停止させる制御が行われるので、記録した撮影画像群の中に、合焦検知手段により合焦が検知されたときの撮影画像(上述と同様、合焦画像であろうと想定される画像)と共に、この撮影画像(合焦位置)の前後位置での撮影画像(前ピン画像及び後ピン画像)をも含ませることができる。このため、これら撮影画像群から最も合焦度合いの高い撮影画像を選択するなどしてより正確に合焦画像を取得することが可能となる。   According to this, the recording control means performs control to cause the recording means to record the photographed image cyclically, and the recording means from the time point when the focus detection means detects the in-focus by the recording control means. Since the recorded image is cyclically recorded by a predetermined capacity in the recording capacity of the recording medium, the recording operation is controlled so that the focus is detected by the focus detection means in the recorded photographed image group. A photographed image (a front pin image and a rear pin image) at a position before and after the photographed image (focused position) is included in addition to the photographed image (image assumed to be a focused image as described above). be able to. For this reason, it becomes possible to acquire a focused image more accurately by selecting a captured image with the highest degree of focus from these captured image groups.

また、上記構成において、前記合焦検知手段は、前記撮影画像のコントラストに基づいて前記合焦したか否かを検知してもよい(請求項5)。   In the above configuration, the focus detection unit may detect whether or not the focus is achieved based on the contrast of the captured image.

これによれば、合焦検知手段によって、撮影画像のコントラストに基づいて合焦したか否かが検知されるので、簡易な方法で容易に合焦検知を行うことができる。   According to this, since it is detected by the focus detection means based on the contrast of the photographed image, it is possible to easily perform the focus detection by a simple method.

また、上記構成において、前記被測定物に十字状スリット光を投影する投影手段をさらに備え、前記合焦検知手段は、前記十字状スリット光の交点が該被測定物の所定位置に一致する度合いを判別することで前記合焦したか否かを検知してもよい(請求項6)。   Further, in the above configuration, the projector further includes a projecting unit that projects the cross-shaped slit light onto the object to be measured, and the focus detection unit is configured such that the intersection of the cross-shaped slit light coincides with a predetermined position of the object to be measured. It is also possible to detect whether or not the in-focus state is obtained by discriminating the above.

これによれば、投影手段によって被測定物に十字状スリット光が投影され、合焦検知手段によって、十字状スリット光の交点が該被測定物の所定位置に一致する度合いを判別することで合焦したか否かが検知されるので、例えば携帯型計測器が三次元計測器であり、該三次元計測を行うために十字状スリット光を被測定物に投影するものである場合に、この既存の投影手段を利用して(低コストで)、容易に合焦検知を行うことができる。   According to this, the cross-shaped slit light is projected onto the object to be measured by the projecting means, and the focus detection means determines the degree of coincidence of the intersection of the cross-shaped slit light with the predetermined position of the object to be measured. Since it is detected whether or not it is in focus, for example, when the portable measuring instrument is a three-dimensional measuring instrument and projects a cross-shaped slit light onto the object to be measured in order to perform the three-dimensional measurement, this Focus detection can be easily performed using existing projection means (at low cost).

また、上記構成において、前記記録制御手段は、前記指示入力手段による指示入力に従って前記記録手段による撮影画像の記録動作が開始されてから、該指示入力手段による指示入力に従って記録動作が停止されるまでの前記一定期間の間、該記録手段に撮影画像を記録させる制御を行ってもよい(請求項7)。   In the above-described configuration, the recording control unit may start the recording operation of the photographed image by the recording unit in accordance with the instruction input from the instruction input unit until the recording operation is stopped in accordance with the instruction input by the instruction input unit. Control may be performed to cause the recording means to record a photographed image during the predetermined period.

これによれば、記録制御手段によって、指示入力手段による指示入力に従って記録手段による撮影画像の記録動作が開始されてから、該指示入力手段による指示入力に従って記録動作が停止されるまでの一定期間の間、該記録手段に撮影画像を記録させる制御が行われる。すなわち、ユーザが指示入力手段例えば入力ボタンを押下している間(一定期間)だけ撮影画像が記録される構成であるので、合焦位置近傍を移動させながら当該撮影画像を記録するための操作が簡単に行えるようになる。   According to this, the recording control means starts a recording image recording operation by the recording means in accordance with the instruction input by the instruction input means, and then stops for a certain period of time until the recording operation is stopped by the instruction input by the instruction input means. In the meantime, the recording unit is controlled to record the photographed image. That is, since the photographed image is recorded only while the user presses the instruction input means, for example, the input button (a certain period), an operation for recording the photographed image while moving the vicinity of the in-focus position is performed. It becomes easy to do.

また、上記構成において、前記記録制御手段は、前記指示入力手段による指示入力に従って前記記録手段による撮影画像の記録動作が開始されてから、該記録手段の記録容量を満たして記録されるまでの前記一定期間の間、該記録手段に撮影画像を記録させる制御を行ってもよい(請求項8)。   Further, in the above configuration, the recording control unit is configured to start recording a captured image by the recording unit in accordance with an instruction input from the instruction input unit until recording is performed while satisfying a recording capacity of the recording unit. Control may be performed to cause the recording means to record a photographed image for a certain period.

これによれば、記録制御手段によって、指示入力手段による指示入力に従って記録手段による撮影画像の記録動作が開始されてから、該記録手段の記録容量を満たして記録されるまでの一定期間の間、該記録手段に撮影画像を記録させる制御が行われるので、指示入力手段によって記録動作を停止させる指示入力動作を不要とすることができる、或いは、少なくとも初めに記録動作開始の指示入力さえ行えば(開始ボタンを押下すれば)、後は自動的に記録手段の記録容量を満たすまで記録されて当該記録動作が停止(終了)する構成とすることができるので、合焦位置近傍における一定期間の撮影画像の記録を簡単な操作で容易に行うことができる。   According to this, for a certain period from when the recording control unit starts the recording operation of the photographed image by the recording unit according to the instruction input by the instruction input unit until the recording capacity of the recording unit is recorded and recorded. Since the recording means controls to record the photographed image, the instruction input operation for stopping the recording operation by the instruction input means can be made unnecessary, or at least the instruction for starting the recording operation can be input at the beginning ( Since the recording operation is automatically stopped until the recording capacity of the recording means is satisfied and the recording operation is stopped (terminated) after that, the image can be taken for a certain period in the vicinity of the in-focus position. It is possible to easily record an image with a simple operation.

また、上記構成において、前記選択手段は、前記撮影画像のコントラストに基づいて前記撮影画像群から最も合焦度合いの高い撮影画像を選択してもよい(請求項9)。   In the above configuration, the selection unit may select a photographed image with the highest degree of focus from the photographed image group based on the contrast of the photographed image.

これによれば、選択手段によって、撮影画像のコントラストに基づいて撮影画像群から最も合焦度合いの高い撮影画像が選択されるので、簡易な方法(画像処理)によって容易に撮影画像群から最も合焦度合いの高い撮影画像を選択することができる。   According to this, since the selection unit selects a captured image with the highest degree of focus from the captured image group based on the contrast of the captured image, it is most easily selected from the captured image group by a simple method (image processing). A photographed image with a high degree of focus can be selected.

また、上記構成において、前記被測定物に所定のスリット光を投影する投影手段をさらに備え、前記選択手段は、前記スリット光による投影像の合焦状態を示す特徴量に基づいて、前記撮影画像群から最も合焦度合いの高い撮影画像を選択してもよい(請求項10)。   Further, in the above configuration, the image processing apparatus further includes a projecting unit that projects a predetermined slit light onto the object to be measured, and the selecting unit is configured to perform the captured image based on a feature amount indicating a focused state of a projected image by the slit light. A photographed image with the highest degree of focus may be selected from the group (claim 10).

これによれば、投影手段によって被測定物に所定のスリット光が投影され、選択手段によって、スリット光による投影像の合焦状態を示す特徴量に基づいて、撮影画像群から最も合焦度合いの高い撮影画像が選択されるので、例えば携帯型計測器が三次元計測器であり、該三次元計測を行うために所定のスリット光を被測定物に投影するものである場合に、既存の投影手段を利用して(低コストで)、投影像におけるこの特徴量に基づいて、容易に撮影画像群から最も合焦度合いの高い撮影画像を選択することができる。   According to this, the predetermined slit light is projected onto the object to be measured by the projecting unit, and the most in-focus degree is obtained from the photographed image group based on the feature amount indicating the focused state of the projected image by the slit light by the selecting unit. Since a high-captured image is selected, for example, when the portable measuring instrument is a three-dimensional measuring instrument and projects predetermined slit light onto the object to be measured in order to perform the three-dimensional measurement, the existing projection Using the means (at a low cost), it is possible to easily select a photographed image with the highest degree of focus from the photographed image group based on this feature amount in the projected image.

また、上記構成において、前記選択手段は、前記特徴量としての前記スリット光の幅の大きさに基づいて、前記撮影画像群から最も合焦度合いの高い撮影画像を選択してもよい(請求項11)。   In the above configuration, the selection unit may select a photographed image with the highest degree of focus from the photographed image group based on the width of the slit light as the feature amount. 11).

これによれば、選択手段によって、特徴量としてのスリット光の幅の大きさに基づいて、撮影画像群から最も合焦度合いの高い撮影画像が選択されるので、スリット光の幅の大きさという簡単な特徴量に基づいて、容易に撮影画像群から最も合焦度合いの高い撮影画像を選択することができる。   According to this, since the selection unit selects a photographed image with the highest degree of focus from the photographed image group based on the width of the slit light as the feature amount, the width of the slit light is referred to as Based on a simple feature amount, a captured image with the highest degree of focus can be easily selected from the captured image group.

また、上記構成において、前記選択手段は、前記特徴量としての、前記スリット光の幅の大きさ及び該幅方向における輝度分布のピークに基づいて、前記撮影画像群から最も合焦度合いの高い撮影画像を選択してもよい(請求項12)。   Further, in the above configuration, the selection unit performs shooting with the highest degree of focus from the captured image group based on the width of the slit light and the peak of the luminance distribution in the width direction as the feature amount. An image may be selected (claim 12).

これによれば、選択手段によって、特徴量としての、スリット光の幅の大きさ及び該幅方向における輝度分布のピークに基づいて、撮影画像群から最も合焦度合いの高い撮影画像が選択されるので、例えば最もスリット光の幅が狭く且つピークが高くなっている撮影画像(投影像)を選択する、というようにして、より正確に且つ容易に撮影画像群から最も合焦度合いの高い撮影画像を選択することができる。   According to this, based on the size of the width of the slit light and the peak of the luminance distribution in the width direction as the feature amount, the selection unit selects the captured image with the highest degree of focus from the captured image group. Therefore, for example, a captured image (projected image) having the narrowest slit light width and the highest peak is selected, so that the captured image with the highest degree of focus can be more accurately and easily selected. Can be selected.

また、上記構成において、前記選択手段は、前記特徴量としての、前記スリット光による投影像のコントラストに基づいて、前記撮影画像群から最も合焦度合いの高い撮影画像を選択してもよい(請求項13)。   In the above configuration, the selection unit may select a photographed image with the highest degree of focus from the photographed image group based on the contrast of the projected image by the slit light as the feature amount. Item 13).

これによれば、選択手段によって、特徴量としての、スリット光による投影像のコントラストに基づいて、撮影画像群から最も合焦度合いの高い撮影画像が選択されるので、簡易な方法(画像処理)によって容易に撮影画像群から最も合焦度合いの高い撮影画像を選択することができる。   According to this, since the picked-up image with the highest degree of focus is selected from the picked-up image group based on the contrast of the projected image by the slit light as the feature amount by the selecting means, a simple method (image processing) Thus, it is possible to easily select a photographed image with the highest degree of focus from the photographed image group.

また、本発明に係る計測方法は、ユーザが手に持った状態で被測定物の計測を行うことが可能な携帯型計測器を用いた計測方法であって、前記被測定物を撮影して撮影画像を得る撮像工程と、前記撮像工程において一定期間に連続的に撮影して得られた撮影画像群を記録する記録工程と、前記一定期間における撮影画像群の記録動作を開始させるための指示入力を行う指示入力工程と、前記記録工程において記録された複数の撮影画像から最も合焦度合いの高い撮影画像を選択する選択工程とを有することを特徴とする(請求項14)。   Further, the measurement method according to the present invention is a measurement method using a portable measuring instrument capable of measuring an object to be measured while being held in a hand of a user, and images the object to be measured. An imaging process for obtaining a captured image, a recording process for recording a captured image group obtained by continuously capturing images in a predetermined period in the imaging process, and an instruction for starting a recording operation for the captured image group in the predetermined period An instruction input step for inputting, and a selection step for selecting a photographed image with the highest degree of focus from a plurality of photographed images recorded in the recording step (claim 14).

上記構成によれば、ユーザが手に持った状態で被測定物の計測を行うことが可能な携帯型計測器を用いた計測方法において、撮像工程によって、被測定物を撮影して撮影画像が得られ、記録工程によって、上記撮像工程で一定期間に連続的に撮影して得られた撮影画像群が記録される。そして、指示入力工程によって、一定期間における撮影画像群の記録動作を開始させるための指示入力が行われ、選択工程によって、上記記録工程で記録された複数の撮影画像から最も合焦度合いの高い撮影画像が選択される。   According to the above configuration, in the measurement method using the portable measuring instrument capable of measuring the object to be measured while being held in the hand, the object to be measured is photographed by the imaging process. The captured image group obtained by continuously capturing images in a predetermined period in the imaging step is recorded by the recording step. Then, an instruction input for starting the recording operation of the photographed image group in a certain period is performed by the instruction input process, and the photographing with the highest degree of focus is performed from the plurality of photographed images recorded in the recording process by the selection process. An image is selected.

このように、ユーザの操作に応じて撮影画像の記録が開始されて、一定期間の間、連続的に撮影して得られた撮影画像群が記録され、この記録された撮影画像群の中から最も合焦度合いの高い撮影画像が選択されるので、例えばユーザが手で持って携帯型計測器を大凡の合焦位置までもっていき、合焦位置の近傍を移動させながら一定期間の間、撮影画像を記録することによって合焦位置の撮影画像を含んだ撮影画像群が記録され、この撮影画像群から、選択手段による処理によって自動的に合焦画像を取得することができる。したがって、このように携帯型であっても、ユーザは被測定物に対する焦点位置を正確に合わせる作業が不要となり、謂わば大まかに合焦位置近傍を撮影する(複数の画像フレームを連続的に記録する)だけで容易に合焦画像を取得することが可能となる。   In this way, recording of a captured image is started in response to a user's operation, and a captured image group obtained by continuously capturing images for a certain period is recorded, and the recorded captured image group is selected from the recorded captured image group. Since the photographed image with the highest degree of focus is selected, for example, the user holds the portable measuring instrument to the approximate in-focus position with his hand, and shoots for a certain period while moving the vicinity of the in-focus position. By recording the image, a group of captured images including the captured image at the in-focus position is recorded, and the focused image can be automatically acquired from the captured image group by processing by the selection unit. Therefore, even in such a portable type, the user does not need to accurately adjust the focus position with respect to the object to be measured, and so-called roughly photographing the vicinity of the focus position (recording a plurality of image frames continuously). It is possible to easily obtain a focused image.

本発明によれば、ユーザの操作に応じて撮影画像の記録が開始されて、一定期間の間、連続的に撮影して得られた撮影画像群が記録され、この記録された撮影画像群の中から最も合焦度合いの高い撮影画像が選択されるので、例えばユーザが手で持って携帯型計測器を大凡の合焦位置までもっていき、合焦位置の近傍を移動させながら一定期間の間、撮影画像を記録することによって合焦位置の撮影画像を含んだ撮影画像群が記録され、この撮影画像群から、選択手段による処理(最も合焦度合いの高い撮影画像を選択する処理)によって自動的に合焦画像を取得することができる。したがって、このように携帯型であっても、ユーザは被測定物に対する焦点位置を正確に合わせる作業が不要となり、謂わば大まかに合焦位置近傍を撮影する(複数の画像フレームを連続的に記録する)だけで容易に合焦画像を取得することが可能となる。   According to the present invention, recording of a photographed image is started in response to a user operation, and a photographed image group obtained by continuously photographing for a certain period is recorded, and the recorded photographed image group is recorded. Since the photographed image with the highest degree of focus is selected from among them, for example, the user holds the portable measuring instrument to the approximate in-focus position with his hand and moves the vicinity of the in-focus position for a certain period of time. By recording the captured image, a captured image group including the captured image at the in-focus position is recorded, and from this captured image group, automatic processing is performed by processing by a selection unit (processing for selecting a captured image with the highest degree of focus). In-focus image can be acquired. Therefore, even in such a portable type, the user does not need to accurately adjust the focus position with respect to the object to be measured, and so-called roughly photographing the vicinity of the focus position (recording a plurality of image frames continuously). It is possible to easily obtain a focused image.

(実施形態1)
図1は、第1の実施形態に係る携帯型三次元測定装置1を示す斜視図、図2はその側面図、図3は携帯型三次元測定装置1の測定領域を示す斜視図、図4は、例えば被測定物100に示すような3次元形状を有する被測定物(測定対象)に対するスリット光Sの照射状況を示す斜視図である。携帯型三次元測定装置1は、被測定物の三次元形状を光切断法により計測するものであって、本体ハウジング10と、この中に収納されるスリット光発生手段2、投光光学系3、撮像手段4、照明手段5及び制御部6とを含んでいる。ここで例示している携帯型三次元測定装置1は、一般的なノギス程度の大きさの棒状を呈し、一方の端部側はスリット光Sの投受光を行う測定ヘッド部Hとされ、他方の端部側はユーザが把手するためのグリップ部Gとされている。
(Embodiment 1)
1 is a perspective view showing a portable three-dimensional measuring apparatus 1 according to the first embodiment, FIG. 2 is a side view thereof, FIG. 3 is a perspective view showing a measurement region of the portable three-dimensional measuring apparatus 1, and FIG. These are perspective views which show the irradiation condition of the slit light S with respect to the to-be-measured object (measuring object) which has a three-dimensional shape as shown to the to-be-measured object 100, for example. The portable three-dimensional measuring apparatus 1 measures a three-dimensional shape of an object to be measured by a light cutting method, and includes a main body housing 10, slit light generating means 2 housed therein, and a light projecting optical system 3. , Imaging means 4, illumination means 5, and control unit 6. The portable three-dimensional measuring apparatus 1 illustrated here has a rod shape having a size of a general caliper, and one end side is a measuring head unit H that projects and receives the slit light S, and the other side. The end side is a grip portion G for the user to grip.

図1に示すように、本体ハウジング10は、測定ヘッド部Hに対応するヘッドハウジング部11と、中間ハウジング部12と、グリップ部Gに対応するグリップハウジング部13とが一体化されたハウジングである。ヘッドハウジング部11は矩形状とされ、その内部には三次元測定に必要な測定エレメントであるスリット光発生手段2、投光光学系3及び撮像手段4などが搭載される。中間ハウジング部12の内部には、上記測定エレメントの動作を制御する制御部6が搭載される。グリップハウジング部13は手持ち具合が良いように円筒型とされ、その内部には図略の電源電池などが収納される。なお、グリップハウジング部13の外周面は、滑り止めのための粗面化加工が施されている。   As shown in FIG. 1, the main body housing 10 is a housing in which a head housing portion 11 corresponding to the measurement head portion H, an intermediate housing portion 12, and a grip housing portion 13 corresponding to the grip portion G are integrated. . The head housing portion 11 has a rectangular shape, and a slit light generating means 2, a light projecting optical system 3, an imaging means 4 and the like which are measurement elements necessary for three-dimensional measurement are mounted therein. A control unit 6 that controls the operation of the measurement element is mounted inside the intermediate housing unit 12. The grip housing portion 13 has a cylindrical shape so that it can be easily held, and a power supply battery (not shown) is accommodated therein. In addition, the outer peripheral surface of the grip housing part 13 is subjected to a roughening process for preventing slipping.

スリット光発生手段2は、被測定物に照射するための、扇形に広がるスリット光Sを発生する。スリット光発生手段2は、例えば小型のレーザ光源からなる、すなわち例えば可視波長のレーザ光を発生する小型のLD(Laser diode)からなるレーザ光源21を備え(レーザ光源21が発した光をスリット光に変換する図略の光学部材も含む)、スリット光を発生させるものである。なお、上記光学部材は例えばシリンドリカルレンズ、円柱レンズ或いはスリット板等からなる。また、スリット光発生手段2は、撮像手段4の受光面の背面側に配置されており、このことは、測定ヘッド部Hの図1におけるX方向のサイズのコンパクト化に寄与している。   The slit light generating means 2 generates a slit light S spreading in a fan shape for irradiating the object to be measured. The slit light generating means 2 includes a laser light source 21 made of, for example, a small laser light source, that is, for example, a small LD (Laser diode) that generates laser light having a visible wavelength (the light emitted from the laser light source 21 is slit light). Including an optical member (not shown) that converts the light into a slit). The optical member is made of, for example, a cylindrical lens, a cylindrical lens, or a slit plate. Further, the slit light generating means 2 is arranged on the back side of the light receiving surface of the imaging means 4, which contributes to the downsizing of the size in the X direction in FIG.

投光光学系3は、スリット光Sを被測定物(被測定物100)に向けて照射させるためのもの(スリット投光光学系31)である。すなわち投光光学系3は、撮像手段4の受光面の背面側に配置されたスリット光発生手段2から発せられたスリット光Sを、撮像手段4の近傍を迂回し、撮像手段4の正面方向に向かわせる迂回光路を提供するものである。スリット投光光学系31は、レーザ光源21から発せられたレーザ光を扇型に広がるスリット光Sとし、該スリット光Sを被測定物に向けて照射させる。本実施形態では、スリット投光光学系31は、1つのレーザ光を2方向に分離して得た互いに直交するX方向スリット光及びY方向スリット光を被測定物に向けて照射し、十字状にクロスした(図6参照)X方向スリット投影像及びY方向スリット投影像(十字状スリット光)を被測定物の表面に投影させる。この投影像は後述の撮像センサ41により被測定物とともに撮影される(撮影画像中にはこの十字状スリット光による投影像が写っている)。   The light projecting optical system 3 is for irradiating the measured light (measured object 100) with the slit light S (slit light projecting optical system 31). That is, the light projecting optical system 3 bypasses the slit light S emitted from the slit light generating means 2 disposed on the back side of the light receiving surface of the imaging means 4 in the vicinity of the imaging means 4, and the front direction of the imaging means 4. It provides a detour optical path that is directed to The slit light projecting optical system 31 uses the laser light emitted from the laser light source 21 as the slit light S spreading in a fan shape, and irradiates the measured light toward the object to be measured. In the present embodiment, the slit light projecting optical system 31 irradiates the object to be measured with X-direction slit light and Y-direction slit light obtained by separating one laser light in two directions, and is cross-shaped. (See FIG. 6), the X direction slit projection image and the Y direction slit projection image (cross-shaped slit light) are projected onto the surface of the object to be measured. This projected image is photographed together with the object to be measured by an imaging sensor 41 described later (a projected image by the cross-shaped slit light is reflected in the photographed image).

また、投光光学系3は、スリット光Sを反射させる反射面を含んでおり、この反射面の少なくとも1つは、被測定物側から見て撮像手段4の受光面の配置位置と同等の位置若しくはそれよりも遠い位置に配置される。ここでは投光光学系3は、2つの反射面R1、R2を備え、そのうちの反射面R1が撮像手段4の受光面の配置位置よりも遠い位置に配置される例を示している。   Further, the light projecting optical system 3 includes a reflective surface that reflects the slit light S, and at least one of the reflective surfaces is equivalent to the arrangement position of the light receiving surface of the imaging unit 4 when viewed from the measured object side. It is arranged at a position or a position farther than that. Here, the light projecting optical system 3 includes two reflecting surfaces R1 and R2, and an example in which the reflecting surface R1 is arranged at a position farther from the arrangement position of the light receiving surface of the imaging means 4 is shown.

撮像手段4(撮像ユニット)は、例えばCCD(Charge coupled device)エリアセンサのような2次元撮像センサ(撮像センサ41とする)を備え(撮像手段4は、撮像センサ41の受光面にスリット光Sを含む被測定物からの反射光を結像させる図略の受光光学系も含む)、被測定物を撮像して画像(撮影画像)を得るものである。撮像手段4の受光面は、被測定物に正対するように配置されている。その結果、図2に示すように、撮像手段4の受光光軸A2は真下(Z方向)に延びている。これに対し、スリット光Sの投光光軸A1は傾きを持って下方向に延びている。すなわち、投光光軸A1は、受光光軸A2に対して所定の交差角で交差している。光切断法では、このような光軸の交差が必須である。なお、この図の例では、投光光軸A1と受光光軸A2との交差点が、投光光学系及び受光光学系の焦点面となるように設定されている。因みに図3は、撮像手段4の撮像領域である測定領域(焦点面)を示している。   The imaging means 4 (imaging unit) includes a two-dimensional imaging sensor (referred to as imaging sensor 41) such as a CCD (Charge coupled device) area sensor (the imaging means 4 has slit light S on the light receiving surface of the imaging sensor 41). Including a light receiving optical system (not shown) that forms an image of reflected light from the object to be measured including the image of the object to be measured. The light receiving surface of the imaging means 4 is disposed so as to face the object to be measured. As a result, as shown in FIG. 2, the light receiving optical axis A2 of the image pickup means 4 extends right below (Z direction). On the other hand, the light projecting optical axis A1 of the slit light S extends downward with an inclination. That is, the light projecting optical axis A1 intersects the light receiving optical axis A2 at a predetermined crossing angle. In the light cutting method, such crossing of the optical axes is essential. In the example of this figure, the intersection of the light projecting optical axis A1 and the light receiving optical axis A2 is set to be the focal plane of the light projecting optical system and the light receiving optical system. Incidentally, FIG. 3 shows a measurement area (focal plane) which is an imaging area of the imaging means 4.

照明手段5は、例えばLED(Light-emitting diode)やランプ等の照明光源51を備え(照明手段5は、照明光源51からの照明光を導くための照明光学系を備えていてもよい)、被測定物を照明するものである。照明光源51は、具体的には例えば測定ヘッド部Hの下面(被測定物との対向面)の四隅にLEDが配設されて、これら四隅における4個のLEDによって被測定物表面を照明する構成となっている。   The illumination unit 5 includes an illumination light source 51 such as an LED (Light-emitting diode) or a lamp (the illumination unit 5 may include an illumination optical system for guiding illumination light from the illumination light source 51). The object to be measured is illuminated. Specifically, for example, the illumination light source 51 has LEDs arranged at four corners of the lower surface of the measuring head H (a surface facing the object to be measured), and illuminates the surface of the object to be measured with four LEDs at the four corners. It has a configuration.

制御部6は、CPU(Central processing unit)や各種回路等を含み、スリット光発生手段2の発光動作、撮像手段4の撮像動作などを制御する。この制御部6の詳細を以下、図5において説明する。図5は、携帯型三次元測定装置1の電気的構成を示すブロック図である。携帯型三次元測定装置1は、上述したレーザ光源21、撮像センサ41、照明光源51及び制御部6の他、トリガースイッチ(SW)7と、外部インターフェイス部8とを備えている。   The control unit 6 includes a CPU (Central processing unit), various circuits, and the like, and controls the light emission operation of the slit light generation unit 2, the imaging operation of the imaging unit 4, and the like. Details of the control unit 6 will be described below with reference to FIG. FIG. 5 is a block diagram showing an electrical configuration of the portable three-dimensional measuring apparatus 1. The portable three-dimensional measuring apparatus 1 includes a trigger switch (SW) 7 and an external interface unit 8 in addition to the laser light source 21, the image sensor 41, the illumination light source 51, and the control unit 6 described above.

トリガーSW7は、撮像センサ41によって得られた撮影画像の後述する画像バッファ用フレームメモリ66への記録(記憶)動作を開始させる及び停止させるためのスイッチである。このトリガーSW7は例えば図1に示すようにグリップ部Gに配設されている。ユーザがトリガーSW7を押下してON(オン)すると、撮像動作が画像バッファ用フレームメモリ66に記録される(取り込まれる)。このトリガーSW7がON状態となっている間、複数の撮影画像が連続的に順に画像バッファ用フレームメモリ66に記録されていく。トリガーSW7がOFF(オフ)されると当該画像記録動作は停止(終了)する。或いは、画像バッファ用フレームメモリ66の残容量が無くなった時点で記録動作を停止するか、画像バッファ用フレームメモリ66に循環して記録を続け、トリガーSW7がOFFされた時点で記録動作を停止するかの、いずれか早い方(記録動作が先に終了する方)を選択するような制御をしてもよい。なお、トリガーSW7のON、OFFに拘わらず、撮像センサ41による撮像動作は行われる。すなわち操作部で例えばプレビューモードに切り替えることで、撮像センサ41からの画像を画像バッファ用フレームメモリ66に記録せずに(スルーさせて)モニタ部91に表示(後述のプレビュー表示)させることができる。   The trigger SW 7 is a switch for starting and stopping a recording (storage) operation of a captured image obtained by the imaging sensor 41 in an image buffer frame memory 66 described later. For example, the trigger SW 7 is disposed in the grip portion G as shown in FIG. When the user presses the trigger SW 7 to turn it on, the imaging operation is recorded (captured) in the image buffer frame memory 66. While the trigger SW 7 is in the ON state, a plurality of captured images are successively recorded in the image buffer frame memory 66 in order. When the trigger SW 7 is turned off, the image recording operation is stopped (terminated). Alternatively, the recording operation is stopped when the remaining capacity of the image buffer frame memory 66 is exhausted, or the recording operation is circulated to the image buffer frame memory 66 to continue the recording operation, and the recording operation is stopped when the trigger SW 7 is turned off. Control may be performed so that the earlier one (the one in which the recording operation ends first) is selected. Note that the imaging operation by the imaging sensor 41 is performed regardless of whether the trigger SW 7 is ON or OFF. That is, by switching to the preview mode on the operation unit, for example, the image from the image sensor 41 can be displayed on the monitor unit 91 without being recorded in the image buffer frame memory 66 (preview display described later). .

外部インターフェイス部8は、上記グリップ部G等に設けられたUSB端子等を介して、携帯型三次元測定装置1とパーソナルコンピュータ(PC)等の外部装置9とをデータ通信可能に接続するためのインターフェイスである。なお、外部装置9は、モニタ部91等を備えており、外部インターフェイス部8を介して送信されてきた上記撮影画像が表示される構成となっている。ユーザはこのモニタ部91に所謂プレビュー表示される画像(モニタ画像;撮影画像)を見ながら、携帯型三次元測定装置1(測定ヘッド部H)を移動させて被測定物(被測定物100)を撮影することができる。   The external interface unit 8 is used to connect the portable three-dimensional measuring device 1 and an external device 9 such as a personal computer (PC) so as to allow data communication via a USB terminal or the like provided in the grip unit G or the like. Interface. The external device 9 includes a monitor unit 91 and the like, and is configured to display the captured image transmitted via the external interface unit 8. The user moves the portable three-dimensional measuring apparatus 1 (measuring head unit H) while viewing the so-called preview-displayed image (monitor image; captured image) on the monitor unit 91 (measurement object 100). Can be taken.

制御部6は、第1発光制御部61、第2発光制御部62、タイミングジェネレータ(TG)63、ADコンバータ64、デジタル演算処理部65、画像バッファ用フレームメモリ66、画像演算用フレームメモリ67、コントラスト演算部68及びCPU69を含んで構成されている。第1発光制御部61は、レーザ光源21の発光動作を制御するものであって、LDをレーザ発振させるLD駆動回路である。第2発光制御部62は、照明光源51の発光動作を制御するものであって、LEDを点灯駆動させるLED駆動回路である。   The control unit 6 includes a first light emission control unit 61, a second light emission control unit 62, a timing generator (TG) 63, an AD converter 64, a digital calculation processing unit 65, an image buffer frame memory 66, an image calculation frame memory 67, A contrast calculation unit 68 and a CPU 69 are included. The first light emission control unit 61 controls the light emission operation of the laser light source 21 and is an LD drive circuit that causes the LD to oscillate. The 2nd light emission control part 62 controls the light emission operation | movement of the illumination light source 51, Comprising: It is an LED drive circuit which light-drives LED.

TG63は、CPU69から与えられる基準クロックに基づいて所定のタイミングパルス(垂直転送パルス、水平転送パルス、電荷掃き出しパルス等)を生成して撮像センサ41に出力し、撮像センサ41の撮像動作を制御する、また、所定のタイミングパルスをADコンバータ64に出力することにより、ADコンバータ64におけるアナログ/デジタル変換動作を制御するものである。ADコンバータ64は、撮像センサ41から出力されるアナログのR,G,Bの画像信号を、TG63から出力されるタイミングパルスに基づいて、複数のビット(例えば12ビット)からなるデジタルの画像信号に変換する。なお、ADコンバータ64には、入力段にCDS(相関二重サンプリング)回路、AGC(オートゲインコントロール)回路及びクランプ回路(クランプ手段)等が備えられている。   The TG 63 generates a predetermined timing pulse (vertical transfer pulse, horizontal transfer pulse, charge sweep pulse, etc.) based on the reference clock given from the CPU 69 and outputs it to the imaging sensor 41 to control the imaging operation of the imaging sensor 41. Further, the analog / digital conversion operation in the AD converter 64 is controlled by outputting a predetermined timing pulse to the AD converter 64. The AD converter 64 converts the analog R, G, B image signal output from the imaging sensor 41 into a digital image signal composed of a plurality of bits (for example, 12 bits) based on the timing pulse output from the TG 63. Convert. The AD converter 64 includes a CDS (correlated double sampling) circuit, an AGC (auto gain control) circuit, a clamp circuit (clamp means), and the like at the input stage.

デジタル演算処理部65は、FPGA(Field Programmable Gate Array)等からなり、ADコンバータ64から出力される画像(画素)データに所定の信号処理を行って画像ファイルを作成するもので、黒レベル補正回路、ホワイトバランス制御回路、ガンマ補正回路等を備えて構成されている。コントラスト演算部68は、画像(撮影画像)の合焦検知すなわち或る画像がピントの合っている画像であるか否かを検知する、換言すれば画像の合焦度合いを判別するために、画像のコントラスト(像面コントラスト)を求める演算処理(コントラスト演算という)を行うものである。なお、デジタル演算処理部65は、上記被測定物100のような被測定物の三次元形状を求めるための演算処理を行う機能も備えている。   The digital arithmetic processing unit 65 includes an FPGA (Field Programmable Gate Array) or the like, and performs predetermined signal processing on the image (pixel) data output from the AD converter 64 to create an image file. , A white balance control circuit, a gamma correction circuit, and the like. The contrast calculation unit 68 detects the focus of an image (photographed image), that is, detects whether or not a certain image is in focus, in other words, to determine the degree of focus of the image. The calculation process (referred to as contrast calculation) for obtaining the contrast (image plane contrast) of the image is performed. The digital arithmetic processing unit 65 also has a function of performing a calculation process for obtaining a three-dimensional shape of an object to be measured such as the object to be measured 100.

画像バッファ用フレームメモリ66は、RAM(Random Access Memory)等からなり、撮像センサ41により撮像された画像(フレーム画像)データが格納される。デジタル演算処理部65へ取り込まれた画像データは、撮像センサ41の読み出しに同期してこの画像バッファ用フレームメモリ66に書き込まれる。画像演算用フレームメモリ67は、RAM等からなり、コントラスト演算部68による上記コントラスト演算(或いはデジタル演算処理部65による演算処理)時に、画像バッファ用フレームメモリ66から取り出された演算処理対象となる画像(演算用フレーム画像)が格納される。   The image buffer frame memory 66 includes a RAM (Random Access Memory) or the like, and stores image (frame image) data captured by the image sensor 41. The image data taken into the digital arithmetic processing unit 65 is written into the image buffer frame memory 66 in synchronization with the reading of the image sensor 41. The image calculation frame memory 67 is composed of a RAM or the like, and an image to be subjected to calculation processing taken out from the image buffer frame memory 66 during the contrast calculation (or calculation processing by the digital calculation processing unit 65) by the contrast calculation unit 68. (Calculation frame image) is stored.

CPU69は、トリガーSW7等から与えられる操作信号に従い、第1発光制御部61、第2発光制御部62、TG63、デジタル演算処理部65及びコントラスト演算部68等の各機能部の動作を制御する所謂中央演算処理装置である。また、CPU69は、画像バッファ用フレームメモリ66及び画像演算用フレームメモリ67に対するフレーム画像の記録(後述の循環記録、循環上書き)動作を制御する機能(記録制御機能)を有している。また、CPU69は、画像バッファ用フレームメモリ66に記録された各画像に対するコントラスト演算部68による上記コントラスト演算の結果に基づいて、当該複数の記録画像の中から後述するように合焦画像としての最も合焦度合いの高い或いは合焦状態の良い撮影画像を選択(選出)する機能(選択機能)も有している。   The CPU 69 controls the operation of each functional unit such as the first light emission control unit 61, the second light emission control unit 62, the TG 63, the digital calculation processing unit 65, and the contrast calculation unit 68 in accordance with an operation signal given from the trigger SW 7 or the like. Central processing unit. Further, the CPU 69 has a function (recording control function) for controlling a frame image recording (circular recording and cyclic overwriting described later) operation to the image buffer frame memory 66 and the image calculation frame memory 67. In addition, the CPU 69 selects the most in-focus image as a focused image from among the plurality of recorded images based on the result of the contrast calculation by the contrast calculation unit 68 for each image recorded in the image buffer frame memory 66 as described later. It also has a function (selection function) for selecting (selecting) a photographed image with a high degree of focus or a good focus state.

ところで図6に示すように、携帯型三次元測定装置1を前後方向(上下方向;図1のZ方向、或いは被測定部に対する遠近方向)に撮像位置を移動(前後移動;上下移動)させた場合、この撮像位置に応じて、撮影画像は符号201で示すようなピントが合った画像(合焦画像と表現する)と、この合焦画像前後における符号202、203で示すようなピントが合っていないピンボケ画像(前ピン画像、後ピン画像と表現する)とになる。これら前ピン画像、後ピン画像は、合焦画像(合焦位置)から遠くなるほどピンボケ度合いも大きい。ただし、ここでいう“合焦”とは、被写界深度を考慮した場合の合焦も含むものとする。例えば図4に示す被測定物100のような立体的な(表面に段差があるような)被測定物を撮像する場合であっても、奥行きを有して焦点が合っている合焦画像が得られる。   Incidentally, as shown in FIG. 6, the portable three-dimensional measuring apparatus 1 is moved in the front-rear direction (vertical direction; Z direction in FIG. 1 or the perspective direction with respect to the part to be measured) (moving back and forth; moving up and down). In this case, the captured image is in focus as represented by reference numeral 201 (represented as a focused image) and in focus before and after the focused image as indicated by reference numerals 202 and 203 in accordance with the imaging position. The image is not out of focus (represented as a front pin image and a back pin image). These front and rear pin images have a greater degree of out-of-focus as they are farther from the focused image (focus position). However, “focusing” here includes focusing when the depth of field is taken into consideration. For example, even when a three-dimensional object to be measured (such as a step on the surface) such as the object to be measured 100 shown in FIG. 4 is imaged, an in-focus image having a depth is in focus. can get.

図7及び図8は、本実施形態における携帯型三次元測定装置1を用いた計測動作について説明する図であり、図7は、ユーザ(操作者)が携帯型三次元測定装置1を上記前後移動させて被測定物を撮影している様子を、図8は、この場合の前後移動動作を概念的に示す、すなわち前後移動に伴って被測定物と携帯型三次元測定装置1との間の距離が経時的に変化する様子を示す図である。なお、図7における符号310で示す上方図は、矢印311で表現しているように大きい範囲で前後移動している(前後移動距離が長い)様子を、符号320で示す下方図は、矢印312で表現しているように小さい範囲で前後移動している(前後移動距離が短い)様子を示している。   7 and 8 are diagrams for explaining a measurement operation using the portable three-dimensional measuring apparatus 1 according to the present embodiment. FIG. 7 illustrates the portable three-dimensional measuring apparatus 1 before and after the user (operator). FIG. 8 conceptually shows a back-and-forth movement operation in this case, that is, a state in which the object to be measured is photographed while moving, that is, between the object to be measured and the portable three-dimensional measuring apparatus 1 as the object moves back and forth. It is a figure which shows a mode that the distance of changes with time. Note that the upper diagram indicated by reference numeral 310 in FIG. 7 shows a state of moving back and forth within a large range (represented by a longer front-rear movement distance) as represented by the arrow 311, and the lower diagram indicated by reference numeral 320 is indicated by the arrow 312. As shown in the figure, the state of moving back and forth within a small range (the back-and-forth movement distance is short) is shown.

初めの段階において、ユーザは、上記符号310で示すように携帯型三次元測定装置1を前後移動させて、モニタ(モニタ部91)を通して被測定物(測定部位)の撮影画像を見ながら、大凡の合焦位置を見付ける(携帯型三次元測定装置1を大凡の合焦位置までもってくる;合焦位置に一致してなくてもよい)。この段階では、トリガーSW7は押下されていない。そして次の段階で、上記符号320の図に示すように、大まかに見当をつけた合焦位置の近傍で、トリガーSW7をONした状態で携帯型三次元測定装置1を僅かに前後移動させながら撮影画像を取得する。   In the first stage, the user moves the portable three-dimensional measuring apparatus 1 back and forth as indicated by the reference numeral 310, and generally observes the photographed image of the object to be measured (measurement site) through the monitor (monitor unit 91). (The portable three-dimensional measuring apparatus 1 is brought to an approximate in-focus position; it does not have to coincide with the in-focus position). At this stage, the trigger SW 7 is not pressed. Then, in the next stage, as shown in the figure of reference numeral 320 above, while moving the portable three-dimensional measuring apparatus 1 slightly back and forth with the trigger SW 7 turned on, in the vicinity of the roughly focused position. Acquire a captured image.

図8における符号331で示すラインは、合焦位置、すなわち合焦画像が得られるときの被測定物と携帯型三次元測定装置1との間の距離を示している。符号332で示す期間(上記初めの段階)において、例えば符号333で示す折れ線グラフに示すように、携帯型三次元測定装置1を合焦位置をまたぐように(挟んで)前後移動させながら合焦位置に近づけていく。ただし、この折れ線グラフは、当該合焦位置に手動で近づけるべく前後移動させている様子を誇張して示したものであって、実際には、必ずしもこのように合焦位置を挟んで対象的に且つ何度も前後移動させて近づけていく必要はなく(折れ線のように直線的に動かす必要もない)、例えば操作が慣れることなどにより、1回の動作で合焦位置の近傍まで近づけてもよい。次に、この大凡の撮像位置つまり符号334で示すタイミングでトリガーSW7をONし、このON状態を維持しながら、合焦位置を挟むように携帯型三次元測定装置1を前後移動させる。このトリガーSW7がON状態のとき、各撮影画像が連続して画像バッファ用フレームメモリ66に記録されていく。   A line indicated by reference numeral 331 in FIG. 8 indicates the in-focus position, that is, the distance between the object to be measured and the portable three-dimensional measuring apparatus 1 when a focused image is obtained. During the period indicated by reference numeral 332 (the first stage described above), for example, as shown in the line graph indicated by reference numeral 333, the portable three-dimensional measuring apparatus 1 is moved forward and backward so as to straddle the in-focus position. Move closer to the position. However, this line graph exaggeratedly shows the state of moving back and forth so as to manually approach the in-focus position. And it is not necessary to move back and forth many times (it is not necessary to move linearly like a polygonal line). For example, by getting used to the operation, it can be brought close to the in-focus position in one operation. Good. Next, the trigger SW 7 is turned on at this approximate imaging position, that is, the timing indicated by reference numeral 334, and the portable three-dimensional measuring apparatus 1 is moved back and forth so as to sandwich the in-focus position while maintaining this ON state. When the trigger SW 7 is in the ON state, each captured image is continuously recorded in the image buffer frame memory 66.

当該画像記録が可能な期間は、撮像センサ41の撮像フレームレート、撮影画像のデータサイズ或いは画像バッファ用フレームメモリ66の容量(メモリ容量)に依存する。例えばメモリ容量が120MByte、撮像フレームレートが60コマ/sec、撮影画像が100万画素である場合には、画像記録可能期間は約2秒間となる。換言すれば、ユーザは、モニタで確認した大凡の合焦位置でトリガーSW7をONし、画像記録可能期間内(ここでは2秒以内)に、合焦位置を含むように僅かに前後させながらメモリ書き込みを行って画像を取得するようにする。すなわち、ユーザは、必ずしもこの2秒間トリガーSW7をONし続けて画像を記録し続ける必要はなく、この2秒を待たずに、例えば合焦位置での撮影画像が記録できたと確信した時点でトリガーSW7をOFFにしてもよい(すなわち例えば1秒間だけトリガーSW7を押下してその間だけ画像記録を行ってもよい)。ただし、トリガーSW7を2秒以上ONし続けても構わないが、画像記録されるのはこの画像記録可能期間の2秒間だけとなる、すなわち2秒が経過した時点で自動的に画像記録動作が停止される。このような画像記録期間が図8の符号335で示す期間である。なお、上記メモリ容量や撮像フレームレートの値は一例に過ぎず、任意なものが採用可能である。特に撮像フレームレートは、上記60コマ/secのように、通常、ユーザが携帯型三次元測定装置1を前後移動させる速度と比べて、撮影した画像中に合焦画像が含まれるように充分高速な値に設定されることが望ましい(ただし、あまり高速過ぎてもメモリ容量に限界があることから、メモリ容量を考慮した最適値が設定される)。   The period during which the image can be recorded depends on the imaging frame rate of the imaging sensor 41, the data size of the captured image, or the capacity (memory capacity) of the image buffer frame memory 66. For example, when the memory capacity is 120 Mbytes, the imaging frame rate is 60 frames / sec, and the captured image is 1 million pixels, the image recordable period is about 2 seconds. In other words, the user turns on the trigger SW 7 at the approximate in-focus position confirmed on the monitor, and moves the memory while moving back and forth slightly to include the in-focus position within the image recordable period (in this case, within 2 seconds). Write to get an image. That is, the user does not necessarily have to keep turning on the trigger SW 7 for 2 seconds and continue to record an image. Instead of waiting for 2 seconds, the user triggers when the user is confident that the photographed image at the in-focus position can be recorded. SW7 may be turned off (that is, for example, the trigger SW7 may be pressed for 1 second and image recording may be performed during that time). However, the trigger SW 7 may be kept ON for 2 seconds or more, but the image is recorded only for 2 seconds of the image recordable period, that is, the image recording operation is automatically performed when 2 seconds have passed. Stopped. Such an image recording period is a period indicated by reference numeral 335 in FIG. Note that the values of the memory capacity and the imaging frame rate are merely examples, and arbitrary values can be adopted. In particular, the imaging frame rate is sufficiently high so that the in-focus image is included in the captured image as compared to the speed at which the user moves the portable three-dimensional measuring apparatus 1 back and forth, as in the case of 60 frames / sec. It is desirable that the value be set to a small value (however, since the memory capacity is limited even if the speed is too high, an optimum value is set in consideration of the memory capacity).

図9は、第1の実施形態における携帯型三次元測定装置1による測定動作の一例を示すフローチャートである。先ず携帯型三次元測定装置1の電源スイッチ(図略)がONされる或いは電源スイッチがONされた後、プレビューモード等に切り替えられることで、撮像センサ41による撮影画像(被測定物或いは測定部位の画像)がモニタ部91に表示される(ステップS1)。ユーザは、このモニタ画像を見ながら、携帯型三次元測定装置1を大凡の合焦位置まで移動させる。そして、この合焦位置の近傍位置でトリガーSW7がONされる。このトリガーSW7がONされた時点で、撮影画像の画像バッファ用フレームメモリ66への記録動作が開始されるとともに、制御部6の例えばCPU69により時間計測動作(タイムカウント)が開始される(ステップS2)。トリガーSW7がOFFされる(ステップS3のYES)まで或いは所定時間(例えば2秒間)が経過する(ステップS4のYES)まで、すなわちトリガーSW7がONされた状態(ステップS3のNO)で且つ所定時間経過が計測されていない(ステップS4のNO)間は、ユーザによって携帯型三次元測定装置1が当該合焦位置の近傍で前後移動されながら上記画像記録動作が継続(連続)して行われる。ユーザによりトリガーSW7がOFFされる或いは上記CPU69により所定時間の経過が計測された時点で、画像記録動作が終了される(ステップS5)。そして、CPU69によって、画像バッファ用フレームメモリ66に記録された各画像に対するコントラスト演算部68によるコントラスト演算処理の結果に基づいて、当該複数の記録画像の中から合焦画像(最も合焦度合いの高い或いは最も合焦状態の良い撮影画像)が選択される(ステップS6)。ただしこの場合、CPU69は、コントラスト演算により得られた各記録画像のコントラスト情報を用いて、各記録画像のうちの例えば最もコントラストが高い画像を合焦画像として選択する。   FIG. 9 is a flowchart illustrating an example of a measurement operation performed by the portable three-dimensional measurement apparatus 1 according to the first embodiment. First, when a power switch (not shown) of the portable three-dimensional measuring apparatus 1 is turned on or after the power switch is turned on, the image is taken by the imaging sensor 41 (measurement object or measurement site) by switching to a preview mode or the like. Is displayed on the monitor unit 91 (step S1). The user moves the portable three-dimensional measuring apparatus 1 to an approximate in-focus position while viewing the monitor image. Then, the trigger SW 7 is turned on at a position near the in-focus position. When the trigger SW 7 is turned on, the recording operation of the captured image in the image buffer frame memory 66 is started, and the time measurement operation (time count) is started by, for example, the CPU 69 of the control unit 6 (step S2). ). Until the trigger SW7 is turned off (YES in step S3) or until a predetermined time (for example, 2 seconds) elapses (YES in step S4), that is, the trigger SW7 is turned on (NO in step S3) and for a predetermined time. While the progress is not measured (NO in step S4), the image recording operation is continued (continuously) while the portable three-dimensional measuring apparatus 1 is moved back and forth in the vicinity of the in-focus position by the user. When the trigger SW 7 is turned off by the user or the passage of a predetermined time is measured by the CPU 69, the image recording operation is ended (step S5). Then, based on the result of the contrast calculation processing performed by the contrast calculation unit 68 for each image recorded in the image buffer frame memory 66 by the CPU 69, a focused image (the highest degree of focus) is selected from the plurality of recorded images. Alternatively, a photographed image with the best in-focus state is selected (step S6). However, in this case, the CPU 69 selects, for example, an image with the highest contrast among the recorded images as the focused image using the contrast information of the recorded images obtained by the contrast calculation.

(実施形態2)
上記第1の実施形態は、あくまでも、一連の撮影した画像群(連続画像群)の中に合焦画像が含まれるであろうことを想定して単に合焦位置近傍を前後移動させて撮影画像を記録するという方法を用いるのに対し、第2の実施形態は、上記合焦位置近傍を前後移動させて撮影画像を記録する際に、被測定物に対して合焦しているか否かを検知(判別)する、換言すれば、撮像センサ41が合焦位置で撮影を行ったか否かを検知する合焦検知機能を備え、大凡の合焦位置(合焦状態)を自動的に(謂わばAF的に)検出するという方法を用いる。
(Embodiment 2)
In the first embodiment, it is assumed that a focused image will be included in a series of captured images (continuous image group), and the captured image is simply moved back and forth in the vicinity of the focused position. In the second embodiment, when the captured image is recorded by moving the vicinity of the in-focus position back and forth, it is determined whether or not the object to be measured is in focus. It detects (discriminates), in other words, has a focus detection function for detecting whether or not the imaging sensor 41 has taken a picture at the focus position, and automatically sets the approximate focus position (focus state) automatically (so-called The detection method is used (for AF).

本実施形態では、図10に示すように、ユーザはモニタを通して被測定物(測定部位)の撮影画像を見ながら大凡の合焦位置を見付け、初めの段階からトリガーSW7をONした状態で、合焦位置をまたぐように携帯型三次元測定装置1aを前後方向に動かす。このとき、第1の実施形態のように合焦位置近傍で“僅かに”前後移動(符号320で示す図)させる必要はなく、図10の矢印411で示す大きな範囲(図7の矢印311と同様の大きな範囲)で前後移動させる、すなわち合焦位置近傍であるか否かをユーザが気にすることなく大まかな範囲で前後移動させればよい。   In the present embodiment, as shown in FIG. 10, the user finds an approximate focus position through the monitor while viewing the captured image of the object to be measured (measurement site), and in the state where the trigger SW 7 is turned on from the beginning, The portable three-dimensional measuring device 1a is moved in the front-rear direction so as to straddle the focal position. At this time, there is no need to move “slightly” in the vicinity of the in-focus position (as indicated by reference numeral 320) as in the first embodiment, but a large range indicated by the arrow 411 in FIG. It is only necessary to move back and forth within a rough range without worrying about whether or not it is in the vicinity of the in-focus position.

図11は、本実施形態における携帯型三次元測定装置1aの前後移動動作を概念的に示す図である。本実施形態では、同図に示すようにトリガーSWをONした状態で撮影画像の記録動作を行いながら、符号441の折れ線グラフに示すように合焦位置をまたいで(横切って;挟んで)上記大まかな範囲で携帯型三次元測定装置1aを前後移動させると、自動的に合焦検知が行われて、この記録動作が停止する。これにより、当該合焦検知が行われたときの撮影画像(所要の合焦画像であろうと想定される画像)を含む合焦位置近傍の複数の撮影画像が記録される。これは以下の構成を備えて実現される。   FIG. 11 is a diagram conceptually showing the back-and-forth movement operation of the portable three-dimensional measuring apparatus 1a in the present embodiment. In the present embodiment, as shown in the figure, while performing the recording operation of the captured image with the trigger SW turned on, the focus position is crossed (crossed; sandwiched) as shown in the line graph 441. When the portable three-dimensional measuring apparatus 1a is moved back and forth within a rough range, focus detection is automatically performed, and this recording operation is stopped. As a result, a plurality of photographed images in the vicinity of the in-focus position including the photographed image when the in-focus detection is performed (an image that is assumed to be a required focused image) are recorded. This is realized with the following configuration.

すなわち、携帯型三次元測定装置1aは、携帯型三次元測定装置1と同様にトリガーSWがONされると、撮像センサ41による撮影画像が画像バッファ用フレームメモリ66へ順次記録されるが、携帯型三次元測定装置1a(制御部6a或いはCPU69)では、撮影画像の記録によって画像バッファ用フレームメモリ66のメモリ容量が満たされると、撮影画像を循環的にこの画像バッファ用フレームメモリ66における古いフレーム画像に上書きして(書き換えて)記録する形式でバッファが継続される機能を備えている。この循環的に上書きして記録することを「循環記録」或いは「循環上書き」と表現する。   That is, in the portable three-dimensional measuring apparatus 1a, when the trigger SW is turned on as in the portable three-dimensional measuring apparatus 1, images taken by the image sensor 41 are sequentially recorded in the image buffer frame memory 66. In the type three-dimensional measuring apparatus 1a (the control unit 6a or the CPU 69), when the memory capacity of the image buffer frame memory 66 is filled by recording the captured image, the old frame in the image buffer frame memory 66 is cyclically stored. It has a function to continue the buffer in a format that overwrites (rewrites) the image and records it. This circular overwriting and recording is expressed as “circular recording” or “circular overwriting”.

また、携帯型三次元測定装置1a(制御部6a)は、合焦検知がなされると、その時点から画像バッファ用フレームメモリ66のメモリ容量における部分的な所定メモリ容量分、例えば半分のメモリ容量分だけ循環記録した後、当該記録動作を停止(終了)する機能を備えている。具体的には、この機能つまり合焦検知されると半分のメモリ容量分だけ循環記録した後に書き込みを停止する制御はCPU69によって実行される。この場合の合焦検知とは、コントラスト演算部68によるコントラスト演算結果に基づいて撮影画像のコントラストを判断することで、撮影画像が合焦画像である(携帯型三次元測定装置1aが合焦位置にきている)ことを検知することを示す。   When the in-focus detection is performed, the portable three-dimensional measuring apparatus 1a (control unit 6a) has a partial predetermined memory capacity, for example, a half memory capacity, of the memory capacity of the image buffer frame memory 66 from that time. A function is provided that stops (ends) the recording operation after circular recording is performed for the number of minutes. Specifically, when this function, that is, when focus is detected, the CPU 69 executes control to stop writing after circular recording by half the memory capacity. The focus detection in this case means that the captured image is a focused image by determining the contrast of the captured image based on the contrast calculation result by the contrast calculation unit 68 (the portable three-dimensional measuring device 1a is in the in-focus position). Indicates that it is detected.

図12は、画像バッファ用フレームメモリ66に記録された全撮影画像を概念的に示したものである(撮影画像451がこのメモリ容量において最初に記録されたつまり最も古い撮影画像であり、撮影画像452が最新の記録画像である)。この撮影画像452が合焦画像であると検知されると、撮影画像452が符号453で示す全メモリ容量の半分の位置にくるまで、謂わば矢印454の方向から新しい撮影画像が順次追加され記録されていくとともに、古い撮影画像から順に矢印455の方向へ謂わば押し出される(符号456で示す範囲の撮影画像は上書きされてメモリから無くなる)。かかるコントラスト演算部68によるコントラスト演算、及びこのコントラスト演算結果(合焦検知)に基づく画像バッファ用フレームメモリ66への撮影画像の記録動作は、CPU69によって制御される。   FIG. 12 conceptually shows all photographed images recorded in the image buffer frame memory 66 (the photographed image 451 is the first photographed image recorded first in this memory capacity, that is, the photographed image. 452 is the latest recorded image). When it is detected that the photographed image 452 is a focused image, new photographed images are sequentially added and recorded from the direction of the so-called arrow 454 until the photographed image 452 reaches a half of the total memory capacity indicated by reference numeral 453. At the same time, the old photographed images are pushed out in the direction of the arrow 455 in order (the photographed image in the range indicated by reference numeral 456 is overwritten and disappears from the memory). The CPU 69 controls the contrast calculation by the contrast calculation unit 68 and the recording operation of the captured image in the image buffer frame memory 66 based on the contrast calculation result (focus detection).

ただし、画像バッファ用フレームメモリ66のメモリ容量は、画像記録可能期間に対応するものであり、この意味において、上述したことは画像バッファ用フレームメモリ66の画像記録可能期間における部分的例えば半分の画像記録可能期間分だけ循環記録する、というように“メモリ容量”を“記録時間”に置き換えて考えてもよい。画像記録可能期間が携帯型三次元測定装置1と同様に2秒間である場合、当該合焦検知してから1秒後に循環記録動作を停止したとすれば、この合焦検知の前後1秒間における各撮影画像が画像バッファ用フレームメモリ66に記録される。   However, the memory capacity of the image buffer frame memory 66 corresponds to the image recordable period, and in this sense, the above description is a partial image of the image buffer frame memory 66 in the image recordable period. It may be considered that “memory capacity” is replaced with “recording time”, such as cyclic recording for the recordable period. When the image recordable period is 2 seconds as in the portable three-dimensional measuring apparatus 1, if the circulating recording operation is stopped 1 second after the focus detection, the 1 second before and after the focus detection is performed. Each captured image is recorded in the image buffer frame memory 66.

一例として、図11の符号4111のグラフ線に示すように携帯型三次元測定装置1aを被測定物から遠い位置から近い位置へ合焦位置をまたいで移動させるような場合、符号442で示す位置(タイミング)で合焦検知されると、この合焦検知された時点から、符号Fで示す期間(期間F;上記1秒間)だけ撮影画像が画像バッファ用フレームメモリ66に上書き記録される(図13に示す期間Fに相当)。一方、符号Bで示す期間(期間B)の撮影画像は上書きされずに画像バッファ用フレームメモリ66に残っている(図13に示す期間Bに相当)。合焦検知されるまでの符号J及び符号Bで示す期間は循環記録動作が継続されている。また、符号443で示す期間が画像バッファ用フレームメモリ66の画像記録可能期間(上記2秒間;全メモリ容量)となる。   As an example, when the portable three-dimensional measuring device 1a is moved from the position far from the object to be measured across the in-focus position as shown by the graph line 4111 in FIG. When the focus is detected at (timing), the captured image is overwritten and recorded in the image buffer frame memory 66 for the period indicated by the symbol F (period F; the above-mentioned 1 second) from the time when the focus is detected (FIG. 5). 13 corresponds to the period F shown in FIG. On the other hand, the captured image in the period indicated by the symbol B (period B) remains in the image buffer frame memory 66 without being overwritten (corresponding to the period B shown in FIG. 13). The cyclic recording operation is continued during the period indicated by the symbols J and B until the focus is detected. A period indicated by reference numeral 443 is an image recordable period (the above-mentioned 2 seconds; total memory capacity) of the image buffer frame memory 66.

なお、トリガーSW7をONしたまま、再度、合焦位置をまたいで携帯型三次元測定装置1を移動させたとしても、撮影画像の画像バッファ用フレームメモリ66への書き込み動作は行われない。すなわち、実際の動作として期間F後もユーザがトリガーSW7をONしたままであっても、合焦検知後に上記期間Fの時間が経過した時点(符号444で示すタイミング)で画像記録動作が停止するつまりトリガーSW7が実質的にOFFされた状態となる。   Even if the portable three-dimensional measuring apparatus 1 is moved again across the in-focus position with the trigger SW 7 turned on, the operation of writing the captured image into the image buffer frame memory 66 is not performed. That is, even if the user keeps the trigger SW 7 ON after the period F as an actual operation, the image recording operation is stopped when the time of the period F elapses after the focus detection (timing indicated by reference numeral 444). That is, the trigger SW 7 is substantially turned off.

また、トリガーSW7をONして前後移動を開始してから合焦検知されるまでの期間が短い、つまり上記メモリ容量が満たされておらずまだ循環記録が開始されていない段階で合焦検知がなされた場合であっても、同様に、この合焦検知タイミングから画像記録可能期間内での所定時間分(所定メモリ容量分)だけ画像記録動作が行われてその後、停止する。上記の場合も含め、この場合も、必ずしも画像記録可能期間全体における期間Fと期間Bとの比率、或いは合焦検知が行われる前後で記録された撮影画像枚数の比率が同じにならなくともよい。このように合焦検知前後での撮影画像が記録されることが望ましいが、必ずしもこうでなくともよく、トリガーSW7をONした直後に合焦検知されて、合焦検知前の期間F内に記録された撮影画像が1枚も無くても構わない。要は、合焦検知されて画像バッファ用フレームメモリ66にそのときの撮影画像が記録されればよい(この場合、後に最も合焦度合いの高い画像を選択する動作を行うことなしに、この1枚の撮影画像を合焦画像として決定してもよい)。   The focus detection is performed at a stage where the trigger SW 7 is turned on and the period from when the forward / backward movement is started until the focus is detected is short, that is, when the memory capacity is not satisfied and the circular recording is not yet started. Even in the case where the image recording is performed, similarly, the image recording operation is performed for a predetermined time (predetermined memory capacity) within the image recordable period from the focus detection timing, and then stopped. In this case, including the above case, the ratio of the period F to the period B in the entire image recordable period or the ratio of the number of shot images recorded before and after the focus detection is performed may not be the same. . As described above, it is desirable to record the captured images before and after the focus detection. However, this is not always necessary. The focus detection is performed immediately after the trigger SW 7 is turned on, and the image is recorded within the period F before the focus detection. There may be no captured image. In short, it is only necessary to detect the focus and record the captured image at that time in the image buffer frame memory 66 (in this case, without performing the operation of selecting the image with the highest degree of focus later) A single photographed image may be determined as a focused image).

図14は、第2の実施形態における携帯型三次元測定装置1aによる測定動作の一例を示すフローチャートである。先ず携帯型三次元測定装置1aの電源スイッチがONされる或いは電源スイッチがONされた後、プレビューモード等に切り替えられることで、撮像センサ41による撮影画像(被測定物或いは測定部位の画像)がモニタ部91に表示される(ステップS21)。ユーザは、このモニタ画像を見ながら携帯型三次元測定装置1aを移動させるなどして合焦位置の大凡の見当をつけておいてから、トリガーSW7をONする。トリガーSW7がONされると、この時点で、撮影画像の画像バッファ用フレームメモリ66への記録動作が開始され(ステップS22)、後述の合焦検知がなされるまでこの記録動作が継続される。このとき、画像バッファ用フレームメモリ66の全メモリ容量分に画像が記録された時点で循環記録が開始されて当該記録動作が継続される(ステップS23のNO)。CPU69によって、コントラスト演算部68によるコントラスト演算の結果に基づいて合焦検知がなされると(この時点で制御部6の例えばCPU69により時間計測動作が開始される)(ステップS23のYES)、画像バッファ用フレームメモリ66の例えば半分のメモリ容量分だけ循環記録された後(ステップS24)、当該循環記録動作が停止されて画像バッファ用フレームメモリ66への撮影画像の記録動作が終了する(ステップS25)。そして、CPU69によって、画像バッファ用フレームメモリ66に記録された各画像に対するコントラスト演算部68によるコントラスト演算処理の結果に基づいて、当該複数の記録画像の中から合焦画像(最も合焦度合いの高い或いは合焦状態の良い撮影画像)が選択される(ステップS26)。ただしこの場合も、CPU69は、コントラスト演算により得られた各記録画像のコントラスト情報を用いて、各記録画像の中の例えば最もコントラストが高い画像を合焦画像として選択する。   FIG. 14 is a flowchart illustrating an example of a measurement operation performed by the portable three-dimensional measurement apparatus 1a according to the second embodiment. First, after the power switch of the portable three-dimensional measuring apparatus 1a is turned on or the power switch is turned on, the image is taken by the image sensor 41 (the image of the object to be measured or the measurement site) by switching to the preview mode or the like. It is displayed on the monitor unit 91 (step S21). The user turns on the trigger SW 7 after obtaining the general position of the in-focus position, for example, by moving the portable three-dimensional measuring apparatus 1 a while viewing the monitor image. When the trigger SW 7 is turned on, at this time, the recording operation of the captured image in the image buffer frame memory 66 is started (step S22), and this recording operation is continued until the focus detection described later is performed. At this time, when the image is recorded in the entire memory capacity of the image buffer frame memory 66, the circular recording is started and the recording operation is continued (NO in step S23). When focus detection is performed by the CPU 69 based on the result of the contrast calculation by the contrast calculation unit 68 (at this time, for example, the CPU 69 of the control unit 6 starts a time measurement operation) (YES in step S23), the image buffer For example, half of the memory capacity of the frame memory 66 is circularly recorded (step S24), and then the circular recording operation is stopped and the recording operation of the captured image in the image buffer frame memory 66 is completed (step S25). . Then, based on the result of the contrast calculation processing performed by the contrast calculation unit 68 for each image recorded in the image buffer frame memory 66 by the CPU 69, a focused image (the highest degree of focus) is selected from the plurality of recorded images. Alternatively, a photographed image with good focus is selected (step S26). However, also in this case, the CPU 69 selects, for example, an image with the highest contrast among the recorded images as the focused image using the contrast information of the recorded images obtained by the contrast calculation.

本発明は次の態様をとることができる。上記第1及び第2の実施形態では、画像バッファ用フレームメモリ66に記録された記録画像群(連続画像群)の中から最も合焦度合いの高い画像を選択する方法として、各記録画像のコントラスト情報に基づく選択を行う方法を採用しているが、これに限らず、例えばスリット光発生手段2によるスリット光(十字状のスリット光でなくともよい)による投影像の合焦状態を示す特徴量に基づいて、記録画像群から最も合焦度合いの高い画像を選択する方法を採用してもよい。ただし、この特徴量とは、例えばスリット光の幅の大きさを示す。この場合、投影されたスリット光の幅が合焦位置で最も細く(最も幅が狭く)なることを利用して、スリット光の幅が最も狭くなる(例えば半値幅の値が最も小さくなる)投影像が写っている記録画像を合焦画像として選択してもよい。また、この特徴量は、スリット光の幅の大きさだけでなく、この幅方向における輝度分布のピークの情報を含むものとしてもよい。この場合、例えば最もスリット光の幅が狭く且つ輝度分布のピークが高い記録画像(投影像)を合焦画像として選択してもよい。さらに、この特徴量を、スリット光による投影像のコントラスト(CCDの画素間の出力値の差;各画素値の差)情報としてもよい。この場合、スリット光の投影像のコントラストが最も高い記録画像(投影像)を合焦画像として選択してもよい。なお、ここではスリット光の場合を説明しているが、必ずしも“スリット”という投影形状が線状となる光でなくともよく、例えば円状や四角状となる光であってもよいし、所定のパターン形状の光であってもよい。   The present invention can take the following aspects. In the first and second embodiments, as a method for selecting an image with the highest degree of focus from the recorded image group (continuous image group) recorded in the image buffer frame memory 66, the contrast of each recorded image is selected. Although a method of performing selection based on information is adopted, the present invention is not limited to this, and for example, a feature amount indicating a focused state of a projected image by slit light (not necessarily cross-shaped slit light) by the slit light generation unit 2 Based on the above, a method of selecting an image with the highest degree of focus from the recorded image group may be employed. However, the feature amount indicates, for example, the width of the slit light. In this case, using the fact that the width of the projected slit light is the narrowest (the narrowest width) at the in-focus position, the slit light has the narrowest width (for example, the half-value width is the smallest). A recorded image with an image may be selected as the focused image. The feature amount may include not only the width of the slit light but also information on the peak of the luminance distribution in the width direction. In this case, for example, a recorded image (projected image) having the narrowest slit light width and the highest luminance distribution peak may be selected as the focused image. Further, this feature amount may be used as contrast (difference in output value between CCD pixels; difference in pixel values) information of a projected image by slit light. In this case, a recorded image (projected image) having the highest contrast of the projected image of the slit light may be selected as the focused image. Although the case of slit light is described here, the projection shape “slit” does not necessarily have to be linear light, and may be, for example, light having a circular shape or a square shape. The light of the pattern shape may be used.

また、上記第2の実施形態では、上述のように(ステップS26のように)、画像バッファ用フレームメモリ66に記録された記録画像群の中から合焦画像を選択する際、記録画像のコントラストに基づいて選択しているが、これに限らず、初めの合焦位置近傍を前後移動させて撮影する段階で合焦検知機能によって合焦検知されたときの撮影画像(記録画像)を、合焦画像として選択してもよい。   In the second embodiment, as described above (as in step S26), when selecting a focused image from the recorded image group recorded in the image buffer frame memory 66, the contrast of the recorded image. However, the present invention is not limited to this, and the captured image (recorded image) when the focus is detected by the focus detection function at the stage where the vicinity of the initial focus position is moved back and forth is captured. It may be selected as a focused image.

また、上記第2の実施形態では、撮影画像のコントラストに基づいて合焦検知を行っているが、これに限定されない。すなわち、スリット光発生手段2による十字状スリット光を利用して、この十字状スリット光の交点(X方向スリット光とY方向スリット光との交点)が被測定物の所定位置に一致する度合い(例えば上記スリット光の交点と所定位置との距離或いは合焦度合い)を判別することで合焦検知を行ってもよい。   In the second embodiment, focus detection is performed based on the contrast of the captured image, but the present invention is not limited to this. That is, by using the cross-shaped slit light by the slit light generating means 2, the degree of intersection of the cross-shaped slit light (intersection of the X-direction slit light and the Y-direction slit light) coincides with a predetermined position of the object to be measured ( For example, focus detection may be performed by determining the distance or the degree of focus between the intersection of the slit lights and a predetermined position.

また、記録画像群から最も合焦度合いの高い画像を選択する際に、例えば合焦度合いが同じである画像が複数存在するような場合は、これらのうちの1つを代表として選択してもよいし、各画像の合焦度合いの高い領域をそれぞれ抽出して、該抽出した領域を合成して1つの画像(合成画像)としてもよいし、これら複数の画像全てを最も合焦度合いの高い画像として選択してもよい。   Further, when selecting an image with the highest degree of focus from the group of recorded images, for example, when there are a plurality of images with the same degree of focus, one of them may be selected as a representative. It is also possible to extract regions with a high degree of focus in each image, and combine the extracted regions into one image (synthesized image), or all these images have the highest degree of focus. You may select as an image.

以上のように、本発明の第1及び第2の実施形態に係る携帯型計測器(携帯型三次元測定装置1、1a)によれば、ユーザが手に持った状態で被測定物(例えば被測定物100)の計測を行うことが可能な携帯型計測器において、撮像手段(撮像センサ41)によって被測定物が撮影されて撮影画像が得られ、記録手段(画像バッファ用フレームメモリ66)によって、撮像手段により一定期間に連続的に撮影して得られた撮影画像群が記録される。そして、指示入力手段(トリガーSW7)によって、一定期間における撮影画像群の記録動作を開始させるための指示入力が行われ、選択手段(CPU69の選択機能)によって、記録手段に記録された複数の撮影画像から最も合焦度合いの高い撮影画像が選択される。   As described above, according to the portable measuring instrument (portable three-dimensional measuring device 1, 1a) according to the first and second embodiments of the present invention, an object to be measured (for example, a state in which the user holds it in his hand) In a portable measuring instrument capable of measuring the object to be measured 100), the object to be measured is photographed by the imaging means (imaging sensor 41) to obtain a photographed image, and the recording means (image buffer frame memory 66). Thus, a group of captured images obtained by continuously capturing images for a predetermined period by the imaging unit is recorded. Then, the instruction input means (trigger SW7) inputs an instruction for starting the recording operation of the photographed image group for a certain period, and the selection means (selection function of the CPU 69) records a plurality of photographings recorded in the recording means. A photographed image with the highest degree of focus is selected from the image.

また、本発明の第1及び第2の実施形態に係る計測方法によれば、ユーザが手に持った状態で被測定物の計測を行うことが可能な携帯型計測器を用いた計測方法において、撮像工程によって、被測定物を撮影して撮影画像が得られ、記録工程によって、上記撮像工程で一定期間に連続的に撮影して得られた撮影画像群が記録される。そして、指示入力工程によって、一定期間における撮影画像群の記録動作を開始させるための指示入力が行われ、選択工程によって、上記記録工程で記録された複数の撮影画像から最も合焦度合いの高い撮影画像が選択される。   Moreover, according to the measurement method according to the first and second embodiments of the present invention, in the measurement method using the portable measuring instrument capable of measuring the object to be measured while being held in the hand of the user. In the imaging step, a photographed image is obtained by photographing the object to be measured, and in the recording step, a group of photographed images obtained by continuously photographing in the imaging step in a certain period is recorded. Then, an instruction input for starting the recording operation of the photographed image group in a certain period is performed by the instruction input process, and the photographing with the highest degree of focus is performed from the plurality of photographed images recorded in the recording process by the selection process. An image is selected.

このように、ユーザの操作に応じて撮影画像の記録が開始されて、一定期間の間、連続的に撮影して得られた撮影画像群が記録され、この記録された撮影画像群の中から最も合焦度合いの高い撮影画像が選択されるので、例えばユーザが手で持って携帯型計測器を大凡の合焦位置までもっていき、合焦位置の近傍を移動させながら一定期間の間、撮影画像を記録することによって合焦位置の撮影画像を含んだ撮影画像群が記録され、この撮影画像群から、選択手段による処理(最も合焦度合いの高い撮影画像を選択する処理)によって自動的に合焦画像を取得することができる。したがって、このように携帯型であっても、ユーザは被測定物に対する焦点位置を正確に合わせる作業が不要となり、謂わば大まかに合焦位置近傍を撮影する(複数の画像フレームを連続的に記録する)だけで容易に合焦画像を取得することが可能となる。なお、このことは、AF機能(手持ち起因の距離変動に追従するフォーカシング機構;フォーカシング光学系)を備えずして実現されるため、携帯型計測器のコンパクト(小型)化且つ低コスト化を図ることができる。   In this way, recording of a captured image is started in response to a user's operation, and a captured image group obtained by continuously capturing images for a certain period is recorded, and the recorded captured image group is selected from the recorded captured image group. Since the photographed image with the highest degree of focus is selected, for example, the user holds the portable measuring instrument to the approximate in-focus position with his hand, and shoots for a certain period while moving the vicinity of the in-focus position. By recording the image, a group of captured images including the captured image at the in-focus position is recorded, and from this captured image group, processing by a selection unit (processing for selecting a captured image with the highest degree of focus) is automatically performed. A focused image can be acquired. Therefore, even in such a portable type, the user does not need to accurately adjust the focus position with respect to the object to be measured, and so-called roughly photographing the vicinity of the focus position (recording a plurality of image frames continuously). It is possible to easily obtain a focused image. Note that this is achieved without the AF function (focusing mechanism that follows hand-held distance fluctuation; focusing optical system), so the portable measuring instrument is made compact (small) and low in cost. be able to.

また、撮像手段による撮影画像をモニタ表示可能に構成された表示手段(モニタ部91)をさらに備えるので、ユーザは、被測定物の撮影画像を表示手段のモニタ表示を見ながら容易に大凡の合焦位置を見付けることができる。すなわち、確実に撮影画像群に合焦画像を含ませることができるようになり、ひいては携帯型計測器による計測において一層容易に合焦画像を取得することができる。   Further, since the display unit (monitor unit 91) configured to display the captured image by the imaging unit on a monitor is further provided, the user can easily view the captured image of the object to be measured while viewing the monitor display on the display unit. The focal position can be found. That is, the focused image can be surely included in the captured image group, and as a result, the focused image can be acquired more easily in the measurement by the portable measuring instrument.

また、合焦検知手段(コントラスト演算部68、CPU69の合焦検知機能)によって、撮影画像に基づいて、被測定物に対して合焦したか否かが検知され、また、記録制御手段(CPU69の記録制御機能)によって、合焦検知手段により合焦が検知されると記録手段による記録動作を停止させる制御が行われるので、大まかに合焦位置近傍を撮影して得た撮影画像群の中に、合焦が検知されたときの撮影画像(最も焦点度合いが高いつまり合焦画像であろうと想定される画像であって、必ずしもこの画像が所要の合焦画像すなわち最も合焦度合いの高い画像ではない)をより容易且つ確実に含ませることが可能となる。   Further, whether or not the object to be measured is in focus is detected based on the photographed image by the focus detection means (contrast calculation unit 68, the focus detection function of the CPU 69), and the recording control means (CPU 69). Recording control function), when the focus detection means detects the in-focus, the recording operation by the recording means is controlled. Therefore, in the group of photographed images obtained by photographing the vicinity of the in-focus position roughly. In addition, a photographed image when focus is detected (an image that is assumed to be a focused image with the highest degree of focus, that is, a focused image, and this image is not necessarily a required focused image, that is, an image with the highest degree of focus. Can be included more easily and reliably.

また、記録制御手段が、記録手段に撮影画像を循環的に記録(循環的に書き換えて記録;循環記録)させる制御を行うものとされ、この記録制御手段によって、合焦検知手段により合焦が検知された時点から、記録手段の記録容量における所定容量分だけ撮影画像が循環的に記録された後、記録動作を停止させる制御が行われるので、記録した撮影画像群の中に、合焦検知手段により合焦が検知されたときの撮影画像(上述と同様、合焦画像であろうと想定される画像)と共に、この撮影画像(合焦位置)の前後位置での撮影画像(前ピン画像及び後ピン画像)をも含ませることができる。このため、これら撮影画像群から最も合焦度合いの高い撮影画像を選択するなどしてより正確に合焦画像を取得することが可能となる。   Further, the recording control means controls to record the photographic image in the recording means in a cyclic manner (circular rewriting and recording; cyclic recording). Since the captured image is cyclically recorded by the predetermined capacity of the recording capacity of the recording means from the time of detection, control is performed to stop the recording operation, so that the focus detection is performed in the recorded captured image group. In addition to the captured image when the focus is detected by the means (the image that is assumed to be the focused image as described above), the captured image (the front pin image and A rear pin image) can also be included. For this reason, it becomes possible to acquire a focused image more accurately by selecting a captured image with the highest degree of focus from these captured image groups.

また、投影手段によって被測定物に十字状スリット光が投影され、合焦検知手段によって、十字状スリット光の交点が該被測定物の所定位置に一致する度合いを判別することで合焦したか否かが検知されるので、例えば携帯型計測器が三次元計測器(携帯型三次元測定装置1、1a)であり、該三次元計測を行うために十字状スリット光を被測定物に投影するものである場合に、この既存の投影手段(スリット投光光学系31)を利用して(低コストで)、容易に合焦検知を行うことができる。   Whether the cross-shaped slit light is projected onto the object to be measured by the projecting means, and the in-focus detection means determines whether the intersection of the cross-shaped slit light matches the predetermined position of the object to be measured. For example, the portable measuring instrument is a three-dimensional measuring instrument (portable three-dimensional measuring apparatus 1, 1a), and the cross-shaped slit light is projected onto the object to be measured in order to perform the three-dimensional measurement. In this case, it is possible to easily detect the focus by using the existing projection means (slit light projecting optical system 31) (at a low cost).

また、記録制御手段によって、指示入力手段による指示入力に従って記録手段による撮影画像の記録動作が開始されてから、該指示入力手段による指示入力に従って記録動作が停止されるまでの一定期間の間、該記録手段に撮影画像を記録させる制御が行われる。すなわち、ユーザが指示入力手段例えば入力ボタン(トリガーSW7)を押下している間(一定期間)だけ撮影画像が記録される構成であるので、合焦位置近傍を移動させながら当該撮影画像を記録するための操作が簡単に行えるようになる。   In addition, the recording control unit starts the recording operation of the photographed image by the recording unit according to the instruction input by the instruction input unit, and then stops the recording operation according to the instruction input by the instruction input unit. Control is performed to cause the recording means to record the photographed image. That is, since the photographed image is recorded only while the user presses the instruction input means, for example, the input button (trigger SW7) (a certain period), the photographed image is recorded while moving in the vicinity of the in-focus position. Can be easily performed.

また、記録制御手段によって、指示入力手段による指示入力に従って記録手段による撮影画像の記録動作が開始されてから、該記録手段の記録容量を満たして記録されるまでの一定期間の間、該記録手段に撮影画像を記録させる制御が行われるので、指示入力手段によって記録動作を停止させる指示入力動作を不要とすることができる、或いは、少なくとも初めに記録動作開始の指示入力さえ行えば(開始ボタン;トリガーSW7を押下すれば)、後は自動的に記録手段の記録容量を満たすまで記録されて当該記録動作が停止(終了)する構成とすることができるので、合焦位置近傍における一定期間の撮影画像の記録を簡単な操作で容易に行うことができる。   In addition, the recording means for a certain period from when the recording operation of the photographed image is started by the recording means according to the instruction input by the instruction input means until the recording capacity of the recording means is recorded. Since the control for recording the photographed image is performed, the instruction input operation for stopping the recording operation by the instruction input means can be made unnecessary, or at least when the instruction input for starting the recording operation is performed at first (start button; Since the recording operation is automatically stopped until the recording capacity of the recording unit is satisfied and the recording operation is stopped (terminated) after that, when the trigger SW7 is pressed, the image is taken for a certain period in the vicinity of the in-focus position. It is possible to easily record an image with a simple operation.

また、選択手段によって、撮影画像のコントラストに基づいて撮影画像群から最も合焦度合いの高い撮影画像が選択されるので、簡易な方法(画像処理)によって容易に撮影画像群から最も合焦度合いの高い撮影画像を選択することができる。   Further, since the selection unit selects the photographed image with the highest degree of focus from the photographed image group based on the contrast of the photographed image, the simplest method (image processing) can easily select the most focused degree from the photographed image group. A high photographed image can be selected.

また、投影手段によって被測定物に所定のスリット光が投影され、選択手段によって、スリット光による投影像の合焦状態を示す特徴量に基づいて、撮影画像群から最も合焦度合いの高い撮影画像が選択されるので、例えば携帯型計測器が三次元計測器であり、該三次元計測を行うために所定のスリット光を被測定物に投影するものである場合に、既存の投影手段(スリット投光光学系31)を利用して(低コストで)、投影像におけるこの特徴量に基づいて、容易に撮影画像群から最も合焦度合いの高い撮影画像を選択することができる。   Further, a predetermined slit light is projected onto the object to be measured by the projecting means, and a photographed image having the highest degree of focus from the photographed image group based on the feature amount indicating the focused state of the projected image by the slit light by the selecting means. Therefore, for example, when the portable measuring instrument is a three-dimensional measuring instrument and projects predetermined slit light onto the object to be measured in order to perform the three-dimensional measurement, the existing projection means (slit Using the light projecting optical system 31) (at a low cost), it is possible to easily select a photographed image with the highest degree of focus from the photographed image group based on this feature amount in the projected image.

また、選択手段によって、特徴量としてのスリット光の幅の大きさに基づいて、撮影画像群から最も合焦度合いの高い撮影画像が選択されるので、スリット光の幅の大きさという簡単な特徴量に基づいて、容易に撮影画像群から最も合焦度合いの高い撮影画像を選択することができる。   In addition, since the selection unit selects a photographed image having the highest degree of focus from the photographed image group based on the width of the slit light as the feature amount, a simple feature of the width of the slit light is selected. Based on the amount, a photographed image with the highest degree of focus can be easily selected from the photographed image group.

また、選択手段によって、特徴量としての、スリット光の幅の大きさ及び該幅方向における輝度分布のピークに基づいて、撮影画像群から最も合焦度合いの高い撮影画像が選択されるので、例えば最もスリット光の幅が狭く且つピークが高くなっている撮影画像(投影像)を選択する、というようにして、より正確に且つ容易に撮影画像群から最も合焦度合いの高い撮影画像を選択することができる。   Further, since the selection unit selects a photographed image with the highest degree of focus from the photographed image group based on the width of the slit light as the feature amount and the peak of the luminance distribution in the width direction, for example, A photographed image (projected image) with the narrowest slit light width and a high peak is selected, and the photographed image with the highest degree of focus is selected from the photographed image group more accurately and easily. be able to.

さらに、選択手段によって、特徴量としての、スリット光による投影像のコントラストに基づいて、撮影画像群から最も合焦度合いの高い撮影画像が選択されるので、簡易な方法(画像処理)によって容易に撮影画像群から最も合焦度合いの高い撮影画像を選択することができる。   Furthermore, since the selection means selects a photographed image with the highest degree of focus from the photographed image group based on the contrast of the projected image by the slit light as the feature quantity, it can be easily obtained by a simple method (image processing). A photographed image with the highest degree of focus can be selected from the photographed image group.

第1の実施形態に係る携帯型三次元測定装置を示す斜視図である。It is a perspective view which shows the portable three-dimensional measuring apparatus which concerns on 1st Embodiment. 図1に示す携帯型三次元測定装置の側面図である。It is a side view of the portable three-dimensional measuring apparatus shown in FIG. 図1に示す携帯型三次元測定装置の測定領域を示す斜視図である。It is a perspective view which shows the measurement area | region of the portable three-dimensional measuring apparatus shown in FIG. 3次元形状を有する被測定物(測定対象)に対するスリット光Sの照射状況を示す斜視図である。It is a perspective view which shows the irradiation condition of the slit light S with respect to the to-be-measured object (measurement object) which has a three-dimensional shape. 図1に示す携帯型三次元測定装置の電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of the portable three-dimensional measuring apparatus shown in FIG. 合焦画像及び合焦画像の前後位置におけるピンボケ画像を概略的に示す模式図である。It is a schematic diagram which shows roughly the out-of-focus image in the front and back position of a focused image and a focused image. 第1の実施形態における、ユーザが携帯型三次元測定装置を前後移動させて被測定物を撮影している様子を示す模式図である。It is a schematic diagram which shows a mode that the user is moving the portable three-dimensional measuring apparatus back and forth, and image | photographs the to-be-measured object in 1st Embodiment. 図7に示す場合における携帯型三次元測定装置の前後移動動作を概念的に示す図である。It is a figure which shows notionally the movement operation | movement back and forth of the portable three-dimensional measuring apparatus in the case shown in FIG. 第1の実施形態における携帯型三次元測定装置による測定動作の一例を示すフローチャートである。It is a flowchart which shows an example of the measurement operation | movement by the portable three-dimensional measuring apparatus in 1st Embodiment. 第2の実施形態における、ユーザが携帯型三次元測定装置を前後移動させて被測定物を撮影している様子を示す模式図である。It is a schematic diagram which shows a mode that the user is moving the portable three-dimensional measuring apparatus back and forth, and image | photographs the to-be-measured object in 2nd Embodiment. 図10に示す場合における携帯型三次元測定装置の前後移動動作を概念的に示す図である。It is a figure which shows notionally the movement operation | movement back and forth of the portable three-dimensional measuring apparatus in the case shown in FIG. 画像バッファ用フレームメモリに記録された全撮影画像を概念的に示す模式図である。FIG. 3 is a schematic diagram conceptually showing all photographed images recorded in an image buffer frame memory. 第2の実施形態において、合焦画像及びこの合焦画像を挟むその前後位置での各撮影画像のメモリへの記録について説明する模式図である。In a 2nd embodiment, it is a mimetic diagram explaining recording to a memory of an in-focus picture and each photography picture in the position before and behind which sandwiches this focused picture. 第2の実施形態における携帯型三次元測定装置による測定動作の一例を示すフローチャートである。It is a flowchart which shows an example of the measurement operation | movement by the portable three-dimensional measuring apparatus in 2nd Embodiment.

符号の説明Explanation of symbols

1、1a 携帯型三次元測定装置(携帯型計測器)
2 スリット光発生手段
21 レーザ光源
3 投光光学系
31 スリット投光光学系(投影手段)
4 撮像手段
41 撮像センサ(撮像手段)
5 照明手段
51 照明光源
6、6a 制御部
61 第1発光制御部
62 第2発光制御部
65 デジタル演算処理部
66 画像バッファ用フレームメモリ(記録手段)
67 画像演算用フレームメモリ
68 コントラスト演算部(合焦検知手段)
69 CPU(選択手段、合焦検知手段、記録制御手段)
7 トリガーSW(指示入力手段)
8 外部インターフェイス部
9 外部装置
91 モニタ部(表示手段)
10 本体ハウジング
100 被測定物
1, 1a Portable three-dimensional measuring device (portable measuring instrument)
2 Slit light generation means 21 Laser light source 3 Projection optical system 31 Slit projection optical system (projection means)
4 Imaging means 41 Imaging sensor (imaging means)
DESCRIPTION OF SYMBOLS 5 Illumination means 51 Illumination light source 6, 6a Control part 61 1st light emission control part 62 2nd light emission control part 65 Digital arithmetic processing part 66 Frame memory for image buffers (recording means)
67 Image calculation frame memory 68 Contrast calculation unit (focus detection means)
69 CPU (selection means, focus detection means, recording control means)
7 Trigger SW (Instruction input means)
8 External interface unit 9 External device 91 Monitor unit (display means)
10 Main body housing 100 Device under test

Claims (14)

ユーザが手に持った状態で被測定物の計測を行うことが可能な携帯型計測器であって、
前記被測定物を撮影して撮影画像を得る撮像手段と、
前記撮像手段によって一定期間に連続的に撮影して得られた撮影画像群を記録する記録手段と、
前記一定期間における撮影画像群の記録動作を開始させるための指示入力を行う指示入力手段と、
前記記録手段に記録された複数の撮影画像から最も合焦度合いの高い撮影画像を選択する選択手段と
を備えることを特徴とする携帯型計測器。
A portable measuring instrument capable of measuring an object to be measured while being held in a hand,
Imaging means for photographing the object to be measured and obtaining a photographed image;
A recording unit for recording a group of captured images obtained by continuously capturing a predetermined period by the imaging unit;
An instruction input means for performing an instruction input for starting the recording operation of the captured image group in the predetermined period;
A portable measuring instrument comprising: selecting means for selecting a photographed image with the highest degree of focus from a plurality of photographed images recorded in the recording means.
前記撮像手段による撮影画像をモニタ表示可能に構成された表示手段をさらに備えることを特徴とする請求項1に記載の携帯型計測器。   The portable measuring instrument according to claim 1, further comprising display means configured to be able to display a monitor image taken by the imaging means. 前記撮影画像に基づいて、前記被測定物に対して合焦したか否かを検知する合焦検知手段と、
前記合焦検知手段により前記合焦が検知されると前記記録手段による記録動作を停止させる制御を行う記録制御手段とをさらに備えることを特徴とする請求項1又は2に記載の携帯型計測器。
Focus detection means for detecting whether or not the object to be measured is focused based on the captured image;
The portable measuring instrument according to claim 1, further comprising: a recording control unit that performs control to stop a recording operation by the recording unit when the focusing is detected by the focusing detection unit. .
前記記録制御手段は、
前記記録手段に撮影画像を循環的に記録させる制御を行うものであって、
前記合焦検知手段により前記合焦が検知された時点から、前記記録手段の記録容量における所定容量分だけ撮影画像を前記循環的に記録させた後、前記記録動作を停止させる制御を行うことを特徴とする請求項3に記載の携帯型計測器。
The recording control means includes
The recording unit is configured to perform a control to record a captured image in a cyclic manner,
Control is performed to stop the recording operation after the captured image is cyclically recorded by a predetermined amount in the recording capacity of the recording unit from the time when the in-focus detection unit detects the in-focus state. The portable measuring instrument according to claim 3, wherein
前記合焦検知手段は、
前記撮影画像のコントラストに基づいて前記合焦したか否かを検知することを特徴とする請求項3又は4に記載の携帯型計測器。
The focus detection means is
The portable measuring instrument according to claim 3 or 4, wherein whether or not the in-focus state is achieved is detected based on a contrast of the captured image.
前記被測定物に十字状スリット光を投影する投影手段をさらに備え、
前記合焦検知手段は、
前記十字状スリット光の交点が該被測定物の所定位置に一致する度合いを判別することで前記合焦したか否かを検知することを特徴とする請求項3又は4に記載の携帯型計測器。
A projection means for projecting cross-shaped slit light onto the object to be measured;
The focus detection means is
5. The portable measurement according to claim 3, wherein it is detected whether or not the in-focus state is detected by determining a degree to which an intersection of the cross-shaped slit light coincides with a predetermined position of the object to be measured. vessel.
前記記録制御手段は、
前記指示入力手段による指示入力に従って前記記録手段による撮影画像の記録動作が開始されてから、該指示入力手段による指示入力に従って記録動作が停止されるまでの前記一定期間の間、該記録手段に撮影画像を記録させる制御を行うことを特徴とする請求項1又は2に記載の携帯型計測器。
The recording control means includes
In accordance with the instruction input from the instruction input means, the recording means captures an image on the recording means for a certain period after the recording operation is started by the recording means until the recording operation is stopped according to the instruction input by the instruction input means. 3. The portable measuring instrument according to claim 1, wherein control for recording an image is performed.
前記記録制御手段は、
前記指示入力手段による指示入力に従って前記記録手段による撮影画像の記録動作が開始されてから、該記録手段の記録容量を満たして記録されるまでの前記一定期間の間、該記録手段に撮影画像を記録させる制御を行うことを特徴とする請求項7に記載の携帯型計測器。
The recording control means includes
In accordance with an instruction input from the instruction input unit, a recording image is recorded on the recording unit for a certain period after the recording operation of the recording unit is started until the recording capacity of the recording unit is recorded. The portable measuring instrument according to claim 7, wherein control for recording is performed.
前記選択手段は、
前記撮影画像のコントラストに基づいて前記撮影画像群から最も合焦度合いの高い撮影画像を選択することを特徴とする請求項1〜8のいずれかに記載の携帯型計測器。
The selection means includes
The portable measuring instrument according to any one of claims 1 to 8, wherein a photographed image with the highest degree of focus is selected from the group of photographed images based on the contrast of the photographed image.
前記被測定物に所定のスリット光を投影する投影手段をさらに備え、
前記選択手段は、
前記スリット光による投影像の合焦状態を示す特徴量に基づいて、前記撮影画像群から最も合焦度合いの高い撮影画像を選択することを特徴とする請求項1〜8のいずれかに記載の携帯型計測器。
A projection means for projecting predetermined slit light onto the object to be measured;
The selection means includes
The photographed image with the highest degree of focusing is selected from the photographed image group based on a feature amount indicating a focused state of the projected image by the slit light. Portable measuring instrument.
前記選択手段は、
前記特徴量としての前記スリット光の幅の大きさに基づいて、前記撮影画像群から最も合焦度合いの高い撮影画像を選択することを特徴とする請求項10に記載の携帯型計測器。
The selection means includes
The portable measuring instrument according to claim 10, wherein a photographed image with the highest degree of focus is selected from the photographed image group based on the width of the slit light as the feature amount.
前記選択手段は、
前記特徴量としての、前記スリット光の幅の大きさ及び該幅方向における輝度分布のピークに基づいて、前記撮影画像群から最も合焦度合いの高い撮影画像を選択することを特徴とする請求項11に記載の携帯型計測器。
The selection means includes
The photographed image having the highest degree of focus is selected from the photographed image group based on the width of the slit light and the peak of the luminance distribution in the width direction as the feature amount. 11. The portable measuring instrument according to 11.
前記選択手段は、
前記特徴量としての、前記スリット光による投影像のコントラストに基づいて、前記撮影画像群から最も合焦度合いの高い撮影画像を選択することを特徴とする請求項10に記載の携帯型計測器。
The selection means includes
The portable measuring device according to claim 10, wherein a photographed image with the highest degree of focus is selected from the photographed image group based on the contrast of the projected image by the slit light as the feature amount.
ユーザが手に持った状態で被測定物の計測を行うことが可能な携帯型計測器を用いた計測方法であって、
前記被測定物を撮影して撮影画像を得る撮像工程と、
前記撮像工程において一定期間に連続的に撮影して得られた撮影画像群を記録する記録工程と、
前記一定期間における撮影画像群の記録動作を開始させるための指示入力を行う指示入力工程と、
前記記録工程において記録された複数の撮影画像から最も合焦度合いの高い撮影画像を選択する選択工程と
を有することを特徴とする計測方法。
A measurement method using a portable measuring instrument capable of measuring an object to be measured while being held in a hand,
An imaging step of capturing the measured object and obtaining a captured image;
A recording step of recording a group of captured images obtained by continuously capturing images in a predetermined period in the imaging step;
An instruction input step for inputting an instruction for starting the recording operation of the captured image group in the predetermined period;
And a selection step of selecting a photographed image with the highest degree of focus from a plurality of photographed images recorded in the recording step.
JP2007163800A 2007-06-21 2007-06-21 Portable measuring device, and measuring method using the same Pending JP2009002789A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007163800A JP2009002789A (en) 2007-06-21 2007-06-21 Portable measuring device, and measuring method using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007163800A JP2009002789A (en) 2007-06-21 2007-06-21 Portable measuring device, and measuring method using the same

Publications (1)

Publication Number Publication Date
JP2009002789A true JP2009002789A (en) 2009-01-08

Family

ID=40319335

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007163800A Pending JP2009002789A (en) 2007-06-21 2007-06-21 Portable measuring device, and measuring method using the same

Country Status (1)

Country Link
JP (1) JP2009002789A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017038680A1 (en) * 2015-08-31 2017-03-09 日本ユニシス株式会社 System, method and program for generating three-dimensional image data of a target object
JP2021012126A (en) * 2019-07-08 2021-02-04 三菱重工業株式会社 Device and method for inspecting crimp terminal
CN116295090A (en) * 2022-12-20 2023-06-23 深圳市前海公共安全科学研究院有限公司 Safety detector for fire-fighting electric facilities

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017038680A1 (en) * 2015-08-31 2017-03-09 日本ユニシス株式会社 System, method and program for generating three-dimensional image data of a target object
JP2021012126A (en) * 2019-07-08 2021-02-04 三菱重工業株式会社 Device and method for inspecting crimp terminal
JP7304756B2 (en) 2019-07-08 2023-07-07 三菱重工業株式会社 crimp terminal inspection device and method
CN116295090A (en) * 2022-12-20 2023-06-23 深圳市前海公共安全科学研究院有限公司 Safety detector for fire-fighting electric facilities
CN116295090B (en) * 2022-12-20 2024-03-12 深圳市前海公共安全科学研究院有限公司 Safety detector for fire-fighting electric facilities

Similar Documents

Publication Publication Date Title
JP6321145B2 (en) Ranging device, ranging method, and ranging program
RU2008127323A (en) DIGITAL CAMERA
JP6494410B2 (en) Lighting device and control method
JP2008122534A (en) Imaging apparatus, control method and program therefor
JP2009267566A (en) Image pickup apparatus
JP2006330272A5 (en)
JP2007304124A (en) Camera and index
JP2009002789A (en) Portable measuring device, and measuring method using the same
JP4344622B2 (en) Digital camera
JP2006246224A (en) Imaging apparatus
JP2019184710A (en) Imaging device, light emission control method of the same and program thereof
JP2006343421A (en) Information input system for camera, camera and attachment for photography used therein
JP2013074929A (en) Oral cavity interior observation device and oral cavity interior observation system
JP2009278280A (en) Image pickup device, control method for the same, and program
JP4552131B2 (en) Digital camera, digital camera control method and program
JP2009014495A (en) Measuring device and measuring method using it
JP3905696B2 (en) 3D image input device
JP2019095807A (en) Focus detection device and imaging apparatus
JP2014204249A (en) Imaging apparatus
JP5573311B2 (en) camera
JP2019169822A (en) Imaging apparatus and image display method in the same
JP2011147075A (en) Display device for camera
JP5157729B2 (en) camera
JP2008236149A (en) Camera
JP2007036951A (en) Camera having electronic viewfinder