Feature #8555

Implement bias and dark frame subtraction

Added by marsalek - over 7 years ago. Updated 10 months ago.

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


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 plugin Triaged
Related to darktable - Feature #9038: Flat field images New 11/08/2012


#1 Updated by Tobias Ellinghaus over 6 years ago

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

#2 Updated by Roman Lebedev about 5 years ago

#3 Updated by Ed Halley over 2 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 1 year 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 10 months 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)?

Also available in: Atom PDF