Hi Miri,

In Geometry3D you have lots of options to change the axis of your image (see 
member funtions here 
http://docs.mitk.org/nightly-qt4/classmitk_1_1Geometry3D.html).

You could either use SetIndexToWorldTransform() ... or Compose() to add another 
transform...
If you want to save the transformation, I would use mitk::AffineTransform3D or 
vtkMatrix4x4. For just a rotation you could also use quaternions 
itk::QuaternionRigidTransform or QuaternionTransformType::VnlQuaternionType. 
From these types you have also access to the rotation angles.

Good luck with your project!

Best wishes
Anja

--------------
Dipl.-Inform. Anja Groch
German Cancer Research Center (DKFZ)
Div. Medical and Biological Informatics (E130)
Im Neuenheimer Feld 280
69120 Heidelberg, Germany

Email:  [email protected]<mailto:[email protected]>
Phone:  (+49) 6221/42-3548
Fax:    (+49) 6221/42-2345
http://www.dkfz-heidelberg.de/de/mbi/people/Anja_Groch.html

Von: Miri Trope 
[mailto:[email protected]]<mailto:[mailto:[email protected]]>
Gesendet: Mittwoch, 18. Juli 2012 11:09
An: Groch, Anja
Cc: mitk-users
Betreff: Re: [mitk-users] Changing the orthogonal axis orientation due to a 
surface

Hi Anja,

I appreciate your help.
I guess I've meant to the first option that you suggested. let's say I inserted 
one 3d image and one surface (a cylinder) and want to rotate the image's axis 
(just one axis, no matter which one) according to the perpendicular plane of 
the cylinder.
would you please explain in more detail how to rotate the axis of the image? 
what's the right way to save the angle of the required rotation (due to the 
cylinder's orthogonal plane) and manipulate the image's axes according to that 
angle.

please give me a hand hear ...

Best,
Miri
On Thu, Jul 12, 2012 at 11:14 AM, Groch, Anja 
<[email protected]<mailto:[email protected]>> wrote:
Hi Miri,

I'm not really sure, if I got what you really want.

If you want to change the axis of your 3D image according to the cylinder 
surface, you just have to get the geometry of the image by 
mitk::Geometry3D<http://docs.mitk.org/nightly-qt4/classmitk_1_1Geometry3D.html>*
 mitk::BaseData::GetGeometry ( int  t = 0)  and then change this geometry. More 
information you'll find here 
http://docs.mitk.org/nightly-qt4/classmitk_1_1Geometry3D.html

If you are still interested in cutting out swiveled slices, we now have the 
ExtractSliceFilter merged into the master, which needs as input a geometry as 
well, in order to know, which slice should be cut out. 
http://docs.mitk.org/nightly-qt4/classmitk_1_1ExtractSliceFilter.html

In either ways you can use the geometry information of your cylinder surface to 
determine the geometry needed for your image.

Best
Anja

--------------
Dipl.-Inform. Anja Groch
German Cancer Research Center (DKFZ)
Div. Medical and Biological Informatics (E130)
Im Neuenheimer Feld 280
69120 Heidelberg, Germany

Email:  [email protected]<mailto:[email protected]>
Phone:  (+49) 6221/42-3548<tel:%28%2B49%29%206221%2F42-3548>
Fax:    (+49) 6221/42-2345<tel:%28%2B49%29%206221%2F42-2345>
http://www.dkfz-heidelberg.de/de/mbi/people/Anja_Groch.html

Von: Miri Trope [mailto:[email protected]<mailto:[email protected]>]
Gesendet: Mittwoch, 20. Juni 2012 09:24
An: mitk-users
Betreff: [mitk-users] Changing the orthogonal axis orientation due to a surface

Hi all,
I'll to be more specific and comprehensible now:

How can I change the orthogonal axis orientation due to a surface?
Please take a look at the attached picture: I have an input image and a 
cylinder. The upper figures represent before and the lowers after a handy 
swivel. I just rotated the red axis to be in a perpendicular position 
relatively to the cylinder.
How can I develop a filter that gets those two components (image and surface) 
and change the axis's image orientation to be perpendicularly the surface - in 
this way I will be able to browse the slices-slice after slice, and watch 
exactly what around my cylinder surface.
In the literature it's called: probe eye view.

If you know the answer to my question, please detail as much as you can 
(explanation, examples) - I'll very appreciate this.

Best,
Miri

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to