# 3D reconstruction

In computer vision and computer graphics, **3D reconstruction** is the process of capturing the shape and appearance of real objects.
This process can be accomplished either by active or passive methods. If the model is allowed to change its shape in time, this is referred to as non-rigid or spatio-temporal reconstruction.

## Motivation and applications

The research of 3D reconstruction has always been a difficult goal. Using 3D reconstruction one can determine any object’s 3D profile, as well as knowing the 3D coordinate of any point on the profile.The 3D reconstruction of objects is a generally scientific problem and core technology of a wide variety of fields, such as Computer Aided Geometric Design(CAGD), Computer Graphics, Computer Animation, Computer Vision, medical imaging, computational science, Virtual Reality, digital media, etc. For instance, the lesion information of the patients can be presented in 3D on the computer, which offers a new and accurate approach in diagnosis and thus has vital clinical value.^{[1]}

## Active methods

Active methods, i.e. range data methods, given the depth map, reconstruct the 3D profile by numerical approximation approach and build the object in scenario based on model. These methods actively interfere with the reconstructed object, either mechanically or radiometrically using rangefinders, in order to acquire the depth map, e.g. structured light, laser range finder and other active sensing techniques. A simple example of a mechanical method would use a depth gauge to measure a distance to a rotating object put on a turntable. More applicable radiometric methods emit radiance towards the object and then measure its reflected part. Examples range from moving light sources, colored visible light, time-of-flight lasers to microwaves or ultrasound. See 3D scanning for more details.

## Passive methods

Passive methods of 3D reconstruction do not interfere with the reconstructed object; they only use a sensor to measure the radiance reflected or emitted by the object's surface to infer its 3D structure through image understanding.^{[2]} Typically, the sensor is an image sensor in a camera sensitive to visible light and the input to the method is a set of digital images (one, two or more) or video. In this case we talk about image-based reconstruction and the output is a 3D model. By comparison to active methods, passive methods can be applied to a wider range of situations.

### Monocular cues methods

Monocular cues methods refer to use image (one, two or more) from one viewpoint (camera) to proceed 3D construction. It makes use of 2D characteristics(e.g. Silhouettes, shading and texture) to measure 3D shape, and that’s why it is also named Shape-From-X, where X can be silhouettes, shading, texture etc. 3D reconstruction through monocular cues is simple and quick, and only one appropriate digital image is needed thus only one camera is adequate. Technically, it avoids stereo correspondence, which is fairly complex.

**Shape-from-shading** Due to the analysis of the shade information in the image, by using Lambertian reflectance, the depth of normal information of the object surface is restored to reconstruct.^{[3]}

**Photometric Stereo** This approach is more sophisticated than the shape-of-shading method. Images taken in different lighting conditions are used to solve the depth information. It is worth mentioning that more than one image is required by this approach.^{[4]}

**Shape-from-texture** Suppose such an object with smooth surface covered by replicated texture units, and its projection from 3D to 2D causes distortion and perspective. Distortion and perspective measured in 2D images provide the hint for inversely solving depth of normal information of the object surface.^{[5]}

### Binocular stereo vision

Binocular Stereo Vision obtains the 3-dimensional geometric information of an object from multiple images based on the research of human visual system.^{[6]} The results are presented in form of depth maps. Images of an object acquired by two cameras simultaneously in different viewing angles, or by one single camera at different time in different viewing angles, are used to restore its 3D geometric information and reconstruct its 3D profile and location. This is more direct than Monocular methods such as shape-from-shading.

Binocular stereo vision method requires two identical cameras with parallel optical axis to observe one same object, acquiring two images from different points of view. In terms of trigonometry relations, depth information can be calculated from disparity. Binocular stereo vision method is well developed and stably contributes to favorable 3D reconstruction, leading to a better performance when compared to other 3D construction. Unfortunately, it is computationally intensive, besides it performs rather poorly when baseline distance is large.

#### Problem statement and basics

The approach of using Binocular Stereo Vision to acquire object’s 3D geometric information is on the basis of visual disparity.^{[7]} The following picture provides a simple schematic diagram of horizontally sighted Binocular Stereo Vision, where b is the baseline between projective centers of two cameras.

The origin of the camera’s coordinate system is at the optical center of the camera’s lens as shown in the figure. Actually, the camera’s image plane is behind the optical center of the camera’s lens. However, to simplify the calculation, images are drawn in front of the optical center of the lens by f. The u-axis and v-axis of the image’s coordinate system O_{1}uv are in the same direction with x-axis and y-axis of the camera’s coordinate system respectively. The origin of the image’s coordinate system is located on the intersection of imaging plane and the optical axis. Suppose such world point P whose corresponding image points are P_{1}(u_{1},v_{1}) and P_{2}(u_{2},v_{2}) respectively on the left and right image plane. Assume two cameras are in the same plane, then y-coordinates of P_{1} and P_{2} are identical, i.e.,v_{1}=v_{2}. According to trigonometry relations,

where(x_{p}, y_{p}, z_{p}) are coordinates of P in the left camera’s coordinate system, f is focal length of the camera.
Visual disparity is defined as the difference in image point location of a certain world point acquired by two cameras,

based on which the coordinates of P can be worked out.

Therefore, once the coordinates of image points is known, besides the parameters of two cameras, the 3D coordinate of the point can be determined.

The 3D reconstruction consists of the following sections:

#### Image acquisition

2D digital image acquisition is the information source of 3D reconstruction. Commonly used 3D reconstruction is based on two or more images, although it may employ only one image in some cases. There are various types of methods for image acquisition that depends on the occasions and purposes of the specific application. Not only the requirements of the application must be met, but also the visual disparity, illumination, performance of camera and the feature of scenario should be considered.

#### Camera calibration

Camera calibration in Binocular Stereo Vision refers to the determination of the mapping relationship between the image points P_{1}(u_{1},v_{1}) and P_{2}(u_{2},v_{2}), and space coordinate P(x_{p}, y_{p}, z_{p}) in the 3D scenario. Camera calibration is a basic and essential part in 3D reconstruction via Binocular Stereo Vision.

#### Feature extraction

The aim of feature extraction is to gain the characteristics of the images, through which the stereo correspondence processes. As a result, the characteristics of the images closely link to the choice of matching methods. There is no such universally applicable theory for features extraction, leading to a great diversity of stereo correspondence in Binocular Stereo Vision research.

#### Stereo correspondence

Stereo correspondence is to establish the correspondence between primitive factors in images, i.e. to match P_{1}(u_{1},v_{1}) and P_{2}(u_{2},v_{2}) from two images. Certain interference factors in the scenario should be noticed, e.g. illumination, noise, surface physical characteristic and etc.

#### Restoration

According to precise correspondence, combined with camera location parameters, 3D geometric information can be recovered without difficulties. Due to the fact that accuracy of 3D reconstruction depends on the precision of correspondence, error of camera location parameters and so on, the previous procedures must be done carefully to achieve relatively accurate 3D reconstruction.

#### 3D Reconstruction of Medical Images

Clinical routine of diagnosis, patient follow-up, computer assisted surgery, surgical planning etc. are facilitated by accurate 3D models of the desired part of human anatomy. Main motivation behind 3D reconstruction includes

- Improved accuracy due to multi view aggregation.
- Detailed surface estimates.
- Can be used to plan, simulate, guide, or otherwise assist a surgeon in performing a medical procedure.
- The precise position and orientation of the patient’s anatomy can be determined.
- Helps in a number of clinical areas, such as radiotherapy planning and treatment verification, spinal surgery, hip replacement, neurointerventions and aortic stenting.

**Applications:**

3D reconstruction system finds its application in a variety of field they are

- Medicine
- Film industry
- Robotics
- City planning
- Gaming
- Virtual environment
- Earth observation
- Archaeology
- Augmented reality
- Reverse engineering
- Animation
- Human computer interaction

**Problem Statement:**

Mostly algorithms available for 3D reconstruction are extremely slow and cannot be used in real-time. Though the algorithms presented are still in infancy but they have the potential for fast computation.

**Existing Approaches:**

**Delaunay and alpha-shapes**

- Delaunay method involves extraction of tetrahedron surfaces from initial point cloud. The idea of ‘shape’ for a set of points in space is given by concept of alpha-shapes. Given a finite point set S, and the real parameter alpha, the alpha-shape of S is a polytope (the generalization to any dimension of a two dimensional polygon and a three-dimensional polyhedron) which is neither convex nor necessarily connected.
^{[8]}For a large value, the alpha-shape is identical to the convex-hull of S. The algorithm proposed by Edelsbrunner and Mucke^{[9]}eliminates all tetrahedrons which are delimited by a surrounding sphere smaller than α. The surface is then obtained with the external triangles from the resulting tetrahedron.^{[9]} - Another algorithm called Tight Cocone
^{[10]}labels the initial tetrahedrons as interior and exterior. The triangles found in and out generate the resulting surface.

Both methods have been recently extended for reconstructing point clouds with noise.^{[10]} In this method the quality of points determines the feasibility of the method. For precise triangulation since we are using the whole point cloud set, the points on the surface with the error above the threshold will be explicitly represented on reconstructed geometry.^{[8]}

**Zero set Methods**

Reconstruction of the surface is performed using a distance function which assigns to each point in the space a signed distance to the surface *S*. A contour algorithm is used to extracting a zero-set which is used to obtain polygonal representation of the object. Thus, the problem of reconstructing a surface from a disorganized point cloud is reduced to the definition of the appropriate function *f* with a zero value for the sampled points and different to zero value for the rest. An algorithm called Marching-Cubes established the use of such methods.^{[11]} There are different variants for given algorithm, some use a discrete function *f*, while other use a polyharmonic radial basis function is used to adjust the initial point set.^{[12]}^{[13]} Functions like Moving Least Squares, basic functions with local support,^{[14]} based on the Poisson equation have also been used. Loss of the geometry precision in areas with extreme curvature, i.e., corners, edges is one of the main issues encountered. Furthermore, pretreatment of information, by applying some kind of filtering technique, also affects the definition of the corners by softening them. There are several studies related to post-processing techniques used in the reconstruction for the detection and refinement of corners but these methods increase the complexity of the solution.^{[15]}

**VR Technique**

Entire volume transparence of the object is visualized using VR technique. Images will be performed by projecting rays through volume data. Along each ray, opacity and color need to be calculated at every voxel. Then information calculated along each ray will to be aggregated to a pixel on image plane. This technique helps us to see comprehensively an entire compact structure of the object. Since the technique needs enormous amount of calculations, which requires strong configuration computers is appropriate for low contrast data. Two main methods for rays projecting can be considered as follows:

- Object-order method: Projecting rays go through volume from back to front (from volume to image plane).
- Image-order or ray-casting method: Projecting rays go through volume from front to back (from image plane to volume).There exists some other methods to composite image, appropriate methods depending on the user’s purposes. Some usual methods in medical image are MIP (maximum intensity projection), MinIP (minimum intensity projection), AC (alpha compositing) and NPVR (non-photorealistic volume rendering).

**Voxel Grid**

In this filtering technique input space is sampled using a grid of 3D voxels to reduce the number of points.^{[16]} For each voxel, a centroid is chosen as the representative of all points. There are two approaches, the selection of the voxel centroid or select the centroid of the points lying within the voxel. To obtain internal points average has a higher computational cost, but offers better results. Thus, a subset of the input space is obtained that roughly represents the underlying surface. The Voxel Grid method presents the same problems as other filtering techniques: impossibility of defining the final number of points that represent the surface, geometric information loss due to the reduction of the points inside a voxel and sensitivity to noisy input spaces.

## See also

- 3D modeling
- 3D data acquisition and object reconstruction
- 3D reconstruction from multiple images
- 3D scanner
- 4D reconstruction
- Depth map
- Kinect
- Photogrammetry
- Stereoscopy

## References

- ↑ Liping Zheng ; Guangyao Li ; Jing Sha; The survey of medical image 3D reconstruction. Proc. SPIE 6534, Fifth International Conference on Photonics and Imaging in Biology and Medicine, 65342K (May 01, 2007); doi:10.1117/12.741321.
- ↑ Buelthoff, Heinrich H., and Alan L. Yuille. "Shape-from-X: Psychophysics and computation." Fibers' 91, Boston, MA. International Society for Optics and Photonics, 1991.
- ↑ Horn, Berthold KP. "Shape from shading: A method for obtaining the shape of a smooth opaque object from one view." (1970).
- ↑ Woodham, Robert J. "Photometric method for determining surface orientation from multiple images." Optical engineering 19.1 (1980): 191139-191139.
- ↑ Witkin, Andrew P. "Recovering surface shape and orientation from texture." Artificial intelligence 17.1 (1981): 17-45.
- ↑ Kass, Michael, Andrew Witkin, and Demetri Terzopoulos. "Snakes: Active contour models." International journal of computer vision 1.4 (1988): 321-331.
- ↑ McCoun, Jacques, and Lucien Reeves. Binocular vision: development, depth perception and disorders. Nova Science Publishers, Inc., 2010.
- 1 2 "3D reconstruction of medical images from slices automatically landmarked with growing neural models".
*Neurocomputing*. 150, Part A, 20 February 2015, Pages 16–25. - 1 2 "Three-dimensional alpha shapes".
*ACM Trans. Graph*. 13 (January (1)) (1994) 43–72. - 1 2 "Probable surface reconstruction from noisy samples".
*Comput. Geom*. 35 (2006) 124–141. - ↑ "Marching cubes: A high resolution 3d surface construction algorithm".
*SIGGRAPH Comput. Graph*. 21 (August (4)) (1987), pp. 163–169. - ↑ "Surface reconstruction from unorganized points".
*SIGGRAPH Comput. Graph*. 26 (July (2)) (1992), pp. 71–78. - ↑ "Reconstruction and representation of 3d objects with radial basis functions".
*28th Annual Conference on Computer Graphics and Interactive Techniques SIGGRAPH ׳01, ACM, New York, NY, USA*. 2001, pp. 67–76. - ↑ "Implicit surface modelling with a globally regularised basis of compact support".
*EUROGRAPHICS, 2006*. 25 (2006), Number 3. - ↑ "Incremental reconstruction of sharp edges on mesh surfaces".
*Comput. Aided Des.,*. 38 (6) (2006), pp. 689–702. - ↑ "Cumulative generation of octree models from range data".
*Proceeding of: Robotics and Automation, 1984,*. pp. 25–32.

## External links

- http://www.nature.com/subjects/3d-reconstruction#news-and-comment
- http://6.869.csail.mit.edu/fa13/lectures/lecture11shapefromX.pdf
- http://research.microsoft.com/apps/search/default.aspx?q=3d+reconstruction
- https://research.google.com/search.html#q=3D%20reconstruction