reducevolume
- :
nv =reducevolume(v, r)¶ - :
[nx, ny, nz, nv] =reducevolume(v, r)¶ - :
[nx, ny, nz, nv] =reducevolume(x, y, z, v, r)¶ Reduce the number of elements of a volume by sub-sampling.
v is an m-by-n-by-p array (rows are y, columns x, pages z). The factor r is a positive integer, or a vector
[rx ry rz]; every rx-th column, ry-th row and rz-th page, starting with the first, is kept. The coordinates x, y, z may be arrays of the size of v or vectors; without them index coordinates are used. The coordinate outputs are always full arrays.