How to rotate an 3D-image / 3D-Matrix

48 Ansichten (letzte 30 Tage)
Flohrian -
Flohrian - am 14 Jul. 2015
Beantwortet: Alex Taylor am 15 Jul. 2015
Hello,
my problem is this:
I have an 3D-Image (an 200x200x50 matrix)
this matrix has to be rotatet around the x-axis by an ~175° angle. The exact angle I will have to decide later on. The only code I found was "Imrotate", but that only works for 2D-Images.
Thank you very much Florian

Antworten (2)

Matt J
Matt J am 14 Jul. 2015
Bearbeitet: Matt J am 14 Jul. 2015
IMROTATE will work on 3D images. It will operate on every 2D slice A(:,:,i), rotating it about the z-axis. You can use permute() to align the x-axis with the z-axis and ipermute() to revert back again.

Alex Taylor
Alex Taylor am 15 Jul. 2015
Look at the second example of the documentation for IMWARP:
You can phrase a rotation using a 3-d affine transformation, and apply this transformation with imwarp.

Kategorien

Mehr zu Geometric Transformation and Image Registration finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by