3D matrx

Hi
I am trying to rotate some bone ball (3D matrix or volume) images in 10 degree angle through their center. I already found their center. I was using imrotate to rotate my bone images, but when I used to it rotated my whole picture (taking into consideration as the image center in stead of the bone ball center). I was wondering is there any efficient way to do it.
I was thinking of expanding the volume (3D matrix) from its center and then rotate it.
PS: in order to get 3D of volume, I had to stack all the 2D sliced I obtained from CT scan.

回答(1 个)

Sean de Wolski
Sean de Wolski 2012-3-30

0 个投票

Padding the volume is certainly one way to do it. Another way would be to make a transformation matrix that includes the various offsets and then transform it. The relevant functions here are:
doc maketform
doc imtransform
doc tformarray
A good demo or two to help:
showdemo ipexshear
showdemo ipexrotate

类别

帮助中心File Exchange 中查找有关 Image Processing Toolbox 的更多信息

提问:

2012-3-30

Community Treasure Hunt

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

Start Hunting!

Translated by