Improve rendering: barycentric interpolation, Gaussian blur, white-cloud palette

Replace nearest-neighbour BFS flood fill with Delaunay triangulation
(spade) + barycentric interpolation for smooth cloud boundaries.
Add NaN-aware separable Gaussian blur (σ=8 px, rayon-parallelised) to
remove triangulation facets. Switch colour scheme from blue bands to a
continuous green-to-white opacity blend matching the DWD app style.
Pixel interpolation loop is also parallelised with rayon.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Schuwi
2026-03-06 22:19:46 +01:00
parent 4ee33a882d
commit ee9b039d56
3 changed files with 253 additions and 69 deletions

View File

@@ -15,3 +15,5 @@ font8x8 = "0.2"
clap = { version = "4", features = ["derive"] }
chrono = { version = "0.4", default-features = false, features = ["std", "clock"] }
anyhow = "1"
spade = "2"
rayon = "1"