VolumeSource
Description
A VolumeSource
object defines the source of ground truth data for
3-D medical image volumes. Use this object to specify the volume data sources for a
groundTruthMedical
object. Each source must be a single DICOM, NIfTI, or
NRRD file or multiple DICOM files comprising one 3-D volume.
Creation
When you export labels from a Medical Image Labeler app volume session, the
DataSource
property of the exported groundTruthMedical
object contains a VolumeSource
object.
To create a VolumeSource
object programmatically, such as when
programmatically creating a groundTruthMedical
object, use the
medical.labeler.loading.VolumeSource
function.
Syntax
Description
creates a volSrc
= medical.labeler.loading.VolumeSource(source
)VolumeSource
object for loading the 3-D medical image data
stored in the files or directory specified by source
.
The data source for a VolumeSource
object must be readable by a
medicalVolume
object and have a primary slice direction of "sagittal"
,
"coronal"
, "transverse"
, or
"oblique"
, which indicates that all slices are parallel. The
Orientation
property of the medicalVolume
object specifies the primary slice direction. VolumeSource
does not
support volumes with a primary orientation that is "mixed"
or
"unknown"
.
VolumeSource
does not support volumes with more than three
dimensions.
creates a volSource
= medical.labeler.loading.VolumeSource(sourceTable
)VolumeSource
object for loading the image data specified in a
table, sourceTable
, returned by the
dicomCollection
function.
Input Arguments
Properties
Examples
Version History
Introduced in R2022b