<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi there,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I tried looking for examples on how to set
this metric up properly, however, none seem to work well.... The way I am
setting this metric is shown below. However, it gives rediculously bad
result. And it's super slow. To register two volume, what it used to take
(when I use </FONT><FONT face=Arial color=#000000
size=2>itkMattesMutualInformationImageToImageMetric) was 30 sec and now it's
taking 10 mins or more....</FONT></DIV>
<DIV><FONT face=Arial size=2>And also, the metric value starts from 1.2 to
1.006. </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Does anyone know what's going on? Or does
anyone know how to set this metric up proerply??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Grace</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>------------------------------------------------------------------------------------</FONT></DIV>
<DIV>
<P><FONT color=#0000ff>unsigned</FONT> <FONT color=#0000ff>int</FONT> nBins =
32;</P>
<P>MetricType::HistogramType::SizeType histSize;</P>
<P>histSize[0] = nBins;</P>
<P>histSize[1] = nBins;</P>
<P>metric->SetHistogramSize(histSize);</P>
<P></P>
<P><FONT color=#008000>// Plug the images into the metric.</P></FONT>
<P>metric->SetFixedImage(fixedImage);</P>
<P>metric->SetMovingImage(movingImage);</P>
<P><FONT color=#0000ff>const</FONT> <FONT color=#0000ff>unsigned</FONT> <FONT
color=#0000ff>int</FONT> numberOfParameters =
transform->GetNumberOfParameters();</P>
<P><FONT color=#0000ff>typedef</FONT> MetricType::ScalesType ScalesType;</P>
<P>ScalesType scales( numberOfParameters );</P>
<P>scales.Fill( 1.0 );</P>
<P>metric->SetDerivativeStepLengthScales(scales); </P>
<P><FONT face=Arial
size=2>-------------------------------------------------------------------------------------</FONT></P></DIV></BODY></HTML>