Slice to an input array.
tuple that defines new shape. New dimension has to be the same as input slice in the 1D and 2D resize, where in the 3D resize newsize has to be 2D.
Optional TaskPool instance used to parallelize computation.
TODO: consider size input as array, and add prealloc
Resize array using custom interpolation function.
Primarilly implemented as image resize. 1D, 2D and 3D arrays are supported, where 3D array is treated as channeled image - each channel is interpolated as isolated 2D array (matrix).
Interpolation function is given as a template parameter. Default interpolation function is linear. Custom interpolation function can be implemented in the 3rd party code, by following interpolation function rules in dcv.imgproc.interpolation.