cars.core.former_confs_utils

former_conds_utils contains function used to get data in artificially
created configuration, to imitate former prepare and compute_dsm

outputs.

TODO will be removed

Module Contents

Functions

get_disp_min_max(conf)

Get disp min and disp max from former cars conf

get_epi_sizes_from_cars_post_prepare_configuration(conf)

Get epipolar sizes x and y from former cars conf

get_grid_from_cars_post_prepare_configurations(conf)

Get grids path from former cars conf

Attributes

PREPROCESSING_SECTION_TAG

PREPROCESSING_OUTPUT_SECTION_TAG

MINIMUM_DISPARITY_TAG

MAXIMUM_DISPARITY_TAG

DISP_TO_ALT_RATIO_TAG

EPIPOLAR_SIZE_X_TAG

EPIPOLAR_SIZE_Y_TAG

LEFT_EPIPOLAR_GRID_TAG

RIGHT_EPIPOLAR_GRID_TAG

RIGHT_EPIPOLAR_UNCORRECTED_GRID_TAG

cars.core.former_confs_utils.PREPROCESSING_SECTION_TAG = 'preprocessing'
cars.core.former_confs_utils.PREPROCESSING_OUTPUT_SECTION_TAG = 'output'
cars.core.former_confs_utils.MINIMUM_DISPARITY_TAG = 'minimum_disparity'
cars.core.former_confs_utils.MAXIMUM_DISPARITY_TAG = 'maximum_disparity'
cars.core.former_confs_utils.DISP_TO_ALT_RATIO_TAG = 'disp_to_alt_ratio'
cars.core.former_confs_utils.EPIPOLAR_SIZE_X_TAG = 'epipolar_size_x'
cars.core.former_confs_utils.EPIPOLAR_SIZE_Y_TAG = 'epipolar_size_y'
cars.core.former_confs_utils.LEFT_EPIPOLAR_GRID_TAG = 'left_epipolar_grid'
cars.core.former_confs_utils.RIGHT_EPIPOLAR_GRID_TAG = 'right_epipolar_grid'
cars.core.former_confs_utils.RIGHT_EPIPOLAR_UNCORRECTED_GRID_TAG = 'right_epipolar_uncorrected_grid'
cars.core.former_confs_utils.get_disp_min_max(conf)[source]

Get disp min and disp max from former cars conf

Parameters

conf (dict) – former cars conf

Returns

disp min, disp max

Return type

tuple(float, float)

cars.core.former_confs_utils.get_epi_sizes_from_cars_post_prepare_configuration(conf)[source]

Get epipolar sizes x and y from former cars conf

Parameters

conf (dict) – former cars conf

Returns

epi_size_x, epi_size_y

Return type

tuple(int, int)

cars.core.former_confs_utils.get_grid_from_cars_post_prepare_configurations(conf)[source]

Get grids path from former cars conf

Parameters

conf (dict) – former cars conf

Returns

grid1, grid2, uncorrected_grid_2

Return type

tuple(str, str, str)