Skip to contents

Get the index map volume

Usage

map(x, ...)

# S4 method for class 'LatentNeuroVec'
map(x)

Arguments

x

An object with an index map, like LatentNeuroVec

...

Additional arguments

Value

The index map object (e.g., an IndexLookupVol from neuroim2)

Examples

if (FALSE) { # \dontrun{
# For LatentNeuroVec:
if (!is.null(fmristore:::create_minimal_LatentNeuroVec)) {
  lnv <- NULL
  tryCatch({
    lnv <- fmristore:::create_minimal_LatentNeuroVec(space_dims = c(3L,3L,2L))
    map_vol <- map(lnv)
    print(map_vol)
    # if (requireNamespace("neuroim2", quietly=TRUE)) print(is(map_vol, "IndexLookupVol"))
  }, error = function(e) {
    message("map example for LatentNeuroVec failed: ", e$message)
  })
} else {
  message("Skipping map example for LatentNeuroVec: helper not available.")
}
} # }