View source: R/antsImageClone.R
antsImageClone | R Documentation |
antsImage
.Clone an image object of S4 class antsImage
. N.B.: You cannot use
a <- img
because the R assignment operator does not deal with the underlying
C++ pointers.
antsImageClone(in_image, out_pixeltype = in_image@pixeltype)
in_image |
image object of S4 class |
out_pixeltype |
C++ datatype to be used to represent the pixels in the
output image. Allowed values: |
object of class antsImage
Shrinidhi KL
img <- antsImageRead(getANTsRData("r16"), 2)
img2 <- antsImageClone(img)
img.int <- antsImageClone(img, "unsigned int")
multi <- antsImageRead(getANTsRData("multi_component_image"))
img <- antsImageRead(getANTsRData("r16"), 2)
m2 <- antsImageClone(multi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.