Filtering of the disparity map

Theoretical basics

The filtering methods allow to homogenize the disparity maps, those available in pandora are :

Note

Invalid pixels are not filtered. If a valid pixel contains an invalid pixel in its filter, the invalid pixel is ignored for the calculation

Configuration and parameters

Name

Description

Type

Default value

Available value

Required

filter_method

Filtering method

str

“median”

Yes

filter_size

Filter’s size

int

3

>=1

No

Example

{
    "input" :
    {
        // ...
    },
    "pipeline" :
    {
        // ...
        "cost_volume_confidence.amb":
        {
            "confidence_method": "ambiguity",
            "eta_max": 0.7,
            "eta_step": 0.01
        },
        "cost_volume_confidence.int":
        {
            "confidence_method": "interval_bounds",
            "regularization": false
        },
        // ...
        "filter":
        {
            "filter_method": "median"
        },
        "filter.int":
        {
            "filter_method": "median_for_intervals",
            "interval_indicator": "int",  // Filtering intervals computed in 'cost_volume_confidence.int'
            "regularization": true,
            "ambiguity_indicator": "amb"  // Using the ambiguity computed above for regularization
        }
        // ...
    }
}