<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>the code c++ is :<br>#if defined(_MSC_VER)<br>#pragma warning ( disable : 4786 )<br>#endif<br><br>#ifdef __BORLANDC__<br>#define ITK_LEAN_AND_MEAN<br>#endif<br>#include "itkHessian3DToVesselnessMeasureImageFilter.h"<br>#include "itkHessianRecursiveGaussianImageFilter.h"<br>#include "itkSymmetricSecondRankTensor.h"<br>#include "itkImage.h"<br>#include "itkImageFileReader.h"<br>#include "itkImageFileWriter.h"<br><br>int main( int argc, char *argv[] )<br>{<br><br>&nbsp;if( argc &lt; 3 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; "Usage: inputImage outputImage [sigma] [alpha_1] [alpha_2]" &lt;&lt; std::endl;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; <br>&nbsp; const&nbsp;&nbsp;&nbsp;&nbsp; unsigned int&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 Dimension&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 3;<br>&nbsp; typedef&nbsp;&nbsp; double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InputPixelType;<br>&nbsp; typedef&nbsp;&nbsp; float&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OutputPixelType;<br>&nbsp; <br>&nbsp; typedef&nbsp;&nbsp; itk::Image&lt; InputPixelType, Dimension &gt;&nbsp;&nbsp; InputImageType;<br>&nbsp; typedef&nbsp;&nbsp; itk::Image&lt; OutputPixelType, Dimension &gt;&nbsp; OutputImageType;<br>&nbsp; <br>&nbsp; typedef&nbsp;&nbsp; itk::HessianRecursiveGaussianImageFilter&lt; <br>&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>&nbsp; typedef&nbsp;&nbsp;
 itk::Hessian3DToVesselnessMeasureImageFilter&lt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OutputPixelType &gt; VesselnessMeasureFilterType;<br>&nbsp; typedef&nbsp;&nbsp; itk::ImageFileReader&lt; InputImageType &gt;&nbsp; ReaderType;<br>&nbsp; typedef&nbsp;&nbsp; itk::ImageFileWriter&lt; OutputImageType &gt; WriterType;<br>&nbsp; <br>&nbsp; HessianFilterType::Pointer hessianFilter = HessianFilterType::New();<br>&nbsp; VesselnessMeasureFilterType::Pointer vesselnessFilter = <br>&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><br>&nbsp; ReaderType::Pointer&nbsp;&nbsp; reader = ReaderType::New();<br>&nbsp; WriterType::Pointer&nbsp;&nbsp; writer = WriterType::New();<br>&nbsp; <br>&nbsp; reader-&gt;SetFileName( argv[1] );<br>&nbsp; hessianFilter-&gt;SetInput(
 reader-&gt;GetOutput() );<br>&nbsp; if( argc &gt;= 4 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; hessianFilter-&gt;SetSigma( static_cast&lt; double &gt;(atof(argv[3])) );<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; vesselnessFilter-&gt;SetInput( hessianFilter-&gt;GetOutput() );<br>&nbsp; writer-&gt;SetInput( vesselnessFilter-&gt;GetOutput() );<br>&nbsp; writer-&gt;SetFileName( argv[2] );<br>&nbsp; if( argc &gt;= 5 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; vesselnessFilter-&gt;SetAlpha1( static_cast&lt; double &gt;(atof(argv[4])));<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp; if( argc &gt;= 6 )<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; vesselnessFilter-&gt;SetAlpha2( static_cast&lt; double &gt;(atof(argv[5])));<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp; writer-&gt;Update();<br>&nbsp; return EXIT_SUCCESS;<br>}<br><br>&nbsp;&nbsp;&nbsp; <br>I'm testing the vesselness filter on an MRA image .<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, 13h48mn 45s<br><b><span style="font-weight: bold;">Objet&nbsp;:</span></b> Re: Re : needs a lot of recommandations<br></font><br>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; wrote:<br>&gt; the result that i had&nbsp; is on the joined file resultat<br>&gt;<br><br>The last picture was what I expected except for the crash. If you post<br>you code I will take a look at this.<br><br>John<br></div></div></div><br>



      </body></html>