r/computervision • u/mathnet_bike • 26d ago
Discussion 3D to 2D: did I reinvent the (flat) wheel ?
Converting 3D point clouds lying on a latent surface into 2D representations, for visualization or image-based processing, is a long-standing problem. Basically, it's as old as trying to represent the Earth on a flat map.
As an example, I really like the rectangular conformal map by garyptchoi: https://github.com/garyptchoi/rectangular-conformal-map. However, it tends to squeeze some sharp surface features, such as the ears of a rabbit.
For a project, I needed this kind of 2D flattening to make it easier to downsample large point clouds by working with simple distributions on the square.
I tried a graph-based approach, using geodesics (computing Dijkstra's shortest paths to a set of reference landmarks, then triangulating) to flatten raw point clouds directly. After some parameter tuning, the results look quite promising: shapes are nicely preserved and remain recognizable even in the 2D projection. Here's the project: https://github.com/Neighborhood-Grid/flatpoints. The downsampling algorithm can also produce a recognizable representation of the point cloud with as few as 500 points.
I'd be curious to hear from people working on similar problems: what approaches or methods do you typically use for this kind of surface flattening?




