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