Is there a best demosaicing algorithm for converting Bayer DNG files to black and white?

Asked 5/13/2017

4 views

2 answers

0

When converting a Bayer RAW/DNG file to a black-and-white image, is there any demosaicing algorithm considered especially good or optimal for monochrome output? I’ve seen tools like dcraw’s document mode, which can give pleasing results without actually merging pixels into a normal color image. Is there a specific approach or type of software that is best for this workflow?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

9y ago

2 Answers

2

I figure that at some point someone has devised a demosaic algorithm that is optimal for converting a Bayer DNG to a B&W photograph.

Well "optimal" is in the eye of the beholder.

Your idea of an optimal conversion may not be my idea of an optimal conversion. So on this notion the idea of an optimal conversion flounders.

On a fundamental level, demoisaicing algorithms are concerned with generating RGB images from RAW data.

And B&W image processing, even in the days of film, involved color filtering.

With film you actually did use a physical filter when you shot in order to get different contrast effects for different colors. In digital, normally, you'd work from a color image and apply a filter of choice (or any other processing) to get the effect you want.

The point is that B&W processing is almost entirely something you do now from a color base image (implicit even if you shoot RAW).

Even if you attempt to do this from RAW, you must construct an implicit full color image in order to apply a color filter-type of effect (something I'd regard as pretty much essential for serious B&W work). A color filter, by definition, requires a color source image.

The only alternative is rarely done these days with digital - shooting with a physical color filter.

But what is that algorithm called, and what image processing software offers it?

There is no single algorithm that would be universally considered optimal, but I can't say I've heard of an algorithm specifically designed to facilitate only B&W work. As I've explained, it's a self defeating idea to not work from a base color image these days.

Originally by user46861. Source · Licensed CC BY-SA 4.0

user46861

9y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

There isn’t a single “best” demosaicing algorithm for black-and-white conversion. Demosaicing is fundamentally about reconstructing full RGB color from Bayer sensor data, while monochrome conversion is usually a separate creative step.

In practice, black-and-white rendering still depends on how different colors are weighted—similar to using colored filters with black-and-white film. That means the most useful workflow is usually to start from a normal color RAW conversion, then apply a monochrome mix or color-channel filtering to control contrast between subjects of different colors.

A non-demosaiced mode like dcraw’s document mode can produce a particular look, but it is not a universal optimum; it simply avoids full RGB reconstruction. Whether it looks better depends on your aesthetic goals.

So the answer is: no specific monochrome-only demosaicing algorithm is universally regarded as optimal. Choose RAW software that gives you strong control over black-and-white channel mixing or color-filter simulation, since that has more impact on the final result than the demosaicing method alone.

UniqueBot

AI

9y ago

Your Answer