Darktable Negadoctor: I must be holding it wrong. Any advice?

I am unable to get a satisfactory result out of negadoctor on one of my colour negative films – not even close in fact. I’m confident that the module is not defective, so it is either user error or a ‘bad’ raw file (whatever that means). Could others have a try on a sample frame from this film and let me see the results?

I’m DSLR scanning film strips using a Nikon D610/ Micro Nikkor 60mm f/2.8D with a JJC slide/film copying attachment. Photographing the light source diffuser screen with no media in the slide or film holder give me a shot which the colour calibration module tells me equates to 6400 deg K ( JJC says their light source is at 6500 deg K, so that’s reasonably close). I have accordingly set the camera white balance as close to this temperature as is possible (6250 deg K).

One immediate problem of using the ‘blank’ shot to set the white balance correctly in dt, using the ‘from image area’ option, as recommended by the dt manual, is that I have to copy that setting from the history stack of the ‘blank’ shot and paste it into the history stack of a shot of a valid film strip frame. There are two options for the paste: ‘append’ and ‘overwrite’. The manual does not mention this nor, therefore, which to use. They give wildly different results, neither of them acceptable.

I chose instead to use the ‘temperature’ and ‘tint’ options under my camera name in the settings option of the white balance module. Inevitably I got the ‘white balance set twice’ warning (not mentioned in the manual); I ‘fixed’ it by choosing ‘none’ as the CAT method in the colour calibration module.

Following the dt manual instruction on how to set the film base colour in the negadoctor module, I found that the JJC film holder completely obscures the non-exposed part of the film strip. To get a reading of the film base colour I moved the film strip so that it was mis-aligned by half a frame, allowing me then to capture a shot with the film border (a few mms wide) down the centre of the image. The shot is attached.

The next problem with the process described in the dt manual is that as soon as I selected the eye dropper for the ‘colour of the film base’ part of the negadoctor module, the image became totally dark. I was able to find the unexposed strip between adjacent frames only by increasing the exposure by a large amount. The unexposed strip remained black. Having sampled it, the module then displayed the base colour in a lime green colour, completely different to the lemon yellow that the strip appears in the the lighttable…

Using the three samplers to set the red, green and blue Dmins resulted in a wildly wrong appearance of the image. One thing that I notice is that setting Dmin blue to the smallest increment above zero – i.e. 0.01 – made the whole frame immediately and distinctly blue. This seems to suggest that there is a problem with the film.

Could others please try with this frame, as attached, along with the shot for the unexposed base and the blank shot for the colour temprature of the source.

_DSC2072.NEF (19.7 MB)

_DSC2071.NEF (22.8 MB)

_DSC2067.NEF (25.8 MB)

This file is licensed Creative Commons, By-Attribution, Share-Alike.

Negadoctor can be quite moody, the color pickers and sliders interact and stack upon each other, so if the first thing you see after adding an instance of negadoctor is a very underexposed image, the pickers meters work off of that and overcorrect…

(first step - disable AgX, or whatever default tone mapper you have set)

Your image had a very unusual color for a negative, in my opinion - so I used the color calibration module to push some yellow/green to the colors, now it felt more familiar.

After that - my usual workflow would start with the exposure module - set the exposure so that youre covering as much of the histogram/waveform as possible, so that negadoctor has as much info as possible (without too much clipping on both ends)

Only after that I add the negadoctor module. My first step there is to play around with the scan exposure bias + paper black + print exposure adjustment - until you have an image that feels somewhat correct regarding the dynamic range. (not perfect, just, not too underexposed, not too overexposed)

Only then I start playing with the color of the film base picker/D min sliders, I usually dont bother with the “clicking on the base of the film” step, I just find the darkest point of the image and click into it - but if I click on the right part of the film base in your picture, I get this.

And now the dance between the corrections tab and the print properties tab start, I usually do this by eye - try to get the contrast and casts under as much control as possible - usually the color pickers for these tools will work now, since you should have a relatively neutral image by now - and only as a final step I touch the D max slider. I never touch the scan exposure bias slider after the initial setting in step one.

_DSC2067.NEF.xmp (7.8 KB)
(watch out - I am on darktable 5.7.0+, if youre on a stable 5.6.2/5.6.1 version, this xmp will crash your darktable)

The next step would be to fix the purple vignette, but thats outside of negadoctors abilities.

Edit: Triple CAT applied. I am more of a dog person but sometimes you gotta do what you gotta do.


_DSC2067.NEF.xmp (14.3 KB)

3 Likes

I think you need to add 2EV more worth of shutter speed for these - I can push exposure up 1.8 before hitting display white. You might have a bit more headroom after that in the camera raw. I think that’s making the blue channel too dark and noisy to get a good result.

I am finding this a bit harder than the Lyon negative shared here recently.

However, I’ve had a go with your raws. I used ‘camera reference’ white balance in the WB module and then measured the white frame with colour calibration, then copied those ‘custom’ illuminant numbers to the other pictures.

I tried to measure and re-use the slide colour, but it wasn’t giving me a satisfactory result, so I tweaked it while using the window border (I assume that’s pure white?) and looking at the vectorscope (Dmin is like another white balance step).

Dmax picker result was a bit heavy, I think because of the blue channel.
Shadows correction picker was not giving a good result.


_DSC2067.NEF.xmp (7.1 KB) (made with dt 5.6.2)

I think 5.6.2 fixed this? I loaded an xmp the other day and it said ‘highlights has unknown version 5, reverting to default’

I wouldnt risk it - I tried running 5.6.2 and it still crashed on loading into lighttable, so, just to be safe.

Oh yeah it might be the new masking or modules as well at this point.

1 Like

I just did a quick conversion in RapidRaw and can see this negative has degraded over the years and will be very challenging to get a nice result from. @bazdesh has done a good job in my view and explained it well.

1 Like

I hadn’t thought of trying this image in Rapidraw; I will do so.

It seems like this is not a suitable negative for inversion and retention - under exposed, bands of colour, and generally degraded. If I remember correctly I took this photo around mid-year 2010, so long enough for age related effects to occur.

The intent of the photograph was not my usual ‘take a snap’ approach: the foliage around this window had an impressive and most attractive contrast between the leaves and the flowers, making the whole place seem a highly desirable place to live (which it was). None of that emotion comes across in any of the inversion attempts I, or others, have been able to coax out of the raw images I supplied. Yes, the work by @bazdesh is the closest I have seen to what I had hoped to create by taking the photo.

In my original post I posited that the problem could also be ‘user error’. What is the collective view of the ‘readership’ on this?

My opinion is that your processing lab f…ked up and their chemistry was not in good condition causing the dyes in the film to be unstable. I state this as an owner of processing labs in the past. Not your fault. You may be able to scan the original print for better result.

1 Like

When scanning the film you should try to get as much light onto the sensor without clipping the highlights - so you have maximum dynamic range without any extra noise coming from boosting the exposure later - thats the only user error imo.
The film looking a bit cooked is probably not on you - you said you took the photo mid 2010, but when was it developed, how was it stored? The yellow color of the negative is unusual.
And as for the negadoctor steps… It is a lot of clicking back and forth, the manual talks about everything but looking at it now the process itself isnt really described there, right?

This is a tough one. The blue channel always seems crushed and lacking information in these old negatives. Maybe it is the degradation of the negative.
The only thing that i can advise which I also learned here in pixls is that a simple vignette correction before negadoctor can pull the bordering colours back to almost normal. Here an additional blue vignette was also neccessary.
Maybe further playing with rgb curves could separate the yellow flower s from the leaves even more.


_DSC2067_02.NEF.xmp (18.7 KB)

9 Likes

“scan the original print…”: now, why didn’t I think of that (making a print) ?

“when was it developed ?” Hmm, excellent question.

In this period there were events in my life which meant the exposed film could have sat in its canister for months after exposure. Generally, after development, I kept the film strips in acid free envelopes, in a folder which was exposed to daylight for less than a few minutes in any year - except for this roll, which was stored without the acid free precautions and more generally exposed to daylight - but not a lot.

And, yes, the manual seems like a simplified and idealised view of the process. Because of the way my mind (doesn’t) work, I prefer to have a prescriptive as well as a descriptive analysis of a process. Otherwise I stumble over decisions like choosing between ‘append’ and ‘overwrite’ when copying/pasting between history stacks. There isn’t enough information in my head which would allow me to make an informed decision.

1 Like

I’ve made a second attempt, remembering lens correction this time, and using colour balance RGB afterwards to add saturation. Also contrast equaliser for extra local contrast.


_DSC2067_01.NEF.xmp (10.2 KB)
Extra: Diffused the blue channel because of the noise, used RGB curve, and rearranged CB-RGB. No changes to the CB-RGB instance, it just looked nice already

_DSC2067_01.NEF.xmp (13.9 KB)

It is strongly recommended that you set the parameters following the order in which they are presented in the GUI. Start by setting the film stock, then work through each of the tabs (film properties, corrections, print properties) in order, working from top to bottom in each tab.
Makes sense to me, but I think it does need to be clearer that some sliders rely on the current output, instead of the input.

Well, that is a very satisfying attempt. The white of the window furniture and the pastel colour of the wall rendering seem to me to be particularly accurate.

For those interested, the shot is of a part of the UK National Trust property called Polesdon Lacy.

It could be heat affected film. A film in a glove box of a car in summer can be cooked like this in less than an hour or unprocessed roll of film can go like this if subjected to heat and or humidity for prolonged periods. Do you remember what the original print looked like. If it had normal colors then the negative has degraded.

@Attila_Low has done a reasonable job on this.

Hi @LateJunction I tried to invert your film and I get similar result as per @bazdesh.

I wrote my process to invert film negatives in a blog post.

Here are some things I’ve learned that I’d like you to think about:

  • The light source you use to illuminate the negative is the most important one and must be of high quality; better lighting can save you a lot of editing time;
  • Scan in dim light to avoid stray light (from windows, light bulbs, etc.);
  • Expose to the right; when capturing the frame, expose as far to the right as possible to capture as much information as possible from your negative; then correct in darktable/negadoctor;
  • Keep an eye on the RGB Parade to correct color casts; the quality of the light used to illuminate the negative greatly affects the alignment of the three channels in the RGB Parade.

If you do everything precisely during the capturing phase, to create an image, all you need is negadoctor to get a correct base image:

In this example, aside from crop and retouch, there are the minimum number of modules needed to produce a correct base image.

In your image, the issues I see are:

  • poor light source
  • incorrect white balance
  • light bleeding
  • underexposed original negative
  • underexposure during shooting, don’t be afraid to expose to the right

Hope this help!

2 Likes

Your attention to detail and the guidance you have given me are much appreciated. Commenting on the issues you raised:

  • The light source is (according to the manufacturer) CRI 96+ rated. I have used it in DSLR scanning of about 3000 slides over the last 9 months. In general those scans have not had a problem that could be attributed to the quality of the light source.

  • The white balance has been set in the camera by taking a photo of the light source and allowing dt colour calibration to tell me what the colour temperature of the resulting image is. It’s reasonably close to what the manufacturer claims. I have then set the white balance in my camera to match that of the ‘blank’ shot of the light source. Is this procedure going to give me an erroneous white balance setting in the camera and in dt?

  • There is a 9mm gap between the surface of the light source and the negative. But there is nothing significantly reflective within a 1 meter radius sphere centered on that gap from which the light from the light source could be reflected or could bounce around on. On the ‘other’ side of the negative there is no gap before light, having passed through the negative, enters a cone + tube which is physically attached to the lens. That cone and tube are internally matt black. All DSLR shots are taken in a darkened room, at night, with fully covered windows and no other light source. Could light still be bleeding into the frame?

  • Yes, the original negative is very light, indicating under exposure. There is noting I can do to correct that now, but I expected that negadoctor and the other relevant modules (e.g. tone equaliser) in dt should be able to cope with that. Am I wrong in my expectation ?

  • Capture exposure: here’s the strange thing: with my camera (Nikon D610) set up in Aperture Priority mode (in order the control the depth of field), and at minimum ISO (100; to minimise noise) the camera will always adjust the shutter speed to achieve optimum mid-range exposure. Setting exposure compensation (either through the tethering module in dt, or by physically changing the exposure compensation directly on the camera), between -3EV and +3EV, makes no difference to the exposure histogram. The exposure is always adjusted to correctly reproduce 18%, middle grey, by adjusting the shutter speed.

  • Finally, I should add that random DSLR scan samples from the next few films out of the many I have yet to ‘capture’ give results which are in a similar quality range to that from the previous 3000 or so slides. That is including shots from another roll of film shot on the same day in the same location. I conclude that it is just perverse fortune that the first negative film roll I chose to scan is in fact a degraded one. Am I mistaken in my conclusion?

If you use white balance (camera reference or as-shot to reference + color calibration as shot), then a D65 illuminant would, on most cameras, be shown as D50 in color calibration, so those numbers look weird. The reason is that the camera reference matrix is (usually?) created for D65, and the pipeline is D50-based, so D65 gets re-mapped to D50. 6000 K would be remapped to something like 4600 or K, D50 to about 4000 K. This is probably not the main reason (others have pointed out more important issues), but this, in itself, is also wrong. How and how much that influences negadoctor (if at all), I do not know.


It looks like a scanner/camera issue? is the light too bright, causing it to shine through and reflect on the other side? I tested it in my Spool. I can select the exact area to be included in the conversion. Check to make sure nothing is reflecting during the scan. You can try remove the magenta. The strip on the right, where the converted photo ends, should be black.

As I’m not experienced with scanning films, my only suggestion to try to get the most from this slide is:
If you use the same light and scanning setup, set camera to manual mode; Shutter speed 1/40, aperture f/8.0, ISO 100.

If you change the light intensity, you’ll need a different shutter speed.