<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>i just want to say that it is the same code in the example directory i don't change anything in it and this problem exist with all examples that i tried before and i don't know why?<br><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> John Drescher &lt;drescherjm@gmail.com&gt;<br><b><span style="font-weight: bold;">À :</span></b> Syrine Sahmim &lt;syrine.sahmim@yahoo.fr&gt;<br><b><span style="font-weight: bold;">Envoyé le :</span></b> Jeudi, 20 Août 2009, 14h26mn 30s<br><b><span style="font-weight: bold;">Objet&nbsp;:</span></b> Re: Re : Re : needs a lot of
 recommandations<br></font><br>This looks much better than the previous code. I believe the crash can<br>easily be fixed. I will try to fix and test it in a few hours.<br><br>John<br><br>On Thu, Aug 20, 2009 at 9:18 AM, Syrine Sahmim&lt;<a ymailto="mailto:syrine.sahmim@yahoo.fr" href="mailto:syrine.sahmim@yahoo.fr">syrine.sahmim@yahoo.fr</a>&gt; wrote:<br>&gt; the code c++ is :<br>&gt; #if defined(_MSC_VER)<br>&gt; #pragma warning ( disable : 4786 )<br>&gt; #endif<br>&gt;<br>&gt; #ifdef __BORLANDC__<br>&gt; #define ITK_LEAN_AND_MEAN<br>&gt; #endif<br>&gt; #include "itkHessian3DToVesselnessMeasureImageFilter.h"<br>&gt; #include "itkHessianRecursiveGaussianImageFilter.h"<br>&gt; #include "itkSymmetricSecondRankTensor.h"<br>&gt; #include "itkImage.h"<br>&gt; #include "itkImageFileReader.h"<br>&gt; #include "itkImageFileWriter.h"<br>&gt;<br>&gt; int main( int argc, char *argv[] )<br>&gt; {<br>&gt;<br>&gt; &nbsp;if( argc &lt; 3 )<br>&gt; &nbsp;&nbsp;&nbsp;
 {<br>&gt; &nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; "Usage: inputImage outputImage [sigma] [alpha_1] [alpha_2]"<br>&gt; &lt;&lt; std::endl;<br>&gt; &nbsp;&nbsp;&nbsp; }<br>&gt;<br>&gt; &nbsp; const&nbsp;&nbsp;&nbsp;&nbsp; unsigned int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dimension&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 3;<br>&gt; &nbsp; typedef&nbsp;&nbsp; double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InputPixelType;<br>&gt; &nbsp; typedef&nbsp;&nbsp; float&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OutputPixelType;<br>&gt;<br>&gt; &nbsp; typedef&nbsp;&nbsp; itk::Image&lt; InputPixelType, Dimension &gt;&nbsp;&nbsp; InputImageType;<br>&gt; &nbsp; typedef&nbsp;&nbsp; itk::Image&lt; OutputPixelType, Dimension &gt;&nbsp; OutputImageType;<br>&gt;<br>&gt; &nbsp; typedef&nbsp;&nbsp; itk::HessianRecursiveGaussianImageFilter&lt;<br>&gt;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InputImageType &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HessianFilterType;<br>&gt; &nbsp; typedef&nbsp;&nbsp; itk::Hessian3DToVesselnessMeasureImageFilter&lt;<br>&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OutputPixelType &gt; VesselnessMeasureFilterType;<br>&gt; &nbsp; typedef&nbsp;&nbsp; itk::ImageFileReader&lt; InputImageType &gt;&nbsp; ReaderType;<br>&gt; &nbsp; typedef&nbsp;&nbsp; itk::ImageFileWriter&lt; OutputImageType &gt; WriterType;<br>&gt;<br>&gt; &nbsp; HessianFilterType::Pointer hessianFilter = HessianFilterType::New();<br>&gt; &nbsp; VesselnessMeasureFilterType::Pointer vesselnessFilter =<br>&gt;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; VesselnessMeasureFilterType::New();<br>&gt;<br>&gt; &nbsp; ReaderType::Pointer&nbsp;&nbsp; reader = ReaderType::New();<br>&gt; &nbsp; WriterType::Pointer&nbsp;&nbsp; writer = WriterType::New();<br>&gt;<br>&gt; &nbsp; reader-&gt;SetFileName( argv[1] );<br>&gt; &nbsp; hessianFilter-&gt;SetInput( reader-&gt;GetOutput() );<br>&gt; &nbsp; if( argc &gt;= 4 )<br>&gt; &nbsp;&nbsp;&nbsp; {<br>&gt; &nbsp;&nbsp;&nbsp; hessianFilter-&gt;SetSigma( static_cast&lt; double &gt;(atof(argv[3])) );<br>&gt; &nbsp;&nbsp;&nbsp; }<br>&gt; &nbsp; vesselnessFilter-&gt;SetInput( hessianFilter-&gt;GetOutput() );<br>&gt; &nbsp; writer-&gt;SetInput( vesselnessFilter-&gt;GetOutput() );<br>&gt; &nbsp; writer-&gt;SetFileName( argv[2] );<br>&gt; &nbsp; if( argc &gt;= 5 )<br>&gt; &nbsp;&nbsp;&nbsp; {<br>&gt; &nbsp;&nbsp;&nbsp;
 vesselnessFilter-&gt;SetAlpha1( static_cast&lt; double &gt;(atof(argv[4])));<br>&gt; &nbsp;&nbsp;&nbsp; }<br>&gt; &nbsp; if( argc &gt;= 6 )<br>&gt; &nbsp;&nbsp;&nbsp; {<br>&gt; &nbsp;&nbsp;&nbsp; vesselnessFilter-&gt;SetAlpha2( static_cast&lt; double &gt;(atof(argv[5])));<br>&gt; &nbsp;&nbsp;&nbsp; }<br>&gt;<br>&gt; &nbsp; writer-&gt;Update();<br>&gt; &nbsp; return EXIT_SUCCESS;<br>&gt; }<br>&gt;<br>&gt;<br>&gt; I'm testing the vesselness filter on an MRA image .<br>&gt;<br>&gt; ________________________________<br>&gt; De : John Drescher &lt;<a ymailto="mailto:drescherjm@gmail.com" href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt;<br>&gt; À : Syrine Sahmim &lt;<a ymailto="mailto:syrine.sahmim@yahoo.fr" href="mailto:syrine.sahmim@yahoo.fr">syrine.sahmim@yahoo.fr</a>&gt;<br>&gt; Envoyé le : Jeudi, 20 Août 2009, 13h48mn 45s<br>&gt; Objet&nbsp;: Re: Re : needs a lot of recommandations<br>&gt;<br>&gt; On Thu, Aug 20, 2009 at 5:58 AM, Syrine
 Sahmim&lt;<a ymailto="mailto:syrine.sahmim@yahoo.fr" href="mailto:syrine.sahmim@yahoo.fr">syrine.sahmim@yahoo.fr</a>&gt;<br>&gt; wrote:<br>&gt;&gt; the result that i had&nbsp; is on the joined file resultat<br>&gt;&gt;<br>&gt;<br>&gt; The last picture was what I expected except for the crash. If you post<br>&gt; you code I will take a look at this.<br>&gt;<br>&gt; John<br>&gt;<br>&gt;<br><br><br><br>-- <br>John M. Drescher<br></div></div></div><br>



      </body></html>