medicalref3d
Description
A medicalref3d
object stores the relationship between the
intrinsic coordinate system anchored to the columns, rows, and planes of a medical image
volume and the real-world patient coordinate system.
The medicalref3d
object handles affine and non-affine medical image
volumes. For non-affine volumes, the object stores information about the spacing and
orientation of each slice in each dimension. You can also use the
medicalref3d
object to access and update the mapping between the patient
coordinate system axes and the left-right, superior-inferior, and anterior-posterior
anatomical axes.
Creation
You can create a medicalred3d
object in these ways:
medicalVolume
— Creates amedicalref3d
object, stored in theVolumeGeometry
property.The
medicalref3d
function described here.
Syntax
Description
creates a R
= medicalref3d(volumeSize,tform
)medicalref3d
object and sets the VolumeSize
property. tform
is an affinetform3d
object that specifies an affine image volume.
specifies the spatial referencing information for an affine or non-affine image volume by
setting the R
= medicalref3d(volumeSize,position,pixelSpacing,cosines
)Position
and
PixelSpacing
properties, and specifies the orientation of each slice using the
cosines
argument.
specifies the spatial referencing information for an affine or non-affine image volume by
setting the R
= medicalref3d(volumeSize,position,voxelDistances)Position
and
VoxelDistances
properties.
assumes that the
image volume is aligned and affine, and specifies default values of the spatial
referencing information of the image volume using only the volume size. (since R2024a)R
= medicalref3d(volumeSize)
specifies the spatial referencing information of the image volume by setting the R
= medicalref3d(volumeSize,voxelSpacing
)VoxelDistances
and PixelSpacing
properties using the specified voxel spacing voxelSpacing
. (since R2024a)
Input Arguments
Properties
Object Functions
intrinsicToWorldMapping | Geometric transform between intrinsic and patient coordinates of medical image volume |
contains | Determine if affine image volume contains points specified in patient coordinate system |
intrinsicToWorld | Map points from intrinsic coordinates to patient coordinates |
oneSliceIntrinsicToWorldMapping | Geometric transform between intrinsic and patient coordinates of medical image volume slice |
orient | Update patient coordinate system convention |
sliceCorners | Extract patient coordinates of corner voxels for one slice |
worldToIntrinsic | Map points from patient coordinates to intrinsic coordinates |
worldToSubscript | Convert from patient coordinates to row and column subscripts |