view_slice_mat: Display a visual of one slice of an image matrix

Description Usage Arguments Examples

View source: R/view.R

Description

Display a visual of one slice of an image matrix

Usage

1
view_slice_mat(mat, slice = NULL, col = grDevices::grey(0:64/64), ...)

Arguments

mat

2D or 3D intensity matrix, e.g. the return value from img_data_to_mat or img_data_to_3D_mat

slice

Slice number, or NULL if matrix is 2D

col

Color scheme

...

Additional arguments to image

Examples

1
## Not run: view_slice_mat(img_data_to_3D_mat(nifti_data_4d, coord_extra_dim = 10), slice = 20)

radtools documentation built on May 1, 2019, 7:51 p.m.