Skip to content

Local Adustments: 'Film Grain' tool generating innacurate 1:1 preview #6311

Closed
@marcapelini

Description

The "Film Grain" tool in the "Local Adjustments" tab does not show a correct rendering of the output image at 1:1 magnification. The noise in the preview looks much smoother and finely-grained than the one in the actual output file, making the preview image useless for evaluating the effect of the adjustments available in the tool ('Distribution (ISO)', 'Gamma', 'Strength').

Example of the image preview 1:1 in RT side-by-side with to the TIFF output opened in GIMP:

rt_vs_gimp_film_grain

Above issue found in RawTherapee built from source using the 'build-rawtherapee' shell script with no modification of any parameters. Operating system is Kubuntu 20.04. Problem noticed on my first try of the LA/'Film Grain' tool several weeks ago, but confirmed with the current contents of 'dev' branch:

rt_git_repo

For the above example:

  • Applied the ‘neutral’ profile upon opening the image
  • Enabled the ‘Black-and-White’ module without changing anything (not necessary to reproduce the problem, but it's part of my workflow and it's easier to see the difference in the monochrome image),
  • Added a new spot in LA with method ‘Full image’.
  • Adjusted the ‘Film grain’ parameters as shown, looking at the image at 100% to try to see the effect of each parameter as I changed its value.

The problem doesn't not seem particular to any camera or maker, as I confirmed it with raw files from different cameras (Panasonic GM1, Panasonic GX1, Panasonic LX7, Canon 350D, Canon G9, Canon G3), so I judge it not necessary to upload an example raw file. The steps are easy to follow, so no particular pp3 file needed either.

To further investigate the issue I installed the most recent Win64 build from https://keybase.pub/gaaned92/RTW64NightlyBuilds/ (RawTherapee_dev_5.8-3009-gd7f9e1f51_W64_generic_210705.7z) on an old Windows 7 machine, and confirmed exactly the same behaviour as in the current Linux build as above:

rt_vs_tiff_win_film_grain

I took a look at the source code in 'ipgrain.cc' and seeing it has been ported from Darktable, I opened the same image in DT with similar adjustments to the ones applied in RT, and the preview image corresponded as expected with the TIFF image converted with DT:

dt_vs_gimp_film_grain

I also tried the 'Film Grain' module in ART which I believe has also been ported from DT, and the 1:1 preview in ART corresponded with the TIFF output from that program:

art_vs_gimp_film_grain

Please let me know if you need any further information to characterise this problem.

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions