A non-contact measurement apparatus and method. A probe is provided for mounting on a coordinate positioning apparatus, comprising at least one imaging device for capturing an image of an object to be measured. Also provided is an image analyzer configured to analyze at least one first image of an object obtained by the probe from a first perspective and at least one second image of the object obtained by the probe from a second perspective so as to identify at least one target feature on the object to be measured. The image analyzer is further configured to obtain topographical data regarding a surface of the object via analysis of an image, obtained by the probe, of the object on which an optical pattern is projected.
|
12. A non-contact method for measuring an object located within a measurement space using a probe comprising an imaging device, the method comprising:
a) analysing at least one first image of an object obtained by the imaging device from a first perspective and at least one second image of the object obtained by the imaging device, which is the same imaging device used to obtain the at least one first image of the object, from a second perspective so as to identify in each of the at least one first image and the at least one second image of the object at least one common photogrammetric target feature on the object to be measured, determining the two-dimensional coordinates of the at least one common photogrammetric target feature on the object within each image, and then, based on knowledge of the relative location and orientation of the imaging device that took the images, determining the three dimensional coordinates of the at least one common photogrammetric target feature; and
b) obtaining topographical data regarding a form of a surface of the object via analysis of the distortion of a structured light pattern projected on the object caused by height variation on the surface of the object as imaged in at least one image, obtained by the imaging device, which is the same imaging device used to obtain the at least one first image and the at least one second image of the object,
wherein both the data obtained from a) and b) is used to provide a 3D point cloud that describes the shape of the object.
1. A non-contact measurement apparatus, comprising:
a probe configured to be mounted on a coordinate positioning apparatus, comprising an imaging device for capturing an image of an object to be measured;
a processor configured to:
a) analyse at least one first image of an object obtained by the imaging device from a first perspective and at least one second image of the object obtained by the imaging device, which is the same imaging device used to obtain the at least one first image of the object, from a second perspective so as to identify in each of the at least one first image and the at least one second image of the object at least one common photogrammetric target feature on the object to be measured, determine the two-dimensional coordinates of the at least one common photogrammetric target feature on the object within each image, and then, based on knowledge of the relative location and orientation of the imaging device that took the images, determine the three dimensional coordinates of the at least one common photogrammetric target feature; and
b) obtain topographical data regarding a form of a surface of the object via analysis of the distortion of a structured light pattern projected on the object caused by height variation on the surface of the object as imaged in at least one image, obtained by the imaging device, which is the same imaging device used to obtain the at least one first image and the at least one second image of the object,
wherein the non-contact measurement apparatus being further configured to use both the data obtained from a) and b) to provide a 3D point cloud that describes the shape of the object.
11. A device for use in a non-contact measurement apparatus that includes a probe that is configured to be mounted on a coordinate positioning apparatus, having an imaging device for capturing an image of an object to be measured, the device comprising:
a processor configured to:
a) analyse at least one first image of an object obtained by the imaging device from a first perspective and at least one second image of the object obtained by the imaging device, which is the same imaging device used to obtain the at least one first image of the object, from a second perspective so as to identify in each of the at least one first image and the at least one second image of the object at least one common photogrammetric target feature on the object to be measured, determine the two-dimensional coordinates of the at least one common photogrammetric target feature on the object within each image, and then, based on knowledge of the relative location and orientation of the imaging device that took the images, determine the three dimensional coordinates of the at least one common photogrammetric target feature; and
b) obtain topographical data regarding a form of a surface of the object via analysis of the distortion of a structured light pattern projected on the object caused by height variation on the surface of the object as imaged in at least one image, obtained by the imaging device, which is the same imaging device used to obtain the at least one first image and the at least one second image of the object,
wherein the device being further configured to use both the data obtained from a) and b) to provide a 3D point cloud that describes the shape of the object.
2. A non-contact measurement apparatus as claimed in
3. A non-contact measurement apparatus as claimed in
4. A non-contact measurement apparatus as claimed in
5. A non-contact measurement apparatus as claimed in
6. A non-contact measurement apparatus as claimed in
a set of first images obtained by the imaging device from the first perspective, the position of an optical pattern projected onto the object being different for each image in the set; and
a set of second images obtained by the imaging device from the second perspective, the position of an optical pattern projected onto the object being different for each image in the set, in order to identify the at least one common photogrammetric target feature on the object to be measured and to determine the position of the common photogrammetric target feature on the object relative to the an image sensor of the imaging device.
7. A non-contact measurement apparatus as claimed in
8. A non-contact measurement apparatus as claimed in
9. A non-contact measurement apparatus as claimed in
10. A non-contact measurement apparatus as claimed in
13. A method as claimed in
14. A method as claimed in
15. A method as claimed in
16. A memory and a processor, the memory storing instructions which, when executed by the processor, cause the processor to control the probe comprising the imaging device in accordance with the method of
17. A non-transitory computer readable medium storing instructions, which when executed, perform the method of
0. 18. A non-contact measurement apparatus as claimed in claim 1, in which the coordinate positioning apparatus is a coordinate measuring machine.
0. 19. A non-contact measurement apparatus as claimed in claim 1, in which the coordinate positioning apparatus is a machine tool.
0. 20. A non-contact measurement apparatus as claimed in claim 1, in which the probe is mounted on an articulated probe head comprising at least one rotational axis.
0. 21. A non-contact measurement apparatus as claimed in claim 20, in which the articulated probe head comprises at least two rotational axes.
0. 22. A non-contact measurement apparatus as claimed in claim 20, in which the coordinate positioning apparatus comprises a base for the object, a frame on which a quill is mounted which can be moved along three mutually orthogonal axes and on which the articulated probe head is mounted.
0. 23. A method as claimed in claim 12, in which the obtaining topographical data step comprises analysis of at least one of the at least one first image and the at least one second image.
0. 24. A method as claimed in claim 12, in which the method comprises processing a set of images in which the position of an optical pattern on the object is different for each image in the set in order to determine the topographical data.
0. 25. A method as claimed in claim 12, in which the method comprises identifying an irregularity in an optical pattern projected on the object in each of the first and second images as the at least one common photogrammetric target feature.
0. 26. A method as claimed in claim 25, in which the method comprises:
processing a set of first images obtained by the imaging device from the first perspective, the position of an optical pattern projected onto the object being different for each image in the set; and
processing a set of second images obtained by the imaging device from the second perspective, the position of an optical pattern projected onto the object being different for each image in the set,
in order to identify the at least one common photogrammetric target feature on the object to be measured and to determine the position of the common photogrammetric target feature on the object relative to an image sensor of the imaging device.
0. 27. A method as claimed in claim 26, in which the method comprises processing at least one of the first or second sets of images in order to determine the topographical data.
0. 28. A method as claimed in claim 27, in which the method comprises calculating at least one of a first phase map from the set of first images and a second phase map from the set of second images.
0. 29. A method as claimed in claim 28, in which the method comprises determining the topographical data from at least one of the at least one first phase map and second phase map.
0. 30. A method as claimed in claim 15, in which the projector has a fixed optical pattern.
0. 31. A method as claimed in claim 12, in which the probe is mounted on a coordinate positioning apparatus.
0. 32. A method as claimed in claim 31, in which the coordinate positioning apparatus is a coordinate measuring machine.
0. 33. A method as claimed in claim 31, in which the coordinate positioning apparatus is a machine tool.
0. 34. A method as claimed in claim 31, in which the coordinate positioning apparatus comprises a base for the object, a frame on which a quill is mounted which can be moved along three mutually orthogonal axes and on which an articulated probe head is mounted.
0. 35. A method as claimed in claim 12, in which the probe is mounted on an articulated probe head comprising at least one rotational axis.
0. 36. A method as claimed in claim 35, in which the articulated probe head comprises at least two rotational axes.
|
This invention relates to a method and apparatus for measuring an object without contacting the object.
Photogrammetry is a known technique for determining the location of certain points on an object from photographs taken at different perspectives, i.e. positions and/or orientations. Typically photogrammetry comprises obtaining at least two images of an object taken from two different perspectives. For each image the two dimensional coordinates of a feature of the object on the image can determined. It is then possible from the knowledge of the relative location and orientation of the camera(s) which took the images, and the points at which the feature is formed on the images to determine the three dimensional coordinates of the feature on the object via triangulation. Such a technique is disclosed for example in U.S. Pat. No. 5,251,156 the entire content of which is incorporated into this specification by this reference.
Non-contact optical measuring systems are also known for measuring the topography of a surface. These may typically consist of a projector which projects a structured light pattern onto a surface and a camera, set at an angle to the projector, which detects the structured light pattern on the surface. Height variation on the surface causes a distortion in the pattern. From this distortion the geometry of the surface can be calculated via triangulation and/or phase analysis techniques.
Current known systems enable either photogrammetry or phase analysis to be performed in order to obtain measurement data regarding the object.
The invention provides a method and apparatus in which measurement of an object via photogrammetric techniques and triangulation and/or phase analysis techniques can be performed on images obtained by a common probe.
According to a first aspect of the invention there is provided, a non-contact measurement apparatus, comprising: a probe for mounting on a coordinate positioning apparatus, comprising at least one imaging device for capturing an image of an object to be measured; an image analyser configured to analyse at least one first image of an object obtained by the probe from a first perspective and at least one second image of the object obtained by the probe from a second perspective so as to identify at least one target feature on the object to be measured, and further configured to obtain topographical data regarding a surface of the object via analysis of an image, obtained by the probe, of the object on which an optical pattern is projected.
It is an advantage of the present invention that both the position of target features on the object, and the topographical data of the surface of the object are determined by the image analyser using images obtained by the same probe. Accordingly, it is not necessary to have two separate imaging systems for obtaining both the position of target features of an object and the topographical form of the surface of the object.
As will be understood, a perspective can be a particular view point of the object. A perspective can be defined by the position and/or orientation of the imaging device relative to the object.
The at least one first image and the at least one second image can be obtained by at least one suitable imaging device. Suitable imaging devices can comprise at least one image sensor. For example, suitable imaging devices can comprise an optical electromagnetic radiation (EMR) sensitive detector, such as a charge-coupled device (CCD), a complementary metal-oxide-semiconductor (CMOS). Suitable imaging devices can be optically configured to focus light at the image plane. As will be understood, the image plane can be defined by the image sensor. For example, suitable imaging devices can comprise at least one optical component configured to focus optical EMR at the image plane. Optionally, the at least one optical component comprises a lens.
Suitable imaging devices can be based on the pinhole camera model which consists of a pinhole, which can also be referred to as the imaging device's perspective centre, through which optical EMR rays are assumed to pass before intersecting with the image plane. As will be understood, imaging devices that do not comprise a pinhole but instead comprise a lens to focus optical EMR also have a perspective centre and this can be the point through which all optical EMR rays that intersect with the image plane are assumed to pass.
As will be understood, the perspective centre can be found relative to the image sensor using a calibration procedure, such as those described in J. Heikkila and O. Silven, “A four-step camera calibration procedure with implicit image correction”, Proceedings of the 1997 Conference in Computer Vision and Pattern Recognition (CVPR '97) and J. G Fryer, “Camera Calibration” in K. B. Atkinson (ed.) “Close range photogrammetry and machine vision”, Whittles publishing (1996). Correction parameters such as those for correcting lens aberrations can be provided and are well known and are for instance described in these two documents.
The probe can comprise a plurality of imaging devices. Preferably, the images analysed by the image analyser are obtained using a common imaging device. Accordingly, in this case the probe can comprise a single imaging device only.
Preferably the optical pattern is projected over an area of the object. Preferably the pattern extends over an area of the object so as to facilitate the measurement of a plurality of points of the object over the area image. Preferably the pattern is a substantially repetitive pattern. Particularly preferred optical patterns comprise substantially periodic optical patterns. As will be understood, a periodic optical pattern can be a pattern which repeats after a certain finite distance. The minimum distance between repetitions can be the period of the pattern. Preferably the optical pattern is periodic in at least one dimension. Optionally, the optical pattern can be periodic in at least two perpendicular dimensions.
Suitable optical patterns for use with the present invention include patterns of concentric circles, patterns of lines of varying colour, shades, and/or tones. The colour, shades and/or tones could alternate between two or more different values. Optionally, the colour, shade and/or tones could vary between a plurality of discrete values. Preferably, the colour, shade and/or tones varies continuously across the optical pattern. Preferably, the optical pattern is a fringe pattern. For example, the optical pattern can be a set of sinusoidal fringes. The optical pattern can be in the infrared to ultraviolet range. Preferably, the optical pattern is a visible optical pattern. As will be understood, an optical pattern for use in methods such as that of the present invention is also commonly referred to as a structured light pattern.
The optical pattern could be projected onto the object via at least one projector. Suitable projectors for the optical pattern include a digital light projector configured to project an image input from a processor device. Such a projector enables the pattern projected to be changed. Suitable projectors could comprise a light source and one or more diffraction gratings arranged to produce the optical pattern. The diffraction grating(s) could be moveable so as to enable the pattern projected by the projector to be changed. For instance, the diffraction grating(s) can be mounted on a piezoelectric transducer. Optionally, the diffraction gratings could be fixed such that the pattern projected by the projector cannot be changed. Optionally the projector could comprise a light source and a hologram. Further, the projector could comprise a light source and a patterned slide. Further still, the projector could comprise two mutually coherent light sources. The coherent light sources could be moveable so as to enable the pattern projected by the projector to be changed. For instance, the coherent light sources can be mounted on a piezoelectric transducer. Optionally, the coherent light sources could be fixed such that the pattern projected by the projector cannot be changed.
The at least one projector could be provided separately to the probe. Preferably, the probe comprises the at least one projector. Preferably the probe comprises a single projector only.
A target feature can be a predetermined mark on the object. The predetermined mark could be a part of the object, for example a predetermined pattern formed on the object's surface. Optionally, the mark could be attached to the object for the purpose of identifying a target feature. For example, the mark could be a coded “bull's eye”, wherein the “bull's-eye” has a unique central point which is invariant with perspective, surrounded by a set of concentric black and white rings which code a unique identifier. Automatic feature recognition methods can be used to both locate the centre of the target and also decode the unique identifier. By means of such targets the images can be automatically analysed and the coordinates of the “bull's-eye” centre returned.
As will be understood, the image analyser could be configured to analyser further images of the object being obtained from further known perspectives that are different to the perspectives of the other images. The more images that are analysed the more accurate and reliable the position determination of the target feature on the object can be.
A target feature on the object to be measured can be identified by feature recognition techniques. For example, a Hough Transform can be used to identify a straight line feature on the object.
At least one of the at least one first image and at least second image can be an image of the object onto which an optical pattern is projected. The optical pattern need not be the same as the imaged optical pattern used for obtaining topographical data. Preferably, the at least one first image and at least second image are images of the object onto which an optical pattern is projected. This enables topographical data to be obtained from at least one of the at least one first and at least one second image.
Preferably, the image analyser is configured to identify an irregularity in the optical pattern in each of the first and second images as the at least one target feature. This is advantageous as target features can be identified without the use of markers placed on the object. This has been found to enable highly accurate measurements of the object to be taken quickly. It has also been found that the method of the invention can require less processing resources to identify points on complex shaped objects than by other known image processing techniques.
As will be understood, an irregularity in the optical pattern can also be referred to as discontinuity in the optical pattern.
An irregularity in the optical pattern can be a deformation of the optical pattern caused by a discontinuous feature on the object. Such a deformation of the optical pattern can, for example, be caused at the boundary between two continuous sections of an object. For instance, the boundary could be the edge of a cube at which two faces of the cube meet. Accordingly, a discontinuous feature on the object can be where the gradient of the surface of the object changes significantly. The greater the gradient of the surface relative to the optical pattern projector, the greater the deformation of the optical pattern at that point on the surface. Accordingly, an irregularity could be identified by identifying those points on the object at which the optical pattern is deformed by more than a predetermined threshold. This predetermined threshold will depend on a number of factors, including the size and shape of the object to be measured. Optionally, the predetermined threshold can be determined and set prior to operation by a user based on the knowledge of the object to be measured.
An irregularity can be can be identified by identifying in an image those points on the object at which the rate of change of the optical pattern is greater than a predetermined threshold rate of change. For instance, in embodiments in which the optical pattern is a periodic optical pattern, an irregularity can be identified by identifying in an image those points on the object at which the rate of change of the phase of the periodic optical pattern is greater than a predetermined threshold rate of change. In particular, in embodiments in which the optical pattern is a fringe pattern, an irregularity can be identified by identifying in an image those points on the object at which the rate of change of the phase of the fringe pattern is greater than a predetermined threshold rate of change.
The rate of change of the phase of an optical pattern as imaged when projected onto an object can be identified by creating a phase map from the image, and then looking for jumps in the phase between adjacent points in the phase map above a predetermined threshold. As will be understood, a phase map is a map which contains the phase a pattern projected onto the object's surface for a plurality of pixels in an image. The phase map could be a wrapped phase map. The phase map could be an unwrapped phase map. Known techniques can be used to unwrap a wrapped phase map in order to obtain an unwrapped phase map.
A phase map can be created from a single image of the optical pattern object. For example, Fourier Transform techniques could be used to create the phase map.
Preferably a phase map is created from a set of images of the object from substantially the same perspective, in which the position of the optical pattern on the object is different for each image. Accordingly, a phase map can be created using a phase stepping approach. This can provide a more accurate phase map. Phase stepping algorithms known and are for example described in Creath, K. “Comparison of phase measurement algorithms” Proc. SPIE 680, 19-28 (1986). Accordingly, the method can comprise obtaining a set of first images of the optical pattern on the object from the first perspective. The method can further comprise obtaining a set of second images of the optical pattern on the object from the second perspective. A set of images can comprise a plurality of images of the object from a given perspective. Preferably, a set of images comprises at least two images, more preferably at least three images, especially preferably at least four images. The position (e.g. phase) of the optical pattern on the object can be different for each image in a set.
The image analyser can be configured to process: a set of first images obtained from the first known perspective, the position of the optical pattern on the object being different for each image in the set; and a set of second images obtained from the second known perspective, the position of the optical pattern on the object being different for each image in the set in order to identify at least one target feature on the object to be measured and to determine the position of the target feature on the object relative to the image sensor.
Further details of a method of identifying an irregularity in the optical pattern in each of the at least one first and second images as a target feature are disclosed in the co-pending PCT application filed on the same day as the present application with the title NON-CONTACT MEASUREMENT APPARATUS AND METHOD and having the applicant's reference number 741/WO/0 and claiming priority from UK Patent Application nos. 0716080.7, 0716088.0, 0716109.4. Subject matter that is disclosed in that application is incorporated in the specification of the present application by this reference.
As will be understood, topographical data can be data indicating the topography of at least a part of the object's surface. The topographical data can be data indicating the height of the object's surface at least one point on the object, and preferably at a plurality of points across the object. The topographical data can be data indicating the gradient of the object's surface, at least one point on the object, and preferably at a plurality of points across the object. The topographical data can be data indicating the height and/or gradient of the object's surface relative to the image sensor.
The topographical data can be obtained via analysing the optical pattern. For instance, the topographical data can be obtained via analysing the deformation of the optical pattern. This can be done for example via triangulation techniques. Optionally, the topographical data can be obtained via analysing the optical pattern using phase analysis techniques.
The at least one image processed by the imager analyser to obtain topographical data can be a separate image from the at least one first and at least one second images. Optionally, the topographical data regarding the surface on which the optical pattern is projected can be obtained from at least one of the at least one first and at least one second images. Accordingly, at least one of the at least one first and at least one second images can be an image of the object on which a optical pattern is projected.
The image analyser could be configured to generate a phase map from at least one of the plurality of images. The image analyser could be configured to generate a phase map from at least one of the at least one first image and at least one second image. The phase map could be generated by Fourier Transforming one of the plurality of images.
The image analyser can be configured to process a set of images in which the position of an optical pattern on the object is different for each image in the set in order to determine the topographical data. Optionally, as described above, a phase map can be created from a set of images of the object from the same perspective, in which the position (e.g. phase) of the optical pattern at the object is different for each image.
In particular, the image analyser can be configured to process at least one of the first or second sets of images in order to determine the topographical data. Accordingly, the image analyser can be configured to process at least one of: a set of first images obtained from the first perspective, the position of the optical pattern on the object being different for each image in the set; and a set of second images obtained from the second perspective, the position of the optical pattern on the object being different for each image in the set, in order to determine the height variation data. Accordingly, the image analyser can be configured to calculate a phase map from at least one of the set of first images and the set of second images.
A wrapped phase map can be used to obtain topographical data. For instance, a wrapped phase map can be unwrapped, and the topographical data can be obtained from the unwrapped phase map. Accordingly, the image analyser can be configured to unwrap the wrapped phase map and to obtain the topographical data from the unwrapped phase map. The topographical data could be in the form of height data. As will be understood, height data can detail the position of a plurality of points on the surface.
Obtaining topographical data can comprise determining the gradient of the surface. Obtaining topographical data can comprise determining the gradient of the surface relative to the imaging device.
Determining the gradient of the surface relative to the imaging device can comprise calculating a phase shift map from the plurality of images. Suitable algorithms for generating a phase shift map from the plurality of images include a Carré algorithm such as that described in Cure, P. “Installation et utilisation du comparateur photoelectrique et interferential du Bureau International des Podis et Mesure” Metrologia 2 13-23 (1996). Determining the gradient of the surface can further obtaining a gradient map based on the phase shift map. The gradient map can be obtained by converting the value of each of the points on a phase shift map to a gradient value. The value of a point in a phase shift map can be converted to a gradient value using a predetermined mapping procedure. As will be understood, a phase shift map can detail the phase shift for a plurality of points on the surface due to the change in position of projected fringes on the object's surface. The phase shift can be bound in a range of 360 degrees. A gradient map can detail the surface gradient relative to the image sensor of a plurality of points on the surface.
The method can further comprise integrating the gradient map to obtain height data. As explained above, height data can detail the position of a plurality of points on the surface relative to the image sensor.
The image analyser can be configured to calculate at least one of a first phase map from the set of first images and a second phase map from the set of second images. Phase maps calculated from a set of images taken from the substantially the same perspective, the position of the optical pattern on the object in each image being different, can provide a more accurate and reliable phase map.
The image analyser can be configured to determine the topographical data from at least one of the at least one of a first phase map and second phase map. As mentioned above, the phase maps can be wrapped phase maps. In this case, the at least one of a first wrapped phase map and second wrapped phase map can be unwrapped, and the topographical data can be obtained from the unwrapped phase map.
The position of the optical pattern could be changed between obtaining each of the images in a set of images by changing the optical pattern emitted by the projector. For instance, a projector can comprise a laser beam which is incident on a lens which diverges the beam on to a liquid crystal system to generate at least one fringe pattern on the surface to be measured. A computer can be used to control the pitch and phase of the fringe pattern generated by the liquid crystal system. The computer and the liquid crystal system can perform a phase-shifting technique in order to change the phase of the optical pattern.
Optionally, the position of the optical pattern could be changed by relatively moving the object and the projector. The object and projector could be rotated relative to each other in order to displace the optical pattern on the surface. Optionally, the object and projector are laterally displaced relative to each other. As will be understood, the object could be moved between the obtaining each of the plurality of images. Optionally, the projector could be moved between the obtaining each of the plurality of images.
This can be particularly preferred when the projector has a fixed optical pattern. Accordingly, the projector can be configured such that it can project one optical pattern only. For example, the projector could be one in which the pitch or phase of the optical pattern cannot be altered.
The object and projector can be moved relative to each other by any amount which provides a change in the position of the projected optical pattern relative to the object. When the optical pattern has a period, preferably the object and projector are moved relative to each other such that the position of the pattern on the object is at least nominally moved by a non-integral multiple of the period of the pattern. For instance, when the optical pattern is a fringe pattern, the object and projector can be relative to each other such that the position of the pattern on the object is at least nominally moved by a non-integral multiple of the fringe period. For example, the object and projector can be moved relative to each other such that the position of the pattern on the object is at least nominally moved by a ¼ of the fringe period. As will be understood, the actual distance the projector and object are to be moved relative to each other to obtain such a shift in the pattern on the object can depend on a number of factors including the period of the periodic optical pattern projected and the distance between the object and the projector.
As will be understood, relatively moving the projector and object will cause a change in the position of the optical pattern on the object. However, it may appear from images of the optical pattern on the object taken before and after the relative movement that the optical pattern has not moved. This can be referred to as nominal movement. Whether or not the movement is nominal or actual will depend on a number of factors including the form of the optical pattern projected, and the shape and/or orientation of the surface of the object relative to the projector. For instance, the change in position of the optical pattern on a surface for a given movement will be different for differently shaped and oriented surfaces. It might be that due to the shape and/or orientation of the surface that it would appear that the optical pattern has not changed position, when it fact it has moved and that that movement would have been apparent on a differently shaped or positioned object. What is important is that it is known that the relative movement is such that it would cause a change in the position of the optical pattern on a reference surface of a known shape and orientation relative to the projector. Accordingly, it is effectively possible to determine the shape and orientation of the surface by determining how the position of the optical pattern as imaged differs from the known reference.
The projector could be moved such that the position of the optical pattern relative to a predetermined reference plane in the measurement space is changed. The projector could be moved such that the position of the optical pattern relative to a predetermined reference plane in the measurement space is changed by a non-integral multiple of the period of the pattern. The predetermined reference plane could be the reference plane of the image sensor. Again, the shape and/or orientation of the surface of the object can then be determined by effectively comparing the position of the optical pattern on the surface relative to what it would be like at the reference plane.
If the probe comprises the projector, then the object and imaging device will be moved relative to each other as a consequence of obtaining a shift in the position of the optical pattern on the object. In this case, then preferably the amount of relative movement should be sufficiently small such that the perspective of the object obtained by the image sensor in each of the images is substantially the same. In particular, preferably the movement is sufficiently small that any change in the perspective between the plurality of images can be compensated for in the step of analysing the plurality images.
In a preferred embodiment in which the probe comprises a projector and an imaging device, the probe can be moved between images by rotating the probe about the imaging device's perspective centre. It has been found that rotating about the imaging device's perspective centre makes processing the images to compensate for any relative movement between the object and imaging device (discussed in more detail below). In particular it makes matching corresponding pixels across a number of images easier. For instance, matching corresponding pixels is possible using a coordinate transformation which is independent of the distance between the object and the imaging device. Accordingly, it is not necessary to know the distance between the object and imaging device in order to process the images to compensate for any relative movement between the object and imaging device.
Accordingly, the image analyser can be configured to: i) identify common image areas covered by each of the images in a set of images. The image analyser can be configured to then ii) calculate the phase map for the set using the common image areas only. Identifying common image areas covered by each of the images in a set of images can comprise adjusting the image coordinates to compensate for relative movement between the object and the imaging device.
Details of a method and apparatus in which the position of an optical pattern on the object is changed between obtaining each of a plurality of images of the object, and in which topographical data is obtained by analysing those images are disclosed in the co-pending PCT application filed on the same day as the present application with the title PHASE ANALYSIS MEASUREMENT APPARATUS AND METHOD and having the applicant's reference number 742/WO/0 and claiming priority from UK Patent Application nos. 0716080.7, 0716088.0, 0716109.4.
Accordingly, in particular, this application describes a non-contact measurement apparatus, comprising: a probe for mounting on a coordinate positioning apparatus, the probe comprising a projector for projecting an optical pattern onto the surface of an object to be measured, and an image sensor for imaging the optical pattern on the surface of the object; an image analyser configured to analyse at least one first image of an object on which an optical pattern is projected, the first image being obtained from a first known perspective, and at least one second image of the object on which the optical pattern is projected, the second image being obtained from a second known perspective, so as to: a) identify at least one target feature on the object to be measured and to determine the position of the target feature on the object relative to the image sensor; and b) determine topographical data regarding the surface on which the optical pattern is projected from at least one of the first and second images.
This application also describes in particular a non-contact method for measuring an object located within a measurement space comprising, in any suitable order, the steps of: i) an image sensor obtaining at least a first image of an object on which an optical pattern is projected, the at least first image being obtained from a first perspective; ii) the image sensor obtaining at least a second image of the object on which the optical pattern is projected, the second image being obtained from a second perspective; and iii) analysing the first and at least second images so as to: a) identify at least one target feature on the object to be measured and to determine the position of the target feature on the object relative to the image sensor; and b) obtain shape data of the surface on which the optical pattern is projected from at least one of the first and second imaged optical patterns.
According to a second aspect of the invention there is provided an image analyser for use in a non-contact measurement apparatus as described above.
According to a third aspect of the invention there is provided a non-contact method for measuring an object located within a measurement space using a probe comprising at least one imaging device, the method comprising: the probe obtaining a plurality of images of the object, comprising at least one first image of the object from a first perspective, at least one second image of the object from a second perspective, and at least one image of the object on which a optical pattern is projected; analysing the plurality of images to identify at least one target feature on the object to be measured and to obtain topographical data regarding a surface of the object via analysis of the optical pattern.
At least one of the at least one image of the object from a first perspective and at least one image of the object from a second perspective comprises the at least one image of the object on which an optical pattern is projected. Accordingly, the method can comprise obtaining topographical data from at least one of the at least one first image of the object from a first perspective and at least one second image of the object from a second perspective.
The method can comprise relatively moving the object and probe between the first and second perspectives. This can be particularly preferred when the probe comprises a single imaging device only.
The optical pattern can be projected by a projector that is separate to the probe. Optionally, the probe can comprise at least one projector for projecting an optical pattern.
According to a fourth aspect of the invention there is provided a non-contact measurement apparatus, comprising: a coordinate positioning apparatus having a repositionable head; and a non-contact measurement probe mounted on the head comprising: a projector for projecting an optical pattern onto the surface of an object to be measured; and an image sensor for imaging the optical pattern on the surface of the object.
It is an advantage of the invention that the probe is mounted on a coordinate positioning apparatus. Doing so facilitates the acquisition of images of an object from multiple perspectives through the use of only a single probe device. Further as the probe is mounted on a coordinate positioning apparatus, it can be possible to accurately determine the position and orientation of the probe from the coordinate positioning machine's position reporting features. For example, the coordinate position machine could comprise a plurality of encoders for determining the position of relatively moveable parts of the coordinate positioning machine. In this case, the position and orientation of the image sensor could be determined from the output of the encoders. As will be understood, coordinate positioning apparatus include coordinate measuring machines and other positioning apparatus such as articulating arms and machine tools, the position of what a tool or other device mounted on them can be determined.
Preferably the head is an articulating probe head. Accordingly, preferably the probe head can be rotated about at least one axis. Preferably the coordinate positioning apparatus is a computer controlled positioning apparatus. The coordinate positioning apparatus could comprise a coordinate measuring machine (CMM). The coordinate positioning apparatus could comprise a machine tool.
The non-contact measurement apparatus could further comprise an image analyser configured to determine topographical data regarding the surface on which an optical pattern is projected by the projector from at least one of image obtained by the image sensor. The image analyser could be configured as described above.
This application also describes a non-contact measurement probe for mounting on a coordinate positioning apparatus, comprising: a projector for projecting an optical pattern onto the surface of an object to be measured; and an image sensor for imaging the optical pattern on the surface of the object.
This application further describes a non-contact measurement method comprising: a projector mounted on a head of a coordinate positioning machine projecting an optical pattern onto a surface of an object to be measured; an image sensor imaging the optical pattern on the surface; and an image analyser determining topographical data regarding the surface of the object based on the image and on position information from the coordinate positioning machine.
The optical pattern can extend in two dimensions. The optical pattern projected can enable the determination of the topology of the surface of an object in two dimensions from a single image of the optical pattern on the object. The optical pattern can be a substantially full-field optical pattern. A substantially full-field optical pattern can be one in which the pattern extends over at least 50% of the field of view of the image sensor at a reference plane (described in more detail below), more preferably over at least 75%, especially preferably over at least 95%, for example substantially over the entire field of view of the image sensor at a reference plane. The reference plane can be a plane that is a known distance away from the image sensor. Optionally, the reference plane can be a plane which contains the point at which the projector's and image sensor's optical axes intersect. The reference plane can extend perpendicular to the image sensor's optical axis.
The optical pattern could be a set of concentric circles, or a set of parallel lines of alternating colour, shades, or tones. Preferably, the periodic optical pattern is a fringe pattern. For example, the periodic optical pattern can be a set of sinusoidal fringes. The periodic optical pattern can be in the infrared to ultraviolet range. Preferably, the periodic optical pattern is a visible periodic optical pattern.
According to a further aspect of the invention there is provided computer program code comprising instructions which, when executed by a controller, causes the machine controller to control a probe comprising at least one imaging device and image analyser in accordance with the above described methods.
According to a yet further aspect of the invention there is provided a computer readable medium, bearing computer program code as described above.
As will be understood, features described in connection with the first aspect of the invention are also applicable to the other aspects of the invention where appropriate.
Accordingly, this application describes, a non-contact measurement apparatus, comprising: a probe for mounting on a coordinate positioning apparatus, the probe comprising a projector for projecting a structured light pattern onto the surface of an object to be measured, and an image sensor for imaging the structured light pattern on the surface of the object; an image analyser configured to analyse at least one first image of an object on which a structured light pattern is projected, the first image being obtained from a first known perspective, and at least one second image of the object on which the structured light pattern is projected, the second image being obtained from a second known perspective, so as to: a) identify at least one target feature on the object to be measured and to determine the position of the target feature on the object relative to the image sensor; and b) determine topographical data regarding the surface on which the structured light pattern is projected from at least one of the first and second images.
An embodiment of the invention will now be described, by way of example only, with reference to the following Figures, in which:
Referring to
The CMM 2 comprises a base 10, supporting a frame 12 which in turn holds a quill 14. Motors (not shown) are provided to move the quill 14 along the three mutually orthogonal axes X, Y and Z. The quill 14 holds an articulating head 16. The head 16 has a base portion 20 attached to the quill 14, an intermediate portion 22 and a probe retaining portion 24. The base portion 20 comprises a first motor (not shown) for rotating the intermediate portion 22 about a first rotational axis 18. The intermediate portion 22 comprises a second motor (not shown) for rotating the probe retaining portion 24 about a second rotational axis that is substantially perpendicular to the first rotational axis. Although not shown, bearings may also be provided between the moveable parts of the articulating head 16. Further, although not shown, measurement encoders may be provided for measuring the relative positions of the base 10, frame 12, quill 14, and articulating head 16 so that the position of the measurement probe 4 relative to a workpiece located on the base 10 can be determined.
The probe 4 is removably mounted (e.g. using a kinematic mount) on the probe retaining portion 24. The probe 4 can be held by the probe retaining portion 24 by the use of corresponding magnets (not shown) provided on or in the probe 4 and probe retaining portion 24.
The head 16 allows the probe 4 to be moved with two degrees of freedom relative to the quill 14. The combination of the two degrees of freedom provided by the head 16 and the three linear (X, Y, Z) axes of translation of the CMM 2 allows the probe 4 to be moved about five axes.
A controller 26 comprising a CMM controller 27 for controlling the operation of the CMM 2 is also provided, and a probe controller 29 for controlling the operation of the probe 4 and an image analyser 31 for analysing the images obtained form the probe 4. The controller 26 may be a dedicated electronic control system and/or may comprise a personal computer.
The CMM controller 27 is arranged to provide appropriate drive currents to the first and second motors so that, during use, each motor imparts the required torque. The torque imparted by each motor may be used to cause movement about the associated rotational axis or to maintain a certain rotational position. It can thus be seen that a drive current needs to be applied continuously to each motor of the head 16 during use; i.e. each motor needs to be powered even if there is no movement required about the associated rotational axis.
It should be noted that
Referring now to
The processing unit 42 is connected to the probe controller 29 and image analyser 31 in the controller unit 26 such that the processing unit 42 can communicate with them via a communication line 46. As will be understood, the communication line 46 could be a wired or wireless communication line. The probe 4 also comprises a random access memory (RAM) device 48 for temporarily storing data, such as image data, used by the processing unit 42.
As will be understood, the probe 4 need not necessarily contain the processing unit 42 and/or RAM 48. For instance, all processing and data storage can be done by a device connected to the probe 4, for instance the controller 26 or an intermediate device connected between the probe 4 and controller 26.
As illustrated in
With reference to
In the described embodiment, the periodic optical pattern projected by the projector 40 is a set of sinusoidal fringes. However, as will be understood, other forms of structured light could be projected, such as for example a set of parallel lines having different colours or tones (e.g. alternating black and white lines, or parallel red, blue and green lines), or even for example a set of concentric circles.
Referring to
Referring first to
Once initialised and appropriately calibrated, control passes to step 104 at which point a set of images of the object 28 is obtained by the probe 4. This step is performed a plurality of times so that a plurality of image sets are obtained, wherein each set corresponds to a different perspective or view point of the object 28. In the example described, three sets of images are obtained corresponding to three different perspectives. The process of obtaining a set of images is explained in more detail below with respect to
Once all of the images have been obtained, the images are analysed at step 106 by the image analyser 31 in the controller 26. The image analyser 31 calculates from the images a set of three dimensional (“3D”) coordinates relative to the CMM 2 which describe the shape of the object 28. The method of analysing the images will be described in more detail below with reference to
The operation ends at step 110 when the system is turned off. Alternatively, a subsequent operation could be begun by repeating steps 104 to 108. For instance, the user might want to obtain multiple sets of measurement data for the same object 28, or to obtain measurement data for a different object.
Referring now to
Once the probe 4 is positioned at the first perspective, an initialising image is obtained at step 202. This involves the probe controller 29 sending a signal to the processing unit 42 of the probe 4 such that it operates the imaging device 44 to capture an image of the object 28.
The initialising image is sent back to the image analyser 31 and at step 204, the image is analysed for image quality properties. This can include, for example, determining the average intensity of light and contrast of the image and comparing them to predetermined threshold levels to determine whether the image quality is sufficient to perform the measurement processes. For example, if the image is too dark then the imaging device 44 or projector 40 properties could be changed so as to increase the brightness of the projected fringe pattern and/or adjust the expose time or gain of the imaging device 44. The initialising image will not be used in subsequent processes for obtaining measurement data about the object 28 and so certain aspects of the image, such as the resolution of the image, need not be as high as that for the measurement images as discussed below. Furthermore, in alternative embodiments, a light sensor, such as a photodiode, separate to the imaging device could be provided in the probe to measure the amount of light at a perspective position, the output of the photodiode being used to set up the projector 40 and/or imaging device 44.
Once the projector 40 and imaging device 44 have been set up, the first measurement image is obtained at step 206. What is meant by a measurement image is one which is used in the “analyse images” process 106 described in more detail below. Obtaining the first measurement image involves the probe controller 29 sending a signal to the processing unit 42 of the probe 4 such that the processing unit 42 then operates the projector 40 to project a fringe pattern onto the object 28 and for the imaging device 44 to simultaneously capture an image of the object 28 with the fringe pattern on it.
The first measurement image is sent back to the image analyser 31 and at step 208, the first measurement image is again analysed for image quality properties. If the image quality is sufficient for use in the “analyse images” process 106 described below, then control is passed to step 210, otherwise control is passed back to step 204.
At step 210, fringe shifted images are obtained for the current perspective. Fringe shifted images are a plurality of images of the object from substantially the same perspective but with the position of the fringes being slightly different in each image. The method this step is described in more detail below with respect to
Once the fringe shifted images have been obtained, all of the images are then sent back to the imager analyser 31 for analysis at step 212. As will be understood, data concerning the position and orientation that the probe 4 was at when each image was obtained will be provided to the image analyser 31 along with each image, such that 3D coordinates of the object 28 relative to the CMM 2 can be obtained as explained in more detail below. The process then ends at step 214.
As explained above, the capture perspective image set process 104 is repeated a plurality of times for a plurality of different perspectives. In this described example, the capture perspective image set process is performed three times, for first, second and third perspectives. The probe 4 is moved to each perspective either under the control of the user or controller as explained above.
With reference to
In one embodiment, the probe 4 is moved in a direction that is parallel to the imaging device's 44 image plane and perpendicular to the length of the fringes.
However, this need not necessarily be the case, so long as the position of the fringes on the object is moved. For example, the hinge shifting could be achieved by rotating the probe 4. For instance, the probe 4 could be rotated about an axis extending perpendicular to the projector's image plane 60. Optionally the probe could be rotated about an axis extending perpendicular to the imaging device's 44 image plane. In another preferred embodiment the probe 4 can be rotated about the imaging device's 44 perspective centre. This is advantageous because this ensures that the perspective of the features captured by the imaging device 44 across the different images will be the same. It also enables any processing of the images to compensate for relative movement of the object and image sensor to be done without knowledge of the distance between the object and image sensor.
For example, with reference to
The probe 4 is then moved to a second position, referred to by reference numeral 4″, by rotating the probe 4 relative to the object 70 about the imaging device's perspective centre. As will be understood, an imaging device's perspective centre is the point through which all light rays that intersect with the image plane are assumed to pass. In the figure shown, the perspective centre is referred to by reference numeral 76.
As can be seen, at the second position the projector, referred to by reference numeral 40″, has moved such that the position of the fringe pattern on the object 70 has moved. The new position of the fringe pattern on the object 70 is illustrated by the striped fringe markings 72″ on the object 70. An image 74 of the object is captured by the imaging device at its second position 44″. As can be seen, although the position of the image of the object on the imaging device 44 has changed between the first 44′ and second 44″ positions of the imaging device, the perspective the imaging device 44 has of the object 70 does not change between the positions. Accordingly, for example, features that are hidden due to occlusion in one image will also be hidden due to occlusion in the second. This is illustrated by the rays 78 illustrating the view the imaging device 44 has of the tall feature 80 on the object. As can be seen, because the imaging device 44 is rotated about its perspective centre, the rays 78 are identical for both positions and so only the location of the feature on the imaging device 44 changes between the positions, not the form of the feature itself.
Accordingly, rotating about the perspective centre can be advantageous as the image sensor's perspective of the object does not change thereby ensuring that the same points on the object are visible for each position. Furthermore, for any point viewed, the distance between the image points of it before and after the relative rotation of camera and object is independent of the distance to the object. That is, for an unknown object, if the camera is rotated about its own perspective centre it is possible to predict, for each imaged point before the rotation, where it will be imaged after rotation. The position of an image point after the rotation depends on the position of the initial image point, the angle (and axis) of rotation, and the internal camera parameters—all known values. Accordingly, as is described in more detail below, rotating about the perspective centre allows the relative motion to be compensated for without knowing the distance to the object.
The probe 4 is moved a distance corresponding to a fringe shift of ¼ period at the point where the imaging device's 44 optical axis 63 intersects the reference plane 64. As will be understood, the actual distance the probe 4 is moved will depend on the period of the fringes projected and other factors such as the magnification of the projector 40.
Once the probe 4 has been shifted, another measurement image is obtained at step 302. The steps of shifting the probe 300 and obtaining a measurement image 302 is repeated two more times. Each time, the probe is shifted so that for each measurement image the position of the fringe pattern on the object is different for all previous images. Accordingly, at the end of the obtain fringe shifted images process 210 four images of the object have been obtained for a given perspective, with the position of the fringe pattern on the object for each image being slightly different.
Reference is now made to
Accordingly, once the step 104 of capturing the first, second and third image sets has been completed, the image analyser 31 will have a set of images 1000-1006 for each of the first, second and third perspectives.
The process 106 for analysing the images will now be described with reference to
For a given perspective, a wrapped phase map is obtained using each of the four phase shifted images for that perspective in a particular order. The four wrapped phase maps for a given perspective are obtained by using each of the four phase shifted images in different orders. The method for obtaining a wrapped phase map will be explained in more detail below with reference to
As will be understood, it need not be necessary to calculate four wrapped phase maps for each perspective. For instance, two or more wrapped phase maps could be calculated for each of the perspectives. As will be understood, the more wrapped phase maps that are calculated, the more reliable the determination of real discontinuities as explained in more detail below, but the more processing resources required.
Referring to
As can be seen from the images in row B of
At step 402, discontinuities in the fringe pattern are identified for each of the perspectives. This is achieved by identifying discontinuities in each of the wrapped phase maps. A discontinuity in a wrapped phase map is identified by comparing the phase value of each pixel to the phase values of adjacent surrounding pixels. If the difference in the phase value between adjacent pixels is above a threshold level, then one of those pixels identifies a discontinuity point. As will be understood, it is not important which one of those pixels is selected as the discontinuity point so long as the selection criteria is consistent for the selection of all discontinuity points, e.g. always select the pixel to the left or to the top of the difference, depending on whether the differences between adjacent pixels are being calculated in the x or y direction along the image. As will be understood, the positions of the discontinuities, once found by the above described method, can be refined if required using image processing techniques, for example by looking at the gradient of the phase, or the gradient of the intensities in the measurement images in the surrounding region, in order to find the location of the discontinuity to sub-pixel accuracy, for example as described in J. R. Parker, “Algorithms for image processing and computer vision”, John Wiley and Sons, Inc (1997).
The preferred threshold level depends on a number of factors including the object shape, level of noise in the image and period of the fringe pattern. The threshold level could be set by a user prior to the operation or could be calculated from an analysis of the image itself.
For example, referring to the first wrapped phase map 1010 (in
Other discontinuities will also be identified in the wrapped phase maps 1010-1016, such as for example all the way along line 32, which corresponds to the edge 30.
It is possible that the above process could result in false discontinuities being identified due to the phase map being wrapped. For example, adjacent pixels might have phase values of, for instance, close to 0 degrees and 360 degrees respectively. If so, then it would appear as if there has been a large phase jump between those pixels and this would be identified as a discontinuity. However, the phase jump has merely been caused as a result of the wrapping around of the phase, rather than due to a discontinuity in the surface of the object being measured. An example of this can be seen in the first wrapped phase map 1010 for the first perspective at point 36 where the phase values jump from 360 degrees to 0 degrees (illustrated by the dark pixels and light pixels respectively). The phase value for adjacent pixels will jump significant at point 36 due to the phase map being wrapped.
Accordingly, once all discontinuities have been identified for each of the four wrapped phase maps for a given perspective, then falsely identified discontinuities are removed at step 404. This is achieved by comparing the discontinuities for each of the wrapped phase maps for a given perspective, and only keeping the discontinuities that appear in at least two of the four wrapped phase maps. As will be understood, a more stringent test could be applied by, for example, only keeping the discontinuities that appear in three or four of the wrapped phase maps. This can help overcome problems caused by noise on the images. This process 404 is performed for each of the first to third perspective image sets.
For example, as mentioned above a discontinuity would have been identified at point 36 in the first wrapped phase map 1010 for the first perspective. However, when looking at the other wrapped phase maps 1012 to 1016 for the first perspective, a discontinuity would not have been identified at that same point 36. This is because the different wrapped phase maps have been calculated using a different order of the fringe shifted images 1000 to 1006, thereby ensuring that the phase wrapping in the wrapped phase maps occurs at different points. Accordingly, as the discontinuity identified at point 36 in the first wrapped phase map 1010 is not also identified in the other wrapped maps 1012 to 1016, then that discontinuity can be discarded.
However, as the discontinuity at point 34 in the first wrapped phase map 1010 has been confirmed by discontinuities identified at the same point 34 in all the other wrapped phase maps 1012 to 1014, point 34 is identified as a real discontinuity, i.e. a discontinuity caused by a feature on the object 28, rather than as a result of phase wrapping.
At step 406, corresponding discontinuity points between each of the perspectives are identified. Corresponding discontinuity points are those points in the wrapped phase maps which identify a discontinuity caused by the same feature on the object 28. For example, discontinuity point 38 on each of the first wrapped phase maps 1010 for each of the first, second and third perspectives all identify the same corner 39 on the object 28. Corresponding discontinuity points can be determined by known matching techniques and, for example, utilising epipolar geometry. Such known techniques are described, for example in A. Gruen, “Least squares matching: a fundamental measurement algorithm” in K. B. Atkinson (ed.), “Close range photogrammetry and machine vision”, Whittles Publishing (2001). The correlated discontinuity points can then be used as target points, the 3D coordinates of which relative to the probe 4 can be determined at step 408 by known photogrammetry techniques, such as those described in, for example, M. A. R Cooper with S. Robson, “Theory of close-range photogrammetry” in K. B. Atkinson (ed.), “Close range photogrammetry and machine vision”, Whittles Publishing (2001).
Accordingly, after step 408 a number of discrete points on the object 28 will have been identified and their position relative to the probe 4 measured.
At step 410, a height map for a continuous section of the object 28 is calculated. A height map provides information on the height of the surface above a known reference plane 6 relative to the probe 4. A continuous section is an area of the object enclosed by discontinuous features, e.g. the face of a cube which is enclosed by four edges. Continuous sections can be identified by identifying those areas in the wrapped phase map which are enclosed by discontinuity points previously identified in steps 402 to 406. The height map provides measurement data on the shape of the surface between those discrete points. Methods for obtaining the height map for a continuous section are described below in more detail with respect to
As is usual in similar fringe analysis systems, the unwrapped phase map is correct only to some unknown multiple of 2π radians, and therefore the height above the reference plane 64 may be wrong by whatever height corresponds to this unknown phase difference. This is often called 2π ambiguity. The measured 3D coordinates of the real discontinuities obtained in step 408 are used in order to resolve these ambiguities.
At this stage, the 3D coordinates of the real discontinuity points obtained in step 408 and the height map data obtained in step 410 provide the position of the object relative to a predetermined reference point in the probe 4. Accordingly, at step 412, these coordinates are converted to 3D coordinates relative to the CMM 2. This can be performed using routine trigonometry techniques as the relative position of the CMM 2 and the reference point in the probe 4 is known from calibration, and also because the position and orientation of the probe 4 relative to the CMM 2 at the point each image was obtained was recorded with each image.
The process for calculating a wrapped phase map 400 will now be described with reference to
This can be seen more clearly with reference to
Cropping the images is one example of a coordinate transformation, where the transformation is a linear function. This can be most accurate in situations where the distance to the object is known, or, for instance, where the stand-off distance is large compared to the depth of the measuring volume. As will be understood, and with reference to
Once the pixel data has been compensated for the relative motion so that the same pixel in each adjusted image represents the same point on the object, the next step 502 involves using a phase-shifting algorithm to calculate the wrapped phase at each pixel. A suitable phase-shifting algorithm not requiring known phase shift, for instance the Carré algorithm, may be used to calculate the wrapped phase, phase shift and modulation amplitude.
The process for calculating a wrapped phase map 400 is repeated three further times for each perspective image set, each time using the phase shifted images in a different order, so as to obtain four wrapped phase maps for each perspective. Accordingly, in the process for calculating the wrapped phase maps 400 is performed twelve times in total.
A first process for obtaining the height map 410 will now be described with reference to
In contrast to the methods for calculating a wrapped-phase map described above in connection with
As an example, with reference to
h is the distance from the imaging device's 44 perspective centre to the object point imaged at x, and δh is the change in this distance after translation δX. a is the known direction of the imaging device's optic axis, and Xc is the position of the perspective centre, also known. The change in h due to the motion of the imaging device 44 only is equal to δX.a. If this quantity is zero, so that the motion is perpendicular to the imaging device axis and parallel to the image plane, then any remaining change in h must be due to the object shape.
The change in h is actually recorded as a change in phase, δφ, where, again, this will consist of a component caused by the shape of the object, and a component caused by any motion of the imaging device parallel to its axis.
To measure the phase at a given pixel, we take multiple phase shifted images. The intensity recorded at a pixel in image k can be expressed as
Ik=A±B cos φk
where:
The Carré algorithm is used to calculate for each pixel in a given image in an image set, the phase and phase shift and modulation amplitude from the four phase-shifted images. The Carré algorithm assumes that the four shifts in phase are equal. This will be the case, for instance, if the motion used is a translation and the surface is planar. If this is not the case then a good approximation can be obtained by choosing motion that it small enough that the surface gradient does not vary significantly over the scale of the motion.
The phase data can be converted to height data. Optionally the phase shift data can be converted to gradient data and subsequently to height data using the method described below in connection with
The above described method provides optimum results when the object's reflectivity and surface gradient is substantially constant on the scale of the relative motion. Accordingly, it can be preferred that the motion between the images in an image set is small. Areas of the surface at too low or too high a gradient relative to the imaging device, or with a high degree of curvature, can be detected by inspecting the modulation amplitude returned by the Carré algorithm, and can subsequently be measured by changing the relative motion used to induce the phase shift and if necessary by viewing the object from a different perspective.
A Carré algorithm provides both phase and phase shift data for each pixel in an image. The above methods described above in connection with
It is an advantage of the invention that the projector may consist simply of a grating, light source, and focussing optics. There is no need for any moving parts within the projector or for a programmable projector—only one pattern is required to be projected. Furthermore, no information about the distance to the object is required, except that it (or a section of it) is within the measuring volume—there is no requirement to have a large stand-off distance compared to the measurement volume. Furthermore, the motion between the object and probe unit need not necessarily be in any particular direction, and may be produced by a rotation rather than a translation or a combination of the two.
In the described embodiments the probe is mounted on a mounting structure equivalent to the quill of a CMM. This invention is also suitable for use with planning the course of motion of a measurement device mounted on other machine types. For example, the probe 4 could be mounted on a machine tool. Further, the probe 4 may be mounted onto the distal end of an inspection robot, which may for example comprise a robotic arm having several articulating joints.
As will be understood, the above provides a detailed description of just one particular embodiment of the invention and many features are merely optional or preferable rather than essential to the invention.
For instance, in the described embodiments the probe is mounted on a mounting structure equivalent to the quill of a CMM. This invention is also suitable for use with planning the course of motion of a measurement device mounted on other machine types. For example, the probe 4 could be mounted on a machine tool. Further, the probe 4 may be mounted onto the distal end of an inspection robot, which may for example comprise a robotic arm having several articulating joints. Furthermore, the probe 4 might be in a fixed position and the object could be moveable, for example via a positioning machine.
As will be understood, the description of the specific embodiment also involves obtaining and processing images to obtain topographical data via phase analysis of a periodic optical pattern. As will be understood, this need not necessarily be the case. For example, techniques such as triangulation might be used instead of using phase-stepping algorithms. Further still, if phase-stepping methods are to be used, the shift in the pattern could be obtained using techniques other than that described above. For instance, they could be obtained by changing the pattern projected by the projector, or by moving the object.
The description of the specific embodiment also involves obtaining and processing images to obtain photogrammetrical target points by identifying discontinuities in the pattern projected onto the object. As will be understood, this need not necessarily be the case. For example, target points can be identified using other known methods. For instance, target points can be identified by markers placed on the object or by projecting a marker onto the object.
Furthermore, the description describes using the same images for identifying target features as well as for obtaining topographical data. However, this need not necessarily be the case as, for instance, separate images could be obtained for use in the different processes. In this case, if target features are identified using markers stuck on or projected onto the object then it would not be necessary to project a pattern during the obtaining of images for use in identifying target features.
Further still, although the invention is described as a single probe containing a projector and imaging device, the projector and image sensor could be provided separately (e.g. so that they can be physically manipulated independently of each other). Furthermore, the probe could comprise a plurality of imaging devices.
Weston, Nicholas John, Huddart, Yvonne Ruth
Patent | Priority | Assignee | Title |
11454106, | Jun 15 2017 | DRILLSCAN FRANCE SAS | Generating drilling paths using a drill model |
Patent | Priority | Assignee | Title |
4767212, | Sep 19 1984 | Ishida Scales Mfg. Co., Ltd. | Volume determination process |
5135309, | Mar 09 1990 | Carl-Zeiss-Stiftung | Method and apparatus for non-contact measuring of object surfaces |
5175601, | Oct 15 1991 | OPTON CO , LTD | High-speed 3-D surface measurement surface inspection and reverse-CAD system |
5237404, | Jun 28 1990 | Mazda Motor Corporation | Inspection apparatus with improved detection of surface defects over large and curved surfaces |
5251156, | Aug 25 1990 | Carl Zeiss Industrielle Messtechnik GmbH | Method and apparatus for non-contact measurement of object surfaces |
5262844, | Jul 03 1990 | Bertin & Cie | Apparatus for determining the three-dimensional shape of an object optically without contact |
5289264, | Sep 26 1991 | Method and apparatus for ascertaining the absolute coordinates of an object | |
5319445, | Sep 08 1992 | OPTON CO , LTD | Hidden change distribution grating and use in 3D moire measurement sensors and CMM applications |
5372502, | Sep 02 1988 | Kaltenbach & Voight GmbH & Co. | Optical probe and method for the three-dimensional surveying of teeth |
5488477, | Nov 15 1993 | Zygo Corporation | Methods and apparatus for profiling surfaces of transparent objects |
5646733, | Jan 29 1996 | Ismeca Semiconductor Holdings SA | Scanning phase measuring method and system for an object at a vision station |
5953448, | Mar 01 1996 | Textile/Clothing Technology Corporation | Contour measurement of an object having a discontinuous surface using block point identification techniques |
6028672, | Sep 30 1996 | TECHNEST HOLDINGS, INC | High speed three dimensional imaging method |
6055056, | May 06 1996 | Fraunhofer-Gesellschaft zur Foerderung der Angewandten Forschung E.V. | Device for non-contact measurement of the surface of a three dimensional object |
6084712, | Nov 03 1998 | DYNAMIC MEASUREMENT AND INSPECTION, LLC | Three dimensional imaging using a refractive optic design |
6100984, | Jun 11 1999 | Ford Global Technologies, Inc | Surface measurement system with a laser light generator |
6144453, | Sep 10 1998 | MICROSCAN SYSTEMS, INC | System and method for three-dimensional inspection using patterned light projection |
6256099, | Nov 06 1998 | INDUSTRIAL METRICS INC , THE | Methods and system for measuring three dimensional spatial coordinates and for external camera calibration necessary for that measurement |
6291817, | Jun 23 1998 | Fujinon Corporation | Moire apparatus having projection optical system and observation optical system which have optical axes parallel to each other |
6421629, | Apr 30 1999 | NEC Corporation | Three-dimensional shape measurement method and apparatus and computer program product |
6438272, | Dec 31 1997 | The Research Foundation of State University of NY | Method and apparatus for three dimensional surface contouring using a digital video projection system |
6532299, | Apr 28 2000 | SOLAR CAPITAL LTD , AS SUCCESSOR AGENT | System and method for mapping a surface |
6600511, | Jan 08 1997 | PENTAX Corporation | Camera for use in photogrammetric analytical measurement |
6674893, | Oct 19 1999 | Fuji Xerox Co., Ltd. | Three-dimensional shape measuring apparatus |
6728423, | Apr 28 2000 | SOLAR CAPITAL LTD , AS SUCCESSOR AGENT | System and method for mapping a surface |
6738508, | Apr 28 2000 | SOLAR CAPITAL LTD , AS SUCCESSOR AGENT | Method and system for registering data |
6744914, | Apr 28 2000 | SOLAR CAPITAL LTD , AS SUCCESSOR AGENT | Method and system for generating a three-dimensional object |
6744932, | Apr 28 2000 | SOLAR CAPITAL LTD , AS SUCCESSOR AGENT | System and method for mapping a surface |
6771809, | Apr 28 2000 | SOLAR CAPITAL LTD , AS SUCCESSOR AGENT | Method and system for registering data |
7001024, | Feb 14 2001 | Ricoh Company, LTD | Image input apparatus using projected light |
7068836, | Apr 28 2000 | SOLAR CAPITAL LTD , AS SUCCESSOR AGENT | System and method for mapping a surface |
7103211, | Sep 04 2001 | IMAGE METRICS, INC | Method and apparatus for generating 3D face models from one camera |
7133551, | Feb 07 2002 | National Central University | Semi-automatic reconstruction method of 3-D building models using building outline segments |
7136170, | Apr 24 2002 | Fraunhofer-Gesellschaft zur Foerderung der Angewandten Forschung E V | Method and device for determining the spatial co-ordinates of an object |
7171328, | Aug 30 2004 | National Technology & Engineering Solutions of Sandia, LLC | Method for measuring thermal properties using a long-wavelength infrared thermal image |
7256899, | Oct 04 2006 | PATENT ARMORY INC | Wireless methods and systems for three-dimensional non-contact shape sensing |
7310514, | Mar 16 2001 | LENOVO INNOVATIONS LIMITED HONG KONG | Transmission-origin mobile telephone capable of detecting the media types and data formats of a multimedia message receivable by destination mobile telephones in a multimedia communication system |
7315643, | Mar 12 2002 | NEC Corporation | Three-dimensional shape measurement technique |
7394536, | Jun 04 2004 | AGC INC | Method and apparatus for inspecting front surface shape |
7430312, | Jan 07 2005 | Qualcomm Incorporated | Creating 3D images of objects by illuminating with infrared patterns |
7538891, | Sep 30 2005 | California Institute of Technology | Surface characterization based on lateral shearing of diffracted wave fronts to measure in-plane and out-of-plane displacement gradient fields |
7545516, | Dec 01 2005 | NEPTEC DESIGN GROUP LTD | Full-field three-dimensional measurement method |
7684052, | Oct 20 2005 | Omron Corporation | Three-dimensional shape measuring apparatus, program, computer-readable recording medium, and three-dimensional shape measuring method |
7898651, | Oct 24 2005 | CARBON BLACK, INC | Methods and apparatus for inspecting an object |
7912673, | Mar 11 2005 | Creaform Inc. | Auto-referenced system and apparatus for three-dimensional scanning |
7929751, | Nov 09 2005 | Hangzhou Conformal & Digital Technology Limited Corporation | Method and apparatus for absolute-coordinate three-dimensional surface imaging |
8111907, | Jul 31 2007 | RTX CORPORATION | Method for repeatable optical determination of object geometry dimensions and deviations |
20020057832, | |||
20020181764, | |||
20030123707, | |||
20030174880, | |||
20040246496, | |||
20050018209, | |||
20050201611, | |||
20050271264, | |||
20060093206, | |||
20060103854, | |||
20060210146, | |||
20060268153, | |||
20070057946, | |||
20070183631, | |||
20070206204, | |||
20070211258, | |||
20080075328, | |||
20080165341, | |||
20080239288, | |||
20090238449, | |||
20090268214, | |||
20100008588, | |||
20100046005, | |||
20100296104, | |||
20100329538, | |||
20110317879, | |||
20120307260, | |||
CN101105393, | |||
CN1952595, | |||
DE19634254, | |||
DE19846145, | |||
DE3829925, | |||
DE3938714, | |||
DE4301538, | |||
EP402440, | |||
EP445618, | |||
GB2088095, | |||
GB2375392, | |||
GB2434541, | |||
JP11211442, | |||
JP11211443, | |||
JP2000097672, | |||
JP2001012925, | |||
JP2001108422, | |||
JP2002090126, | |||
JP2002162215, | |||
JP200254912, | |||
JP2003269928, | |||
JP2003527582, | |||
JP2004317495, | |||
JP2005345383, | |||
JP2006179031, | |||
JP2007024764, | |||
JP2007093412, | |||
JP2007121294, | |||
JP2007315882, | |||
JP2008076107, | |||
JP4204314, | |||
JP61114109, | |||
JP6138055, | |||
JP7260451, | |||
WO21034, | |||
WO151887, | |||
WO2004083778, | |||
WO2004096502, | |||
WO2005059470, | |||
WO2005073669, | |||
WO2007121953, | |||
WO2007125081, | |||
WO2008046663, | |||
WO2009024756, | |||
WO2009024757, | |||
WO2009024758, | |||
WO2009094510, | |||
WO2009097066, | |||
WO9115732, | |||
WO9705449, | |||
WO9736144, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Dec 05 2014 | Renishaw PLC | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Mar 27 2017 | ASPN: Payor Number Assigned. |
May 30 2017 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Jun 01 2021 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Date | Maintenance Schedule |
May 24 2019 | 4 years fee payment window open |
Nov 24 2019 | 6 months grace period start (w surcharge) |
May 24 2020 | patent expiry (for year 4) |
May 24 2022 | 2 years to revive unintentionally abandoned end. (for year 4) |
May 24 2023 | 8 years fee payment window open |
Nov 24 2023 | 6 months grace period start (w surcharge) |
May 24 2024 | patent expiry (for year 8) |
May 24 2026 | 2 years to revive unintentionally abandoned end. (for year 8) |
May 24 2027 | 12 years fee payment window open |
Nov 24 2027 | 6 months grace period start (w surcharge) |
May 24 2028 | patent expiry (for year 12) |
May 24 2030 | 2 years to revive unintentionally abandoned end. (for year 12) |