:py:mod:`cars.applications.resampling.resampling_tools` ======================================================= .. py:module:: cars.applications.resampling.resampling_tools .. autoapi-nested-parse:: Resampling module: contains functions used for epipolar resampling Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: cars.applications.resampling.resampling_tools.epipolar_rectify_images cars.applications.resampling.resampling_tools.resample_image .. py:function:: 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 .. py:function:: resample_image(img, grid, largest_size, step=None, region=None, nodata=None, mask=None, band_coords=False, interpolator_img='bicubic', interpolator_mask='nearest', img_transform=None) Resample image according to grid and largest size. :param img: Path to the image to resample :type img: string :param grid: Path to the rectification grid :type grid: string :param largest_size: Size of full output image :type largest_size: list of two int :param step: horizontal step of resampling (useful for strip resampling) :type step: int :param region: A subset of the output image to produce :type region: None (full output is produced) or array of four floats [xmin,ymin,xmax,ymax] :param nodata: Nodata value to use (both for input and output) :type nodata: None or float :param mask: Mask to resample as well :type mask: None or path to mask image :param band_coords: Force bands coordinate in output dataset :type band_coords: boolean :param interpolator: interpolator type (bicubic (default) or nearest) :type interpolator: str ("nearest" "linear" "bco") :rtype: xarray.Dataset with resampled image and mask