Noise tools embed incorrect 'maker' and 'model' in presets.json #8992
Description
Describe the bug/issue
I've generated noise profile data (presets.json file) for the new Pentax K-3 Mark III camera, using the noise tools (darktable-gen-noiseprofile) and attempted to test the noise profiles on images from the camera, starting darktable with the command 'darktable --noiseprofiles /home/terry/Pentax-K-3/presets.json'.
darktable does not recognise that the noise data in presets.json is applicable to the images.
If the presets.json file is edited to reflect what is in the image exif data, darktable then recognises that the noise data in the edited presets.json file is applicable to images from the camera.
To Reproduce
Please provide detailed steps to reproduce the behaviour, for example:
- Produce appropriate images from the camera and run 'darktable-gen-noiseprofile' as appropriate for those images to produce 'presets.json' file.
- Start darktable using the presets.json file in 1. above, and import images from the camera.
- Attempt to apply 'denoise (profiled)' on an image.
- denoise (profiled) uses 'generic poissonian'
The following notes elaborate in more detail;
darktable does not recognise the presets.json data is applicable to PENTAX K-3 Mark III DNG image.
The first few lines of the presets.json file as generated by the tools.
"version": 0,
"noiseprofiles": [
{
"maker": "PENTAX",
"models": [
{
"comment": "k-3 mark iii contributed by terry",
"model": "K-3 Mark III",
"profiles": [
The first few lines of edited presets.json to reflect what is in the exif.
darktable recognises that the edited presets.json data is applicable to PENTAX K-3 Mark III DNG image.
"version": 0,
"noiseprofiles": [
{
"maker": "RICOH IMAGING COMPANY, LTD",
"models": [
{
"comment": "k-3 mark iii contributed by terry",
"model": "PENTAX K-3 Mark III ",
"profiles": [
An extract from the output of exiftool for a PENTAX K-3 Mark III DNG file.
File Type : DNG
File Type Extension : dng
MIME Type : image/x-adobe-dng
Exif Byte Order : Little-endian (Intel, II)
Make : RICOH IMAGING COMPANY, LTD.
Camera Model Name : PENTAX K-3 Mark III
Orientation : Horizontal (normal)
Software : PENTAX K-3 Mark III Ver. 1.01
Expected behavior
denoise (profiled) will show 'found match for ISO...'
Screenshots
'Selection_012.jpg' shows result with original presets.json file.
'Selection_013.jpg' shows result with edited presets.json file.
Platform
_Please fill as much information as possible in the list given below. Please state "unknown" where you do not know the answer and remove any sections that are not applicable _
- darktable version : release-3.5.0-2257-gd48e51476
- OS : Linux
- Linux - Distro : Fedora 33
- Memory : 16GB
- Graphics card : Geforce GTX750Ti
- Graphics driver : nouveau
- OpenCL installed : yes
- OpenCL activated : yes
- Xorg : ?
- Desktop : Cinnamon
- GTK+ :
- gcc :
- cflags :
- CMAKE_BUILD_TYPE :
Additional context
Please provide any additional information you think may be useful, for example:
-
Can you reproduce with another darktable version(s)? **yes with version x-y-z / Not tried
-
Can you reproduce with a RAW or Jpeg or both? RAW-file-format/Jpeg/both Can reproduce with other images from the subject camera.
-
Are the steps above reproducible with a fresh edit (i.e. after discarding history)? yes/no Not tried

