<!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>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Can anyone tell me if this metric value goes down, 
does it indicate worse result?&nbsp; </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Grace</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=Grace.Chen@swri.ca href="mailto:Grace.Chen@swri.ca">Grace Chen</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=insight-users@itk.org 
  href="mailto:insight-users@itk.org">insight-users@itk.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, June 21, 2006 11:59 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> 
  itkNormalizedMutualInformationHistogramImageToImageMetric</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>Hi there,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I&nbsp;tried looking for examples on how to set 
  this metric up properly, however, none seem to work well....&nbsp;The way I am 
  setting this metric is shown below.&nbsp; However, it gives rediculously bad 
  result. And it's super slow.&nbsp; 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&nbsp;10 mins or more....</FONT></DIV>
  <DIV><FONT face=Arial size=2>And also, the metric value starts from 1.2 to 
  1.006.&nbsp; </FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Does anyone know what's going on?&nbsp; Or does 
  anyone know how to set this metric up proerply??</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Grace</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</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-&gt;SetHistogramSize(histSize);</P>
  <P></P>
  <P><FONT color=#008000>// Plug the images into the metric.</P></FONT>
  <P>metric-&gt;SetFixedImage(fixedImage);</P>
  <P>metric-&gt;SetMovingImage(movingImage);</P>
  <P><FONT color=#0000ff>const</FONT> <FONT color=#0000ff>unsigned</FONT> <FONT 
  color=#0000ff>int</FONT> numberOfParameters = 
  transform-&gt;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-&gt;SetDerivativeStepLengthScales(scales); </P>
  <P><FONT face=Arial 
  size=2>-------------------------------------------------------------------------------------</FONT></P></DIV></BLOCKQUOTE></BODY></HTML>