Splitting a Scene into Manhattan Frames with Row-Normalized Spectral Clustering

Indoor and urban scenes are mostly built from surfaces that meet at right angles. Vision systems exploit this through the Manhattan world assumption: the whole scene shares one set of three perpendicular axes, so finding the scene's orientation reduces to estimating a single 3D rotation. Real buildings break this. L-shaped wings, furniture turned at an angle, and street grids that meet obliquely each carry their own perpendicular axes. The model that allows several such frames, the Mixture of Manhattan Frames, is currently fit by slow stochastic sampling, taking minutes per scene. Fast methods give up and return one frame.

This note proposes a different route. Two surface normals that belong to the same Manhattan frame are always either parallel or perpendicular, whatever that frame's rotation is. Normals from different frames generally are neither. That pairwise test does not depend on any unknown rotation. So we can build a graph over surface patches whose edges measure "parallel-or-perpendicular", and split the scene into frames with spectral clustering. We use the variant that rescales each patch's eigenvector coordinates to unit length, which the statistics literature calls spherical (row) normalization. Rotations are then fit per cluster with a tiny least-squares alignment. Spherical normalization does more than provide a fast solver here. It handles two structural problems of indoor scenes. Huge surfaces like floors act as high-connectivity hubs. Shared axes, most commonly gravity, make some patches belong to several frames at once. The second case is exactly what the Atlanta world relaxation describes: one shared vertical axis, several horizontal ones.

Core Claim

Multi-frame Manhattan structure can be recovered deterministically, without sampling and without searching over products of rotation groups, by spectral clustering on a rotation-invariant "frame-consistency" affinity between surface patches. Spherical row normalization is the ingredient that makes this work under real scene statistics, for two reasons. First, it removes the dominance of large surfaces, the same way degree normalization removes hub nodes in networks. Second, under a shared vertical axis it places the shared patches strictly inside a spherical simplex instead of at a corner. That turns the Manhattan-versus-Atlanta distinction into a geometric readout rather than a modeling assumption.

Concretely, let $n_i \in \mathbb{S}^2$ be the plane-fit normal of patch $i$ and $\theta_{ij} = \arccos |n_i^\top n_j| \in [0^\circ, 90^\circ]$ the unsigned angle between two patches. We define the deviation from frame consistency as $\delta_{ij} = \min(\theta_{ij}, 90^\circ - \theta_{ij})$, and the affinity as

$$A_{ij} = \exp\left(-\delta_{ij}^2 / \sigma^2\right),$$

where $\sigma$ is an angular tolerance matched to normal noise. Patches from one frame form a dense block. Patches from frames that share no axis are weakly connected. A floor patch is perpendicular to every wall of every frame that shares gravity, so it connects strongly to all of them. The deviation $\delta_{ij}$ is at most $45^\circ$, which implies a resolution limit: two frames rotated by less than roughly $\sigma$ relative to each other cannot be separated. We will measure this limit rather than hide it.

Relation to Prior Work

The proposal reuses its machinery from spectral clustering. On Spectral Clustering: Analysis and an algorithm introduced the normalized-Laplacian algorithm that rescales eigenvector rows to unit length. It proved that, for disconnected components, rows land on mutually orthogonal points of the sphere. Our "frame-independent" case is the noisy version of this. Qin et al. showed that row normalization collapses the star-shaped rays created by heterogeneous node degree into compact clusters. Chung Graham et al. showed that degree-normalized spectral coordinates are invariant to how well-connected a node is. Both results motivate our claim that a floor, which in pixel count can outweigh a doorframe by four orders of magnitude, should not decide the partition. Multiclass Spectral Clustering replaces K-means on the eigenvector rows with an alternating search for the rotation that best aligns them to cluster indicators. We use that discretization step.

For the shared-axis case we borrow from Mao et al.. They show that in overlapping membership models, normalized rows form a spherical simplex whose vertices are "pure" members and whose interior holds mixed ones, recoverable by finding the simplex corners. We treat gravity-aligned patches as mixed members of several frames, and use them to identify the one axis the frames share.

On the Manhattan side, A Mixture of Manhattan Frames: Beyond the Manhattan World defines the model we target. It models normal deviations in tangent planes and infers the number of frames by Gibbs sampling with split/merge moves. That takes minutes per scene, and clutter spawns spurious "noise frames". We keep its model and its evaluation but replace the inference. Globally Optimal Manhattan Frame Estimation in Real-Time gives fast, globally optimal single-frame estimation by branch-and-bound over a spherical histogram of normals. Robust Manhattan Frame estimation from a single RGB-D image finds the rotation that makes rotated normals sparse, with a group-sparse outlier term. Both return one frame. We use them as per-cluster solvers and as single-frame reference points, not as competitors to beat on their own task.

The closest existing system is ManhattanSLAM. It already groups extracted planes into multiple frames using pairwise orthogonality, but it does so with hand-set thresholds and greedy assignment. Our affinity is the soft version of the same pairwise relation. The difference lies in what happens after it: a global spectral relaxation, degree normalization, and explicit handling of shared axes. We must show that these matter, which is why ManhattanSLAM's grouping is one of our baselines. In neural reconstruction, Popovic et al. cluster normals with Euclidean K-means into one frame, and AtlasGS finds walls and floors through a pretrained semantic segmenter. Both show demand for label-free frame discovery that copes with more than one frame.

Research Program

The pipeline has four stages, each small enough to analyze. First, the depth map or mesh is split into planar patches by region growing on normals. Each patch carries a plane-fit normal, a physical area, and a fit residual. Working at patch level rather than pixel level reduces normal noise, allowing a smaller $\sigma$. It also keeps the graph to a few hundred or thousand nodes, so a full eigendecomposition costs milliseconds. Second, we build the affinity above. We add a small regularizer to the degrees, in the regularized spectral clustering style of Qin et al., so that weakly connected clutter patches are not inflated by normalization. Third, we take the top eigenvectors of the normalized Laplacian and record each row's length before normalizing it. Rows with very small length are patches consistent with nothing, which in practice means curved furniture or noise. These are flagged as clutter instead of being forced into a frame. This is our direct answer to the noise-frame problem of the mixture model. The remaining rows are rescaled to unit length. The number of frames is chosen from the eigengap, which the spectral literature in the file flags as an open problem. We treat it as a measured quantity rather than a solved one. Fourth, we locate the simplex corners. Patches near a corner are assigned to that frame. Patches in the interior are labeled as shared, and their mean normal is reported as the common vertical axis. Each frame's rotation is then fit from its patches by Procrustes alignment to the nearest signed coordinate axis, followed optionally by a branch-and-bound refinement on that cluster alone.

The analysis component is a perturbation argument for the ideal case. With exact normals and frames that share no axis, the affinity matrix is block diagonal. The NJW result then places frames at orthogonal points on the sphere. Standard eigenvector perturbation bounds then predict that partition errors scale with the ratio of off-block affinity mass to the eigengap. That ratio is governed by $\exp(-\delta^2_{\min}/\sigma^2)$, where $\delta_{\min}$ is the smallest consistency deviation between frames. This is where the predicted resolution limit comes from, and the controlled experiments below test it.

Baselines

The naive reference point is to ignore the mixture entirely: run the single-frame branch-and-bound of Joo et al. on the whole scene and report one frame. On predominantly single-frame scenes this is the method to match. Joo et al. report a mean angular error of 2.63° on NYUv2 in 0.07 s. In the same paper, exhaustive search reaches 2.5° in over 100 s, and the mixture model reaches 12.50°. Our method, restricted to scenes with one frame, should land within about half a degree of 2.63°. If it is clearly worse, the clustering step is costing accuracy it should not.

The strongest existing multi-frame method is the Mixture of Manhattan Frames sampler of Straub et al.. It infers the correct number of frames in about 80% of NYUv2 scenes against human annotation, at several minutes per scene. We will run the authors' sampler with its default settings, giving it its full sampling budget, on exactly the same patch-level or pixel-level normals it was designed for, and compare frame-count accuracy, per-frame angular error, and wall-clock time. Beating it means matching or exceeding 80% frame-count accuracy while running at least two orders of magnitude faster. Under clutter, we additionally expect fewer spurious frames.

The baseline closest in spirit is the pairwise-threshold plane grouping used in ManhattanSLAM. We reimplement it on our patches, with the same patch extraction and the same angular tolerance as our $\sigma$, so that only the grouping logic differs.

Two further baselines are discussed below: sequential single-frame extraction, and direction clustering followed by orthogonal grouping. Each gets the same patches and a tuning grid of the same size over its tolerance parameters, selected on a held-out split.

Four ablations isolate the proposal's ingredients. Dropping row normalization, so that K-means runs on raw eigenvector rows, tests the hub claim directly. Using pixel counts instead of patch areas as weights tests the area-heterogeneity claim. Replacing simplex corner-finding with hard assignment tests whether shared-axis handling matters on Atlanta-style scenes. Turning off the row-length clutter filter tests its effect on noise frames.

Why not just…?

Why not just run the fast single-frame solver repeatedly, removing inliers each time? This is the most natural competitor, and it may work well when frames share no axis. It fails structurally when they do share one. The first pass claims the floor and ceiling. Later frames then retain only their walls, which constrain their rotation poorly. A large tilted object with many inliers can also be extracted before a true but small structural wing. This is the failure that Bazin et al. document for greedy and RANSAC-style estimation. The controlled shared-axis experiment below separates the two methods. If sequential extraction matches us on Atlanta scenes, the shared-axis claim is wrong and the remaining contribution is speed over the sampler.

Why not just cluster normal directions on the sphere, for example with a mixture of von Mises–Fisher distributions, and then group the resulting directions into perpendicular triples? This is a real threat. On clean scenes with well-separated frames it may do as well as we do, at similar cost. Its weaknesses are specific. It must pick the number of directions before it knows the number of frames. It merges directions from two frames rotated by a small angle into one mode. And grouping directions into frames is a combinatorial step that becomes ambiguous once a direction is shared. We will run it on identical patches. We will also run our affinity over its direction centers instead of over patches, which tests whether node granularity or the spectral formulation carries the gain. If the two-stage method matches ours at every relative rotation and clutter level, we will report that, and narrow the claim to the shared-axis simplex readout, which applies at either granularity.

Why not just segment walls, floors and ceilings with a pretrained network, as AtlasGS does? Semantic labels say which surfaces are structural, but not which frame a wall belongs to. Rotated furniture, which is exactly what the mixture model needs to capture, is labeled as an object rather than as structure. AtlasGS itself identifies segmentation errors as a direct source of geometric distortion. Dai et al. report about 40% accuracy for synthetically trained models on real scans, against 76.6% with large real training sets, which shows how much such priors depend on matched data. We will include a variant that filters patches by predicted semantic class before our clustering, to check whether semantics help as a complement.

Proposed Experiments

The primary benchmark is NYUv2 from Silberman et al.. We report single-frame angular error against the 2.63° reference, and frame-count accuracy against the roughly 80% reported for the mixture model. We use the human frame annotations from Straub et al. if they can be obtained, and otherwise a re-annotation of the same scenes by two annotators with agreement reported. Because NYUv2 has few clean multi-frame cases, we add frame annotations for Replica meshes and a subset of ScanNet scenes. For these, per-surface frame labels can be read from the clean geometry. Metrics are frame-count accuracy, angular error per frame after optimal matching, patch-assignment accuracy, number of spurious frames, and runtime. The Cambridge aerial LiDAR scene, where the mixture model recovered three city grids, serves as a qualitative large-scale check.

Three decisive experiments use synthetic rooms built from planar primitives with realistic depth noise. The first sweeps the relative rotation between two frames from 2° to 45°, at fixed noise, to locate the separation limit and compare it with the $\sigma$-based prediction. If our method fails well above that limit while the direction-clustering baseline succeeds, the core claim is falsified. The second compares two-frame scenes that share gravity with scenes that share no axis. It tests whether simplex corner-finding recovers the shared vertical axis and assigns floor patches to both frames, where hard partitioning and sequential extraction do not. The third sweeps the fraction of clutter patches, such as curved and randomly oriented surfaces, from 0% to 60%. It measures spurious frames with and without the row-length filter, against the mixture model's sampler.

Finally, as a downstream check, we substitute our frame detection for the plane grouping inside ManhattanSLAM on ICL-NUIM and TAMU RGB-D. The reported figures there are 0.014 m trajectory error on ICL-NUIM and 0.53 m accumulated drift on the TAMU corridor, against 3.13 m for ORB-SLAM2. Improving frame discovery should matter most on sequences that pass between rotated wings. A null result on those sequences would tell us that better frame partitioning does not change tracking.