<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
So, if I got this right, my translation should be the difference (in
mm) between the 1st voxel of each image and my rotation should be
based on the three Euler angles. <br>
When I do that, the orientation looks good but not the the
translation. Is there a trick related to the fact that the two
images have different resolutions.<br>
Small volume is 0.0683 x 0.0683 x 0.5 mm and big volume is 0.5 x 0.5
x 0.5 mm.<br>
<br>
Jeremy<br>
<br>
On 11/11/2011 02:39, Dženan Zukić wrote:
<blockquote
cite="mid:CAPf2UMTng-JP=jwYEgG1V40dwqpT-PdR3MMTfamskQtTzfLm-A@mail.gmail.com"
type="cite"><font size="2"><font face="verdana,sans-serif">Maybe
this example will help:<br>
<a moz-do-not-send="true"
href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/itkVtkImageConvert">http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/itkVtkImageConvert</a><br>
<br>
</font></font><br>
<div class="gmail_quote">On Thu, Nov 10, 2011 at 21:28, Jeremy
Lecoeur <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:jeremy.lecoeur@vanderbilt.edu">jeremy.lecoeur@vanderbilt.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<br>
<br>
Hello,<br>
<br>
I have two 3D images, one is a sub-volume of the other but is
not in the<br>
same orientation.<br>
For the big image, I know its size and also the coordinates in
mm of its<br>
first voxel with respect to a frame of reference.<br>
For the small image, I know its size, the coordinates in mm of
its first<br>
voxel with respect to the same frame of reference and also the
3 euler<br>
angles (phi, theta, psi) that defines its orientation.<br>
With that, how can I compute the transformation matrix that
will allow<br>
me to see the small image in the big image, at the right
place? I know<br>
it's supposed to be fairly simple but I cannot figure it out.<br>
<br>
Jeremy<br>
<br>
-- <br>
Jeremy Lecoeur, Ph.D.<br>
<br>
<br>
<br>
_____________________________________<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information
visit:<br>
<a moz-do-not-send="true"
href="http://www.kitware.com/products/protraining.html"
target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a moz-do-not-send="true"
href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://www.itk.org/mailman/listinfo/insight-users"
target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Jeremy Lecoeur, Ph.D.
Research Associate
Vanderbilt University
Phone: +1 615 343 7798
Fax: +1 615 343 5459</pre>
</body>
</html>