cars.applications.resampling.resampling_wrappers
Resampling module: contains functions used for epipolar resampling
Functions
|
Reformat file paths and bands required from each file to ease reading |
|
Reformat file paths and bands required from each file to ease reading |
|
Get bounds of sensor images |
|
Check if epipolar tiles will be used. |
|
Check if tile is in sensor image |
Module Contents
- cars.applications.resampling.resampling_wrappers.get_paths_and_bands_from_image(sensor_image, required_bands=None)
Reformat file paths and bands required from each file to ease reading
- Parameters:
sensor_image (dict) – input configuration of an image
required_bands (list) – required bands for resampling
- cars.applications.resampling.resampling_wrappers.get_path_and_values_from_classif(sensor_classif)[source]
Reformat file paths and bands required from each file to ease reading
- Parameters:
sensor_classif – input configuration of a classif
- cars.applications.resampling.resampling_wrappers.get_sensors_bounds(sensor_image_left, sensor_image_right)[source]
Get bounds of sensor images Bounds: BoundingBox(left, bottom, right, top)
- Parameters:
sensor_image_left (dict) – left sensor
sensor_image_right (dict) – right sensor
- Returns:
left image bounds, right image bounds
- Return type:
tuple(list, list)
- cars.applications.resampling.resampling_wrappers.check_tiles_in_sensor(sensor_image_left, sensor_image_right, image_tiling, grid_left, grid_right, geom_plugin)[source]
Check if epipolar tiles will be used. A tile is not used if is outside sensor bounds
- Parameters:
sensor_image_left (dict) – left sensor
sensor_image_right (dict) – right sensor
image_tiling (np.array) – epipolar tiling grid
grid_left (CarsDataset) – left epipolar grid
grid_right (CarsDataset) – right epipolar grid
- Returns:
left in sensor, right in sensor
- Return type:
np.array(bool), np.array(bool)
- cars.applications.resampling.resampling_wrappers.check_tile_inclusion(left_sensor_bounds, right_sensor_bounds, sensor_pos_left, sensor_pos_right)[source]
Check if tile is in sensor image
- Parameters:
left_sensor_bounds (list) – bounds of left sensor
right_sensor_bounds (list) – bounds of right sensor
sensor_pos_left (np.array) – left sensor position
sensor_pos_right (np.array) – right sensor position
- Returns:
left tile in sensor image left, right tile in sensor image right
- Return type:
tuple(bool, bool)