Hasty Briefsbeta

Bilingual

Iterative image reconstruction using random cubic bézier strokes

2 months ago
  • #Bézier-curves
  • #image-processing
  • #Metal-acceleration
  • Splined is a tool for iterative image reconstruction using random cubic Bézier strokes, accelerated on Metal.
  • Images used in the showcase are open access by The Met.
  • Different seeds produce different reconstructions from the same input, enabling simple animations.
  • Build with `cargo build -r`.
  • Usage: `splined <input> [args]` with various arguments for customization.
  • Arguments include max splines to draw, batch size, RNG seed, GPU usage, logging level, output path, and more.
  • Input can be a file or directory, with options to save frames at intervals.
  • Algorithm converts input to Oklab color space, initializes canvas, and iteratively improves with Bézier strokes.
  • Strokes are accepted if they reduce squared Oklab error.
  • Reference to Geometrize, a similar desktop app.
  • Todo includes better antialiasing and support for other GPU backends like WASM.