<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Thanks for the quick reply Bill,<br>
    if I get your point right, your saying that because of the different
    coordinate system the y-axis is flipped, so for my imagination my
    model would be upside down. But that should not bring up any
    computational issues, should it?<br>
    <br>
    I tried a simple RegularSphere in itk (RegularSphereMeshSource) as
    initial mesh for the segmentation process. Same problem.<br>
    I debugged the code as far as possible and it came up that the
    process crashes in the function "ComputeDt()" in the
    DeformableMesh3DFilter class line 331.<br>
    <br>
    The Array "m_K" is not filled properly with the stiffness parameters
    which should be done in the function "SetMeshStiffness()" in the
    same class. This function skips the while loop (see below) in line
    288 which probably causes the process to crash:<br>
    <br>
    while (celldata != myCellData-&gt;End())<br>
    &nbsp;&nbsp;&nbsp; {<br>
    &nbsp;&nbsp;&nbsp; const double x = celldata.Value();<br>
    &nbsp;&nbsp;&nbsp; m_K[j] = m_StiffnessMatrix+((int) x);<br>
    &nbsp;&nbsp;&nbsp; ++celldata; <br>
    &nbsp;&nbsp;&nbsp; j++;<br>
    &nbsp;&nbsp;&nbsp; }<br>
    <br>
    Hope that helps for further assistance.<br>
    <br>
    Thanks very much<br>
    <br>
    Cheers<br>
    &nbsp;Sven<br>
    <br>
    <br>
    <br>
    <div class="moz-signature"><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&uuml;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">sven.luettmann@fh-dortmund.de</a><br>
          Web: <a href="http://www.fh-dortmund.de">http://www.fh-dortmund.de</a></span></font><br>
    </div>
    <br>
    On 13.10.2011 13:59, Bill Lorensen wrote:
    <blockquote
cite="mid:CADZJ4hOL8O8sUHdDC1+Rvkg1h7gZvovnLXhO77dZjAYO-GxsHw@mail.gmail.com"
      type="cite">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&uuml;ttmann <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:sven.luettmann@fh-dortmund.de">sven.luettmann@fh-dortmund.de</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 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">&nbsp;&nbsp;&nbsp; Sven
              L&uuml;ttmann<br>
            </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&uuml;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 moz-do-not-send="true"
                    href="mailto:sven.luettmann@fh-dortmund.de"
                    target="_blank">sven.luettmann@fh-dortmund.de</a><br>
                  Web: <a moz-do-not-send="true"
                    href="http://www.fh-dortmund.de" target="_blank">http://www.fh-dortmund.de</a></span></font><br>
            </div>
          </div>
          <br>
          _____________________________________<br>
          Powered by <a moz-do-not-send="true"
            href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
          <br>
          Visit other Kitware open-source projects at<br>
          <a moz-do-not-send="true"
            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 moz-do-not-send="true"
            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 moz-do-not-send="true"
            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 moz-do-not-send="true"
            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>
    </blockquote>
  </body>
</html>