ALTA  alpha
Using the XML interface

ALTA commands can be performed using an XML specification, to simplify sharing of fitting, conversion and analysis procedures. The following script performs the fitting of the blue-metallic-paint from the MERL database using a Beckmann lobe (note there is no shadowing term, nor Fresnel term):

1 <?xml version="1.0"?>
2 <alta>
3  <action name="data2brdf">
4 
5  <input name="../data/3d/merl/blue-metallic-paint.binary" />
6  <output name="./results/3d/merl/blue-mettalic-paint.brdf" />
7 
8 
9  <function name="nonlinear_function_diffuse" />
10  <function name="nonlinear_function_beckmann" />
11 
12 
13  <plugin type="fitter" name="nonlinear_fitter_ceres" />
14 
15 
16  <plugin type="data" name="data_merl" />
17 
18 
19  <parameter name="export" value="explorer" />
20  </action>
21 </alta>

In this XML example, it is possible to perform fit using a compound function by concatenating multiple function plugins. This is equivalent to providing a list of plugins to the --func argument: --func [nonlinear_function_diffuse, nonlinear_function_lafortune].

You can perform this action using the following command, assuming that the xml script is in file script.xml:

$ ./scripts/xml_cmd.py script.xml

You can put multiple <action> commands in the xml file. Those commands will be executed in order.