Learn R Programming

dti (version 1.5.4.3)

combineDWIdata: Combine two objects of class "dtiData")

Description

This function creates a dtiData-object from two compatible dtiData-objects. Compatible means that the spatial dimensions coincide, but gradients and b-values may be different.

Usage

combineDWIdata(x1, x2, s0strategy = "first")

Value

An object of class "dtiData".

Arguments

x1

Object of class "dtiData"

x2

Object of class "dtiData"

s0strategy

Character, determines how the unweighted S0 images are handled. Six strategies are implemented. s0strategy="first" copies the S0 images from object x1, s0strategy="second" copies the S0 images from object x2, s0strategy="both" used the S0 images from both objects. s0strategy="rfirst" creates one average S0 image from object x1, s0strategy="rsecond" creates one average S0 image from object x2, s0strategy="rboth" creates one average S0 image from the S0 images in both objects.

Author

Karsten Tabelow tabelow@wias-berlin.de
J\"org Polzehl polzehl@wias-berlin.de

Details

The function can be used to merge two objects of class "dtiData" under the condition that the information in slot ddim in both objects is identical. Also slots voxelext, orientation and rotation should be indentical.

See Also

dtiData, readDWIdata, dtiData, subsetg