cars.applications.auxiliary_filling.auxiliary_filling_tools
this module contains the AuxiliaryFillingFromSensors application class.
Module Contents
Functions
|
Compute color and classification for a list of points (lon, lat, alt) using |
|
Compute color and classification contribution for a list of points |
|
Compute bounds of each input sensor that have an associated color or |
|
Filter input sensors by comparing their bounds to a reference Polygon |
- cars.applications.auxiliary_filling.auxiliary_filling_tools.fill_auxiliary(sensor_inputs, pairing, longitudes, latitudes, altitudes, geom_plugin, number_of_color_bands, number_of_classification_bands, color_interpolator, use_mask=False)[source]
Compute color and classification for a list of points (lon, lat, alt) using information from sensor images
- Parameters
sensor_inputs (dict) – dictionary containing paths to input images and models
pairing (list) – pairing between input images
longitudes (list) – list containing longitudes coordinates
latitudes (list) – list containing latitudes coordinates
altitudes (list) – list containing altitudes coordinates
geom_plugin (AbstractGeometry) – geometry plugin used for inverse locations
number_of_color_bands (int) – number of bands in the color image
number_of_classification_bands (int) – number of bands in the color image
color_interpolator (str) – scipy interpolator use to interpolate color values
use_mask (bool) – use mask information from sensors in color computation
- cars.applications.auxiliary_filling.auxiliary_filling_tools.fill_from_one_sensor(sensor, filled_color, filled_classif, weights, longitudes, latitudes, altitudes, geom_plugin, number_of_color_bands, number_of_classification_bands, color_interpolator, not_interpolated_mask=None, use_mask=False, return_all_points=False)[source]
Compute color and classification contribution for a list of points (lon, lat, alt) using information from a sensor image
- Parameters
sensor (dict) – dictionary containing paths to input images and model
filled_color (numpy.ndarray) – array containing (non normalized) color information
filled_classif (numpy.array) – array containing classification information
weights (numpy.array) – array containing weight for normalization
longitudes (list) – list containing longitudes coordinates
latitudes (list) – list containing latitudes coordinates
altitudes (list) – list containing altitudes coordinates
geom_plugin (AbstractGeometry) – geometry plugin used for inverse locations
number_of_color_bands (int) – number of bands in the color image
number_of_classification_bands (int) – number of bands in the color image
color_interpolator (str) – scipy interpolator use to interpolate color values
not_interpolated_mask (numpy.array) – use mask information in color computation
use_mask (bool) – use mask information in color computation
return_all_points (bool) – compute interpolated values for all points
- cars.applications.auxiliary_filling.auxiliary_filling_tools.compute_sensor_bounds(sensor_inputs, geom_plugin, output_epsg)[source]
Compute bounds of each input sensor that have an associated color or classification image
- Parameters
sensor_inputs (dict) – dictionary containing paths to input images and models
geom_plugin (AbstractGeometry) – geometry plugin used for inverse locations
geom_plugin – geometry plugin used for inverse locations
output_epsg (int) – epsg of the output polygons
- Returns
a dictionary containing a Polygon in output geometry for each valid input sensor
- cars.applications.auxiliary_filling.auxiliary_filling_tools.filter_sensor_inputs(sensor_inputs, sensor_bounds, ground_polygon)[source]
Filter input sensors by comparing their bounds to a reference Polygon
- Parameters
sensor_inputs (dict) – dictionary containing paths to input images and models
sensor_bounds (dict) – dictionary containing bounds of input sensors
ground_polygon (Polygon) – reference polygon, in ground geometry
- Returns
a fitlered version of sensor_inputs