Recommend library to work with numeric rasters
⚓ Rust 📅 2025-12-15 👤 surdeus 👁️ 1I'm experienced with Rust, but have no idea what to pick for the task. Here's what I can do in Python:
- Make a matrix, lets say 1000x1000 cells, let's say
u32type. - Treat it like raster image, draw a geometry, not like painting, but like adding 1 or whatever u32 value to the cells the figure covers. And not be limited by 255 value of RGB.
- Ideally, increment by N, but if a figure covers a cell only partially, increment it by a respective fraction of N.
- Maybe blur the image with Gaussian blur, or maximum in a radius.
- Save to GeoTiff (Tiff with geospatial location tags), again not in colored format, but as an array of integer values. (GeoTiff can compress this data, not just deflate, but even with PNG compression.)
In numpy & other tools, it's doable. These are numeric and scientific libraries, not like image processing, where each channel is limited like 0..255.
I wonder how much of this I can outsource to libraries in Rust, rather than implement this myself.
2 posts - 2 participants
🏷️ Rust_feed