You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
104 lines
2.6 KiB
104 lines
2.6 KiB
2 years ago
|
.. Generování 3D modelu otisku prstu documentation master file, created by
|
||
|
sphinx-quickstart on Fri May 5 21:01:20 2023.
|
||
|
You can adapt this file completely to your liking, but it should at least
|
||
|
contain the root `toctree` directive.
|
||
|
|
||
|
Configuration and presets
|
||
|
=========================
|
||
|
|
||
|
There is an option to input the filter series as a **preset** from JSON configuration file.
|
||
|
Here the presets are stored and are ready to be used whenever needed. You can usehow many filters you need as long as you like the output.
|
||
|
It is therefore highly recommended to check the output after every preset change.
|
||
|
|
||
|
Filter used in the example above is listed bellow, along with the general form of configuration file.
|
||
|
|
||
|
.. raw:: html
|
||
|
|
||
|
<style>
|
||
|
table {
|
||
|
border-collapse: collapse;
|
||
|
width: 100%;
|
||
|
}
|
||
|
|
||
|
th, td {
|
||
|
padding: 8px;
|
||
|
text-align: left;
|
||
|
border-bottom: 1px solid #ddd;
|
||
|
}
|
||
|
|
||
|
th {
|
||
|
background-color: #f2f2f2;
|
||
|
}
|
||
|
|
||
|
.code {
|
||
|
font-family: 'Courier New', monospace;
|
||
|
background-color: #f5f5f5;
|
||
|
padding: 8px;
|
||
|
}
|
||
|
|
||
|
.language-json {
|
||
|
color: #333;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>General format</th>
|
||
|
<th>Working example</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td>
|
||
|
<pre><code class="language-json">
|
||
|
{
|
||
|
"preset": [
|
||
|
{
|
||
|
"name": "filter_name",
|
||
|
"parameter": value,
|
||
|
"parameter": value
|
||
|
},
|
||
|
{
|
||
|
"name": "filter_name",
|
||
|
"parameter": value
|
||
|
}
|
||
|
],
|
||
|
"preset": [
|
||
|
...
|
||
|
]
|
||
|
...
|
||
|
}
|
||
|
</code></pre>
|
||
|
</td>
|
||
|
<td>
|
||
|
<pre><code class="language-json">
|
||
|
{
|
||
|
"git_example": [
|
||
|
{
|
||
|
"name": "denoise_tv_chambolle",
|
||
|
"weight": 0.01,
|
||
|
"iterations": 1
|
||
|
},
|
||
|
{
|
||
|
"name": "median",
|
||
|
"ksize": 3
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</code></pre>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
To avoid accidental loss of information caused by modifying presets that have been used to generate stl files,
|
||
|
these presets are stored inside a JSON file **db.json**.
|
||
|
|
||
|
This file serves as a simple database for storing presets, stored presets are modified by adding generated hash of all the filters in that preset.There is also an option to save current command line setting as a preset using -d switch and it's new name:
|