powered by
Display a visual of one slice of an image
view_slice(img_data, slice = NULL, col = grDevices::grey(0:64/64), ...)
Image data returned by e.g. read_dicom or read_nifti1
read_dicom
read_nifti1
Slice number, or NULL if image is already 2D
Color scheme
Additional arguments to view_slice_mat
view_slice_mat
# NOT RUN { data(sample_dicom_img) view_slice(sample_dicom_img, slice = 2) # }
Run the code above in your browser using DataLab