Add new comment

In-Depth Demosaicing Algorithm Analysis

At the completion of a project that uses LibRaw, I want to share the more intense algorithm artifact analysis to be helpful for anyone hoping to use LibRaw in the future, and as a thank-you to Alex for the direct support.

To summarize, algorithm (user_qual) 11, DHT, is the best. It's better than the best offered by RawTherapee, too.
Here are the most important examinations I performed!

Fence / Roof comparison:

Light comparison:

Cone comparison:

Track line comparison:

Black / white checker comparison (animated GIF!):

Summary table with performance times (on a decently large 16bit image):

You can see why DHT is the best choice for image quality, and one of the better choices for speed, but of course nowhere near as fast as bilinear or PPG.

Hope this is helpful!