[.image.mri {tractor.base} | R Documentation |
Extract or replace subsets of the data in an MriImage object.
## S3 method for class 'image.mri': x[...] ## S3 method for class 'image.mri': x[...] <- value
x |
An object inheriting from class image.mri . |
... |
Elements to extract or replace. Any indexing method suitable for the underlying array can be used: see [ for details. |
value |
An array of new voxel values. |
For the extraction form, a vector of values extracted from the relevant locations in the image. The effect in this case is identical to x$getData()[...]
. For the replacement form, the returned value is an MriImage object identical to the original one, except with the data array modified appropriately, and with the source
field set to "internal".
Jon Clayden