pandora2d.cost_volume_confidence.cost_volume_confidence
Module for common base of all cost volume confidence methods.
Classes
CostVolumeConfidence base class. |
Module Contents
- class pandora2d.cost_volume_confidence.cost_volume_confidence.CostVolumeConfidence(cfg: dict)[source]
Bases:
abc.ABCCostVolumeConfidence base class.
- 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
- 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