THREE-DIMENSIONAL-SHAPE MEASUREMENT DEVICE, THREE-DIMENSIONAL-SHAPE MEASUREMENT METHOD, AND PROGRAM

Information

  • Patent Application
  • 20190392599
  • Publication Number
    20190392599
  • Date Filed
    November 28, 2017
    7 years ago
  • Date Published
    December 26, 2019
    4 years ago
Abstract
A control device acquires a plurality of observation signals observed using a plurality of projection patterns having different spatial frequencies, as observation signals for a measurement point on a measurement object. The control device repeatedly executes processing for estimating two component signals included in each observation signal, so as to separate the observation signal into two component signals, and calculate a three-dimensional position of the measurement point based on the phases of the separated component signals.
Description
TECHNICAL FIELD

The present invention relates to a technique to measure a three-dimensional shape of a measurement object by projecting a cyclic pattern to the measurement object and using an observed signal generated thereby.


BACKGROUND ART

A phase shift method is known as a technique to measure a three-dimensional shape of an object using an image. The phase shift method is a method of projecting a cyclic pattern to a measurement object using a projector, and analyzing the distortion (phase shift) of the projection pattern that is generated depending on the irregularities on the object surface, so as to restore the three-dimensional shape of the object surface. As an improved method of the phase shift method, a method called micro phase shifting (MPS) is also known (see NPL 1).


In these methods, reflected light from another object that exists around the measurement object may drop the measurement accuracy in some cases. This phenomenon will be described with reference to FIG. 6. FIG. 6 depicts a measurement system using an imaging device 200 and a projector 201. Light 201L having a predetermined pattern is projected from the projector 201 to a measurement object 202, and the projection pattern formed on the surface of the measurement object 202 is captured by the imaging device 200. At this time, the distortion of the projection pattern generated by the surface irregularities of the measurement object 202 appears as a brightness change of the image. Therefore based on this brightness change of the image, the positional relationship among the projector 201, a point on the surface of the measurement object 202, and the imaging device 200, is specified, whereby the height (three-dimensional position) of the surface of the measurement object 202 can be calculated using the triangulation.


However, as shown in FIG. 6, if an object 203 exists near the measurement object 202, the light projected from the projector 201 is reflected on the surface of the object 203, and this reflected light 203L may irradiate to the surface of the measurement object 202. If this occurs, observation signals observed by the imaging device 200 contain not only a reflected light component 201R of the light 201L of the projector 201 (direct component signal), but also a reflected light component 203R of the indirect light 203L from the object 203 (indirect component signal). This indirect component signal 203R becomes noise, and is superimposed on the projection pattern on the surface of the measurement object 202, hence an analysis of the projection pattern (that is, calculation of the phase value of the observation signal) is affected thereby, and a measurement error is generated. In this description, this phenomenon is called “inter-reflection” or “multiple reflection”, and an object which causes inter-reflection or multiple reflection (object 203 in the case of FIG. 6) is called a “causative object”.


As a method of reducing the influence of the inter-reflection, PTL 1 proposes a method of specifying a causative object which causes the inter-reflection and imaging of a projection pattern projected on the causative object in a dimmed or extinguished light state. However if the light is dimmed or extinguished when the projection pattern is imaged, as in this method, a portion where the three-dimensional shape cannot be measured (that is, a blind spot) may be generated. Further, this method cannot effectively suppress inter-reflection unless the causative object (portion of the projection pattern for which light is dimmed or extinguished) is accurately specified in advance, hence implementing this method in an actual apparatus is difficult.


CITATION LIST
Patent Literature



  • PTL 1: Japanese Patent Application Publication No. 2008-309551



Non Patent Literature



  • NPL 1: Gupta, Mohit, and Shree K. Nayar. “Micro phase shifting.” Computer Vision and Pattern Recognition (CVPR), 2012 IEEE Conference on. IEEE, 2012.



SUMMARY OF INVENTION
Technical Problem

With the foregoing in view, it is an object of the present invention to provide a technique to reduce the influence of inter-reflection and improve measurement accuracy in a method of measuring a three-dimensional shape based on a phase of a pattern projected to the measurement object.


Solution to Problem

To achieve the above object, the present invention uses a configuration to repeatedly execute processing for estimating two component signals included in an observation signal, so that the observation signal is accurately separated into two component signals.


In concrete terms, a three-dimensional shape measurement device according to the present invention includes: a projection device; an imaging device; and a control device which measures a three-dimensional shape of a measurement object, based on an observation signal observed by the imaging device, in a state of projecting a projection pattern, which has cyclicity in a time direction and a space direction from the projection device to the measurement object. Here it is assumed that the observation signal is a composite signal of a first component signal and a second component signal phases of which are different from each other. The control device acquires a plurality of observation signals observed using a plurality of projection patterns having mutually different spatial frequencies as the observation signals with respect to a measurement point on the measurement object, and sets an initial value of an estimation value of the first component signal for each observation signal. The control device estimates the first component signal and the second component signal included in each observation signal by repeatedly executing operations, the operations including: (1) a first step of determining a corrected estimation value of the first component signal of each observation signal by applying first correction processing, which reduces errors of amplitude and a phase, to the estimation value of the first component signal of each observation signal, (2) a second step of determining an estimation value of the second component signal of each observation signal by subtracting the corrected estimation value of the first component signal from each observation signal, (3) a third step of determining a corrected estimation value of the second component signal of each observation signal by applying second correction processing, which reduces errors of amplitude and a phase, to the estimation value of the second component signal of each observation signal, and (4) a fourth step of determining the estimation value of the first component signal of each observation signal by subtracting the corrected estimation value of the second component signal from each observation signal. Then the control device calculates a three-dimensional position of the measurement point based on a phase of the estimated first component signal or second component signal.


According to this configuration, by repeatedly executing the operations including the first to fourth steps, the estimation value of each component signal is sequentially updated so as to reduce errors (differences from the true values) of the amplitude and the phase of each component signal. Therefore the observation signal can be accurately separated into two component signals. Then by using the phases of the separated component signals for calculating the three-dimensional position of the measurement point, the three-dimensional shape can be accurately measured with reducing the influence of inter-reflection.


The method of the present invention can be used even when the ratio of the first component signal and the second component signal included in the observation signal is completely unknown, that is, even when no special prior knowledge and preconditions are available. For example, in actual situations, measurement conditions vary, such as the degree of influence of inter-reflection, the shape of the causative object (e.g. shape of the reflection surface, orientation), the reflection characteristics (e.g. reflectance) and the positional relationship between the causative object and the measurement object, but the method of the present invention could be applied universally under any conditions. This means that the present invention can be easily implemented in actual apparatuses.


In the case of using the present invention to reduce the influence of inter-reflection, it is preferable that one of the first component signal and the second component signal is a direct component signal, which corresponds to light which is projected from the projection device, is reflected at the measurement point and enters the imaging device, and the other signal is an indirect component signal, which corresponds to light which is projected from the projection device, is reflected by another reflection surface, is reflected at the measurement point and enters the imaging device.


It is preferable that the first correction processing includes “acquiring a plurality of amplitude values and a plurality of phase values for each spatial frequency of the plurality of projection patterns by calculating the amplitude and the phase from the estimation value of the first component signal of each observation signal, determining a corrected amplitude value such that the corrected amplitude value is greater than the minimum value and smaller than the maximum value of the plurality of amplitude values, normalizing the plurality of phase values and determining a corrected phase value such that the corrected phase value is greater than the minimum value and smaller than the maximum value of the plurality of normalized phase values, and reproducing a brightness signal for each spatial frequency of the plurality of projection patterns based on the corrected amplitude value and the corrected phase value”. In this case, the reproduced brightness signal for each spatial frequency is the corrected estimation value of the first component signal of each observation signal.


It is preferable that the second correction processing includes “acquiring a plurality of amplitude values and a plurality of phase values for each spatial frequency of the plurality of patterns by calculating the amplitude and the phase from the estimation value of the second component signal of each observation signal, determining a corrected amplitude value such that the corrected amplitude value is greater than the minimum value and smaller than the maximum value of the plurality of amplitude values, normalizing the plurality of phase values and determining a corrected phase value such that the corrected phase value is greater than the minimum value and smaller than the maximum value of the plurality of normalized phase values, and reproducing a brightness signal for each spatial frequency of the plurality of projection patterns based on the corrected amplitude value and the corrected phase value”. In this case, the reproduced brightness signal for each spatial frequency is the corrected estimation value of the second component signal of each observation signal.


The amplitude value calculated from the estimation value of each component signal includes an error, and the magnitude of the error (absolute value of the difference from the true value) and the positive/negative of the value (whether the value is greater or smaller than the true value) differ depending on the spatial frequency of the projection pattern. In other words, “a plurality of amplitude values”, which are estimated for each spatial frequency of the plurality of projection patterns, are more likely to be distributed on the positive side and the negative side of the true value. In other words, the true value of the amplitude value is more likely to be between the minimum value and the maximum value of the plurality of amplitude values. Therefore the corrected amplitude value determined like this is expected to be closer to the true value compared with the amplitude value having the largest error among the plurality of amplitude values.


In the same manner, the phase value calculated from the estimation value of each component signal includes an error, and the magnitude of the error (absolute value of the difference from the true value) and the positive/negative of the value (whether value is greater or smaller than the true value) differ depending on the spatial frequency of the projection pattern. In other words, “a plurality of phase values”, which are estimated for each spatial frequency of the plurality of projection patterns, are more likely to be distributed on the positive side and the negative side of the true value. In other words, the true value of each phase value is more likely to exist between the minimum value and the maximum value of the plurality of phase values. Therefore the corrected phase value determined like this is expected to be closer to the true value compared with the phase value having the largest error among the plurality of phase values.


As a consequence, errors of the amplitude value and the phase value of each component signal can be reduced by the first correction processing and the second correction processing described above.


It is preferable that the corrected amplitude value is a mean value or a median value of the plurality of amplitude values. It is also preferable that the corrected phase value is a mean value or a median value of the plurality of normalized phase values. Thereby errors of the amplitude value and the phase value can be reduced using simple arithmetic processing.


It is preferable that the processing for normalizing the plurality of phase values is processing for converting the plurality of phase values into phase values with respect to a common spacial frequency. The phase value that is calculated from each component signal is a phase value with respect to a spatial frequency of a projection pattern which was used for observing the component signal. Therefore by performing normalization to convert the plurality of phase values into phase values with respect to a common spatial frequency, as mentioned above, the plurality of phase values can be compared with each other.


If the damping ratios of the plurality of amplitude values are different depending on the spatial frequency, normalization to cancel the difference of each damping ratio of the plurality of amplitude values may be performed before determining the corrected amplitude value. If the damping ratios are the same or if the difference of the damping ratios can be ignored, the normalization of the amplitude values may be omitted.


It is preferable that the control device calculates the three-dimensional position of the measurement point by the phase shift method or micro phase shifting (MPS) based on the phase of the estimated first component signal or second component signal.


The present invention may be regarded as a three-dimensional shape measurement device or image processing device that includes at least a part of the above mentioned configurations or functions. The present invention may also be regarded as an inspection apparatus, a three-dimensional scanner or an object recognition device that includes this three-dimensional shape measurement device. Further, the present invention may be regarded as a three-dimensional shape measurement method, an image processing method, an inspection method or an object recognition method that includes at least a part of the above mentioned processing, or a program that causes a computer to execute these methods, or a non-transitory computer readable recording medium that records this program. Each of the above mentioned configurations and processing may be combined with each other to constitute the present invention, as long as no technical inconsistency is generated.


Advantageous Effects of Invention

According to the present invention, the influence of inter-reflection can be reduced and the measurement accuracy can be improved in a method of measuring a three-dimensional shape based on a phase of a pattern projected to the measurement object.





BRIEF DESCRIPTION OF DRAWINGS


FIG. 1 is a schematic diagram depicting a hardware configuration of a three-dimensional shape measurement device.



FIG. 2 is a block diagram depicting functions related to the three-dimensional shape measurement.



FIG. 3A and FIG. 3B are schematic diagrams depicting models of inter-reflection and an observation signal.



FIG. 4 is a flow chart depicting signal separation processing.



FIG. 5 is a flow chart depicting the three-dimensional shape measurement processing.



FIG. 6 is a diagram depicting the inter-reflection.





DESCRIPTION OF EMBODIMENTS

The present invention relates to a three-dimensional shape measurement technique to measure a three-dimensional shape of a measurement object based on the change of the phase of a pattern projected to the measurement object, and more particularly to a method of reducing the influence of inter-reflection caused by a reflection surface that exists around the measurement object, and improving the measurement accuracy. The present invention can be suitably applied to a three-dimensional shape measurement using a phase shift method or micro phase shifting (MPS) which is an improved phase shift method, and to a three-dimensional shape measurement using a time of flight (TOF) type phase shift method. The three-dimensional shape measurement according to the present invention can be applied to various apparatuses, such as a three-dimensional scanner which measures the surface shape of an object, an inspection apparatus which inspects an object based on a measured three-dimensional shape, and an apparatus which performs object recognition or individual identification based on a measured three-dimensional shape. For example, in the case of a visual inspection apparatus for a surface mount substrate, inter-reflection caused by the metal components on the substrate may drop inspection accuracy, therefore the three-dimensional shape measurement according to the present invention can be especially useful if applied.


An example of a preferred embodiment of the present invention will be described with reference to the drawings. However the configurations and operations of the apparatuses described in the following embodiment are examples, and are not intended to limit the scope of the invention only to these configurations and operations.


(Configuration of Three-Dimensional Shape Measurement Device)


A general configuration of a three-dimensional shape measurement device according to this embodiment will be described with reference to FIG. 1. FIG. 1 is a schematic diagram depicting a hardware configuration of the three-dimensional shape measurement device. The three-dimensional shape measurement device 1 is an apparatus to measure a three-dimensional shape of a measurement object O, and is constituted of a projection device (projector) 10, an imaging device (camera) 11, and a control device (computer) 12.


The projection device 10 is a projection unit that projects a pattern which has a cyclicity in the time direction and the space direction to the measurement object O. A number of projection devices 10 may be one, but a plurality of projection devices 10 may be disposed so that the pattern can be projected to the measurement object O in a plurality of directions. For the projection device 10, a digital light processing (DLP) projector using a digital mirror device can be preferably used. This is because a DLP projector can easily change the projection patterns.


The imaging device 11 is a unit that captures an image of a measurement object O to which a pattern is projected, and outputs a digital image. The imaging device 11 is constituted of an optical system and an image sensor, for example. When the three-dimensional shape measurement is performed, the imaging device 11 captures a plurality of images while changing the phase of the pattern projected from the projection device 10. In this description, a brightness of the measurement object O that is observed by the imaging device 11 is called an “observation signal”, and an image captured by the imaging device 11 is called an “observation image”. In other words, a value of each pixel of an observation image indicates an observation signal (brightness value) at a corresponding measurement point on the measurement object. In this embodiment, a plurality of observation images are acquired while changing the spatial frequency of the projection pattern.


The control device 12 is a unit that has such functions as controlling the projection device 10 and the imaging device 11, processing an image captured by the imaging device 11, and measuring a three-dimensional shape. The control device 12 may be a computer which includes a CPU (processor), a memory, a non-volatile storage device (e.g. hard disk, flash memory), an input device (e.g. keyboard, mouse, touch panel), and a display device (e.g. liquid crystal display). Each function of the control device 12, which will be described later, can be implemented by loading a program stored in the non-volatile storage device and the CPU executing this program. However all or a part of the functions of the control device 12 may be performed by an ASIC, an FPGA or dedicated hardware. Further, the functions of the control device 12 may be implemented by the collaboration of a plurality of computers, utilizing techniques of distributed computing and cloud computing.



FIG. 2 is a block diagram depicting the functions of the control device 12 related to the three-dimensional shape measurement. For the functions related to the three-dimensional shape measurement, the control device 12 includes an image acquisition unit 20, a signal separation unit 21, a phase calculation unit 22, and a three-dimensional restoration unit 23.


The image acquisition unit 20 has a function to acquire a plurality of observation images used for the three-dimensional shape measurement from the imaging device 11. The signal separation unit 21 has a function to separate the observation signal into two component signals for each pixel of the observation image. The phase calculation unit 22 has a function to calculate the phase values of the separated component signals. The three-dimensional restoration unit 23 has a function to calculate a three-dimensional position of each pixel (that is, each measurement point on the surface of the measurement object O) on the observation image based on the phase values calculated by the phase calculation unit 22. These functions will be described later.


(Model of Inter-Reflection and Observation Signal)



FIG. 3A and FIG. 3B illustrate the models of inter-reflection and an observation signal.



FIG. 3A is an example when a reflection surface 30 having a high specularity (e.g. surface of a metal object) exists near a measurement object O having a diffusion reflection surface. FIG. 3B is an example when a diffusion reflection surface 31 exists near a measurement object O reflection surface of which has high specularity.


In the case where a projection image 100 having a sinusoidal fringe pattern is projected from the projection device 10, it is assumed that light LD corresponding to the position XD on the projection image 100 (the light LD is called direct light), and the reflection light LR of the light corresponding to the position xR on the projection image 100, reflected by the reflection surface 30 or 31 (this light LR is called indirect light) reach the measurement point P on the measurement object O.


In this case, the observation signal I observed by the imaging device 11 becomes a composite signal of the light ID (direct component signal), which is generated when the direct light LD was reflected at the measurement point P and entered the imaging device 11, and the light IR (indirect component signal), which is generated when the indirect light LR was reflected at the measurement point P, and entered the imaging device 11. The desired signal which is necessary to the three-dimensional shape measurement is the direct component signal ID. In the state illustrated in FIG. 3A, the indirect component signal IR attenuates during the reflection on the reflection surface 30, hence the intensity of the direct component signal ID becomes higher than the intensity of the indirect component signal IR. In the state illustrated in FIG. 3B, on the other hand, the light LD is mostly reflected on the specular reflection surface in the positive reflection direction, hence the intensity of the indirect component signal IR may become higher than the intensity of the direct component signal ID.


It is assumed that the spatial frequency of the projection pattern is w, the frequency in the time direction (time frequency) is v, the amplitude of the direct component signal ID is AD, and the amplitude of the indirect component signal IR is AR. In this case, an observation signal I (ω, t) at time t can be expressed as an addition of a direct component signal ID (ω, t) and an indirect component signal IR (ω, t) as follows.






I(ω,t)=ID(ω,t)+IR(ω,t)






I
D(ω,t)AD cos(ωXDvt)+CD






I
R(ω,t)AR COS(ωxR+vt)+CR  [Math. 1]


If the phase φ′ (ω, Δx) and the amplitude A′ (ω,Δx) are calculated regarding the observation signal as a single component signal, then the following is estimated (where Δx=xD−xR).












A
′2



(

ω
,

Δ





x


)


=


A
D
2

+

A
R
2

+

2


A
D



A
R


cos





2





ω





Δ





x











φ




(

ω
,

Δ





x


)


=


ω






x
D


+


tan

-
1






A
R


sin





2





ω





Δ





x



A
D

+


A
R


cos





2





ω





Δ





x










[

Math
.




2

]







The desired signal is the direct component signal ID, hence the true value of the amplitude is AD and the true value of the phase is ωxD. However an error is generated in both the amplitude and the phase because of the influence of inter-reflection (indirect component signal IR). As the above expression indicates, this error depends on the spatial frequency ω of the projection pattern and the difference Δx.


(Signal Separation Method)


A method of separating the direct component signal (desired signal) from the observation signal will be described next.


In this embodiment, it is assumed that the observation signal is a composite signal of two types of component signals phases of which are mutually different. Out of the two types of component signals, a signal amplitude of which is larger and the signal intensity is higher is defined as a primary component signal (subscript “p” is attached), and the other signal is defined as a secondary component signal (subscript “s” is attached). In most cases, the primary component signal corresponds to the direct component signal, and the secondary component signal corresponds to the indirect component signal, therefore in this embodiment, the primary component signal, separated from the observation signal, is used for the three-dimensional shape measurement. There may be a case where the signal intensity of the direct component signal becomes lower, as illustrated in FIG. 3B, but in this case, the secondary component signal may be used for the three-dimensional shape measurement.


The signal separation method of this embodiment utilizes a property in which errors of the amplitude and phase generated by the influence of inter-reflection depend on the spatial frequency of the projection pattern. Therefore for input, a plurality of observation signals, which were observed using a plurality of projection patterns having mutually different spatial frequencies, are used. When the spatial frequency of the projection pattern is ωk (k=1, . . . , K) and the time frequency is vk, then the observation signal can be expressed as follows.






I
okt)=ADk)cos(ωkxD+vkt)+ARk)cos(ωkxR+vkt)+Ck)  [Math. 3]


For preprocessing, an offset component (DC component) C (ωk) is removed from the observation signal Io k, t). For the repeated operation in the subsequent steps, the observation signal I (ωk, t) determined by removing the offset component as follows is used.






Ik,t)≙Iok,t)−Ck)  [Math. 4]


The value of the offset component C (ωk) in the spatial frequency ωk is calculated as follows, using the sum of the observation signals in one cycle in the time direction, for example.










C


(

ω
k

)


=


1
T






t
=
0


T
-
1





I
O



(


ω
k

,
t

)








[

Math
.




5

]







Instead of estimating the value of the offset component for each spatial frequency, a value of the offset component estimated using another observation signal having a similar spatial frequency may be used as a substitute of the value of the offset component for each spatial frequency. If this substitute of the offset is not used, at least three observation images having mutually different phases are necessary for each spatial frequency ωk, to implement desired processing. If this substitute of the offset is used, on the other hand, desired processing can be implemented if at least two observation images having mutually different phases are acquired for each spatial frequency. Therefore by using this substitute of the offset, a necessary number of times of projections and number of times of image capturing can be reduced, whereby the three-dimensional shape measurement can be performed faster.



FIG. 4 is a flow chart depicting the signal separation processing that is executed by the signal separation unit 21. The processing in FIG. 4 is executed for each pixel of the observation image. Hereafter a processing target pixel is called a “pixel of interest”.


In step S40, the signal separation unit 21 acquires a set I of the observation signals I (ωk, t) of the pixels of interest (in FIG. 4, a set is denoted in bold). An observation signal set I is constituted of a plurality of observation signals I (ω1, t), . . . , I (ωK, t) corresponding to a plurality of spatial frequencies ω1, . . . , ωK. The observation signal of each spatial frequency includes a plurality of observation signals I (ωk, 0), I (ωk, 1), . . . , I (ωk, Tk−1), which are observed at a plurality of times (T=0, 1, . . . , Tk−1), having mutually different phases. The observation signal I (ωk, t) is a signal after the offset component is removed, and Tk indicates a time cycle of the projection pattern.


The observation signal I (ωk, t) is a composite signal of a primary component signal IP k, t) and a secondary component signal IS ((ωk, t), but the ratio of these component signals (intensity ratio) is unknown. Therefore in this embodiment, the signal separation unit 21 sequentially updates the estimated value (approximate value) of each component signal by repeatedly applying the single component estimation method having low separation performance to each component signal, so as to estimate a true value of each component signal.


First in step S41, the signal separation unit 21 sets the initial values of the primary component signal IP k, t) and the secondary component signal IS k, t) for the observation signal I (ωk, t) of each spatial frequency ωk. In this embodiment, the observation signal I (ωk, t) is set as the initial value of the primary component signal IP k, t), and the initial value of the secondary component signal IS k, t) is set to 0. In FIG. 4, the bold symbol IP indicates the primary component signal set, and the bold symbol IS indicates the secondary component signal set.


In step S42, the signal separation unit 21 calculates the amplitude value AP k) and the phase value φP k) from the primary component signal IP k, t) for each spatial frequency ωk. Generally when signals having the same spatial frequency ωk are observed with equal time intervals for one cycle, the signal at each time t is given by the following expression using the time frequency vk.






I
Pf,t)=Ak)cos(ωkx+vkt),t=0,1, . . . Tk−1  [Math. 6]


These signals IP k, 0), IP k, 1), . . . , IP k, Tk−1) are frequency-converted, then the component J (ωk, vk) of time frequency vk, which is a first harmonic, becomes as follows, (where j is an imaginary unit).






Jk,vk)=Ak)ekx  [Math. 7]


Therefore the amplitude value AP k) and the phase value φP k), with respect to the spatial frequency ωk, can be calculated as follows.












A
P



(

ω
k

)


=




(

Re


(

J


(


ω
k

,

v
k


)


)


)

2

+


(

Im


(

J


(


ω
k

,

v
k


)


)


)

2












φ
P



(

ω
k

)


=



ω
k


x

=


tan

-
1





Im


(

J


(


ω
k

,

v
k


)


)



Re


(

J


(


ω
k

,

v
k


)


)










[

Math
.




8

]







Here Re ( ) and Im ( ) are operator symbols which indicate a real part and imaginary part of a complex number respectively.


The calculated phase value φP k) is normalized for the processing in subsequent stages. For example, using the phase unwrapping, the signal separation unit 21 converts a plurality of phase values φP 1), φP 2), . . . , φP K) at different spatial frequencies ωk into phase values θP 1), θP 2), . . . , θP K) at a common spatial frequency ωL. For example, if φs is a phase value in a projection pattern at the spatial frequency ωk, if φL is a phase value in a projection pattern at the spatial frequency ωL for unwrapping, and if α is an unwrapping scale factor, then the phase value θ after the conversion can be calculated as follows.









θ
=



φ
S

α

+


(


φ
L

-


φ
S

α


)


mod



2

π

α







[

Math
.




9

]







The outputs of the processing in step S42 are the amplitude value set AP of each spatial frequency ωk, and the normalized phase value set θP.






A
P
={A
P1),Ap2), . . . ,APk)}





θP={θP1),θp2), . . . ,θPk)}  [Math. 10]


In the processing in step S42, the amplitude value and the phase value are calculated regarding the primary component signal IP k, t) as a single component signal. However, in a stage where the primary component signal IP k, t) is not yet sufficiently separated, errors of the amplitude value and the phase value calculated in step S42 with respect to the true values are large. Therefore in step S43, the signal separation unit 21 estimates an amplitude value and a phase value which are closer to the true values (that is, smaller errors) based on the amplitude value set AP and the phase value set θP determined in step S42. The estimation method here need not be a method that completely eliminates errors, but may be a method that can reduce errors, even slightly (this is called a “weak estimation”). By repeatedly applying this weak estimation, the amplitude value and the phase value gradually become closer to the true values, thereby a practical separation accuracy can be acquired.


The specific method of weak estimation does not matter. The magnitude of the error of each amplitude value and the positive/negative of the error differ depending on the spatial frequency ωk, hence a plurality of amplitude values AP k) calculated in step S42 are more likely to be distributed on the positive side and negative side of the true value respectively. In other words, the true value of the amplitude value is more likely to exist between the minimum value and the maximum value of the plurality of amplitude values AP k). Therefore an amplitude value close to the true value is expected to be acquired by determining the amplitude value, so as to be a value that is greater than the minimum value and smaller than the maximum value of the plurality of amplitude values AP k). For example, a mean value or a median value of the plurality of amplitude values AP k) is determined. This is also applicable to the phase value θp (ωk).


In this embodiment, “averaging” is used as a method for the weak estimation. In concrete terms, in step S43, the signal separation unit 21 calculates the corrected amplitude value (AP hat) and the corrected phase value (θP hat) which are defined as follows.












A
^

P



=
Δ




1
K






k
=
1

K




A
P



(

ω
k

)













θ
^

P



=
Δ




1
K






k
=
1

K




θ
P



(

ω
k

)









[

Math
.




11

]







If the damping ratio of the amplitude is different depending on the spatial frequency ωk, the corrected amplitude value may be calculated as follows.











A
^

P



=
Δ




1
K






k
=
1

K




1

r
k





A
P



(

ω
k

)









[

Math
.




12

]







Here rk is a damping ratio of the amplitude of the projection pattern at the spatial frequency ωk.


In step S44, the signal separation unit 21 reproduces the brightness signal with respect to each spatial frequency ωk based on the corrected amplitude value and the corrected phase value determined in step S43. If the damping ratio of the amplitude can be regarded as constant, regardless what the spatial frequency ωk is, then the brightness signal can be calculated as follows.











I
P




(


ω
k

,
t

)


=



A
^

P



cos


(




ω
k


ω
L





θ
^

P


+


v
k


t


)







[

Math
.




13

]







If the damping ratio of the amplitude is different depending on the spatial frequency ωk, on the other hand, the brightness signal can be calculated as follows.











I
P




(


ω
k

,
t

)


=


r
k




A
^

P



cos


(




ω
k


ω
L





θ
^

P


+


v
k


t


)







[

Math
.




14

]







The brightness signal IP′ (ωk, t) reproduced like this is a signal errors of which of the amplitude and the phase are reduced compared with the original primary component signal IP k, t) used in step S42. The above processing in steps S42 to S44 is an example of the “first step” according to the present invention, the original brightness signal IP k, t) is an example of the “estimation value of the first component signal” according to the present invention, and the reproduced brightness signal IP′ (ωk, t) is an example of the “corrected estimation value of the first component signal” according to the present invention.


In step S45, the signal separation unit 21 subtracts the brightness signal IP′ (ωk, t) determined in step S44 from the observation signal I (ωk, t) at each spatial frequency ωk. Thereby the estimation value of the secondary component signal IS k, t) can be updated. Compared with the original primary component signal IP k, t), the error of the brightness signal IP′ (ωk, t) is smaller, hence the error of the secondary component signal IS k, t) can also be reduced by this update processing. This processing in step S45 is an example of the “second step” according to the present invention, and the brightness signal IS k, t) determined in step S45 is an example of the “estimation value of the second component signal” according to the present invention.


Then in step S46, the signal separation unit 21 calculates the amplitude value AS k) and the phase value θS k) from the secondary component signal IS k, t) at each spatial frequency ωk. A specific processing content thereof is the same as step S42 (the subject here, however, is the secondary component signal instead of the primary component signal), hence a detailed description is omitted. As the output of the processing in step S46, the amplitude value set AS of the secondary component signal IS k, t) of each spatial frequency ωk and normalized phase value set θs are acquired.


In step S47, the signal separation unit 21 calculates the corrected amplitude value (As hat) and the corrected phase value (θS hat), which are closer to the true values, based on the amplitude value set AS and the phase value set θS determined in step S46. A specific processing content thereof is the same as step S43 (the subject here, however, is the secondary component signal, instead of the primary component signal), hence a detailed description is omitted.


In step S48, the signal separation unit 21 reproduces the brightness signal with respect to each spatial frequency ωk based on the corrected amplitude value and the corrected phase value determined in step S47. If the damping ratio of the amplitude can be regarded as constant, regardless what the spatial frequency ωk is, then the brightness signal can be calculated as follows.











I
S




(


ω
k

,
t

)


=



A
^

S



cos


(




ω
k


ω
L





θ
^

S


+


v
k


t


)







[

Math
.




15

]







If the damping ratio of the amplitude is different depending on the spatial frequency ωk, on the other hand, the brightness signal can be calculated as follows.











I
S




(


ω
k

,
t

)


=


r
k




A
^

S



cos


(




ω
k


ω
L





θ
^

S


+


v
k


t


)







[

Math
.




16

]







The brightness signal IS′ (ωk, t) reproduced like this is a signal errors of which of the amplitude and the phase are reduced compared with the original secondary component signal IS k, t) used in step S46. The above processing in step S46 to S48 is an example of the “third step” according to the present invention, the original brightness signal IS k, t) is an example of the “estimation value of the second component signal” according to the present invention, and the reproduced brightness signal IS′ (ωk, t) is an example of the “corrected estimation value of the second component signal” according to the present invention.


In step S49, the signal separation unit 21 subtracts the brightness signal IS′ (ωk, t) determined in step S48 from the observation signal I (ωk, t) at each spatial frequency ωk. Thereby the estimation value of the primary component signal IP k, t) can be updated. Compared with the original secondary component signal IS k, t), the error of the brightness signal IS′ (ωk, t) is smaller, hence the error of the primary component signal IP k, t) can also be reduced by this update processing. This processing in step S49 is an example of the “fourth step” according to the present invention, and the brightness signal IP k, t) determined in step S49 is an example of the “estimation value of the primary component signal” according to the present invention.


By repeating the above mentioned operations in step S42 to S49 a plurality of times, the estimation value of each component signal is sequentially updated so that the errors of the amplitude and the phase of each component signal (differences from the true values) decrease. Therefore the observation signal I (ωk, t) can be accurately separated into the two component signals, IP k, t) and IS k, t). The number of times of repeat may be determined in advance, or may be dynamically changed by evaluating the degree of convergence of the estimation value of each component signal using a predetermined evaluation formula.


Three-Dimensional Shape Measurement

An example of the processing flow of the three-dimensional shape measurement according to this embodiment will be described with reference to the flow chart in FIG. 5.


In step S50, the control device 12 controls the projection device 10 and the imaging device 11, and captures a plurality of observation images. For example, the control device 12 projects a fringe pattern, wherein brightness of the fringe pattern changes sinusoidally, four times while changing the phase by π/2 at a time, and captures four observation images.


In order to achieve high measurement accuracy (resolution), it is preferable that the spatial frequency ω of the fringe pattern is high frequency. However the measurement range depends on the cycle of the fringe pattern. Therefore, the measurement range decreases, which is disadvantageous, as the frequency of the fringe pattern becomes higher. Therefore the measurement range is expanded by converting the high frequency phase into a low frequency phase. This method is called “phase unwrapping”. By phase unwrapping, high measurement accuracy and a wide measurement range are both implemented.


To perform the phase unwrapping, a plurality of observation images having mutually different spatial frequencies are acquired using a plurality of projection patterns having mutually different spatial frequencies. For example, in the case of phase unwrapping that is normally used, images of a projection pattern at high frequency for measurement and a projection pattern at low frequency for unwrapping are captured, and in the case of MPS, images of a plurality of types of projection patterns at high frequency are captured. The data of the observation image is loaded into the control device 12 by the image acquisition unit 20, and is stored by the memory or the non-volatile storage device.


In step S51, the signal separation unit 21 performs the processing for separating the observation signal at each pixel of the observation image into two component signals. Specific processing of the signal separation is as described in FIG. 4. In this embodiment, the primary component signal is regarded as the direct component signal.


In step S52, the phase calculation unit 22 calculates the phase value of the pixel of interest from the direct component signal separated in step S51. The phase value acquired in the calculation step of the signal separation in step S51 (e.g. corrected phase value (θP hat) determined in step S43 in FIG. 4) may be used.


Then in step S53, the three-dimensional restoration unit 23 calculates the three-dimensional position of each pixel of the observation image (that is, each measurement point on the surface of the measurement object) based on the phase value of each pixel calculated by the phase calculation unit 22. Thereby the three-dimensional shape of the measurement object surface can be restored. A method of converting the phase value into a three-dimensional position (height information) is, for example, determining a conversion formula between the phase and the height in advance by calibration, and determining the height information by inserting the phase value into the conversion formula.


According to the above mentioned signal separation method of this embodiment, the direct component signal can be accurately separated from the observation signal. Then by using the phase of the separated direct component signal for calculating the three-dimensional position of the measurement point, highly accurate three-dimensional shape measurement, in which the influence of inter-reflection is reduced, can be implemented. The method of this embodiment can be used, even if the ratio of the direct component signal and the indirect component signal included in the observation signal is totally unknown, that is, even if special prior knowledge and preconditions are not available. For example, in an actual situation where this method is applied, conditions, such as the degree of influence of inter-reflection, the shape of the causative object of inter-reflection (shape and orientation of the reflection surface), reflection characteristics (e.g. reflectance), and the positional relationship between the causative object of inter-reflection and the measurement object, vary, but the method of this embodiment can be universally used under all conditions. This means that the method of this embodiment can be easily implemented in actual apparatuses.


The above description of the embodiment merely exemplifies the present invention. The present invention is not limited to this embodiment, but may be modified in various ways within the scope of the technical idea thereof.


REFERENCE SIGNS LIST




  • 1 Three-dimensional shape measurement device


  • 10 Projection device


  • 11 Imaging device


  • 12 Control device


  • 20 Image acquisition unit


  • 21 Signal separation unit


  • 22 Phase calculation unit


  • 23 Three-dimensional restoration unit


  • 30 Reflection surface


  • 31 Reflection surface


Claims
  • 1. A three-dimensional shape measurement device, comprising: a projection device;an imaging device; anda control device which is configured to measure a three-dimensional shape of a measurement object based on an observation signal observed by the imaging device, in a state of projecting a projection pattern, which has cyclicity in a time direction and a space direction, from the projection device to the measurement object,wherein it is assumed that the observation signal is a composite signal of a first component signal and a second component signal, the first component signal and the second component signal having phases that are different from each other,wherein the control device is configured to:acquire a plurality of observation signals observed using a plurality of projection patterns having mutually different spatial frequencies as the observation signals with respect to a measurement point on the measurement object;set an initial value of an estimation value of the first component signal for each observation signal;estimate the first component signal and the second component signal included in each observation signal by repeatedly executing operations, the operations including: (1) a first step of determining a corrected estimation value of the first component signal of each observation signal by applying first correction processing, which reduces errors of amplitude and a phase, to the estimation value of the first component signal of each observation signal, (2) a second step of determining an estimation value of the second component signal of each observation signal by subtracting the corrected estimation value of the first component signal from each observation signal, (3) a third step of determining a corrected estimation value of the second component signal of each observation signal by applying second correction processing, which reduces errors of amplitude and a phase, to the estimation value of the second component signal of each observation signal, and (4) a fourth step of determining an estimation value of the first component signal of each observation signal by subtracting the corrected estimation value of the second component signal from each observation signal; andcalculate a three-dimensional position of the measurement point based on a phase of the estimated first component signal or second component signal.
  • 2. The three-dimensional shape measurement device according to claim 1, wherein one of the first component signal and the second component signal is a direct component signal, which corresponds to light which is projected from the projection device, is reflected at the measurement point and enters the imaging device, andthe other signal is an indirect component signal, which corresponds to light which is projected from the projection device, is reflected by another reflection surface, is reflected at the measurement point and enters the imaging device.
  • 3. The three-dimensional shape measurement device according to claim 1, wherein the first correction processing comprises:acquiring a plurality of amplitude values and a plurality of phase values for each spatial frequency of the plurality of projection patterns by calculating the amplitude and the phase from the estimation value of the first component signal of each observation signal,determining a corrected amplitude value such that the corrected amplitude value is greater than a minimum value and smaller than a maximum value of the plurality of amplitude values,normalizing the plurality of phase values and determining a corrected phase value such that the corrected phase value is greater than a minimum value and smaller than a maximum value of the plurality of normalized phase values, andreproducing a brightness signal for each spatial frequency of the plurality of projection patterns based on the corrected amplitude value and the corrected phase value,wherein the reproduced brightness signal for each spatial frequency is the corrected estimation value of the first component signal of each observation signal.
  • 4. The three-dimensional shape measurement device according to claim 1, wherein the second correction processing comprises:acquiring a plurality of amplitude values and a plurality of phase values for each spatial frequency of the plurality of projection patterns by calculating the amplitude and the phase from the estimation value of the second component signal of each observation signal,determining a corrected amplitude value such that the corrected amplitude value is greater than a minimum value and smaller than a maximum value of the plurality of amplitude values,normalizing the plurality of phase values and determining a corrected phase value such that the corrected phase value is greater than a minimum value and smaller than a maximum value of the plurality of normalized phase values, andreproducing a brightness signal for each spatial frequency of the plurality of projection patterns based on the corrected amplitude value and the corrected phase value,wherein the reproduced brightness signal for each spatial frequency is the corrected estimation value of the second component signal of each observation signal.
  • 5. The three-dimensional shape measurement device according to claim 3, wherein the corrected amplitude value is a mean value or a median value of the plurality of amplitude values.
  • 6. The three-dimensional shape measurement device according to claim 3, wherein the corrected phase value is a mean value or a median value of the plurality of normalized phase values.
  • 7. The three-dimensional shape measurement device according to claim 3, wherein the processing for normalizing the plurality of phase values is processing for converting the plurality of phase values into a phase value with respect to a common spatial frequency.
  • 8. The three-dimensional shape measurement device according to claim 1, wherein the control device is configured to calculate the three-dimensional position of the measurement point by the phase shift method or micro phase shifting (MPS) based on the phase of the estimated first component signal or second component signal.
  • 9. A three-dimensional shape measurement method for measuring a three-dimensional shape of a measurement object based on an observation signal observed by an imaging device, in a state of projecting a projection pattern, which has cyclicity in a time direction and a space direction, from a projection device to the measurement object, wherein it is assumed that the observation signal is a composite signal of a first component signal and a second component signal, the first component signal and the second component signal having phases that are different from each other,the three-dimensional shape measurement method including steps of:acquiring a plurality of observation signals observed using a plurality of projection patterns having mutually different spatial frequencies as the observation signals with respect to a measurement point on the measurement object;setting an initial value of an estimation value of the first component signal for each observation signal;estimating the first component signal and the second component signal included in each observation signal by repeatedly executing operations, the operations including: (1) a first step of determining a corrected estimation value of the first component signal of each observation signal by applying first correction processing, which reduces errors of amplitude and a phase, to the estimation value of the first component signal of each observation signal, (2) a second step of determining an estimation value of the second component signal of each observation signal by subtracting the corrected estimation value of the first component signal from each observation signal, (3) a third step of determining a corrected estimation value of the second component signal of each observation signal by applying second correction processing, which reduces errors of amplitude and a phase, to the estimation value of the second component signal of each observation signal, and (4) a fourth step of determining an estimation value of the first component signal of each observation signal by subtracting the corrected estimation value of the second component signal from each observation signal; andcalculating a three-dimensional position of the measurement point based on a phase of the estimated first component signal or second component signal.
  • 10. A non-transitory computer readable medium storing a program that causes a computer to execute each step of the three-dimensional shape measurement method according to claim 9.
Priority Claims (1)
Number Date Country Kind
2017-043722 Mar 2017 JP national
PCT Information
Filing Document Filing Date Country Kind
PCT/JP2017/042486 11/28/2017 WO 00