Skip to content

Commit

Permalink
Merge branch '166-update-dichotomy-doc' into 'release'
Browse files Browse the repository at this point in the history
doc: update refinement step configuration documentation

See merge request 3d/PandoraBox/pandora2d!144
  • Loading branch information
lecontm committed Aug 21, 2024
2 parents 21b03e0 + b949540 commit 059de9f
Showing 1 changed file with 211 additions and 60 deletions.
271 changes: 211 additions & 60 deletions docs/source/userguide/step_by_step/refinement.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,65 +106,216 @@ Available filters are described in :ref:`interpolation_filters`.
Configuration and parameters
----------------------------

.. list-table:: Configuration and parameters
:header-rows: 1

* - Name
- Description
- Type
- Default value
- Available value
- Required
* - *refinement_method*
- Refinement method
- string
-
- | "interpolation",
| "dichotomy",
| "optical_flow"
- Yes
* - *iterations*
- Number of iterations (not available for interpolation)
- integer
- 4 for **optical_flow** method
- | **Dichotomy**
| 1 to 9
| *if above, will be bound to 9*
| **Optical flow**
| >0
- | **Dichotomy**
| Yes
| **Optical flow**
| No
* - *filter*
- Configuration of the filter used for interpolation
- dict
- keys: "method", "size"
- | {"method": "sinc"},
| {"method": "bicubic"},
| **Only available if "dichotomy" method**
- | method: Yes
| size: Optional (only with sinc)

**Example**

.. code:: json
:name: Refinement example
{
"input" :
{
// input content
},
"pipeline" :
{
// ...
"refinement":
.. tabs::

.. tab:: Interpolation

Parameters :

.. list-table::
:header-rows: 1

* - Name
- Description
- Type
- Available value
- Required
* - *refinement_method*
- Refinement method
- string
- "interpolation"
- Yes

Configuration example with interpolation :

.. code:: json
{
"input" :
{
// input content
},
"pipeline" :
{
// ...
"refinement":
{
"refinement_method": "interpolation"
},
// ...
}
}
.. tab:: Optical-flow

Parameters :

.. list-table::
:header-rows: 1

* - Name
- Description
- Type
- Default value
- Available value
- Required
* - *refinement_method*
- Refinement method
- string
-
- "optical_flow"
- Yes
* - *iterations*
- Number of iterations
- integer
- 4
- >0
- No

Configuration example with optical_flow :

.. code:: json
{
"refinement_method": "optical_flow"
},
// ...
}
}
"input" :
{
// input content
},
"pipeline" :
{
// ...
"refinement":
{
"refinement_method": "optical_flow",
"iterations" : 7
},
// ...
}
}
.. tab:: Dichotomy

.. tabs::

.. tab:: Bicubic

Parameters :

.. list-table::
:header-rows: 1

* - Name
- Description
- Type
- Default value
- Available value
- Required
* - *refinement_method*
- Refinement method
- string
-
- "dichotomy"
- Yes
* - *iterations*
- Number of iterations
- integer
-
- | 1 to 9
| *if above, will be bound to 9*
- Yes
* - *filter*
- | Configuration of the filter
| used for interpolation
- | dict with key:
| - "method"
-
- {"method": "bicubic"}
- Yes

Configuration example with dichotomy :

.. code:: json
{
"input" :
{
// input content
},
"pipeline" :
{
// ...
"refinement":
{
"refinement_method": "dichotomy",
"filter": {"method": "bicubic"},
"iterations" : 7
},
// ...
}
}
.. tab:: Cardinal sine

Parameters :

.. list-table::
:header-rows: 1

* - Name
- Description
- Type
- Default value
- Available value
- Required
* - *refinement_method*
- Refinement method
- string
-
- "dichotomy"
- Yes
* - *iterations*
- Number of iterations
- integer
-
- | 1 to 9
| *if above, will be bound to 9*
- Yes
* - *filter*
- | Configuration of the filter
| used for interpolation
- | dict with keys:
| - "method"
| - "size"
-
- | {
| "method": "sinc",
| "size" : 6 to 21,
| }
- Yes

Configuration example with dichotomy :

.. code:: json
{
"input" :
{
// input content
},
"pipeline" :
{
// ...
"refinement":
{
"refinement_method": "dichotomy",
"filter": {
"method": "sinc",
"size": 9
},
"iterations" : 7
},
// ...
}
}

0 comments on commit 059de9f

Please sign in to comment.