path.colors.from.orientation: Compute path color from its orientation.

View source: R/helpers.R

path.colors.from.orientationR Documentation

Compute path color from its orientation.

Description

Compute path color from its orientation.

Usage

path.colors.from.orientation(coords_list, use_three_colors_only = FALSE)

Arguments

coords_list

list of m matrices, each n x 3 matrix must contain the 3D coords for one path.

use_three_colors_only

logical, whether to use only three different colors, based on closest axis.

Value

m x 3 matrix, each row corresponds to a path and contains its color value (RGB, range 0..255).


fsbrain documentation built on July 9, 2023, 7:12 p.m.