k-Wave Toolbox Previous   Next

saveTiffStack

Save volume data as a tiff stack

Syntax

saveTiffStack(M)
saveTiffStack(M, filename)
saveTiffStack(M, filename, bit_depth)
saveTiffStack(M, [], bit_depth)

Description

saveTiffStack saves 3D volume data in matrix form as a stacked tiff image. If the data is indexed as [x, y, z], each image corresponds to an [y, z] slice of the data. If no filename is given, a dialog box is invoked.

Inputs

M

the volume data to save

filename

filename string

bit_depth

bit depth of the tiff image (set to 8 or 16; default = 8)

See Also

imwrite


© 2009-2014 Bradley Treeby and Ben Cox.