MATLAB Function Reference Previous page   Next Page
reducevolume

Reduce the number of elements in a volume data set

Syntax

Description

[nx,ny,nz,nv] = reducevolume(X,Y,Z,V,[Rx,Ry,Rz]) reduces the number of elements in the volume by retaining every Rxth element in the x direction, every Ryth element in the y direction, and every Rzth element in the z direction. If a scalar R is used to indicate the amount or reduction instead of a three-element vector, MATLAB 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).

nv = reducevolume(...) returns only the reduced volume.

Examples

This example uses a data set that is a collection of MRI slices of a human skull. This data is processed in a variety of ways:

See Also

isosurface, isocaps, isonormals, smooth3, subvolume, reducepatch

Volume Visualization for related functions


Previous page  reducepatch refresh Next page

© 1994-2005 The MathWorks, Inc.