<div dir="ltr">Scott, I hope you are aware of the coordinate conventions between imaging and RT/IEC. Z and Y are interchanged.<br><br>Jothy <br><br><div class="gmail_quote">On Mon, May 24, 2010 at 10:52 PM, Scott Johnson <span dir="ltr">&lt;<a href="mailto:Scott.Johnson@neuwave.com">Scott.Johnson@neuwave.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks Jothy, now I can shift the ROI, but I’m still trying to
figure out the mathematical relationship between the 2 coordinate systems.  </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">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?</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">                                -- Scott</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">

<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Jothy
[mailto:<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>] <br>
<b>Sent:</b> Monday, May 24, 2010 4:20 PM<div><div></div><div class="h5"><br>
<b>To:</b> Scott Johnson<br>
<b>Cc:</b> VTK<br>
<b>Subject:</b> Re: [vtkusers] Segment Import from itksnap</div></div></span></p>

</div><div><div></div><div class="h5">

<p class="MsoNormal"> </p>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;">Will vtkTransformPolyDataFilter
help? Of course, you should know the vector to shift.<br>
<br>
Jothy</p>

<div>

<p class="MsoNormal">On Mon, May 24, 2010 at 10:00 PM, Scott Johnson &lt;<a href="mailto:Scott.Johnson@neuwave.com" target="_blank">Scott.Johnson@neuwave.com</a>&gt;
wrote:</p>

<div>

<div>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">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.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">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.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Thanks</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">                               
-- Scott</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0in 0in; border-color: -moz-use-text-color;">

<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Jothy
[mailto:<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>]
<br>
<b>Sent:</b> Monday, May 24, 2010 3:56 PM<br>
<b>To:</b> Scott Johnson<br>
<b>Cc:</b> VTK<br>
<b>Subject:</b> Re: [vtkusers] Segment Import from itksnap</span></p>

</div>

<div>

<div>

<p class="MsoNormal"> </p>

<div>

<p class="MsoNormal" style="margin-bottom: 12pt;">I think
you should set the appropriate ImageOrigin.<br>
<br>
Jothy</p>

<div>

<p class="MsoNormal">On
Mon, May 24, 2010 at 9:52 PM, Scott Johnson &lt;<a href="mailto:Scott.Johnson@neuwave.com" target="_blank">Scott.Johnson@neuwave.com</a>&gt;
wrote:</p>

<div>

<div>

<p class="MsoNormal">Hi
Folks,</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">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.)</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">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.</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">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?</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">Thanks</p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">                               
-- Scott</p>

<p class="MsoNormal"> </p>

</div>

</div>

<p class="MsoNormal" style="margin-bottom: 12pt;"><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a></p>

</div>

<p class="MsoNormal"> </p>

</div>

</div>

</div>

</div>

</div>

</div>

<p class="MsoNormal"> </p>

</div>

</div></div></div>

</div>


</blockquote></div><br></div>