Learn R Programming

radtools (version 1.0.6)

num_slices: Get the number of image slices in an image series

Description

Get the number of image slices in an image series

Usage

num_slices(img_data)

Arguments

img_data

Image data returned by e.g. read_dicom or read_nifti1

Value

Number of slices

Examples

Run this code
# NOT RUN {
data(sample_dicom_img)
data(sample_nifti_img)
num_slices(sample_dicom_img)
num_slices(sample_nifti_img)
# }

Run the code above in your browser using DataLab