linear_resample

ivy.linear_resample(x: ivy.NativeArray, num_samples: int, axis: int = - 1, f: Optional[ivy.Framework] = None) → ivy.NativeArray[source]

Performs linear re-sampling on input image.

Parameters
  • x (array) – Input array

  • num_samples (int) – The number of interpolated samples to take.

  • axis (int, optional) – The axis along which to perform the resample. Default is last dimension.

  • f (ml_framework, optional) – Machine learning framework. Inferred from inputs if None.

Returns

The array after the linear resampling.


Supported Frameworks:

empty jax_logo empty tf_logo empty pytorch_logo empty mxnet_logo empty numpy_logo empty