Learn R Programming

dti (version 1.2-0.1)

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")

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

Value

  • An object of class "dtiData".

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