next up previous index
Next: ``save largest region'' - Up: Manipulation Previous: ``3D_Expand'' - generate an

``3D_Shrink'' - generate a shrunken (subsampled) version of an image

VFX name:
iShrink.
IMPROPTU name:
3D_Shrink.
purpose:
Shrinks a 3D volume via voxel decimation or averaging.

``Decimate'' shrinks the input 3D volume by eliminating all but every "factor"-th voxel in each direction. ``Average'' shrinks the input 3D volume by finding the mean within a ``factor''3 window, replacing every ``factor''-th voxel in each direction by that value and eliminating all other voxels.

input:
An 8-bit 3D volume, from memory.
output:
An 8-bit 3D volume, written to disk.
parameters:
Default menu parameters are
shrink_type = decimate
shrink_factor = 2
output_filename = shrink_vol
``type of shrink'' can be set to either ``decimate'' or ``average.'' ``shrink factor'' must have a value between two and ten, inclusive. The filename of the output image should be entered in the appropriate slot.
comments:
1.
Quick and easy way to get a smaller version of a 3D image.
2.
A fast function.



MultiDimensional Image Processing Lab, Penn State University