Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
tilt a stack of images

Subject: tilt a stack of images

From: niloufar

Date: 22 Aug, 2012 09:15:07

Message: 1 of 8

dear all,
I have a dicom image which is giving me a stack of images by (128*128*35). I want to tilt the whole stack for 10 degree in both x and y direction. how can i do that?
thanks alot for helping
Regards,
Neli

Subject: tilt a stack of images

From: Matt J

Date: 22 Aug, 2012 13:28:06

Message: 2 of 8

"niloufar " <ndarvish@kth.se> wrote in message <k127ur$g8j$1@newscl01ah.mathworks.com>...
> dear all,
> I have a dicom image which is giving me a stack of images by (128*128*35). I want to tilt the whole stack for 10 degree in both x and y direction. how can i do that?
================

Using the IMROTATE command

Subject: tilt a stack of images

From: niloufar

Date: 24 Aug, 2012 18:10:07

Message: 3 of 8

but imrotate will rotate the each images right? i want to tilt the whole stack of images.

Subject: tilt a stack of images

From: Matt J

Date: 24 Aug, 2012 18:31:06

Message: 4 of 8

"niloufar " <ndarvish@kth.se> wrote in message <k18g1v$4mi$1@newscl01ah.mathworks.com>...
> but imrotate will rotate the each images right? i want to tilt the whole stack of images.

The rotation you're attempting is not clear. Do you want each 128x128 slice rotated by 10 degrees in its own plane? If so, imrotate is what you want.
If not, about what axis do you want to rotate?

Subject: tilt a stack of images

From: niloufar

Date: 26 Aug, 2012 14:20:16

Message: 5 of 8

Dear Matt,
no consider the whole stack az a 3D image of the heart which has a medial axis i want to tilt that axis for 10 degree in a way that after the tilt the whole heart is tilted for 10 degree in both x and y direction

Subject: tilt a stack of images

From: Matt J

Date: 26 Aug, 2012 17:01:14

Message: 6 of 8

"niloufar " <ndarvish@kth.se> wrote in message <k1dbb0$1cb$1@newscl01ah.mathworks.com>...
> Dear Matt,
> no consider the whole stack az a 3D image of the heart which has a medial axis i want to tilt that axis for 10 degree in a way that after the tilt the whole heart is tilted for 10 degree in both x and y direction
===============

Still not terribly clear. Tilts and rotations are not straight-line movements, so I don't really understand what it means to "tilt 10 degrees in the x direction". You need to identify what axis you want to rotate around. If this axis is not the axis normal to your image slices, then you need to use TFORMARRAY.

Subject: tilt a stack of images

From: niloufar

Date: 27 Aug, 2012 11:40:12

Message: 7 of 8

i don't know how to put it in words, but I don't want to rotate each one of the slices, I just want to rotate the whole 35 slices all together around its middle point of the stack of the images if we consider it a 3D object.
I was looking for the middle axis of the heart and in some point I realized that the axis is a little tilted so in order to get the correct redial slices from my images i need to tilt the medial axis toward the actual axis.
I hope this time it is more clear . :)
and thank you for your help

Subject: tilt a stack of images

From: Bruno Luong

Date: 27 Aug, 2012 12:04:13

Message: 8 of 8

http://www.mathworks.com/help/toolbox/images/ref/tformarray.html
http://www.mathworks.com/help/toolbox/images/ref/maketform.html

Bruno

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us