RAW Development Deep Dive

2026-07-176 min readImage ProcessingRAW FilesInfrared PhotographyPhotography

Today is going to get a bit specific and technical. But don't worry, this won't be the new standard content here. The following might be interesting for anyone who deals with photography on a daily basis and wants to know how things work under the hood. If you also happen to shoot "at the limits" like me - meaning infrared or ultraviolet - or if you use a manually modified camera, then this stuff might be even more relevant.

Still here? Okay. Let's get started.

In my last post, I described where standard RAW developers like Lightroom hit their limits when it comes to infrared photography. The takeaway was that automated processes optimized for normal photography get completely thrown off by the quirks of an IR image.

The first step of any image processing is what we call demosaicing. Even if you shoot straight to JPEG, this step still happens first, just directly inside the camera instead.

What is demosaicing anyway? The art of puzzling

A RAW file is not a finished image. You have to imagine it more like an incomplete mosaic. Every pixel on the camera sensor sits under a color filter - usually Red, Green, or Blue (the so-called Bayer filter). So a pixel under a red filter only knows the brightness value for red, and has absolutely no clue about green or blue. Demosaicing is the process where the software solves this puzzle. The algorithm looks at a pixel and its neighbors, then makes an educated guess to calculate the missing color values for every single pixel. Only after that do we get an actual color image.

How the software solves this puzzle depends on the motif, the situation, and the camera. It is less of a fixed mathematical equation and more of a strategic choice. This is where the wheat gets separated from the chaff. There are a bunch of different ways to solve this problem, and since most people want to deal with photos rather than algorithms, programs like RawTherapee have smart processes to choose for us. But they also let us make the choice ourselves - which can actually be better, since we as photographers usually know best what we want to focus on.

Here is a screenshot from RawTherapee showing a 100% crop of one of my RAW images with demosaicing deactivated. You can clearly see the structure of the sensor:

Screenshot of RawTherapee with a picture at 100% and deactivated demosaicing.

The exact same image, same crop. Only difference: the algorithm.

Screenshot of RawTherapee with a picture at 100% and DCB algorithm for demosaicing.

Broadly speaking, you can divide most algorithms into two philosophies:

1. The "detail-first" philosophy (The Optimists)

These algorithms assume that the image data is clean and that even the tiniest deviation between pixels represents a real detail. They analyze edges and patterns aggressively to reconstruct the sharpest possible image.

2. The "artifact-avoidance" philosophy (The Cautious)

These algorithms are more conservative. Their main goal is to avoid making mistakes, even if that means losing a tiny bit of sharpness. They assume the data might be noisy and put more value on smooth surfaces and clean colors.

Useful parameters to know

Besides choosing the algorithm, there are a few sliders you can use to fine-tune your strategy. The following refers to RawTherapee, but you can find similar options in other tools too.

With this knowledge, we can now choose the right strategy for our images on purpose. For standard shots, modern RAW developers are already pretty good at doing this for us. Low ISO shot? => AMaZE. High ISO? One of the others... For photographers, knowing this stuff becomes valuable when you deviate from the standard case. Shot at high ISO by accident? A special light spectrum or heavy filter use that creates a scenario the software can't guess? Choosing the algorithm yourself can really help!

One such scenario is infrared photography, so here is an explanation of what that looks like in practice.

Filter Group 1: "Super Color" / Low Wavelength (550nm, 585nm, 625nm)

Filter Group 2: "Classic IR" / Mid Wavelength (720nm)

Filter Group 3: "Deep IR" / High Wavelength (850nm) & Black-and-White Conversion

So, that's it for today. At some point, I'll extend this series to cover file formats and color spaces, but that's enough for now. Ultimately, for the pragmatic case, you can always just switch your camera to "Sport" mode and trust the tech 😉

Comments

Replies come from Mastodon. Reply to this post to join in.