Documentation |
Reduce number of elements in volume data set
[nx,ny,nz,nv] = reducevolume(X,Y,Z,V,[Rx,Ry,Rz])
[nx,ny,nz,nv] = reducevolume(V,[Rx,Ry,Rz])
nv = reducevolume(...)
[nx,ny,nz,nv] = reducevolume(X,Y,Z,V,[Rx,Ry,Rz]) reduces the number of elements in the volume by retaining every Rx^{th}^{ }element in the x direction, every Ry^{th} element in the y direction, and every Rz^{th} element in the z direction. If a scalar R is used to indicate the amount or reduction instead of a three-element vector, the MATLAB^{®} software assumes the reduction to be [R R R].
The arrays X, Y, and Z define the coordinates for the volume V. The reduced volume is returned in nv, and the coordinates of the reduced volume are returned in nx, ny, and nz.
[nx,ny,nz,nv] = reducevolume(V,[Rx,Ry,Rz]) assumes the arrays X, Y, and Z are defined as [X,Y,Z] = meshgrid(1:n,1:m,1:p), where [m,n,p] = size(V).
isocaps | isonormals | isosurface | reducepatch | smooth3 | subvolume