In the meantime I added the basecurve directly into the source code
(iop/bascurve.c). That worked fine. But the sql statement below is not working.
Whats wrong?
Matthias
Am 19.04.2014 09:33, schrieb Matthias Bodenbinder:
> Hello,
>
> I tried to create my own basecurve. I followed the instructions in the README
> in tools/basecurve.
> Everything worked fine, including printing of the curves in PDF. But I am not
> able to use them in DT.
>
> I run the "mycameracurves.sh" script that was created (see below). After that
> the entry "Canon 6D" shows up in the basecurve list but it is "blacked out"
> and can not be selected. The same is true for the tonecurve.
>
> What is going wrong?
>
> Matthias
>
>
> ----------------
>
> #!/bin/sh
> # to test your new basecurve, copy/paste the following line into your shell.
> # note that it is a smart idea to backup your database before messing with it
> on this level.
> # (you have been warned :) )
>
> echo "INSERT INTO presets VALUES('Canon EOS
> 6D','','basecurve',2,X'0000000000000000f09c1a3ca9bff13bed62c53cf9fc013d1f7c443d9925cb3dc7afc53d8fc9873e68e6e93d1bd7a63eae5b3f3edf9e053fd748723ece51203fbfa9a93e692a453f00bb183f33d5723fba985e3fb4b07f3f0000803f0000803f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
>
> 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
> 00000000000000000000000000000c0000000000000000000000020000000000000000000000',1,X'00000000180000000000C842000000000000000000000000000000000000000000000000000000000000000000000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F',7,0,'','%','%','%',0.0,51200.0,0.0,10000000.0,0.0,100000000.0,0.0,1000.0,0,0,0,0,2);"
> | sqlite3 ~/.config/darktable/
> library.db
> #!/bin/sh
> # to test your new tonecurve, copy/paste the following line into your shell.
> # note that it is a smart idea to backup your database before messing with it
> on this level.
>
> echo "INSERT INTO presets VALUES('Canon EOS
> 6D','','tonecurve',4,X'000000005c074b3be3f3443a8fd5523be3f3c43bd1358a3bc72da63ca8f4413ce3f3443db3b5003d2c56c03d3b52953dc72d263e6bd3373e61f1833e8a4ebb3ee3f3c43eeb8f1a3fa0360c3f00dd523f2c56403f0bec743f0000803ff1ff7f3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000abaaaa3dabaaaa3dabaa2a3eabaa2a3e0000803e0000803eabaaaa3eabaaaa3e5555d53e5555d53e0000003f0000003f5555153f5555153fabaa2a3fabaa2a3f0000403f0000403f5555553f5555553fabaa6a3fabaa6a3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000abaaaa3dabaaaa3dabaa2a3eabaa2a3e0000803e0000803eabaaaa3eabaaaa3e5555d53e5555d
>
> 53e0000003f0000003f5555153f5555153fabaa2a3fabaa2a3f0000403f0000403f5555553f5555553fabaa6a3fabaa6a3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
> 00000000000000000000000000000c0000000c0000000c000000020000000200000002000000010000000000000000000000',1,X'00000000180000000000C842000000000000000000000000000000000000000000000000000000000000000000000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F00000000000000000000803F0000803F',7,0,'','%','%','%',0.0,51200.0,0.0,10000000.0,0.0,100000000.0,0.0,1000.0,0,0,0,0,2);"
> | sqli
> te3 ~/.config/darktable/library.db
>
>
>
> # if it pleases you, then in iop/tonecurve.c append the following line to the
> array presets_from_basecurve and modify its name
> # {"Canon EOS 6D", {{{{0.000000, 0.003098}, {0.000751, 0.003217}, {0.006011,
> 0.004218}, {0.020286, 0.011838}, {0.048084, 0.031423}, {0.093914, 0.072911},
> {0.162284, 0.179517}, {0.257701, 0.365834}, {0.384673, 0.603759}, {0.547709,
> 0.823685}, {0.751315, 0.956727}, {1.000000, 0.999999}, },{{0.000000,
> 0.000000}, {0.083333, 0.083333}, {0.166667, 0.166667}, {0.250000, 0.250000},
> {0.333333, 0.333333}, {0.416667, 0.416667}, {0.500000, 0.500000}, {0.583333,
> 0.583333}, {0.666667, 0.666667}, {0.750000, 0.750000}, {0.833333, 0.833333},
> {0.916667, 0.916667}, },{{0.000000, 0.000000}, {0.083333, 0.083333},
> {0.166667, 0.166667}, {0.250000, 0.250000}, {0.333333, 0.333333}, {0.416667,
> 0.416667}, {0.500000, 0.500000}, {0.583333, 0.583333}, {0.666667, 0.666667},
> {0.750000, 0.750000}, {0.833333, 0.833333}, {0
> .916667, 0.916667}, },}, {12, 12, 12}, {2, 2, 2}, 0, 0, 0}},
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users