minc.write.volume {RMINC}R Documentation

Write a buffer to a MINC2 file

Description

Writes a buffer to a MINC2 file

Usage

minc.write.volume("output.mnc", "like-this-file.mnc", buffer)

Arguments

output.filename

A string containing the name of the output file.

like.filename

A string containing a filename of an existing MINC2 volume.

buffer

A 1D array containing the buffer that is to be written

Details

This function writes a buffer as a MINC2 filename. The dimension order, step sizes, etc. will be taken from the second argument. Note that the data buffer, provided in the third argument, thus has to be of size dim1*dim2*dim3 of the like.filename for this function not to die a horrible death.

See Also

minc.get.volume, minc.apply


[Package RMINC version 0.5.1 Index]