DNG Camera Calibration for ACR and LightRoom

0
980

DNG Profile Editor

In this article, I have decided to revisit the tool Adobe DNG Profiler Editor 1.3 and the workflows around camera calibration from DNG files, also known as camera profiles.

The article “All About Camera Profiles” explains in detail the purpose and origin of camera profiles.

I recommend the reader review the aforementioned article in order to familiarize themselves with the fundamentals of the different workflows.

Next, I will provide a functional description of each section of this tool:

Before entering into descriptions and procedures, it should be noted that we can make adjustments for illuminants 6500K (D65) or 2850K (Standard Light A). It is possible to make adjustments for each illuminant separately or together using the option “Edit both color tables simultaneously” or extrapolate the adjustments from one to the other with the option “Copy Color Adjustements…“.
The dual illuminant technique is used to create more versatile profiles that serve both outdoor and indoor lighting. The terminology Color Tables stems from the idea that several conversion tables are created, which are not strictly Lookup tables (LUT), as in ICC color profiles, but rather characterization matrices.

It should be mentioned beforehand that the adjustments in each panel of DNG Profiler Editor can be used independently or all together, so that the adjustments of each panel accumulate in the result of our camera profile.

Color Tables

Adobe DNG Profiler Editor Color TablesThis control is designed, on one hand, to choose a base profile on which to create a custom one, and on the other hand to create a list of colors and their adjustments.
If we right-click on the loaded DNG image, an eyedropper will activate allowing us to add samples to our table.
Once a sample is loaded, from the color wheel, we can modify its HSL parameters (Hue, Saturation, and Lightness) by dragging the cursor over the sample.

Once a sample is modified, we will see in the color list that our sample is divided into two: the original sample and its modification.

Adobe DNG Profiler Editor :: BASE ProfileAs the reader may deduce, this is a tedious and somewhat subjective task. Moreover, what convinces me least about this process is working with the HSL space instead of the usual CIE LAB. If we know the output HSL values for a collection of color patches, we can enter the difference in the controls at the bottom of this section. Although in any case, it is quite a tedious process.
This panel is responsible for providing the calculations for designing the characterization matrices, colloquially called tables. If we do not load a list of colors and their corrections, this control will offer a result based exclusively on the base profile we choose.

Tone Curve

Tone Curve DNG Editor ProfileThe tone curve is better known as the adjustment curve or gamma curve, due to its characteristic logarithmic curves.
In this panel, we have the following options:

  • Base Profile: It is the curve inherited from the profile we are editing. By default, it usually matches the Camera Raw curve, but it could also be linear or user-designed.
  • Camera Raw Default: This is a type of curve that Adobe uses by default in its raw processors.
  • Linear: As its name indicates, it is the typical linear or 1:1 curve.

In addition to the presets, we can add our own points on the curve to create, for example, the characteristic “S” curve to apply some contrast, etc., …

Color Matrices

In this panel, we have a series of HS (Hue-Saturation) controls for the main colorants R-G-B, as well as a control for White Balance corrections.
This control can be found identically in our ACR.

Adjustments on the HS values of our colorants behave similarly to a characterization matrix.

ACR Calibrator Color MatricesAs in the Color Tables panel, the reader can understand that such adjustment appears tedious and somewhat arbitrary. However, if we resort to the legendary tool ACRcalibrator by Thomas Fors, although I recommend Simon Tindemans’ version ACRcalibrator L – Version 31, which currently works better than Thomas’s version. ACRcalibrator, after a long verification process that can take around 30 minutes, will offer us a list of parameters: Red Hue, Red Sat, Green Hue, Green Sat, Blue Hue, and Blue Sat.

Options

The options panel is simply aimed at defining the descriptive data of our camera profile. It should be remembered that the name we put here will be the one displayed through our program; it does not have to correspond to the .dcp file name.

Chart

Adobe DNG Profiler Editor :: colorcheckerWhen we access the Chart panel with a loaded DNG, four disks with colors corresponding to the four patches of the corners of our Colorchecker Classic or Colorchecker Passport will appear over our image.
These patches are used to define the perimeter of our chart within an image, so we must drag each disk over its corresponding color patch.

Once our Colorchecker is delimited, we must activate the option “Create Color Table” to perform the sampling and calibration of the main tones detected in our chart.

If we now go to Color Tables, we can see how the tedious work of color sampling and correction has been done automatically.

If we do not fix, in the Base Profile option, we now have a new option called colorchecker.

White Balance

Color Temperature DNGAlthough it is not shown explicitly, if we right-click on one of the neutral patches of our chart, we will see the color temperature and tint for the adjustment made displayed at the top margin of our image.
If we are using a Colorchecker Passport, we can use the set of 10 patches at the top to warm or cool the scene to our liking.
From the Edit menu, we can reset any adjustment made in this or other panels.

X-RITE Colorchecker Passport

Colorchecker passport x riteColorchecker Passport from the company X-RITE is a small software that accompanies the color chart of the same name and serves to create camera profiles in the same way as Adobe DNG Profile Editor, but with a simple interface.

This tool only offers the possibility to load an image, and thanks to a patch recognition engine of our Colorchecker, it prepares everything so that with the Create Profile button, we can generate our camera profile.

This application has a small peculiarity compared to its Adobe counterpart regarding the treatment of illuminants.
We said earlier that DNG Profile Editor works with two illuminants simultaneously and invariably: D65 and standard A. However, the X-RITE tool extracts this information from the metadata of our DNG; in fact, X-RITE offers us two possibilities: to create a simple camera profile, that is, with a single illuminant, or to create what is known as dual illuminant, in the same way Adobe does, but with the illuminants from our captures.

Dual illuminant camera profiles are presented as more versatile than single illuminant ones. For example, we can create a camera profile with one outdoor shot and another indoor shot, etc., … Although we must ensure a certain distance between the color temperatures of both shots, otherwise the tool will not allow us to create the profile.

The average ΔE* of the resulting profiles oscillates around 8, very similar to Adobe’s tool.

profile manager x riteFrom the X-RITE factory, with the acquisition of our Passport, we are allowed to freely download the tool Profile Manager, which as its name indicates allows us to view and manage the camera profiles stored on our system.

Inspection

Our camera profiles are stored in the directory /Users/[usuario]/Library/Application Support/Adobe/CameraRaw/CameraProfiles

In this directory, we can find our camera profiles .dcp and a file called index.dat that stores the paths of Adobe’s profile database plus ours, which are located towards the end of the file:

Nikon D200e/Users/jpereira/Library/Application Support/Adobe/CameraRaw/CameraProfiles/
Nikon D200 xrite doble.dcp model_restriction

If we want to delete a .dcp profile, in addition to deleting it from the directory, we must delete its corresponding line in the index.dat file.

If we want to control the publication of our dcp, I recommend using the X-RITE Profiler Manager program.

The .dcp files are compiled and therefore unreadable; however, there is a small command-line tool called Dcptool that performs conversions from dcp to XML and vice versa.

Usage

camera calibration ACR and LightroomApplying a camera profile to our raw developments is frankly simple. Both in Adobe Camera Raw and Lightroom, we have a panel called “Camera Calibration” where we have a dropdown combo with the available profiles.
In this panel, we can observe the adjustments of the primary colorants, just like in the DNG Profile Editor menu.