DCamProf: Creating a DCP for (b&w and color) negatives?

I have some experience now creating solid DCP profiles with Ander Torger’s great DCamProf command line tool.

Now my idea is to create a common or film material specific profile for black and white or color negative film by capturing an IT8 target on film, digitizing it and then use the common procedure to create a profile.

For a black and white film this is usually not necessary because inverting the tone curve is sufficient and may keep more film-specific tonality. Anyway, I want to know if it works. To start I have captured a black and white negative (AgfaPhoto APX 1000), exactly cropped the target in RawTherapee and then used “save reference image”.

Commands:

scanin -v -a -dipn target.tif it8.cht R170830.txt

scanin will have problems with -p, if the target is a negative image, so use -a and have a close look at the diag.tif afterwards.

dcamprof make-profile -i D50 -I D50 -S -x ./exclude.txt -r './negative.json.info' -n 'Nikon D5200' target.ti3 './negative.json'

By intention I use the same illuminant as the target was measured, because it’s b&w.
exclude.txt must contain patch names of all colored patches, so only the last row with the gray patches is left.

dcamprof make-dcp -t acr -H -n 'Nikon D5200' -d 'AgfaPhoto APX 100, DisplayLGENexus5X,-i D50 -I D50 -S,-t acr' -c 'Andreas Kalsch' './negative.json' 'Nikon D5200 AgfaPhoto APX 100, DisplayLGENexus5X,-i D50 -I D50 -S,-t acr.dcp'

-H will suppress the hue shift discontinuity error which will happen in this case.

dcamprof test-profile -i D50 -I D50 -S -r './negative.test' target.ti3 'Nikon D5200 AgfaPhoto APX 100, DisplayLGENexus5X,-i D50 -I D50 -S,-t acr.dcp'

But neither the gradient images dcamprof creates under negative.test/ are inverted (colors are just lightened up and paler), nor does the resulting DCP cause an inverted image in Lightroom or RawTherapee.

I guessed that this probably won’t work. Is there any trick to make this is possible?

You’re hurting my head… :smiley:

Half-baked thought, in order to compel the transform to invert the tones, I think you’d have to take the neutral patches and change their values in the .ti3 file to their opposite value relative to 0.0-1.0. 0.9 becomes 0.1, 0.8 becomes 0.2, etc.

Oh – this wasn’t my intention :astonished: I hope your head is fine again!

This is my target reference image (here as JPEG):

The values measured by scanin are contradicting, as expected: From the left to the right patches, XYZ (from the measurements of the reflective target) decrements while RGB increments (as expected for a negative):

GS00 75.72000 78.98000 64.00000 0.707610 1.984729 1.435816 0.0889840 0.280595 0.208865 
GS01 67.00000 69.69000 56.71000 0.726424 2.041428 1.474152 0.0945087 0.294374 0.212216 
GS02 59.66000 62.10000 50.54000 0.734821 2.079191 1.495429 0.0929105 0.292407 0.214975 
GS03 52.65000 54.69000 44.76000 0.765480 2.154912 1.555494 0.0950220 0.294276 0.221991 
  ...
GS21 0.900000 0.950000 0.810000 10.88060 30.16825 22.11966 0.864157 2.465908 1.887462 
GS22 0.710000 0.760000 0.650000 12.85286 35.59148 26.09651 1.002141 2.880007 2.139821 
GS23 0.370000 0.450000 0.450000 15.43426 40.90552 30.25120 4.518706 12.57198 9.299041 

The question is why DCamProf ignores the tonal invertion. I don’t understand what you propose. A profile is made by finding a mapping from measured to expected colors. And here, my measurements increment in brightness. It seems that a DCP cannot deal with a tonal invertion.

Out of curiosity, @Andi, have you made any progress? have you digressed perhaps in another direction?
(I’m currently exploring - a bit - the dcp creation process in the context of film scans)

No, I had no success with specific DCP profiles for negatives. The resulting profiles were not reliable in any way.

My current solution is 1. a calibrated screen, 2. using a good default DCP profile for your combination of camera and light, 3. on top of this create a separate RAW converter profile for each kind of film material with an inverting tone curve and, for color film, some “by eye” color corrections. The latter will be difficult for old material where you may miss a good target capture.
Don’t forget to activate black/white point warnings. Overexposing the negative leads to shadow losses. It may be necessary to correct this aspect per image.

It’s kind of messy. Example in Lightroom 5.5:

Bildschirmfoto 2023-03-05 um 01.56.01
Bildschirmfoto 2023-03-05 um 01.56.08

The results aren’t great in comparison to digitized slide positives, but good enough. Example:

Example of a negative captured with a Nikon D5200 and smartphone as background light, with adjusted camera calibration but without any HSL corrections. White clipping warning on.