Description Usage Arguments Value Examples
Resamples an antsImage
or
nifti
object to a target
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | resample_to_target(img, target, interpolator = c("linear",
"nearestNeighbor", "multiLabel", "gaussian", "bSpline",
"cosineWindowedSinc", "welchWindowedSinc", "hammingWindowedSinc",
"lanczosWindowedSinc", "genericLabel"), copy_origin = FALSE, ...)
## S4 method for signature 'character'
resample_to_target(img, target,
interpolator = c("linear", "nearestNeighbor", "multiLabel", "gaussian",
"bSpline", "cosineWindowedSinc", "welchWindowedSinc",
"hammingWindowedSinc", "lanczosWindowedSinc", "genericLabel"),
copy_origin = FALSE, ...)
## S4 method for signature 'nifti'
resample_to_target(img, target,
interpolator = c("linear", "nearestNeighbor", "multiLabel", "gaussian",
"bSpline", "cosineWindowedSinc", "welchWindowedSinc",
"hammingWindowedSinc", "lanczosWindowedSinc", "genericLabel"),
copy_origin = FALSE, ...)
## S4 method for signature 'antsImage'
resample_to_target(img, target,
interpolator = c("linear", "nearestNeighbor", "multiLabel", "gaussian",
"bSpline", "cosineWindowedSinc", "welchWindowedSinc",
"hammingWindowedSinc", "lanczosWindowedSinc", "genericLabel"),
copy_origin = FALSE, ...)
.resample_to_target(img, target, interpolator = c("linear",
"nearestNeighbor", "multiLabel", "gaussian", "bSpline",
"cosineWindowedSinc", "welchWindowedSinc", "hammingWindowedSinc",
"lanczosWindowedSinc", "genericLabel"), copy_origin = FALSE, ...)
|
img |
character path of image or an object of class nifti, or antsImage |
target |
image of reference,
the output will be in this space.
Will be coerced using |
interpolator |
what type of interpolation should be done |
copy_origin |
Copy image origin from |
... |
additional arguments to pass to
|
An antsImage
or nifti
depending on
input
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.