error_not_antsImage.Rd
Stop if not an antsImage object
error_not_antsImage(x, argname = "")
object to test
Name of argument to say was not an antsImage
antsImage
Invisible NULL
NULL
img <- antsImageRead(getANTsRData("r16"), 2) error_not_antsImage(img) testthat::expect_error(error_not_antsImage(as.array(img)))