newMriImageWithData(data, metadata)
newMriImageFromTemplate(image, ...)newMriImageByExtraction(image, dim, loc)
newMriImageByMasking(image, mask)
newMriImageByThresholding(image, level, defaultValue = 0)
newMriImageAsShapeOverlay(type = c("cross", "block"), baseImage, ...)
generateImageDataForShape(type = c("cross", "block"), dim, background = 0, centre = NA, width = NA)
newMriImageWithSimpleFunction(image, fun, ..., newDataType = NULL)
newMriImageWithBinaryFunction(image1, image2, fun, ..., newDataType = NULL)
MriImageMetadata
object.MriImage
objects.newMriImageByExtraction
, the dimension and location along that dimension for which data should be extracted. For generateImageDataForShape
, dim
is the dimensions of the image. newMriImageAsShapeOverlay
logical
indicating which voxels are in the mask. Must have the same dimensions as the image.MriImage
to use as a base for the overlay.NULL
, then the data type is the same as the source image.newMriImageFromTemplate
, further parameters to newMriImageMetadataFromTemplate
. For newMriImageAsShapeOverlay
, further parameters to generateImage
MriImage
object.MriImage
objects to create a new MriImage
object. newMriImageWithData
is the basic function for creating an object from its constituents: an array of voxel values and an MriImageMetadata
object. newMriImageFromTemplate
takes an existing image, with its voxel data, and creates a new image, possibly with modifications to the metadata.
newMriImageByExtraction
reduces the dimensionality of the source image by one, by extracting a single "line" of data along one dimension. newMriImageByMasking
modifies the data by masking out unwanted voxels, and newMriImageByThresholding
by thresholding. newMriImageAsShapeOverlay
creates an image which contains a simple shape. newMriImageWithSimpleFunction
and newMriImageWithBinaryFunction
modify the image data by applying an arbitrary function to it. Any function that can be applied to numeric arrays, and expects one or two arguments, respectively, is suitable for fun
.MriImage