img_data_to_3D_mat: Convert image data to 3D matrix of intensities

Description Usage Arguments Value Examples

View source: R/image_import.R

Description

Convert image data to 3D matrix of intensities

Usage

1
img_data_to_3D_mat(img_data, coord_extra_dim)

Arguments

img_data

Image data returned by e.g. read_dicom or read_nifti1

coord_extra_dim

Coordinates in extra dimensions (beyond 3) that define the particular 3D image of interest. Not applicable for DICOM; pass NULL in that case.

Value

3D array of intensities where third dimension is slice

Examples

1
2
3
data(sample_nifti_img)
img_data_to_3D_mat(sample_nifti_img)
## Not run: img_data_to_3D_mat(nifti_data_4D, coord_extra_dim = 10)

neuroconductor-devel/radtools documentation built on May 30, 2019, 12:43 p.m.