powered by
Display a visual of one slice of an image matrix
view_slice_mat(mat, slice = NULL, col = grDevices::grey(0:64/64), ...)
2D or 3D intensity matrix, e.g. the return value from img_data_to_mat or img_data_to_3D_mat
img_data_to_mat
img_data_to_3D_mat
Slice number, or NULL if matrix is 2D
Color scheme
Additional arguments to image
image
# NOT RUN { view_slice_mat(img_data_to_3D_mat(nifti_data_4d, coord_extra_dim = 10), slice = 20) # }
Run the code above in your browser using DataLab