cars.applications.resampling.resampling_tools
Resampling module: contains functions used for epipolar resampling
Module Contents
Functions
|
Resample left and right images, with color on left |
|
Resample image according to grid and largest size. |
- cars.applications.resampling.resampling_tools.epipolar_rectify_images(img1, img2, grid1, grid2, region, margins, epipolar_size_x, epipolar_size_y, interpolator_image='bicubic', interpolator_color='bicubic', interpolator_classif='nearest', interpolator_mask='nearest', step=None, color1=None, mask1=None, mask2=None, classif1=None, classif2=None, nodata1=0, nodata2=0, add_color=True, add_classif=True)
Resample left and right images, with color on left
- cars.applications.resampling.resampling_tools.resample_image(img, grid, largest_size, step=None, region=None, nodata=None, mask=None, band_coords=False, interpolator_img='bicubic', interpolator_mask='nearest')
Resample image according to grid and largest size.
- Parameters
img (string) – Path to the image to resample
grid (string) – Path to the rectification grid
largest_size (list of two int) – Size of full output image
step (int) – horizontal step of resampling (useful for strip resampling)
region (None (full output is produced) or array of four floats [xmin,ymin,xmax,ymax]) – A subset of the output image to produce
nodata (None or float) – Nodata value to use (both for input and output)
mask (None or path to mask image) – Mask to resample as well
band_coords (boolean) – Force bands coordinate in output dataset
interpolator (str ("nearest" "linear" "bco")) – interpolator type (bicubic (default) or nearest)
- Return type
xarray.Dataset with resampled image and mask