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.

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

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.

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.

Value

An object of class "dtiData".

Author

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

See also