WO2019093062A1 - Measuring device, method for controlling measuring device, measuring program, and recording medium - Google Patents

Measuring device, method for controlling measuring device, measuring program, and recording medium Download PDF

Info

Publication number
WO2019093062A1
WO2019093062A1 PCT/JP2018/037930 JP2018037930W WO2019093062A1 WO 2019093062 A1 WO2019093062 A1 WO 2019093062A1 JP 2018037930 W JP2018037930 W JP 2018037930W WO 2019093062 A1 WO2019093062 A1 WO 2019093062A1
Authority
WO
WIPO (PCT)
Prior art keywords
measurement
distance
output
measurement value
captured image
Prior art date
Application number
PCT/JP2018/037930
Other languages
French (fr)
Japanese (ja)
Inventor
大輔 村山
徳井 圭
Original Assignee
シャープ株式会社
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 シャープ株式会社 filed Critical シャープ株式会社
Publication of WO2019093062A1 publication Critical patent/WO2019093062A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B1/00Instruments for performing medical examinations of the interior of cavities or tubes of the body by visual or photographical inspection, e.g. endoscopes; Illuminating arrangements therefor

Definitions

  • the present invention relates to a measuring device and the like that measure measurement values such as the three-dimensional position and length of a measurement point.
  • measurement values such as the three-dimensional position and length of a measurement point.
  • a technique using a measuring device or the like that measures the distance from an imaging device to a measurement point, the length between measurement points, and the area without contact.
  • Examples of this technology include a stereo method in which distance measurement is performed based on the principle of triangulation, and a TOF (Time Of Flight) method in which distance measurement is performed based on a phase difference of reflected light of a laser or reception time. The measurement of the measurement point is performed based on the distance measured by these.
  • Patent Document 1 a stereo method is used to calculate three-dimensional coordinates corresponding to each of a measurement position designated on a captured image and a predetermined position on the captured image, and based on the three-dimensional coordinates corresponding to the measurement position.
  • An endoscope apparatus for measuring the size of a subject is described.
  • the measurement value of the measurement point changes every time measurement, so the measurement value with high accuracy May not be able to measure.
  • the endoscope apparatus described in Patent Document 1 calculates an estimated value of the variation of the three-dimensional coordinate corresponding to the measurement position, and calculates the size of the object to be measured based on the estimated value of the variation of the three-dimensional coordinate. An estimate of the variability of the measurements is being calculated. Then, the endoscope apparatus displays the measurement value and the information on the variation of the measurement value on the display unit.
  • the technique described in Patent Document 1 requires the user to present both the measurement value that changes each time of measurement and the information of the variation, and to confirm the measurement value when the variation becomes smaller. Therefore, according to the technique described in Patent Document 1, it is not possible to present the measurement value in a state easy for the user to understand.
  • the present invention has been made in view of the above-described point, and an object thereof is to provide a measurement device capable of presenting measurement values measured with higher accuracy in a state in which the user can easily understand.
  • a measurement apparatus including: an output unit that outputs a measurement value based on positions of one or more measurement points on a captured image in which one or more measurement points appear; After the output unit outputs the measurement value based on the first position, which is the position of the one or more measurement points in, the second position, which is the position of the one or more measurement points on the second captured image Whether or not the output unit outputs the measured value is (i) a change between first distance information corresponding to the first position and second distance information corresponding to the second position; And (ii) an output control unit configured to control in accordance with at least one of changes between the first position and the second position.
  • a control method of a measurement apparatus includes an output step of outputting a measurement value based on the position of the one or more measurement points on the captured image in which the one or more measurement points appear. After outputting the measurement value based on the first position, which is the position of the one or more measurement points on the captured image, in the output step, the second one that is the position of the one or more measurement points on the second captured image Whether to output a measurement value based on position in the output step, (i) between first distance information corresponding to the first position and second distance information corresponding to the second position And (ii) an output control step of controlling in response to at least one of the change between the first position and the second position.
  • FIG. 1 is a block diagram showing a configuration of a measurement device according to Embodiment 1.
  • FIG. 6 is a view showing an example of a captured image and measurement values displayed on the display unit of the measurement device according to the first embodiment.
  • FIG. 6 is a view showing an example of a captured image and measurement values displayed on the display unit of the measurement device according to the first embodiment.
  • It is a flowchart which shows an example of the flow of the measurement process which the measuring device which concerns on Embodiment 1 performs.
  • It is a figure which shows an example of the captured image displayed on the display part of the measuring device which concerns on Embodiment 5, and a measured value.
  • It is a figure which shows an example of the captured image displayed on the display part of the measuring device which concerns on Embodiment 5, and a measured value.
  • FIG. 1 is a block diagram showing the configuration of a measuring device 1 according to the present embodiment.
  • the measuring device 1 according to the present embodiment includes a measurement value calculation unit (output unit) 10, an output determination unit (output control unit) 11, and a display unit 12.
  • the measuring device 1 receives image information, image coordinate information (hereinafter also referred to as image coordinates), and information of measuring points including distance information etc. from the outside of the measuring device 1, and the measuring device 1 receives the information of the measuring points. Output the corresponding measurement value.
  • the measurement device 1 can be realized by software processing using a central processing unit (CPU) or graphics processing unit (GPU), and an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). It can also be realized by hardware processing by.
  • CPU central processing unit
  • GPU graphics processing unit
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the measurement value calculation unit 10 the output determination unit 11, and the display unit 12 that constitute the measurement device 1 will be described.
  • the measurement value calculation unit 10 outputs measurement values based on the positions of one or more measurement points on the captured image.
  • the measurement value calculation unit 10 copes with the position of the measurement point based on the information of the measurement point including the image coordinate information of the captured image input to the measurement device 1 and the distance information of one or more measurement points.
  • the three-dimensional position information (hereinafter also referred to as three-dimensional coordinates) on the real space to be calculated is calculated.
  • the measurement value calculation unit 10 calculates a measurement value based on the three-dimensional position information.
  • the measurement value calculation unit 10 outputs the measurement value to the display unit 12.
  • the image information is a two-dimensional image in which an object to be measured including a measurement point is imaged by an imaging device (an imaging unit having an imaging element) provided outside the measuring device 1 (not shown in FIG. 1) It is information of an image.
  • Image coordinate information is coordinate values of measurement points in a two-dimensional coordinate system on a captured image.
  • the distance information is information on the distance indicating the distance between the imaging device and the measurement point of the subject.
  • the measurement value is a value related to the information of the measurement point. Details of the image information, the image coordinate information, the distance information, and the measurement value will be described later.
  • the measurement value calculation unit 10 calculates the measurement value from the measurement point information including the image information, the image coordinate information, and the distance information in the measurement point information, but in the present embodiment It is not limited to. In the present embodiment, measurement values may be calculated from three-dimensional position information directly input from the outside instead of these pieces of information. Also in this case, the measurement value of the measurement point can be calculated as in the above-described example.
  • the output determination unit 11 outputs the first measurement value based on the first position, which is the position of the one or more measurement points on the first captured image, on the second captured image.
  • the first distance corresponding to the first position whether or not the measurement value calculation unit 10 outputs to the display unit 12 a second measurement value based on the second position, which is the position of the one or more measurement points in Control is performed in accordance with at least one of a change between information and second distance information corresponding to the second position, and a change between the first position and the second position.
  • the output determination unit 11 causes the measurement value calculation unit 10 to output the second measurement value to the display unit 12. Details of the process of the output determination unit 11 will be described later.
  • the first distance information refers to distance information related to the distance between the imaging device and the measurement point on the first captured image
  • the second distance information refers to the imaging device and the second captured image It is distance information on the distance to the upper measurement point.
  • the first measurement value is a measurement value that has already been measured
  • the second measurement value is a measurement value that can be newly measured at the same or substantially the same measurement point as the measurement point that has already been measured. It is.
  • the information of the measurement point to be referred to in the determination of the output determination unit 11 may be information including distance information and three-dimensional position information calculated by the measurement value calculation unit 10. Further, similarly to the information of the measurement point referred to by the measurement value calculation unit 10 described above, the information of the measurement point may be information including image information, image coordinate information, distance information, and the like. From this, as shown in FIG. 1, when the image information, the image coordinate information, and the distance information are input to the measurement value calculation unit 10, the output determination unit 11 calculates the three-dimensional position information calculated by the measurement value calculation unit 10.
  • the output determination may be performed based on
  • the output determination unit 11 performs output determination based on the image information, the image coordinate information, and the distance information before the measurement value calculation unit 10 calculates the three-dimensional position information, and then the measurement value calculation unit 10 determines the three-dimensional information.
  • Position information may be calculated. Similar effects can be achieved in either case.
  • the measurement value calculation unit 10 Based on the above-described determination by the output determination unit 11, the measurement value calculation unit 10 outputs the second measurement value to the display unit 12 or does not output the second measurement value to the display unit 12. Thereby, the first measurement value is updated and displayed on the display unit 12 to the measurement value measured with higher accuracy, or the same measurement value as the previous time is displayed without being updated. As a result, it is possible to present the measurement values measured with higher accuracy in a state easy for the user to understand.
  • the display unit 12 displays a captured image based on image information input from the outside of the measurement device 1 and a measurement value input from the measurement value calculation unit 10.
  • the display unit 12 is a display device including, for example, a liquid crystal element and an organic EL (Electro Luminescence) as pixels. More specifically, the display unit 12 is a display of a television display, a monitor for a PC (Personal Computer), or a portable terminal such as a smartphone or a tablet terminal.
  • the captured image may not be displayed on the display unit 12.
  • captured images of both the position of the measurement point and the measurement value are displayed.
  • the measurement value can be presented in a state easy to understand by the user.
  • the measurement value may be output to the outside of the measuring device 1 by audio output or the like. That is, the measurement value calculation unit 10 may not include the display unit 12 and may output the measurement value to the outside of the measurement device 1 instead of outputting the measurement value to the display unit 12. Also in this case, the same effect as when the measurement value is displayed on the display unit 12 is obtained.
  • the measuring device 1 contains the display part 12, instead of providing the display part 12 inside the measuring device 1, you may provide a display apparatus outside the measuring device 1.
  • the image information is information on a two-dimensional captured image in which an object to be measured including a measurement point is imaged by an imaging device provided outside the measurement device 1 (not shown in FIG. 1).
  • the image information also includes information on camera parameters of an imaging device that has captured a captured image.
  • the imaging apparatus includes, for example, an optical system such as a lens module, an imaging device such as a CCD (Charge Coupled Device) and a Complementary Metal Oxide Semiconductor (CMOS), an analog signal processor, an A / D (Analog / Digital) converter, and the like. , And outputs a signal from an image sensor as a captured image.
  • the camera parameters include the resolution of the captured image, the focal length of the imaging device, information on lens distortion, coordinates of the image center position, and information on the positional relationship of the imaging device.
  • the captured image may be a still image captured by an imaging device, or may be an image representing one of a plurality of frames constituting a moving image. In the case of a still image, a captured image captured at a predetermined interval is preferable. Further, in the case of a moving image, a captured image in which successive frames are sequentially input is preferable. At least information on the above-mentioned camera parameters in the image information is input to the measurement value calculation unit 10.
  • the measuring apparatus 1 includes an imaging device as an imaging unit 13 (not shown), and uses information of a captured image captured by the imaging unit as image information and displays the captured image on the display unit 12 It is also good. Also with such a configuration, it is possible to present the measurement values measured with high accuracy in a state easy for the user to understand.
  • the distance information is information related to the measurement point captured in the captured image, and is information indicating the distance from the imaging device capturing the captured image to the measurement point on the subject captured in the captured image.
  • the distance mentioned here means the distance in the optical axis direction of the imaging device.
  • the distance information corresponding to the position of the measurement point on the captured image means the distance from the imaging device that has captured the captured image to the position on the subject corresponding to the position of the measurement point on the captured image Indicates the indicated distance information.
  • Such distance information can be easily derived from the position of the measurement point on the captured image by the stereo method or TOF method as described later.
  • the distance information input to the measuring device 1 is acquired by a stereo method. Therefore, the output determination unit 11 has a measurement accuracy higher than any of the information of the measurement point on the second captured image and the information of the measurement point on the first captured image according to the feature of the stereo method. Conditions are set to determine whether measurement values can be calculated.
  • an object to be measured is imaged by at least two or more imaging devices as a reference imaging device and another imaging device, and distance information of one or more measurement points is one or more measurement points.
  • the image information input to the measuring device 1 is a captured image of an imaging device serving as a reference and a camera parameter
  • the camera parameter includes information indicating the positional relationship of a plurality of imaging devices.
  • the measurement value calculation unit 10 since the distance information is information indicating the same value as the Z coordinate value of the three-dimensional position information, the measurement value calculation unit 10 does not acquire the distance information input from the outside, but from the three-dimensional position information. Distance information may be acquired.
  • the measuring device 1 may further include a distance measuring device (not shown), the distance measuring device may obtain distance information, and the distance measuring device may input the distance information to the measurement value calculation unit 10. .
  • the measurement value calculation unit 10 obtains the distance information by the stereo method, and the output determination unit 11 performs the output determination of the measurement value based on the distance information, but in the present embodiment It is not limited to this.
  • the distance information may be obtained by another method.
  • a TOF system etc. can be mentioned, for example.
  • the TOF method since distance measurement is performed using the reflection of a laser, there is a possibility that the measurement of measurement points can not be performed or the measurement accuracy is reduced due to the influence of sunlight.
  • the output determination unit 11 perform the output determination according to the change in measurement accuracy due to the state of sunlight when measuring the measurement point.
  • the output determination unit 11 performs the output determination according to a change in measurement accuracy caused by the characteristics of each acquisition method. Is preferred.
  • Image coordinate information is information on coordinate values of measurement points in a two-dimensional coordinate system of a captured image.
  • the image coordinate information also includes information for determining whether the measurement point on the second captured image is a measurement point on the first captured image.
  • FIG. 2 is a view showing an example of the captured image 40 and the measurement value 41 displayed on the display unit 12 of the measuring device 1.
  • the captured image 40 and the measurement value 41 are displayed on the display unit 12, and the measurement point 21 on the captured image 40 is displayed as a cross symbol indicating the position of the measurement point 21 on the captured image 40. It is done.
  • the subject 20 and the measurement point 21 designated by the user are shown in FIG.
  • the coordinate value 22 of the measurement point 21 indicates, for example, the position of the measurement point displayed on the captured image 40 of the preview display displayed on the display unit 12 by providing an input device (not shown) outside the measurement device 1 By operating the input device while confirming the symbol or the coordinate value 22, it is possible to obtain a value desired by the user.
  • an input device input devices, such as a mouse and a keyboard, can be mentioned, for example.
  • the method of setting the coordinate value 22 of the measurement point 21 is not limited to the above-described method, and any method may be used as long as the coordinate value 22 of the measurement point 21 desired by the user is obtained.
  • the measurement point 21 can be set automatically. For example, representative image data of a subject to be measured is registered in a storage unit (not shown) of the measuring device 1 and the representative image data is searched for in the captured image 40 displayed on the display unit 12. The calculation unit 10 may automatically acquire the coordinate value 22 of the measurement point 21 on the captured image 40.
  • a moving image is preview-displayed by displaying the captured image of each flame
  • the user may designate the measurement point 21 on the captured image 40 while checking the preview display, and set the position of the measurement point 21 as the coordinate value 22 of the measurement point 21. Further, in this case, the measurement point 21 once designated by the user in a certain frame may be automatically set by following in the subsequent frames.
  • the automatic setting of the measurement point 21 can be performed by the method of registering the representative image data described above. The method of setting automatically following the measurement point 21 is not limited to the above-described example, and any method may be used as long as the same or substantially the same position can be followed and set.
  • the measuring device 1 further includes an input unit (not shown), and the user designates the measurement point 21 by the input unit, and the measurement value calculation unit 10 acquires image coordinate information from the measurement point 21. It is also good.
  • the measuring device 1 when the measuring device 1 is provided with both the input part and the display part 12, the measuring device 1 may be provided with a touch panel as an apparatus which integrated these, for example.
  • a touch panel there can be mentioned, for example, a resistive film type, an electrostatic capacity type, and the like.
  • the image coordinate information may be used to calculate the three-dimensional position information and to determine whether the measurement point on the second captured image is the measurement point on the first captured image. .
  • the coordinate value of the measurement point regarding the image coordinate information is displayed as the measurement value. It may not be displayed on the part 12.
  • the measurement value is a value related to the information of the measurement point, and indicates, for example, a three-dimensional position, a length, an area, a volume, or an angle. More specifically, when there is one measurement point as shown in FIG. 2, the measurement value is information on the distance between the imaging device and the measurement point, or information representing three-dimensional position information on the measurement point. Further, in the present embodiment, the measurement value may be a value related to information of two or more measurement points. When the number of measurement points is two or more, the measurement value calculation unit 10 can calculate various measurement values based on three-dimensional position information of a plurality of measurement points.
  • the angle which a minute or a surface makes with other measurement points, a straight line, a line segment or a surface can be mentioned.
  • the height and width of the object to be measured, the peripheral length of the object to be measured, the diameter and the length of the arc, and the length of the object to be measured in the form of an irregular object such as a string can be mentioned.
  • the measurement value calculation unit 10 calculates three-dimensional position information of each measurement point, and calculates the above-described measurement value based on the three-dimensional position information of each measurement point.
  • Each measurement value can be calculated from the three-dimensional position information by a known method, and the detailed description thereof will be omitted.
  • the calculated measurement value is displayed on the display unit 12, for example, as shown in FIG.
  • the distance between the imaging device and the measurement point 21 may be displayed as a measurement value 41.
  • FIG. 2 is an example of display, and the display method is not limited to this.
  • the measurement point 21 and the measurement value 41 may be displayed so as to be easily recognized by the user.
  • FIG. 3 is a view showing an example of the captured image 42 and the measurement value 43 displayed on the display unit 12 of the measuring device 1. As shown in FIG. 3, the measurement value 43 may be displayed superimposed on the captured image 42.
  • the measurement value calculation unit 10 acquires three-dimensional position information of the measurement point based on the image information, the image coordinate information, and the distance information.
  • the image information is information on camera parameters of the imaging device
  • the image coordinate information is information on two-dimensional coordinates on the captured image of the measurement point.
  • the distance information is information on the distance between the imaging device and the subject captured at the position of the measurement point in the optical axis direction of the imaging device which has captured the captured image.
  • the three-dimensional coordinates (Xp, Yp, Zp) of the measurement point are calculated by the following equation (1).
  • f shown in equation (1) represents the focal length of the imaging device
  • c u represents the image center coordinates in the horizontal direction
  • c v represents the image center coordinates in the vertical direction.
  • (u, v) are image coordinates when the coordinates of the upper left end of the captured image are (0, 0) and the coordinates of the lower right end are (horizontal resolution -1, vertical resolution -1).
  • the calculated three-dimensional coordinates of the measurement point are represented by a three-dimensional coordinate system based on the imaging device.
  • the distance Z between the imaging device and the measurement point and Zp of the three-dimensional coordinate of the measurement point are the same. That is, the distance information of the measurement point is one of three-dimensional position information.
  • the measurement value calculation unit 10 calculates three-dimensional position information of the measurement point from the image information, image coordinate information, and distance information input from the outside.
  • the measurement value calculation unit 10 calculates a measurement value based on the three-dimensional position information of the measurement point.
  • measurement values can be calculated from three-dimensional position information by a known method, as described above.
  • the output determination unit 11 transmits the second measurement value from the measurement value calculation unit 10 to the display unit 12 based on the information on the measurement point on the second captured image and the information on the measurement point on the first captured image. It is determined whether or not to output. For example, the output determination unit 11 determines whether the second measurement value is a measurement value with higher accuracy than the first measurement value based on the information of the measurement point on the second captured image. More specifically, the output determination unit 11 is based on whether or not the second distance information corresponding to the second position indicates a distance that is shorter than the first distance information corresponding to the first position by a threshold or more. It controls whether the measurement value calculation unit 10 outputs the second measurement value.
  • the threshold can be arbitrarily set by the user. For example, when the user sets the threshold to 10 mm and the second distance is 10 mm or more smaller than the first distance, the output determination unit 11 outputs the second measurement value from the measurement value calculation unit 10 to the display unit 12 Let
  • the stereo method in general, distance measurement is performed based on a captured image, and therefore the accuracy of distance measurement also changes due to the influence of distortion of the lens of the imaging device. Therefore, even when the same position of the same measurement target is measured, if the positional relationship between the imaging apparatus and the measurement target changes, the accuracy of ranging changes, and the output measurement value also changes. Therefore, when the same position is measured a plurality of times, the measurement value changes every time of measurement. As a result, the measured value displayed on the display unit 12 changes every time the measurement is performed, so that the visibility decreases and the measured value can not be output in a state easy for the user to understand.
  • the output determination unit 11 can determine whether the second measurement value is measured under the condition that the accuracy is higher than the first measurement value. When it is determined that the condition is such that the accuracy is high, the output determination unit 11 can output the second measurement value from the measurement value calculation unit 10 to the display unit 12. As a result, since the measurement value is updated only when the accuracy of the measurement value is improved, the user can easily check only the measurement value with the highest accuracy at that time. In addition, since the measurement value is not updated when the accuracy is lowered, the measurement value is measured with the highest accuracy among the measurement values of the measurement points measured up to the previous time and is displayed on the display unit 12 The measured value does not change, and a drop in measurement accuracy and visibility can be prevented.
  • FIG. 4 is a flowchart showing an example of the flow of measurement processing of the measuring device 1. Every time various information is input to the measuring device 1, the process of the flowchart shown in FIG. 4 is performed. Therefore, for example, when successive frames of a moving image are sequentially input, the following processing is performed on each frame.
  • Step S101 In step S101, the image information, the image coordinate information, and the distance information are input from the outside to the measurement value calculation unit 10 in the measuring device 1.
  • Step S102 the measurement value calculation unit 10 outputs measurement values corresponding to the one or more measurement points based on the positions of the one or more measurement points on the captured image. Specifically, the measurement value calculation unit 10 outputs the measurement value of the measurement point based on the image coordinate information and the distance information corresponding to the image coordinate information (output step).
  • Step S103 In step S103, if the newly measured measurement point is a measurement point corresponding to the previously measured measurement point, the output determination unit 11 proceeds to the process of step S104, and if not, Then, the process proceeds to step S105.
  • the output determination part 11 abbreviate
  • step S103 is omitted and the process proceeds to step S104. May be
  • Step S104 In step S104, after the output determination unit 11 outputs the first measurement value in the output step of step S102, the first position and the second position indicate whether the second measurement value is to be output in the output step. Control according to the change between (output control step).
  • the output determination unit 11 determines whether or not the second measurement value can be measured with higher accuracy than the first measurement value. When the second measurement value is measured under the condition that can be measured with higher accuracy than the first measurement value, the output determination unit 11 proceeds to the process of step S105. When the second measurement value is not measured under the condition that can be measured with higher precision than the first measurement value, the output determination unit 11 performs the step without causing the measurement value calculation unit 10 to output the second measurement value. It shifts to the processing of S106.
  • Step S105 In step S105, the output determination unit 11 causes the measurement value calculation unit 10 to output the second measurement value to the display unit 12.
  • Step S106 In step S106, the display unit 12 displays a captured image based on image information input from the outside of the measuring device 1 and the measurement value input from the measurement value calculation unit 10.
  • the output determination of the second measurement value is performed according to the information of the measurement point, for example, the magnitude relation of the distance between the imaging device and the measurement point, and the measurement value is output. Therefore, the second measurement value is not output when the distance between the imaging device and the measurement point on the second captured image is longer and the measurement accuracy of the first measurement value is lower.
  • the measurement value is output only when the distance between the imaging device and the measurement point on the second captured image is shorter and higher than the measurement accuracy of the first measurement value. This allows the user to easily confirm higher measurement values.
  • the second measurement value is not output. Therefore, in this case, the measured value to be displayed does not change, and the user's visibility can be prevented from being lowered.
  • the distance between the imaging device and the measurement point has a great influence on the measurement accuracy.
  • the distance between the imaging device and the measurement point is calculated based on parallax information of an image captured by a stereo camera.
  • the parallax information is discrete information, and the resolution is higher as the distance between the stereo camera and the captured image is smaller, and the resolution is reduced as the distance between the stereo camera and the captured image is larger.
  • the resolution also changes according to the distance between the stereo camera and the captured image, which affects the measurement accuracy of the measurement point.
  • the measurement value of the measurement point changes every measurement depending on the distance between the imaging device and the measurement point.
  • the measurement process described above presents the user with a more accurate measurement value by comparing the information of the measurement point including the second distance information with the information of the measurement point on the first captured image. Do. Therefore, the above-mentioned measurement processing can be suitably used especially when it is measurement processing by the stereo method which uses imaging devices, such as a stereo camera.
  • the captured image and the measurement value are displayed on the display unit 12 in step S106.
  • the captured image and the measured value may be displayed on the display unit 12 after the step S106 if it is the step S105 and subsequent steps of outputting the measured value. That is, a further step may be included between step S105 and the step of displaying the captured image and the measurement value on the display unit 12.
  • the measuring device 1 may not include the display unit 12, and the output determination unit 11 may cause the measurement value calculating unit 10 to output the measurement value to the outside of the measuring device 1.
  • the output determination unit 11 omits the process of step S106, outputs the measured value to the outside of the measuring device 1 in step S105, and ends the measurement process.
  • the output determination unit 11 of the measuring device 1 determines the second measurement value based on whether or not the second distance information indicates a distance shorter than the first distance information by a threshold value or more. It is determined whether or not the measurement value calculation unit 10 outputs.
  • the output determination unit 110 determines the distance between the imaging device and the measurement point and the reference distance when the imaging device is calibrated. The output determination may be performed based on the above.
  • the measuring device 2 according to the second embodiment will be described.
  • symbol is appended and the description is abbreviate
  • the measurement device 2 includes an output determination unit 110 instead of the output determination unit 11. Except for this point, the measuring device 2 has the same configuration as the measuring device 1.
  • the output determination unit 110 determines whether the measurement value calculation unit 10 outputs the second measurement value based on whether or not the second distance information indicates a distance closer to the reference distance than the first distance information. Determine (control) whether or not. For example, when the difference between the second distance and the reference distance is smaller than the difference between the first distance and the reference distance by the threshold or more, the output determination unit 110 measures the second measurement value as the measurement value calculation unit 10. Output to the display unit 12.
  • the threshold can be set by the user to an arbitrary value such as 10 mm.
  • the reference distance means the installation position of the calibration board when the imaging device is calibrated, that is, the distance between the imaging device and the calibration board.
  • the image information input to the measurement value calculation unit 10 includes camera parameters.
  • the camera parameters include information of the imaging device, and calibration of the imaging device is performed in advance so that the information of the imaging device is included in the camera parameters.
  • calibration is performed on a plurality of imaging devices, and represents a positional relationship between the imaging devices and internal parameters representing information such as focal length and lens distortion of each imaging device. External parameters are obtained as camera parameters.
  • the stereo method distortion of each captured image is corrected based on internal parameters, and the captured images are rotated and translated based on the external parameters, thereby collimating captured images of a plurality of imaging devices.
  • pixel shift (disparity value) of the position of the subject shown in each captured image is calculated based on the corrected and parallelized captured image, and measurement is performed with the imaging device based on the parallax value and the camera parameter. Calculate the distance to the point.
  • Calibration of a plurality of imaging devices is generally performed by simultaneously photographing a calibration board on which a pattern is drawn by a plurality of imaging devices.
  • the external parameter is acquired by estimating the positional relationship between the imaging devices from the positional relationship of the patterns on the calibration board captured in the captured image of each imaging device.
  • the positional relationship between the imaging devices is the positional relationship based on the position of the pattern when the calibration board is photographed, and the parallelization of a plurality of photographed images is performed by image conversion based on the position of the calibration board .
  • the accuracy of the parallelization decreases with distance from the imaging position of the calibration board.
  • the accuracy of the distance information on the distance between the imaging device and the measurement point calculated based on the parallelized captured image becomes higher as the measurement point is closer to the imaging position of the calibration board. That is, when the difference between the distance between the imaging device and the measurement point and the reference distance which is the distance between the imaging device and the calibration board is small, the measurement accuracy of the measurement value is high.
  • the output determination unit 110 transmits the second measurement value from the measurement value calculation unit 10 to the display unit 12 Make it output. Therefore, the measurement device 2 including the output determination unit 110 can present the measurement value measured with higher accuracy to the user in an easy-to-understand manner, similarly to the measurement device 1 according to the first embodiment.
  • the measurement process (the control method of the measurement device) by the measurement device 2 according to the present embodiment is executed in steps S201 to S206.
  • Steps S202, S203, S205, and S206 are the same as steps S102, S103, steps S105, and S106 in the measurement process of the measuring device 1 according to the first embodiment, and thus the description thereof is omitted.
  • Step S201 In step S201, the image information, the image coordinate information, and the distance information are input from the outside to the measurement value calculation unit 10 in the measuring device 2.
  • the image information further includes information of the reference distance, in addition to the above-described camera parameters.
  • Step S204 the output determination unit 110 calculates a difference between the distance between the imaging device and the measurement point and the reference distance, and performs output determination based on the magnitude relationship of the difference (output determination step). More specifically, when the difference between the second distance and the reference distance is smaller than the difference between the first distance and the reference distance, the output determination unit 110 proceeds to the process of step S205. Do. Then, the output determination unit 110 causes the measurement value calculation unit 10 to output the second measurement value to the display unit 12. Thus, when the second distance is closer to the reference distance than the first distance, the output determination unit 110 determines that the position of the measurement point on the second captured image is If it is close to the position, the second measurement value is output from the measurement value calculation unit 10 to the display unit 12.
  • the output determination units 11 and 110 determine the magnitude relationship between the distance between the imaging device and the measurement point, and the magnitude relationship between the distance between the imaging device and the measurement point and the reference distance. The output determination is performed based on any of the above. However, as in the measurement apparatus 3 according to the third embodiment, the output determination unit 210 replaces the output determination units 11 and 110 with the magnitude relationship of the distance between the imaging apparatus and the measurement point, and the imaging apparatus and the measurement point The output determination may be performed based on both of the distance of and the magnitude relationship of the difference value with the reference distance.
  • the measuring device 3 according to the third embodiment will be described.
  • symbol is appended and the description is abbreviate
  • the measuring device 3 includes an output determination unit 210 instead of the output determination unit 11. Except for this point, the measuring device 3 has the same configuration as the measuring device 1.
  • the output determination unit 210 performs output determination based on both the magnitude relationship of the distance between the imaging device and the measurement point, and the magnitude relationship between the distance between the imaging device and the measurement point and the reference distance.
  • determination 1 is determined based on the magnitude relationship of the distance between the imaging device and the measurement point
  • determination 2 based on the magnitude relationship between the distance between the imaging device and the measurement point and the reference distance.
  • the output determination unit 210 outputs the second measurement value from the measurement value calculation unit 10 to the display unit 12 when the result of addition of points by each determination is positive, with each determination as point characteristics.
  • the output determination unit 210 adds one point each time the second distance is shorter than the first distance by 5 mm, and subtracts one point each time the second distance is longer than the first distance. Similarly, the output determination unit 210 adds one point each time the difference between the second distance and the reference distance is 5 mm shorter than the difference between the first distance and the reference distance, and increases by 5 mm each time. Subtract one point to For example, it is assumed that the second distance is 10 mm shorter than the first distance, and the difference between the second distance and the reference distance is 5 mm larger than the difference between the first distance and the reference distance. In this case, the output determination unit 210 adds two points in determination 1 and subtracts one point in determination 2. As a result, the output determination unit 210 causes the measurement value calculation unit 10 to output the second measurement value to the display unit 12 because the total value is plus one point.
  • the output determination unit 210 determines the output of the measurement value based on the two types of determination criteria, it is possible to output the measurement value with higher accuracy from the measurement value calculation unit 10 to the display unit 12 . Thereby, the user can check the measurement value with higher accuracy through the display unit 12.
  • the output determination unit 210 may weight points according to the magnitude of the influence of each determination on the measurement accuracy of the measurement point. For example, it is assumed that the magnitude relationship of the distance between the imaging device and the measurement point affects the measurement accuracy of the measurement point more than the magnitude relationship between the distance between the imaging device and the measurement point and the reference distance. In this case, the output determination unit 210 may multiply each point in the above determination 1 by 2 and perform weighting. That is, the output determination unit 210 may add 1 ⁇ 2 points each time the second distance is 5 mm shorter than the first distance, and subtract 1 ⁇ 2 points every 5 mm longer. Thereby, the measurement value measured with higher accuracy can be suitably presented to the user.
  • step S301 is the same as step S201 of the measuring device 2 according to the second embodiment, the description will be omitted.
  • steps S302, S303, S305 and S306 are the same as steps S102, S103, steps S105 and S106 in the measurement process of the measuring device 1 according to the first embodiment, and thus the description thereof is omitted.
  • Step S304 In step S304, the output determination unit 210 is based on both the magnitude relationship of the distance between the imaging device and the measurement point and the magnitude relationship between the distance between the imaging device and the measurement point and the reference distance. Output determination (output determination step).
  • the function of the output determination unit of the measurement apparatus is not limited to the function of the output determination units 11, 110, and 210 of the measurement apparatuses 1, 2, and 3 according to the above-described embodiment.
  • the function of the output determination unit may have a function different from the output determination unit in the above-described embodiment.
  • the measuring device 4 includes an output determination unit 310 instead of the output determination unit 11. Except for this point, the measuring device 4 has the same configuration as the measuring device 1.
  • the output determination unit 310 performs output determination of the measurement value based on the position of the measurement point on the captured image displayed on the display unit 12. For example, the output determination unit 310 determines whether or not the position of one or more measurement points on the second captured image is closer to the center than the position of one or more measurement points on the first captured image. It is determined (controlled) whether or not the measurement value calculation unit 10 outputs the second measurement value. To determine whether the position of the measurement point on the captured image is close to the center of the captured image, for example, calculate the distance from the coordinate value of the measurement point and the coordinate value of the center position, and determine by the magnitude relationship of the distance Can. The coordinate values of the center position are included in the camera parameters.
  • a captured image is affected by lens distortion of an imaging device that captures the captured image, and distortion occurs.
  • parallax values are calculated from a plurality of captured images, and the distance between the imaging device and the measurement point is calculated from the parallax values.
  • the distortion of the captured image is influenced by the calculation accuracy of the parallax value, and the parallax value is influenced by the distance between the imaging device and the measurement point, so the distance between the imaging device and the measurement point changes depending on the distortion of the imaged image.
  • lens distortion is smaller at the center of the lens and larger at the outside. As the influence of lens distortion is greater toward the outside of the captured image, the accuracy of the distance between the calculated imaging device and the measurement point is reduced.
  • the output determination unit 310 when there is a measurement point at a position smaller than the influence of lens distortion, the output determination unit 310 outputs a measurement value based on the measurement point. Therefore, the output determination unit 310 can output a measurement value with higher accuracy from the measurement value calculation unit 10 to the display unit 12.
  • Steps S401 to S403 and steps S405 and S406 are the same as steps S101 to S103 and steps S105 and S106 in the measurement process of the measuring device 1 according to the first embodiment, and thus the description thereof is omitted.
  • Step S404 In step S404, the output determination unit 310 determines that the positions of one or more measurement points on the second captured image are closer to the center than the positions of one or more measurement points on the first captured image.
  • the second measurement value is output from the measurement value calculation unit 10 to the display unit 12 (output control step).
  • the output determination unit 310 performs the output determination of the measurement value based only on the position of the measurement point on the captured image displayed on the display unit 12, but the present embodiment is limited to this. I will not.
  • the output determination unit 310 may further have at least one of the functions of the output determination units 11, 110 and 210, and the measurement value of the measurement performed by the function of at least one of the output determination units 11, 110 and 210.
  • the output determination by the output determination unit 310 may be performed along with the output determination.
  • the function of the output determination unit of the measurement apparatus is not limited to the function of the output determination units 11, 110, 210, and 310 of the measurement apparatuses 1, 2, 3, and 4 according to the above-described embodiment.
  • the function of the output determination unit may have a function different from the output determination unit in the above-described embodiment.
  • the measuring device 5 includes an output determining unit 410 instead of the output determining unit 11. Except for this point, the measuring device 5 has the same configuration as the measuring device 1.
  • the output determination unit 410 is based on whether the difference in distance between the plurality of measurement points indicated by the second distance information is smaller than the difference in distance between the plurality of measurement points indicated by the first distance information by a threshold or more. Then, it is determined (controlled) whether or not the measurement value calculation unit 10 outputs the second measurement value.
  • 5 and 6 respectively show a first captured image 60a and a second captured image 60b displayed on the display unit 12 of the measuring device 5 according to the fifth embodiment, and a first measured value 44a and a second measured value. It is a figure which shows an example of 44b.
  • measurement points 52a and 53a are specified for the subjects 50 and 51 on the first captured image 60a, respectively. Further, as shown in FIG. 6, measurement points 52b and 53b are specified for the subjects 50 and 51 on the second captured image 60b, respectively.
  • the output determination unit 410 determines the distance between the imaging device and the measurement point 52a, the distance between the imaging device and the measurement point 53a, or The distance between the imaging device and the measurement point 52b and the distance between the imaging device and the measurement point 53b are calculated.
  • the measurement points 52a and 52b and 53a and 53b shown in FIG. 5 are respectively corresponding measurement points, and are substantially at the same position in three-dimensional coordinates in real space, and their positions are changed. Absent.
  • the measurement point 52a and the measurement point 53a are shifted in the depth direction with respect to the imaging device, and the measurement point 53a is copied farther, so the distance between the imaging device and the measurement point 52a The difference between the distance between the imaging device and the measurement point 53a is large.
  • the output determination unit 410 measures the second measurement value 44b of the measurement points 52b and 53b on the second captured image 60b (here, the distance between the measurement points as shown in FIG. 6) Output to the display unit 12.
  • the first measurement value 44a displayed on the display unit 12 until the previous time is updated to the second measurement value 44b.
  • the imaging position is moved to move the second captured image 60b.
  • the user checks the cross mark indicating the positions of the measurement points 52a and 53a designated by the first captured image 60a or the coordinate values 54a and 55a by the preview display displayed on the display unit 12.
  • the imaging device is moved to image measurement points 52b and 53b which become coordinate values 54b and 55b.
  • the difference value of the distance between the imaging device and the measurement point is the difference value of the distance in the depth direction with respect to the imaging device. Therefore, as shown in FIG. 5, when the plurality of measurement points 52a and 53a are disposed in the depth direction as illustrated in FIG. 5, the output determination unit 410 includes the plurality of measurement points 52a and 53a disposed in the depth direction. Output determination is performed based on each of the distances to the imaging device. As a result, the largest difference value among the difference values of the distances between the plurality of imaging devices and the measurement points 52a and 53a becomes the difference value of the distances between the imaging device and the measurement points 52a and 53a.
  • the first measurement value 44 a is output to the display unit 12.
  • FIG. 5 to FIG. 6 when the distance from the imaging device to each of the two measurement points 52b and 53b decreases, the difference between the distance between the imaging device and the measurement points 52b and 53b decreases.
  • the second measurement value 44 b with high accuracy is output to the display unit 12.
  • the output determination unit 410 causes the measurement value calculation unit 10 to output the second measurement value to the display unit 12 when the distance between the imaging device and the two measurement points is close. This allows the user to be presented with measurement values of higher measurement accuracy.
  • the positional relationship between the plurality of measurement points is horizontal as shown in FIG. 6, and the distance between the imaging device and each of the two measurement points 52b and 53b is equal.
  • the second measurement value is calculated.
  • the present embodiment is not limited to this. If the difference in distance between the plurality of measurement points indicated by the second distance information is smaller than the difference in distance between the plurality of measurement points indicated by the first distance information, the output determination unit 410 may The measurement value calculation unit 10 may output the measurement value.
  • the output determination part 410 performs output determination based on the difference value of the distance of an imaging device and two measurement points, it is not limited to this in this embodiment.
  • the output determination unit 410 can perform output determination even when there are three or more measurement points. As an example, there are three measurement points, and an area surrounded by three measurement points is used as a measurement value, and a case where it is determined whether or not to output the measurement value will be described. In this case, the output determination unit 410 determines that the difference in distance between the three measurement points indicated by the second distance information is smaller than the difference in distance between the three measurement points indicated by the first distance information by the threshold or more. , The second measurement value is output to the measurement value calculation unit 10. By doing this, the output determination unit 410 can measure the measurement values of three or more measurement points with high measurement accuracy as well as the measurement values such as the distance between the two measurement points. Can be output to the display unit 12.
  • the difference in the distance between the imaging device and each of the measurement points 52a and 53a or 52b and 53b is determined by the difference between the distance between the imaging device and each of the plurality of measurement points 52a and 53a or 52b and 53b. It is regarded as the largest difference value among the values.
  • the output determination unit 410 compares the difference values of the measurement points 52b and 53b on the second captured image 60b with the difference values of the measurement points 52a and 53a on the first captured image 60a. 2) It is determined whether to output the measured value 44b.
  • the present embodiment is not limited to this.
  • the degree of variation in distance between the imaging device and the measurement point is calculated, for example, as the sum or average of difference values, and the output determination unit 410 compares the sum or average of the difference values.
  • the output determination may be performed by doing this. Also in this case, the output determination can be performed as in the above-described example.
  • Steps S501 to S503 and steps S505 and S506 are the same as steps S101 to S103 and steps S105 and S106 in the measurement process of the measuring device 1 according to the first embodiment, and thus the description thereof is omitted.
  • Step S504 In step S504, the output determination unit 410 determines that the difference in the distance between the plurality of measurement points indicated by the second distance information is a threshold more than the difference in the distance between the plurality of measurement points indicated by the first distance information. When it is smaller than the above, the second measurement value is output to the measurement value calculation unit 10.
  • the output determination unit 410 may further include at least one of the functions of the output determination units 11, 110, 210, and 310, and at least one of the functions of the output determination units 11, 110, 210, and 310.
  • the output determination by the output determination unit 410 may be performed along with the output determination of the measurement value performed by
  • control blocks of the measuring devices 1, 2, 3, 4, and 5 are logic circuits formed in integrated circuits (IC chips) It may be realized by (hardware) or software.
  • the measuring devices 1, 2, 3, 4, and 5 each include a computer that executes an instruction of a measuring program that is software for realizing each function.
  • the computer includes, for example, at least one processor (control device), and at least one computer readable storage medium storing the measurement program.
  • the processor reads and executes the measurement program from the recording medium to achieve the object of the present invention.
  • a CPU Central Processing Unit
  • the recording medium in addition to a “non-transitory tangible medium”, for example, a ROM (Read Only Memory), a tape, a disk, a card, a semiconductor memory, a programmable logic circuit or the like can be used.
  • a RAM Random Access Memory
  • the measurement program may be supplied to the computer via any transmission medium (communication network, broadcast wave, etc.) capable of transmitting the measurement program.
  • any transmission medium communication network, broadcast wave, etc.
  • one aspect of the present invention may also be realized in the form of a data signal embedded in a carrier wave in which the measurement program is embodied by electronic transmission.
  • the measuring apparatus (1, 2, 3, 4, 5) is on a captured image (40, 42) on which one or more measurement points (21, 52a, 52b, 53a, 53b) are captured
  • An output unit (measurement value calculation unit 10) that outputs measurement values (41, 43, 44a, 44b) based on the positions of the one or more measurement points, and the one or more on the first captured image (60a)
  • the output unit (10) outputs the first measurement value (44a) based on the first position, which is the position of the measurement point, the position of the one or more measurement points on the second captured image (60b)
  • the output unit (10) outputs a second measurement value (44b) based on a second position, (i) first distance information corresponding to the first position, and the second A change between said second distance information corresponding to a position, and (ii) said first position
  • an output control unit (11,110,210,310,410) for controlling according to at least one of a
  • the output control unit (11, 110, 210, 310, 410) according to aspect 1 includes the second distance information Whether or not the output unit (10) outputs the second measurement value (44b) may be controlled based on whether or not a distance shorter than the first distance information by a threshold value or more is indicated.
  • the measurement value is updated only when the accuracy of the measurement value improves, the user can easily check only the measurement value with the highest accuracy at that time.
  • the measurement value is not updated. Therefore, among the measurement values of the measurement points measured up to the previous time, it is the measurement value measured with the highest accuracy, and is output It is possible to prevent a decrease in measurement accuracy and visibility without changing the value.
  • the output control unit (11, 110, 210, 310, 410) according to aspect 1 or 2 includes the second distance information. Control whether or not the output unit (10) outputs the second measurement value (44b) based on whether or not a distance closer to a reference distance than the first distance information is indicated It is also good.
  • the measurement accuracy of the distance between the imaging unit and the measurement point is higher as it is closer to the imaging position of the calibration board. Therefore, as the distance between the imaging unit and the measurement point and the reference distance which is the reference between the imaging unit and the calibration board are closer, the measurement accuracy of the measurement value is higher.
  • the output control unit when the distance between the imaging unit and the measurement point is closer to the reference distance, the output control unit newly measures the measurement point based on the second captured image and the second distance information. Output the measured value of. As a result, it is possible to present the measurement values measured with higher accuracy in a state easy for the user to understand.
  • the output control unit (11, 110, 210, 310, 410) in any one of aspects 1 to 3 is Control whether or not the output unit (10) outputs the second measured value (44b) based on whether or not the second position is closer to the center of each captured image than the first position.
  • the output control unit when there is a measurement point at a position where the influence of lens distortion is smaller, the output control unit outputs a measurement value based on the measurement point. Therefore, the output control unit can output a more accurate measurement value from the output unit.
  • the one or more measurement points (21, 52a, 52b, 53a, 53b) in any one of aspects 1 to 4 Is a plurality of measurement points
  • the output control unit (11, 110, 210, 310, 410) is configured to determine the difference in the distance between the plurality of measurement points indicated by the second distance information as the first Whether or not the output unit outputs a measurement value (44b) based on the second position based on whether the distance information is smaller than a difference in distance between the plurality of measurement points indicated by the distance information. You may control.
  • the measuring apparatus (1, 2, 3, 4, 5) according to any one of aspects 1 to 5 is A first distance information is calculated from a plurality of captured images (40, 42) having different viewpoints including the first captured image, and a plurality of the second distance information includes the second captured image. It may be calculated from captured images of different viewpoints.
  • the measuring device according to this aspect can be suitably used for measurement based on a stereo method.
  • the measurement values (41, 43, 44a, 44b) in any one of aspects 1 to 6 have three-dimensional positions. , Length, area, volume or angle may be indicated.
  • the measuring device can preferably output a measurement value indicating a three-dimensional position, a length, an area, a volume or an angle.
  • the measuring apparatus (1, 2, 3, 4, 5) according to aspect 8 of the present invention is the measuring apparatus (1, 2, 3, 4, 5) according to any one of the above aspects 1 to 7, wherein
  • the imaging unit captures a captured image including one or more measurement points, and displays the measured value output based on the distance information of the one or more measurement points in the captured image on the display unit. It can. As a result, it is possible to present the measurement values measured with higher accuracy in a state easy for the user to understand.
  • the control method of the measurement apparatus is the position of the one or more measurement points on the captured image (40, 42) on which the one or more measurement points (21, 52a, 52b, 53a, 53b) appear Based on the output step of outputting the measured values (41, 43, 44a, 44b), and the first position based on the first position, which is the position of the one or more measurement points on the first captured image (60a)
  • the second measurement value (44b) based on the second position which is the position of the one or more measurement points on the second captured image (60b)
  • the first position and the second position It includes an output control step of controlling according to at least one of a change between.
  • the measuring device (1, 2, 3, 4, 5) may be realized by a computer, in which case the computer And the program of the measuring device (1, 2, 3, 4, 5) that causes the computer to realize the measuring device (1, 2, 3, 4, 5) by operating as each component (software element) included in A computer readable recording medium having recorded thereon also falls within the scope of the present invention.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Instruments For Viewing The Inside Of Hollow Bodies (AREA)
  • Endoscopes (AREA)

Abstract

The objective of the present invention is to present a measured value measured with a higher accuracy to a user in an easily understandable state. A measuring device (1) controls whether or not a measured value calculating unit (10) is to output a second measured value based on second image coordinate information after outputting a first measured value based on first image coordinate information, in accordance with at least one of (i) a variation between first distance information and second distance information, and (ii) a variation between the first image coordinate information and the second image coordinate information.

Description

計測装置、計測装置の制御方法、計測プログラムおよび記録媒体Measurement device, control method of measurement device, measurement program and recording medium
 本発明は、計測点の3次元位置および長さ等の計測値を計測する計測装置等に関する。
 本願は、2017年11月7日に、日本に出願された特願2017-214593に優先権を主張し、その内容をここに援用する。
The present invention relates to a measuring device and the like that measure measurement values such as the three-dimensional position and length of a measurement point.
Priority is claimed on Japanese Patent Application No. 2017-214593, filed Nov. 7, 2017, the content of which is incorporated herein by reference.
 非接触で撮像装置から計測点までの距離、計測点間の長さおよび面積等を計測する計測装置等を用いた技術がある。この技術には、三角測量の原理に基づいて測距を行うステレオ方式、および、レーザーの反射光の位相差または受信時間に基づいて測距を行うTOF(Time Of Flight)方式等が挙げられ、これらによって測定された距離に基づいて計測点の計測が行われる。 There is a technique using a measuring device or the like that measures the distance from an imaging device to a measurement point, the length between measurement points, and the area without contact. Examples of this technology include a stereo method in which distance measurement is performed based on the principle of triangulation, and a TOF (Time Of Flight) method in which distance measurement is performed based on a phase difference of reflected light of a laser or reception time. The measurement of the measurement point is performed based on the distance measured by these.
 特許文献1には、ステレオ方式を用いて、撮像画像上で指定された計測位置および撮像画像における所定位置のそれぞれに対応する3次元座標を計算し、計測位置に対応する3次元座標に基づいて被写体のサイズを計測する内視鏡装置が記載されている。 In Patent Document 1, a stereo method is used to calculate three-dimensional coordinates corresponding to each of a measurement position designated on a captured image and a predetermined position on the captured image, and based on the three-dimensional coordinates corresponding to the measurement position. An endoscope apparatus for measuring the size of a subject is described.
特開2013-25292号公報(2013年2月4日公開)Japanese Patent Application Laid-Open No. 2013-25292 (published on February 4, 2013)
 しかしながら、上述のステレオ方式等の技術では、同一または略同一の位置の計測点を複数回計測する場合には、計測の度に計測点の計測値が変化してしまうため、高い精度で計測値を計測することができない可能性がある。 However, in the technique such as the stereo method described above, when the measurement point at the same or substantially the same position is measured a plurality of times, the measurement value of the measurement point changes every time measurement, so the measurement value with high accuracy May not be able to measure.
 ここで、特許文献1に記載の内視鏡装置は、計測位置に対応する3次元座標のばらつきの推定値を計算し、3次元座標のばらつきの推定値に基づいて計測対象の物体のサイズの計測値のばらつきの推定値を計算している。そして、当該内視鏡装置は、計測値と計測値のばらつきの情報とを表示部に表示している。しかしながら、特許文献1に記載の技術は、計測の度に変化する計測値とばらつきの情報との両方をユーザに提示し、ばらつきが小さくなった際の計測値を確認させることを要する。そのため、特許文献1に記載の技術によれば、ユーザにとって分かり易い状態で計測値を提示することができない。 Here, the endoscope apparatus described in Patent Document 1 calculates an estimated value of the variation of the three-dimensional coordinate corresponding to the measurement position, and calculates the size of the object to be measured based on the estimated value of the variation of the three-dimensional coordinate. An estimate of the variability of the measurements is being calculated. Then, the endoscope apparatus displays the measurement value and the information on the variation of the measurement value on the display unit. However, the technique described in Patent Document 1 requires the user to present both the measurement value that changes each time of measurement and the information of the variation, and to confirm the measurement value when the variation becomes smaller. Therefore, according to the technique described in Patent Document 1, it is not possible to present the measurement value in a state easy for the user to understand.
 本発明は上記の点に鑑みてなされたものであり、その目的は、より高い精度で計測された計測値を、ユーザに分かり易い状態で提示することができる計測装置を提供することにある。 The present invention has been made in view of the above-described point, and an object thereof is to provide a measurement device capable of presenting measurement values measured with higher accuracy in a state in which the user can easily understand.
 本発明の一態様に係る計測装置は、1以上の計測点が写った撮像画像上における当該1以上の計測点の位置に基づいて、計測値を出力する出力部と、第1の撮像画像上における当該1以上の計測点の位置である第1位置に基づいた計測値を前記出力部が出力した後、第2の撮像画像上における当該1以上の計測点の位置である第2位置に基づいた計測値を前記出力部が出力するか否かを、(i)前記第1位置に対応する第1の距離情報と、前記第2位置に対応する第2の距離情報との間の変化、および、(ii)前記第1位置と前記第2位置との間の変化の少なくとも一方に応じて制御する出力制御部とを備えている。 According to an aspect of the present invention, there is provided a measurement apparatus including: an output unit that outputs a measurement value based on positions of one or more measurement points on a captured image in which one or more measurement points appear; After the output unit outputs the measurement value based on the first position, which is the position of the one or more measurement points in, the second position, which is the position of the one or more measurement points on the second captured image Whether or not the output unit outputs the measured value is (i) a change between first distance information corresponding to the first position and second distance information corresponding to the second position; And (ii) an output control unit configured to control in accordance with at least one of changes between the first position and the second position.
 本発明の一態様に係る計測装置の制御方法は、1以上の計測点が写った撮像画像上における当該1以上の計測点の位置に基づいて、計測値を出力する出力ステップと、第1の撮像画像上における当該1以上の計測点の位置である第1位置に基づいた計測値を前記出力ステップにおいて出力した後、第2の撮像画像上における当該1以上の計測点の位置である第2位置に基づいた計測値を前記出力ステップにおいて出力するか否かを、(i)前記第1位置に対応する第1の距離情報と、前記第2位置に対応する第2の距離情報との間の変化、および、(ii)前記第1位置と前記第2位置との間の変化の少なくとも一方に応じて制御する出力制御ステップとを包含する。 A control method of a measurement apparatus according to an aspect of the present invention includes an output step of outputting a measurement value based on the position of the one or more measurement points on the captured image in which the one or more measurement points appear. After outputting the measurement value based on the first position, which is the position of the one or more measurement points on the captured image, in the output step, the second one that is the position of the one or more measurement points on the second captured image Whether to output a measurement value based on position in the output step, (i) between first distance information corresponding to the first position and second distance information corresponding to the second position And (ii) an output control step of controlling in response to at least one of the change between the first position and the second position.
 本発明の一態様によれば、より高い精度で計測された計測値を、ユーザに分かり易い状態で提示することができる。 According to one aspect of the present invention, it is possible to present measurement values measured with higher accuracy in a state easy for the user to understand.
実施形態1に係る計測装置の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a measurement device according to Embodiment 1. 実施形態1に係る計測装置の表示部に表示される撮像画像および計測値の一例を示す図である。FIG. 6 is a view showing an example of a captured image and measurement values displayed on the display unit of the measurement device according to the first embodiment. 実施形態1に係る計測装置の表示部に表示される撮像画像および計測値の一例を示す図である。FIG. 6 is a view showing an example of a captured image and measurement values displayed on the display unit of the measurement device according to the first embodiment. 実施形態1に係る計測装置が実行する計測処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the measurement process which the measuring device which concerns on Embodiment 1 performs. 実施形態5に係る計測装置の表示部に表示される撮像画像および計測値の一例を示す図である。It is a figure which shows an example of the captured image displayed on the display part of the measuring device which concerns on Embodiment 5, and a measured value. 実施形態5に係る計測装置の表示部に表示される撮像画像および計測値の一例を示す図である。It is a figure which shows an example of the captured image displayed on the display part of the measuring device which concerns on Embodiment 5, and a measured value.
 以下、本発明の実施形態について図面を参照して詳細に説明する。ただし、以下に記載されている構成は、特に限定的な記載がない限り、この発明の実施形態の範囲をそれのみに限定する趣旨ではなく、単なる説明例に過ぎない。また、各図は説明のためのものであり、実際とは異なる場合がある。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. However, the configuration described below is not intended to limit the scope of the embodiment of the present invention to that only, unless otherwise specifically described, and is merely an illustrative example. Moreover, each figure is for description and may differ from the actual.
 <実施形態1>
 以下、本発明の一実施形態(実施形態1)に係る計測装置および計測装置の制御方法について、図1から図4に基づいて説明する。
First Embodiment
Hereinafter, a measurement device according to an embodiment (first embodiment) of the present invention and a control method of the measurement device will be described based on FIG. 1 to FIG.
 〔計測装置1〕
 図1は、本実施形態に係る計測装置1の構成を示すブロック図である。本実施形態に係る計測装置1は、計測値算出部(出力部)10、出力判定部(出力制御部)11および表示部12を備えている。
[Measurement device 1]
FIG. 1 is a block diagram showing the configuration of a measuring device 1 according to the present embodiment. The measuring device 1 according to the present embodiment includes a measurement value calculation unit (output unit) 10, an output determination unit (output control unit) 11, and a display unit 12.
 計測装置1には、計測装置1の外部から画像情報、画像座標情報(以降、画像座標とも記載する)および距離情報等を含む計測点の情報が入力され、計測装置1は計測点の情報に応じた計測値を出力する。 The measuring device 1 receives image information, image coordinate information (hereinafter also referred to as image coordinates), and information of measuring points including distance information etc. from the outside of the measuring device 1, and the measuring device 1 receives the information of the measuring points. Output the corresponding measurement value.
 なお、本実施形態に係る計測装置1は、CPU(Central Processing Unit)またはGPU(Graphics Processing Unit)によるソフトウェア処理によって実現することができるほか、ASIC(Application Specific Integrated Circuit)またはFPGA(Field Programmable Gate Array)によるハードウェア処理によっても実現することができる。 The measurement device 1 according to the present embodiment can be realized by software processing using a central processing unit (CPU) or graphics processing unit (GPU), and an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA). It can also be realized by hardware processing by.
 以下に、まず、計測装置1を構成する計測値算出部10、出力判定部11および表示部12について説明する。 First, the measurement value calculation unit 10, the output determination unit 11, and the display unit 12 that constitute the measurement device 1 will be described.
 (計測値算出部10)
 計測値算出部10は、撮像画像上における1以上の計測点の位置に基づいた計測値を出力する。一態様において、計測値算出部10は、計測装置1に入力された撮像画像の画像座標情報および1以上の計測点の距離情報等を含む計測点の情報に基づいて、計測点の位置に対応する実空間上の3次元位置情報(以降、3次元座標とも記載する)を算出する。また、計測値算出部10は、当該3次元位置情報に基づいて計測値を算出する。計測値算出部10は、計測値を表示部12に出力する。
(Measurement value calculation unit 10)
The measurement value calculation unit 10 outputs measurement values based on the positions of one or more measurement points on the captured image. In one aspect, the measurement value calculation unit 10 copes with the position of the measurement point based on the information of the measurement point including the image coordinate information of the captured image input to the measurement device 1 and the distance information of one or more measurement points. The three-dimensional position information (hereinafter also referred to as three-dimensional coordinates) on the real space to be calculated is calculated. Also, the measurement value calculation unit 10 calculates a measurement value based on the three-dimensional position information. The measurement value calculation unit 10 outputs the measurement value to the display unit 12.
 ここで、画像情報は、図1に図示しない計測装置1の外部に設けられた撮像装置(撮像素子を有した撮像部)によって、計測点を含む計測対象の被写体が撮像された2次元の撮像画像の情報である。画像座標情報は、撮像画像上の2次元座標系における計測点の座標値である。距離情報は、撮像装置と被写体における計測点との離隔量を示す距離の情報である。計測値は、計測点の情報に関する値である。画像情報、画像座標情報、距離情報および計測値の詳細は後述する。 Here, the image information is a two-dimensional image in which an object to be measured including a measurement point is imaged by an imaging device (an imaging unit having an imaging element) provided outside the measuring device 1 (not shown in FIG. 1) It is information of an image. Image coordinate information is coordinate values of measurement points in a two-dimensional coordinate system on a captured image. The distance information is information on the distance indicating the distance between the imaging device and the measurement point of the subject. The measurement value is a value related to the information of the measurement point. Details of the image information, the image coordinate information, the distance information, and the measurement value will be described later.
 なお、上述の例では、計測値算出部10は、計測点の情報は、画像情報、画像座標情報および距離情報を含む計測点の情報から計測値を算出しているが、本実施形態ではこれに限定されない。本実施形態では、これらの情報の代わりに、外部から直接入力された3次元位置情報から計測値を算出してもよい。この場合も上述の例と同様に計測点の計測値を算出することができる。 In the above-described example, the measurement value calculation unit 10 calculates the measurement value from the measurement point information including the image information, the image coordinate information, and the distance information in the measurement point information, but in the present embodiment It is not limited to. In the present embodiment, measurement values may be calculated from three-dimensional position information directly input from the outside instead of these pieces of information. Also in this case, the measurement value of the measurement point can be calculated as in the above-described example.
 (出力判定部11)
 出力判定部11は、第1の撮像画像上における当該1以上の計測点の位置である第1位置に基づいた第1計測値を計測値算出部10が出力した後、第2の撮像画像上における当該1以上の計測点の位置である第2位置に基づいた第2計測値を計測値算出部10が表示部12に出力するか否かを、前記第1位置に対応する第1の距離情報と前記第2位置に対応する第2の距離情報との間の変化、および、第1位置と第2位置との間の変化の少なくとも一方に応じて制御する。例えば、出力判定部11は、第2計測値が、第1計測値よりも高い精度で計測されている場合に、第2計測値を計測値算出部10から表示部12に出力させる。出力判定部11の処理の詳細は後述する。
(Output determination unit 11)
The output determination unit 11 outputs the first measurement value based on the first position, which is the position of the one or more measurement points on the first captured image, on the second captured image. The first distance corresponding to the first position whether or not the measurement value calculation unit 10 outputs to the display unit 12 a second measurement value based on the second position, which is the position of the one or more measurement points in Control is performed in accordance with at least one of a change between information and second distance information corresponding to the second position, and a change between the first position and the second position. For example, when the second measurement value is measured with higher accuracy than the first measurement value, the output determination unit 11 causes the measurement value calculation unit 10 to output the second measurement value to the display unit 12. Details of the process of the output determination unit 11 will be described later.
 ここで、第1の距離情報とは、撮像装置と第1の撮像画像上の計測点との距離に関する距離情報のことであり、第2の距離情報とは、撮像装置と第2の撮像画像上の計測点との距離に関する距離情報のことである。また、第1計測値とは既に計測された計測値のことであり、第2計測値とは、既に計測された計測点と同一または略同一の計測点について新たに計測され得る計測値のことである。 Here, the first distance information refers to distance information related to the distance between the imaging device and the measurement point on the first captured image, and the second distance information refers to the imaging device and the second captured image It is distance information on the distance to the upper measurement point. Also, the first measurement value is a measurement value that has already been measured, and the second measurement value is a measurement value that can be newly measured at the same or substantially the same measurement point as the measurement point that has already been measured. It is.
 また、出力判定部11の判定で参照される計測点の情報は、距離情報および計測値算出部10が算出した3次元位置情報を含む情報であってもよい。また、上述の計測値算出部10が参照する計測点の情報と同様に、計測点の情報は、画像情報、画像座標情報および距離情報等を含む情報であってもよい。このことから、出力判定部11は、図1に示すように、計測値算出部10に画像情報、画像座標情報および距離情報が入力された場合、計測値算出部10が算出した3次元位置情報に基づき、出力判定を行ってもよい。また、出力判定部11は、計測値算出部10が3次元位置情報を算出する前に、画像情報、画像座標情報および距離情報に基づき出力判定を行い、その後、計測値算出部10が3次元位置情報を算出してもよい。どちらの場合も同様の効果を奏することができる。 Further, the information of the measurement point to be referred to in the determination of the output determination unit 11 may be information including distance information and three-dimensional position information calculated by the measurement value calculation unit 10. Further, similarly to the information of the measurement point referred to by the measurement value calculation unit 10 described above, the information of the measurement point may be information including image information, image coordinate information, distance information, and the like. From this, as shown in FIG. 1, when the image information, the image coordinate information, and the distance information are input to the measurement value calculation unit 10, the output determination unit 11 calculates the three-dimensional position information calculated by the measurement value calculation unit 10. The output determination may be performed based on In addition, the output determination unit 11 performs output determination based on the image information, the image coordinate information, and the distance information before the measurement value calculation unit 10 calculates the three-dimensional position information, and then the measurement value calculation unit 10 determines the three-dimensional information. Position information may be calculated. Similar effects can be achieved in either case.
 出力判定部11による上述の判定により、計測値算出部10は、第2計測値を表示部12に出力するか、第2計測値を表示部12に出力しない。これにより、表示部12には、第1計測値が、より高い精度で計測された計測値に更新されて表示されるか、更新されず前回と同じ計測値が表示されたままになる。これにより、より高い精度で計測された計測値を、ユーザに分かり易い状態で提示することができる。 Based on the above-described determination by the output determination unit 11, the measurement value calculation unit 10 outputs the second measurement value to the display unit 12 or does not output the second measurement value to the display unit 12. Thereby, the first measurement value is updated and displayed on the display unit 12 to the measurement value measured with higher accuracy, or the same measurement value as the previous time is displayed without being updated. As a result, it is possible to present the measurement values measured with higher accuracy in a state easy for the user to understand.
 (表示部12)
 表示部12は、計測装置1の外部から入力された画像情報に基づく撮像画像と、計測値算出部10から入力された計測値とを表示する。表示部12は、例えば、液晶素子および有機EL(Electro Luminescence)等を画素とする表示機器である。より具体的には、表示部12は、テレビジョンディスプレイ、PC(Personal Computer)用モニタ、または、スマートフォンもしくはタブレット端末等の携帯端末のディスプレイである。
(Display 12)
The display unit 12 displays a captured image based on image information input from the outside of the measurement device 1 and a measurement value input from the measurement value calculation unit 10. The display unit 12 is a display device including, for example, a liquid crystal element and an organic EL (Electro Luminescence) as pixels. More specifically, the display unit 12 is a display of a television display, a monitor for a PC (Personal Computer), or a portable terminal such as a smartphone or a tablet terminal.
 なお、上述の例では、表示部12に撮像画像と計測値とが表示される場合について説明しているが、本実施形態ではこれに限定されない。例えば、本実施形態では、表示部12に撮像画像が表示されていなくてもよい。ただし、計測点の位置と計測値との両方の撮像画像が表示されていることが好ましい。これにより、ユーザにより分かり易い状態で計測値を提示することができる。また、表示部12に計測値が表示される代わりに、計測値が、計測装置1の外部に、音声出力等によって出力されてもよい。すなわち、計測値算出部10は表示部12を備えず、計測値を表示部12に出力する代わりに、計測装置1の外部に出力してもよい。この場合も、表示部12に計測値が表示される場合と同様の効果を奏する。 In the above-mentioned example, although the case where a picturized picture and measurement value are displayed on indicator 12 is explained, it is not limited to this in this embodiment. For example, in the present embodiment, the captured image may not be displayed on the display unit 12. However, preferably, captured images of both the position of the measurement point and the measurement value are displayed. Thereby, the measurement value can be presented in a state easy to understand by the user. Further, instead of displaying the measurement value on the display unit 12, the measurement value may be output to the outside of the measuring device 1 by audio output or the like. That is, the measurement value calculation unit 10 may not include the display unit 12 and may output the measurement value to the outside of the measurement device 1 instead of outputting the measurement value to the display unit 12. Also in this case, the same effect as when the measurement value is displayed on the display unit 12 is obtained.
 また、上述の例では、計測装置1は表示部12を含むが、計測装置1の内部に表示部12を設ける代わりに、計測装置1の外部に表示装置を設けてもよい。 Moreover, in the above-mentioned example, although the measuring device 1 contains the display part 12, instead of providing the display part 12 inside the measuring device 1, you may provide a display apparatus outside the measuring device 1. FIG.
 〔計測点の情報〕
 以下に、計測装置1の外部から入力される画像情報、画像座標情報および距離情報について説明する。
[Information of measurement point]
Hereinafter, image information, image coordinate information, and distance information input from the outside of the measuring device 1 will be described.
 (画像情報)
 画像情報は、図1に図示しない計測装置1の外部に設けられた撮像装置によって、計測点を含む計測対象の被写体が撮像された2次元の撮像画像に関する情報である。また、画像情報には撮像画像を撮像した撮像装置のカメラパラメータの情報が含まれる。撮像装置は、例えばレンズモジュール等の光学系、CCD(Charge Coupled Device)およびCMOS(Complementary Metal Oxide Semiconductor)等の撮像素子、アナログ信号処理部、ならびにA/D(Analog / Digital)変換部等を備え、イメージセンサからの信号を撮像画像として出力するものである。カメラパラメータとしては、撮像画像の解像度、撮像装置の焦点距離、レンズの歪みに関する情報、画像中心位置の座標、および撮像装置の位置関係に関する情報等が挙げられる。なお、撮像画像は、撮像装置で撮像した静止画像であってもよいし、動画像を構成する複数のフレームのうちの一つのフレームを表す画像であってもよい。静止画像の場合、所定の間隔で撮像された撮像画像が好ましい。また、動画像の場合、連続するフレームが順次入力された撮像画像が好ましい。計測値算出部10には画像情報のうち少なくとも上述のカメラパラメータの情報が入力される。
(Image information)
The image information is information on a two-dimensional captured image in which an object to be measured including a measurement point is imaged by an imaging device provided outside the measurement device 1 (not shown in FIG. 1). The image information also includes information on camera parameters of an imaging device that has captured a captured image. The imaging apparatus includes, for example, an optical system such as a lens module, an imaging device such as a CCD (Charge Coupled Device) and a Complementary Metal Oxide Semiconductor (CMOS), an analog signal processor, an A / D (Analog / Digital) converter, and the like. , And outputs a signal from an image sensor as a captured image. The camera parameters include the resolution of the captured image, the focal length of the imaging device, information on lens distortion, coordinates of the image center position, and information on the positional relationship of the imaging device. The captured image may be a still image captured by an imaging device, or may be an image representing one of a plurality of frames constituting a moving image. In the case of a still image, a captured image captured at a predetermined interval is preferable. Further, in the case of a moving image, a captured image in which successive frames are sequentially input is preferable. At least information on the above-mentioned camera parameters in the image information is input to the measurement value calculation unit 10.
 なお、上述の例では、画像情報は、計測装置1の外部から計測値算出部10に入力されているが、本実施形態ではこれに限定されない。本実施形態では、例えば、計測装置1は撮像装置を撮像部13(不図示)として含み、当該撮像部が撮像した撮像画像の情報を画像情報とし、当該撮像画像を表示部12に表示してもよい。このような構成によっても、高い精度で計測された計測値を、ユーザに分かり易い状態で提示することができる。 In the above-mentioned example, although image information is inputted into measurement value calculation part 10 from the exterior of measuring device 1, it is not limited to this in this embodiment. In the present embodiment, for example, the measuring apparatus 1 includes an imaging device as an imaging unit 13 (not shown), and uses information of a captured image captured by the imaging unit as image information and displays the captured image on the display unit 12 It is also good. Also with such a configuration, it is possible to present the measurement values measured with high accuracy in a state easy for the user to understand.
 (距離情報)
 距離情報は、撮像画像に写された計測点に関する情報であり、当該撮像画像を撮像した撮像装置から、当該撮像画像に写された被写体上の計測点までの距離を示す情報である。ここでいう距離は、撮像装置の光軸方向の距離を意味する。
(Distance information)
The distance information is information related to the measurement point captured in the captured image, and is information indicating the distance from the imaging device capturing the captured image to the measurement point on the subject captured in the captured image. The distance mentioned here means the distance in the optical axis direction of the imaging device.
 本明細書において、撮像画像上の計測点の位置に対応する距離情報とは、当該撮像画像を撮像した撮像装置から、撮像画像上の計測点の位置に対応する被写体上の位置までの距離を示す距離情報を意味する。このような距離情報は、後述するようにステレオ方式やTOF方式によって、撮像画像上の計測点の位置から容易に導くことができる。 In the present specification, the distance information corresponding to the position of the measurement point on the captured image means the distance from the imaging device that has captured the captured image to the position on the subject corresponding to the position of the measurement point on the captured image Indicates the indicated distance information. Such distance information can be easily derived from the position of the measurement point on the captured image by the stereo method or TOF method as described later.
 本実施形態において、計測装置1に入力される距離情報はステレオ方式によって取得されるものである。そのため、出力判定部11は、ステレオ方式の特徴に応じて、第2の撮像画像上の計測点の情報と、第1の撮像画像上の計測点の情報とのうち、何れから高い計測精度の計測値を算出できるかを判定する条件を設定している。ステレオ方式の場合、基準となる撮像装置とそれ以外の撮像装置との、少なくとも2台以上の撮像装置で計測対象の被写体を撮像し、1以上の計測点の距離情報を、1以上の計測点が写った複数の互いに視点の異なる撮像画像から算出する。計測装置1に入力される画像情報は、基準となる撮像装置の撮像画像およびカメラパラメータであり、カメラパラメータには複数の撮像装置の位置関係を表す情報が含まれる。なお、距離情報は3次元位置情報のZ座標の値と同一の値を示す情報であるので、計測値算出部10は、外部から入力された距離情報を取得する代わりに、3次元位置情報から距離情報を取得してもよい。 In the present embodiment, the distance information input to the measuring device 1 is acquired by a stereo method. Therefore, the output determination unit 11 has a measurement accuracy higher than any of the information of the measurement point on the second captured image and the information of the measurement point on the first captured image according to the feature of the stereo method. Conditions are set to determine whether measurement values can be calculated. In the case of the stereo method, an object to be measured is imaged by at least two or more imaging devices as a reference imaging device and another imaging device, and distance information of one or more measurement points is one or more measurement points. Calculated from multiple captured images of different viewpoints in which the The image information input to the measuring device 1 is a captured image of an imaging device serving as a reference and a camera parameter, and the camera parameter includes information indicating the positional relationship of a plurality of imaging devices. In addition, since the distance information is information indicating the same value as the Z coordinate value of the three-dimensional position information, the measurement value calculation unit 10 does not acquire the distance information input from the outside, but from the three-dimensional position information. Distance information may be acquired.
 なお、上述の例では、距離情報は、計測装置1の外部から計測値算出部10に入力されるが、本実施形態ではこれに限定されない。本実施形態では、例えば、計測装置1が図示しない測距装置をさらに含み、測距装置によって距離情報を取得し、測距装置が距離情報を計測値算出部10に入力するようにしてもよい。 In the above-mentioned example, although distance information is inputted into measurement value calculation part 10 from the exterior of measuring device 1, it is not limited to this in this embodiment. In the present embodiment, for example, the measuring device 1 may further include a distance measuring device (not shown), the distance measuring device may obtain distance information, and the distance measuring device may input the distance information to the measurement value calculation unit 10. .
 なお、上述の例では、計測値算出部10は、距離情報をステレオ方式によって取得し、出力判定部11は、当該距離情報に基づいて計測値の出力判定を行っているが、本実施形態ではこれに限定されない。本実施形態では、距離情報に応じて計測精度が変化する計測値の出力判定を行うことができれば、他の方式によって距離情報を取得してもよい。他の方式としては、例えば、TOF方式等を挙げることができる。なお、TOF方式は、レーザーの反射を利用して測距するため、太陽光の影響で計測点の計測が不可能になったり、計測精度が低下したりする可能性がある。そのため、TOF方式による出力判定の場合には、出力判定部11は、計測点を計測する際の太陽光の状態による計測精度の変化に応じて出力判定を行うことが好ましい。このように、ステレオ方式以外の方式から取得した距離情報に基づいて出力判定を行う場合は、出力判定部11は、各取得方式の特徴によって生じる計測精度の変化にも応じて出力判定を行うことが好ましい。 In the above-described example, the measurement value calculation unit 10 obtains the distance information by the stereo method, and the output determination unit 11 performs the output determination of the measurement value based on the distance information, but in the present embodiment It is not limited to this. In the present embodiment, as long as it is possible to determine the output of the measurement value whose measurement accuracy changes according to the distance information, the distance information may be obtained by another method. As another system, a TOF system etc. can be mentioned, for example. In the TOF method, since distance measurement is performed using the reflection of a laser, there is a possibility that the measurement of measurement points can not be performed or the measurement accuracy is reduced due to the influence of sunlight. Therefore, in the case of the output determination by the TOF method, it is preferable that the output determination unit 11 perform the output determination according to the change in measurement accuracy due to the state of sunlight when measuring the measurement point. As described above, when the output determination is performed based on distance information acquired from a method other than the stereo method, the output determination unit 11 performs the output determination according to a change in measurement accuracy caused by the characteristics of each acquisition method. Is preferred.
 (画像座標情報)
 画像座標情報は、撮像画像の2次元座標系における計測点の座標値に関する情報である。画像座標情報は、第2の撮像画像上の計測点が、第1の撮像画像上の計測点であるか否かを判定するための情報も含む。
(Image coordinate information)
Image coordinate information is information on coordinate values of measurement points in a two-dimensional coordinate system of a captured image. The image coordinate information also includes information for determining whether the measurement point on the second captured image is a measurement point on the first captured image.
 以下に、図2を用いて、画像座標情報および画像座標情報に関する計測点の座標値等について説明する。図2は、計測装置1の表示部12に表示される撮像画像40および計測値41の一例を示す図である。図2に示されるように、撮像画像40および計測値41は表示部12に表示され、撮像画像40上の計測点21は、撮像画像40上に計測点21の位置を示す十字の記号として表示されている。図2には被写体20とユーザによって指定された計測点21とが示されている。計測点21の座標値22は、例えば、図示しない入力装置を計測装置1の外部に設け、ユーザが表示部12に表示されたプレビュー表示の撮像画像40上に表示される計測点の位置を示す記号または座標値22を確認しながら、入力装置を操作することで、ユーザが所望する値にすることができる。入力装置としては、例えば、マウスおよびキーボード等の入力機器を挙げることができる。 Hereinafter, the image coordinate information and the coordinate value of the measurement point regarding the image coordinate information will be described with reference to FIG. FIG. 2 is a view showing an example of the captured image 40 and the measurement value 41 displayed on the display unit 12 of the measuring device 1. As shown in FIG. 2, the captured image 40 and the measurement value 41 are displayed on the display unit 12, and the measurement point 21 on the captured image 40 is displayed as a cross symbol indicating the position of the measurement point 21 on the captured image 40. It is done. The subject 20 and the measurement point 21 designated by the user are shown in FIG. The coordinate value 22 of the measurement point 21 indicates, for example, the position of the measurement point displayed on the captured image 40 of the preview display displayed on the display unit 12 by providing an input device (not shown) outside the measurement device 1 By operating the input device while confirming the symbol or the coordinate value 22, it is possible to obtain a value desired by the user. As an input device, input devices, such as a mouse and a keyboard, can be mentioned, for example.
 なお、計測点21の座標値22を設定する方法は、上述の方法に限定されず、ユーザが所望する計測点21の座標値22となれば、どのような方法で設定してもよい。また、計測対象が予め決まっている場合は、計測点21を自動設定することができる。例えば、計測装置1における不図示の記憶部に計測対象となる被写体の代表画像データを登録しておき、表示部12に表示された撮像画像40内で代表画像データを探索することで、計測値算出部10が撮像画像40上の計測点21の座標値22を自動で取得するようにしてもよい。なお、動画像の連続するフレームが画像情報として入力される場合には、各フレームの撮像画像を表示部12に表示することで動画像がプレビュー表示される。ユーザはプレビュー表示を確認しながら、撮像画像40上で計測点21を指定し、当該計測点21の位置を計測点21の座標値22に設定してもよい。また、この場合、ユーザがあるフレームで一度指定した計測点21を、以降のフレームで追従して自動設定するようにしてもよい。計測点21の自動設定は、上述の代表画像データを登録する方法により行うことができる。計測点21を追従して自動設定する方法は上述の例に限定されず、同一または略同一の位置を追従し設定可能であればどのような方法であってもよい。 Note that the method of setting the coordinate value 22 of the measurement point 21 is not limited to the above-described method, and any method may be used as long as the coordinate value 22 of the measurement point 21 desired by the user is obtained. In addition, when the measurement target is determined in advance, the measurement point 21 can be set automatically. For example, representative image data of a subject to be measured is registered in a storage unit (not shown) of the measuring device 1 and the representative image data is searched for in the captured image 40 displayed on the display unit 12. The calculation unit 10 may automatically acquire the coordinate value 22 of the measurement point 21 on the captured image 40. In addition, when the continuous flame | frame of a moving image is input as image information, a moving image is preview-displayed by displaying the captured image of each flame | frame on the display part 12. FIG. The user may designate the measurement point 21 on the captured image 40 while checking the preview display, and set the position of the measurement point 21 as the coordinate value 22 of the measurement point 21. Further, in this case, the measurement point 21 once designated by the user in a certain frame may be automatically set by following in the subsequent frames. The automatic setting of the measurement point 21 can be performed by the method of registering the representative image data described above. The method of setting automatically following the measurement point 21 is not limited to the above-described example, and any method may be used as long as the same or substantially the same position can be followed and set.
 なお、上述の例では、画像座標情報は、計測装置1の外部から計測値算出部10に入力されているが、本実施形態ではこれに限定されない。本実施形態では、例えば、計測装置1に図示しない入力部をさらに備え、ユーザが入力部によって計測点21を指定し、計測値算出部10は、当該計測点21から画像座標情報を取得してもよい。 In the above-mentioned example, although image coordinate information is inputted into measurement value calculation part 10 from the exterior of measuring device 1, it is not limited to this in this embodiment. In the present embodiment, for example, the measuring device 1 further includes an input unit (not shown), and the user designates the measurement point 21 by the input unit, and the measurement value calculation unit 10 acquires image coordinate information from the measurement point 21. It is also good.
 また、計測装置1が入力部と表示部12との両方を備える場合、計測装置1は、これらを一体とした装置として、例えば、タッチパネルを備えていてもよい。タッチパネルとしては、例えば、抵抗膜方式および静電容量方式等のものを挙げることができる。 Moreover, when the measuring device 1 is provided with both the input part and the display part 12, the measuring device 1 may be provided with a touch panel as an apparatus which integrated these, for example. As a touch panel, there can be mentioned, for example, a resistive film type, an electrostatic capacity type, and the like.
 また、上述の例では、画像座標情報に関する計測点の座標値22が表示部12に表示される場合について説明しているが、本実施形態ではこれに限定されない。本実施形態では、3次元位置情報の算出、および、第2の撮像画像上の計測点が第1の撮像画像上の計測点であるか否かの判定に画像座標情報を用いることができればよい。本実施形態では、例えば、図2に示すように、撮像画像40上のどの位置に計測点21が位置するのかが示されていれば、画像座標情報に関する計測点の座標値が計測値として表示部12に表示されなくてもよい。 Moreover, although the above-mentioned example demonstrates the case where the coordinate value 22 of the measurement point regarding image coordinate information is displayed on the display part 12, it is not limited to this in this embodiment. In the present embodiment, the image coordinate information may be used to calculate the three-dimensional position information and to determine whether the measurement point on the second captured image is the measurement point on the first captured image. . In the present embodiment, for example, as shown in FIG. 2, if it is indicated at which position on the captured image 40 the measurement point 21 is positioned, the coordinate value of the measurement point regarding the image coordinate information is displayed as the measurement value. It may not be displayed on the part 12.
 (計測値)
 計測値は、計測点の情報に関する値であり、例えば、3次元位置、長さ、面積、体積、または角度を示す。より具体的には、計測値は、図2のように計測点が一つの場合、撮像装置と計測点との距離の情報、または、計測点の3次元位置情報を表す情報である。また、本実施形態では、計測値は、二つ以上の計測点の情報に関する値であってもよい。計測点が二つ以上の場合には、計測値算出部10は、複数の計測点の3次元位置情報に基づいて様々な計測値を算出することができる。例えば、撮像画像上の各計測点に対応する実空間上の各計測点間の長さ(距離)、各計測点で囲まれる面積および体積、ならびに、複数の計測点により定義可能な直線、線分または面と、その他の計測点、直線、線分または面とのなす角度が挙げられる。また、計測対象の高さおよび幅、計測対象の周囲長、直径および弧の長さ、ならびに、ひも等の不定形物状の計測対象の長さ等を挙げることができる。計測点が二つ以上の場合、計測値算出部10は、各計測点の3次元位置情報を算出し、各計測点の3次元位置情報に基づいて、上述の計測値を算出する。各計測値は3次元位置情報から公知の方法によって算出可能であり、その詳細な説明は割愛する。
(Measurement value)
The measurement value is a value related to the information of the measurement point, and indicates, for example, a three-dimensional position, a length, an area, a volume, or an angle. More specifically, when there is one measurement point as shown in FIG. 2, the measurement value is information on the distance between the imaging device and the measurement point, or information representing three-dimensional position information on the measurement point. Further, in the present embodiment, the measurement value may be a value related to information of two or more measurement points. When the number of measurement points is two or more, the measurement value calculation unit 10 can calculate various measurement values based on three-dimensional position information of a plurality of measurement points. For example, the length (distance) between each measurement point in real space corresponding to each measurement point on a captured image, the area and volume surrounded by each measurement point, and a straight line or line that can be defined by a plurality of measurement points The angle which a minute or a surface makes with other measurement points, a straight line, a line segment or a surface can be mentioned. In addition, the height and width of the object to be measured, the peripheral length of the object to be measured, the diameter and the length of the arc, and the length of the object to be measured in the form of an irregular object such as a string can be mentioned. When there are two or more measurement points, the measurement value calculation unit 10 calculates three-dimensional position information of each measurement point, and calculates the above-described measurement value based on the three-dimensional position information of each measurement point. Each measurement value can be calculated from the three-dimensional position information by a known method, and the detailed description thereof will be omitted.
 算出された計測値は、例えば、図2に示すように、表示部12に表示される。図2に示すように、撮像装置と計測点21との距離が計測値41として表示されていてもよい。なお、図2は表示の一例であって、表示方法はこれに限定されない。計測点21と計測値41とが、ユーザにとって認識し易いように表示されていればよく、例えば、図3に示すような形態であってもよい。図3は、計測装置1の表示部12に表示される撮像画像42および計測値43の一例を示す図である。図3に示すように、計測値43が撮像画像42上に重畳して表示されていてもよい。 The calculated measurement value is displayed on the display unit 12, for example, as shown in FIG. As shown in FIG. 2, the distance between the imaging device and the measurement point 21 may be displayed as a measurement value 41. Note that FIG. 2 is an example of display, and the display method is not limited to this. The measurement point 21 and the measurement value 41 may be displayed so as to be easily recognized by the user. For example, the form as shown in FIG. 3 may be used. FIG. 3 is a view showing an example of the captured image 42 and the measurement value 43 displayed on the display unit 12 of the measuring device 1. As shown in FIG. 3, the measurement value 43 may be displayed superimposed on the captured image 42.
 (計測値の算出)
 以下に、計測値算出部10による計測値の算出について詳細に説明する。
(Calculation of measured value)
The calculation of the measurement value by the measurement value calculation unit 10 will be described in detail below.
 まず、計測値算出部10は、画像情報、画像座標情報および距離情報に基づいて計測点の3次元位置情報を取得する。ここで、当該画像情報は撮像装置のカメラパラメータに関する情報であり、当該画像座標情報は計測点の撮像画像上の2次元座標に関する情報である。また、当該距離情報は、撮像画像を撮像した撮像装置の光軸方向における、当該撮像装置と、計測点の位置に写る被写体との距離に関する情報である。 First, the measurement value calculation unit 10 acquires three-dimensional position information of the measurement point based on the image information, the image coordinate information, and the distance information. Here, the image information is information on camera parameters of the imaging device, and the image coordinate information is information on two-dimensional coordinates on the captured image of the measurement point. Further, the distance information is information on the distance between the imaging device and the subject captured at the position of the measurement point in the optical axis direction of the imaging device which has captured the captured image.
 計測点の画像座標を(u,v)、距離をZとすると、計測点の3次元座標(Xp,Yp,Zp)は以下の式(1)によって算出される。 Assuming that the image coordinates of the measurement point are (u, v) and the distance is Z, the three-dimensional coordinates (Xp, Yp, Zp) of the measurement point are calculated by the following equation (1).
Figure JPOXMLDOC01-appb-M000001
Figure JPOXMLDOC01-appb-M000001
 ここで、式(1)に示したfは撮像装置の焦点距離、cは水平方向の画像中心座標、cは垂直方向の画像中心座標を表す。なお、(u,v)は、撮像画像の左上端の座標を(0,0)、右下端の座標を(水平解像度-1,垂直解像度-1)とした場合の画像座標である。算出される計測点の3次元座標は撮像装置を基準とした3次元座標系で表される。また、式(1)に示すように、撮像装置と計測点との距離Zと計測点の3次元座標のZpとは同一である。すなわち、計測点の距離情報は、3次元位置情報のうちの一つである。 Here, f shown in equation (1) represents the focal length of the imaging device, c u represents the image center coordinates in the horizontal direction, and c v represents the image center coordinates in the vertical direction. Note that (u, v) are image coordinates when the coordinates of the upper left end of the captured image are (0, 0) and the coordinates of the lower right end are (horizontal resolution -1, vertical resolution -1). The calculated three-dimensional coordinates of the measurement point are represented by a three-dimensional coordinate system based on the imaging device. Further, as shown in Equation (1), the distance Z between the imaging device and the measurement point and Zp of the three-dimensional coordinate of the measurement point are the same. That is, the distance information of the measurement point is one of three-dimensional position information.
 上述のようにして、計測値算出部10は、外部から入力された画像情報、画像座標情報および距離情報から、計測点の3次元位置情報を算出する。 As described above, the measurement value calculation unit 10 calculates three-dimensional position information of the measurement point from the image information, image coordinate information, and distance information input from the outside.
 また、計測値算出部10は、計測点の3次元位置情報に基づいて計測値を算出する。計測値は、一つの場合も、二つ以上の場合も上述と同様に3次元位置情報から公知の方法によって計測値を算出することができる。 Also, the measurement value calculation unit 10 calculates a measurement value based on the three-dimensional position information of the measurement point. In the case of one or two or more measurement values, measurement values can be calculated from three-dimensional position information by a known method, as described above.
 (計測値の出力判定)
 出力判定部11は、第2の撮像画像上の計測点の情報と、第1の撮像画像上の計測点の情報と、に基づいて、第2計測値を計測値算出部10から表示部12に出力させるか否かを判定する。例えば、出力判定部11は、第2の撮像画像上の計測点の情報に基づいて、第2計測値が、第1計測値よりも高い精度の計測値となるか否かを判定する。より具体的には、出力判定部11は、第2位置に対応する第2の距離情報が、第1位置に対応する第1の距離情報よりも閾値以上短い距離を示しているか否かに基づいて、第2計測値を計測値算出部10が出力するか否かを制御する。なお、閾値は、ユーザによって任意に設定することができる。例えば、ユーザが閾値を10mmに設定し、第2の距離が、第1の距離よりも10mm以上小さい場合、出力判定部11は、第2計測値を計測値算出部10から表示部12に出力させる。
(Output judgment of measured value)
The output determination unit 11 transmits the second measurement value from the measurement value calculation unit 10 to the display unit 12 based on the information on the measurement point on the second captured image and the information on the measurement point on the first captured image. It is determined whether or not to output. For example, the output determination unit 11 determines whether the second measurement value is a measurement value with higher accuracy than the first measurement value based on the information of the measurement point on the second captured image. More specifically, the output determination unit 11 is based on whether or not the second distance information corresponding to the second position indicates a distance that is shorter than the first distance information corresponding to the first position by a threshold or more. It controls whether the measurement value calculation unit 10 outputs the second measurement value. The threshold can be arbitrarily set by the user. For example, when the user sets the threshold to 10 mm and the second distance is 10 mm or more smaller than the first distance, the output determination unit 11 outputs the second measurement value from the measurement value calculation unit 10 to the display unit 12 Let
 ここで、特にステレオ方式により測距する場合、一般的に、撮像装置と計測対象である被写体との距離が近ければ近いほど計測値の誤差が小さくなり、当該距離が遠ければ遠いほど誤差が大きくなる。また、ステレオ方式では、一般的に、撮像画像に基づいて測距するため、撮像装置のレンズの歪み等の影響によっても測距の精度が変化する。したがって、同一の計測対象の同一の位置を計測する場合であっても、撮像装置と計測対象との位置関係が変化すると測距の精度が変化するため、出力される計測値も変化する。そのため、同一の位置を複数回計測するような場合には、計測の度に計測値が変化してしまう。その結果、計測の度に表示部12に表示される計測値が変化するため、視認性が低下してユーザに分かり易い状態で計測値を出力することができない。 Here, particularly when distance measurement is performed by the stereo method, generally, the closer the distance between the imaging device and the subject to be measured is, the smaller the error of the measurement value, and the longer the distance, the larger the error. Become. Further, in the stereo method, in general, distance measurement is performed based on a captured image, and therefore the accuracy of distance measurement also changes due to the influence of distortion of the lens of the imaging device. Therefore, even when the same position of the same measurement target is measured, if the positional relationship between the imaging apparatus and the measurement target changes, the accuracy of ranging changes, and the output measurement value also changes. Therefore, when the same position is measured a plurality of times, the measurement value changes every time of measurement. As a result, the measured value displayed on the display unit 12 changes every time the measurement is performed, so that the visibility decreases and the measured value can not be output in a state easy for the user to understand.
 これに対し、本実施形態に係る計測装置1では、出力判定部11は、第2計測値が、第1計測値よりも精度が高くなる条件で計測されているかどうかを判定できる。精度が高くなる条件であると判定された場合に、出力判定部11は、第2計測値を計測値算出部10から表示部12に出力させることができる。これにより、計測値の精度が向上する場合にのみ計測値が更新されるため、ユーザはその時点で最も精度の高い計測値のみを容易に確認することができる。また、精度が低下する場合には、計測値が更新されないため、前回までに計測された計測点の計測値のうち、最も高い精度で計測された計測値であって、表示部12に表示されている計測値が変化せず計測精度および視認性の低下を防止することができる。 On the other hand, in the measurement device 1 according to the present embodiment, the output determination unit 11 can determine whether the second measurement value is measured under the condition that the accuracy is higher than the first measurement value. When it is determined that the condition is such that the accuracy is high, the output determination unit 11 can output the second measurement value from the measurement value calculation unit 10 to the display unit 12. As a result, since the measurement value is updated only when the accuracy of the measurement value is improved, the user can easily check only the measurement value with the highest accuracy at that time. In addition, since the measurement value is not updated when the accuracy is lowered, the measurement value is measured with the highest accuracy among the measurement values of the measurement points measured up to the previous time and is displayed on the display unit 12 The measured value does not change, and a drop in measurement accuracy and visibility can be prevented.
 〔計測処理〕
 本実施形態に係る計測装置1による計測処理(計測装置の制御方法)について、図4を参照して説明する。図4は、計測装置1の計測処理の流れの一例を示すフローチャートである。計測装置1に各種情報が入力される度に、図4に示したフローチャートの処理が行われる。したがって、例えば動画像の連続するフレームが順次入力される場合には、各フレームに対して以下の処理が行われる。
[Measurement processing]
A measurement process (a control method of the measurement device) by the measurement device 1 according to the present embodiment will be described with reference to FIG. FIG. 4 is a flowchart showing an example of the flow of measurement processing of the measuring device 1. Every time various information is input to the measuring device 1, the process of the flowchart shown in FIG. 4 is performed. Therefore, for example, when successive frames of a moving image are sequentially input, the following processing is performed on each frame.
 ステップS101:ステップS101では、計測装置1における計測値算出部10に画像情報、画像座標情報および距離情報が外部から入力される。 Step S101: In step S101, the image information, the image coordinate information, and the distance information are input from the outside to the measurement value calculation unit 10 in the measuring device 1.
 ステップS102:ステップS102では、計測値算出部10は、撮像画像上の1以上の計測点の位置に基づいて、当該1以上の計測点に対応する計測値を出力する。具体的には、計測値算出部10は、画像座標情報および当該画像座標情報に対応する距離情報に基づいて計測点の計測値を出力する(出力ステップ)。 Step S102: In step S102, the measurement value calculation unit 10 outputs measurement values corresponding to the one or more measurement points based on the positions of the one or more measurement points on the captured image. Specifically, the measurement value calculation unit 10 outputs the measurement value of the measurement point based on the image coordinate information and the distance information corresponding to the image coordinate information (output step).
 ステップS103:ステップS103では、出力判定部11は、新たに計測された計測点が前回計測された計測点と対応する計測点である場合にはステップS104の処理に移行し、対応しない場合には、ステップS105の処理に移行する。なお、計測処理が初回であり、前回までに計測された計測点に関する情報がない場合には、出力判定部11は、ステップS104を省略し、ステップS105の処理に移行する。また、計測値算出部10が計測点21を追従して自動設定する構成や、ユーザに前回計測した計測点に対応する計測点を入力させる構成では、ステップS103を省略してステップS104に移行してもよい。 Step S103: In step S103, if the newly measured measurement point is a measurement point corresponding to the previously measured measurement point, the output determination unit 11 proceeds to the process of step S104, and if not, Then, the process proceeds to step S105. In addition, when measurement processing is the first time and there is no information regarding the measurement point measured by the last time, the output determination part 11 abbreviate | omits step S104, and transfers to the process of step S105. Further, in the configuration in which the measurement value calculation unit 10 automatically sets the measurement point 21 following and the configuration in which the user inputs the measurement point corresponding to the measurement point measured last time, step S103 is omitted and the process proceeds to step S104. May be
 ステップS104:ステップS104では、出力判定部11は、第1計測値をステップS102の出力ステップにおいて出力した後、第2計測値を出力ステップにおいて出力するか否かを、第1位置と第2位置との間の変化に応じて制御する(出力制御ステップ)。 Step S104: In step S104, after the output determination unit 11 outputs the first measurement value in the output step of step S102, the first position and the second position indicate whether the second measurement value is to be output in the output step. Control according to the change between (output control step).
 具体的には、出力判定部11は、第2計測値が、第1計測値よりも高い精度で計測可能かどうかを判定する。第2計測値が、第1計測値よりも高い精度で計測可能な条件で計測されている場合には、出力判定部11は、ステップS105の処理へと移行する。第2計測値が、第1計測値よりも高い精度で計測可能な条件で計測されていない場合には、出力判定部11は、計測値算出部10に第2計測値を出力させずにステップS106の処理へと移行する。 Specifically, the output determination unit 11 determines whether or not the second measurement value can be measured with higher accuracy than the first measurement value. When the second measurement value is measured under the condition that can be measured with higher accuracy than the first measurement value, the output determination unit 11 proceeds to the process of step S105. When the second measurement value is not measured under the condition that can be measured with higher precision than the first measurement value, the output determination unit 11 performs the step without causing the measurement value calculation unit 10 to output the second measurement value. It shifts to the processing of S106.
 ステップS105:ステップS105では、出力判定部11は、第2計測値を計測値算出部10から表示部12に出力させる。 Step S105: In step S105, the output determination unit 11 causes the measurement value calculation unit 10 to output the second measurement value to the display unit 12.
 ステップS106:ステップS106では、計測装置1の外部から入力された画像情報に基づく撮像画像と、計測値算出部10から入力された計測値とが表示部12に表示される。 Step S106: In step S106, the display unit 12 displays a captured image based on image information input from the outside of the measuring device 1 and the measurement value input from the measurement value calculation unit 10.
 上述の計測処理では、計測点の情報、例えば、撮像装置と計測点との距離の大小関係に応じて、第2計測値の出力判定を行って計測値を出力する。そのため、撮像装置と第2の撮像画像上の計測点との距離のほうが遠く、第1計測値の計測精度よりも低い場合には、第2計測値が出力されない。撮像装置と第2の撮像画像上の計測点との距離のほうが近く、第1計測値の計測精度よりも高い場合にのみ計測値が出力される。これにより、ユーザは精度のより高い計測値を容易に確認することができる。また、第2の撮像画像上の計測点の計測精度が、第1計測値の計測精度よりも低い場合には、第2計測値が出力されない。そのため、この場合には、表示される計測値が変化せず、ユーザの視認性が低下を防ぐことができる。 In the above-described measurement processing, the output determination of the second measurement value is performed according to the information of the measurement point, for example, the magnitude relation of the distance between the imaging device and the measurement point, and the measurement value is output. Therefore, the second measurement value is not output when the distance between the imaging device and the measurement point on the second captured image is longer and the measurement accuracy of the first measurement value is lower. The measurement value is output only when the distance between the imaging device and the measurement point on the second captured image is shorter and higher than the measurement accuracy of the first measurement value. This allows the user to easily confirm higher measurement values. In addition, when the measurement accuracy of the measurement point on the second captured image is lower than the measurement accuracy of the first measurement value, the second measurement value is not output. Therefore, in this case, the measured value to be displayed does not change, and the user's visibility can be prevented from being lowered.
 特に、ステレオ方式を用いる場合、撮像装置と計測点との距離が計測精度に与える影響が大きい。ステレオ方式では、ステレオカメラで撮影した撮像画像の視差情報に基づいて撮像装置と計測点との距離を算出する。ここで、視差情報は離散的な情報であり、ステレオカメラと撮像画像との距離が近いほど分解能が高く、ステレオカメラと撮像画像との距離が遠いほど分解能が低下する。このように、ステレオカメラと撮像画像との距離に応じて分解能も変化するため、計測点の計測精度にも影響を及ぼす。例えば、ステレオ方式等の技術では、同一または略同一の位置の計測点を複数回計測する場合には、撮像装置と計測点との距離によっては、計測の度に計測点の計測値が変化してしまうため、高い精度で計測された計測値をユーザに提示することができない虞がある。これに対し、上述の計測処理は、第2の距離情報を含む計測点の情報と、第1の撮像画像上の計測点の情報とを比較して、より精度の高い計測値をユーザに提示する。そのため、上述の計測処理は、特にステレオカメラ等の撮像装置を用いるステレオ方式による計測処理である場合に、好適に利用することができる。 In particular, when using the stereo method, the distance between the imaging device and the measurement point has a great influence on the measurement accuracy. In the stereo method, the distance between the imaging device and the measurement point is calculated based on parallax information of an image captured by a stereo camera. Here, the parallax information is discrete information, and the resolution is higher as the distance between the stereo camera and the captured image is smaller, and the resolution is reduced as the distance between the stereo camera and the captured image is larger. As described above, the resolution also changes according to the distance between the stereo camera and the captured image, which affects the measurement accuracy of the measurement point. For example, in a technique such as a stereo method, when the measurement point at the same or substantially the same position is measured a plurality of times, the measurement value of the measurement point changes every measurement depending on the distance between the imaging device and the measurement point. As a result, it may not be possible to present the measurement values measured with high accuracy to the user. On the other hand, the measurement process described above presents the user with a more accurate measurement value by comparing the information of the measurement point including the second distance information with the information of the measurement point on the first captured image. Do. Therefore, the above-mentioned measurement processing can be suitably used especially when it is measurement processing by the stereo method which uses imaging devices, such as a stereo camera.
 また、上述の例では、ステップS106において撮像画像と計測値とが表示部12に表示されている。ただし、本実施形態では、計測値を出力するステップS105以降であれば、ステップS106以降に撮像画像と計測値とを表示部12に表示してもよい。すなわち、ステップS105と、撮像画像と計測値とを表示部12に表示するステップとの間に、さらなるステップを含んでいてもよい。 Further, in the above-described example, the captured image and the measurement value are displayed on the display unit 12 in step S106. However, in the present embodiment, the captured image and the measured value may be displayed on the display unit 12 after the step S106 if it is the step S105 and subsequent steps of outputting the measured value. That is, a further step may be included between step S105 and the step of displaying the captured image and the measurement value on the display unit 12.
 また、本実施形態では、計測装置1は表示部12を含まず、出力判定部11は、計測値算出部10に計測値を計測装置1の外部に出力させるようにしてもよい。この場合、出力判定部11は、ステップS106の処理を省略し、ステップS105において計測装置1の外部に計測値を出力して計測処理を終了する。 Further, in the present embodiment, the measuring device 1 may not include the display unit 12, and the output determination unit 11 may cause the measurement value calculating unit 10 to output the measurement value to the outside of the measuring device 1. In this case, the output determination unit 11 omits the process of step S106, outputs the measured value to the outside of the measuring device 1 in step S105, and ends the measurement process.
 <実施形態2>
 上述の計測装置1では、計測装置1の出力判定部11は、第2の距離情報が、第1の距離情報よりも閾値以上短い距離を示しているか否かに基づいて、第2計測値を計測値算出部10が出力するか否かを判定している。ただし、実施形態2に係る計測装置2のように、出力判定部11の代わりに、出力判定部110によって、撮像装置と計測点との距離と、撮像装置をキャリブレーションした際の基準距離とに基づいて出力判定を行ってもよい。
Second Embodiment
In the measuring device 1 described above, the output determination unit 11 of the measuring device 1 determines the second measurement value based on whether or not the second distance information indicates a distance shorter than the first distance information by a threshold value or more. It is determined whether or not the measurement value calculation unit 10 outputs. However, as in the measurement device 2 according to the second embodiment, instead of the output determination unit 11, the output determination unit 110 determines the distance between the imaging device and the measurement point and the reference distance when the imaging device is calibrated. The output determination may be performed based on the above.
 以下、実施形態2に係る計測装置2について説明する。なお、説明の便宜上、実施形態1にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を省略する。 Hereinafter, the measuring device 2 according to the second embodiment will be described. In addition, about the member which has the same function as the member demonstrated in Embodiment 1 for convenience of explanation, the same code | symbol is appended and the description is abbreviate | omitted.
 〔計測装置2〕
 実施形態2に係る計測装置2は、出力判定部11の代わりに、出力判定部110を備えている。この点以外は、計測装置2は、計測装置1と同様の構成である。
[Measurement device 2]
The measurement device 2 according to the second embodiment includes an output determination unit 110 instead of the output determination unit 11. Except for this point, the measuring device 2 has the same configuration as the measuring device 1.
 (出力判定部110)
 出力判定部110は、第2の距離情報が、第1の距離情報よりも基準距離に近い距離を示しているか否かに基づいて、第2計測値を計測値算出部10が出力するか否かを判定(制御)する。例えば、出力判定部110は、第2の距離と、基準距離との差が、第1の距離と、基準距離との差よりも閾値以上小さい場合に、第2計測値を計測値算出部10から表示部12に出力させる。なお、閾値は、ユーザによって例えば、10mm等、任意の数値に設定することができる。
(Output determination unit 110)
The output determination unit 110 determines whether the measurement value calculation unit 10 outputs the second measurement value based on whether or not the second distance information indicates a distance closer to the reference distance than the first distance information. Determine (control) whether or not. For example, when the difference between the second distance and the reference distance is smaller than the difference between the first distance and the reference distance by the threshold or more, the output determination unit 110 measures the second measurement value as the measurement value calculation unit 10. Output to the display unit 12. The threshold can be set by the user to an arbitrary value such as 10 mm.
 ここで、基準距離とは、撮像装置をキャリブレーションした場合のキャリブレーションボードの設置位置、すなわち、撮像装置とキャリブレーションボードとの距離を意味する。 Here, the reference distance means the installation position of the calibration board when the imaging device is calibrated, that is, the distance between the imaging device and the calibration board.
 上述の通り、計測値算出部10に入力される画像情報にはカメラパラメータが含まれる。当該カメラパラメータは撮像装置の情報を含み、予め撮像装置に対してキャリブレーションを行うことで撮像装置の情報がカメラパラメータに含まれるようになっている。距離情報がステレオ方式によって取得される場合、複数の撮像装置に対してキャリブレーションが行われ、各撮像装置の焦点距離およびレンズ歪み等の情報を表す内部パラメータと、撮像装置間の位置関係を表す外部パラメータとがカメラパラメータとして取得される。 As described above, the image information input to the measurement value calculation unit 10 includes camera parameters. The camera parameters include information of the imaging device, and calibration of the imaging device is performed in advance so that the information of the imaging device is included in the camera parameters. When the distance information is acquired by the stereo method, calibration is performed on a plurality of imaging devices, and represents a positional relationship between the imaging devices and internal parameters representing information such as focal length and lens distortion of each imaging device. External parameters are obtained as camera parameters.
 ステレオ方式では、内部パラメータに基づいて各撮像画像の歪みを補正し、外部パラメータに基づいて撮像画像を回転および並進することで、複数の撮像装置の撮像画像を平行化する。また、ステレオ方式では、補正および平行化された撮像画像に基づいて、各撮像画像に写る被写体の位置の画素ずれ(視差値)を算出し、視差値およびカメラパラメータに基づいて、撮像装置と計測点との距離を算出する。 In the stereo method, distortion of each captured image is corrected based on internal parameters, and the captured images are rotated and translated based on the external parameters, thereby collimating captured images of a plurality of imaging devices. In the stereo method, pixel shift (disparity value) of the position of the subject shown in each captured image is calculated based on the corrected and parallelized captured image, and measurement is performed with the imaging device based on the parallax value and the camera parameter. Calculate the distance to the point.
 複数の撮像装置のキャリブレーションは、一般的に、模様が描かれたキャリブレーションボードを、複数の撮像装置で同時に撮影することで行われる。各撮像装置の撮像画像に写されたキャリブレーションボード上の模様の位置関係から、撮像装置間の位置関係を推定することで外部パラメータが取得される。撮像装置間の位置関係は、キャリブレーションボードを撮影した際の模様の位置に基づく位置関係であり、複数の撮像画像の平行化は、キャリブレーションボードの位置に基づいて画像変換することによって行われる。平行化の精度は、キャリブレーションボードの撮影位置から離れれば離れるほど低下する。したがって、平行化された撮像画像に基づいて算出される撮像装置と計測点との距離に関する距離情報の精度は、計測点がキャリブレーションボードの撮影位置に近ければ近いほど精度が高くなる。すなわち、撮像装置と計測点との距離と、撮像装置とキャリブレーションボードとの距離である基準距離との差が小さい場合、計測値の計測精度は高くなる。 Calibration of a plurality of imaging devices is generally performed by simultaneously photographing a calibration board on which a pattern is drawn by a plurality of imaging devices. The external parameter is acquired by estimating the positional relationship between the imaging devices from the positional relationship of the patterns on the calibration board captured in the captured image of each imaging device. The positional relationship between the imaging devices is the positional relationship based on the position of the pattern when the calibration board is photographed, and the parallelization of a plurality of photographed images is performed by image conversion based on the position of the calibration board . The accuracy of the parallelization decreases with distance from the imaging position of the calibration board. Therefore, the accuracy of the distance information on the distance between the imaging device and the measurement point calculated based on the parallelized captured image becomes higher as the measurement point is closer to the imaging position of the calibration board. That is, when the difference between the distance between the imaging device and the measurement point and the reference distance which is the distance between the imaging device and the calibration board is small, the measurement accuracy of the measurement value is high.
 上述のように、出力判定部110は、撮像装置と計測点との距離と、基準距離との差が前回までよりも小さい場合に、第2計測値を計測値算出部10から表示部12に出力させる。そのため、出力判定部110を備える計測装置2は、実施形態1に係る計測装置1と同様に、より高い精度で計測された計測値を、ユーザに分かり易い状態で提示することができる。 As described above, when the difference between the distance between the imaging device and the measurement point and the reference distance is smaller than that in the previous time, the output determination unit 110 transmits the second measurement value from the measurement value calculation unit 10 to the display unit 12 Make it output. Therefore, the measurement device 2 including the output determination unit 110 can present the measurement value measured with higher accuracy to the user in an easy-to-understand manner, similarly to the measurement device 1 according to the first embodiment.
 〔計測処理〕
 本実施形態に係る計測装置2による計測処理(計測装置の制御方法)は、ステップS201~S206によって実行される。ステップS202、S203、S205およびS206は、実施形態1に係る計測装置1の計測処理におけるステップS102、S103、ステップS105およびS106と同様であるため、説明を省略する。
[Measurement processing]
The measurement process (the control method of the measurement device) by the measurement device 2 according to the present embodiment is executed in steps S201 to S206. Steps S202, S203, S205, and S206 are the same as steps S102, S103, steps S105, and S106 in the measurement process of the measuring device 1 according to the first embodiment, and thus the description thereof is omitted.
 ステップS201:ステップS201では、計測装置2における計測値算出部10に画像情報、画像座標情報および距離情報が外部から入力される。ここで、本実施形態では、画像情報には、上述のカメラパラメータと共に、基準距離の情報がさらに含まれている。 Step S201: In step S201, the image information, the image coordinate information, and the distance information are input from the outside to the measurement value calculation unit 10 in the measuring device 2. Here, in the present embodiment, the image information further includes information of the reference distance, in addition to the above-described camera parameters.
 ステップS204:ステップS204では、出力判定部110は、撮像装置と計測点との距離と、基準距離との差分値を算出し、この差分値の大小関係によって出力判定を行う(出力判定ステップ)。より具体的には、出力判定部110は、第2の距離と基準距離との差分値が、第1の距離と基準距離との差分値よりも閾値以上小さい場合に、ステップS205の処理に移行する。そして、出力判定部110は、第2計測値を計測値算出部10から表示部12に出力させる。このように、出力判定部110は、第2の距離が、第1の距離よりも基準距離に近くなっている場合、すなわち、第2の撮像画像上の計測点の位置が、キャリブレーションボードの位置に近くなっている場合に、第2計測値を計測値算出部10から表示部12に出力させる。 Step S204: In step S204, the output determination unit 110 calculates a difference between the distance between the imaging device and the measurement point and the reference distance, and performs output determination based on the magnitude relationship of the difference (output determination step). More specifically, when the difference between the second distance and the reference distance is smaller than the difference between the first distance and the reference distance, the output determination unit 110 proceeds to the process of step S205. Do. Then, the output determination unit 110 causes the measurement value calculation unit 10 to output the second measurement value to the display unit 12. Thus, when the second distance is closer to the reference distance than the first distance, the output determination unit 110 determines that the position of the measurement point on the second captured image is If it is close to the position, the second measurement value is output from the measurement value calculation unit 10 to the display unit 12.
 <実施形態3>
 上述の実施形態1および2では、出力判定部11および110は、撮像装置と計測点との距離の大小関係、および、撮像装置と計測点との距離と、基準距離との差分値の大小関係の何れかに基づいて出力判定を行っている。ただし、実施形態3に係る計測装置3のように、出力判定部11および110の代わりに、出力判定部210によって、撮像装置と計測点との距離の大小関係、および、撮像装置と計測点との距離と、基準距離との差分値の大小関係の両方に基づいて出力判定を行ってもよい。
Embodiment 3
In the first and second embodiments described above, the output determination units 11 and 110 determine the magnitude relationship between the distance between the imaging device and the measurement point, and the magnitude relationship between the distance between the imaging device and the measurement point and the reference distance. The output determination is performed based on any of the above. However, as in the measurement apparatus 3 according to the third embodiment, the output determination unit 210 replaces the output determination units 11 and 110 with the magnitude relationship of the distance between the imaging apparatus and the measurement point, and the imaging apparatus and the measurement point The output determination may be performed based on both of the distance of and the magnitude relationship of the difference value with the reference distance.
 以下、実施形態3に係る計測装置3について説明する。なお、説明の便宜上、実施形態1にて説明した部材と同じ機能を有する部材については、同じ符号を付記し、その説明を省略する。 Hereinafter, the measuring device 3 according to the third embodiment will be described. In addition, about the member which has the same function as the member demonstrated in Embodiment 1 for convenience of explanation, the same code | symbol is appended and the description is abbreviate | omitted.
 〔計測装置3〕
 実施形態3に係る計測装置3は、出力判定部11の代わりに、出力判定部210を備えている。この点以外は、計測装置3は、計測装置1と同様の構成である。
[Measurement device 3]
The measuring device 3 according to the third embodiment includes an output determination unit 210 instead of the output determination unit 11. Except for this point, the measuring device 3 has the same configuration as the measuring device 1.
 (出力判定部210)
 出力判定部210は、撮像装置と計測点との距離の大小関係、および、撮像装置と計測点との距離と、基準距離との差分値の大小関係の両方に基づいて出力判定を行う。
(Output determination unit 210)
The output determination unit 210 performs output determination based on both the magnitude relationship of the distance between the imaging device and the measurement point, and the magnitude relationship between the distance between the imaging device and the measurement point and the reference distance.
 例えば、撮像装置と計測点との距離の大小関係に基づく判定を判定1、撮像装置と計測点との距離と、基準距離との差分値の大小関係に基づく判定を判定2とする。出力判定部210は、それぞれの判定をポイント性として、各判定によるポイントの加算結果がプラスになった場合に、第2計測値を計測値算出部10から表示部12に出力させる。 For example, determination 1 is determined based on the magnitude relationship of the distance between the imaging device and the measurement point, and determination 2 based on the magnitude relationship between the distance between the imaging device and the measurement point and the reference distance. The output determination unit 210 outputs the second measurement value from the measurement value calculation unit 10 to the display unit 12 when the result of addition of points by each determination is positive, with each determination as point characteristics.
 一例として、出力判定部210は、第2の距離が、第1の距離に対して5mm短くなる毎に1ポイント加算し、5mm長くなる毎に1ポイント減算する。同様に、出力判定部210は、第2の距離と基準距離との差分値が、第1の距離と基準距離との差分値に対して5mm短くなる毎に1ポイント加算し、5mm長くなる毎に1ポイント減算する。例えば、第2の距離が、第1の距離よりも10mm短くなり、第2の距離と基準距離との差分値が、第1の距離と基準距離との差分値よりも5mm大きくなったとする。この場合、出力判定部210は、判定1において2ポイント加算し、判定2において1ポイント減算する。これにより、トータルでプラス1ポイントとなるため、出力判定部210は、第2計測値を計測値算出部10から表示部12に出力させる。 As an example, the output determination unit 210 adds one point each time the second distance is shorter than the first distance by 5 mm, and subtracts one point each time the second distance is longer than the first distance. Similarly, the output determination unit 210 adds one point each time the difference between the second distance and the reference distance is 5 mm shorter than the difference between the first distance and the reference distance, and increases by 5 mm each time. Subtract one point to For example, it is assumed that the second distance is 10 mm shorter than the first distance, and the difference between the second distance and the reference distance is 5 mm larger than the difference between the first distance and the reference distance. In this case, the output determination unit 210 adds two points in determination 1 and subtracts one point in determination 2. As a result, the output determination unit 210 causes the measurement value calculation unit 10 to output the second measurement value to the display unit 12 because the total value is plus one point.
 上述のように、出力判定部210が2種類の判定基準に基づいて計測値の出力判定を行うことで、より精度の高い計測値を計測値算出部10から表示部12に出力させることができる。これにより、ユーザは、表示部12を介してより精度の高い計測値を確認することができる。 As described above, when the output determination unit 210 determines the output of the measurement value based on the two types of determination criteria, it is possible to output the measurement value with higher accuracy from the measurement value calculation unit 10 to the display unit 12 . Thereby, the user can check the measurement value with higher accuracy through the display unit 12.
 また、上述の判定1および2の各判定において、出力判定部210は、各判定が計測点の計測精度に与える影響の大きさに応じて、ポイントに重み付けをしてもよい。例えば、撮像装置と計測点との距離の大小関係のほうが、撮像装置と計測点との距離と、基準距離との差分値の大小関係よりも計測点の計測精度に影響を与えるとする。この場合、出力判定部210は、上述の判定1における各ポイントに2を乗算して重み付けをしてもよい。すなわち、出力判定部210は、第2の距離が、第1の距離に対して5mm短くなる毎に1×2ポイント加算し、5mm長くなる毎に1×2ポイント減算してもよい。これにより、さらに高い精度で計測された計測値を、ユーザに好適に提示することができる。 In each of the determinations 1 and 2 described above, the output determination unit 210 may weight points according to the magnitude of the influence of each determination on the measurement accuracy of the measurement point. For example, it is assumed that the magnitude relationship of the distance between the imaging device and the measurement point affects the measurement accuracy of the measurement point more than the magnitude relationship between the distance between the imaging device and the measurement point and the reference distance. In this case, the output determination unit 210 may multiply each point in the above determination 1 by 2 and perform weighting. That is, the output determination unit 210 may add 1 × 2 points each time the second distance is 5 mm shorter than the first distance, and subtract 1 × 2 points every 5 mm longer. Thereby, the measurement value measured with higher accuracy can be suitably presented to the user.
 〔計測処理〕
 本実施形態に係る計測装置3による計測処理(計測装置の制御方法)は、ステップS301~S306によって実行される。ステップS301は、実施形態2に係る計測装置2のステップS201と同様であるため、説明を省略する。また、ステップS302、S303、S305およびS306は、実施形態1に係る計測装置1の計測処理におけるステップS102、S103、ステップS105およびS106と同様であるため、説明を省略する。
[Measurement processing]
The measurement process (the control method of the measurement device) by the measurement device 3 according to the present embodiment is executed in steps S301 to S306. Since step S301 is the same as step S201 of the measuring device 2 according to the second embodiment, the description will be omitted. Further, steps S302, S303, S305 and S306 are the same as steps S102, S103, steps S105 and S106 in the measurement process of the measuring device 1 according to the first embodiment, and thus the description thereof is omitted.
 ステップS304:ステップS304では、出力判定部210は、撮像装置と計測点との距離の大小関係、および、撮像装置と計測点との距離と、基準距離との差分値の大小関係の両方に基づいて出力判定を行う(出力判定ステップ)。 Step S304: In step S304, the output determination unit 210 is based on both the magnitude relationship of the distance between the imaging device and the measurement point and the magnitude relationship between the distance between the imaging device and the measurement point and the reference distance. Output determination (output determination step).
 <実施形態4>
 計測装置の出力判定部の機能は、上述の実施形態に係る計測装置1、2、3の出力判定部11、110、210の機能に限定されない。出力判定部の機能は、実施形態4に係る計測装置4の出力判定部310のように、上述の実施形態における出力判定部とは別の機能を備えていてもよい。
Fourth Embodiment
The function of the output determination unit of the measurement apparatus is not limited to the function of the output determination units 11, 110, and 210 of the measurement apparatuses 1, 2, and 3 according to the above-described embodiment. Like the output determination unit 310 of the measuring device 4 according to the fourth embodiment, the function of the output determination unit may have a function different from the output determination unit in the above-described embodiment.
 〔計測装置4〕
 実施形態4に係る計測装置4は、出力判定部11の代わりに、出力判定部310を備えている。この点以外は、計測装置4は、計測装置1と同様の構成である。
[Measurement device 4]
The measuring device 4 according to the fourth embodiment includes an output determination unit 310 instead of the output determination unit 11. Except for this point, the measuring device 4 has the same configuration as the measuring device 1.
 (出力判定部310)
 出力判定部310は、表示部12に表示される撮像画像上の計測点の位置に基づいて計測値の出力判定を行う。例えば、出力判定部310は、第2の撮像画像上における1以上の計測点の位置が、第1の撮像画像上における1以上の計測点の位置よりも中心に近いか否かに基づいて、第2計測値を計測値算出部10が出力するか否かを判定(制御)する。撮像画像上の計測点の位置が撮像画像の中心に近いか否かは、例えば、計測点の座標値と、中心位置の座標値とから距離を計算し、当該距離の大小関係によって判定することができる。なお、中心位置の座標値はカメラパラメータに含まれる。
(Output determination unit 310)
The output determination unit 310 performs output determination of the measurement value based on the position of the measurement point on the captured image displayed on the display unit 12. For example, the output determination unit 310 determines whether or not the position of one or more measurement points on the second captured image is closer to the center than the position of one or more measurement points on the first captured image. It is determined (controlled) whether or not the measurement value calculation unit 10 outputs the second measurement value. To determine whether the position of the measurement point on the captured image is close to the center of the captured image, for example, calculate the distance from the coordinate value of the measurement point and the coordinate value of the center position, and determine by the magnitude relationship of the distance Can. The coordinate values of the center position are included in the camera parameters.
 撮像画像は、当該撮像画像を撮像する撮像装置のレンズ歪みに影響され、歪みが生じる。上述した通り、ステレオ方式では複数の撮像画像から視差値を算出し、視差値から撮像装置と計測点との距離を算出する。撮像画像の歪みは視差値の算出精度に影響され、視差値は撮像装置と計測点との距離に影響されるため、撮像画像の歪みによっては撮像装置と計測点との距離が変化する。一般的に、レンズ歪みはレンズの中央ほど小さく、外側ほど大きくなる。撮像画像の外側ほどレンズ歪みの影響が大きいため、算出される撮像装置と計測点との距離の精度が低下してしまう。 A captured image is affected by lens distortion of an imaging device that captures the captured image, and distortion occurs. As described above, in the stereo method, parallax values are calculated from a plurality of captured images, and the distance between the imaging device and the measurement point is calculated from the parallax values. The distortion of the captured image is influenced by the calculation accuracy of the parallax value, and the parallax value is influenced by the distance between the imaging device and the measurement point, so the distance between the imaging device and the measurement point changes depending on the distortion of the imaged image. In general, lens distortion is smaller at the center of the lens and larger at the outside. As the influence of lens distortion is greater toward the outside of the captured image, the accuracy of the distance between the calculated imaging device and the measurement point is reduced.
 これに対し、本実施形態では、出力判定部310は、レンズ歪みの影響より小さい位置に計測点がある場合に、当該計測点に基づく計測値を出力する。そのため、出力判定部310は、より精度の高い計測値を計測値算出部10から表示部12に出力させることができる。 On the other hand, in the present embodiment, when there is a measurement point at a position smaller than the influence of lens distortion, the output determination unit 310 outputs a measurement value based on the measurement point. Therefore, the output determination unit 310 can output a measurement value with higher accuracy from the measurement value calculation unit 10 to the display unit 12.
 〔計測処理〕
 本実施形態に係る計測装置4による計測処理(計測装置の制御方法)は、ステップS401~S406によって実行される。ステップS401~S403、ステップS405およびS406は、実施形態1に係る計測装置1の計測処理におけるステップS101~S103、ステップS105およびS106と同様であるため、説明を省略する。
[Measurement processing]
The measurement process (the control method of the measurement device) by the measurement device 4 according to the present embodiment is executed by steps S401 to S406. Steps S401 to S403 and steps S405 and S406 are the same as steps S101 to S103 and steps S105 and S106 in the measurement process of the measuring device 1 according to the first embodiment, and thus the description thereof is omitted.
 ステップS404:ステップS404では、出力判定部310は、第2の撮像画像上における1以上の計測点の位置が、第1の撮像画像上における1以上の計測点の位置よりも中心に近い場合に、第2計測値を計測値算出部10から表示部12に出力させる(出力制御ステップ)。 Step S404: In step S404, the output determination unit 310 determines that the positions of one or more measurement points on the second captured image are closer to the center than the positions of one or more measurement points on the first captured image. The second measurement value is output from the measurement value calculation unit 10 to the display unit 12 (output control step).
 なお、上述の例では、出力判定部310は、表示部12に表示される撮像画像上の計測点の位置のみに基づいて計測値の出力判定を行っているが、本実施形態ではこれに限定されない。出力判定部310は、出力判定部11、110および210のうち少なくとも何れかの機能をさらに備えていてもよく、出力判定部11、110および210のうち少なくとも何れかの機能により行われる計測値の出力判定と共に、出力判定部310による出力判定を行ってもよい。 In the above-described example, the output determination unit 310 performs the output determination of the measurement value based only on the position of the measurement point on the captured image displayed on the display unit 12, but the present embodiment is limited to this. I will not. The output determination unit 310 may further have at least one of the functions of the output determination units 11, 110 and 210, and the measurement value of the measurement performed by the function of at least one of the output determination units 11, 110 and 210. The output determination by the output determination unit 310 may be performed along with the output determination.
 <実施形態5>
 計測装置の出力判定部の機能は、上述の実施形態に係る計測装置1、2、3、4の出力判定部11、110、210、310の機能に限定されない。出力判定部の機能は、実施形態5に係る計測装置5の出力判定部410のように、上述の実施形態における出力判定部とは別の機能を備えていてもよい。
Fifth Embodiment
The function of the output determination unit of the measurement apparatus is not limited to the function of the output determination units 11, 110, 210, and 310 of the measurement apparatuses 1, 2, 3, and 4 according to the above-described embodiment. Like the output determination unit 410 of the measuring device 5 according to the fifth embodiment, the function of the output determination unit may have a function different from the output determination unit in the above-described embodiment.
 〔計測装置5〕
 実施形態5に係る計測装置5は、出力判定部11の代わりに、出力判定部410を備えている。この点以外は、計測装置5は、計測装置1と同様の構成である。
[Measurement device 5]
The measuring device 5 according to the fifth embodiment includes an output determining unit 410 instead of the output determining unit 11. Except for this point, the measuring device 5 has the same configuration as the measuring device 1.
 (出力判定部410)
 出力判定部410は、第2の距離情報が示す複数の計測点間の距離の差異が、第1の距離情報が示す複数の計測点間の距離の差異よりも閾値以上小さいか否かに基づいて、第2計測値を計測値算出部10が出力するか否かを判定(制御)する。
(Output determination unit 410)
The output determination unit 410 is based on whether the difference in distance between the plurality of measurement points indicated by the second distance information is smaller than the difference in distance between the plurality of measurement points indicated by the first distance information by a threshold or more. Then, it is determined (controlled) whether or not the measurement value calculation unit 10 outputs the second measurement value.
 以下に、出力判定部410の機能について、図5および6を用いて詳細に説明する。図5および6は、それぞれ、実施形態5に係る計測装置5の表示部12に表示される第1の撮像画像60a、第2の撮像画像60b、ならびに、第1計測値44aおよび第2計測値44bの一例を示す図である。 Hereinafter, the function of the output determination unit 410 will be described in detail with reference to FIGS. 5 and 6. 5 and 6 respectively show a first captured image 60a and a second captured image 60b displayed on the display unit 12 of the measuring device 5 according to the fifth embodiment, and a first measured value 44a and a second measured value. It is a figure which shows an example of 44b.
 図5に示すように、第1の撮像画像60a上の被写体50および51には、それぞれ計測点52aおよび53aが指定されている。また、図6に示すように、第2の撮像画像60b上の被写体50および51には、それぞれ計測点52bおよび53bが指定されている。このように、一つの撮像画像60上に複数の計測点が指定されている場合、出力判定部410は、撮像装置と計測点52aとの距離および撮像装置と計測点53aとの距離、または、撮像装置と計測点52bとの距離および撮像装置と計測点53bとの距離をそれぞれ算出する。なお、図5に示す計測点52aと52b、および、53aと53bとは、それぞれ対応する計測点であり、実空間上の3次元座標では、実質的に同じ位置にあり、位置が変化していない。 As shown in FIG. 5, measurement points 52a and 53a are specified for the subjects 50 and 51 on the first captured image 60a, respectively. Further, as shown in FIG. 6, measurement points 52b and 53b are specified for the subjects 50 and 51 on the second captured image 60b, respectively. As described above, when a plurality of measurement points are designated on one captured image 60, the output determination unit 410 determines the distance between the imaging device and the measurement point 52a, the distance between the imaging device and the measurement point 53a, or The distance between the imaging device and the measurement point 52b and the distance between the imaging device and the measurement point 53b are calculated. The measurement points 52a and 52b and 53a and 53b shown in FIG. 5 are respectively corresponding measurement points, and are substantially at the same position in three-dimensional coordinates in real space, and their positions are changed. Absent.
 図5に示すように、計測点52aと計測点53aとは撮像装置に対して奥行方向にずれており、計測点53aのほうが遠くに写されているため、撮像装置と計測点52aとの距離と、撮像装置と計測点53aとの距離との差分値が大きい状態にある。 As shown in FIG. 5, the measurement point 52a and the measurement point 53a are shifted in the depth direction with respect to the imaging device, and the measurement point 53a is copied farther, so the distance between the imaging device and the measurement point 52a The difference between the distance between the imaging device and the measurement point 53a is large.
 これに対し、図5に示す計測点52aと計測点53aとの位置関係が、図6に示すように、水平方向に並ぶ位置関係となった場合、二つの計測点は奥行方向にずれて配置されていない。すなわち、撮像装置と計測点52bとの距離と、撮像装置と計測点53bとの距離が同じ距離になっている。すなわち、撮像装置と計測点52bとの距離と、撮像装置と計測点53bとの距離との差分値が、図5に示す構成に比べて小さくなっている。この場合、出力判定部410は、第2の撮像画像60b上の計測点52bおよび53bの第2計測値44b(ここでは、図6に示すように計測点間の距離)を計測値算出部10から表示部12に出力させる。これにより、前回まで表示部12に表示されていた第1計測値44aから第2計測値44bに更新される。 On the other hand, when the positional relationship between the measurement point 52a and the measurement point 53a shown in FIG. 5 becomes horizontal as shown in FIG. 6, the two measurement points are displaced in the depth direction and arranged It has not been. That is, the distance between the imaging device and the measurement point 52b and the distance between the imaging device and the measurement point 53b are the same. That is, the difference between the distance between the imaging device and the measurement point 52b and the distance between the imaging device and the measurement point 53b is smaller than that in the configuration shown in FIG. In this case, the output determination unit 410 measures the second measurement value 44b of the measurement points 52b and 53b on the second captured image 60b (here, the distance between the measurement points as shown in FIG. 6) Output to the display unit 12. Thus, the first measurement value 44a displayed on the display unit 12 until the previous time is updated to the second measurement value 44b.
 ここで、複数の計測点の位置関係を変更する方法としては、例えば、撮像装置を持つユーザが、第1の撮像画像60aを撮像した後、撮像位置を移動して第2の撮像画像60bを撮像する方法が挙げられる。この場合、ユーザは表示部12に表示されるプレビュー表示によって、第1の撮像画像60aで指定した計測点52aおよび53aの位置を示す十字の記号、または、座標値54aおよび55aを確認しながら、撮像装置を移動して座標値54bおよび55bとなる計測点52bおよび53bを撮像する。これにより、図5に示す計測点の配置から、図6に示す計測点の配置にすることができる。 Here, as a method of changing the positional relationship of the plurality of measurement points, for example, after the user having the imaging device captures the first captured image 60a, the imaging position is moved to move the second captured image 60b. There is a method of imaging. In this case, the user checks the cross mark indicating the positions of the measurement points 52a and 53a designated by the first captured image 60a or the coordinate values 54a and 55a by the preview display displayed on the display unit 12. The imaging device is moved to image measurement points 52b and 53b which become coordinate values 54b and 55b. Thus, from the arrangement of measurement points shown in FIG. 5, the arrangement of measurement points shown in FIG. 6 can be made.
 撮像装置と計測点との距離の差分値は、撮像装置に対する奥行方向の距離の差分値である。そのため、出力判定部410は、図5のように、奥行方向にずれて複数の計測点52aおよび53aが配置されている場合、奥行方向にずれて配置された複数の計測点52aおよび53aと、撮像装置との距離のそれぞれに基づき、出力判定を行う。これにより、複数の、撮像装置と計測点52aおよび53aとの距離の差分値のうち最も大きい差分値が、撮像装置と計測点52aおよび53aとの距離の差分値となることで、低い精度の第1計測値44aが表示部12に出力される。これに対し、図5から図6のように、撮像装置から二つの計測点52bおよび53bそれぞれに対する距離が近くなった場合、撮像装置と計測点52bおよび53bとの距離の差分値が小さくなり、高い精度の第2計測値44bが表示部12に出力される。 The difference value of the distance between the imaging device and the measurement point is the difference value of the distance in the depth direction with respect to the imaging device. Therefore, as shown in FIG. 5, when the plurality of measurement points 52a and 53a are disposed in the depth direction as illustrated in FIG. 5, the output determination unit 410 includes the plurality of measurement points 52a and 53a disposed in the depth direction. Output determination is performed based on each of the distances to the imaging device. As a result, the largest difference value among the difference values of the distances between the plurality of imaging devices and the measurement points 52a and 53a becomes the difference value of the distances between the imaging device and the measurement points 52a and 53a. The first measurement value 44 a is output to the display unit 12. On the other hand, as shown in FIG. 5 to FIG. 6, when the distance from the imaging device to each of the two measurement points 52b and 53b decreases, the difference between the distance between the imaging device and the measurement points 52b and 53b decreases. The second measurement value 44 b with high accuracy is output to the display unit 12.
 上述のように、出力判定部410は、撮像装置と二つの計測点との距離が近い値になった場合に、第2計測値を計測値算出部10から表示部12に出力させる。これにより、より高い計測精度の計測値をユーザに提示することができる。 As described above, the output determination unit 410 causes the measurement value calculation unit 10 to output the second measurement value to the display unit 12 when the distance between the imaging device and the two measurement points is close. This allows the user to be presented with measurement values of higher measurement accuracy.
 なお、図6では、複数の計測点の位置関係が、図6に示すように、水平方向に並ぶ位置関係となり、撮像装置と二つの計測点52bおよび53bそれぞれとの距離が等しくなった場合に、第2計測値を算出している。ただし、本実施形態ではこれに限定されない。出力判定部410は、第2の距離情報が示す複数の計測点間の距離の差異が、第1の距離情報が示す複数の計測点間の距離の差異よりも閾値以上小さい場合に、第2計測値を計測値算出部10が出力してもよい。 In FIG. 6, the positional relationship between the plurality of measurement points is horizontal as shown in FIG. 6, and the distance between the imaging device and each of the two measurement points 52b and 53b is equal. , The second measurement value is calculated. However, the present embodiment is not limited to this. If the difference in distance between the plurality of measurement points indicated by the second distance information is smaller than the difference in distance between the plurality of measurement points indicated by the first distance information, the output determination unit 410 may The measurement value calculation unit 10 may output the measurement value.
 また、上述の例では、出力判定部410は、撮像装置と二つの計測点との距離の差分値に基づいて出力判定を行っているが、本実施形態ではこれに限定されない。本実施形態では、出力判定部410は、計測点が三つ以上の場合であっても出力判定を行うことができる。一例として、計測点が三つであり、三つの計測点で囲まれる面積を計測値とし、当該計測値を出力するか否かを判定する場合について説明する。この場合、出力判定部410は、第2の距離情報が示す三つの計測点間の距離の差異が、第1の距離情報が示す三つの計測点間の距離の差異よりも閾値以上小さい場合に、第2計測値を計測値算出部10に出力させる。このようにすることで、出力判定部410は、二つの計測点の距離等の計測値と同様に、三つ以上の計測点の計測値についても、高い計測精度のものを計測値算出部10から表示部12に出力させることができる。 Moreover, in the above-mentioned example, although the output determination part 410 performs output determination based on the difference value of the distance of an imaging device and two measurement points, it is not limited to this in this embodiment. In the present embodiment, the output determination unit 410 can perform output determination even when there are three or more measurement points. As an example, there are three measurement points, and an area surrounded by three measurement points is used as a measurement value, and a case where it is determined whether or not to output the measurement value will be described. In this case, the output determination unit 410 determines that the difference in distance between the three measurement points indicated by the second distance information is smaller than the difference in distance between the three measurement points indicated by the first distance information by the threshold or more. , The second measurement value is output to the measurement value calculation unit 10. By doing this, the output determination unit 410 can measure the measurement values of three or more measurement points with high measurement accuracy as well as the measurement values such as the distance between the two measurement points. Can be output to the display unit 12.
 また、上述の例では、撮像装置と計測点52aおよび53aまたは52bおよび53bとのそれぞれの距離のばらつきの度合いを、撮像装置と複数の計測点52aおよび53aまたは52bおよび53bそれぞれとの距離の差分値のうち最大の差分値とみなしている。また、出力判定部410は、第2の撮像画像60b上の計測点52bおよび53bに関する差分値と、第1の撮像画像60a上の計測点52aおよび53aに関する差分値とを比較することで、第2計測値44bを出力するか否かを判定している。ただし、本実施形態ではこれに限定されない。本実施形態では、撮像装置と計測点とのそれぞれの距離のばらつきの度合いを、例えば、差分値の合計または平均値として算出し、出力判定部410は、当該差分値の合計または平均値を比較することで出力判定を行ってもよい。この場合においても、上述の例と同様に出力判定を行うことができる。 Further, in the above-described example, the difference in the distance between the imaging device and each of the measurement points 52a and 53a or 52b and 53b is determined by the difference between the distance between the imaging device and each of the plurality of measurement points 52a and 53a or 52b and 53b. It is regarded as the largest difference value among the values. In addition, the output determination unit 410 compares the difference values of the measurement points 52b and 53b on the second captured image 60b with the difference values of the measurement points 52a and 53a on the first captured image 60a. 2) It is determined whether to output the measured value 44b. However, the present embodiment is not limited to this. In the present embodiment, the degree of variation in distance between the imaging device and the measurement point is calculated, for example, as the sum or average of difference values, and the output determination unit 410 compares the sum or average of the difference values. The output determination may be performed by doing this. Also in this case, the output determination can be performed as in the above-described example.
 〔計測処理〕
 本実施形態に係る計測装置5による計測処理(計測装置の制御方法)は、ステップS501~S506によって実行される。ステップS501~S503、ステップS505およびS506は、実施形態1に係る計測装置1の計測処理におけるステップS101~S103、ステップS105およびS106と同様であるため、説明を省略する。
[Measurement processing]
The measurement process (the control method of the measurement device) by the measurement device 5 according to the present embodiment is executed in steps S501 to S506. Steps S501 to S503 and steps S505 and S506 are the same as steps S101 to S103 and steps S105 and S106 in the measurement process of the measuring device 1 according to the first embodiment, and thus the description thereof is omitted.
 ステップS504:ステップS504では、出力判定部410は、第2の距離情報が示す複数の計測点間の距離の差異が、第1の距離情報が示す複数の計測点間の距離の差異よりも閾値以上小さい場合に、第2計測値を計測値算出部10に出力させる。 Step S504: In step S504, the output determination unit 410 determines that the difference in the distance between the plurality of measurement points indicated by the second distance information is a threshold more than the difference in the distance between the plurality of measurement points indicated by the first distance information. When it is smaller than the above, the second measurement value is output to the measurement value calculation unit 10.
 また、出力判定部410は、出力判定部11、110、210および310のうち少なくとも何れかの機能をさらに備えていてもよく、出力判定部11、110、210および310のうち少なくとも何れかの機能により行われる計測値の出力判定と共に、出力判定部410による出力判定を行ってもよい。 In addition, the output determination unit 410 may further include at least one of the functions of the output determination units 11, 110, 210, and 310, and at least one of the functions of the output determination units 11, 110, 210, and 310. The output determination by the output determination unit 410 may be performed along with the output determination of the measurement value performed by
 〔ソフトウェアによる実現例〕
 計測装置1、2、3、4、5の制御ブロック(特に計測値算出部10および出力判定部11、110、210、310および410)は、集積回路(ICチップ)等に形成された論理回路(ハードウェア)によって実現してもよいし、ソフトウェアによって実現してもよい。
[Example of software implementation]
The control blocks of the measuring devices 1, 2, 3, 4, and 5 (in particular, the measurement value calculation unit 10 and the output determination units 11, 110, 210, 310 and 410) are logic circuits formed in integrated circuits (IC chips) It may be realized by (hardware) or software.
 後者の場合、計測装置1、2、3、4、5は、各機能を実現するソフトウェアである計測プログラムの命令を実行するコンピュータを備えている。このコンピュータは、例えば少なくとも1つのプロセッサ(制御装置)を備えていると共に、上記計測プログラムを記憶したコンピュータ読み取り可能な少なくとも1つの記録媒体を備えている。そして、上記コンピュータにおいて、上記プロセッサが上記計測プログラム上記記録媒体から読み取って実行することにより、本発明の目的が達成される。上記プロセッサとしては、例えばCPU(Central Processing Unit)を用いることができる。上記記録媒体としては、「一時的でない有形の媒体」、例えば、ROM(Read Only Memory)等の他、テープ、ディスク、カード、半導体メモリ、プログラマブルな論理回路等を用いることができる。また、上記計測プログラムを展開するRAM(Random Access Memory)等をさらに備えていてもよい。また、上記計測プログラムは、該計測プログラムを伝送可能な任意の伝送媒体(通信ネットワークや放送波等)を介して上記コンピュータに供給されてもよい。なお、本発明の一態様は、上記計測プログラムが電子的な伝送によって具現化された、搬送波に埋め込まれたデータ信号の形態でも実現され得る。 In the latter case, the measuring devices 1, 2, 3, 4, and 5 each include a computer that executes an instruction of a measuring program that is software for realizing each function. The computer includes, for example, at least one processor (control device), and at least one computer readable storage medium storing the measurement program. In the computer, the processor reads and executes the measurement program from the recording medium to achieve the object of the present invention. For example, a CPU (Central Processing Unit) can be used as the processor. As the recording medium, in addition to a “non-transitory tangible medium”, for example, a ROM (Read Only Memory), a tape, a disk, a card, a semiconductor memory, a programmable logic circuit or the like can be used. Furthermore, a RAM (Random Access Memory) or the like may be further provided to expand the measurement program. The measurement program may be supplied to the computer via any transmission medium (communication network, broadcast wave, etc.) capable of transmitting the measurement program. Note that one aspect of the present invention may also be realized in the form of a data signal embedded in a carrier wave in which the measurement program is embodied by electronic transmission.
 〔まとめ〕
 本発明の態様1に係る計測装置(1、2、3、4、5)は、1以上の計測点(21、52a、52b、53a、53b)が写った撮像画像(40、42)上における当該1以上の計測点の位置に基づいて、計測値(41、43、44a、44b)を出力する出力部(計測値算出部10)と、第1の撮像画像(60a)上における当該1以上の計測点の位置である第1位置に基づいた第1計測値(44a)を前記出力部(10)が出力した後、第2の撮像画像(60b)上における当該1以上の計測点の位置である第2位置に基づいた第2計測値(44b)を前記出力部(10)が出力するか否かを、(i)前記第1位置に対応する第1の距離情報と、前記第2位置に対応する前記第2の距離情報との間の変化、および、(ii)前記第1位置と前記第2位置との間の変化の少なくとも一方に応じて制御する出力制御部(11、110、210、310、410)とを備えている。
[Summary]
The measuring apparatus (1, 2, 3, 4, 5) according to aspect 1 of the present invention is on a captured image (40, 42) on which one or more measurement points (21, 52a, 52b, 53a, 53b) are captured An output unit (measurement value calculation unit 10) that outputs measurement values (41, 43, 44a, 44b) based on the positions of the one or more measurement points, and the one or more on the first captured image (60a) After the output unit (10) outputs the first measurement value (44a) based on the first position, which is the position of the measurement point, the position of the one or more measurement points on the second captured image (60b) Whether or not the output unit (10) outputs a second measurement value (44b) based on a second position, (i) first distance information corresponding to the first position, and the second A change between said second distance information corresponding to a position, and (ii) said first position And an output control unit (11,110,210,310,410) for controlling according to at least one of a change between the second position.
 上記構成によれば、より高い精度で計測された計測値を、ユーザに分かり易い状態で提示することができる。 According to the above configuration, it is possible to present the measurement value measured with higher accuracy in a state easy for the user to understand.
 本発明の態様2に係る計測装置(1、2、3、4、5)において、前記態様1における出力制御部(11、110、210、310、410)は、前記第2の距離情報が、前記第1の距離情報よりも閾値以上短い距離を示しているか否かに基づいて、前記第2計測値(44b)を前記出力部(10)が出力するか否かを制御してもよい。 In the measurement device (1, 2, 3, 4, 5) according to aspect 2 of the present invention, the output control unit (11, 110, 210, 310, 410) according to aspect 1 includes the second distance information Whether or not the output unit (10) outputs the second measurement value (44b) may be controlled based on whether or not a distance shorter than the first distance information by a threshold value or more is indicated.
 上記構成によれば、計測値の精度が向上する場合にのみ計測値が更新されるため、ユーザはその時点で最も精度の高い計測値のみを容易に確認することができる。また、計測精度が低下する場合には、計測値が更新されないため、前回までに計測された計測点の計測値のうち、最も高い精度で計測された計測値であって、出力されている計測値が変化せず計測精度および視認性の低下を防止することができる。 According to the above configuration, since the measurement value is updated only when the accuracy of the measurement value improves, the user can easily check only the measurement value with the highest accuracy at that time. In addition, when the measurement accuracy is lowered, the measurement value is not updated. Therefore, among the measurement values of the measurement points measured up to the previous time, it is the measurement value measured with the highest accuracy, and is output It is possible to prevent a decrease in measurement accuracy and visibility without changing the value.
 本発明の態様3に係る計測装置(1、2、3、4、5)において、前記態様1または2における出力制御部(11、110、210、310、410)は、前記第2の距離情報が、前記第1の距離情報よりも基準距離に近い距離を示しているか否かに基づいて、前記第2計測値(44b)を前記出力部(10)が出力するか否かを制御してもよい。 In the measuring apparatus (1, 2, 3, 4, 5) according to aspect 3 of the present invention, the output control unit (11, 110, 210, 310, 410) according to aspect 1 or 2 includes the second distance information. Control whether or not the output unit (10) outputs the second measurement value (44b) based on whether or not a distance closer to a reference distance than the first distance information is indicated It is also good.
 撮像部と計測点との距離の計測精度は、キャリブレーションボードの撮影位置に近いほど高くなる。そのため、撮像部と計測点との距離と、撮像部とキャリブレーションボードとの距離である基準となる基準距離とが近ければ近いほど計測値の計測精度は高くなる。上記の構成によれば、出力制御部は、撮像部と計測点との距離が、基準距離により近い場合に、第2の撮像画像および第2の距離情報に基づく、新たに計測された計測点の計測値を出力する。これにより、より高い精度で計測された計測値を、ユーザに分かり易い状態で提示することができる。 The measurement accuracy of the distance between the imaging unit and the measurement point is higher as it is closer to the imaging position of the calibration board. Therefore, as the distance between the imaging unit and the measurement point and the reference distance which is the reference between the imaging unit and the calibration board are closer, the measurement accuracy of the measurement value is higher. According to the above configuration, when the distance between the imaging unit and the measurement point is closer to the reference distance, the output control unit newly measures the measurement point based on the second captured image and the second distance information. Output the measured value of. As a result, it is possible to present the measurement values measured with higher accuracy in a state easy for the user to understand.
 本発明の態様4に係る計測装置(1、2、3、4、5)において、前記態様1から3までの何れか1つにおける出力制御部(11、110、210、310、410)は、前記第2位置が、前記第1位置よりも、各撮像画像の中心に近いか否かに基づいて、前記第2計測値(44b)を前記出力部(10)が出力するか否かを制御してもよい。 In the measuring device (1, 2, 3, 4, 5) according to aspect 4 of the present invention, the output control unit (11, 110, 210, 310, 410) in any one of aspects 1 to 3 is Control whether or not the output unit (10) outputs the second measured value (44b) based on whether or not the second position is closer to the center of each captured image than the first position. You may
 上記構成によれば、出力制御部は、よりレンズ歪みの影響が小さい位置に計測点がある場合に、当該計測点に基づく計測値を出力する。そのため、出力制御部は、より精度の高い計測値を出力部から出力することができる。 According to the above configuration, when there is a measurement point at a position where the influence of lens distortion is smaller, the output control unit outputs a measurement value based on the measurement point. Therefore, the output control unit can output a more accurate measurement value from the output unit.
 本発明の態様5に係る計測装置(1、2、3、4、5)において、前記態様1から4までの何れか1つにおける前記1以上の計測点(21、52a、52b、53a、53b)は、複数の計測点であり、前記出力制御部(11、110、210、310、410)は、前記第2の距離情報が示す前記複数の計測点間の距離の差異が、前記第1の距離情報が示す前記複数の計測点間の距離の差異よりも閾値以上小さいか否かに基づいて、前記第2位置に基づいた計測値(44b)を前記出力部が出力するか否かを制御してもよい。 In the measuring apparatus (1, 2, 3, 4, 5) according to aspect 5 of the present invention, the one or more measurement points (21, 52a, 52b, 53a, 53b) in any one of aspects 1 to 4 Is a plurality of measurement points, and the output control unit (11, 110, 210, 310, 410) is configured to determine the difference in the distance between the plurality of measurement points indicated by the second distance information as the first Whether or not the output unit outputs a measurement value (44b) based on the second position based on whether the distance information is smaller than a difference in distance between the plurality of measurement points indicated by the distance information. You may control.
 上記構成によれば、より高い計測精度の計測値をユーザに提示することができる。 According to the above configuration, it is possible to present the measurement value of higher measurement accuracy to the user.
 本発明の態様6に係る計測装置(1、2、3、4、5)において、前記態様1から5までの何れか1つにおける計測装置(1、2、3、4、5)は、前記第1の距離情報を、前記第1の撮像画像を含む複数の互いに視点の異なる撮像画像(40、42、)から算出し、前記第2の距離情報を、前記第2の撮像画像を含む複数の互いに視点の異なる撮像画像から算出してもよい。 In the measuring apparatus (1, 2, 3, 4, 5) according to aspect 6 of the present invention, the measuring apparatus (1, 2, 3, 4, 5) according to any one of aspects 1 to 5 is A first distance information is calculated from a plurality of captured images (40, 42) having different viewpoints including the first captured image, and a plurality of the second distance information includes the second captured image. It may be calculated from captured images of different viewpoints.
 本態様に係る計測装置は、ステレオ方式に基づく計測に好適に利用することができる。 The measuring device according to this aspect can be suitably used for measurement based on a stereo method.
 本発明の態様7に係る計測装置(1、2、3、4、5)において、前記態様1から6までの何れか1つにおける計測値(41、43、44a、44b)は、3次元位置、長さ、面積、体積または角度を示してもよい。 In the measuring apparatus (1, 2, 3, 4, 5) according to aspect 7 of the present invention, the measurement values (41, 43, 44a, 44b) in any one of aspects 1 to 6 have three-dimensional positions. , Length, area, volume or angle may be indicated.
 本態様に係る計測装置は、3次元位置、長さ、面積、体積または角度を示す計測値を好適に出力することができる。 The measuring device according to this aspect can preferably output a measurement value indicating a three-dimensional position, a length, an area, a volume or an angle.
 本発明の態様8に係る計測装置(1、2、3、4、5)は、前記態様1から7までの何れか1つにおける計測装置(1、2、3、4、5)において、前記撮像画像(40、42)を撮像する撮像部(13)と、前記出力部(10)が出力した前記計測値(41、43、44a、44b)を表示する表示部(12)と、を備えていてもよい。 The measuring apparatus (1, 2, 3, 4, 5) according to aspect 8 of the present invention is the measuring apparatus (1, 2, 3, 4, 5) according to any one of the above aspects 1 to 7, wherein The imaging unit (13) for imaging a captured image (40, 42), and the display unit (12) for displaying the measurement values (41, 43, 44a, 44b) output by the output unit (10) It may be
 上記構成によれば、撮像部によって1以上の計測点が写った撮像画像を撮像し、当該撮像画像における1以上の計測点の距離情報に基づいて出力した計測値を表示部に表示することができる。これにより、より高い精度で計測された計測値を、ユーザに分かり易い状態で提示することができる。 According to the above configuration, the imaging unit captures a captured image including one or more measurement points, and displays the measured value output based on the distance information of the one or more measurement points in the captured image on the display unit. it can. As a result, it is possible to present the measurement values measured with higher accuracy in a state easy for the user to understand.
 本発明の態様9に係る計測装置の制御方法は、1以上の計測点(21、52a、52b、53a、53b)が写った撮像画像(40、42)上における当該1以上の計測点の位置に基づいて、計測値(41、43、44a、44b)を出力する出力ステップと、第1の撮像画像(60a)上における当該1以上の計測点の位置である第1位置に基づいた第1計測値(44a)を前記出力ステップにおいて出力した後、第2の撮像画像(60b)上における当該1以上の計測点の位置である第2位置に基づいた第2計測値(44b)を前記出力ステップにおいて出力するか否かを、(i)前記第1位置に対応する前記第1の距離情報と、前記第2位置に対応する前記第2の距離情報との間の変化、および、(ii)前記第1位置と前記第2位置との間の変化の少なくとも一方に応じて制御する出力制御ステップとを包含する。 The control method of the measurement apparatus according to aspect 9 of the present invention is the position of the one or more measurement points on the captured image (40, 42) on which the one or more measurement points (21, 52a, 52b, 53a, 53b) appear Based on the output step of outputting the measured values (41, 43, 44a, 44b), and the first position based on the first position, which is the position of the one or more measurement points on the first captured image (60a) After the measurement value (44a) is output in the output step, the second measurement value (44b) based on the second position, which is the position of the one or more measurement points on the second captured image (60b), is output (I) change between the first distance information corresponding to the first position and the second distance information corresponding to the second position; ) The first position and the second position It includes an output control step of controlling according to at least one of a change between.
 上記構成によれば、上記態様1に係る計測装置と同様の効果を奏することができる。 According to the above configuration, the same effects as those of the measurement device according to aspect 1 can be obtained.
 本発明の各態様に係る計測装置(1、2、3、4、5)は、コンピュータによって実現してもよく、この場合には、コンピュータを上記計測装置(1、2、3、4、5)が備える各部(ソフトウェア要素)として動作させることにより上記計測装置(1、2、3、4、5)をコンピュータにて実現させる計測装置(1、2、3、4、5)のプログラム、およびそれを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。 The measuring device (1, 2, 3, 4, 5) according to each aspect of the present invention may be realized by a computer, in which case the computer And the program of the measuring device (1, 2, 3, 4, 5) that causes the computer to realize the measuring device (1, 2, 3, 4, 5) by operating as each component (software element) included in A computer readable recording medium having recorded thereon also falls within the scope of the present invention.
 本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。さらに、各実施形態にそれぞれ開示された技術的手段を組み合わせることにより、新しい技術的特徴を形成することができる。 The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the claims, and embodiments obtained by appropriately combining the technical means disclosed in the different embodiments. Is also included in the technical scope of the present invention. Furthermore, new technical features can be formed by combining the technical means disclosed in each embodiment.

Claims (11)

  1.  1以上の計測点が写った撮像画像上における当該1以上の計測点の位置に基づいて、計測値を出力する出力部と、
     第1の撮像画像上における当該1以上の計測点の位置である第1位置に基づいた第1計測値を前記出力部が出力した後、第2の撮像画像上における当該1以上の計測点の位置である第2位置に基づいた第2計測値を前記出力部が出力するか否かを、(i)前記第1位置に対応する第1の距離情報と、前記第2位置に対応する第2の距離情報との間の変化、および、(ii)前記第1位置と前記第2位置との間の変化の少なくとも一方に応じて制御する出力制御部とを備えていることを特徴とする計測装置。
    An output unit that outputs a measurement value based on the position of the one or more measurement points on the captured image on which the one or more measurement points are captured;
    After the output unit outputs the first measurement value based on the first position, which is the position of the one or more measurement points on the first captured image, the output unit outputs the first measurement value of the one or more measurement points on the second captured image Whether or not the output unit outputs a second measurement value based on a second position which is a position, (i) first distance information corresponding to the first position, and a second corresponding to the second position An output control unit configured to control in accordance with at least one of a change between the two distance information and (ii) a change between the first position and the second position. Measuring device.
  2.  前記出力制御部は、前記第2の距離情報が、前記第1の距離情報よりも閾値以上短い距離を示しているか否かに基づいて、前記第2計測値を前記出力部が出力するか否かを制御することを特徴とする請求項1に記載の計測装置。 The output control unit determines whether the output unit outputs the second measurement value based on whether the second distance information indicates a distance shorter than the first distance information by a threshold or more. The measuring device according to claim 1, which controls
  3.  前記出力制御部は、前記第2の距離情報が、前記第1の距離情報よりも基準距離に近い距離を示しているか否かに基づいて、前記第2計測値を前記出力部が出力するか否かを制御することを特徴とする請求項1または2に記載の計測装置。 The output control unit may output the second measurement value based on whether the second distance information indicates a distance closer to a reference distance than the first distance information. The measuring device according to claim 1 or 2, which controls whether or not it is.
  4.  前記出力制御部は、前記第2位置が、前記第1位置よりも、各撮像画像の中心に近いか否かに基づいて、前記第2計測値を前記出力部が出力するか否かを制御することを特徴とする請求項1から3までの何れか1項に記載の計測装置。 The output control unit controls whether the output unit outputs the second measurement value based on whether the second position is closer to the center of each captured image than the first position. The measuring device according to any one of claims 1 to 3, characterized in that:
  5.  前記1以上の計測点は、複数の計測点であり、
     前記出力制御部は、前記第2の距離情報が示す前記複数の計測点間の距離の差異が、前記第1の距離情報が示す前記複数の計測点間の距離の差異よりも閾値以上小さいか否かに基づいて、前記第2計測値を前記出力部が出力するか否かを制御することを特徴とする請求項1から4までの何れか1項に記載の計測装置。
    The one or more measurement points are a plurality of measurement points,
    The output control unit may determine whether a difference in distance between the plurality of measurement points indicated by the second distance information is smaller than or equal to a difference in distance between the plurality of measurement points indicated by the first distance information by at least a threshold The measurement apparatus according to any one of claims 1 to 4, wherein whether or not the output unit outputs the second measurement value is controlled based on whether or not the output unit is configured to output the second measurement value.
  6.  前記計測装置は、前記第1の距離情報を、前記第1の撮像画像を含む複数の互いに視点の異なる撮像画像から算出し、前記第2の距離情報を、前記第2の撮像画像を含む複数の互いに視点の異なる撮像画像から算出することを特徴とする請求項1から5までの何れか1項に記載の計測装置。 The measurement device calculates the first distance information from a plurality of captured images having different viewpoints including the first captured image, and a plurality of the second distance information includes the second captured image. The measurement apparatus according to any one of claims 1 to 5, wherein the measurement apparatus is calculated from captured images of different viewpoints.
  7.  前記計測値は、3次元位置、長さ、面積、体積または角度を示すことを特徴とする請求項1から6までの何れか1項に記載の計測装置。 The measurement device according to any one of claims 1 to 6, wherein the measurement value indicates a three-dimensional position, a length, an area, a volume, or an angle.
  8.  前記撮像画像を撮像する撮像部と、
     前記出力部が出力した前記計測値を表示する表示部と、を備えていることを特徴とする請求項1から7までの何れか1項に記載の計測装置。
    An imaging unit configured to capture the captured image;
    The display apparatus which displays the said measured value which the said output part output is provided, The measuring device in any one of Claim 1 to 7 characterized by the above-mentioned.
  9.  1以上の計測点が写った撮像画像上における当該1以上の計測点の位置に基づいて、計測値を出力する出力ステップと、
     第1の撮像画像上における当該1以上の計測点の位置である第1位置に基づいた第1計測値を前記出力ステップにおいて出力した後、第2の撮像画像上における当該1以上の計測点の位置である第2位置に基づいた第2計測値を前記出力ステップにおいて出力するか否かを、(i)前記第1位置に対応する第1の距離情報と、前記第2位置に対応する第2の距離情報との間の変化、および、(ii)前記第1位置と前記第2位置との間の変化の少なくとも一方に応じて制御する出力制御ステップとを包含することを特徴とする計測装置の制御方法。
    An output step of outputting a measurement value based on the position of the one or more measurement points on the captured image on which the one or more measurement points are captured;
    After outputting the first measurement value based on the first position, which is the position of the one or more measurement points on the first captured image, in the output step, the first measurement value of the one or more measurement points on the second captured image Whether or not to output a second measurement value based on a second position which is a position in the output step, (i) first distance information corresponding to the first position, and a second corresponding to the second position And (ii) an output control step of controlling in accordance with at least one of the change between the distance information and the change between the first position and the second position. Device control method.
  10.  請求項1から8までの何れか1項に記載の計測装置としてコンピュータを機能させるための計測プログラムであって、前記出力部および前記出力制御部として前記コンピュータを機能させるための計測プログラム。 A measurement program for causing a computer to function as the measurement device according to any one of claims 1 to 8, wherein the measurement program for causing the computer to function as the output unit and the output control unit.
  11.  請求項10に記載の計測プログラムを記録したコンピュータ読み取り可能な記録媒体。 The computer-readable recording medium which recorded the measurement program of Claim 10.
PCT/JP2018/037930 2017-11-07 2018-10-11 Measuring device, method for controlling measuring device, measuring program, and recording medium WO2019093062A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017214593A JP2021014989A (en) 2017-11-07 2017-11-07 Measurement device, measurement device control method, measurement program and recording medium
JP2017-214593 2017-11-07

Publications (1)

Publication Number Publication Date
WO2019093062A1 true WO2019093062A1 (en) 2019-05-16

Family

ID=66438818

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/037930 WO2019093062A1 (en) 2017-11-07 2018-10-11 Measuring device, method for controlling measuring device, measuring program, and recording medium

Country Status (2)

Country Link
JP (1) JP2021014989A (en)
WO (1) WO2019093062A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115114A (en) * 1996-04-12 2000-09-05 Holometrics, Inc. Laser scanning system and applications
JP2014207645A (en) * 2013-04-16 2014-10-30 オリンパス株式会社 Image processing unit, image processing method and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115114A (en) * 1996-04-12 2000-09-05 Holometrics, Inc. Laser scanning system and applications
JP2014207645A (en) * 2013-04-16 2014-10-30 オリンパス株式会社 Image processing unit, image processing method and program

Also Published As

Publication number Publication date
JP2021014989A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
JP6502511B2 (en) Calculation device, control method of calculation device, and calculation program
US10277889B2 (en) Method and system for depth estimation based upon object magnification
US10578426B2 (en) Object measurement apparatus and object measurement method
JP5633058B1 (en) 3D measuring apparatus and 3D measuring method
WO2015068470A1 (en) 3d-shape measurement device, 3d-shape measurement method, and 3d-shape measurement program
US20180342074A1 (en) Method of operating measurement device, measurement device, measurement system, three-dimensional shape restoration device, and recording medium
US10432916B2 (en) Measurement apparatus and operation method of measurement apparatus
JP2016217944A (en) Measurement device and measurement method
JP2018009927A (en) Image processing device, image processing method and program
US11385053B2 (en) Distance measuring camera
JP2013178684A (en) Depth estimation apparatus, reconfigured image generation device, depth estimation method, reconfigured image generation method and program
JP2013207745A (en) Image pickup device, image processing method, and program
JP2006017632A (en) Three-dimensional image processor, optical axis adjustment method, and optical axis adjustment support method
EP3825649A1 (en) Ranging camera
WO2019093062A1 (en) Measuring device, method for controlling measuring device, measuring program, and recording medium
CN109945840B (en) Three-dimensional image shooting method and system
JP2017040542A (en) Information processing device, information processing method, and program
WO2018061430A1 (en) Measurement apparatus, measurement method, measurement program, and recording medium
CN109565544B (en) Position designating device and position designating method
JP6730029B2 (en) Image processing device, image processing method, image processing program, and imaging device
CN112424566B (en) Distance measuring camera
JP7113997B1 (en) Information processing device, information processing method, and information processing program
JP6091092B2 (en) Image processing apparatus and image processing method
US20230188692A1 (en) Information processing apparatus using parallax in images captured from a plurality of directions, method and storage medium
JP7397734B2 (en) Ranging system, ranging method and ranging program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18875165

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18875165

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP