Scaled 360 layouts:
Revisiting non-central panoramas
Abstract
From a non-central panorama, 3D lines can be recovered by geometric reasoning. However, their sensitivity to noise and the complex geometric modeling required has led these panoramas being very little investigated. In this work we present a novel approach for 3D layout recovery of indoor environments using single non-central panoramas. We obtain the boundaries of the structural lines of the room from a non-central panorama using deep learning and exploit the properties of non-central projection systems in a new geometrical processing to recover the scaled layout. We solve the problem for Manhattan environments, handling occlusions, and also for Atlanta environments in an unified method. The experiments performed improve the state-of-the-art methods for 3D layout recovery from a single panorama. Our approach is the first work using deep learning with non-central panoramas and recovering the scale of single panorama layouts.
Keywords Omnidirectional Vision 3D Vision Non-central Cameras Layout recovery Scene understanding
1 Introduction
Layout recovery and 3D understanding of indoor environments is a hot topic in computer vision research Zou et al. (2021). Most recent approaches for layout recovery use different neural network architectures to recover the structural elements of an indoor environment. In this context, the use of omnidirectional images has important advantages to retrieve the shape of a whole room from a single image. In order to handle the heavy distortions that introduce the omnidirectional representations, we can find different approaches in the state of the art. Dula-Net Yang et al. (2019) extracts from the equirectangular image a perspective view of the ceiling and extrude the layout using a dual-branched architecture. Similarly but with a different network architecture, AtlantaNet Pintore et al. (2020) obtains the floor plan dividing the panorama into two perspective views of ceiling and floor separately to adjust the height of the room. On a different approach, Corners for Layouts (CFL) Fernandez-Labrador et al. (2020) and HorizonNet Sun et al. (2019) aim to extract the boundaries of the structural lines and corners of the room directly from the equirectangular panorama, obtaining an up-to-scale layout in a post-processing.
In this paper we propose a new method for layout recovery from single panoramas. We revisit the non-central panoramas Li et al. (2004) in order to obtain scaled 3D lines Bermudez-Cameo et al. (2017) and vertical planes from a single image. As the equirectangular panorama, the non-central circular panorama provides 360 information of the environment, but the image distortion in non-central panoramas includes subtle differences allowing geometric 3D reasoning Perdigoto and Araujo (2012). This characteristic is a clear advantage with regard equirectangular panoramas since allows to recover the scale of the environment without any prior knowledge. In Fig. 1 we have an equirectangular panorama and a non-central panorama of the same scene. Even though both images look similar allowing to recover the shape of the room, only from the non-central circular panorama we can recover the scale without any assumption.
In our proposal, we adapt the neural network architecture of HorizonNet Sun et al. (2019) to non-central circular panoramas for the extraction of structural lines of indoor environments. Besides, we propose a geometric pipeline with two new linear solvers that jointly obtain the room height and vertical walls location for global layout extraction in Manhattan and Atlanta world assumptions. Our experiments show that our proposal improves the state of the art solutions, being ours the first that obtains the scale of the layout without using additional assumptions.
2 Proposed method
In order to recover the layout of a room from a single non-central circular panorama, we propose a new pipeline, shown in Fig. 2. We use a neural network as a line extractor from the image to reconstruct the scaled layout in a new geometrical processing that includes two new linear solvers for non-central projection systems.
2.1 Neural network as line extractor
For the first part of our pipeline, we propose a neural network as boundary extractor for structural lines. In classical approaches, lines are extracted with Hough transform and vanishing points, followed by an hypothesis generation-verification algorithm Zhang et al. (2014). This approach consumes lots of time and resources. On the other hand, neural networks have proven that can obtain patterns on images with high accuracy in a short time and, therefore, current approaches for layout recovery rely on the use of neural networks.
Even though many state-of-the-art networks can handle omnidirectional panoramas, there are not any that have considered non-central systems. We propose to adapt the existing network architecture of HorizonNet Sun et al. (2019) to handle non-central panoramas. The main advantage of this architecture is that handles the information of the panorama column by column. This is particularly interesting for the non-central circular panorama since it is locally a central projection system in each column.
In order to adapt the network to the distortions of the non-central panoramas, we have fine-tuned it. However, since non-central projection systems are little used in the research community, there is no data-set available. To overcome this difficulty, we have generated a data-set of non-central circular panoramas with ground truth information for layout recovery in synthetic indoor environments. This data-set is composed of around 650 different layouts from 6 to 10 walls and more than 2500 images. The data-set will be available under request.
2.2 Geometric solvers
In the second part of our pipeline, we take the pixel information provided by the network and reconstruct the scaled layout of the room. For that purpose, we derive two new geometric solvers to jointly obtain the room height and vertical walls location for Manhattan or Atlanta world assumptions.
We define a wall as a set of two parallel lines contained in a vertical plane (see Fig. 3). Let and be the ceiling and floor lines defined in Plücker coordinates Pottmann and Wallner (2009) and an orthonormal basis attached to the vertical wall. We define the closest points of the lines to the acquisition system and with and , distance from the acquisition system to the ceiling and floor planes, and , distance to the wall plane, such that and . Notice that with this description we can parameterize the Plücker coordinates of the lines as , , . We also define the projecting rays that intersect the ceiling and floor lines as and respectively.
(1) |
(2) |
Known the projecting rays, given by the output of the neural network, we aim to obtain the 3D lines that define each wall in the environment. The relation among the projection rays and the lines is given by their intersection, defined in equations (1) and (2). This is, in general, a non-linear problem which is difficult to tackle directly. However, we propose two new DLT-like approaches that allows to compute the solution for the layout as a linear problem.
(3) |
(4) |
Let the main direction of a wall be horizontal and described by the vector such that . We can define vectors and such that expressions (1) and (2) become linear obtaining a set of expressions ((3) and (4)) depending on the unknown wall homogeneous vector .
(5) |
(6) |
However in this linear system , , and are independent variables which are non-parallel. In order to impose the parallelism of these vectors we compute the null space of the system with a Singular Value Decomposition (SVD) obtaining a parametric solution which is the linear combination of the singular vectors with a set of parameters . Two horizontal lines contained in a vertical plane have 4 degrees of freedom. A minimal solution would need 2 rays for each line of the wall, describing the null-space with three singular vectors and two parameters and . By solving a system of two quadratic equations for and (with resultants, action matrices or as a polynomial eigenvalue problem Kukelova et al. (2011)) we obtain a set of 4 different solutions which should be discriminated. Since the network provides enough robust information, instead of the minimal solution, we propose to solve the over-determined case (with a minimum of 3 rays lying to each line) with a linear combination involving two singular vectors and single parameter (such that ) obtaining two uncoupled quadratic equations (5) and (6) respectively. These equations provide two solutions, where only one of them sets the ceiling line above the floor line.
Notice that with Manhattan world assumption there is a set of walls sharing the wall direction and the complementary set of walls share the orthogonal direction vector . Since all the walls share the ceiling height and the floor , we extend the DLT-like fitting to the whole set of walls, by computing the null-space of where is the layout vector where is the number of walls and the matrix is full-filed with relations (3) and (4). The same reasoning as in the case of a single wall can be used to enforce parallelism among , , .
(7) |
(8) |
For Atlanta world assumption each wall can have a different horizontal direction, therefore we have to extract each wall independently. Notice that in this case we are not imposing that and are common to all the walls. However, if the direction of each wall is known (for example extracting each wall independently) we can derive a new solution for the whole layout. Assuming that wall directions are known, we can express the projecting rays of each wall in its own local reference system and then equations (1) and (2) become (7) and (8) respectively, where and are the projecting rays in each wall reference system. Then, we can solve the null-space of a system of linear equations with where is composed from equations (7) and (8). The main advantage of this second approach is that can be used for Manhattan as well as Atlanta world environments whenever the layout has only one ceiling and floor heights.
3 Experiments
Manhattan World assumption | ||||
3D IoU | 3D IoU | CEN | CE | |
(u2s) | ||||
CFL Fernandez-Labrador et al. (2020) | 78.87 | - | 0.75 | - |
HorizonNet Sun et al. (2019) | 82.66 | - | 0.69 | - |
AtlantaNet Pintore et al. (2020) | 83.94 | - | 0.71 | - |
Ours | 93.88 | 86.18 | 0.787 | 0.223 |
Atlanta World assumption | ||||
HorizonNet Sun et al. (2019) | 73.53 | - | - | - |
AtlantaNet Pintore et al. (2020) | 80.01 | - | - | - |
Ours | 91.67 | 76.17 | 1.335 | 0.513 |
higher is better | smaller is better |
We have performed a set of experiments in order to evaluate our proposal and make a comparison with the state-of-the-art methods. The metrics used for the comparison are: 3D IoU, which refer to the 3D intersection over union of the predicted layout and the ground truth; 3D IoU(u2s), which refer to the up-to-scale intersection over union of the layout; CEN, which refer to the Corner Error Normalized computed as the L2 distance of the corners divided by the diagonal of the layout; CE, which refers to the Corner Error computed as the L2 distance of the corners in meters.
The comparison with state-of-the-art methods is not completely fair. The datasets used for the different methods are different, so the results can depend on the dataset used and not only on the method. Besides, our proposal only uses the image information in order to recover the 3D layout with the scale while the rest of the methods in the state of the art provide up-to-scale measures, relying on some measure in the environment for the 3D reconstruction, e.g. the camera height. Nevertheless, a summary of this comparison is shown in Table 1.
These results show that our proposal outperforms the state of the art methods for Manhattan as well as Atlanta world assumptions. Besides, our method also recovers the scale of the layout without any prior assumption. Some examples of our results are shown in Fig. 4, where different layouts are tested. We demonstrate that our method can handle quite challenging layouts, in different illumination conditions and world assumptions.
4 Conclusions
In this paper we have proposed two new solvers for indoor layout recovery from a single non-central circular panorama. We use a neural network for extracting the edges of structural lines from a non-central projection system and geometrically process the output in order to recover the 3D information of the layout. Our experiments show that our approach with non-central circular panoramas has better performance than state-of-the-art methods for Manhattan and Atlanta environments. In addition, our method can extract the scale of the room without any prior knowledge.
References
- Zou et al. [2021] C. Zou, JW. Su, CH. Peng, A. Colburn, Q. Shan, P. Wonka, HK. Chu, and D. Hoiem. Manhattan room layout reconstruction from a single 360 image: A comparative study of state-of-the-art methods. IJCV, 2021.
- Yang et al. [2019] ST. Yang, FE. Wang, CH. Peng, P. Wonka, M. Sun, and HK. Chu. Dula-net: A dual-projection network for estimating room layouts from a single rgb panorama. In CVPR. IEEE, 2019.
- Pintore et al. [2020] G. Pintore, M. Agus, and E. Gobbetti. Atlantanet: Inferring the 3d indoor layout from a single 360 image beyond the manhattan world assumption. In ECCV. Springer, 2020.
- Fernandez-Labrador et al. [2020] C. Fernandez-Labrador, JM. Facil, A. Perez-Yus, C. Demonceaux, J. Civera, and JJ. Guerrero. Corners for layout: End-to-end layout recovery from 360 images. IEEE Robotics and Automation Letters, 2020.
- Sun et al. [2019] C. Sun, CW. Hsiao, M. Sun, and HT. Chen. Horizonnet: Learning room layout with 1d representation and pano stretch data augmentation. In CVPR. IEEE, 2019.
- Li et al. [2004] Y. Li, HY. Shum, CK. Tang, and R. Szeliski. Stereo reconstruction from multiperspective panoramas. PAMI, 2004.
- Bermudez-Cameo et al. [2017] J. Bermudez-Cameo, O. Saurer, G. Lopez-Nicolas, JJ. Guerrero, and M. Pollefeys. Exploiting line metric reconstruction from non-central circular panoramas. Pattern Recognition Letters, 2017.
- Perdigoto and Araujo [2012] L. Perdigoto and H. Araujo. Reconstruction of 3d lines from a single axial catadioptric image using cross-ratio. In ICPR. IEEE, 2012.
- Zhang et al. [2014] Y. Zhang, S. Song, P. Tan, and J. Xiao. Panocontext: A whole-room 3d context model for panoramic scene understanding. In ECCV. Springer, 2014.
- Pottmann and Wallner [2009] H. Pottmann and J. Wallner. Computational line geometry. Springer Science & Business Media, 2009.
- Kukelova et al. [2011] Z. Kukelova, M. Bujnak, and T. Pajdla. Polynomial eigenvalue solutions to minimal problems in computer vision. PAMI, 2011.
ACKNOWLEDGMENT
This work was supported by RTI2018-096903-B-100 (AEI/ FEDER, UE).