[vtkusers] Segment Import from itksnap
Jothy
jothybasu at gmail.com
Mon May 24 17:57:57 EDT 2010
Scott, I hope you are aware of the coordinate conventions between imaging
and RT/IEC. Z and Y are interchanged.
Jothy
On Mon, May 24, 2010 at 10:52 PM, Scott Johnson
<Scott.Johnson at neuwave.com>wrote:
> Thanks Jothy, now I can shift the ROI, but I’m still trying to figure out
> the mathematical relationship between the 2 coordinate systems.
>
>
>
> I thought that it was just the differences in origin (Top/Left vs.
> bottom/left) but that doesn’t seem to be correct. By just eyeballing it, Z
> coordinates seem to differ as well. Maybe reversed?
>
>
>
> -- Scott
>
>
>
> *From:* Jothy [mailto:jothybasu at gmail.com]
> *Sent:* Monday, May 24, 2010 4:20 PM
>
> *To:* Scott Johnson
> *Cc:* VTK
> *Subject:* Re: [vtkusers] Segment Import from itksnap
>
>
>
> Will vtkTransformPolyDataFilter help? Of course, you should know the vector
> to shift.
>
> Jothy
>
> On Mon, May 24, 2010 at 10:00 PM, Scott Johnson <Scott.Johnson at neuwave.com>
> wrote:
>
> It seems that my image origin is fine, but the exported segmentation origin
> is not. If the image origin was incorrect I would have expected a different
> result in Paraview.
>
>
>
> I’m just looking for something to shift the PolyData. The issue is by how
> much? Right now I’m looking at shifting the vtkActor for the PolyData.
>
>
>
> Thanks
>
>
>
> -- Scott
>
>
>
> *From:* Jothy [mailto:jothybasu at gmail.com]
> *Sent:* Monday, May 24, 2010 3:56 PM
> *To:* Scott Johnson
> *Cc:* VTK
> *Subject:* Re: [vtkusers] Segment Import from itksnap
>
>
>
> I think you should set the appropriate ImageOrigin.
>
> Jothy
>
> On Mon, May 24, 2010 at 9:52 PM, Scott Johnson <Scott.Johnson at neuwave.com>
> wrote:
>
> Hi Folks,
>
>
>
> I segmented a volume in itksnap, exported it to a VTK Mesh, and attempted
> to import it into my VTK application using vtkPolyDataReader. The shape
> seems to import correctly, but it is located outside my image volume. (To
> the left and down.)
>
>
>
> I’ve tried converting the vtp file to an XML file and imported using
> vtkXMLPolyDataReader, with the same result. It’s also the same if I import
> to Paraview.
>
>
>
> Is this the difference between the ITK and VTK coordinate systems? If so,
> is this only a translation issue? What is the mathematical relationship
> between the ITK and VTK coordinate systems?
>
>
>
> Thanks
>
>
>
> -- Scott
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100524/ce2a3062/attachment.htm>
More information about the vtkusers
mailing list