<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=koi8-r">
<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C5613F.1EB1A640">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceName"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PlaceType"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:HyphenationZone>21</w:HyphenationZone>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;
        mso-font-alt:"Courier New";
        mso-font-charset:0;
        mso-generic-font-family:modern;
        mso-font-format:other;
        mso-font-pitch:fixed;
        mso-font-signature:3 0 0 0 1 0;}
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;
        mso-font-alt:"MS Mincho";
        mso-font-charset:128;
        mso-generic-font-family:modern;
        mso-font-pitch:fixed;
        mso-font-signature:-1610612033 1757936891 16 0 131231 0;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;
        mso-font-alt:SimSun;
        mso-font-charset:134;
        mso-generic-font-family:auto;
        mso-font-pitch:variable;
        mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
        {font-family:"\@SimSun";
        panose-1:2 1 6 0 3 1 1 1 1 1;
        mso-font-charset:134;
        mso-generic-font-family:auto;
        mso-font-pitch:variable;
        mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;
        mso-font-charset:128;
        mso-generic-font-family:modern;
        mso-font-pitch:fixed;
        mso-font-signature:-1610612033 1757936891 16 0 131231 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0cm;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Courier New";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStijl18
        {mso-style-type:personal;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.EmailStijl19
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:Standaardtabel;
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=NL-BE link=blue vlink=purple style='tab-interval:35.4pt'>

<div class=Section1>

<p class=MsoNormal><span class=SpellE><font size=2 face=Arial><span
style='font-size:10.0pt;font-family:Arial'>Hi</span></font></span><font size=2
face=Arial><span style='font-size:10.0pt;font-family:Arial'>,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'><span
style='mso-tab-count:1'>ššššššššššš </span></span></font><font size=2
face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:EN-GB'>I have registered two images and I have the result in
a </span></font><font size=2 color=blue face=Courier><span lang=EN-GB
style='font-size:10.0pt;font-family:Courier;mso-bidi-font-family:Courier;
color:blue;mso-ansi-language:EN-GB'>VersorRigid3DTransform</span></font><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:EN-GB'>, now I would like to transform some </span></font><font
size=2 color=blue face=Courier><span lang=EN-GB style='font-size:10.0pt;
font-family:Courier;mso-bidi-font-family:Courier;color:blue;mso-ansi-language:
EN-GB'>vtkPolyData</span></font><font size=2 face=Arial><span lang=EN-GB
style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'> using this
transform.<span style='mso-spacerun:yes'>š </span>I believe that </span></font><font
size=2 color=blue face=Courier><span lang=EN-GB style='font-size:10.0pt;
font-family:Courier;mso-bidi-font-family:Courier;color:blue;mso-ansi-language:
EN-GB'>VersorRigid3DTransform</span></font><font size=2 face=Arial><span
lang=EN-GB style='font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>
contains a rotation (the versor) and a translation, so I set up a 4x4 matrix,
containing the rotation and translation as follows:<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:EN-GB'><span style='mso-tab-count:1'>ššššššššššš </span>|<span
style='mso-tab-count:1'>šššššššššš </span>R11<span style='mso-tab-count:1'>ššššš </span>R12<span
style='mso-tab-count:1'>ššššš </span>R13 <span style='mso-tab-count:1'>šššš </span>Tx<span
style='mso-tab-count:1'>ššššššš </span>|<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:EN-GB'><span style='mso-tab-count:1'>ššššššššššš </span></span></font><font
size=2 face=Arial><span lang=PT-BR style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:PT-BR'>|<span style='mso-tab-count:1'>šššššššššš </span>R21<span
style='mso-tab-count:1'>ššššš </span>R22<span style='mso-tab-count:1'>ššššš </span>R23<span
style='mso-tab-count:1'>ššššš </span>Ty<span style='mso-tab-count:1'>ššššššš </span>|<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 face=Arial><span lang=PT-BR style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:PT-BR'><span style='mso-tab-count:1'>ššššššššššš </span>|<span
style='mso-tab-count:1'>šššššššššš </span>R31<span style='mso-tab-count:1'>ššššš </span>R32<span
style='mso-tab-count:1'>ššššš </span>R33<span style='mso-tab-count:1'>ššššš </span>Tz<span
style='mso-tab-count:1'>ššššššš </span>|<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 face=Arial><span lang=PT-BR style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:PT-BR'><span style='mso-tab-count:1'>ššššššššššš </span></span></font><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:EN-GB'>|<span style='mso-tab-count:1'>šššššššššš </span>0<span
style='mso-tab-count:1'>ššššššššš </span>0<span style='mso-tab-count:1'>ššššššššš </span>0<span
style='mso-tab-count:1'>ššššššššš </span>1<span style='mso-tab-count:1'>ššššššššš </span>|<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:EN-GB'>I get the rotation matrix R using <span
style='mso-tab-count:1'> </span></span></font><font size=2 color=blue
face=Courier><span lang=EN-GB style='font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:blue;mso-ansi-language:EN-GB'>VersorRigid3DTransform::<a
href="file:///C:\Documents%20and%20Settings\Toon%20Huysmans\My%20Documents\Image-Mesh%20Processing\ITK\DoxygenInsightToolkit-2.0.0\a03144.html#a2"><span
style='text-decoration:none;text-underline:none'>GetRotationMatrix</span></a></span></font><span
lang=EN-GB style='mso-ansi-language:EN-GB'>, and the translation part using </span><font
size=2 color=blue face=Courier><span lang=EN-GB style='font-size:10.0pt;
font-family:Courier;mso-bidi-font-family:Courier;color:blue;mso-ansi-language:
EN-GB'>VersorRigid3DTransform::<a
href="file:///C:\Documents%20and%20Settings\Toon%20Huysmans\My%20Documents\Image-Mesh%20Processing\ITK\DoxygenInsightToolkit-2.0.0\a03144.html#a1"><span
style='text-decoration:none;text-underline:none'>GetOffset</span></a></span></font><span
lang=EN-GB style='mso-ansi-language:EN-GB'>.<span style='mso-spacerun:yes'>š
</span>Then I use </span><font size=2 color=blue face=Courier><span lang=EN-GB
style='font-size:10.0pt;font-family:Courier;mso-bidi-font-family:Courier;
color:blue;mso-ansi-language:EN-GB'>vtkTransform::SetMatrix</span></font><span
lang=EN-GB style='mso-ansi-language:EN-GB'> to set the transform for the
polydata, and I use<o:p></o:p></span></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 color=blue face=Courier><span lang=EN-GB style='font-size:10.0pt;
font-family:Courier;mso-bidi-font-family:Courier;color:blue;mso-ansi-language:
EN-GB'>vtkTransformPolyDataFilter</span></font><span lang=EN-GB
style='mso-ansi-language:EN-GB'> to transform the polydata.<span
style='mso-spacerun:yes'>š </span>But the result is not as expected, i.e. the
transformation is not correct.<o:p></o:p></span></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=3 face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt;
mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=3 face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt;
mso-ansi-language:EN-GB'>Does anyone have any clues on how to do it the right
way?<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=3 face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt;
mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=3 face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt;
mso-ansi-language:EN-GB'>Many thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=3 face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt;
mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=3 face="Times New Roman"><span lang=EN-GB style='font-size:12.0pt;
mso-ansi-language:EN-GB'>Toon Huysmans.<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-layout-grid-align:none;text-autospace:none'><font
size=2 face=Arial><span lang=EN-GB style='font-size:10.0pt;font-family:Arial;
mso-ansi-language:EN-GB'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;mso-ansi-language:EN-GB;mso-fareast-language:ZH-CN;
mso-no-proof:yes'>¥</span></font><span lang=EN-GB style='mso-fareast-font-family:
SimSun;mso-ansi-language:EN-GB;mso-fareast-language:ZH-CN;mso-no-proof:yes'>                                                 </span><span
lang=EN-GB style='mso-ansi-language:EN-GB;mso-no-proof:yes'>    </span><span
lang=EN-GB style='mso-ansi-language:EN-GB;mso-fareast-language:ZH-CN;
mso-no-proof:yes'>¨</span><span lang=EN-GB style='mso-fareast-font-family:SimSun;
mso-ansi-language:EN-GB;mso-fareast-language:ZH-CN;mso-no-proof:yes'><o:p></o:p></span></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;mso-ansi-language:EN-GB;mso-no-proof:yes'>¡ Postal
Address:<span style='mso-spacerun:yes'>ššššššššššššššššššššššššššššššššš
</span>&nbsp;&nbsp; ¡</span></font><font size=3><span lang=EN-GB
style='font-size:12.0pt;mso-ansi-language:EN-GB;mso-no-proof:yes'><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;mso-ansi-language:EN-GB;mso-no-proof:yes'>¡ &nbsp;<span
style='mso-spacerun:yes'>ššššššššššššššššššššššššššššššššššššššššššššššš
</span>&nbsp;&nbsp; ¡<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;mso-ansi-language:EN-GB;mso-no-proof:yes'>¡ Vision Lab,
Department of Physics<span style='mso-spacerun:yes'>ššššššššššššššš
</span>&nbsp;&nbsp; </span></font><span lang=EN-GB style='mso-fareast-font-family:
"MS Mincho";mso-ansi-language:EN-GB;mso-fareast-language:JA;mso-no-proof:yes'>¡<o:p></o:p></span></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;mso-ansi-language:EN-GB;mso-no-proof:yes'>¡ <st1:place><st1:PlaceType></span></font><st1:place><st1:PlaceType><span
  lang=EN-GB style='mso-ansi-language:EN-GB;mso-no-proof:yes'>University</st1:PlaceType></span></st1:PlaceType><span
 lang=EN-GB style='mso-ansi-language:EN-GB;mso-no-proof:yes'> of <st1:PlaceName></span><st1:PlaceName><span
  lang=EN-GB style='mso-ansi-language:EN-GB;mso-no-proof:yes'>Antwerp</st1:PlaceName></st1:place></span></st1:PlaceName></st1:place><span
lang=EN-GB style='mso-ansi-language:EN-GB;mso-no-proof:yes'> (CMI)<span
style='mso-spacerun:yes'>ššššššššššššššššššššš </span>&nbsp;&nbsp; ¡<o:p></o:p></span></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=EN-GB
style='font-size:10.0pt;mso-ansi-language:EN-GB;mso-no-proof:yes'>¡
Groenenborgerlaan 171 (U</span><span style='mso-no-proof:yes'>306)<span
style='mso-spacerun:yes'>ššššššššššššššššššš </span>&nbsp;&nbsp;<span
style='mso-spacerun:yes'>š </span>¡<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt;mso-no-proof:yes'>¡ B-2020 <st1:place><st1:City>Antwerp</st1:City>, <st1:country-region>Belgium</st1:country-region></st1:place><span
style='mso-spacerun:yes'>ššššššššššššššššššššššššš </span>&nbsp;&nbsp; ¡<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt;mso-no-proof:yes'>°€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€´</span></font><font
size=3><span style='font-size:12.0pt;mso-no-proof:yes'><o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt;mso-no-proof:yes'>¡ Tel: +32 (0) 3 265 32 24<span
style='mso-spacerun:yes'>šššššššššššššššššššššš </span>&nbsp;&nbsp;&nbsp;
&nbsp;¡<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt;mso-no-proof:yes'>°€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€´<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt;mso-no-proof:yes'>¡ Fax: +32 (0) 3 265 33 18<span
style='mso-spacerun:yes'>ššššššššššššššššššššš </span>&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;¡<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt;mso-no-proof:yes'>°€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€´<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt;mso-no-proof:yes'>¡ Email: </span></font><span lang=FR style='mso-ansi-language:
FR;mso-no-proof:yes'><a href="mailto:toon.huysmans@ua.ac.be"><span lang=NL-BE
style='mso-ansi-language:NL-BE'>toon.huysmans@ua.ac.be</span></a></span><span
style='mso-no-proof:yes'><span style='mso-spacerun:yes'>šššššššššš </span><span
style='mso-spacerun:yes'>ššššššš</span>&nbsp;&nbsp;&nbsp; &nbsp;¡<o:p></o:p></span></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt;mso-no-proof:yes'>°€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€´<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span style='font-size:
10.0pt;mso-no-proof:yes'>¡ Web: </span></font><span lang=EN-GB
style='mso-ansi-language:EN-GB;mso-no-proof:yes'><a
href="http://webhost.ua.ac.be/visielab/staff/tohu/"><span lang=NL-BE
style='mso-ansi-language:NL-BE'>http://webhost.ua.ac.be/visielab/staff/tohu/</span></a></span><span
style='mso-no-proof:yes'><span style='mso-spacerun:yes'>šš </span>¡<o:p></o:p></span></p>

<p class=MsoPlainText><font size=2 face="Courier New"><span lang=FR
style='font-size:10.0pt;mso-ansi-language:FR;mso-fareast-language:ZH-CN;
mso-no-proof:yes'>«</span></font><span lang=FR style='mso-ansi-language:FR;
mso-no-proof:yes'>                                                     </span><span
lang=FR style='mso-ansi-language:FR;mso-fareast-language:ZH-CN;mso-no-proof:
yes'>®</span><span lang=FR style='mso-fareast-font-family:SimSun;mso-ansi-language:
FR;mso-fareast-language:ZH-CN'><o:p></o:p></span></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>