Skip to content

Latest commit

 

History

History
184 lines (144 loc) · 4.25 KB

overview.rst

File metadata and controls

184 lines (144 loc) · 4.25 KB

Overviews

Diagram

The following interactive diagram highlights all stereo steps available in Pandora.

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

Note

- Dark red blocks represent mandatory steps. - Pink blocks represent optional steps.

Configuration file

The configuration file provides a list of parameters to Pandora so that the processing pipeline can run according to the parameters chosen by the user.

Pandora works with JSON formatted data with the following nested structures.

json

{

"input" : { // ... }, "pipeline" : { // ... }

}

All configuration parameters are described in inputs and step_by_step chapters. As shown on the diagram, stereo steps must respect on order of priority, and can be called multiple times as explain on sequencing chapter.

Note

The right disparity map can be computed if the validation step is present in the configuration file. See validation.

Example

  1. Install
pip install pandora[sgm]
  1. Create a configuration file

json

{

"input": { "left": { "img": "tests/pandora/left.png", "disp": [-60, 0] }, "right": { "img": "tests/pandora/right.png", } }, "pipeline" : { "matching_cost" : { "matching_cost": "census", "window_size": 5, "subpix": 1 }, "optimization" : { "optimization_method": "sgm", "P1": 8, "P2": 32, }, "disparity": { "disparity_method": "wta", "invalid_disparity": "NaN" }, "refinement": { "refinement_method": "vfit" }, "filter" : { "filter_method": "median", "filter_size": 3 }, "validation" : { "validation_method": "cross_checking_accurate", "cross_checking_threshold": 1 }, "filter.after.validation" : { "filter_method": "median", "filter_size": 3 } }

}

  1. Run Pandora
pandora config.json output/