Hi Elhadj,<br><br>1. You definitely have to compile the ITK code once.<br><br>2. After that, you can create your own projects and compile it independently and not have to worry about compiling ITK. You will only need to show the location of your compiled ITK location.<br>
<br>In your case, you did not set the right compilation option in step 1 for using the level set code, which is why I asked you to do that and then 2.<br><br>If you are new to ITK, you may want to read the first few chapters of the ITK User guide.<br>
<a href="http://www.itk.org/ItkSoftwareGuide.pdf">http://www.itk.org/ItkSoftwareGuide.pdf</a><br><br><br>Kishore<br><br><br><div class="gmail_quote">On Wed, Apr 21, 2010 at 1:17 AM, elhadj meljane <span dir="ltr"><<a href="mailto:elhadj.meljane@gmail.com">elhadj.meljane@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hi Kishore,</div>
<div>is it possible to compile your project separately (in itk) so that I haven't to compile all the itk code.</div>
<div>Thanks, <br><br><br></div><div><div></div><div class="h5">
<div class="gmail_quote">On Wed, Apr 21, 2010 at 12:52 AM, Kishore Mosaliganti <span dir="ltr"><<a href="mailto:kishoreraom@gmail.com" target="_blank">kishoreraom@gmail.com</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="gmail_quote">Hi Elhadj,<br><br>The code in that publication has been improved and moved into the ITK toolkit review folder. So you don't need to download the code from the Insight journal.<br>
<br>When you compile ITK, in the cmake gui, go to advanced options and set the ITK_USE_REVIEW option to ON. Then, after configuring it, compile it again.<br><br>Then, you can find examples of running the code in:<br>Insight/Examples/Review/<br>
<br>Insight/Testing/Code/Review/itkScalarChanAndVeseDenseLevelSetImageFilterTest1.cxx<br>Insight/Testing/Code/Review/itkScalarChanAndVeseDenseLevelSetImageFilterTest2.cxx<br>Insight/Testing/Code/Review/itkScalarChanAndVeseDenseLevelSetImageFilterTest3.cxx<br>
Insight/Testing/Code/Review/itkScalarChanAndVeseDenseLevelSetImageFilterTest4.cxx<br><br>Kishore<br><br><br><br>
<div class="gmail_quote">
<div>
<div></div>
<div>On Tue, Apr 20, 2010 at 8:31 PM, elhadj meljane <span dir="ltr"><<a href="mailto:elhadj.meljane@gmail.com" target="_blank">elhadj.meljane@gmail.com</a>></span> wrote:<br></div></div>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
<div>
<div></div>
<div><br>
<div class="gmail_quote">
<div>
<div>Dear all, </div>
<div>i'm beginner with itk and I need help to use the code </div>
<div> </div>
<div><a href="http://www.insight-journal.org/browse/publication/323" target="_blank">http://www.insight-journal.org/browse/publication/323</a></div>
<div> </div>
<div> </div></div>
<div>the code works for 2D dataset, but in 3D I got a segmentation fault, I put below the gdb output.</div>
<div>
<div>Thanks,</div>
<div>Haj,</div>
<div> </div>
<div> (gdb) bt<br>#0 0xb7fde424 in __kernel_vsyscall ()<br>#1 0xb7d38640 in raise () from /lib/i686/cmov/libc.so.6<br>#2 0xb7d3a018 in abort () from /lib/i686/cmov/libc.so.6<br>#3 0xb7f30988 in __gnu_cxx::__verbose_terminate_handler () from /usr/lib/libstdc++.so.6<br>
#4 0xb7f2e865 in ?? () from /usr/lib/libstdc++.so.6<br>#5 0xb7f2e8a2 in std::terminate () from /usr/lib/libstdc++.so.6<br>#6 0xb7f2e9da in __cxa_throw () from /usr/lib/libstdc++.so.6<br>#7 0x081adc30 in itk::ImageFileReader<itk::Image<float, 3u>, itk::DefaultConvertPixelTraits<float> >::GenerateOutputInformation (this=0x8603bc0)<br>
at /InsightToolkit-3.16.0/Code/IO/itkImageFileReader.txx:147<br>#8 0x082a1847 in itk::ProcessObject::UpdateOutputInformation ()<br>#9 0x081b59ef in itk::ImageBase<3u>::UpdateOutputInformation (this=0x86062b8) at /InsightToolkit-3.16.0/Code/Common/itkImageBase.txx:234<br>
#10 0x082a175a in itk::ProcessObject::UpdateOutputInformation ()<br>#11 0x081b59ef in itk::ImageBase<3u>::UpdateOutputInformation (this=0x86240a0) at /InsightToolkit-3.16.0/Code/Common/itkImageBase.txx:234<br>#12 0x0828ee66 in itk::DataObject::Update ()<br>
#13 0x0829fe69 in itk::ProcessObject::Update ()<br>#14 0x08173288 in main (argc=7, argv=0xbfffe964) at ~/examples/ActiveContoursWithoutEdges/ScalarSinglePhase3DTest.cxx:178</div></div></div><br><br></div></div>_____________________________________<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></blockquote></div><br>
</div></div></blockquote></div><br>