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, color1=None, mask1=None, mask2=None, nodata1=0, nodata2=0, add_color=True)
Resample left and right images, with color on left
- cars.applications.resampling.resampling_tools.resample_image(img, grid, largest_size, region=None, nodata=None, mask=None, band_coords=False, lowres_color=None)
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
region (None (full output is produced) or array of four floats [xmin,ymin,xmax,ymax]) – A subset of the ouptut 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
lowres_color (string) – Path to the multispectral image if p+xs fusion is needed
- Return type
xarray.Dataset with resampled image and mask