repeat_nd¶
- tifffile.repeat_nd(a, repeats, /)¶
Return read-only view into input array with elements repeated.
Zoom image array by integer factors using nearest neighbor interpolation (box filter).
- Parameters:
a (ArrayLike) – Input array.
repeats (Sequence[int]) – Number of repetitions to apply along each dimension of input.
- Return type:
NDArray[Any]
Examples
>>> repeat_nd([[1, 2], [3, 4]], (2, 2)) array([[1, 1, 2, 2], [1, 1, 2, 2], [3, 3, 4, 4], [3, 3, 4, 4]])