<html><div style='background-color:'><DIV class=RTE>
<P>Yes Luis but I don undertand why it does not work.</P>
<P>In the guide says:</P><FONT face=Courier size=1>
<P align=left>typedef itk::MutualInformationImageToImageMetric&lt;</P>
<P align=left>InternalImageType,</P>
<P align=left>InternalImageType &gt; MetricType;</P>
<P></FONT>MetricType::Pointer metric = MetricType::New();<BR>registration-&gt;SetMetric( metric );</P>
<P>metric-&gt;SetFixedImageStandardDeviation( 0.4 );<BR>metric-&gt;SetMovingImageStandardDeviation( 0.4 );<BR>metric-&gt;SetNumberOfSpatialSamples( 50 );</P>
<P>typedef itk::NormalizeImageFilter&lt;<BR>FixedImageType,<BR>InternalImageType<BR>&gt; FixedNormalizeFilterType;<BR>typedef itk::NormalizeImageFilter&lt;<BR>MovingImageType,<BR>InternalImageType<BR>&gt; MovingNormalizeFilterType;<BR>FixedNormalizeFilterType::Pointer fixedNormalizer =<BR>FixedNormalizeFilterType::New();<BR>MovingNormalizeFilterType::Pointer movingNormalizer =<BR>MovingNormalizeFilterType::New();</P><FONT face=Courier size=1>
<P align=left>fixedNormalizer-&gt;SetInput( fixedImageReader-&gt;GetOutput() );</P>
<P align=left>movingNormalizer-&gt;SetInput( movingImageReader-&gt;GetOutput() );</P>
<P><FONT color=#3333ff>Now tell me what am i doing wrong?</FONT></P>
<P>typedef itk::MutualInformationImageToImageMetric&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FixedImageType,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MovingImageType&gt; MetricType;<BR>&nbsp; typedef itk::NormalizeImageFilter&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FixedImageType,<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InternalImageType&gt; 
FixedNormalizeFilterType;<BR>&nbsp; <BR>&nbsp; typedef itk::NormalizeImageFilter&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MovingImageType,<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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; InternalImageType&gt; MovingNormalizeFilterType;</P>
<P>FixedNormalizeFilterType::Pointer fixedNormalizer = FixedNormalizeFilterType::New();<BR>&nbsp; MovingNormalizeFilterType::Pointer movingNormalizer = MovingNormalizeFilterType::New();</P>
<P>&nbsp; MetricType::Pointer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; metric&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = MetricType::New();</P>
<P>&nbsp; fixedNormalizer-&gt;SetInput( fixedImage );<BR>&nbsp; movingNormalizer-&gt;SetInput( movingImageReader-&gt;GetOutput() );</P>
<P>&nbsp; registration-&gt;SetFixedImage(&nbsp; fixedNormalizer-&gt;GetOutput()&nbsp;&nbsp; );<BR>&nbsp; registration-&gt;SetMovingImage(&nbsp;&nbsp; movingNormalizer-&gt;GetOutput() );<BR>&nbsp;&nbsp;<BR>&nbsp; metric-&gt;SetFixedImage(&nbsp;&nbsp; fixedNormalizer-&gt;GetOutput()&nbsp; );<BR>&nbsp; metric-&gt;SetMovingImage(&nbsp;&nbsp; movingNormalizer-&gt;GetOutput()&nbsp;&nbsp; );<BR>&nbsp; interpolator-&gt;SetInputImage(movingImageReader-&gt;GetOutput());</P>
<P></FONT>&nbsp;FixedImageType::RegionType fixedRegion = fixedImage-&gt;GetBufferedRegion();<BR>&nbsp; <BR>&nbsp; registration-&gt;SetFixedImageRegion( fixedRegion );<BR>&nbsp; metric-&gt;SetFixedImageRegion(fixedRegion);</P><FONT size=2>
<P>metric-&gt;SetTransformParameters( transform-&gt;GetParameters() );</P>
<P>metric-&gt;SetInterpolator( interpolator );</P>
<P>metric-&gt;SetFixedImageStandardDeviation(0.49);</P>
<P>metric-&gt;SetMovingImageStandardDeviation(0.49);</P>
<P>metric-&gt;SetNumberOfSpatialSamples( 50 );</P>
<P>metric-&gt;SetComputeGradient(1);</P>
<P></FONT><BR><BR>&nbsp;</P><BR><BR><BR>&gt;From: Luis Ibanez &lt;luis.ibanez@kitware.com&gt;<BR>&gt;To: javier silva bravo &lt;javier_silva_bravo@hotmail.com&gt;<BR>&gt;CC: insight-users@itk.org<BR>&gt;Subject: Re: [Insight-users] Where I can find examples or paper about<BR>&gt;Date: Wed, 18 May 2005 17:51:51 -0400<BR>&gt;<BR>&gt;<BR>&gt;Hi Javier,<BR>&gt;<BR>&gt;You will find detailed information about both of your<BR>&gt;questions in the ITK Software Guide:<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.itk.org/ItkSoftwareGuide.pdf<BR>&gt;<BR>&gt;<BR>&gt;The guide describe examples on how to use the ImageSeries<BR>&gt;and how to do multi-modality registration.<BR>&gt;<BR>&gt;<BR>&gt;The code for this examples is avalable in the directory<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
Insight/Examples<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Regards,<BR>&gt;<BR>&gt;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Luis<BR>&gt;<BR>&gt;<BR>&gt;--------------------------<BR>&gt;javier silva bravo wrote:<BR>&gt;<BR>&gt;&gt;itk::NumericSeriesFileNames<BR>&gt;&gt;I need read and write a secuence of Images.<BR>&gt;&gt;and where i can find too information about <BR>&gt;&gt;MuttualInformationImagetoImageMetric? because I dont know how to <BR>&gt;&gt;use them.<BR>&gt;&gt;&nbsp;&nbsp;Thank you.<BR>&gt;&gt;<BR>&gt;&gt;------------------------------------------------------------------------<BR>&gt;&gt;MSN Premium. Protégete, Comunícate y Diviértete Haz clic aquí 
<BR>&gt;&gt;&lt;http://g.msn.com/8HMBESMX/2743??PS=47575&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;------------------------------------------------------------------------<BR>&gt;&gt;<BR>&gt;&gt;_______________________________________________<BR>&gt;&gt;Insight-users mailing list<BR>&gt;&gt;Insight-users@itk.org<BR>&gt;&gt;http://www.itk.org/mailman/listinfo/insight-users<BR>&gt;<BR>&gt;<BR>&gt;<BR></DIV></div><br clear=all><hr>T1msn Hotmail Plus. Más espacio, más funcional <a href="http://g.msn.com/8HMBESMX/2755??PS=47575" target="_top">Haz clic aquí </a> </html>