[ITK] Conversion from ITK to VTK coordinate spaces

Dženan Zukić dzenanz at gmail.com
Tue May 9 15:57:44 EDT 2017


Hi Sam,

your question isn't totally well defined. Just the matrix would be the
same. If you are dealing with oriented images, this example
<http://www.vtk.org/Wiki/ITK/Examples/WishList/IO/itkVtkImageConvertDICOM>
might be handy.

Regards,
Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

On Tue, May 9, 2017 at 12:16 PM, <sganesan at cusa.canon.com> wrote:

>
> Hello
>
> 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).
>
>        a        b      c    x
>
>        d      e       f     y
>
>        g      h        i     z
>
>         l      m       n    1
>
> 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.
>
>
> How do I convert that to VTK format
>
>
>        a        b      c    o
>
>        d      e       f     p
>
>        g      h        i     q
>
>         0      0       0    1
>
> where (a,b,c,d,e,f,g,h,i) represent my VTK matrix,, and (o,p,q) is my
> translation.
>
> Is there a relatively straightforward way of doing this? I'm using
> ITK_4.11.0
>
> Kind Regards,
> Sam
> [image: Canon U.S.A., Inc.] *Santosh Ganesan*
> Software Engineer
> Innovation Center Division
> *Canon U.S.A., Inc.*
> 210 Broadway, Cambridge, MA, 02139
> *www.usa.canon.com* <http://www.usa.canon.com/>
> *sganesan at cusa.canon.com* <sganesan at cusa.canon.com>
> * T* 617-374-2625
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170509/87b9a852/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 3762 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20170509/87b9a852/attachment.gif>


More information about the Community mailing list