Feature #8555

Implement bias and dark frame subtraction

Added by marsalek - almost 9 years ago. Updated about 1 year ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:
Affected Version:
hardware architecture:


Implement bias and dark frame subtraction as described nicely for example here:

This needs to be done very early in the pipeline, one of the comments suggests (and includes an example) even before demosaic.

Related issues

Related to darktable - Feature #8422: Sensor Dust Remove pluginTriaged

Related to darktable - Feature #9038: Flat field imagesNew11/08/2012


#1 Updated by Tobias Ellinghaus almost 8 years ago

  • % Done changed from 0 to 20
  • Target version changed from --- to Future
  • Status changed from New to Triaged
  • Category changed from General to Darkroom

#2 Updated by Roman Lebedev about 6 years ago

#3 Updated by Ed Halley over 3 years ago

Would love to see traction on this -- the DNG files that come out of a recent popular drone, DJI Mavic Pro, have a very strong and consistent red bias in the center 30% of the frame. If the user could take samples in a controlled lighting situation (a flat field image), then subtract the bias from all compatible frames (dimensions, camera identifier, etc.), it would save a ton of time.

(Updated: the new DJI Mavic Pro camera has camera model "FC220" maker "DJI" in it. I don't have any physical color targets like Gretag or it8 to help with the new camera support.)

#4 Updated by Albert Jasinski over 2 years ago

This feature is essential for astro photographers and another people using long exposures.
Subtracting dark frame from image gives really good results.
Of course most of cameras have this feature built in. But using this option in cameras double exposure time - that is really bad, specially when you doing a time lapse.

#5 Updated by Raphaël Monat almost 2 years ago

I completely agree with Albert Jasinski. I've shot quite a few exposures of the milky way, and to process them I'm currently using ufraw to perform the dark frame subtraction between two raw files, before converting this into TIFF, and importing this into Darktable...

I'm just wondering: is this feature supposed to be added in darktable or in the raw decoder (rawspeed)?

#6 Updated by Ruxandra V about 1 year ago

+1 for getting this developed - it would be extremely useful to skip the ufraw step Raphaël Monat is describing

#7 Updated by Tomas Sobek about 1 year ago

It would be useful to have this work with Nikon NEF files that include both normal raw image as well as the dark frame all in one file. For example Nikon D7500 produces them when "Long Exposure NR" setting is ON and shutter speed is longer than one second.

Also available in: Atom PDF

Go to top