Film grain or granularity is the random optical texture of processed photographic film due to the presence of small particles of a metallic silver, or dye clouds, developed from silver halide that have received enough photons. learn more.
- Clone the repository / or download the source code.
git clone https://github.com/prashantrahul141/film-grain-filter
- Build using cargo, or download binaries from the releases page.
cargo build
- Using
put your "your_image.jpg"
in the build folder, same place the main
executable is.
main.exe --filename "your_image.jpg" --intensity 1.0 --lumen 0.5
Intensity is the custom value to change the colors overall, with testing i found keeping its value close to 1.0 works best.
Lumen is how much luminosity of the image gets affected by the random noise. with testing i found keeping its value close to 0.5 works best.