https://github.com/virtualritz/dithereens
https://github.com/virtualritz/dithereens
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/virtualritz/dithereens
- Owner: virtualritz
- Created: 2024-06-17T16:53:19.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-17T17:48:57.000Z (about 2 years ago)
- Last Synced: 2025-01-24T23:28:37.477Z (over 1 year ago)
- Language: Rust
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `dithereens`
Functions and traits for quantizing values with error-diffusion.
This is mostly useful when e.g. quantizing from a [`f32`]- or
[`f16`]-per-channel color resolution to something like [`u16`]- or
[`u8`]-per-channel. In these cases quantization without error-diffusion would
lead to banding.
The crate uses generics to allow interpolation of any type for which certain
traits are defined.
## License
Apache-2.0 OR BSD-3-Clause OR MIT OR Zlib at your discretion.