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")
Object of class "dtiData"
Object of class "dtiData"
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.
An object of class "dtiData".
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.
dtiData
,
readDWIdata
,
'>dtiData
,
subsetg