resample
Resample medical image volume in different patient coordinate system
Since R2022b
Description
resamples the voxel data stored in the medVolResampled
= resample(medVol
,R
)medicalVolume
object medVol
in the patient coordinate system specified by
R
. The updated voxel data is returned in a new
medicalVolume
object, medVolResampled
.
specifies additional options for resampling the voxel data using name-value arguments. For
example, medVolResampled
= resample(medVol
,R
,Name=Value
)Method="linear"
specifies a linear method for resampling.
Examples
Input Arguments
Output Arguments
Algorithms
The resample
function calculates the voxel values in the output
volume, medVolResampled
, by mapping locations in the output volume to the
corresponding locations in the input volume (an inverse mapping). When the center of the voxel
in the output volume does not map to the center of a voxel in the input volume,
resample
interpolates the input voxel values to calculate the output
values.
resample
performs the mapping in the patient coordinate systems of
each volume. The function assumes that the patient coordinate systems of the input and output
volumes have the same orientation convention, specified by the
PatientCoordinateSystem
property of a medicalref3d
object, and that the patient coordinate systems have the same origin.
Version History
Introduced in R2022b