Efficient mapping from point clouds to structured grids using bijective transformation.
Project details
SquareNet revolutionizes point cloud processing by providing a bijective mapping to structured grids. This innovative approach replaces costly spatial queries with efficient tensor indexing, allowing for rapid processing of large datasets, compatibility with popular libraries, and handling of complex geometries seamlessly.
SquareNet is an innovative solution designed for bijective gridification of point clouds, providing a fast and scalable method to transform unstructured point cloud data into structured grids. The bijective transformation ensures that each point corresponds to one cell without overlap, allowing for full invertibility. This approach significantly optimizes spatial queries, enabling efficient tensor indexing by replacing costly methods like k-nearest neighbors (k-NN), radius searches, neighborhood graphs, kd-trees, voxelization, and rasterization.
SquareNet effectively visualizes the transformation of data from raw point clouds into a structured tensor grid. The following illustration shows the differences in organization and accessibility after the gridification process:

Initialization of SquareNet occurs by specifying a target grid shape and subsequently calling the fit() method using the point cloud data. The underlying Cartesian sort algorithm rearranges point indices into structured grid multi-indices as shown in the following transformation:
raw points #(N, D) → sn.fit(X) → grid #(N1, N2, ..., ND)
flat data #(N, *C) → sn.map(X) → structured tensor #(N1, ..., ND, *C)
structured tensor → sn.invert_map(X) → back to flat view
The mapping ensures that the process is bijective, allowing the invert_map function to retrieve the original data precisely without any loss of information.
Instead of resorting to general optimal transport—which is computationally intensive at scale—SquareNet employs a rapid heuristic known as Cartesian sort. This method optimizes the gridification process by efficiently organizing data along 1D Cartesian projections, maintaining a highly vectorized approach for sorting.
SquareNet is particularly beneficial for:
For a detailed overview of the usage and advanced functionalities, refer to the Quick Start Guide.
SquareNet represents a critical advancement in processing complex datasets, merging speed and accuracy into a single efficient tool.
Comments
0Start the conversation
Share the first comment.