<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Sam,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">your question isn't totally well defined. Just the matrix would be the same. If you are dealing with oriented images, <a href="http://www.vtk.org/Wiki/ITK/Examples/WishList/IO/itkVtkImageConvertDICOM">this example</a> might be handy.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default"><font face="verdana, sans-serif">Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)</font></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 9, 2017 at 12:16 PM, <span dir="ltr"><<a href="mailto:sganesan@cusa.canon.com" target="_blank">sganesan@cusa.canon.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font size="2" face="sans-serif"><br>
Hello </font>
<br>
<br><font size="2" face="sans-serif">I'm trying to write a function that
can reasonably convert between ITK and VTK coordinate spaces. I have a
given ITK transform with my 12 parameters, (3 fixed). </font>
<br>
<br><font size="2" face="sans-serif"> a
b c x
</font>
<br><font size="2" face="sans-serif">
</font>
<br><font size="2" face="sans-serif"> d
e f y
</font>
<br><font size="2" face="sans-serif">
</font>
<br><font size="2" face="sans-serif"> g
h i z
</font>
<br>
<br><font size="2" face="sans-serif"> l
m n 1 </font>
<br>
<br><font size="2" face="sans-serif">where (a,b,c,d,e,f,g,h,i) represent
my ITK matrix, (x,y,z) is my center, and (l,m,n) is my translation.</font>
<br>
<br>
<br><font size="2" face="sans-serif">How do I convert that to VTK format
</font>
<br>
<br>
<br><font size="2" face="sans-serif"> a
b c o
</font>
<br><font size="2" face="sans-serif">
</font>
<br><font size="2" face="sans-serif"> d
e f p
</font>
<br><font size="2" face="sans-serif">
</font>
<br><font size="2" face="sans-serif"> g
h i q
</font>
<br>
<br><font size="2" face="sans-serif"> 0
0 0 1 </font>
<br>
<br><font size="2" face="sans-serif">where (a,b,c,d,e,f,g,h,i) represent
my VTK matrix,, and (o,p,q) is my translation. </font>
<br>
<br><font size="2" face="sans-serif">Is there a relatively straightforward
way of doing this? I'm using ITK_4.11.0</font>
<br>
<br><font size="2" face="sans-serif">Kind Regards,</font>
<br><font size="2" face="sans-serif">Sam</font>
<br>
<table width="1200" style="border-collapse:collapse">
<tbody><tr valign="top" height="8">
<td width="159" rowspan="2" style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><img src="cid:_1_0BB84AE80BB8471400596A648525811B" alt="Canon U.S.A., Inc.">
</td><td width="1041" style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="2" face="Arial"><b>Santosh
Ganesan</b></font><font size="1" face="Arial"><br>
Software Engineer<br>
Innovation Center Division</font>
</td></tr><tr height="8">
<td width="1041" style="border-style:solid;border-color:#000000;border-width:0px 0px 0px 0px;padding:0px 0px"><font size="1" face="Arial"><b>Canon
U.S.A., Inc.</b><br>
210 Broadway, Cambridge, MA, 02139</font><font size="1" color="#c20000" face="Arial"><u><br>
</u></font><a href="http://www.usa.canon.com/" target="_blank"><font size="1" color="#c20000" face="Arial"><u>www.usa.canon.com</u></font></a><font size="1" color="#c20000" face="Arial"><u><br>
</u></font><a href="mailto:sganesan@cusa.canon.com" target="_blank"><font size="1" color="#c20000" face="Arial"><u>sganesan@cusa.canon.com</u></font></a><font size="1" face="Arial"><b><br>
T</b> 617-374-2625 </font></td></tr></tbody></table>
<br><br>______________________________<wbr>_________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>