Commit 7d01c93a authored by Laurent Belcour's avatar Laurent Belcour Committed by Ludovic Courtès

[Add] Script to perform fitting of the dense data.

parent fc8492dc
......@@ -32,9 +32,15 @@ In this page, we link to the datasets you can read and manipulate with ALTA:
<td style="text-align:center"><a href="retro-gray-tape.dat" >Original data</a></td>
<td style="text-align:center"><a href="retro-orange-tape.dat">Original data</a></td>
</tr>
<tr>
<td style="text-align:center"><a href="retro-3M-jaune-dense.dat" >Used data</a></td>
<td style="text-align:center"><a href="retro-gray-tape-dense.dat" >Used data</a></td>
<td style="text-align:center"><a href="retro-orange-tape-dense.dat">Used data</a></td>
</tr>
</table>
</center>
@endhtmlonly
We prodive the original dataset as well as the densified dataset (using Matlab interpolation) that was used to perform fitting of the different retroreflection models. An example of fitting xml script can be found [here](retro-3M-yellow-abc.xml).
</p>
\todo Add the different files in the repo. Need to know which one to put!
......
This diff is collapsed.
<?xml version="1.0"?>
<alta>
<!-- This script file compute the fitting of the retro-reflecting materials
present in the ALTA library. This script file should be executed in
the sources directory of repository as all directories are relative.
It is also necessary to create a results/3d/retro directory to store
the resulting fits and exports to BRDF-explorer and matlab.
-->
<!-- Fit the data to a Blinn BRDF model -->
<action name="data2brdf">
<!-- Input and output arguments of the action -->
<input name="./documents/data/retro-3M-jaune-dense.dat" />
<output name="3M_jaune_abc.brdf" />
<!-- Define the function to use -->
<function name="nonlinear_function_diffuse" />
<function name="nonlinear_function_abc">
</function>
<!-- Define the ftting procedure to use -->
<plugin type="fitter" name="nonlinear_fitter_ceres" />
<!-- Parameters -->
<parameter name="min" value="[0.1, -2, -2]" />
<parameter name="max" value="[0.3, 0, 2]" />
</action>
<action name="data2brdf">
<!-- Input and output arguments of the action -->
<input name="./documents/data/retro-3M-jaune-dense.dat" />
<output name="3M_jaune_abc.brdf" />
<!-- Define the function to use -->
<function name="nonlinear_function_diffuse" />
<function name="nonlinear_function_abc">
<parameter name="fresnel" value="nonlinear_fresnel_schlick"/>
<!--<parameter name="fixed" value="" />-->
</function>
<!-- Define the ftting procedure to use -->
<plugin type="fitter" name="nonlinear_fitter_ceres" />
<!-- Parameters -->
<parameter name="min" value="[0.1, -2, -2]" />
<parameter name="max" value="[1.7, 0, 2]" />
<parameter name="bootstrap" value="3M_jaune_abc.brdf" />
</action>
<!-- Fitting the lobe using a back parametrization:
The ABC model uses the dot product between the back and the
normal vectors.
-->
<action name="data2brdf">
<!-- Input and output arguments of the action -->
<input name="./documents/data/retro-3M-jaune-dense.dat" />
<output name="3M_jaune_abc_back.brdf" />
<!-- Define the function to use -->
<function name="nonlinear_function_diffuse" />
<function name="nonlinear_function_abc">
<parameter name="fresnel" value="nonlinear_fresnel_schlick"/>
<!--<parameter name="fixed" value="" />-->
</function>
<function name="nonlinear_function_abc">
<parameter name="param" value="COS_TK" />
</function>
<!-- Define the ftting procedure to use -->
<plugin type="fitter" name="nonlinear_fitter_ceres" />
<!-- Parameters -->
<parameter name="min" value="[0.1, -2, -2]" />
<parameter name="max" value="[0.3, 2, 2]" />
<parameter name="bootstrap" value="3M_jaune_abc.brdf" />
</action>
<action name="data2brdf">
<!-- Input and output arguments of the action -->
<input name="./documents/data/retro-3M-jaune-dense.dat" />
<output name="3M_jaune_abc_back.brdf" />
<!-- Define the function to use -->
<function name="nonlinear_function_diffuse" />
<function name="nonlinear_function_abc">
<parameter name="fresnel" value="nonlinear_fresnel_schlick"/>
<!--<parameter name="fixed" value="" />-->
</function>
<function name="nonlinear_function_abc">
<parameter name="fresnel" value="nonlinear_fresnel_retroschlick"/>
<parameter name="param" value="COS_TK" />
</function>
<!-- Define the ftting procedure to use -->
<plugin type="fitter" name="nonlinear_fitter_ceres" />
<!-- Parameters -->
<parameter name="min" value="[0.1, -2, -2]" />
<parameter name="max" value="[1.7, 2, 2]" />
<parameter name="bootstrap" value="3M_jaune_abc_back.brdf" />
</action>
<!-- Export the fit -->
<action name="brdf2gnuplot">
<!-- Input and output arguments of the action -->
<input name="3M_jaune_abc_back.brdf" />
<output name="3M_jaune_abc_back.dat" />
<parameter name="data" value="./documents/data/retro-3M-jaune-dense.dat" />
<parameter name="min" value="[0.1, -2, -2]" />
<parameter name="max" value="[1.7, 2, 2]" />
</action>
<!-- Fitting the lobe using a retro parametrization:
The ABC model uses the dot product between the light and the
view vectors.
-->
<action name="data2brdf">
<!-- Input and output arguments of the action -->
<input name="./documents/data/retro-3M-jaune-dense.dat" />
<output name="3M_jaune_abc_retro.brdf" />
<!-- Define the function to use -->
<function name="nonlinear_function_diffuse" />
<function name="nonlinear_function_abc">
<parameter name="fresnel" value="nonlinear_fresnel_schlick"/>
<!--<parameter name="fixed" value="" />-->
</function>
<function name="nonlinear_function_abc">
<parameter name="param" value="COS_TLV" />
</function>
<!-- Define the ftting procedure to use -->
<plugin type="fitter" name="nonlinear_fitter_ceres" />
<!-- Parameters -->
<parameter name="min" value="[0.1, -2, -2]" />
<parameter name="max" value="[0.3, 2, 2]" />
<parameter name="bootstrap" value="3M_jaune_abc.brdf" />
</action>
<action name="data2brdf">
<!-- Input and output arguments of the action -->
<input name="./documents/data/retro-3M-jaune-dense.dat" />
<output name="3M_jaune_abc_retro.brdf" />
<!-- Define the function to use -->
<function name="nonlinear_function_diffuse" />
<function name="nonlinear_function_abc">
<parameter name="fresnel" value="nonlinear_fresnel_schlick"/>
<!--<parameter name="fixed" value="" />-->
</function>
<function name="nonlinear_function_abc">
<parameter name="fresnel" value="nonlinear_fresnel_retroschlick"/>
<parameter name="param" value="COS_TLV" />
</function>
<!-- Define the ftting procedure to use -->
<plugin type="fitter" name="nonlinear_fitter_ceres" />
<!-- Parameters -->
<parameter name="min" value="[0.1, -2, -2]" />
<parameter name="max" value="[1.7, 2, 2]" />
<parameter name="bootstrap" value="3M_jaune_abc_retro.brdf" />
</action>
<!-- Export the fit -->
<action name="brdf2gnuplot">
<!-- Input and output arguments of the action -->
<input name="3M_jaune_abc_retro.brdf" />
<output name="3M_jaune_abc_retro.dat" />
<parameter name="data" value="./documents/data/retro-3M-jaune-dense.dat" />
<parameter name="min" value="[0.1, -2, -2]" />
<parameter name="max" value="[1.7, 2, 2]" />
</action>
</alta>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment