resample_array

pysit.util.image_processing.resample_array(arr, new_size, mode='nearest')[source]

Returns a resampled array at new resolution.

Parameters:
arr : ndarray

Input array

new_size : iterable

Size of the output array

mode : {‘nearest’, ‘linear’}

Interpolation mode.