<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
metric-&gt;SetNumberOfSpatialSamples( numberOfSamples );<BR>it seems that mutualinformation method only uses part of the image samples,<BR>
itkMeanSquaresImageToImageMetric&nbsp; uses all the image pixels. It is not surprise<BR>
for you to get the result for same modality image registration.<BR>
Guys, is it right?<BR><BR>&gt; Date: Fri, 19 Dec 2008 17:00:24 +0100<BR>&gt; From: carola.schmidt@igd.fraunhofer.de<BR>&gt; To: insight-users@itk.org<BR>&gt; Subject: [Insight-users] Problem with BSplines-Registration and Mutual Information Metric<BR>&gt; <BR>&gt; Hi, itk users.<BR>&gt; <BR>&gt; I am implementing the BSpline Registration to register CT-Data of the <BR>&gt; abdomen. I use the LBFGSBOptimizer<BR>&gt; and use the parameters of the deformableRegistration8.cxx file<BR>&gt; <BR>&gt; OptimizerType::BoundSelectionType <BR>&gt; boundSelect(transform-&gt;GetNumberOfParameters());<BR>&gt; OptimizerType::BoundValueType <BR>&gt; upperBound(transform-&gt;GetNumberOfParameters());<BR>&gt; OptimizerType::BoundValueType <BR>&gt; lowerBound(transform-&gt;GetNumberOfParameters());<BR>&gt; <BR>&gt; boundSelect.Fill(0);<BR>&gt; upperBound.Fill(0.0);<BR>&gt; lowerBound.Fill(0.0);<BR>&gt; <BR>&gt; optimizer-&gt;SetBoundSelection(boundSelect);<BR>&gt; optimizer-&gt;SetUpperBound(upperBound);<BR>&gt; optimizer-&gt;SetLowerBound(lowerBound);<BR>&gt; <BR>&gt; optimizer-&gt;SetCostFunctionConvergenceFactor( 1e+7 );<BR>&gt; optimizer-&gt;SetProjectedGradientTolerance( 1e-4 );<BR>&gt; optimizer-&gt;SetMaximumNumberOfIterations( 500 );<BR>&gt; optimizer-&gt;SetMaximumNumberOfEvaluations( 500 );<BR>&gt; optimizer-&gt;SetMaximumNumberOfCorrections( 12 );<BR>&gt; <BR>&gt; <BR>&gt; As metrics I tried itkMeanSquaresImageToImageMetric and <BR>&gt; itkMattesMutualInformationImageToImageMetric. When I use the <BR>&gt; itkMeanSquaresImageToImageMetric the registration takes really long but <BR>&gt; the results are quite ok.<BR>&gt; When I use itkMattesMutualInformationImageToImageMetric the registration <BR>&gt; only takes a few seconds but most of the time the warped image looks <BR>&gt; like a hardly deformed moving image. Since the registration time is very <BR>&gt; short, it seems that the registration stops after a few steps and warps <BR>&gt; the image then. I use those parameters for the mututal information:<BR>&gt; <BR>&gt; metric-&gt;SetNumberOfHistogramBins( 40 );<BR>&gt; const unsigned int numberOfSamples = 10000; <BR>&gt; //fixedRegion.GetNumberOfPixels()/ 10;<BR>&gt; metric-&gt;SetNumberOfSpatialSamples( numberOfSamples );<BR>&gt; metric-&gt;ReinitializeSeed( 76926294 );<BR>&gt; metric-&gt;SetMovingImage(m_itkimage);<BR>&gt; metric-&gt;SetFixedImage(m_itkatlas);<BR>&gt; metric-&gt;SetFixedImageRegion(fixedRegion);<BR>&gt; <BR>&gt; Why does the Mutual Information Metric not work as expected? Should I <BR>&gt; change the parameters of the optimizer?<BR>&gt; Thanks for an answer.<BR>&gt; <BR>&gt; Ciao,<BR>&gt; Carola<BR>&gt; _______________________________________________<BR>&gt; Insight-users mailing list<BR>&gt; Insight-users@itk.org<BR>&gt; http://www.itk.org/mailman/listinfo/insight-users<BR><BR><br /><hr />将地图和路线添加到您的聚会邀请中。 <a href='http://www.microsoft.com/windows/windowslive/events.aspx' target='_new'>为朋友们导航!</a></body>
</html>