# Height Estimation of Target Objects Based on Structured Light

Authors: Wei Liu; Yongsheng Zhao
Journal: Advances in Multimedia
 (2018)

---

## Abstract

The height estimation of the target object is an important research direction in the field of computer vision. The three-dimensional reconstruction of structured light has the characteristics of high precision, noncontact, and simple structure and is widely used in military simulation and cultural heritage protection. In this paper, the height of the target object is estimated by using the word structure light. According to the height dictionary, the height under the offset is estimated by the movement of the structured light to the object. In addition, by effectively preprocessing the captured structured light images, such as expansion, seeking skeleton, and other operations, the flexibility of estimating the height of different objects by structured light is increased, and the height of the target object can be estimated more accurately.


---

## Body

## 1. Introduction

In recent years, with the development of science and technology, three-dimensional reconstruction technology as an important part of machine vision has attracted more and more attention, especially in industrial product design and cultural heritage protection. However, based on the three-dimensional reconstruction of the surface of the structured light, it is possible to reconstruct the surface of the object by laser scanning without touching the object, which can greatly protect the original culture from damage in the cultural heritage. This can make a great contribution to the excavation of ancient excellent culture and the spread of Chinese civilization. Therefore, the three-dimensional reconstruction based on structured light has important practical significance for the protection of cultural heritage and the design of industrial products [1–3]. At present, in the three-dimensional reconstruction of the main use of word-structured optical scanning method and three-dimensional reconstruction of structured light technology as a noncontact active measurement technology, with low cost, high precision, vision, real-time, anti-interference ability, and so on, these characteristics will inevitably make the next few years of this reconstruction will have a better development prospects [4, 5].3D surface reconstruction is to rebuild the actual shape of the real life of the object, which has become an important topic in computer vision. And researchers from all over the world have made considerable achievements in this regard. The structure of three-dimensional reconstruction system for structured light mainly includes cameras and lasers; you can use the ordinary camera to complete the task of detection, but because of the different structure of the light, the experimental results will be affected. According to the laser projection of different ways can be divided into point, line, and multiline structure of light. Point structure light for the laser projector projection of a beam of light, measured the surface of the measured object a point; the camera can only get this photo of the three-dimensional coordinates of the information; the amount of information is too small; a word line structure light projector projects a light plane; the intersection of the light plane and the measurement object can draw a cross section information; the algorithm is easy to use; multirow structured light projects multiple light planes; the surface of the object forms multiple laser lines; pictures can give us multiple cross-section information, which is large amount of information; however, it is necessary to increase the matching of light bars, which greatly improves the difficulty and complexity of the algorithm and is still in the stage of experimental research [6–8].At home and abroad for the 3D surface reconstruction conducted in-depth study, Horn [9] proposed the concept of SFS, which is a widely concerned three-dimensional shape reconstruction of the important ideas. The main content of this idea is to reconstruct the three-dimensional shape of the surface of the object by identifying and analyzing the shape information of the direction of the light, the brightness, the surface shape of the object, and the grayscale variation of the reflection model. Ikeuchi and Horn [10] are used to solving the three-dimensional reconstruction by using the illuminance equation and the smoothing criterion as the constraint of reconstruction. So, the problem of 3D reconstruction is transformed into the minimization problem of solving function. In this case, Horn proposed another smoothing standard. The main content is a smooth surface, where the surface obeys the integrable constraint, because the algorithm is seeking to directly recover complex surface unit normal vectors, so that reconstruction cannot get the absolute height of the surface. Fuqiang Zhou [11] used to use the same way to achieve the cross-laser plane calibration. In the experiment, four edge feature points of the space disk are obtained and the radius of the disk is calculated by fitting the feature points. The absolute error of the radius is 0.0_59mm. Harbin Institute of Technology Dongbin Zhao [12] and other scholars put forward a new monocular image restoration object surface height and gradient algorithm is an iterative calculation of the composite image, obtaining accurate surface height, and they also validate the feasibility of the algorithm for actual solder joint images. Ruiling Liu [13], for high light and shadow, put forward a four-light source vector selection algorithm; she compares the normal vector of different pixels recovery with the mirror reflection direction and chooses the nearest normal vector to restore the shape of the required vector, which avoids the error caused by the threshold elimination of high light and shadow in the traditional algorithm, and remove the high light and shadow constraints on the algorithm to expand the scope of application of the algorithm.


## 2. Based on the Gradient of Moving Objects Detection

In the process of 3D reconstruction of structured light, in order to reconstruct the 3D structure of the 2D image taken by the camera, the camera parameter must be calibrated and the geometric model of camera imaging should be built; that is, the camera’s internal and external parameters should be measured. Then, the correspondence between the image and the spatial point is constructed; that is, the laser plane equation is calibrated. This paper mainly used Zhenyou Zhang camera calibration method [14].


### 2.1. Camera Parameter Calibration

The camera model is very similar to the model used by Heikkila and Silven of the University of Oulu in Finland. We especially recommend their CVPR'97 paper: the function of the four-step camera calibration program with an implicit image correction [15].In the camera model, the parameters are as follows:Focal length: stored in pixels in 2∗1vector fc.Main points: the coordinates of the primary point are stored in the 2∗1 vector cc.Skew factor: define the skew factor for the angle between thex and y axes in the scalar αc.Distortion: the image distortion factor (radial and tangential distortion) is stored in the 5∗1 vector kc.Letp be the spatial point of the coordinate vector XXc=Xc;Yc;Zc in the reference frame of the camera. And then the projection is performed on the image plane based on the intrinsic parameter fc,cc,αc,kc.Letxn be normalized (pinhole) image projection:(1)
x
n
=
X
c
Z
c
Y
c
Z
cLetr2=x2+y2; after the lens is distorted, the new normalized point coordinates xd are defined:(2)xd=xd1xd2=1+kc1x2+kc2r4+kc5r6xn+dxwhere dx is the tangential distortion vector:(3)dx=2kc3xy+kc4r2+2x2kc3r2+2x2+2kc4xyTherefore,kc(5) contains the radial, tangential distortion coefficient [16]. It is worth noting that this distortion model was first introduced by Brown in 1966, called the “Plumb Bob” model (radial polynomial + “thin prism”). The tangential distortion is due to the incorrect alignment of the “eccentric” in the composite lens or other manufacturing defects of the lens assembly.Once the distortion is applied, the final pixel coordinates of the P on the projection plane arexpixel=[xp;yp]:(4)xp=fc1xd1+αc∗xd2+cc1yp=fc2xd2+cc2Thus, the pixel coordinate vectorxpixel and the normalized (distorted) coordinate vector xd are related to each other by a linear equation [17]:(5)xpyp1=KKxd1xd21where KK is called the camera matrix and is defined as follows:(6)KK=fc1alpha_fc1cc10fc2cc2001


### 2.2. External Condition Variable Setting

In reconstructing the surface height of the object, we are using triangles similar to the surface reconstruction of the object. In the case of similar judgments, the degree of use of the triangles is the same. But when the triangles are similar, we use the same degree of the angle of the two similar triangles [18]. Thus, in the world coordinate system with the intersection of the center of view and the center of the object, there exists a proportional relationship between the tangent values of the corners in the two right angles, so that the degree of the angle α and the distance L between the optical center and the object need to be known. These two variables can change the position of the camera structure by artificial changing. Therefore, when setting up the camera and the structure of the light we need to measure the angle α and length L. And these two are invariants; that is to say in the whole process of shooting we must ensure that the two variables remain unchanged or reconstructed objects will be distorted. So, in the process of taking pictures we must ensure that the external variables remain unchanged, so as to better reconstruct the surface of the object.


## 2.1. Camera Parameter Calibration

The camera model is very similar to the model used by Heikkila and Silven of the University of Oulu in Finland. We especially recommend their CVPR'97 paper: the function of the four-step camera calibration program with an implicit image correction [15].In the camera model, the parameters are as follows:Focal length: stored in pixels in 2∗1vector fc.Main points: the coordinates of the primary point are stored in the 2∗1 vector cc.Skew factor: define the skew factor for the angle between thex and y axes in the scalar αc.Distortion: the image distortion factor (radial and tangential distortion) is stored in the 5∗1 vector kc.Letp be the spatial point of the coordinate vector XXc=Xc;Yc;Zc in the reference frame of the camera. And then the projection is performed on the image plane based on the intrinsic parameter fc,cc,αc,kc.Letxn be normalized (pinhole) image projection:(1)
x
n
=
X
c
Z
c
Y
c
Z
cLetr2=x2+y2; after the lens is distorted, the new normalized point coordinates xd are defined:(2)xd=xd1xd2=1+kc1x2+kc2r4+kc5r6xn+dxwhere dx is the tangential distortion vector:(3)dx=2kc3xy+kc4r2+2x2kc3r2+2x2+2kc4xyTherefore,kc(5) contains the radial, tangential distortion coefficient [16]. It is worth noting that this distortion model was first introduced by Brown in 1966, called the “Plumb Bob” model (radial polynomial + “thin prism”). The tangential distortion is due to the incorrect alignment of the “eccentric” in the composite lens or other manufacturing defects of the lens assembly.Once the distortion is applied, the final pixel coordinates of the P on the projection plane arexpixel=[xp;yp]:(4)xp=fc1xd1+αc∗xd2+cc1yp=fc2xd2+cc2Thus, the pixel coordinate vectorxpixel and the normalized (distorted) coordinate vector xd are related to each other by a linear equation [17]:(5)xpyp1=KKxd1xd21where KK is called the camera matrix and is defined as follows:(6)KK=fc1alpha_fc1cc10fc2cc2001


## 2.2. External Condition Variable Setting

In reconstructing the surface height of the object, we are using triangles similar to the surface reconstruction of the object. In the case of similar judgments, the degree of use of the triangles is the same. But when the triangles are similar, we use the same degree of the angle of the two similar triangles [18]. Thus, in the world coordinate system with the intersection of the center of view and the center of the object, there exists a proportional relationship between the tangent values of the corners in the two right angles, so that the degree of the angle α and the distance L between the optical center and the object need to be known. These two variables can change the position of the camera structure by artificial changing. Therefore, when setting up the camera and the structure of the light we need to measure the angle α and length L. And these two are invariants; that is to say in the whole process of shooting we must ensure that the two variables remain unchanged or reconstructed objects will be distorted. So, in the process of taking pictures we must ensure that the external variables remain unchanged, so as to better reconstruct the surface of the object.


## 3. Basic Principle of Three-Dimensional Reconstruction of Structured Light

In order to obtain the three-dimensional information of the object in the structured light measurement, the basic idea is to use the geometric information in the structured light image to help provide the geometric information in the scene [19]. According to the geometric relationship inside the camera, we can determine the structure of light and the geometric relationship between objects, thus rebuilding the surface of the object.


### 3.1. The Correspondence between Pixels and a World Coordinate Point

As shown in Figure1, the angle between the structural smooth and the optical axis of the camera is α, and the origin Ow of the world coordinate system Ow-XwYwZw is located at the intersection of the camera's optical axis and the structured light plane. The Xw-axis and the Yw-axis are parallel to the camera coordinate systems Xc and Yc, respectively, and Zw and Zc coincide but are opposite [20]. The distance between Ow and Oc is l. Thus, the world coordinate system and the camera coordinate system have the following relationship:(7)Xc=XwYc=-YwZc=l-ZwFigure 1
Dimensional reconstruction of structured light.A′ is the image of A in the world coordinate system; the line of sight OA′ is(8)XwX=-Ywy=l-ZwfIn the world coordinate system, the plane equation of structured light is(9)Xw=Zwtan⁡αwhere α is the angle between the camera and the laser pen. The solutions of (9) are(10)Xw=xltan⁡αx+ftan⁡αYw=-yltan⁡αx+ftan⁡αZw=xlx+ftan⁡αBecauseOp-uv is the Cartesian coordinate system defined on the digital image [21], (u,v) is the coordinates of the pixels, and u and v represent the number of rows and rows of pixels in the image array, respectively. Establish the coordinate system Oi-xy expressing in physical units parallel to the u-axis and the v-axis, the origin is the camera optical axis and image. The plane is usually located in the center of the image, but in reality there will be a small offset; Op-xy’s coordinates are recorded as (u0,v0). The physical dimensions of each pixel in the x-axis and y-axis directions are Sx and Sy; the coordinates of any one of the two coordinate systems are represented by a uniform coordinate and a matrix, with the following relationship: (11)uv1=1Sx0u001Syv0001xy1The inverse relationship is(12)xy1=Sx0-u0Sx0Sy-v0Sy001uv1Thus, it can be learned that the correspondence between pixel points and world coordinate points is(13)Xw=fxu-u0ltan⁡αfxu-u0+tan⁡αYw=-fyv-v0ltan⁡αfxu-u0+tan⁡αZw=fxu-u0lfxu-u0+tan⁡α)


### 3.2. Surface Height Calculation Principle

As shown in Figure2, the corresponding relationship between the pixel and the point in the world coordinate system is shown in (13). In the experiment, we simplified the shooting method. The laser angle and the vertical direction remained unchanged at 30°, so it was easy to calculate [22, 23]. When the shooting platform has no objects, the laser light directly to the platform will not be offset, but when the object is placed on the platform, the laser light to the surface of the object will occur after a certain shift. As shown in Figure 1, r0 is the reference laser line, and r is the laser line that is offset after adding the object. Since the angle is 30°, tan⁡α=h/d=3/3, so the relationship between the horizontal offset d of the laser and the height h0 of the pointA of the object is known [24]. It can also be seen from Figure 1 that if the distance L between the light and the object and α changes, the reconstruction will change.Figure 2
Schematic diagram of experimental laser photography.


## 3.1. The Correspondence between Pixels and a World Coordinate Point

As shown in Figure1, the angle between the structural smooth and the optical axis of the camera is α, and the origin Ow of the world coordinate system Ow-XwYwZw is located at the intersection of the camera's optical axis and the structured light plane. The Xw-axis and the Yw-axis are parallel to the camera coordinate systems Xc and Yc, respectively, and Zw and Zc coincide but are opposite [20]. The distance between Ow and Oc is l. Thus, the world coordinate system and the camera coordinate system have the following relationship:(7)Xc=XwYc=-YwZc=l-ZwFigure 1
Dimensional reconstruction of structured light.A′ is the image of A in the world coordinate system; the line of sight OA′ is(8)XwX=-Ywy=l-ZwfIn the world coordinate system, the plane equation of structured light is(9)Xw=Zwtan⁡αwhere α is the angle between the camera and the laser pen. The solutions of (9) are(10)Xw=xltan⁡αx+ftan⁡αYw=-yltan⁡αx+ftan⁡αZw=xlx+ftan⁡αBecauseOp-uv is the Cartesian coordinate system defined on the digital image [21], (u,v) is the coordinates of the pixels, and u and v represent the number of rows and rows of pixels in the image array, respectively. Establish the coordinate system Oi-xy expressing in physical units parallel to the u-axis and the v-axis, the origin is the camera optical axis and image. The plane is usually located in the center of the image, but in reality there will be a small offset; Op-xy’s coordinates are recorded as (u0,v0). The physical dimensions of each pixel in the x-axis and y-axis directions are Sx and Sy; the coordinates of any one of the two coordinate systems are represented by a uniform coordinate and a matrix, with the following relationship: (11)uv1=1Sx0u001Syv0001xy1The inverse relationship is(12)xy1=Sx0-u0Sx0Sy-v0Sy001uv1Thus, it can be learned that the correspondence between pixel points and world coordinate points is(13)Xw=fxu-u0ltan⁡αfxu-u0+tan⁡αYw=-fyv-v0ltan⁡αfxu-u0+tan⁡αZw=fxu-u0lfxu-u0+tan⁡α)


## 3.2. Surface Height Calculation Principle

As shown in Figure2, the corresponding relationship between the pixel and the point in the world coordinate system is shown in (13). In the experiment, we simplified the shooting method. The laser angle and the vertical direction remained unchanged at 30°, so it was easy to calculate [22, 23]. When the shooting platform has no objects, the laser light directly to the platform will not be offset, but when the object is placed on the platform, the laser light to the surface of the object will occur after a certain shift. As shown in Figure 1, r0 is the reference laser line, and r is the laser line that is offset after adding the object. Since the angle is 30°, tan⁡α=h/d=3/3, so the relationship between the horizontal offset d of the laser and the height h0 of the pointA of the object is known [24]. It can also be seen from Figure 1 that if the distance L between the light and the object and α changes, the reconstruction will change.Figure 2
Schematic diagram of experimental laser photography.


## 4. Denoising after Loading the Mask

Due to shooting methods and other reasons, there is a certain amount of noise in the loaded laser mask. Here to solve the two main noises, other light source interference and laser line breakage, the main method is to filter the connected domain to remove other light source interference, through the expansion of the skeleton to avoid laser line breakage.


### 4.1. Filter the Connected Domain to Remove Other Light Sources

Filtering the connected domain is to keep the connected domain in the image and remove those nonconnected pixels. Here is the use of bwareaopen function; this function is also called delete the minimum area function; you can set the minimum size of the connected domain, which has the default value of 8. In the experiment, this value is set to 2 in this paper. In the design of the function, after loading the laser mask, the image will be converted to a black and white image; the image matrix is shown as 0-1 matrix. However, due to other light sources, there are some interference points in the image (as shown in Figure3).Figure 3
With interference laser mask.These interference points do not exist in the form of communication, but in the form of pixels scattered in the image, so you can filter the connection domain and remove these interference points, and this operation will have a sharp effect on the laser itself. That is, around the laser line “burr” will be deleted, which will make the reconstruction results more smooth. The effect after screening is shown in Figure4.Figure 4
Remove the interference after the laser mask.


### 4.2. Expand the Skeleton to Obtain the Laser Line

Laser mask image screening connection domain processing will be loaded; the laser line itself will be interference. The biggest problem is that the laser line is broken. In view of this situation, first of all, we have carried out the expansion operation and first broken the laser line through the expansion of the connection; the effect is shown in Figure5.Figure 5
The effect after expansion.After the laser line is inflated; the laser light becomes thicker. Obviously, we cannot use this inflated image directly to a high degree of reconstruction. All we have to do is to get a thin continuous laser line, and we cannot change the shape of the original laser line. So we took the skeleton operation. This operation will be the same as the original laser line shape of the laser line, and this laser line is a single row of pixels of the laser line, which is in line with our requirements. The effect is shown in Figure6.Figure 6
The effect after seeking skeleton operations.


## 4.1. Filter the Connected Domain to Remove Other Light Sources

Filtering the connected domain is to keep the connected domain in the image and remove those nonconnected pixels. Here is the use of bwareaopen function; this function is also called delete the minimum area function; you can set the minimum size of the connected domain, which has the default value of 8. In the experiment, this value is set to 2 in this paper. In the design of the function, after loading the laser mask, the image will be converted to a black and white image; the image matrix is shown as 0-1 matrix. However, due to other light sources, there are some interference points in the image (as shown in Figure3).Figure 3
With interference laser mask.These interference points do not exist in the form of communication, but in the form of pixels scattered in the image, so you can filter the connection domain and remove these interference points, and this operation will have a sharp effect on the laser itself. That is, around the laser line “burr” will be deleted, which will make the reconstruction results more smooth. The effect after screening is shown in Figure4.Figure 4
Remove the interference after the laser mask.


## 4.2. Expand the Skeleton to Obtain the Laser Line

Laser mask image screening connection domain processing will be loaded; the laser line itself will be interference. The biggest problem is that the laser line is broken. In view of this situation, first of all, we have carried out the expansion operation and first broken the laser line through the expansion of the connection; the effect is shown in Figure5.Figure 5
The effect after expansion.After the laser line is inflated; the laser light becomes thicker. Obviously, we cannot use this inflated image directly to a high degree of reconstruction. All we have to do is to get a thin continuous laser line, and we cannot change the shape of the original laser line. So we took the skeleton operation. This operation will be the same as the original laser line shape of the laser line, and this laser line is a single row of pixels of the laser line, which is in line with our requirements. The effect is shown in Figure6.Figure 6
The effect after seeking skeleton operations.


## 5. Perform a High Degree of Summation and Interpolation

The main content of this part is taking the main process after rebuilding a single laser height: superposition and interpolation. The superposition is mainly a comprehensive display of each reconstructed laser height. Interpolation is the linear interpolation of the resulting discrete data, making it appear continuously and smoothly.


### 5.1. Height Superimposed and Evenly Displayed

This paper is designed to reconstruct the height of the surface of the object by using a single word structure, but a laser can only reproduce the height of the laser line (Figure7).Figure 7
Single laser height reconstruction.Therefore, if the we use word structure of light on the surface of the three-dimensional reconstruction, there are two ways. One is to take the image into video and then a frame of a video of the laser line in a high degree of reconstruction, which will get a relatively smooth surface of the object, but this method is more difficult to shoot, the data being many. The second is that the isometric image is highly reconstructed and then interpolated. This method is relatively simple. No matter what method is used, the final reconstruction is a section of the height matrix. Therefore, to sum up the height of each reconstruction, each height matrix in a world coordinate system is displayed (shown in Figure8).Figure 8
Multiple poststack height reconstruction.Because we need to ensure the laser line and the location of the mandrel and their angle in the shooting of the image, we can only be moving objects when we shoot an object. Only in this way can we ensure the same angle between the laser line plane and the camera object, in order to accurately rebuild the height of the object, that is, to ensure that the angle between XcOw and OcOw. Therefore, when shooting a number of laser lights to rebuild the height we can only move the object to shoot, but the image will be in the same position if we shoot laser line. Then, the reconstruction of the laser height will be superimposed. Therefore, it is necessary for man-made reconstruction of the laser height according to the distance when the object is moving evenly distributed such that each height line is shown to be scattered (shown in Figure8).


### 5.2. Interpolate to Reconstruct a Smooth Surface

As the design uses a word structure of light on the surface of the three-dimensional reconstruction of the object, the word structure of light can only rebuild a laser line under a height. After the above superposition, we will get a lot of high degrees of reconstruction, but these are not continuous but a height line. In order to rebuild these lines into the surface, there are two ideas: one is to take a lot of height lines for superposition; the other is to take a limited height line for superposition and then interpolation. These two methods can get a smooth surface reconstruction of the object, but the former method of workload is too large; here we use the second method, the height of the superposition of the interpolation operation, and the superposition of the use of the griddata function and of the discrete height of the linear interpolation to get a smooth surface of the object and the effect is shown in Figure9.Figure 9
The results of the reconstruction after interpolation.


## 5.1. Height Superimposed and Evenly Displayed

This paper is designed to reconstruct the height of the surface of the object by using a single word structure, but a laser can only reproduce the height of the laser line (Figure7).Figure 7
Single laser height reconstruction.Therefore, if the we use word structure of light on the surface of the three-dimensional reconstruction, there are two ways. One is to take the image into video and then a frame of a video of the laser line in a high degree of reconstruction, which will get a relatively smooth surface of the object, but this method is more difficult to shoot, the data being many. The second is that the isometric image is highly reconstructed and then interpolated. This method is relatively simple. No matter what method is used, the final reconstruction is a section of the height matrix. Therefore, to sum up the height of each reconstruction, each height matrix in a world coordinate system is displayed (shown in Figure8).Figure 8
Multiple poststack height reconstruction.Because we need to ensure the laser line and the location of the mandrel and their angle in the shooting of the image, we can only be moving objects when we shoot an object. Only in this way can we ensure the same angle between the laser line plane and the camera object, in order to accurately rebuild the height of the object, that is, to ensure that the angle between XcOw and OcOw. Therefore, when shooting a number of laser lights to rebuild the height we can only move the object to shoot, but the image will be in the same position if we shoot laser line. Then, the reconstruction of the laser height will be superimposed. Therefore, it is necessary for man-made reconstruction of the laser height according to the distance when the object is moving evenly distributed such that each height line is shown to be scattered (shown in Figure8).


## 5.2. Interpolate to Reconstruct a Smooth Surface

As the design uses a word structure of light on the surface of the three-dimensional reconstruction of the object, the word structure of light can only rebuild a laser line under a height. After the above superposition, we will get a lot of high degrees of reconstruction, but these are not continuous but a height line. In order to rebuild these lines into the surface, there are two ideas: one is to take a lot of height lines for superposition; the other is to take a limited height line for superposition and then interpolation. These two methods can get a smooth surface reconstruction of the object, but the former method of workload is too large; here we use the second method, the height of the superposition of the interpolation operation, and the superposition of the use of the griddata function and of the discrete height of the linear interpolation to get a smooth surface of the object and the effect is shown in Figure9.Figure 9
The results of the reconstruction after interpolation.


## 6. Experimental Results and Analysis

This chapter is mainly to reconstruct the experimental results according to the physical comparison and analyze the advantages and disadvantages of the reconstruction of the experimental results.


### 6.1. Comparison of Physical and Reconstruction Results

In order to better test the continuity of reconstruction of a high degree, this paper is selected as a hemisphere, because the hemisphere in the rise or fall is continuous, so this can better reflect the effect of reconstruction. And in order to reduce the reflection of interference that the laser irradiation on the surface of the object caused, we then select the rough diffuse reflector to take pictures. As can be seen from Figure10, the hemisphere’s tennis is exactly in line with our basic requirements, and the rough surface of the tennis is just a diffuse material.Figure 10
Hemispherical picture taken in kind.The three-dimensional reconstruction of structured light is based on the degree of deviation of the laser line and then multiplied by the height of the offset to reconstruct the height of the object. But in the process of readding because the reconstruction of the height is too small, basically we do not see the surface of the reconstruction of the object.Therefore, this article will rebuild the height in accordance with a certain proportion of the amplification. But for the comparison of the actual object and the reconstruction height, it can be seen that the height of the reconstruction is higher than the actual height. The results are shown in Figures11 and 12.Figure 11
Highest height of reconstruction.Figure 12
Height of the actual object.


### 6.2. Analysis of Other Groups of Results

From the comparison to the hemisphere reconstruction results and the actual object, the reconstruction results have been reconstructed out of the hemisphere, but for the reconstruction of the hemisphere there is a certain error. For example, the hemisphere is not very standard, and there is an error in the reconstructed hemisphere surface. First of all, from Figure8 we can see that before the interpolation of their height of the degree of bending the laser line hit the object on the degree of bending more consistently. After the interpolation, we can see that his image has better reconstructed the surface of the object, and the interpolation is relatively smooth.The design of this paper, from the beginning has been the use of the hemisphere for debugging and a series of operations; when the program is completed introducing a number of other objects, the compatibility of the program was tested. The first is to introduce a rectangular model (shown in Figure13)Figure 13
Rectangular physical photograph.The laser data taken in the program according to the experimental data taken in Figure13 is shown in Figure 14; as a result of shooting, the experimental data is the deviation of the laser line in the reconstruction of the experimental results that are skewed. The actual height is shown in Figure 15.Figure 14
Laser height reconstruction.Figure 15
Actual cuboid height.Figures13, 14, and 15 show the rejoined results of a rectangle introduced into the program.


### 6.3. Height Comparison

According to the actual height of the object measurement results and reconstruction results to do a comparison, as shown in Table1. From the table we can see, in the reconstruction of the height of the object, the accuracy is very high.Table 1
Comparison of actual height and reconstruction height.
Hemisphere rectangular Half column Actual height 3.4 1.8 2.4  Reconstruction height 3.45 1.89 2.37


## 6.1. Comparison of Physical and Reconstruction Results

In order to better test the continuity of reconstruction of a high degree, this paper is selected as a hemisphere, because the hemisphere in the rise or fall is continuous, so this can better reflect the effect of reconstruction. And in order to reduce the reflection of interference that the laser irradiation on the surface of the object caused, we then select the rough diffuse reflector to take pictures. As can be seen from Figure10, the hemisphere’s tennis is exactly in line with our basic requirements, and the rough surface of the tennis is just a diffuse material.Figure 10
Hemispherical picture taken in kind.The three-dimensional reconstruction of structured light is based on the degree of deviation of the laser line and then multiplied by the height of the offset to reconstruct the height of the object. But in the process of readding because the reconstruction of the height is too small, basically we do not see the surface of the reconstruction of the object.Therefore, this article will rebuild the height in accordance with a certain proportion of the amplification. But for the comparison of the actual object and the reconstruction height, it can be seen that the height of the reconstruction is higher than the actual height. The results are shown in Figures11 and 12.Figure 11
Highest height of reconstruction.Figure 12
Height of the actual object.


## 6.2. Analysis of Other Groups of Results

From the comparison to the hemisphere reconstruction results and the actual object, the reconstruction results have been reconstructed out of the hemisphere, but for the reconstruction of the hemisphere there is a certain error. For example, the hemisphere is not very standard, and there is an error in the reconstructed hemisphere surface. First of all, from Figure8 we can see that before the interpolation of their height of the degree of bending the laser line hit the object on the degree of bending more consistently. After the interpolation, we can see that his image has better reconstructed the surface of the object, and the interpolation is relatively smooth.The design of this paper, from the beginning has been the use of the hemisphere for debugging and a series of operations; when the program is completed introducing a number of other objects, the compatibility of the program was tested. The first is to introduce a rectangular model (shown in Figure13)Figure 13
Rectangular physical photograph.The laser data taken in the program according to the experimental data taken in Figure13 is shown in Figure 14; as a result of shooting, the experimental data is the deviation of the laser line in the reconstruction of the experimental results that are skewed. The actual height is shown in Figure 15.Figure 14
Laser height reconstruction.Figure 15
Actual cuboid height.Figures13, 14, and 15 show the rejoined results of a rectangle introduced into the program.


## 6.3. Height Comparison

According to the actual height of the object measurement results and reconstruction results to do a comparison, as shown in Table1. From the table we can see, in the reconstruction of the height of the object, the accuracy is very high.Table 1
Comparison of actual height and reconstruction height.
Hemisphere rectangular Half column Actual height 3.4 1.8 2.4  Reconstruction height 3.45 1.89 2.37


## 7. Summary

In this paper, we deeply study the using of word structure of light on the object surface reconstruction. Given an image for denoising, we can minimize the impact of other lights to the photographic picture by increasing the compatibility of the given photos. To get each of the height lines of the sum and interpolation operations, we then get a smooth three-dimensional reconstruction of the surface of the object. The latter part of the research process will focus on three-dimensional high-precision, high-speed, and real-time reconstruction for further study.



---

*Source: 4189125-2018-11-01.xml*