Project

General

Profile

darktable-d7000-curves.sh

Istvan Kovacs, 10/23/2014 07:38 PM

 
1
#!/bin/sh
2
# to test your new basecurve, copy/paste the following line into your shell.
3
# note that it is a smart idea to backup your database before messing with it on this level.
4
# (you have been warned :) )
5

    
6
echo "INSERT INTO presets (name,description,operation,op_version,op_params,enabled,blendop_params,blendop_version,multi_priority,multi_name,model,maker,lens,iso_min,iso_max,exposure_min,exposure_max,aperture_min,aperture_max,focal_length_min,focal_length_max,writeprotect,autoapply,filter,def,format) VALUES('ND7000-kovacs','','basecurve',2,X'000000000000000062673d3c634fcf3b9d0af03cb0def43c81dcc43d6f3a583ef9e8073e7233993e9c46683ea4dbeb3eef62a13ec157153f825bab3e59721c3f0ff0cd3ee7fb303fd534e03ee9673b3fc8600a3f1ffe523fa1b81c3f1904603fc957253fcbb5653f2e7e453f1d95753fda816b3f20b07f3f0000803f0000803f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000020000000000000000000000',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
7

    
8

    
9

    
10
# if it pleases you, then in iop/basecurve.c append the following line to the array basecurve_presets and modify its name
11
# {"NIKON D7000", "NIKON CORPORATION", "NIKON D7000", 0, 51200, {{{{0.000000, 0.000000}, {0.011560, 0.006327}, {0.029302, 0.029891}, {0.096124, 0.211160}, {0.132725, 0.299221}, {0.226832, 0.460660}, {0.315208, 0.583370}, {0.334683, 0.611120}, {0.402222, 0.691344}, {0.437903, 0.732054}, {0.540539, 0.824190}, {0.612192, 0.875063}, {0.645871, 0.897305}, {0.771457, 0.959307}, {0.919950, 0.998781}, {1.000000, 1.000000}}}, {16}, {m}}, 0, 1},
12

    
13

    
14
#!/bin/sh
15
# to test your new tonecurve, copy/paste the following line into your shell.
16
# note that it is a smart idea to backup your database before messing with it on this level.
17

    
18
echo "INSERT INTO presets (name,description,operation,op_version,op_params,enabled,blendop_params,blendop_version,multi_priority,multi_name,model,maker,lens,iso_min,iso_max,exposure_min,exposure_max,aperture_min,aperture_max,focal_length_min,focal_length_max,writeprotect,autoapply,filter,def,format) VALUES('ND7000-kovacs','','tonecurve',4,X'0000000000000000a913f43ad6255139b7eb883b09e9063b02e5a33caeaa1b3c5c2dcb3cad4a433c9c678d3d88e8093d8fd9db3d31dc823d6763113e1f75df3d33cf473e89234a3ebc2c773e09d7933e47e9963e1cd2cc3ee02aaa3e6969f13e5597f63e3a242d3fff891b3fc5c24a3f75c05d3fab56783f0000803f0000803f000000000000000000000000000000000000000000000000000000000000000000000000000000000000803d0000803d0000003e0000003e0000403e0000403e0000803e0000803e0000a03e0000a03e0000c03e0000c03e0000e03e0000e03e0000003f0000003f0000103f0000103f0000203f0000203f0000303f0000303f0000403f0000403f0000503f0000503f0000603f0000603f0000703f0000703f000000000000000000000000000000000000000000000000000000000000000000000000000000000000803d0000803d0000003e0000003e0000403e0000403e0000803e0000803e0000a03e0000a03e0000c03e0000c03e0000e03e0000e03e0000003f0000003f0000103f0000103f0000203f0000203f0000303f0000303f0000403f0000403f0000503f0000503f0000603f0000603f0000703f0000703f0000000000000000000000000000000000000000000000000000000000000000100000001000000010000000020000000200000002000000010000000000000000000000',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
19

    
20

    
21

    
22
# if it pleases you, then in iop/tonecurve.c append the following line to the array presets_from_basecurve and modify its name
23
# {"NIKON D7000", {{{{0.000000, 0.000000}, {0.001862, 0.000199}, {0.004178, 0.002059}, {0.020007, 0.009501}, {0.024802, 0.011920}, {0.069045, 0.033669}, {0.107349, 0.063897}, {0.141981, 0.109110}, {0.195126, 0.197401}, {0.241382, 0.288750}, {0.294749, 0.400041}, {0.332358, 0.471507}, {0.481623, 0.676334}, {0.607574, 0.792034}, {0.866218, 0.970072}, {1.000000, 1.000000}, },{{0.000000, 0.000000}, {0.062500, 0.062500}, {0.125000, 0.125000}, {0.187500, 0.187500}, {0.250000, 0.250000}, {0.312500, 0.312500}, {0.375000, 0.375000}, {0.437500, 0.437500}, {0.500000, 0.500000}, {0.562500, 0.562500}, {0.625000, 0.625000}, {0.687500, 0.687500}, {0.750000, 0.750000}, {0.812500, 0.812500}, {0.875000, 0.875000}, {0.937500, 0.937500}, },{{0.000000, 0.000000}, {0.062500, 0.062500}, {0.125000, 0.125000}, {0.187500, 0.187500}, {0.250000, 0.250000}, {0.312500, 0.312500}, {0.375000, 0.375000}, {0.437500, 0.437500}, {0.500000, 0.500000}, {0.562500, 0.562500}, {0.625000, 0.625000}, {0.687500, 0.687500}, {0.750000, 0.750000}, {0.812500, 0.812500}, {0.875000, 0.875000}, {0.937500, 0.937500}, },}, {16, 16, 16}, {2, 2, 2}, 0, 0, 0}},
Go to top