As you may have noticed, the usual updates of RawTherapee seem to have stalled after version 5.8 was released in February 2020. This feels like ages ago. Normally, the team would release at least two updates per year with new features and many bugfixes. If you have wondered when a new version will arrive, I can tell you: soon! In this post, I will provide a little backstory to the current situation and preview a lot of the upcoming features.
First of all, let’s be honest: COVID sucks. The same things that have disrupted the entire planet have similarly disrupted the RawTherapee team. The good thing is, development has always continued. Anyone can verify this on GitHub where a number of talented folks are still gradually moving things forward. Unfortunately, the project maintainer became unavailable and getting a new release out has therefore been nearly impossible. People are doing everything they can to get everything ready to release version 5.9 as soon as possible.
There are plenty of new things to look forward to as I will show you in the rest of this post. Most importantly, all these features are already available for you to use in the official nightly builds on GitHub (Linux and Windows). This is the de facto new version of the software, until 5.9 comes out. Please read that page for further instructions. The macOS builds are freely provided by @Benitoite.
Note: There is an active community of RawTherapee users and developers on the Pixls Forum. Most of this post is compiled from community contributions as discussed in more detail here. Thank you to @Lawrence37, @Desmis, and many others for providing me a list of the great work the team has been doing along with the extensive “WIP Release notes (v5.9)” compiled by @Thanatomanic.
Speaking of which, @Thanatomanic listed 28 distinct developers that have contributed (some or a lot of) code to the project in the last two years. Credit, where credit is due, to (in alphabetical order): @10110111, @adamreichold, @Benitoite, @Bezierr, @CarVac, @Desmis, @dheijl, @EwoutH, @ff2000, @Floessie, @freddii, @heckflosse, @jonathanBieler, @kdm9, @Lawrence37, @luzpaz, @mkyral, @Pandagrapher, @pinchartl, @purew, @rfranke, @rom9, @shapirus, @SimonSegerblomRex, @stwunsch, @Thanatomanic, @ya-isakov, @ylep.
Now let’s have a look at some of the awesome new features coming!
Note: RawPedia has much more detailed explanations and examples of this new feature.
Main developers: Jacques Desmis, Ingo Weyrich, Pierre Cabrera
Main contributors: Wayne Sutton, Jacques Dekker, Andy Astbury
A very exciting addition to the development versions leading up to 5.9 is the inclusion of a Local Editing capability. This allows for some complex local masking to be used for application of various tools based on shape detection performed with ΔE (color differences) using the RT-spots algorithm developed by Jacques Desmis.
This is similar to the U-Point concept originally used in Nikon Capture N2 and subsequently in Nik Collection, DxO Photolab, and Capture NXD. The approach is very different from other tools (GIMP, Photoshop) such as a lasso or magic wand approach to selecting regions in an image where selections are coupled with masks and blending to produce a desired effect. The creation of these selections can be time-consuming and tedious depending on how complex they should be.
The tool provides users the ability to choose the level of complexity they want when working as Basic, Standard, or Advanced.
RT-spots considers either an ellipse or rectangle as a base area and then uses reference values within to provide an average of hue, chroma, and luminance values to the shape detection algorithm. The modifications that can be made include most of the functions available in RawTherapee’s global adjustment tools along with some additional tools available only for Local Adjustments. RT-spots can also be used in exclusion mode to prevent the algorithm from influencing certain parts of the image. Furthermore, all adjustments can also be applied to the full image instead of a spot.
There’s a number of great examples available on the RawPedia page for many scenarios including:
- Example: changing the color of all the green leaves, except for one
- Correcting red-eye and removing sensor defects
- Dodging and Burning
- Making a graduated filter based on luminance, chrominance and hue (gradient filter)
- Five ways to change the exposure and lift the shadows
- HDR to SDR: A first Approach (Log Encoding - Cam16 - JzCzHz - Sigmoid)
- and many more!
This new feature brings a very quick and intuitive way to mask and edit local areas in images and is well worth grabbing a copy of the development version to try out!
Main developers: Jacques Desmis, Ingo Weyrich
Main contributors: Wayne Sutton, Andy Astbury
(Color is a complex topic that I (Pat) am not even remotely qualified to speak with any authority on. @Desmis has explained a summary of the main features of this feature and the explanations are available in-depth on the RawPedia Color Management page. Any errors or mistakes in describing this feature are my own.)
Abstract profiles allow you to perform custom image effects to your image (such as applying a particular “look” or “style”). This profile will allow you to define CIELAB or CIEXYZ values as both Input and Output - you can algorithmically define what color changes you like and produce a corresponding Look Up Table (LUT). This is accomplished using Virtual profiles in Little Color Management System, LCMS.
This means you can adjust:
- Tone Response Curve, TRC: You can adjust the gamma and slope to modify the image rendering (by default it’s gamma = 2.4 and slope = 12.92). It allows raising the shadows and modifying the lighter tones in an image while preserving the colorimetry and gamut.
- Illuminant (white point): Adjust the gamut of the working profile to adapt it to the shooting conditions while taking into account the colorimetry. If an image is taken at 4000K in sRGB (which is D65), the gamut may not be suitable. The joint action of the illuminant and CIECAM (symmetrical mode) allows you to ensure a good chromatic adaptation. It can be used in conjunction with the modification of the Primaries as well (below).
This is where the notion of Abstract profiles shines.
Several possibilities are available:
- Using this module as a Channel Mixer to create special effects similar to Color Toning (with or without CIECAM).
- Modify or refine the result of the Input Profile to improve the colorimetry (calibration).
Abstract profiles do not modify the Working profile, Input profile, or the Output profile. They do modify data in the same way as other RawTherapee algorithms. It works as a patch at the end of the pipeline (just before CIECAM and just before conversion to a screen profile or an Output profile) that acts on the 3 components of the ICC profile (Tone Response Curve, Illuminant (white point), and Primaries).
Main developers: Lawrence Lee, Ingo Weyrich
Main contributors: Javier Bartol, Paco Lorés, Andy Astbury
There are also new ways to inspect what the colors in an image are doing beyond a ‘classic’ histogram view. Most users would probably be familiar with a histogram that shows the distribution of the Red, Green, and Blue pixels of the image (usually along with the luminosity):
There is now also available the Waveform Analyzer (waveform) to inspect the distribution of colors in an image. This is a special representation of the RGB channels which shows the position of the pixels horizontally and the value of each pixel vertically and through a more vivid or duller tone the number of pixels with each value.
There are also vectorscopes in addition to the waveform analyzer. There are two types available, HS Vectorscope which displays pixel colors according to the HSL color space and HC Vectorscope that uses Lch color space.
Main developers: Lawrence Lee, Flössie
Main contributors: Roel Baars, Ingo Weyrich, Maciek Dworak
The simple manual approach for the perspective tool has now been augmented with a more powerful “camera-based” guided (or automated) perspective correction tool that considers the field-of-view of the image and the offset from the optical center to produce a physically correct perspective correction.
The focal length and crop factor are combined, automatically inferred from the image metadata, but can be adjusted manually if necessary. (The user is still needs to account for any cropping not already factored into the focal length and crop factor metadata - by increasing the crop factor and using horizontal/vertical shift to re-align the image center with the optical center). There is also a rotation option (different from the Rotate tool in that it is applied after the horizontal/vertical shifts.
@Lawrence37 provided this awesome example using control points on the forum:
As @Lawrence37 describes in the forum:
There are three buttons for automatically detecting lines in the image and correcting the perspective in the vertical direction, horizontal direction, or both. Automatic correction works well in most cases where the image has visible horizontal and/or vertical lines.
In case the automatic option fails to find lines or gets confused by irrelevant lines, the user can opt for the control lines option. The user draws lines over the image. When complete, RawTherapee will use those lines to calculate the correction. As long as there are at least two lines in the same direction as the correction direction, correction will be applied. This means it is possible to control which direction(s) get automatically adjusted by drawing the appropriate number of lines in the corresponding direction.
After correcting the perspective, users can make some final adjustments to the rotation, shift, and perspective recovery. The recovery option is particularly useful if a perfect correction is not desirable. For example, an image of a building may look strange if the building does not “lean back” slightly. One possible remedy is to reduce the amount of correction. This technique leads to a problem if perspective correction is applied in both directions or if post-correction rotation/shift are used; The lean will be tilted to one side. The solution is to use recovery, which ensures the lean is always centered.
While testing this myself I tried the automatic option and the results were perfect in just one click. Great work from the team!
Main developers: Rüdiger Franke, Lawrence Lee, Ingo Weyrich
Main contributors: Roel Baars, Javier Bartol
In the preferences, the full-screen inspector can be activated. When enabled, the inspector tab on the right panel of the file browser no longer appears. Instead, it is invoked by hovering the cursor over an image, then pressing and holding the f key. A new window will appear showing the entire embedded image in full-screen. Letting go of the f key will close the inspector window. Alternatively, pressing and holding Shift-f opens the inspector with the image at 100% zoom.
Clicking anywhere inside the inspector window while it is open will pin it. This allows further inspection of the image by panning (click-and-drag) and zooming (scrolling). Pressing f or Shift-f will fit the image to the window and zoom to 100%, respectively. The pinned inspector behaves like a normal window. This means it is possible to toggle the full-screen status, resize it, and move it around. The inspector can even be placed on a different screen for multi-monitor setups.
The detached inspector retains the image navigation of the tabbed inspector. By moving the cursor over the thumbnails in the file browser, one can inspect various regions of the image or switch between images.
Main developers: Alberto Romei, Flössie
Main contributors: Roel Baars
Film Negative was added back in RawTherapee 5.7 to invert raw images of film negatives (while accounting for the light response properties of film). It has now been revamped with quicker updating of previews while making adjustments and it no longer needs to be a raw image being edited. (Note that Film Negative is now in the Color tab).
The white balance has now been split into two parts. The first stage is for setting the proper white balance for the backlight using the standard White Balance tool and after the inversion the white balance of the scene in the film can be adjusted within the Film Negative tool.
Main developers: Jean-Christophe Frisch, Ingo Weyrich, Lawrence Lee
Main contributors: Roel Baars, Andy Astbury
The Spot Removal tool can be used to sample from other regions of an image to mask areas of interest (blemishes or sensor dust for instance).
A line connects the sample area to the replacement area for reference. The inner circle represents the area being replaced while the outer circle is the extents of the feathering that is used to blend the replacement into the surrounding area.
Main developers: Jacques Desmis, Ingo Weyrich
Note: I am borrowing heavily from the RawPedia page describing this algorithm.
Put simply, the algorithm compares a large number of sample colors in the image with a set of reference colors and their associated spectral data.
The algorithm “Iterative Temperature Correlation WB” is based on a comparison of the raw data of the image and a base of 200 colors representative of the visible colors in spectral data. Through several iterative steps it uses the correlation of this data to:
- search for the best Temperature
- search for the best green point (tint)
The system gives good (or very good) results when the illuminant of the scene, during shooting, is either “Daylight” (between 4100K and 12000K) or “Blackbody” (between 2000K and 4100K).
This algorithm divides the process into three phases:
- xyY comparison
- spectral data analysis
- color histogram analysis
- Calculate the RGB multipliers for each temperature between 2000K and 12000K and for the tint.
- Calculate the XY values from the 200 spectral-data values for each temperature.
- Select a temperature data range relative to the reference.
- Calculate the XY values in the form of a histogram and select from among the 158 possible values, the most commonly used colors (skin, sky, etc.) for each temperature.
- Sort the data in ascending numerical order.
- For the most frequently occurring data values, calculate the chromatic values of the image.
- Use the deltaE chroma values to select the reference colors from the 200 available possibilities.
- Calculate the reference RGB values as a function of the reference temperature.
- Calculate the XY values for each selected reference color as a function of temperature and tint.
- Calculate the RGB values of the image from the XY values using the RGB multipliers.
- First calculation of the Student correlation.
- For each tint and temperature range, calculate the channel multipliers and the XY values from the corresponding spectral data.
- Calculate the correlation coefficient as a function of the color green.
- Sort these values.
- Optimize the values to determine the correct temperature and tint values.
- Send these parameters to “wbauto”.
- Display the results and update Improccoordinator.cc.
Main developer: Ingo Weyrich
There are already dual-demosaic options in RawTherapee that blend the results from different algorithms together based on the region - the algorithm better suited for fine details is used on high-contrast areas of the image while the algorithm best suited for smooth regions is used on low-contrast areas. Bilinear is a fast method well suited for low-contrast, smooth regions so there are three new dual-demosaic options that can combine Bilinear with AMaZE, RCD, and DCB.
Main developers: Jacques Desmis, Ingo Weyrich
Main contributors: Wayne Sutton, Andy Astbury, Javier Bartol
Wavelets have been greatly improved and now include an “Attenuation Response” for control.
Attenuation Response now makes wavelets usable in most cases without adding artifacts. As @Desmis describes, it looks for the maximum of a signal (for each level, dimension), calculates a standard deviation, and from these two values it concentrates the actions on the most pronounced “central” part of the signal. Attenuation Response allows us to reduce or increase this “central” part as well as offset/move it.
Several modules have had big changes by the addition of this function such as Constrast, Chroma, and other modules.
The Toning module has been upgraded with the ability to graphically visualize changes.
The Denoise module is clearly improved but is limited in the number of levels of decomposition (memory and processing time). It includes an Advanced mode with complex optimization functions to improve the results. It also now includes a Chroma module.
Edge Sharpness, which increases the contrast on edges, is also improved.
There is a new Blur Levels module.
Residual Image has also been improved, in particular with the “Blur” function and a new “Clarity” module.
Final Touchup has also been significantly improved, in particular by the “Directional contrast” function which acts to differentiate the response of the 3 wavelet decompositions (horizontal, vertical, diagonal) and Final smoothing which allows you to attenuate images that are too “hard”.
Compared to Local Adjustments many modules seem similar, but because of the number of levels and ΔE @Desmis feels the performances of Local Adjustments are superior. Functions have been added in Local Adjustments such as “Graduated Filter” that acts on the contrast (in the wavelet sense), “Tone mapping” - another approach to the usual algorithms which with negative values allows you to simulate a “dodge & burn” and of course masks and functions related to the masks such as “Recovery base on luminance” mask.
@Benitoite also added an update to the macOS app for users of macOS 10.15+ that encountered stronger integrity protections for apps. The RawTherapee app for macOS now uses the standard Apple LaunchServices bundle structure (instead of a shell script) and the app is now hardened, sandboxed, signed by @Benitoite and notarized by Apple.
As usual, there have been countless bugfixes and smaller improvements to the software. Importantly, camera support has increased to include the processing of files from ProRaw, EOS R5, EOS R6, EOS RP, GFX 100, Z5, Z50, and others.
For everything else, please stay tuned for version 5.9. It is coming!