antsImageSummary.Rd
Overloaded Summary for antsImage objects
# S4 method for antsImage Summary(x, ..., na.rm = FALSE) max(x, ..., na.rm = FALSE) min(x, ..., na.rm = FALSE) range(x, ..., na.rm = FALSE) prod(x, ..., na.rm = FALSE) sum(x, ..., na.rm = FALSE) any(x, ..., na.rm = FALSE) all(x, ..., na.rm = FALSE)
x | is an object of class |
---|---|
... | further arguments passed to summary methods |
na.rm | logical: should missing values be removed? |
vec = 1:64 img01 <- as.antsImage(array(vec, c(4,4,4,1))) testthat::expect_equal(max(img01), max(vec)) max(img01)#> [1] 64#> [1] 1#> [1] 1 64#> [1] 0.4317738