1. Field of the Invention
The present invention relates generally to 3D model reconstruction acquisition, and more particularly, to a 3D model reconstruction acquisition based on images of incremental or decremental liquid level.
2. Description of the Related Art
As regards the conventional 3D model reconstruction acquisition, for example, Taiwan Patent Pub. No. 381008 disclosed a localization apparatus and an orientation calibration approach, by which 2D scanned images are reconstructed to become 3D images and the images of three orthogonal and random sections, at which end points of an operating instrument are located.
In addition, Taiwan Patent Pub. No. 555114 disclosed a 3D image reconstruction module, in which the captured image data is rapidly reconstructed by the 3D image processing frame and digital signal processing frame of data flow control constituted by the pipe-type parallel processing architecture to become 3D image data.
Further, a common 3D coordinate measuring machine, like the contact-type 3D coordinate measuring machine produced by Sheffield Measurement or the noncontact-type 3D coordinate measuring machine produced by Mycrona Measurement System, can measure the 3D model of an object. However, the aforesaid 3D coordinate measuring machines are too expensive to be afforded by the general small research organizations or factories. Besides, the machines are large and less mobile to have limitations in operation.
The primary objective of the present invention is to provide a 3D model reconstruction acquisition, which captures a series of images of incremental or decremental liquid level to compute a 3D model of an object and can be done in the environment having water and thus be applied to various environments.
The foregoing objective of the present invention is attained by the 3D model reconstruction acquisition including the steps of preparing a transparent container and at least one image capture device, wherein the image capture device is spaced from the transparent container, the transparent container is shaped like a hollow cylinder and has a geometric cross-section, an object is placed in the transparent container, and a liquid is received in the transparent container; keeping the liquid level rising or lowering to allow the liquid level to pass through a surface of the object and then keeping capturing an image of the liquid level every predetermined duration by the image capture device to capture a series of the images; computing a liquid-level equation for each of the images by using curves of the images between the object and the incremental or decremental liquid level confined by the transparent container; computing 3D coordinates of the curves in accordance with the liquid-level equation of each image; and collecting 3D coordinates of all of the curves to create a 3D model of the object.
Referring to
a) Prepare a transparent container 11 and an image capture device 13. The transparent container 11 is cylindrical, having a cross-section of predetermined geometric figure. In this embodiment, the cross-section of transparent container 11 is circular; an object 15 is placed in the transparent container 11; a liquid 16 is received in the transparent container 11; and the image capture device 13 is a camera spaced from the transparent container 11 for a predetermined interval and is higher than the object 15, for capturing images of the object 15 and the liquid 16, wherein the camera is relatively lower than the object 15.
b) As shown in
c) Compute a liquid-level equation for each of the images by using the images and the shape of liquid level 17 confined by the transparent container 11.
d) Compute 3D coordinates of all of curves 19 between the images and the incremental or decremental liquid level in accordance with the liquid-level equations of the images. The curves 19 shown in
e) Collect 3D coordinates of all of the curves 19 to create a 3D model of the object 15.
In light of the above steps, the 3D model of the object 15 facing the image capture device 13 is created. In the above steps, the liquid-level equation for each image is inferred from the steps mentioned below.
An ellipsoid equation of an image plane 33 is defined as follows: ax2+bxy+cy2+dx+ey+f=PTCP=0, wherein
Next, the pose-from-ellipse algorism is taken through the model shown in
The normal vector in the meantime is the parameter of the equation the plane, at which the right circle is located.
Diagonalize the transformation matrix
to call for the eigenvalue λ1<λ2<λ3, whose corresponding eigenvector is e1, e2, e3, such that a point P located on the image plane 33 passes through the transformation matrix to call for P′=R1TP=[e1|e2|e3]P. Next, the rotation angle θ of an XZ-axis of the image plane 33 must be given, wherein the transformation matrix is defined as:
The coordinate system is a vector based on a center of the image capture device 13. If it is intended to call for the normal vector of the right-circle plane 31, the vector at a Z-axis must become minus. In this way, the normal vector of the right-circle plane 31 is defined as:
Meanwhile, the liquid level has the even normal vector. After that, the equation of the liquid level must be calculated. Referring to
such that by the pose-from-ellipse algorism we have that the normal vectors {right arrow over (n)} of the right circle in the space are the front three parameters of a plane equation defined as aX+bY+cZ+d=0, and then we can have the final parameter to complete the plane equation. The radius R of the transparent container 11 is given, ∥M1−M0∥=R, {right arrow over (p)}=M1−M0, and the inner product of the vectors {right arrow over (p)} and {right arrow over (n)} is zero, i.e. {right arrow over (p)}·{right arrow over (n)}=0. Suppose the plane of the camera center of the image capture device 13 passes through the following two vectors of the image plane 33.
Iterate and approximate correct λ0 and λ1 in the above vectors and then substitute the points [X0, Y0, Z0] or [X1, Y1, Z1] located on a liquid level 35 into the above-mentioned plane equation to have the final parameter “d”. If it is intended to calculate the more correct and stabler plane equation, substitute multiple vectors located in the images and passing through the ellipse to call for the parameter “d”. Because the substitution of each point calls for a liquid-level equation, it is necessary to call for the best liquid-level equation. After having the 3D coordinate points of the vectors locate on the right circle and extending from the edges of the ellipse, we can call for the best parameters by singular value decomposition (SVD), while the 3D coordinate points are more than three; to have the best liquid-level equation defined as follows:
SVD(A) can call for the best liquid-level equation defined as: aX+βY+γZ+δ=0 at the current height, wherein the parameters α, β, γ are the plane normal vectors.
In addition, in the above-mentioned steps, the 3D coordinates of the curve 15 between the current liquid level and the object 15 are what we need; each point on the curve in the image is a vector and after the vector extends for λi times, substituting the vector into the aforesaid liquid-level equation must have zero as shown below.
αλixi+βλiyi+γλizi+δ0
As per this equation, we have
for the multiple λi. All of the points captured from the curves of the images can be called for their 3D coordinates in the space in accordance with the aforesaid equation.
The images are serially captured during the uprising of liquid level 17, such that aforesaid calculation can be done for each image to call for the 3D coordinates at different heights. After collecting those 3D coordinates, we can have the 3D model of the object 15.
The aforesaid approach affords creating the 3D model of one side of the object 15. If it is intended to create a 3D model of another side of the object 15, place the transparent container 11 on a turntable 21, wherein the rotary axis of the turntable 21 overlaps the center of the Z-axis of the transparent container 11, as shown in
Referring to
In conclusion, the present invention includes the following advantages.
1. The present invention is based on the incremental or decremental liquid level by means of the image processing and the plane equation to create the 3D model of the object.
2. The present invention can be done in the environment having water and thus be applied to various environments.
Although the present invention has been described with respect to specific preferred embodiments thereof, it is no way limited to the details of the illustrated structures but changes and modifications may be made within the scope of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
97126194 | Jul 2008 | TW | national |