Log in

View Full Version : ChickenDream: realistic film grain generator


cretindesalpes
11th April 2022, 17:46
I wrote a plug-in for realistic film-grain rendering:

>>> chickendream-r2.zip <<< (https://ldesoras.fr/src/vs/chickendream-r2.zip)

https://i.postimg.cc/FKR88BrT/grain.png
Original | mild grain | excessively huge grain

The plug-in supports Vapoursynth and Avisynth+.

Beware, the processing is extremely slow, a few seconds for a single FHD frame (with multi-threading). Note: ChickenDream supports AVSTP threading.

There is also a Git repository (https://github.com/EleonoreMizo/chickendream).

kedautinh12
12th April 2022, 00:21
avstp still error with mvtool2, i think need update for fix it

anton_foy
12th April 2022, 21:52
I wrote a plug-in for realistic film-grain rendering:

>>> chickendream-r1.zip <<< (http://ldesoras.free.fr/src/vs/chickendream-r1.zip)

https://i.postimg.cc/FKR88BrT/grain.png
Original | mild grain | excessively huge grain

The plug-in supports Vapoursynth and Avisynth+.

Beware, the processing is extremely slow, a few seconds for a single FHD frame (with multi-threading). Note: ChickenDream supports AVSTP threading.

There is also a Git repository (https://github.com/EleonoreMizo/chickendream).

Awesome! Just curious what kind of references did you use for this? Why is it so slow, because of the distribution of grain over the different frequencies? I know this is a difficult task thats why im so interested. Greatly appreciated!

DTL
12th April 2022, 22:14
Natural photon shot noise have Gaussian distribution (at medium and high levels). Do it have Gaussian distribution or other ? We need some source of Gauss distributed noise generator to test denoise processing with closeer to natural noise (I think AddNoise() plugin do not have Gauss distribution ?).

cretindesalpes
13th April 2022, 00:11
anton_foy:

It is slow because it is more or less a downscaler having to filter potentially hundreds or thousands grains per pixel.

This is an optimised implementation of the model and algorithm described in the following papers:

Alasdair Newson, Julie Delon, Bruno Galerne, A Stochastic Film Grain Model for Resolution-Independent Rendering (https://hal.archives-ouvertes.fr/hal-01520260), Computer Graphics Forum, Wiley, 2017
Alasdair Newson, Noura Faraj, Julie Delon, Bruno Galerne, Realistic Film Grain Rendering (https://www.ipol.im/pub/art/2017/192), Image Processing On Line 7, 2017, pp. 165–183
DTL:

AddGrainC uses a gaussian distribution. But the ChickenDream model works differently. Check the papers for more details.

cretindesalpes
2nd June 2022, 13:50
ChickenDream r2 (https://forum.doom9.org/showthread.php?p=1967245#post1967245):
Allowed larger grain radius when using large standard deviation values.
Added a draft parameter.
Changed the configure options to compile with Clang.
Fixed a crash when the picture width is not a multiple of 8 (thanks to MonoS for the report).

ognirats
1st March 2023, 22:19
https://forum.videohelp.com/threads/408800-NOT-WORKING-ChickenDream-%28film-grain-generator%29

help. linked videohelp thread