<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.E-MailFormatvorlage18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.E-MailFormatvorlage19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.E-MailFormatvorlage20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;m not so familiar with the difference of a versor and a quaternion, but I thought, the 4 representing values should be the same in both structures.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>If so, then there might be a bug, when converting a itkVersorRigid3DTransform into a vnl_quaternion (or I&#8217;m just doing the conversion in a wrong way).<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I&#8217;m doing the conversion of a <span style='font-size:10.0pt;font-family:"Courier New"'>itk::VersorRigid3DTransform&lt;double&gt;::Pointer transform </span>as follows<span style='font-size:10.0pt;font-family:"Courier New"'>:</span><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>vnl_quaternion&lt;<span style='color:blue'>double</span>&gt;(transform-&gt;GetMatrix().GetVnlMatrix());<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal>The resulting quaternion does not equal the versor, for example read out with<span style='font-size:10.0pt;font-family:"Courier New"'> -&gt;GetVersor(). </span>From the few examples I tried, it looks as if only the direction of the rotation changes, but rotation axis and angle are the same.<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Thanks a lot in advance for your help!<o:p></o:p></p><p class=MsoNormal>Best<o:p></o:p></p><p class=MsoNormal>Anja<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>--------------<o:p></o:p></p><p class=MsoNormal>Dipl.-Inform. Anja Groch<o:p></o:p></p><p class=MsoNormal>German Cancer Research Center (DKFZ)<o:p></o:p></p><p class=MsoNormal>Div. Medical and Biological Informatics<o:p></o:p></p><p class=MsoNormal>Junior Group: Computer-assisted Interventions (E131)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></p><p class=MsoNormal><span lang=DE>Im Neuenheimer Feld 280<o:p></o:p></span></p><p class=MsoNormal><span lang=DE>69120 Heidelberg, Germany&nbsp;<o:p></o:p></span></p><p class=MsoNormal><span lang=DE><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=DE>Email:&nbsp; <a href="mailto:a.groch@dkfz.de">a.groch@dkfz.de</a><o:p></o:p></span></p><p class=MsoNormal>Phone:&nbsp; (+49) 6221/42-3548<o:p></o:p></p><p class=MsoNormal>Fax:&nbsp;&nbsp;&nbsp; (+49) 6221/42-2345<o:p></o:p></p><p class=MsoNormal><span lang=DE><a href="http://www.dkfz-heidelberg.de/de/mbi/people/Anja_Groch.html"><span lang=EN-US>http://www.dkfz-heidelberg.de/de/mbi/people/Anja_Groch.html</span></a></span><span style='color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p></div></body></html>