Hi Minjie ,<br><br>I am trying to modify ImageRegistration9.cxx in ITK example.<br>For my demand,I want to reach a 3D affine registration based on MI and multi-resolution.<br>Through keyword searching I found your question that is the same as me.
<br><a href="http://public.kitware.com/pipermail/insight-users/2007-February/021083.html" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://public.kitware.com/pipermail/insight-users/2007-February/021083.html
</a><br>But it is not smoothing for my result.<br>The same as you, the MI metric is modified at first.
<br>My modified code is appeared as below:<br><br>(1) add include file to support MI metric:<br>#include "itkMattesMutualInformationImage<div id="mb_0">ToImageMetric.h"<br><br>(2) replace MeanSquareImageToImageMetric using
<br>
typedef itk::MattesMutualInformationImageToImageMetric< <br> FixedImageType, <br> MovingImageType > MetricType;<br><br>(3) add MI metric configuration
<br> metric->SetNumberOfHistogramBins( 125 );<br> metric->SetNumberOfSpatialSamples( 20000 );<br> metric->ReinitializeSeed( 76926294 );<br><br>(4) set optimizer to Maxima MI:<br>optimizer->MaximizeOn();<br>
<br>Can you give me some suggestion or share your code with me?<br><br>Regards.</div>