<div dir="ltr"><div>Thanks Ziv for clarifying the transform description, and nice ipython notebook! It would be awesome if you could update the documentation that is confusing in ITK. Anybody is more than welcome to submit patches to improve both the code and the documentation.<br>Information about how to participate is available here [1].<br><br></div>Francois<br><div><br>[1] <a href="https://itk.org/Wiki/ITK/Git/Develop">https://itk.org/Wiki/ITK/Git/Develop</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 1, 2016 at 3:56 PM, Yaniv, Ziv Rafael (NIH/NLM/LHC) [C] <span dir="ltr"><<a href="mailto:zivrafael.yaniv@nih.gov" target="_blank">zivrafael.yaniv@nih.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tobias,<br>
<br>
Unfortunately the name of this transformation type is misleading, it is<br>
not what you expect, it adds a diagonal scale-1 matrix to the rotation<br>
matrix. I remember being surprised by this too but, in this rare case ;),<br>
the documentation says what it does:<br>
<br>
<br>
<a href="https://itk.org/Doxygen/html/classitk_1_1ScaleVersor3DTransform.html" rel="noreferrer" target="_blank">https://itk.org/Doxygen/html/<wbr>classitk_1_<wbr>1ScaleVersor3DTransform.html</a><br>
<br>
regards<br>
Ziv<br>
<br>
p.s. A description of most ITK transformation types is available in our<br>
SimpleITK notebooks repository<br>
(<a href="https://github.com/InsightSoftwareConsortium/SimpleITK-Notebooks/blob/mast
er/Python/22_Transforms.ipynb" rel="noreferrer" target="_blank">https://github.com/<wbr>InsightSoftwareConsortium/<wbr>SimpleITK-Notebooks/blob/mast<br>
er/Python/22_Transforms.ipynb</a>)<wbr>. It illustrates the behavior of ITK<br>
transformations, some of which may be unexpected.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 11/1/16, 5:48 AM, "Wood, Tobias" <<a href="mailto:tobias.wood@kcl.ac.uk">tobias.wood@kcl.ac.uk</a>> wrote:<br>
<br>
>Hello,<br>
><br>
>I tried to create a ScaleVersor3DTransform that applies an isotropic 0.1<br>
>scaling and a 180 degree rotation about Z. I am hence a bit confused<br>
>about how I get the following output when I print the Transform:<br>
><br>
>ScaleVersor3DTransform (0x7f8a726789b0)<br>
> RTTI typeinfo: itk::ScaleVersor3DTransform<<wbr>double><br>
> Reference Count: 1<br>
> Modified Time: 209<br>
> Debug: Off<br>
> Object Name:<br>
> Observers:<br>
> none<br>
> Matrix:<br>
> -1.9 0 0<br>
> 0 -1.9 0<br>
> 0 0 0.1<br>
> Offset: [0, 0, 0]<br>
> Center: [0, 0, 0]<br>
> Translation: [0, 0, 0]<br>
> Inverse:<br>
> -0.526316 0 0<br>
> 0 -0.526316 0<br>
> 0 0 10<br>
> Singular: 0<br>
> Versor: [ 0, 0, 1, 0 ]<br>
> Scales: [0.1, 0.1, 0.1]<br>
><br>
>Not that the Scales and Versor parameters appear correct. However the<br>
>Matrix (and Inverse) look very badly wrong. I think the Matrix should be:<br>
>-0.1 0 0<br>
>0 -0.1 0<br>
>0 0 -0.1<br>
><br>
>What have I misunderstood?<br>
><br>
>Thanks,<br>
>Toby<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>
______________________________<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>
</div></div></blockquote></div><br></div>