Project

General

Profile

mycameracurve1.sh

Rafa G., 10/13/2014 06:52 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,isldr) VALUES('Custom NIKON D7000','','basecurve',2,X'0000000013811e3b39589b39dfcf043b39581b3bc78a403b6f12033c65f3193c39589b3c21c6f73c27b4173d5aad963d6f12833daf571f3e3223d03dc438823e39581b3ecfbfb83e1c2f5d3e0ff7f83e27b4973e610f1c3feaeac93e16a0403f6f12033feeb3573f83a5263f57d66b3f3223503f6eb5783f0000803f3a727f3f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000020000000000000000000000',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.002419}, {0.000296, 0.002027}, {0.002370, 0.002938}, {0.008000, 0.009396}, {0.018963, 0.030246}, {0.037037, 0.073573}, {0.064000, 0.155608}, {0.101630, 0.254339}, {0.151704, 0.360838}, {0.216000, 0.486260}, {0.296296, 0.609610}, {0.394370, 0.752443}, {0.512000, 0.842589}, {0.650963, 0.921239}, {0.813037, 0.971518}, {1.000000, 0.997837}}}, {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,isldr) VALUES('Custom NIKON D7000','','tonecurve',4,X'00000000ad0f5e3c39589b39024f563c39581b3bddc3743c6f12033c30e1933c39589b3c93eac43c27b4173dc61c193d6f12833dd130863d3223d03daa98e23d39581b3eaa00383e1c2f5d3e631e963e27b4973e3f6fe03eeaeac93ecf22153f6f12033f6858393f83a5263fcf725a3f3223503f220a743f0000803fe2fb7f3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000803d0000803d0000003e0000003e0000403e0000403e0000803e0000803e0000a03e0000a03e0000c03e0000c03e0000e03e0000e03e0000003f0000003f0000103f0000103f0000203f0000203f0000303f0000303f0000403f0000403f0000503f0000503f0000603f0000603f0000703f0000703f000000000000000000000000000000000000000000000000000000000000000000000000000000000000803d0000803d0000003e0000003e0000403e0000403e0000803e0000803e0000a03e0000a03e0000c03e0000c03e0000e03e0000e03e0000003f0000003f0000103f0000103f0000203f0000203f0000303f0000303f0000403f0000403f0000503f0000503f0000603f0000603f0000703f0000703f0000000000000000000000000000000000000000000000000000000000000000100000001000000010000000020000000200000002000000010000000000000000000000',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.013554}, {0.000296, 0.013080}, {0.002370, 0.014939}, {0.008000, 0.018052}, {0.018963, 0.024038}, {0.037037, 0.037381}, {0.064000, 0.065523}, {0.101630, 0.110643}, {0.151704, 0.179690}, {0.216000, 0.293201}, {0.296296, 0.438349}, {0.394370, 0.582562}, {0.512000, 0.724005}, {0.650963, 0.853314}, {0.813037, 0.953280}, {1.000000, 0.999937}, },{{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