cars.applications.dense_matching.disparity_grid_algo ==================================================== .. py:module:: cars.applications.dense_matching.disparity_grid_algo .. autoapi-nested-parse:: this module contains the wrapper used in disparity grid computation. Functions --------- .. autoapisummary:: cars.applications.dense_matching.disparity_grid_algo.generate_disp_grids_dataset cars.applications.dense_matching.disparity_grid_algo.generate_disp_range_const_tile_wrapper cars.applications.dense_matching.disparity_grid_algo.generate_disp_range_from_dem_wrapper cars.applications.dense_matching.disparity_grid_algo.empty_disparity_grids cars.applications.dense_matching.disparity_grid_algo.create_circular_mask Module Contents --------------- .. py:function:: generate_disp_grids_dataset(grid_min, grid_max, saving_info, raster_profile, window=None, row_coords=None, col_coords=None) Generate disparity grids xarray dataset :param grid_min: disp grid min :type grid_min: np.ndarray :param grid_max: disp grid max :type grid_max: np.ndarray :param saving_info: saving infos :type saving_info: dict :param raster_profile: raster_profile :type raster_profile: dict :param row_coords: row cooordinates :type row_coords: np.ndarray, optional :param col_coords: col coordinates :type col_coords: np.ndarray, optional :return: disp range dataset :rtype: xarray.Dataset .. py:function:: generate_disp_range_const_tile_wrapper(row_range, col_range, dmin, dmax, raster_profile, saving_info, saving_info_global_infos) Generate disparity range dataset from constant dmin and dmax :param row_range: Row range :type row_range: list :param col_range: Column range. :type col_range: list :param dmin: disparity minimum. :type dmin: float :param dmax: disparity maximum. :type dmax: float :param raster_profile: The raster profile. :type raster_profile: dict :param saving_info: The disp range grid saving information. :type saving_info: dict :param saving_info_global_infos: Global info saving infos. :type saving_info_global_infos: dict :return: Disparity range grid :rtype: dict .. py:function:: generate_disp_range_from_dem_wrapper(epipolar_grid_array_window, full_epi_row_range, full_epi_col_range, sensor_image_right, grid_right, geom_plugin_with_dem_and_geoid, dem_min, dem_max, raster_profile, saving_info, saving_info_global_infos, filter_overlap, disp_to_alt_ratio, disp_min_threshold=None, disp_max_threshold=None) Generate disparity range dataset from dems :param epipolar_grid_array_window: The window of the epipolar grid array. :type epipolar_grid_array_window: dict :param full_epi_row_range: The full range of rows in the epipolar grid. :type full_epi_row_range: list :param full_epi_col_range: The full range of columns in the epipolar grid. :type full_epi_col_range: list :param sensor_image_right: The right sensor image. :type sensor_image_right: dict :param grid_right: The right epipolar grid. :type grid_right: dict :param geom_plugin_with_dem_and_geoid: The geometry plugin with DEM. :type geom_plugin_with_dem_and_geoid: object :param dem_min: Path of dem min. :type dem_min: str :param dem_max: Path of dem max. :type dem_max: srt :param raster_profile: The raster profile. :type raster_profile: dict :param saving_info: The disp range grid saving information. :type saving_info: dict :param saving_info_global_infos: Global info saving infos. :type saving_info_global_infos: dict :param filter_overlap: The overlap to use for filtering. :type filter_overlap: int :param disp_to_alt_ratio: disparity to altitude ratio :type disp_to_alt_ratio: float :param disp_min_threshold: The minimum disparity threshold. :type disp_min_threshold: float, optional :param disp_max_threshold: The maximum disparity threshold. :type disp_max_threshold: float, optional :return: Disparity range grid :rtype: dict .. py:function:: empty_disparity_grids(row_range_no_margin, col_range_no_margin, epipolar_grid_array_window, raster_profile, saving_info, saving_info_global_infos) Return empty disparity grids :param row_range_no_margin: Rows id in grid :type row_range_no_margin: int :param col_range_no_margin: Cols id in grid :type col_range_no_margin: int :param epipolar_grid_array_window: ROI of grid :type epipolar_grid_array_window: dict :param raster_profile: The raster profile. :type raster_profile: dict :param saving_info: The disp range grid saving information. :type saving_info: dict :param saving_info_global_infos: Global info saving infos. :type saving_info_global_infos: dict .. py:function:: create_circular_mask(height, width) Create a circular mask for footprint around pixel :param height: height of footprint :type height: int :param width: width of footprint :type width: int :return: mask representing circular footprint :rtype: np.ndarray