Rotate 3-D volumetric grayscale image
rotates the 3-D volume B
= imrotate3(V
,angle
,W
)V
by angle
degrees
counterclockwise around an axis passing through the origin [0 0
0]
. W
is a 1-by-3 vector which specifies the
direction of the axis of rotation in 3-D space. By default,
imrotate3
sets the values of voxels in B
that are outside the boundaries of the rotated volume to
0
.
also specifies the size of the output volume, B
= imrotate3(V
,angle
,W
,method
,bbox
)bbox
. If you
specify 'crop'
, then imrotate3
makes the
output volume the same size as the input volume. If you specify
'loose'
, then imrotate3
makes the output
volume large enough to include the entirety of the rotated volume.
sets the fill values used for output pixels without a corresponding pixel in the
input image.B
= imrotate3(___,'FillValues',fillValues
)
imrotate3
assumes that the input volume
V
is centered on the origin [0 0 0]
.
If your volume is not centered on the origin, then use imtranslate
to translate the
volume to [0 0 0]
before using imrotate3
.
You can translate the output volume B
back to the original
position with the opposite translation vector.
imresize
| imresize3
| imrotate
| imtranslate
| imwarp
| Volume Viewer