ITK and VTK have different coordinate systems. The VTK y-axis is flipped. Perhaps this is causing issues.<br><br><div class="gmail_quote">On Thu, Oct 13, 2011 at 7:34 AM, Sven Olaf Lüttmann <span dir="ltr"><<a href="mailto:sven.luettmann@fh-dortmund.de">sven.luettmann@fh-dortmund.de</a>></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;"><u></u>
<div bgcolor="#ffffff" text="#000000">
<p style="margin-bottom: 0cm;" lang="en-US">Dear ITK-Users,</p>
<p style="margin-bottom: 0cm;" lang="en-US">I'm experiencing
problems
implementing a deformable segmentation approach. I'm using the
itkDeformableMesh3DFilter.</p>
<p style="margin-bottom: 0cm;" lang="en-US"><br>
</p>
<p style="margin-bottom: 0cm;" lang="en-US">Here is what I do
specifically:</p>
<ol>
<li>
<p style="margin-bottom: 0cm;" lang="en-US">Let the user draw
contours with vtkContourWidget</p>
</li>
<li>
<p style="margin-bottom: 0cm;" lang="en-US">Connect these
contours to form a model as vtkPolyData</p>
</li>
<li>
<p style="margin-bottom: 0cm;" lang="en-US">Convert the
vtkPolyData to itk::Mesh using the code mentioned in the
Auxiliary folder in the InsightApplications
(vtkPolyDataToITKMesh.cxx)</p>
</li>
<li>
<p style="margin-bottom: 0cm;" lang="en-US">Use that mesh as
initial mesh for the segmentation process</p>
</li>
</ol>
<p style="margin-bottom: 0cm;" lang="en-US"><br>
</p>
<p style="margin-bottom: 0cm;" lang="en-US">The problem is when I
use
my generated mesh the segmentation process crashes. When I use
exactly the same code as in the example, means using the
BinaryMask3DMeshSource Filter to create the mesh, everything works
fine.</p>
<p style="margin-bottom: 0cm;" lang="en-US"><br>
</p>
<p style="margin-bottom: 0cm;" lang="en-US">Are there any known
issues
converting vtkPolyData into itk::mesh.</p>
<p style="margin-bottom: 0cm;" lang="en-US"><br>
</p>
<p style="margin-bottom: 0cm;" lang="en-US">Thanks in advance</p>
<p style="margin-bottom: 0cm;" lang="en-US">Best regards</p>
<p style="margin-bottom: 0cm;" lang="en-US"> Sven Lüttmann<br>
</p>
<p style="margin-bottom: 0cm;" lang="en-US"></p>
<p style="margin-bottom: 0cm;" lang="en-US"><br>
</p>
<div>-- <br>
<b><font color="#ff6600" face="Arial"><span style="font-family: Arial; color: rgb(255, 102, 0); font-weight: bold;">Fachhochschule
Dortmund</span></font></b> <br>
<b><font face="Arial" size="1"><span style="font-size: 7.5pt; font-family: Arial; font-weight: bold;">University of
Applied Sciences and Arts</span></font></b> <br>
<font style="color: rgb(169, 166, 166);" face="MetaKorrespondenz" size="1"><span style="font-size: 9pt; font-family: MetaKorrespondenz;"><br>
Sven Olaf Lüttmann<br>
B.Sc. Medizinische Informatik<br>
<br>
FB Informatik, Medizinische Informatik<br>
Emil-Figge-Str. 42<br>
44227 Dortmund<br>
<br>
Raum: EFS 42 B.1.21<br>
<br>
Fax: 0231 / 755-6725<br>
E-Mail: <a href="mailto:sven.luettmann@fh-dortmund.de" target="_blank">sven.luettmann@fh-dortmund.de</a><br>
Web: <a href="http://www.fh-dortmund.de" target="_blank">http://www.fh-dortmund.de</a></span></font><br>
</div>
</div>
<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<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>