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

Filtering images
================

Once all the requirements are installed, the application is ready to use.
Fingerprint sample is located in res/examples, its name is Palec_P4.tif.

* You will need to enter the virtual enviroment every time you want to use the application.

.. code-block:: console

    $ source .venv/bin/activate

* The application requires **input** and **output filenames** including path from the root project directory, **dpi** and **filter list** as shown bellow.

.. code-block:: console

    (.venv)$ python3 src/main.py input_file output_file dpi filters

There are two ways to enter the filters:

1. manually list all filter names and their parameters on the **command line**:

.. code-block:: console

    (.venv)$ python3 src/main.py res/examples/Palec_P4.tif res/examples/Palec_P4_from_cline.png 600 total_variation weight=0.15 median ksize=5


2. load them from preset in a JSON **configuration file**, that can be used to tune and modify existing presets, or create new ones:

.. code-block::

    (.venv)$ python3 src/main.py res/examples/Palec_P4.tif res/examples/Palec_P4_from_preset.png 600 --config conf/conf.json git_example
