pandora2d.cost_volume_confidence.cost_volume_confidence

Module for common base of all cost volume confidence methods.

Classes

CostVolumeConfidence

CostVolumeConfidence base class.

Module Contents

class pandora2d.cost_volume_confidence.cost_volume_confidence.CostVolumeConfidence(cfg: dict)[source]

Bases: abc.ABC

CostVolumeConfidence base class.

_cfg[source]
_method[source]
abstract property schema[source]

Configuration schema

abstract property defaults[source]

Configuration default values

check_conf(cfg: dict) dict[str, str][source]

Check the cost volume confidence configuration

Parameters:

cfg – user_config for cost volume confidence

Returns:

cfg: global configuration

_update_with_default_config_values(cfg: dict)[source]
property cfg: collections.abc.Mapping[str, str | int | list[int]][source]

Get used configuration

Returns:

cfg: dictionary with all parameters

abstract confidence_prediction(left_image: xarray.Dataset, cost_volumes: xarray.Dataset, dataset_disp_maps: xarray.Dataset) tuple[xarray.Dataset, xarray.Dataset][source]

Compute a confidence prediction.

Parameters:
  • left_image – left Dataset image

  • cost_volumes – cost volume dataset

  • dataset_disp_maps – dataset containing row and col disparity maps

Returns:

the disparity map and the cost volume updated with the confidence measure