# Configuration and presets - Generování 3D modelu otisku prstu 1.0 documentation

Hide navigation sidebar
Hide table of contents sidebar
Back to top
Toggle table of contents sidebar

# 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.

General format | Working example
--- | ---

    {
        "preset": [
            {
                "name": "filter_name",
                "parameter": value,
                "parameter": value
            },
            {
                "name": "filter_name",
                "parameter": value
            }
        ],
        "preset": [
            ...
        ]
        ...
    }

    {
        "git_example": [
            {
                "name": "denoise_tv_chambolle",
                "weight": 0.01,
                "iterations": 1
            },
            {
                "name": "median",
                "ksize": 3
            }
        ]
    }

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: