Canon R5 C - Provide noise profiles and lensfun

Hi,

I recently got a Canon R5 C and I want to edit is .CR3 files in darktable.

I checked darktable’s 5.2.0 release notes and, for what I understand, my PC needs to have LibRaw 202502 or later.

Since it’s not working, I think that I need to install a different version of LibRaw. I searched about it, but without make it work. How can I do it?

I’m currently using darktable on Windows 11.

Thanks in advance :slight_smile:

You need a fresh version of libRaw and you need to compile darktable against that version.

Ok. How can I do it?

I tried to find info about it, but I still have no idea about the right way to do it.

Can you help me? Thanks. :slight_smile:

1 Like

The official dt 5.2 install package for Windows should already be built w/ this latest LibRaw version. One can verify by running from CLI darktable -version.

After openning a CLI and type the command, I received a message saying that ‘darktable’ is not recognised.

Nevertheless, I’m afraid that maybe I’m addressing the wrong “part” of darktable.

darktable can open Canon R5 C files and edit them, but denoise profiled don’t assign any profile for the camera and lensfun database recognise my lens, but not my camera.

After checking the release notes, I tought that maybe it was a LibRaw issue, but maybe is not.

If it’s not a LibRaw problem, how can I check this type of things in future?

Ah, so the basic raw support works, that’s good to confirm. You can search the forum for the rest (indeed not LibRaw issue), and there’ll be other experienced users chiming in.

Noise profiles needs to be provided from someone who owns that camera.
You can help: PIXLS.US - How to create camera noise profiles for darktable

lensfun doesn’t know about R5 C yet. You might provide the camera identification (or a sample raw file - sothe exif name can be extracted)
Adding it to lensfun then is a quite easy job…

Btw: best provide raw samples at https://raw.pixls.us/ ( requirements are described there)

Thank you!

Tomorrow I will take a look and try to do the process.

Hi,

So I took the photos as specified in the PIXLS.US article, however, I have encountered an issue.

I use a virtual machine with Ubuntu 25.04.

When I ran /usr/lib/darktable/tools/darktable-gen-noiseprofile --help I got “no such file or directory”.

So when doing step 1a and typing cmake -DCMAKE_INSTALL_PREFIX=/opt/darktable -DBUILD_NOISE_TOOLS=ON .. I got this CMake Error: The source directory "/home/vboxuser" does not appear to contain CMakeLists.txt

What can I do to solve this?

When you issue the cmake command, you need to be in the darktable source code folder.

Thank you! I was missing that.

So, those are the steps I took for the noise profiling:

1- I use WSL (Ubuntu 24.04.1 LTS) instead of a virtual machine. And I compile darktable (full install)

2 - In step 2 of the guide mentioned by @MStraeten, I run /opt/darktable/libexec/darktable/tools/darktable-gen-noiseprofile -d $(pwd) instead of /usr/lib/darktable/tools/darktable-gen-noiseprofile -d $(pwd), as mentioned by @da-phil in another thread.

3 - Follow the rest of the guide mentioned by @MStraeten.

I just submitted the noise profiles created on darktable’s github, here.

For lensfun:

I edit the corresponding lensfun xml file (mil-canon.xml) and create another entry by simply copying “Canon R5” parameters and adding a " C" in the end.

The xml file was located in C:\Program Files\darktable\share\lensfun\version_1

I hope this will help someone in the future! :slight_smile:

3 Likes

You could also contribute this change directly to GitHub - lensfun/lensfun: The Lensfun project Git repository

1 Like

If you update lensfun, your changes will be lost.

I opened an issue in lensfun Github :+1:

Is there a way to make them permanent?

I believe there’s a user file.

a related change is already merged at lensfun …

So if I update my Lensfun database, there will already be Canon R5 C parameters from my GitHub submission?

yes - i just updated and found :

<camera>
<maker>Canon</maker>
<model>Canon EOS R5 C</model>
<model lang="en">EOS R5 C</model>
<mount>Canon RF</mount>
<cropfactor>1</cropfactor>
</camera>

so camera and lenses with RF compatible mounts can be used …

Awesome! Thanks for let me know

To run darktable commands, you need to locate darktable.exe and run it from the folder of the executable, like this:
PS C:\Program Files\darktable\bin> .\darktable.exe --version