antsImagemath.Rd
Overloaded math for antsImage objects
# S4 method for antsImage Math(x) # S4 method for antsImage abs(x) # S4 method for antsImage sign(x) # S4 method for antsImage sqrt(x) # S4 method for antsImage ceiling(x) # S4 method for antsImage floor(x) # S4 method for antsImage trunc(x) # S4 method for antsImage log(x, base = exp(1)) # S4 method for antsImage log10(x) # S4 method for antsImage log2(x) # S4 method for antsImage acos(x) # S4 method for antsImage asin(x) # S4 method for antsImage atan(x) # S4 method for antsImage acosh(x) # S4 method for antsImage asinh(x) # S4 method for antsImage atanh(x) # S4 method for antsImage cos(x) # S4 method for antsImage sin(x) # S4 method for antsImage tan(x) # S4 method for antsImage cosh(x) # S4 method for antsImage sinh(x) # S4 method for antsImage tanh(x) # S4 method for antsImage cospi(x) # S4 method for antsImage sinpi(x) # S4 method for antsImage tanpi(x) # S4 method for antsImage exp(x) # S4 method for antsImage gamma(x) # S4 method for antsImage lgamma(x) # S4 method for antsImage !(x)
x | is an object of class |
---|---|
base | a positive or complex number: the base with respect to which logarithms are computed. Defaults to e=exp(1). |
img01 <- as.antsImage(array(1:64, c(4,4,4,1))) testthat::expect_true(is.antsImage(abs(img01))) testthat::expect_true(is.antsImage(sign(img01))) testthat::expect_true(is.antsImage(sqrt(img01))) testthat::expect_true(is.antsImage(ceiling(img01))) testthat::expect_true(is.antsImage(floor(img01))) testthat::expect_true(is.antsImage(trunc(img01))) img01 <- as.antsImage(array(1:64, c(4,4,4,1))) testthat::expect_true(is.antsImage(log(img01))) testthat::expect_true(is.antsImage(exp(img01))) testthat::expect_true(is.antsImage(log(img01, base = exp(1)))) testthat::expect_true(is.antsImage(log(img01, base = 2))) testthat::expect_true(is.antsImage(log(img01, base = 10))) testthat::expect_true(is.antsImage(log10(img01))) testthat::expect_true(is.antsImage(log2(img01))) testthat::expect_true(is.antsImage(gamma(img01))) testthat::expect_true(is.antsImage(lgamma(img01))) testthat::expect_true(is.antsImage(cos(img01))) testthat::expect_true(is.antsImage(cospi(img01))) testthat::expect_true(is.antsImage(acos(img01))) testthat::expect_true(is.antsImage(acosh(img01))) testthat::expect_true(is.antsImage(sin(img01))) testthat::expect_true(is.antsImage(sinpi(img01))) testthat::expect_true(is.antsImage(asin(img01))) testthat::expect_true(is.antsImage(asinh(img01))) testthat::expect_true(is.antsImage(tan(img01))) testthat::expect_true(is.antsImage(tanpi(img01))) testthat::expect_true(is.antsImage(atan(img01))) testthat::expect_true(is.antsImage(atanh(img01)))