Before the rush

Before the rush
by evan-pak

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I give Rawtherapee or Darktable a raw image, they will automatically transform the raw image using their internal pipeline to an output image.

Let's say I have designed a new demosaicing algorithm and I want to use it in the pipeline. I know that I can apply everything on a raw image in the pipeline just before the demosaicing; let's say I demosaic the image with my method. Is there some way in Rawtherapee or Darktable to apply the rest of the pipeline on the demosaiced image ?

share|improve this question
Do you realize without demosaicing you will have a monochrome image? And one that will have varying luminance values from one pixel to the next based on the color of the light that fell on the sensor covered by a Bayer filter? – Michael Clark Jul 25 '13 at 15:09
Thanks for your note; I changed my explanation to make my point more clear – Daniel Jul 25 '13 at 16:01
Related:… – coneslayer Jul 25 '13 at 17:21
Rawtherapee already supports multiple demosaicing algorithms. Have you considered adding yours as another option (even if only in your own local build)? – mattdm Jul 25 '13 at 22:40
Yeah, I guess that would be the easiest way to go; thanks for the suggestion... – Daniel Jul 25 '13 at 23:29
up vote 4 down vote accepted

RawTherapee and darktable are both open source projects - that means you can modify the software to use your own demosaicing algorithm.

I'm not familiar with the source code of those projects so I don't know how easy or difficult it is to change the demosaicing algorithm - but my guess is its easier than writing a substantially better demosaicing algorithm.

BTW, the demosaicing is pretty early in the pipeline, most meaningful image processing algorithms can't work on the raw data without seriously messing up the image colors, running only the pre-demosaicing part of the pipeline is unlikely to be useful.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.