The disclosure of Japanese Patent Application No. 2018-127917 filed on Jul. 4, 2018 including specifications, drawings and claims is incorporated herein by reference in its entirety.
The present invention relates to a dimension measurement method using a projection image obtained by an X-ray CT apparatus. In particular, the present invention relates to a dimension measurement method that uses a projection image obtained by an X-ray CT apparatus and can achieve high-precision dimension measurement of an object to be measured made of a single material by using several tens of projection images and design information without performing CT reconstruction.
Medical X-ray CT apparatuses were put to practical use in the 1970s. Based on such techniques, X-ray CT apparatuses intended for industrial products emerged in the early 1980s. Since then, industrial X-ray CT apparatuses have been used to observe and inspect castings for voids, welded parts for poor welding, and circuit patterns of electronic circuit parts for defects that are difficult to check for by appearances. As 3D printers are becoming prevalent in recent years, demands not only for observation and inspection inside articles produced by 3D printers but also for 3D dimension measurement of internal structures and higher precisions are on the increase.
With the foregoing technical trends, measurement X-ray CT apparatuses are becoming prevalent mainly in Germany (see Japanese Patent Application Laid-Open Nos. 2002-071345 and 2004-012407). Such a measurement X-ray CT apparatus performs X-ray irradiation while rotating an object to be measured placed on the center of a rotating table.
Aside from the control of the devices, the control PC 22 has a function of displaying a projection image of the work W projected on the X-ray detector 14 and a function of reconstructing a tomographic image from a plurality of projection images of the work W.
As shown in
The position of the work W can be moved by controlling X-, Y-, and Z-axes of the XYZ movement mechanism 18 and a θ-axis of the rotating table 16. The imaging range (position and magnification) and the imaging angle of the work W can thereby be adjusted.
To obtain a tomographic image or volume data (stereoscopic image or a set of tomographic images in the Z-axis direction) of the work W, which is the ultimate goal of the X-ray CT apparatus 1, a CT scan is performed on the work W
The CT scan includes two processes, namely, acquisition of projection images of the work W and CT reconstruction. In the projection image acquisition process, the rotating table 16 on which the work W is placed is rotated either continuously at a constant speed or intermittently with a constant step width during X-ray irradiation, whereby projection images of the work W are obtained in all circumferential directions (at regular intervals). The obtained projection images in all circumferential directions (at regular intervals) are subjected to CT reconstruction using a CT reconstruction algorithm such as a back projection algorithm and an iterative reconstruction algorithm. As illustrated in
The obtained volume data can be used to perform various measurements such as dimension measurement and defect analysis
As described above, X-ray CT based internal and external measurement of an object to be measured includes generating volume data (three-dimensional image) through CT reconstruction of a large number of projection images obtained by an X-ray CT apparatus, and performing measurement on the volume data. To generate volume data having resolution needed for measurement, several hundreds to several thousands of projection images are typically needed. With CT reconstruction time also taken into account, there has been a problem of needing a lot of time for measurement.
The present invention has been made in order to solve the above-described problem in the conventional technique, and an object thereof is to achieve high-precision dimension measurement of an object to be measured made of a single material by using several tens of projection images and design information without performing CT reconstruction.
The present invention solves the foregoing problem by, in measuring a dimension of an object to be measured made of a single material: obtaining a plurality of transmission images of the object to be measured by using an X-ray CT apparatus, and then generating respective projection images; registering the projection images with CAD data used in designing the object to be measured; and calculating the dimension of the object to be measured by using a relationship between the registered CAD data and. projection images.
Here, a representative projection image group can be selected for the registered CAD data. Combinations of all projection values in the representative projection image group with transmission lengths estimated from the CAD data can be obtained. The dimension of the object to be measured can be calculated by using a relationship between the obtained projection values and the estimated transmission lengths.
An attenuation coefficient of an X-ray can be determined by using the registered CAD data so that a difference between a calculated thickness at a measurement point having a known thickness and a design value decreases. The dimension of the object to be measured can be calculated by using the attenuation coefficient.
The projection images and the CAD data can be registered by: determining barycentric positrons of the object to be measured in the respective projection images; calculating a three-dimensional barycentric position of the object to be measured by using the determined barycentric positions of the object to be measured in the respective projection images; determining a barycentric position of the object to be measured on the CAD data; making the barycentrc positions of the object to be measured determined from the respective projection images coincide with the barycentric position of the object to be measured on the CAD data; and rotating the CAD data so that orientation of the object to be measured in one of the projection images coincides with that of the object to be measured on the CAD data.
The barycentric position of the object to be measured on the CAD data can be determined by assuming, for all mesh triangles, a set of triangular pyramids with a given point as apexes and the respective triangles as bases, and taking a weighted average of volumes and barycenters of the respective triangular pyramids.
Alternatively, the barycentric position of the object to be measured on the CAD data can be determined by using a solid model 3D-CAD software.
Orientation alignment by rotation of the CAD data can be performed by determining orientation about axes of the projection image by comparing moment of inertial while rotating the CAD data about the axes.
The axes may be a horizontal axis and a vertical axis.
Orientation alignment by rotation of the CAD data can be performed by rotating the CAD data so that contours coincide.
Orientation alignment by rotation of the CAD data can be performed by initially determining orientation. about horizontal and vertical axes of the projection image by comparing moment of inertial while rotating the CAD data about the horizontal and vertical axes, and then rotating the CAD data within a plane of the projection image so that contours coincide.
The coincidence of the contours can be determined from a ratio R of an overlapping area Sa to an entire area Sb, i.e., R=Sa/Sb.
According to the present invention, CT reconstruction does not need to be performed, This can significantly reduce time needed for measurement, and achieve internal and external measurement unaffected by shape errors resulting from a CT reconstruction algorithm.
These and other novel features and advantages of the present invention will become apparent from the following detailed description of preferred embodiments.
The preferred embodiments will be described with reference to the drawings, wherein like elements have been denoted throughout the figures with like reference numerals, and wherein;
An embodiment of the present invention will be described in detail below with reference to the drawings. It should be noted that the present invention is not limited to the description of the following embodiment or examples. Constituent features of the embodiment and examples described below include what are readily conceivable by those skilled in the art, what are substantially identical, and what are in the so-called range of equivalency. The components disclosed in the following embodiment and examples may be combined as appropriate or selected and used as appropriate.
In the present embodiment, (A) a barycenter is determined, and then (B) CAD data is rotated about x-, y-, and z-axes on a simulator to generate virtual projection images, followed by matching. Next, (C) a thickness measurement point is selected, and (D) the thickness is measured by using registered CAD data and a captured image.
For thickness measurement, as shown in
[Eq. 1]
L=f(p)=w1p+w2p2+w3p3 (1)
Next, (B) a thickness T is determined by using unit vectors n and a and the transmission length L estimated from the projection value p:
[Eq. 2]
T=L({right arrow over (a)}·{right arrow over (n)}) (2)
In the present embodiment, registration between projection images and CAD data is initially performed. The attenuation coefficient of an object to be measured is then estimated by using the projection images and design information about the CAD data, and the thickness of a measurement point is measured.
Specifically, in step 100 of
Next, the processing proceeds to step 110. In step 110, the barycentric positions of the respective projection images are calculated. A projection value p of a projection image is the integral of the amounts of linear attenuation when the X-ray 13 is transmitted through the object to be measured W. If the object to be measured W is made of a single material, the pixel value therefore corresponds to mass.
As illustrated in
Deviations of the X-ray source 12 and errors in the projection image due to the cone beam can thereby be taken into account.
Next, the processing proceeds to step 120. In step 120, a three-dimensional barycentric position is calculated by using the barycentric positions of the respective projection images. Assume that the object to be measured W is fixed and the X-ray source 12 and the X-ray detector 14 are rotated. As illustrated in
Next, the processing proceeds to step 130. In step 130, registration of the CAD data is performed. Specifically, as shown in
As shown in
A signed volume Vi of each triangular pyramid is determined by the following Eq. (4), and the barycenter Gi of the triangular pyramid is determined as well:
After the calculation of the volumes Vi and the barycenters Gi for all the triangles, a weighted average of the volumes V and the barycenters Gi is determined as expressed by Eq. (5). The resulting weighted average is assumed as the barycenter of the CAD model. The reason. is that the barycenter would deviate depending on the mesh size if vertex coordinates were simply averaged. Such a technique is then used, taking volumes into account.
The barycenter can be determined, for example, by using solid model (not surface model) 3D-CAD software if the reliability of barycentric calculation by the software is high.
Next, in step 150, the barycentric position on the CAD data and the baryoentric positions of the actual projection images are aligned so that a projection image of the CAD data (CAD projection image) can be calculated each time the CAD data is rotated.
Specifically, as illustrated in
A method for rotating the CAD data will be described. As illustrated in step 160 of
Specifically, while rotating the CAD data about the horizontal (y) and vertical (z) axes (in
[Eq. 5]
1=∫Pθ(x,y)(x2+y2)dxdy (6)
The value is compared with the moment of inertia of the actual projection image.
The values of the moment of inertia coincide when the orientation of the CAD data about the horizontal and vertical axes coincides with that of the actual projection image.
Once the orientation of the CAD data with respect to the representative actual projection image is determined, the orientation of the CAD data with respect to other actual projection images can be calculated from angular information during acquisition of the representative actual projection image.
Next, in step 170, contours are compared as shown in
[Eq. 6]
R=S
a
/S
b (7)
where Sa is an overlapping area, and Sb is an entire area.
The higher the degree of contour coincidence R, the better the matching. By using the degree of contour coincidence R, the orientation. having a high probability of coincidence in shape can thus be calculated with a small amount of calculation.
The captured images and the CAD data are registered as described above. The orientation can be precisely aligned by performing the orientation alignment by a combination of the method using the moment of inertia and the method using the contours as described above. The orientation alignment can be performed by using either one of the methods.
Next, the processing proceeds to step 200 of
The object to be measured W and the CAD data have been registered by the processing up to step 130. If the effect of beam hardening by the X-rays is ignored, as illustrated in
where L is the length of transmission (referred to as transmission length) L=p/μ.
The thickness T can therefore be calculated from Eq. (8) if the attenuation coefficient μ can be determined.
As illustrated in
Specifically, in step 200 of
In step 210, the attenuation coefficient μ is estimated so that the differences from the thickness on the CAD data decrease, for example, by using the least squares method as follows:
In step 220, the thickness measurement value T can be calculated from the estimated attenuation coefficient is
[Eq. 9]
T=average(T1, T2, . . . , Ti) (12)
After the attenuation coefficient μ is thus estimated, the thickness T at a given measurement point can be determined.
The actual attenuation coefficient μ varies due to the effect of beam hardening. The greater the transmission length L, the lower the attenuation coefficient μ. The foregoing linearity between L and μ is therefore not maintained, and the pixel value becomes lower that for the transmission length.
Transmission lengths L are then expressed by a function f of p. Specifically, several pieces of projection image data (representative projection image group) are selected for the registered CAD data, and combinations of all the projection values in the representative projection image group with transmission lengths estimated from the CAD data are obtained. The relationship between the obtained projection values and the group of pieces of data about the transmission lengths is approximated by using the function f.
For example, the function f can be expressed by the following polynomial:
[Eq. 10]
L=f(p)=w1*p+w2*p2+w3*p3 . . . wn*pn=Σ(wn*pn) (13)
Here, the unknown constants wn can be estimated by using the least squares method, for example.
A plurality of known measurement points S1, . . . , Si are arbitrarily set, and the function f is determined so that differences between the calculated thicknesses at the measurement points and the design value T0 decrease. Specifically, the function f is determined so that differences from the thickness on the CAD data decrease, for example, by using the least squares method as follows:
[Eq. 11]
E=Σ(T0i−Ti)2→min (14)
T
i
=L*|{right arrow over (n)}·{right arrow over (a)}|=f(p)*|{right arrow over (n)}·{right arrow over (a)}| (15)
The function f is not limited to a polynomial.
[Eq. 12]
L=f(p)=13.086914p+2.244019p2+0.321014p3 (16)
Applying the formula to five measurement points having a thickness of 20.05 to 20.07 mm yielded an average of 21.36 mm, where the measurement values at the five measurement points were 21.386114 mm, 21.242886 mm, 21.446529 mm, 21.360237 mm, and 21.367506 mm.
In the foregoing embodiment, the present invention is applied to the measurement of a work. However, the object to be measured is not limited to a work.
It should be apparent to those skilled in the art that the above-described embodiments are merely illustrative which represent the application of the principles of the present invention. Numerous and varied other arrangements can be readily devised by those skilled in the art without departing from the spirit and the scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
2018-127917 | Jul 2018 | JP | national |