<html><div style='background-color:'><DIV class=RTE>Hello Everybody.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Luis told me when the outputimage is like movil images the method falled.</DIV>
<DIV class=RTE>So the reason is (he said) I didnt initialize the good way the metric. Then How I initialize the metric?</DIV>
<DIV class=RTE>this is the code.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE><FONT size=2>
<P>#include "itkMeanSquaresImageToImageMetric.h"</P><FONT size=2>
<P>typedef itk::MeanSquaresImageToImageMetric< </P>
<P>FixedImageType, </P>
<P>MovingImageType > MetricType;</P><FONT size=2>
<P>MetricType::Pointer metric = MetricType::New();</P><FONT size=2>
<P>registration->SetMetric( metric );</P><FONT size=2>
<P>metric->SetTransform( transform );</P><FONT size=2>
<P>metric->SetFixedImage( fixedImage );</P>
<P>metric->SetMovingImage( movingImageReader->GetOutput() );</P><FONT size=2>
<P>metric->SetFixedImageRegion( fixedRegion );</P><FONT size=2>
<P>metric->SetTransformParameters( transform->GetParameters() );</P><FONT size=2>
<P>optimizer->SetCostFunction(metric);</P>
<P>Thank you.</P></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></FONT></DIV></div><br clear=all><hr>MSN Premium. Protégete, Comunícate y Diviértete <a href="http://g.msn.com/8HMBESMX/2746??PS=47575" target="_top">Haz clic aquí </a> </html>