reflectImage.Rd
reflects an image along its axis
reflectImage(img1, axis = NA, tx = NA, metric = "mattes", verbose = TRUE, ...)
input object, an antsImage
which dimension to reflect across, numbered from 0 to imageDimension-1
transformation type to estimate after reflection
similarity metric for image registration. see antsRegistration
.
print diagnostic messages, passed to
antsRegistration
and antsApplyTransforms
Additional options to pass to antsRegistration
fi <- antsImageRead(getANTsRData("r16"), 2)
axis <- 2
asym <- reflectImage(fi, axis, "Affine")$warpedmovout
asym <- asym - fi