View source: R/antsrTransform_class.R
applyAntsrTransformToImage | R Documentation |
Apply transform to spatial point
applyAntsrTransformToImage(
transform,
image,
reference,
interpolation = "linear"
)
transform |
antsrTransform |
image |
antsImage to transform |
reference |
antImage giving the reference output space |
interpolation |
type of interpolator to use |
antsImage
img <- antsImageRead(getANTsRData("r16"))
tx <- new("antsrTransform", precision = "float", type = "AffineTransform", dimension = 2)
setAntsrTransformParameters(tx, c(0.9, 0, 0, 1.1, 10, 11))
img2 <- applyAntsrTransformToImage(tx, img, img)
# plot(img,img2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.