Display a visual of one slice of an image matrix

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

if (FALSE) view_slice_mat(img_data_to_3D_mat(nifti_data_4d, coord_extra_dim = 10), slice = 20)