Skip to contents

DEPRECATED: Please use get_template(variant = "probseg", label = ..., ...) instead.

Retrieves probability maps for different tissue types (GM, WM, CSF).

Usage

get_template_probseg(
  name = "MNI152NLin2009cAsym",
  label = "GM",
  resolution = 1,
  extension = ".nii.gz"
)

Arguments

name

Character string specifying template name. Default: "MNI152NLin2009cAsym"

label

Character string specifying tissue type ("GM", "WM", or "CSF"). Default: "GM"

resolution

Numeric resolution in mm. Default: 1

extension

Character string specifying file extension. Default: ".nii.gz"

Value

A NeuroVol object containing the probability map

See also

The new get_template

Examples

# \donttest{
if (requireNamespace("templateflow", quietly = TRUE)) {
  tryCatch(result <- get_template_probseg(), error = function(e) NULL)
}
#> Warning: The `name` argument of `get_template_probseg()` is deprecated as of neuroatlas
#> 0.10.0.
#> ℹ Please use `get_template()` instead.
# }