<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Ryma,<br>
    <br>
    OBJ and OFF are 3D surface mesh file format...<br>
    To use level-sets, you should first generate a binary image from
    these meshes.<br>
    <br>
    Assuming your meshes are triangular meshes, you can use the
    following class: TriangleMeshToBinaryImageFilter<br>
    <br>
    &nbsp;&nbsp;&nbsp;
<a class="moz-txt-link-freetext" href="http://www.itk.org/Doxygen/html/classitk_1_1TriangleMeshToBinaryImageFilter.html">http://www.itk.org/Doxygen/html/classitk_1_1TriangleMeshToBinaryImageFilter.html</a><br>
    <br>
    Then you can try using / following the examples I mentioned
    previously.<br>
    <br>
    Best,<br>
    Arnaud<br>
    <br>
    On 02/16/2012 04:10 AM, rima sb wrote:
    <blockquote
cite="mid:CAGhzWn5sBmmOhDUSGQCebDvePr1=UR_g8BgKEErwtuJtpO8j3w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi Arnaud,&nbsp;
        <div>This is what i've already done, but i have
          more&nbsp;stupid&nbsp;question, those examples support 3D image like
          .OBJ or .OFF files?</div>
        <div><br>
        </div>
        <div>Ryma&nbsp;<br>
          <br>
          <div class="gmail_quote">2012/2/16 Arnaud Gelas <span
              dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:arnaudgelas@gmail.com">arnaudgelas@gmail.com</a>&gt;</span><br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Ryma,<br>
              <br>
              You could copy these sources files and create the
              appropriate CMakeLists.txt to run these examples.<br>
              Like this, it will save you some time to build all tests
              and examples...<br>
              <br>
              Arnaud<br>
              <br>
              <div class="gmail_quote">
                <div class="im">
                  On Wed, Feb 15, 2012 at 8:24 AM, Ryma <span dir="ltr">&lt;<a
                      moz-do-not-send="true"
                      href="mailto:rima.sb4@gmail.com" target="_blank">rima.sb4@gmail.com</a>&gt;</span>
                  wrote:<br>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div class="im">
                    <br>
                    Hi Arnaud,<br>
                    When i compiled ITK, i disabled &nbsp;BUILD_EXAMPLES and
                    BUILD_TESTING because i<br>
                    found this in all installation guides and tutorials.<br>
                    is this right in this case?<br>
                  </div>
                  Ryma,
                  <div>
                    <div class="h5"><br>
                      <div>
                        <div><br>
                          <br>
                          Arnaud Gelas-2 wrote:<br>
                          &gt;<br>
                          &gt; Ryma,<br>
                          &gt;<br>
                          &gt; The level sets framework may help you in
                          this task.<br>
                          &gt;<br>
                          &gt; However, the choice of the "terms" to be
                          used and / or "functional" to<br>
                          &gt; be minimized depends on your image.<br>
                          &gt; It is really difficult to tell you which
                          method would work for your<br>
                          &gt; image with this little information and
                          without the images.<br>
                          &gt;<br>
                          &gt; First, I would recommend you having a
                          look at the examples based on ITKv3:<br>
                          &gt;<br>
                          &gt; &nbsp; &nbsp;
                          &nbsp;Examples/Segmentation/GeodesicActiveContourImageFilter.cxx<br>
                          &gt; &nbsp; &nbsp;
                          &nbsp;Examples/Segmentation/ThresholdSegmentationLevelSetImageFilter.cxx<br>
                          &gt; &nbsp; &nbsp;
                          &nbsp;Examples/Segmentation/LaplacianSegmentationLevelSetImageFilter.cxx<br>
                          &gt;<br>
                          &gt; and<br>
                          &gt;<br>
                          &gt;<br>
                          &gt;
Modules/Segmentation/LevelSetsv4Visualization/test/vtkVisualize2DCellsLevelSetTest.cxx<br>
                          &gt;<br>
                          &gt; You can run these tests and examples from
                          your build directory if you<br>
                          &gt; have enabled BUILD_EXAMPLES and
                          BUILD_TESTING by running<br>
                          &gt;<br>
                          &gt; &nbsp; &nbsp; &nbsp;ctest -R ${TheNameOfTheExample|Test}<br>
                          &gt;<br>
                          &gt; Best,<br>
                          &gt; Arnaud<br>
                          &gt;<br>
                          &gt; On 02/14/2012 11:57 AM, Ryma wrote:<br>
                          &gt;&gt; Hi Arnaud,<br>
                          &gt;&gt; Thanks for reply, what i'm trying to
                          do exactly is extracting a part from<br>
                          &gt;&gt; a<br>
                          &gt;&gt; 3D image and want to see the surface
                          evolving.<br>
                          &gt;&gt; Ryma<br>
                          &gt;&gt;<br>
                          &gt;&gt;<br>
                          &gt;&gt; Arnaud Gelas-2 wrote:<br>
                          &gt;&gt;&gt; Hi Ryma,<br>
                          &gt;&gt;&gt;<br>
                          &gt;&gt;&gt; Can you provide more details,
                          please?<br>
                          &gt;&gt;&gt;<br>
                          &gt;&gt;&gt; Are you trying to segment meshes
                          based on their geometry, additional<br>
                          &gt;&gt;&gt; data?<br>
                          &gt;&gt;&gt;<br>
                          &gt;&gt;&gt; or<br>
                          &gt;&gt;&gt;<br>
                          &gt;&gt;&gt; Are you trying to extract some
                          shape of interest in a 3D image and you<br>
                          &gt;&gt;&gt; would like to see the surface
                          evolves through the iteration?<br>
                          &gt;&gt;&gt;<br>
                          &gt;&gt;&gt; Thanks,<br>
                          &gt;&gt;&gt; Arnaud<br>
                          &gt;&gt;&gt;<br>
                          &gt;&gt;&gt; On 02/14/2012 11:48 AM, Ryma
                          wrote:<br>
                          &gt;&gt;&gt;&gt; Hi itkUsers,<br>
                          &gt;&gt;&gt;&gt; I'm beginner to ITK, i'm
                          working on 3D meshes segmentation. What i'm<br>
                          &gt;&gt;&gt;&gt; trying<br>
                          &gt;&gt;&gt;&gt; to do is using the method of
                          Level Sets for segmentation. My meshes are<br>
                          &gt;&gt;&gt;&gt; .OBJ<br>
                          &gt;&gt;&gt;&gt; files, it's possible to use
                          the classes of ITK to see a surface<br>
                          &gt;&gt;&gt;&gt; evolving?<br>
                          &gt;&gt;&gt;&gt; Ryma<br>
                          &gt;&gt;&gt;
                          _____________________________________<br>
                          &gt;&gt;&gt; Powered by <a
                            moz-do-not-send="true"
                            href="http://www.kitware.com"
                            target="_blank">www.kitware.com</a><br>
                          &gt;&gt;&gt;<br>
                          &gt;&gt;&gt; Visit other Kitware open-source
                          projects at<br>
                          &gt;&gt;&gt; <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>
                          &gt;&gt;&gt;<br>
                          &gt;&gt;&gt; Kitware offers ITK Training
                          Courses, for more information visit:<br>
                          &gt;&gt;&gt; <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>
                          &gt;&gt;&gt;<br>
                          &gt;&gt;&gt; Please keep messages on-topic and
                          check the ITK FAQ at:<br>
                          &gt;&gt;&gt; <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>
                          &gt;&gt;&gt;<br>
                          &gt;&gt;&gt; Follow this link to
                          subscribe/unsubscribe:<br>
                          &gt;&gt;&gt; <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>
                          &gt;&gt;&gt;<br>
                          &gt;&gt;&gt;<br>
                          &gt;<br>
                          &gt; _____________________________________<br>
                          &gt; Powered by <a moz-do-not-send="true"
                            href="http://www.kitware.com"
                            target="_blank">www.kitware.com</a><br>
                          &gt;<br>
                          &gt; Visit other Kitware open-source projects
                          at<br>
                          &gt; <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>
                          &gt;<br>
                          &gt; Kitware offers ITK Training Courses, for
                          more information visit:<br>
                          &gt; <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>
                          &gt;<br>
                          &gt; Please keep messages on-topic and check
                          the ITK FAQ at:<br>
                          &gt; <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>
                          &gt;<br>
                          &gt; Follow this link to
                          subscribe/unsubscribe:<br>
                          &gt; <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>
                          &gt;<br>
                          &gt;<br>
                        </div>
                      </div>
                    </div>
                  </div>
                  <span><font color="#888888">--<br>
                      View this message in context: <a
                        moz-do-not-send="true"
href="http://old.nabble.com/Segmentation-of-3D-object-with-Level-sets-tp33323288p33328785.html"
                        target="_blank">http://old.nabble.com/Segmentation-of-3D-object-with-Level-sets-tp33323288p33328785.html</a><br>
                    </font></span>
                  <div>Sent from the ITK - Users mailing list archive at
                    Nabble.com.<br>
                    <br>
                  </div>
                  <div class="im">
                    <div>
                      <div>_____________________________________<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>
                      </div>
                    </div>
                  </div>
                </blockquote>
              </div>
              <font color="#888888"><br>
                <br clear="all">
                <br>
                -- <br>
                <span><font color="#888888">Arnaud Gelas, Ph. D.<br>
                    Avenue Beauregard 30<br>
                    CH-1700 Fribourg<br>
                    Switzerland<br>
                    cellphone: <a moz-do-not-send="true"
                      href="tel:%28%2B41%29%2076-635-08-66"
                      value="+41766350866" target="_blank">(+41)
                      76-635-08-66</a><br>
                    phone: <a moz-do-not-send="true"
                      href="tel:%28%2B41%29%2026-535-44-36"
                      value="+41265354436" target="_blank">(+41)
                      26-535-44-36</a><br>
                    <a moz-do-not-send="true"
                      href="mailto:arnaudgelas@gmail.com"
                      target="_blank">arnaudgelas@gmail.com</a></font></span><br>
              </font></blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>