Better HN
topnewbestaskshowjobs
Log inSign up

adec314

12 karma · joined Jul 24, 2026 (4mo ago) · 20 submissions

Submissions

comment 2w ago · link · parent

It's realy the idea that Flat 3D object <-> Image, you can get a look at what the "founders" of geometry images said about that,

and how they apply it to simplify some mesh pipelines (hope it will feed your active curiosity !): https://hhoppe.com/proj/gim/

What I bring upon geometry images with my project, is the same idea for point clouds.

replace point[42] (index = 42) with point[row, col] (row, col of a learned matrix structure that store the points. Thus, the point cloud is stored as an image, and the pixels are the points).

Promising application is point cloud compression, but I can think of others: matrix storage is maybe not as accurate as e.g. kdtree storage, but very convenient to use, eg for neighbor querys, convolution...

comment 2w ago · link · parent

Yes ! here I get x20 compression on the bunny for a very correct output. (pip install flatpoints[viz] pyjpegxl)

import flatpoints as fp

import pyjpegxl

import os

#============ Raw point cloud =============================

xyz = fp.load("bunny") #Required format: numpy array, (N, 3)

#============ Fit the flattener ===========================

single_face = True #Or false -> two images (left + right)

flat = fp.Flat(xyz, single_face = single_face)

#============ Build one (single_face) resp 2 images: ======

images = flat.to_image(xyz) #(1, n, n, 3) or (2, n, n, 3)

left_image = images[0] #(n, n, 3), right_image = images[1]

#/!\, normalisation, needed for pyjpegxl:

b = xyz.min(axis = 0)

a = xyz.max(axis = 0) - b

left_image_normalised = (left_image - b[None, None])/a[None, None]

#============ Compression, Decompression ==================

pyjpegxl.imwrite(f"compressed.jxl", left_image_normalised, quality = 98)

_, image_decompressed = pyjpegxl.imread(f"compressed.jxl")

xyz_decompressed = a*image_decompressed.reshape(-1, 3) + b #basically, that's it.

#============ Visual inspection ============================

_ = fp.Flat(xyz_decompressed, single_face = single_face).plot()

#============ Memory saving ============================

memory_before = xyz.nbytes

memory_after = os.path.getsize('compressed.jxl')

print(f"Initial memory: {memory_before / 1024:.2f} KB")

print(f"New memory: {memory_after / 1024:.2f} KB")

comment 2w ago · link · parent

I have been trying for a while to put irregular things (point clouds) in regular grids, to use the grid itself as a data structure. Not because it is better, but just because grids are more structured than e.g. trees and thus easier integrate into ML pipelines. It all started here, with simple multi-indexing:

https://news.ycombinator.com/item?id=49042861

Then I realised that to make the multi-indexing procedure more effective, I need some kind of preprocessing, to make the points flat (2d insteed of 3d). When they are already flat I can sort them better.

Then I heard about mesh flattening, https://geometrycollective.github.io/boundary-first-flatteni... geometry images https://hhoppe.com/proj/gim/ and thought: this is something I need to try with point clouds, whenever they have a latent surfacic distribution. And well, it seems to work. At least now I can have bunnys dragon and elephants all to fit in the grid and not getting half of the legs, ears or whatever lost in the process.

4.

Show HN: 3D to 2D, point clouds flattening (geometry images)(github.com ↗)

24 points · by adec314 · 2w ago · 8 comments

comment 1mo ago · link · parent

To reproduce the sampling:

https://github.com/For-a-few-DPPs-more/hyperuniform-samplers...

6.

Show HN: Reusable, spectraly shaped Blue Noise point clouds(github.com ↗)

1 points · by adec314 · 1mo ago · 1 comment

comment 3mo ago · link · parent

- Source of the blog (not me): https://blog.wolfram.com/author/silvia-hao/

Stippling is an old topic. The question is simple: how to optimaly place points to fit a target distribution. Artists do that, and mathematicians search for algorithms to do it with computers, which is quite a challenge because naive formulations are intractable.

- Implementation based on Gaussian Blue Noise (me, both notebook and package): Feel free to explore stippling on your own images, from google Colab https://colab.research.google.com/drive/1W15QE8Boj0-Ld4Dx3N2... or directly by using the package from github https://github.com/For-a-few-DPPs-more/Recursive-Gaussian-Bl...

-Source for the theory of Gaussian Blue Noise (not me): Ahmed, Abdalla G. M. and Ren, Jing and Wonka, Peter (2022, doi 10.48550/arXiv.2206.07798)

8.

Optimal transport is art: images to collection of optimally placed particles(blog.wolfram.com ↗)

8 points · by adec314 · 3mo ago · 2 comments

9.

Show HN: Gaussian Blue Noise for image stippling (Colab demo)(colab.research.google.com ↗)

1 points · by adec314 · 3mo ago · discuss

comment 3mo ago · link · parent

Cartesian grid sort assign raw input points (x_k, y_k) to a grid by mapping the initial flat index k to a multi-index [ij]. Point set become (x_[ij], y_[ij]).

Alternated 1d sorts make the [ij] grid structure converge to monotonic, spatially coherent multi index with a simple and fast algorithm (<80 lines basic C++ code, <200 ms runtime / million points)

11.

Show HN: Simple, multi-key sorting algorithm for 2D+ points gridification(github.com ↗)

1 points · by adec314 · 3mo ago · 1 comment

12.

Show HN: From raw Point Cloud dataset to regular Grid index(huggingface.co ↗)

1 points · by adec314 · 3mo ago · discuss

comment 4mo ago · link · parent

github link of the project

https://github.com/ArmanddeCacqueray/SquareNet

14.

Ask HN: Multi dimensional sort (beyond Hilbert curve)

3 points · by adec314 · 4mo ago · 1 comment

15.

Show HN: Square net turn a wild elephant into a flat grid – ML ready(github.com ↗)

2 points · by adec314 · 4mo ago · discuss