get_distance_vector: Tract Hausdorff Distance

Description Usage Arguments Value Examples

Description

Tract Hausdorff Distance

Usage

1
2
get_distance_vector(tract, grid_length = 50L, ncores = 1L,
  nobs = 10L, distance_fun = get_L2_distance)

Arguments

tract

A tract.

grid_length

An integer specifying the grid length for uniform resampling of the 3D coordinates (default: 50L).

ncores

An integer specifying the number of cores available for the computations (default: 1L).

nobs

An integer specifying how many random streamlines should be kept from the input tract (default: 10L).

Value

A vector of size nobs * (nobs - 1) / 2 storing optimally the matrix of Hausdorff distances between streamlines that were kept as part of the input tract.

Examples

1
2
3
file <- system.file("extdata", "Case001_CST_Left.csv", package = "fdatractography")
cst_left <- read_tract(file)
get_distance_vector(cst_left)

astamm/fdatractography documentation built on May 12, 2019, 5:37 a.m.