make_ggseg3d_2_ggseg: Turn ggseg3d-atlas to ggseg

Description Usage Arguments Value

View source: R/create-ggseg-atlas.R

Description

Function will create a dataframe based on a ggseg3d atlas, based on the contours of each segment.

Usage

1
2
3
4
5
6
7
8
9
make_ggseg3d_2_ggseg(
  ggseg3d_atlas = ggseg3d::dk_3d,
  steps = 1:6,
  output_dir = tempdir(),
  tolerance = 0,
  smoothness = 10,
  cleanup = FALSE,
  ncores = parallel::detectCores() - 2
)

Arguments

ggseg3d_atlas

object of class ggseg3d-atlas

steps

number of 1:6 of which steps to run through

output_dir

output directory path

tolerance

tolerance during vertex reduction st_simplify

smoothness

smoothing factor, argument to smooth

cleanup

logical to toggle removal of all intermediary files

ncores

number of cores for parallel processing (default numcores-2)

Value

data.frame ready for manual cleaning


neuroconductor/ggsegExtra documentation built on Aug. 18, 2020, 4:45 p.m.