Downsample
Downsample[array,n]
returns a downsampled version of the array by sampling every n
element.
Downsample[array,n,offset]
starts sampling from the element at position offset.
Downsample[image,…]
downsamples an image.
Details
- In Downsample[array,…], array can be an array of any rank.
- Downsample works with arrays of any rank and 2D and 3D images.
- Downsample[array,{n1,n2,…}] samples every ni
element in the i
dimension. - Downsample[array,n] is equivalent to Downsample[array,n,1].
- In Downsample[array,n,offset], the offset has to be an integer between 1 and n.
Examples
open allclose allSee Also
Upsample ArrayResample ImageResize Take Part Partition RandomSample Short
Related Guides
Introduced in 2012
(9.0)
| Updated in 2016 (10.4)