pandora2d.estimation.estimation
This module contains functions associated to the estimation computation step.
Classes
Abstract Estimation class |
Module Contents
- class pandora2d.estimation.estimation.AbstractEstimation[source]
Abstract Estimation class
- classmethod register_subclass(short_name: str) collections.abc.Callable[[type[Self]], type[Self]][source]
Allows to register the subclass with its short name
- Parameters:
short_name – the subclass to be registered
- abstract compute_estimation(img_left: xarray.Dataset, img_right: xarray.Dataset) tuple[dict, dict, numpy.ndarray, dict][source]
Compute the phase cross correlation method
- Parameters:
img_left – xarray.Dataset containing : - im : 2D (row, col) xarray.DataArray
img_right – xarray.Dataset containing : - im : 2D (row, col) xarray.DataArray
- Return:row disparity:
Dict col disparity: Dict Calculated shifts: list Extra information about estimation : dict
- static update_cfg_with_estimation(cfg: dict, disp_col: dict, disp_row: dict, shifts: numpy.ndarray, extra_dict: dict = None) dict[source]
Save calculated shifts in a configuration dictionary
- Parameters:
cfg – user configuration
disp_col – dict with init and range for disparity in column
disp_row – dict with init and range for disparity in row
shifts – computed global shifts between left and right
extra_dict – Dictionary containing extra information about estimation
- Returns:
cfg: global configuration