get-distance: Distances Between Streamlines

Description Usage Arguments Value Examples

Description

get_hausdorff_distance computes the Hausdorff distance between the two input streamlines. get_L2_distance computes the L2 distance between the two input streamlines.

Usage

1
2
3
4
5
get_hausdorff_distance(streamline1, streamline2)

get_L2_distance(streamline1, streamline2)

get_L1_distance(streamline1, streamline2)

Arguments

streamline1

A streamline.

streamline2

A streamline.

Value

A non-negative scalar representing the chosen distance between the two input streamlines.

Examples

1
2
3
4
5
6
7
8
file <- system.file("extdata", "CC_SingleTensor.csv", package = "fiber")
cc <- read_tract(file)
tmp <- reparametrize_tract(cc, grid_length = 50L)
str1 <- tmp$data[[1]]
str2 <- tmp$data[[2]]
get_hausdorff_distance(str1, str2)
get_L2_distance(str1, str2)
get_L1_distance(str1, str2)

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