Aliks
June 7, 2021, 12:44pm
58
MStraeten:
lensfun-update-data
That worked!
Just to flesh out the instruction a little.
in Konsole or whatever you use to get a command line:
Install the right package:
sudo apt install liblensfun-bin
run the suggested application:
lensfun-update-data
Restart darktable and voila - in Lens correction, Canon EOS R6 is automatically identified
Sadly my lens is not in the database yet, but I will try to do something about this.
1 Like
Aliks
June 8, 2021, 11:34am
60
Canon EF 100-400mm f/4.5-5.6L IS II USM
A good improvement on the mark 1 version, but heavy.
unfortunately i wasn’t able to get the toolchain described in PIXLS.US - Create lens calibration data for lensfun as well as the old toolchain to run on OSX yet …
MStraeten
(MartinSt)
June 10, 2021, 8:38pm
62
you might try adding this to your .local/share/lensfun/updates/version_1/slr-canon.xml
addition to lr-canon.xml
<lens>
<maker>Canon</maker>
<model>Canon EF 100-400mm f/4.5-5.6L IS II USM</model>
<mount>Canon EF</mount>
<cropfactor>1</cropfactor>
<calibration>
<distortion model="ptlens" focal="100" a="-0.00104" b="-0.00264" c="-0.00045"/>
<distortion model="ptlens" focal="135" a="-0.0049" b="0.0167" c="-0.02249"/>
<distortion model="ptlens" focal="200" a="0.00118" b="-0.00395" c="0.00649"/>
<distortion model="ptlens" focal="300" a="-0.0007" b="0.00406" c="-0.00001"/>
<distortion model="ptlens" focal="400" a="-0.00355" b="0.01547" c="-0.00989"/>
<tca model="poly3" focal="100" vr="1.0000577" vb="1.0001939"/>
<tca model="poly3" focal="135" vr="1.0000274" vb="1.0001208"/>
<tca model="poly3" focal="200" vr="0.9999920" vb="1.0000585"/>
<tca model="poly3" focal="300" vr="0.9999717" vb="1.0000282"/>
<tca model="poly3" focal="400" vr="0.9999391" vb="1.0000137"/>
<vignetting model="pa" focal="100" aperture="4.5" distance="10" k1="-0.5317" k2="0.5776" k3="-0.3664"/>
<vignetting model="pa" focal="100" aperture="4.5" distance="1000" k1="-0.5317" k2="0.5776" k3="-0.3664"/>
<vignetting model="pa" focal="100" aperture="5.6" distance="10" k1="-0.0722" k2="-0.1684" k3="0.0856"/>
<vignetting model="pa" focal="100" aperture="5.6" distance="1000" k1="-0.0722" k2="-0.1684" k3="0.0856"/>
<vignetting model="pa" focal="100" aperture="8" distance="10" k1="-0.0761" k2="0.1610" k3="-0.0549"/>
<vignetting model="pa" focal="100" aperture="8" distance="1000" k1="-0.0761" k2="0.1610" k3="-0.0549"/>
<vignetting model="pa" focal="100" aperture="11" distance="10" k1="-0.0852" k2="0.1859" k3="-0.0727"/>
<vignetting model="pa" focal="100" aperture="11" distance="1000" k1="-0.0852" k2="0.1859" k3="-0.0727"/>
<vignetting model="pa" focal="100" aperture="16" distance="10" k1="-0.0933" k2="0.2109" k3="-0.0895"/>
<vignetting model="pa" focal="100" aperture="16" distance="1000" k1="-0.0933" k2="0.2109" k3="-0.0895"/>
<vignetting model="pa" focal="100" aperture="22" distance="10" k1="-0.0867" k2="0.1789" k3="-0.0637"/>
<vignetting model="pa" focal="100" aperture="22" distance="1000" k1="-0.0867" k2="0.1789" k3="-0.0637"/>
<vignetting model="pa" focal="100" aperture="32" distance="10" k1="-0.0870" k2="0.1814" k3="-0.0657"/>
<vignetting model="pa" focal="100" aperture="32" distance="1000" k1="-0.0870" k2="0.1814" k3="-0.0657"/>
<vignetting model="pa" focal="135" aperture="5" distance="10" k1="-0.4238" k2="0.0814" k3="-0.0255"/>
<vignetting model="pa" focal="135" aperture="5" distance="1000" k1="-0.4238" k2="0.0814" k3="-0.0255"/>
<vignetting model="pa" focal="135" aperture="5.6" distance="10" k1="-0.0894" k2="-0.3342" k3="0.1694"/>
<vignetting model="pa" focal="135" aperture="5.6" distance="1000" k1="-0.0894" k2="-0.3342" k3="0.1694"/>
<vignetting model="pa" focal="135" aperture="8" distance="10" k1="-0.0684" k2="-0.0132" k3="0.0366"/>
<vignetting model="pa" focal="135" aperture="8" distance="1000" k1="-0.0684" k2="-0.0132" k3="0.0366"/>
<vignetting model="pa" focal="135" aperture="11" distance="10" k1="-0.0697" k2="-0.0032" k3="0.0280"/>
<vignetting model="pa" focal="135" aperture="11" distance="1000" k1="-0.0697" k2="-0.0032" k3="0.0280"/>
<vignetting model="pa" focal="135" aperture="16" distance="10" k1="-0.0687" k2="-0.0032" k3="0.0253"/>
<vignetting model="pa" focal="135" aperture="16" distance="1000" k1="-0.0687" k2="-0.0032" k3="0.0253"/>
<vignetting model="pa" focal="135" aperture="22" distance="10" k1="-0.0713" k2="0.0012" k3="0.0244"/>
<vignetting model="pa" focal="135" aperture="22" distance="1000" k1="-0.0713" k2="0.0012" k3="0.0244"/>
<vignetting model="pa" focal="135" aperture="32" distance="10" k1="-0.0598" k2="-0.0316" k3="0.0472"/>
<vignetting model="pa" focal="135" aperture="32" distance="1000" k1="-0.0598" k2="-0.0316" k3="0.0472"/>
<vignetting model="pa" focal="200" aperture="5" distance="10" k1="-0.4423" k2="-0.0793" k3="0.0938"/>
<vignetting model="pa" focal="200" aperture="5" distance="1000" k1="-0.4423" k2="-0.0793" k3="0.0938"/>
<vignetting model="pa" focal="200" aperture="5.6" distance="10" k1="0.0269" k2="-0.7742" k3="0.3792"/>
<vignetting model="pa" focal="200" aperture="5.6" distance="1000" k1="0.0269" k2="-0.7742" k3="0.3792"/>
<vignetting model="pa" focal="200" aperture="8" distance="10" k1="-0.1523" k2="0.2404" k3="-0.1558"/>
<vignetting model="pa" focal="200" aperture="8" distance="1000" k1="-0.1523" k2="0.2404" k3="-0.1558"/>
<vignetting model="pa" focal="200" aperture="11" distance="10" k1="-0.1181" k2="0.1141" k3="-0.0424"/>
<vignetting model="pa" focal="200" aperture="11" distance="1000" k1="-0.1181" k2="0.1141" k3="-0.0424"/>
<vignetting model="pa" focal="200" aperture="16" distance="10" k1="-0.1128" k2="0.0962" k3="-0.0307"/>
<vignetting model="pa" focal="200" aperture="16" distance="1000" k1="-0.1128" k2="0.0962" k3="-0.0307"/>
<vignetting model="pa" focal="200" aperture="22" distance="10" k1="-0.1138" k2="0.0876" k3="-0.0246"/>
<vignetting model="pa" focal="200" aperture="22" distance="1000" k1="-0.1138" k2="0.0876" k3="-0.0246"/>
<vignetting model="pa" focal="200" aperture="32" distance="10" k1="-0.1122" k2="0.0816" k3="-0.0175"/>
<vignetting model="pa" focal="200" aperture="32" distance="1000" k1="-0.1122" k2="0.0816" k3="-0.0175"/>
<vignetting model="pa" focal="200" aperture="36" distance="10" k1="-0.0980" k2="0.0412" k3="0.0059"/>
<vignetting model="pa" focal="200" aperture="36" distance="1000" k1="-0.0980" k2="0.0412" k3="0.0059"/>
<vignetting model="pa" focal="300" aperture="5" distance="10" k1="-0.3212" k2="-0.8003" k3="0.5791"/>
<vignetting model="pa" focal="300" aperture="5" distance="1000" k1="-0.3212" k2="-0.8003" k3="0.5791"/>
<vignetting model="pa" focal="300" aperture="5.6" distance="10" k1="-0.3104" k2="-0.7014" k3="0.5011"/>
<vignetting model="pa" focal="300" aperture="5.6" distance="1000" k1="-0.3104" k2="-0.7014" k3="0.5011"/>
<vignetting model="pa" focal="300" aperture="8" distance="10" k1="0.0814" k2="-0.6119" k3="0.2428"/>
<vignetting model="pa" focal="300" aperture="8" distance="1000" k1="0.0814" k2="-0.6119" k3="0.2428"/>
<vignetting model="pa" focal="300" aperture="11" distance="10" k1="-0.1490" k2="0.2713" k3="-0.2516"/>
<vignetting model="pa" focal="300" aperture="11" distance="1000" k1="-0.1490" k2="0.2713" k3="-0.2516"/>
<vignetting model="pa" focal="300" aperture="16" distance="10" k1="-0.1043" k2="0.0510" k3="-0.0076"/>
<vignetting model="pa" focal="300" aperture="16" distance="1000" k1="-0.1043" k2="0.0510" k3="-0.0076"/>
<vignetting model="pa" focal="300" aperture="22" distance="10" k1="-0.1058" k2="0.0494" k3="-0.0056"/>
<vignetting model="pa" focal="300" aperture="22" distance="1000" k1="-0.1058" k2="0.0494" k3="-0.0056"/>
<vignetting model="pa" focal="300" aperture="32" distance="10" k1="-0.1131" k2="0.0536" k3="-0.0066"/>
<vignetting model="pa" focal="300" aperture="32" distance="1000" k1="-0.1131" k2="0.0536" k3="-0.0066"/>
<vignetting model="pa" focal="300" aperture="36" distance="10" k1="-0.1104" k2="0.0327" k3="0.0117"/>
<vignetting model="pa" focal="300" aperture="36" distance="1000" k1="-0.1104" k2="0.0327" k3="0.0117"/>
<vignetting model="pa" focal="400" aperture="5.6" distance="10" k1="-0.4438" k2="-0.5109" k3="0.3846"/>
<vignetting model="pa" focal="400" aperture="5.6" distance="1000" k1="-0.4438" k2="-0.5109" k3="0.3846"/>
<vignetting model="pa" focal="400" aperture="8" distance="10" k1="-0.0108" k2="-0.8651" k3="0.5329"/>
<vignetting model="pa" focal="400" aperture="8" distance="1000" k1="-0.0108" k2="-0.8651" k3="0.5329"/>
<vignetting model="pa" focal="400" aperture="11" distance="10" k1="-0.0439" k2="-0.0794" k3="-0.0897"/>
<vignetting model="pa" focal="400" aperture="11" distance="1000" k1="-0.0439" k2="-0.0794" k3="-0.0897"/>
<vignetting model="pa" focal="400" aperture="16" distance="10" k1="-0.0948" k2="0.0159" k3="0.0036"/>
<vignetting model="pa" focal="400" aperture="16" distance="1000" k1="-0.0948" k2="0.0159" k3="0.0036"/>
<vignetting model="pa" focal="400" aperture="22" distance="10" k1="-0.0909" k2="-0.0043" k3="0.0231"/>
<vignetting model="pa" focal="400" aperture="22" distance="1000" k1="-0.0909" k2="-0.0043" k3="0.0231"/>
<vignetting model="pa" focal="400" aperture="32" distance="10" k1="-0.1076" k2="0.0198" k3="0.0116"/>
<vignetting model="pa" focal="400" aperture="32" distance="1000" k1="-0.1076" k2="0.0198" k3="0.0116"/>
<vignetting model="pa" focal="400" aperture="40" distance="10" k1="-0.1137" k2="0.0161" k3="0.0167"/>
<vignetting model="pa" focal="400" aperture="40" distance="1000" k1="-0.1137" k2="0.0161" k3="0.0167"/>
</calibration>
</lens>
<lens>
@MStraeten Where did that come from? should we include it in the official lensfun db?
MStraeten
(MartinSt)
June 11, 2021, 5:09am
64
I measured my lens - at least the lensfun calibrate.py was ok.
I made a pr #1434 at lensfun.
Thanks. The issue is that there is already a profile for that lens, but taken with an APS-C crop factor. I’m not sure that we can have both. Will have to look into whether we can replace the existing profile with yours. The danger is that is could affect people’s existing edits. However, I’m not sure why there would be a crop profile for a full frame lens – you can’t really extrapolate it to full frame, whereas in the other direction…
MStraeten
(MartinSt)
June 11, 2021, 10:34am
66
There can be both because the crop facto is taken into account - as far as i know
vfrico
(Víctor Fernández)
June 27, 2021, 10:03am
67
I don’t see the Canon M200 in the list, and I can supply some samples.
johnny-bit
(Hubert Kowalski)
June 27, 2021, 11:30am
68
Wow, I haven’t even seen M200 anywhere
Yes - please send full iso set if you can, it would be appreciated
vfrico
(Víctor Fernández)
July 1, 2021, 9:27am
69
Sorry for the delay. I’ve shot an scene with a lot of light. Hope it is enough. If something is wrong, please say it and I will reupload it.
I don’t own a lens other than the provided with the kit. It is an EF-M 15-45 IS STM, so I can’t test the result with crop mode.
File: https://1drv.ms/u/s!AmXnNRtma8wsgR0n4ALFbE5Gnaa8?e=GXwnVm
1 Like
johnny-bit
(Hubert Kowalski)
July 1, 2021, 9:52am
70
That’s a full set, thanks! M200 doesn’t have “crop” mode as it’s already APS-C
1 Like
Aliks
July 11, 2021, 1:01pm
71
Now that 3.6 is out, DT can recognise .CR3 files, but not process them.
I understand that it didn’t make the cut for 3.6, but with a fresh compile from github, and inclusion of Cytrinox’s module is it possible?
Could anyone write out a simple list of commands to do this?
You need to have exiv2 with BMFF support installed on your machine, this means using the one from your distro or compiling it yourself. Needs at least 0.27.4.
You need to clone darktable source including the submodules and replace the rawspeed submodule with the one from here: GitHub - cytrinox/rawspeed at canon_cr3
Afterwards just compile darktable as you normally would and it should be fine
Aliks
July 11, 2021, 4:12pm
73
Two things I am unsure about:
What are the commands to grab the cytrinox submodule and replace rawspeed?
The exiv2 readme is still saying there might be IP issues and so darktable will have to enable bmff support at run-time by calling the following function.
EXIV2API bool enableBMFF(bool enable);
How do I do this when starting darktable?
johnny-bit
(Hubert Kowalski)
July 11, 2021, 5:43pm
74
you don’t have to care about point 2. it’s done in code.
kurtm
(Kurt)
October 16, 2021, 12:55pm
75
Just curious if there is any further development regarding CR3 and Darktable?
Peter
(Peter)
October 16, 2021, 2:23pm
76
Which OS are you using and for what camera?
kurtm
(Kurt)
October 23, 2021, 6:44pm
77
Linux (Kubuntu) - Canon EOS R