Building the DarkTable Sensor Noise Profile to Support a New Camera

Page 1...2...3...4...5...6...7...8...next
Current page…7
Return to blog post

Merging the new noise profiles with the darktable profile file

If you have more than one camera, you’ll want to keep the noise profiles that shipped with DarkTable, and just merge your new presets with them.
Make a safety copy of /opt/darktable/share/darktable/noiseprofiles.json
With a text editor, open your new presets.json file
Remove these lines at the top of the file:

{
  "version": 0,
  "noiseprofiles": [
    {
      "maker": "<your camera manufacturer’s name>",
      "models": [

And these lines at the bottom of the file:

      ]
    }
  ]
}

After the last remaining line (It should be a curly brace), add a comma, so it looks like this:

},

Leave what’s left of the presets.json file in the editor for the moment (don’t save it.)
Either change the attributes of /opt/darktable/share/darktable/noiseprofiles.json so you can change it by giving yourself RWX permissions on the file and the directory, or run as root (su or sudo) and edit /opt/darktable/share/darktable/noiseprofiles.json
Insert the lines that are left in presets.json into noiseprofiles.json immediately after the lines that contain:

      "maker": "<your camera manufacturer’s name>",
      "models": [

And immediately before the lines that say:

        {
          "comment": "<some camera name> contributed by "<somebody>,
          "model": "<Some Camera Name>",
          "profiles": [

The net effect of all this is that you have inserted a new "model" section containing your new profile definitions into the "models" section for your camera manufacturer.

Save the modified noiseprofiles.json file in place and test your change. Remember you still have the safety copy of the original file. Never change that, and never save the changes you made to presets.json. If something goes terribly wrong, you can always copy the safety copy back over noiseprofiles.json, close the editor containing the modified presets.json file, and start over.

If you only have one camera, you could just rename /opt/darktable/share/darktable/noiseprofiles.json, and copy and rename profiles.json to /opt/darktable share/darktable/noiseprofiles.json. However, if you do that, none of the definitions for any of the other cameras will be available in DarkTable.

Page 1...2...3...4...5...6...7...8...next
Current page…7
Return to blog post
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s