[Insight-users] ITK image origin & VTK world origin

Frederic Perez fredericpcx at gmail.com
Tue Apr 12 05:19:28 EDT 2005


Hello Andres,

On Apr 12, 2005 4:58 AM, Andres Munarriz <munarriz.a at gmail.com> wrote:
> Hi guys,
> 
> I've come up with another inconvenience.  It happens that I've created
> a VTK world wich contains an actor that come form ITK.  The problem
> is, I can't or at least don't know how to set the VTK world origin
> equal to the ITK image origin.  If anyone has any idea on how to
> address this issue please let me know.

I recently met a similar situation. I don't know if this will fix your problem,
but I found that the following conversion between indices fixed mine:

  i_vtk = i_vtk
  j_vtk = img->size[1]− j_itk − 1
  k_vtk = k_vtk

(Maybe there is an Insight filter for this?)

Hope this helps,

Frederic Perez


More information about the Insight-users mailing list