Beep6581 / RawTherapee

A powerful cross-platform raw photo processing program
https://rawtherapee.com
GNU General Public License v3.0
2.75k stars 313 forks source link

Change the interpolation algorithm used for the preview in the Editor and the thumbnails in the File Browser #6629

Open teplit opened 1 year ago

teplit commented 1 year ago

The developed image in the Editor looks too soft when it is downscaled (zoom level below 100%). A similar softness affects the thumbnails in the File Browser.

Here is a comparison between RawTherapee 5.9 and Camera Raw 15 with a zoom level of 33%.

RawTherapee 5.9 RawTherape 5 9 interpolation

CameraRaw 15 Camera Raw 15 interpolation

At 100% zoom level the RawTherapee image actually is sharper than the CameraRaw image.

RawTherapee 5.9 RawTherape 5 9 - 100% view

CameraRaw 15 Camera Raw 15 - 100% view

The RAW file is taken from PlayRaw.

Thanatomanic commented 1 year ago

Please take a look at this thread: https://discuss.pixls.us/t/raw-preview-in-editor-window-is-blurry/25514/3. Please let us know your thoughts on what should be done, and why.

teplit commented 1 year ago

I read the discussion. I’m neither a software developer nor I want to be such.

I think that RawTherapee needs hardware acceleration in order to move forward in the future as viable RAW processing software. A GPU acceleration in RawTherapee will open the doors for more computationally expensive algorithms and it will improve the overall usability. It’s not a joy to use RawTherapee with 4K monitor…

I can’t recommend a particular interpolation algorithm – it’s neither my job nor hobby to make and compare measurements of computational footprint for different algorithms or different implementations of a particular algorithm. I know that Lanczos gives good results with acceptable amount of artifacts, but this depends on the implementation. For example in Affinity Photo there are two implementations of Lanczos – separable and non-separable. The latter produces sharper image, but with a lot more ringing artifacts. I’m also aware of some academic papers about image downscaling algorithms (Rapid, Detail-Preserving Image Downscaling and Content-Adaptive Image Downscaling), but I don’t know how well they work in practice.

Lawrence37 commented 1 year ago

I'm not convinced the issue is with the interpolation algorithm. Do you have any lens distortion correction turned on? That will introduce softness because the correction is applied on the reduced resolution preview.

teplit commented 1 year ago

Yes, there is applied automatic lens distortion correction. Without it the grass in the scene looks better (sharper) at 33% scaling in RawTherapee. However CameraRaw also applies automatic lens distortion correction:

Camera Raw - automatic lens correction